Skip to content
VS Code

tryx402 for VS Code

io.github.crypto-yannso/tryx402

Budget router over x402: hard budget caps, idempotent paid calls, cost ledger, server-side pricing.

client:VS Code transport:stdio runtime:pypi

Install tryx402 in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gateway-max-budget-usd",
      "description": "GATEWAY_MAX_BUDGET_USD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "tryx402-api-key",
      "description": "TRYX402_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "tryx402": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tryx402"
      ],
      "env": {
        "GATEWAY_MAX_BUDGET_USD": "${input:gateway-max-budget-usd}",
        "TRYX402_API_KEY": "${input:tryx402-api-key}"
      }
    }
  }
}

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

tryx402 in other clients