Open app

Drain an agent

Move an agent's remaining balance back to your private wallet.

Draining moves everything an agent holds back to your private wallet. You can drain an agent at any time, including when its process is gone or its key is lost, because you derive the agent's keys from your own seed.

Before you drain

Pause the agent first if it's still running, so it doesn't open new tabs while you drain. On the agent's page at /app/agents/[id], press Pause. The status change is public, and services refuse new vouchers from a paused agent.

Let open tabs settle. A tab that stays open after its settlement window can be flagged unpaid by its service, and a flag makes that tab's amount public.

Drain

  1. Drain

    On the agent's page, press Drain. Your browser derives the agent's shielded keypair from your seed and the agent's index, decrypts its outputs, and builds a confidential transfer of the whole balance to your Ring address.

  2. Sign

    Approve the transaction. The agent's balance shows zero and your private wallet shows the amount added.

  3. Withdraw, if you want it public

    The drained funds are in your private wallet. To move them to a public address, use Withdraw on the wallet screen. A withdrawal shows its destination and amount on chain.

A drained agent keeps its record and history. Press Top up to fund it again and Resume to let it pay services.