Coding Agents & Harnesses
Set up Claude Code, Codex CLI, OpenCode and other agent clients with one command, or point them at the gateway by hand.
One command sets up most harnesses for you. Each harness has its own guide, listed below. For anything else, if your client lets you set a base URL and an API key, it works here: use the values under Set up by hand and send a request.
Laya, our System One model, cannot be a harness's model, but a harness can call it before each tool call. System One has a Claude Code hook that asks before a destructive command runs.
Set up with one command#
Run this in a terminal on macOS or Linux:
The script runs the setup package with your Node.js 22 or later, or downloads a private copy of Node into ~/.boundless first. On Windows, or to skip the script, run the package yourself:
It signs you in through your browser, creates a key on your account, and asks which harnesses to configure. On a machine with no browser, such as over SSH, it shows a code you approve from any other device. It stores the key in the macOS Keychain, the Linux Secret Service or a private file, and exports it as BOUNDLESS_API_KEY from your shell profile without writing the key into the profile. Hermes, Codex and OpenClaw also get it in their own .env file, because their desktop apps and background services never read a shell profile. You pick a main and a background model from the live catalog, with prices. Every file it changes is backed up first, and it finishes with one small request per model and wire format, showing what each cost.
It offers every harness in the guides below, except Mastra, a library you configure in code, and Muse, which cannot use Boundless. Where a harness keeps its configuration in a file, setup writes it; where it lives in an app's settings, as in Cursor, setup prints the steps from that harness's page.
- For Claude Code you can keep your Anthropic login: choose Anthropic account + Boundless, and
/modellists the Boundless models beside Anthropic's. It needs Claude Code 2.1.282 or later and is a preview on Linux and Windows. - Project scope keeps the key in
.boundless/api-key, ignored by git, and writes project-level configuration where the harness has one.
To put everything back the way it was before the first run:
The key stays on your account until you revoke it in API Keys. To have your coding agent do the setup instead, point it at the setup guide: the same steps, written for an agent.
Guides for each harness#
One page per harness, with install, the config file, model ids, a verify step and common errors:
- Claude Code
- Claude Desktop
- Codex CLI
- Codex app
- OpenCode
- Cursor
- Cline
- GitHub Copilot
- Kilo Code
- Qwen Code
- Amp
- CodeBuddy
- Hermes
- Hermes Desktop
- JetBrains AI & Junie
- Cherry Studio
- Mastra
- MiMo Code
- Muse
- omp (Oh My Pi)
- OpenClaw
- OpenHands
- T3 Code
Set up by hand#
The API speaks three wire formats. Your client's format decides which base URL you give it:
| Wire format | Base URL | Credential |
|---|---|---|
| OpenAI chat completions | https://api.inference.boundless.network/v1 |
Authorization: Bearer <key> |
| OpenAI Responses (Codex-compatible) | https://api.inference.boundless.network/v1 |
Authorization: Bearer <key> |
| Anthropic Messages | https://api.inference.boundless.network |
x-api-key: <key> or Authorization: Bearer <key> |
Anthropic clients append
/v1/messagesthemselves, so that row takes the root. Need a key first? Create one in API Keys.
OpenAI SDK#
Works unchanged against chat completions. This example forces one tool call, assembles streamed arguments, returns the local result, then streams the final answer. The last chunk carries exact token counts.
The Quickstart has a request and a streaming example in cURL, Python and TypeScript. Streaming and Tool calling have the longer examples, including streamed tool-call arguments and exact token counts.
Everything else#
Roo Code, Continue, Aider, Zed and most other OpenAI-compatible clients take the same three values:
We serve GET /v1/models, so tools that fetch the list populate their own picker.
Two agents cannot be pointed here:
- Devin: Devin Cloud, the Devin CLI and Devin Desktop (formerly Windsurf) choose only among models Cognition hosts, and Cognition does not support third-party LLM API keys.
- Google Antigravity: the IDE and CLI take no bring-your-own key or endpoint. The Antigravity SDK accepts an OpenAI-compatible
base_urlbut sends no API key, so it cannot authenticate here either.
When something doesn't work#
Read the error body as well as the status: two different problems share HTTP 429, and a third is a 402.
| What you see | What it usually is |
|---|---|
401 on every request |
Wrong header. Switch between Authorization: Bearer and x-api-key. |
| An error naming a model you never chose | The harness is sending its default. Set the model explicitly, including small/background slots. |
Empty reply, stop_reason: max_tokens |
The output budget has to cover thinking too. Give reasoning models 1024+. |
403 with model_not_allowed |
Your team admin hasn't enabled that model for you. Ask them, or pick another; see Model access. |
402 with budget_exceeded |
Credits or key budget reached zero. Do not retry; add credits. |
429 with a rate-limit message |
At one of your team's admission caps. |
Every status and code is on the Errors page. None of those? Send us the model ID and a timestamp.