Give an AI agent a real Solana wallet without giving it your money. The agent gets a spending allowance the SPL Token program enforces on-chain, plus guardrails (per-tx cap, daily cap, recipient and host allowlists, expiry, kill switch), x402 payments, and a one-call on-chain deploy.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add onchain-agent-wallets --env OWNER_SECRET_KEY='<OWNER_SECRET_KEY>' -- npx -y @three-ws/onchain-agent-wallets~/.codex/config.toml
[mcp_servers.onchain-agent-wallets]
command = "npx"
args = ["-y", "@three-ws/onchain-agent-wallets"]
env = { OWNER_SECRET_KEY = "<OWNER_SECRET_KEY>" }
# codex mcp add onchain-agent-wallets --env OWNER_SECRET_KEY='<OWNER_SECRET_KEY>' -- npx -y @three-ws/onchain-agent-wallets~/.cursor/mcp.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"onchain-agent-wallets": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}Environment variables
OWNER_SECRET_KEY
Replace the placeholders with your own credentials and keep them out of version control.