Keyban Agent Wallet
v0.9.0Give an AI agent its own blockchain wallet: balances, USDC transfers, x402 payments under policy.
Values you need
| Variable | What it is | |
|---|---|---|
KEYBAN_API_KEY | required secret | Keyban API key of the application the wallet belongs to. Never exposed to the model. |
KEYBAN_APP_ID | required | Identifier of the Keyban application. |
KEYBAN_INVITE_KEY | optional secret | Wallet mode only. One-shot ECDSA private key (0x + 64 hex) authorizing the first-boot registration of this client as a FROST signer of the wallet. |
KEYBAN_WALLET_ADDRESS | optional | Wallet mode only. Address of the deployed SchnorrAccount this server drives (0x + 40 hex). |
KEYBAN_FUNDING | optional | Who pays for the payments: wallet (the agent's own wallet) or prepaid (the organization's prepaid credit, with no wallet address or invite key). Default: wallet |
KEYBAN_NETWORK | required | Blockchain network the wallet operates on, for example base or xdc. |
KEYBAN_BASE_URL | optional | Base URL of the Keyban backend. Accepts a full URL, or one of the environment aliases dev, testing, staging, prod and sandbox. Default: https://api.prod.keyban.io |
KEYBAN_DKG_BLOB | optional secret | Optional pre-generated FROST client share, base64-encoded JSON. Used by hosted runtimes whose disk does not last; it does not replace the invite key. |
MCP_LOG_FILE | optional | Path the server writes its log to. |
MCP_LOG_LEVEL | optional | Log verbosity. Default: info |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add agent-wallet -e 'KEYBAN_API_KEY=<KEYBAN_API_KEY>' -e 'KEYBAN_APP_ID=<KEYBAN_APP_ID>' -e 'KEYBAN_NETWORK=<KEYBAN_NETWORK>' -- npx -y --package=@keyban/cli@0.7.0 keyban mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"agent-wallet": {
"args": [
"-y",
"--package=@keyban/cli@0.7.0",
"keyban",
"mcp"
],
"command": "npx",
"env": {
"KEYBAN_API_KEY": "<KEYBAN_API_KEY>",
"KEYBAN_APP_ID": "<KEYBAN_APP_ID>",
"KEYBAN_NETWORK": "<KEYBAN_NETWORK>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"agent-wallet": {
"args": [
"-y",
"--package=@keyban/cli@0.7.0",
"keyban",
"mcp"
],
"command": "npx",
"env": {
"KEYBAN_API_KEY": "<KEYBAN_API_KEY>",
"KEYBAN_APP_ID": "<KEYBAN_APP_ID>",
"KEYBAN_NETWORK": "<KEYBAN_NETWORK>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "KEYBAN_API_KEY",
"id": "keyban-api-key",
"password": true,
"type": "promptString"
},
{
"description": "KEYBAN_APP_ID",
"id": "keyban-app-id",
"password": true,
"type": "promptString"
},
{
"description": "KEYBAN_NETWORK",
"id": "keyban-network",
"password": true,
"type": "promptString"
}
],
"servers": {
"agent-wallet": {
"args": [
"-y",
"--package=@keyban/cli@0.7.0",
"keyban",
"mcp"
],
"command": "npx",
"env": {
"KEYBAN_API_KEY": "${input:keyban-api-key}",
"KEYBAN_APP_ID": "${input:keyban-app-id}",
"KEYBAN_NETWORK": "${input:keyban-network}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.agent-wallet]
command = "npx"
args = ["-y", "--package=@keyban/cli@0.7.0", "keyban", "mcp"]
env = { "KEYBAN_API_KEY" = "<KEYBAN_API_KEY>", "KEYBAN_APP_ID" = "<KEYBAN_APP_ID>", "KEYBAN_NETWORK" = "<KEYBAN_NETWORK>" }For AI agents
- Ask the user for: KEYBAN_API_KEY, KEYBAN_APP_ID, KEYBAN_NETWORK. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: setup_instructions, get_wallet_instructions, list_my_wallets, use_wallet.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json