• Playground
  • Models
  • Rankings
  • Pricing
  • Support
Docs
  • About Boundless
  • Quickstart
  • API Compatibility
  • Models
  • OpenAI SDK
  • Anthropic SDK
  • Vercel AI SDK
  • LangChain
  • Streaming
  • Tool calling
  • Reasoning
  • Errors
  • MPP & Agentic Payments
  • Credits & Billing
  • Rate Limits
  • Teams
  • Privacy & ZDR
  • FAQ
  • Coding agents
    Coding Agents & Harnesses
  • 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
  • Advanced
    System One
All systems operational
© 2026 BoundlessTermssupport@boundless.network

Codex app

Run the Codex app on Boundless models: the shared config.toml, why the key goes in .env, restarting the background server and common errors.

The Codex desktop app reaches Boundless through the same custom provider in ~/.codex/config.toml as Codex CLI, on the Responses API.

Install#

Install the Codex app from OpenAI's own documentation first. Then pick one way to point it at Boundless.

Run this in a terminal on macOS or Linux and choose Codex app:

curl -fsSL https://boundless.md/install | sh

Or run the package yourself, which also works on Windows:

npx -y @boundless.md/setup@latest

Setup signs you in through your browser, creates a key on your account and backs up every file it changes. To undo it, run curl -fsSL https://boundless.md/install | sh -s -- --revert. Need a key to configure by hand? Create one in API Keys. Setup also writes the key to Codex's own .env file, because desktop apps and background services never read a shell profile.

Configure#

Codex app#

The Codex desktop app reads the same ~/.codex/config.toml as the CLI:

model = "deepseek/deepseek-v4.1-flash"
model_provider = "boundless"

[model_providers.boundless]
name = "Boundless"
base_url = "https://api.inference.boundless.network/v1"
env_key = "BOUNDLESS_API_KEY"
wire_api = "responses"

An app started from your desktop never reads your shell profile, so put the key in ~/.codex/.env, which every Codex process loads:

echo 'BOUNDLESS_API_KEY=YOUR_API_KEY' >> ~/.codex/.env

The app talks to Codex's background server, which keeps the settings it started with. After changing either file, close open Codex sessions and restart it:

codex app-server daemon restart

Model ids#

The examples use deepseek/deepseek-v4.1-flash. Use any id from GET https://api.inference.boundless.network/v1/models; the models page lists each one with its price and limits.

Verify#

After changing either file, close open Codex sessions and restart the background server, then send a short message and check that a reply comes back.

To check the base URL and key on their own, list the models the gateway serves. A list of models means both are right. A 401 means the key is missing or wrong:

curl https://api.inference.boundless.network/v1/models -H "Authorization: Bearer YOUR_API_KEY"

Common errors#

What you see What it usually is
401 on every request The key is not in ~/.codex/.env. An app started from your desktop never reads your shell profile.
A change to the config has no effect Codex's background server keeps the settings it started with. Close open sessions and run codex app-server daemon restart.
403 with model_not_allowed Your team admin has not enabled that model for you. Ask them, or pick another. See Model access.

Every status and code is on the Errors page. Other harnesses are on the Coding Agents & Harnesses page.

NextOpenCode