Setup
1
Get a key
Create a compute API key in the dashboard under Settings → API keys and add credits. Requests are billed from those credits.
2
Pick a model that fits
List the models and their context sizes:Use one whose
max_input_tokens is well above 13k.3
Point Claude Code at the Grid
x-api-key. If you prefer a Bearer header, set ANTHROPIC_AUTH_TOKEN instead of ANTHROPIC_API_KEY. The Grid accepts both.What to expect
- Grid models, not Claude. You get open models served by Singularity Layer nodes. They are smaller than Claude, so expect simpler answers and less reliable multi-step tool use.
- Streaming works. Claude Code always streams, which also avoids the timeout on long non-streaming replies.
- Your own tools work. File edits, shell commands and other Claude Code tools are defined by the client, so they run normally.
- Some features do not. Extended thinking with a budget, web search, web fetch and other server tools, PDF and document input, and prompt caching are not available on the Grid. Claude Code keeps working, but features that need them fail or are skipped.
- Cost. Each turn is billed per token from your credits, like any Grid call.
usage.cost_usdon each reply shows the charge.
