Charter: rent a machine by the hour

v0.8.1
io.github.drew-dot-com/charter Checked 48 minutes ago Published 4 days ago

Agents rent a sandbox, page fetcher or Linux home by the hour.

Values you need

VariableWhat it is
CHARTER_MAX_USDC_PER_HOURoptional The most one interval may cost, in USDC. A dearer price is never signed. Default: 0.02
CHARTER_MAX_USDC_PER_DAYoptional The most one UTC day may cost, in USDC. Default: 0.50
CHARTER_MCP_KEY_FILEoptional The wallet key file. Made on first run when absent. Default ~/.charter/mcp.key.
CHARTER_MCP_NO_NEW_KEYoptional Set to never make a key: with no key file only the free tools answer.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add charter -- npx -y charter-mcp@0.8.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "charter": {
      "args": [
        "-y",
        "charter-mcp@0.8.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "charter": {
      "args": [
        "-y",
        "charter-mcp@0.8.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "charter": {
      "args": [
        "-y",
        "charter-mcp@0.8.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.charter]
command = "npx"
args = ["-y", "charter-mcp@0.8.1"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http charter https://charterhome.dev/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "charter": {
      "args": [
        "-y",
        "mcp-remote",
        "https://charterhome.dev/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "charter": {
      "url": "https://charterhome.dev/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "charter": {
      "type": "http",
      "url": "https://charterhome.dev/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.charter]
command = "npx"
args = ["-y", "mcp-remote", "https://charterhome.dev/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: charter_offers, charter_wallet, charter_run_python, charter_fetch_pages, charter_rent_home, charter_lease, charter_receipt, charter_extend, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json