An agent with a budget

Three ways in. Each one knows the price before it spends and cannot spend past its limit.

  • A key with a capMake a key and set its budget in credits. The database refuses the run or the rental that would cross it. Stop the key at any time.
  • An MCP serverEight tools for Claude Code, Cursor or any MCP client: list_models, run_model, get_output, get_balance, list_gpus, rent_gpu, list_instances, stop_instance.
  • HTTP 402No account. Ask, pay USDC with the reference, ask again. The payment is read on chain before anything runs.
Example
$ cd mcp && npm install
$ claude mcp add texol --env TEXOL_KEY=txl_... -- node mcp/index.mjs
> list_gpus
> rent_gpu { gpu: "rtx-4090", budget: 2, idle_minutes: 10 }
> list_instances
> stop_instance { id: "gpu_..." }

Make a keyMCP setupHTTP 402