Skip to content
VS Code

agentpay for VS Code

io.github.romudille-bit/agentpay

Budget-capped x402 payments for AI agents: verifiable receipts, trust routing, 17 free tools.

client:VS Code transport:stdio runtime:npm

Install agentpay in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "agentpay-base-key",
      "description": "AGENTPAY_BASE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agentpay-max-spend",
      "description": "AGENTPAY_MAX_SPEND",
      "password": true
    }
  ],
  "servers": {
    "agentpay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@romudille/agentpay-mcp"
      ],
      "env": {
        "AGENTPAY_BASE_KEY": "${input:agentpay-base-key}",
        "AGENTPAY_MAX_SPEND": "${input:agentpay-max-spend}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

agentpay in other clients