• 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

Qwen Code

Run Qwen Code on Boundless models: install, the settings.json modelProviders entry, model ids, a verify command and common errors.

Qwen Code reaches Boundless through an OpenAI-compatible entry under modelProviders in ~/.qwen/settings.json, with the base URL https://api.inference.boundless.network/v1.

Install#

Install Qwen Code from its own documentation first. Then pick one way to point it at Boundless.

Run this in a terminal on macOS or Linux and choose Qwen Code:

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.

Configure#

Qwen Code#

Declare the models under modelProviders in ~/.qwen/settings.json and put the key in the environment. envKey names the variable to read:

{
  "modelProviders": {
    "openai": [
      {
        "id": "deepseek/deepseek-v4.1-flash",
        "name": "deepseek/deepseek-v4.1-flash",
        "envKey": "BOUNDLESS_API_KEY",
        "baseUrl": "https://api.inference.boundless.network/v1"
      }
    ]
  },
  "model": { "name": "deepseek/deepseek-v4.1-flash" },
  "security": { "auth": { "selectedType": "openai" } }
}

modelProviders.openai is a list: repeat the entry once for each id from GET https://api.inference.boundless.network/v1/models and the whole lineup shows up in /model. model.name is then what picks the active one; leave it out and the first entry in the list wins. Give every model a distinct id; two entries that share an id can only be told apart by model.baseUrl.

export BOUNDLESS_API_KEY="YOUR_API_KEY"
qwen

The variable can also live in ~/.qwen/.env. security.auth.apiKey and security.auth.baseUrl still work but are deprecated in favour of this shape; /doctor shows which auth is active.

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#

Run the export and qwen commands from the setup above, 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 BOUNDLESS_API_KEY is not set in the shell that started Qwen Code, or in ~/.qwen/.env.
Not sure which auth is active Run /doctor. It shows which auth is active.
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.

NextAmp