Agent Treasury / Journal

Custodial vs non-custodial wallet: who really holds the keys

Custodial vs non-custodial wallet explained for builders and careful savers: who can sign, what can go wrong, how multisig fits in, and a checklist to choose.

5 min readbitcoin wallets · self-custody · multisig · custodysha256 7dbb629f8b03…2f93

The custodial vs non-custodial wallet question comes down to one thing: who can produce a valid signature for your coins. Everything else, from recovery to privacy to legal status, follows from that.

This article explains the two models in plain terms, shows where each one fails, and ends with a checklist you can use before you put funds anywhere.

What custodial and non-custodial mean

Bitcoin does not store coins in a wallet. The network tracks unspent outputs, and each output is locked by a script. To spend it, you provide a signature made with the right private key. A wallet is software that manages those keys and builds transactions.

In a custodial wallet, the provider holds the keys. You have an account with the provider, and the provider owes you a balance. You log in with a password, and the provider signs on your behalf. If the provider is unavailable, makes a mistake or refuses a request, you cannot move the coins yourself.

In a non-custodial wallet, you hold the keys, or enough of them to authorize a spend. The software helps you sign, but it cannot spend without you. The Bitcoin whitepaper describes electronic cash that works without a financial institution in the middle, and a non-custodial wallet is the everyday form of that idea.

The word to watch is alone. The real test is whether the provider could move your funds without your cooperation.

Custodial vs non-custodial wallet: a side-by-side comparison

Custodial Non-custodial
Who holds the keys The provider You (or you plus co-signers)
What you own A claim on the provider The coins themselves
Lost password Usually recoverable by the provider Depends on your backup
Provider goes offline You may be locked out You can still sign and broadcast
Main risk Provider failure, freeze or theft Your own loss, mistake or malware
Responsibility Mostly the provider's Mostly yours

Neither column is simply better. Custodial services are convenient and forgiving for people who forget passwords. Non-custodial wallets remove the counterparty, but they move the work of backup and security to you.

Where non-custodial setups go wrong

Self-custody fails in quiet ways. Most of them are about a single point of failure.

  • One key, one backup. A single seed phrase on one piece of paper can burn, flood or be misplaced. The standard for turning a seed into words is BIP-39, and it says nothing about where you keep them.
  • One key, one thief. Anyone who sees the phrase can spend everything. Photos, cloud notes and screenshots are common leaks.
  • Nobody else knows. If the only holder of the keys dies or becomes unreachable, the coins are gone for the family, too.
  • Blind signing. Approving a transaction you cannot read on a compromised computer defeats the purpose of holding keys.

These are the reasons many careful people look at designs that spread control over several keys instead of choosing between two extremes.

The middle path: multisig and shared control

A multisig wallet requires signatures from several keys. In a 2-of-3 setup, any two of three keys can spend. Lose one key and you can still recover. A thief with one key cannot spend.

The keys do not need to belong to the same kind of party. A common pattern is one key on your own device, one in a backup you keep offline, and one held by a service. The service key alone cannot spend, and ideally it signs only when you have confirmed the specific transaction. That is still non-custodial in the sense that matters: the service cannot move coins alone.

Two standards make this practical. BIP-174 defines PSBT, a format for passing an unsigned transaction between signers. Descriptors and BIP-48 derivation paths describe how the keys combine into addresses, so any compatible wallet can rebuild the setup.

One property to ask about is the exit path. If the service disappears, can the other keys still spend without it? In a real 2-of-3, two keys you control are enough.

A note on regulation, which is not legal advice: the role a provider plays can affect which rules apply to it. FinCEN guidance FIN-2019-G001 discusses this, including multiple-signature wallets. Rules differ by country, so ask a professional about your own case.

How to choose: a checklist

Before you pick a wallet or a service, go through these questions.

  1. Who can sign alone? If the answer is anyone but you, it is custodial.
  2. Can you move funds if the provider vanishes? Look for a documented exit tool or standard export of keys and descriptors.
  3. What is your backup plan? Write down where each key lives and who can restore it.
  4. Can you read what you sign? The device should show the amount and the destination.
  5. How much are you holding? Keep spending money in a simple wallet and savings in a stronger setup.
  6. Is the software open and reproducible? Standard formats such as PSBT mean you are not locked in.
  7. Have you tested recovery? Restore from your backup with a small amount before you rely on it.

How Agent Treasury approaches this

Agent Treasury is a working prototype on regtest, a private bitcoin test network, at iteration 7. No real money moves, it is not live on mainnet, and its independent security audit is planned but not done. It is non-custodial software in development, not a bank. The vault for people is a 2-of-3 multisig: a device key unlocked with a passkey, a recovery key split into Shamir shares (any 2 of 3 restore it) for people you trust, and a server key. The server signs only after you confirm that exact transaction with a passkey, so it cannot move funds alone. The device key and recovery key together can move funds without the server, and an exit tool ships with the software. More detail is in how Agent Treasury works.

The same keys also power a treasury for AI agents. Agent payments go out of your own Lightning node, so there is no balance on our side. A small signed program you run next to the node enforces each agent's budget on the node itself. If it is not running, the node refuses those payments. Early access is a waitlist for now, and nothing is billed before mainnet opens; see early access.

Sources

  1. Bitcoin whitepaper
  2. BIP-39
  3. BIP-174
  4. FIN-2019-G001

Questions

What is the difference between a custodial and a non-custodial wallet?

In a custodial wallet the provider holds the private keys and you hold a claim on them. In a non-custodial wallet you hold the keys, or enough of them to authorize a spend, so the provider cannot move your coins alone.

Is a non-custodial wallet safer than a custodial one?

It removes the risk of a provider failing or freezing your account, but adds the risk of your own mistakes. Safety depends on your backups, your device security and whether you can read what you sign.

What happens if I lose my seed phrase in a non-custodial wallet?

If it is your only backup, the coins are generally unrecoverable, because nobody else can sign for you. This is why many people use multiple backups or a multisig setup.

Is a multisig wallet custodial or non-custodial?

It depends on who holds the keys. If you control enough keys to spend without the provider, it is non-custodial. If the provider holds the required number of keys, it is custodial.

Can I switch from a custodial to a non-custodial wallet?

Yes. You create a wallet where you control the keys, back it up, test recovery with a small amount, and then withdraw from the custodial service to your new address.

Agent Treasury is a prototype on a bitcoin test network: no real money moves yet, and it has not been independently audited. This article is general information, not legal, tax or investment advice.