# Onchain Agent Wallets

> Onchain Agent Wallets is an open-source MCP server. Give an AI agent a Solana spending allowance instead of your key. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://three.ws
- **Repository:** https://github.com/nirholas/onchain-agent-wallets
- **MCP Registry name:** io.github.nirholas/onchain-agent-wallets
- **Listing updated:** 2026-11-13

## About

Give an AI agent a Solana spending allowance instead of your key. Chain-enforced cap, x402.

## Install

### Claude Code (Terminal)

```sh
claude mcp add onchain-agent-wallets --env OWNER_SECRET_KEY='<OWNER_SECRET_KEY>' -- npx -y @three-ws/onchain-agent-wallets
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "onchain-agent-wallets": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/onchain-agent-wallets"
      ],
      "env": {
        "OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "onchain-agent-wallets": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/onchain-agent-wallets"
      ],
      "env": {
        "OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "onchain-agent-wallets": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/onchain-agent-wallets"
      ],
      "env": {
        "OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "onchain-agent-wallets": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/onchain-agent-wallets"
      ],
      "env": {
        "OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "onchain-agent-wallets": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/onchain-agent-wallets"
      ],
      "env": {
        "OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Onchain Agent Wallets free?

Yes. Onchain Agent Wallets is open source, so you can use and self-host it for free.

### How do I add Onchain Agent Wallets to Claude Code?

Run this command in your terminal: claude mcp add onchain-agent-wallets --env OWNER_SECRET_KEY='<OWNER_SECRET_KEY>' -- npx -y @three-ws/onchain-agent-wallets

---
Source: https://ai-powered.com/mcp/onchain-agent-wallets
