Paseo Custom Provider Setup: Point Claude Code and Codex at Your Own API (December 2026)
Paseo takes a custom API through provider entries in ~/.paseo/config.json: a Claude-compatible provider with "extends": "claude" plus ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, and a Codex provider with "extends": "codex" plus OPENAI_BASE_URL and OPENAI_API_KEY. Paseo itself is Apache-2.0 and free, ships no model, and launches the Claude Code and Codex CLIs you already have — so those two entries are all that stand between the app and your own endpoint. This guide gives copy-paste entries for a QCode key, explains Paseo's /v1 append rule and its forced wire_api = "responses" for Codex, and maps the errors you get when a path or protocol is wrong (checked 2026-12-02, Paseo stable 0.18.2).
QCode is an independent third-party API service, not affiliated with Paseo, Anthropic or OpenAI; facts were checked on 2026-12-02 against the official pages linked below.
Updated 2026-12-03
Key facts
- Paseo is open source under Apache-2.0, "with no telemetry, tracking, or required Paseo account" (paseo.sh/docs/why, checked 2026-12-02).
- Latest release is 0.19.0-beta.1 on 2 December 2026 (beta, per the changelog); the current stable is 0.18.2 from 30 November 2026. The 0.19 beta requires Node.js 22.16.0+ for the CLI and daemon.
- Custom providers live at
$PASEO_HOME/config.json, typically~/.paseo/config.json(Paseo docs/custom-providers.md, checked 2026-12-02). - Claude provider:
"extends": "claude"withANTHROPIC_BASE_URL=https://api.qcode.cc/apiandANTHROPIC_AUTH_TOKEN=cr_your_key. - Codex provider:
"extends": "codex"withOPENAI_BASE_URL=https://api.qcode.cc/openai/v1andOPENAI_API_KEY=cr_your_key; Paseo appends/v1only when the URL does not already end in it. - Paseo always writes
wire_api = "responses"for Codex, and QCode's/openai/v1/responsesroute was checked on 2026-12-02. - Paseo Hub is optional: self-hosted is free under Apache 2.0; hosted Free is $0/month, with 50 agent runs per month and 1 seat; hosted Pro is $15 per seat per month with unlimited runs (checked 2026-12-02).
What Paseo is, and what it leaves to you
Paseo is an open-source agent orchestrator for desktop and mobile, not a model provider. Its documentation describes it as "a full agentic development environment" that "runs the coding agents you already use, with your subscriptions, credentials, configuration, skills, and MCP servers". A GitHub snapshot dated 2 December 2026 lists Claude Code, Codex, Copilot, OpenCode, Pi, Antigravity and Muse Code among the agents it can drive.
That design decides how the rest of this guide works. Paseo does not log in to Anthropic or OpenAI for you and does not ship Claude Code or Codex — it drives the copies already on your machine. You install the agent CLI yourself, sign in once the way you normally do, and Paseo finds the binary and gives it a UI, session history and a place to run several agents side by side. If you only ever use official logins, you never need to touch a config file.
Two things about the project are worth knowing before you build on it. It is maintained by one person, full time — the sponsor page says "no investors, no board and no company", funded by sponsorship and the optional Paseo Hub, and is signed "Mo, maintainer". And it is young: stable 0.18.2 landed on 30 November 2026, and 0.19.0-beta.1 followed on 2 December 2026 with provider switching inside a chat (history kept), queued messages stored on the host, and a Node.js 22.16.0 minimum for the CLI and daemon.
Install and first run
Install the desktop app from paseo.sh; if you prefer the terminal, the CLI install command is in Paseo's official docs. If you are going to run the 0.19 beta CLI or daemon, check your Node version first — 22.16.0 or newer is required.
- Install Claude Code and/or Codex and sign in to each one as usual. Paseo will not do this step for you.
- Start Paseo and add the project folder you want the agent to work in.
- Create an agent, pick the CLI, and send a one-line task. If this works with your official login, Paseo is wired correctly and any later failure is in the custom provider entry.
From here you can either keep the official login or add a provider entry that points the same CLI at another endpoint. The two entries below do the second.
Custom providers: the two entries in ~/.paseo/config.json
A custom provider is a named block in the config file at $PASEO_HOME/config.json — typically ~/.paseo/config.json — that extends a built-in agent and injects environment variables into it. Add these entries to the custom providers section of that file as shown in Paseo's docs/custom-providers.md:
"qcode-claude": {
"extends": "claude",
"label": "QCode Claude",
"env": {
"ANTHROPIC_BASE_URL": "https://api.qcode.cc/api",
"ANTHROPIC_AUTH_TOKEN": "cr_your_key"
}
},
"qcode-codex": {
"extends": "codex",
"label": "QCode Codex",
"env": {
"OPENAI_BASE_URL": "https://api.qcode.cc/openai/v1",
"OPENAI_API_KEY": "cr_your_key"
}
}
Three fields carry the whole setup. extends names the built-in agent whose behavior and config format the provider inherits. label is what you see in Paseo's agent picker, so name it after the endpoint, not the model. env is the set of variables Paseo hands to the CLI when it launches it — and this is where the two protocols differ.
Why the Claude entry uses ANTHROPIC_AUTH_TOKEN
QCode serves Claude on the Anthropic protocol at https://api.qcode.cc/api, and Claude Code reads ANTHROPIC_AUTH_TOKEN alongside ANTHROPIC_BASE_URL, which is the pair QCode documents for Claude Code. Paseo's own documentation uses the same variable in its Z.AI example, so this is a documented shape rather than a workaround. Keep the base URL exactly as written: no /v1, no trailing slash — Anthropic-protocol clients append /v1/messages themselves, and a wrong base path shows up as a 404 rather than an auth error.
Everything else in the entry can stay default. If you want a different default model, set it in Paseo's model picker after the provider appears, or add the model to the entry if your Paseo version supports it — the model IDs are the same ones Claude Code accepts.
Why the Codex entry works with /openai/v1
Codex speaks the OpenAI Responses API, and Paseo handles that in two documented ways. First, OPENAI_BASE_URL and OPENAI_API_KEY are enough to point Codex at any OpenAI-compatible endpoint, and Paseo forces requires_openai_auth to false once a key is present. Second, Paseo writes the Codex config with wire_api = "responses" — you do not set that yourself.
The path rule matters more than it looks. Paseo appends /v1 only if OPENAI_BASE_URL does not already end in /v1. QCode's URL already does, so nothing is appended and Codex calls https://api.qcode.cc/openai/v1/responses, a route that exists (checked 2026-12-02). If you paste https://api.qcode.cc/openai instead, Paseo appends /v1 and you land on the same place. Leave off any trailing slash, so the URL ends exactly in /v1 and Paseo appends nothing.
| Claude provider | Codex provider | |
|---|---|---|
extends |
"claude" |
"codex" |
| Base URL | https://api.qcode.cc/api |
https://api.qcode.cc/openai/v1 |
| Key variable | ANTHROPIC_AUTH_TOKEN |
OPENAI_API_KEY |
| Wire protocol | Anthropic Messages (/v1/messages) |
Responses (wire_api = "responses") |
| Default model on QCode | claude-opus-5-5 |
gpt-6.2-sol |
/v1 appended by Paseo |
No | No — already present |
Before you save the file
- The file is JSON: no trailing commas and no comments. One malformed entry can keep Paseo from reading the others.
- Back it up first:
cp ~/.paseo/config.json ~/.paseo/config.json.bak. - If you set
PASEO_HOME, the file is$PASEO_HOME/config.jsonrather than~/.paseo/config.json. - The same
cr_key also works onasia.qcode.ccandus.qcode.cc— swap the host in both URLs if one is closer to you.
Then open the agent list, pick the new label and run a task. If the label does not appear, the file probably did not parse; restore the backup and check the comma placement.
Picking models and confirming the route
Start with the model ID QCode recommends for each protocol: claude-opus-5-5 for the Claude provider and gpt-6.2-sol for the Codex provider. claude-sonnet-5-5 is the cheaper Claude option for routine edits. Model IDs are case-sensitive and must match /models exactly.
Then prove the route with a task small enough that a failure is unambiguous: open a scratch folder, ask the agent to list the files in it, and watch where the request goes. If the agent answers, the provider entry, key and model are all correct.
If it does not answer, test the key outside Paseo so you are not debugging two layers at once:
curl https://api.qcode.cc/openai/v1/chat/completions \
-H "Authorization: Bearer cr_your_key" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-6.2-sol","messages":[{"role":"user","content":"ping"}]}'
A normal reply means the key and the OpenAI path are fine and the problem is in Paseo's provider block. A 401 means the key itself is wrong or inactive.
| Symptom in Paseo | Likely cause | Fix |
|---|---|---|
| 401 or "invalid API key" | Key typo, revoked key, or the provider is not the one selected | Re-paste the cr_ key into env; make sure the agent is running the QCode provider, not the default login |
| "model not available" on a Claude model | Claude model ID sent to the OpenAI path | Use the Claude provider for claude-*; QCode serves GPT models only on the OpenAI-compatible API |
| "model not available" on a GPT model | GPT model ID sent to the Anthropic path | Use the Codex provider for gpt-* |
| 404 from the API | Base URL path is wrong — extra /v1, trailing slash, or a missing segment |
Claude: https://api.qcode.cc/api; Codex: https://api.qcode.cc/openai/v1 |
| Agent starts but no model answers | CLI not installed, not on PATH, or not signed in |
Run the CLI directly in a terminal first, then restart Paseo |
| Codex entry ignored | A stale Codex config still points at the old endpoint | Check the Codex config Paseo generates; the wire_api value must be responses |
Mobile, remote use, and where the quota goes
Paseo's GitHub description is "Orchestrate multiple coding agents from desktop and mobile", and the mobile app connects to the agents running on your machine over an optional encrypted relay. Paseo Hub is an optional hosted service: the Hub page says "Paseo works on its own without Hub", and self-hosting is free under Apache 2.0. The hosted tiers listed on 2026-12-02 are Free at $0/month, with 50 agent runs per month and 1 seat, and Pro at $15 per seat per month with unlimited runs.
Quota is the part people underestimate. Paseo is free; the tokens are not. Every agent you start spends the quota behind the key in its provider entry — so two parallel Claude agents on the same cr_ key draw down the same daily allowance. On QCode plans with a daily quota, that allowance resets at 00:00 Beijing time (UTC+8), and each parallel agent makes it run out faster. If you plan to run several at once, read /parallel-agents-quota-cost before you queue a fleet. When both providers work on one long task, a common split is Claude for planning and edits and Codex for an independent check, rather than having both rewrite the same files; the waste there is reading the same context twice. The 0.19.0-beta.1 changelog also lists switching a chat to another provider while keeping its history, which suits trying a cheaper model first; that is a beta feature, so on stable 0.18.2 check whether your build shows the option.
FAQ
Is Paseo free?
The app is free and open source under Apache-2.0, with no required account. Paseo Hub is optional: self-hosted is free; hosted Free is $0/month, with 50 agent runs per month and 1 seat; hosted Pro is $15 per seat per month with unlimited runs (checked 2026-12-02).
Does Paseo collect telemetry?
No. Paseo's own docs say it is "open source under Apache-2.0, with no telemetry, tracking, or required Paseo account".
Can Paseo use Claude Code with a custom base URL?
Yes. Add a provider with "extends": "claude" and put ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN in its env block in ~/.paseo/config.json. Paseo launches Claude Code with those variables, and Claude Code talks to that endpoint instead of Anthropic.
Why does Codex in Paseo call /v1/responses ?
Because Paseo writes Codex's config with wire_api = "responses", and Codex's Responses API uses that path. That is why the OpenAI base URL must be the OpenAI-compatible root and why a chat-completions-only endpoint will not work for Codex in Paseo.
Can I use Chinese models in Paseo?
Yes. QCode lists GLM, Kimi, DeepSeek and Qwen models on /models, and you can try one in the Codex provider by setting its model ID the same way you would a GPT model. Test a small task first, because not every model supports Codex's Responses-API tool calls. If you route a non-Claude model through a Claude-compatible provider instead, set "disallowedTools": ["WebSearch"], because WebSearch is Anthropic-only.
How do I know the provider entry is actually being used?
Open the agent Paseo started and check which provider label it shows, then send a task and look at the usage on your API account. If usage moves on the QCode side, the request went through your key. If the agent answers but no usage appears, it is still on the official login.
Paseo or T3 Code?
Both are free and both drive the CLIs you already have. Paseo is Apache-2.0, runs on desktop and mobile, and is explicit about no telemetry. T3 Code is MIT-licensed, built by T3 Tools Inc., and documents a separate Claude instance that takes ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN and an explicitly empty ANTHROPIC_API_KEY for routers. If you want the shortest path to a custom endpoint, Paseo's config.json is the most explicit of the two — see /t3-code-vs-orca-vs-paseo for the full comparison.
Pay-as-you-go: one key for both Paseo providers
The two providers above can share a single QCode key, because QCode serves Claude on the Anthropic protocol and GPT on the OpenAI protocol from the same account. If you only need Paseo for occasional sessions, pay-as-you-go packs start at $4 for $30 of usage and are valid 7 days; Anthropic and OpenAI models are billed at the official API price ×1.0, and Chinese models at the rate shown on /models. See /pricing for monthly plans with daily quotas.