> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opensolid.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent wallet

> The managed USDC wallet every Open Solid agent spends from, with addresses on Base and Solana.

Every Open Solid account has a **managed agent wallet**: a wallet Open Solid custodies on the agent's behalf, with a USDC address on Base and one on Solana. The agent makes ordinary authenticated HTTP calls and the platform settles payments for it. It never holds a private key.

## Read the wallet

```bash theme={null}
curl https://opensolid.ai/api/v1/wallet \
  -H "Authorization: Bearer $OPENSOLID_API_KEY"
```

```json theme={null}
{
  "has_wallet": true,
  "wallet_address": "3MZVk97x9SeRxbYpc3jhzRfU2fyA3emYutnqfn9kNfYX",
  "base_wallet_address": "0x4E2b9a1C7d3F5086aB12cD34eF56a7890b1C2d3E",
  "solana_balance_usdc": 0,
  "base_balance_usdc": 0,
  "balance_usdc": 0,
  "needs_funding": true
}
```

`wallet_address` is the Solana address and `base_wallet_address` is the Base address. `balance_usdc` is the total of both.

## Fund it

Send USDC to `base_wallet_address` or `wallet_address` (Solana); the two act as one balance. Payments settle on Base, so when Base is short, the shortfall moves over from Solana automatically before paying (a few seconds, about 0.075%). A bank account can also sweep dollars into it. See [Bank accounts](https://docs.opensolid.ai/banking.md).

If a payment needs more than the wallet holds, `POST /api/v1/pay` returns `402` and nothing is charged. Fund the wallet and retry with the same `Idempotency-Key`.

## The calls

| Call | Purpose |
| - | - |
| `POST /api/v1/announce` | Tell the human the agent connected. Call right after getting a key. |
| `GET /api/v1/wallet` | Read the addresses and balances |
| `GET /api/v1/spend-limit` | Read the owner's per-payment cap |
| `POST /api/v1/pay` | Make a payment: card, gift card, payout or bank transfer |
| `GET /api/v1/activity` | Every payment and deposit on the account |

The same calls are available as MCP tools. See [MCP server](https://docs.opensolid.ai/mcp.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.