Onchain Agent Wallets for VS Code
io.github.nirholas/onchain-agent-wallets
Give an AI agent a Solana spending allowance instead of your key. Chain-enforced cap, x402.
client:VS Code
transport:stdio
runtime:npm
Install Onchain Agent Wallets in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "owner-secret-key",
"description": "OWNER_SECRET_KEY",
"password": true
},
{
"type": "promptString",
"id": "oaw-network",
"description": "OAW_NETWORK",
"password": true
},
{
"type": "promptString",
"id": "solana-rpc-url",
"description": "SOLANA_RPC_URL",
"password": true
},
{
"type": "promptString",
"id": "oaw-state-dir",
"description": "OAW_STATE_DIR",
"password": true
},
{
"type": "promptString",
"id": "require-confirm",
"description": "REQUIRE_CONFIRM",
"password": true
}
],
"servers": {
"onchain-agent-wallets": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "${input:owner-secret-key}",
"OAW_NETWORK": "${input:oaw-network}",
"SOLANA_RPC_URL": "${input:solana-rpc-url}",
"OAW_STATE_DIR": "${input:oaw-state-dir}",
"REQUIRE_CONFIRM": "${input:require-confirm}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs