Skip to content
VS Code

seatledger for VS Code

io.github.agentwares/seatledger

Local ledger of Claude Code and Codex tokens, API-equivalent cost, limits and token-rate changes.

client:VS Code transport:stdio runtime:npm

Install seatledger in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "claude-config-dir",
      "description": "CLAUDE_CONFIG_DIR",
      "password": true
    },
    {
      "type": "promptString",
      "id": "codex-home",
      "description": "CODEX_HOME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "seatledger-home",
      "description": "SEATLEDGER_HOME",
      "password": true
    },
    {
      "type": "promptString",
      "id": "seatledger-key",
      "description": "SEATLEDGER_KEY",
      "password": true
    }
  ],
  "servers": {
    "seatledger": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "seatledger"
      ],
      "env": {
        "CLAUDE_CONFIG_DIR": "${input:claude-config-dir}",
        "CODEX_HOME": "${input:codex-home}",
        "SEATLEDGER_HOME": "${input:seatledger-home}",
        "SEATLEDGER_KEY": "${input:seatledger-key}"
      }
    }
  }
}

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

seatledger in other clients