Keyban Agent Wallet

v0.9.0
io.keyban.mcp/agent-wallet Checked 1 day ago Published 22 hours ago

Give an AI agent its own blockchain wallet: balances, USDC transfers, x402 payments under policy.

Values you need

VariableWhat it is
KEYBAN_API_KEYrequired secret Keyban API key of the application the wallet belongs to. Never exposed to the model.
KEYBAN_APP_IDrequired Identifier of the Keyban application.
KEYBAN_INVITE_KEYoptional 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_ADDRESSoptional Wallet mode only. Address of the deployed SchnorrAccount this server drives (0x + 40 hex).
KEYBAN_FUNDINGoptional 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_NETWORKrequired Blockchain network the wallet operates on, for example base or xdc.
KEYBAN_BASE_URLoptional 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_BLOBoptional 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_FILEoptional Path the server writes its log to.
MCP_LOG_LEVELoptional 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 mcp
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: setup_instructions, get_wallet_instructions, list_my_wallets, use_wallet.
  5. 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