Connect Codex
Configure an independent profile for an Orbis Responses route, preserve your existing login, and verify the model, conversation continuation, and file tools.
Connect Codex CLI to an Orbis GPT route. For installation, your first file task, and advanced usage, see the illustrated Codex beginner tutorial (external source).
1. Prepare a Responses Route Key
In the model marketplace, choose a GPT text model, such as GPT-6.1 Sol, and create a key for a route that supports OpenAI Responses. A key is bound to a route; changing only the model name does not switch routes.
Codex requires Responses streaming, conversation continuation, and tool calling. These instructions do not apply directly to a route that offers only Chat Completions. GPT image models are not supported by this guide.
2. Create an Independent Configuration
First, run codex --version. The source instructions use independent profile files in version 0.134.0 or later, without replacing your default configuration. This is the archived source's version requirement, not an independently verified current compatibility claim.
Create ~/.codex/orbis.config.toml. On Windows, use %USERPROFILE%\.codex\orbis.config.toml. If that file already exists, back it up before merging these settings:
model = "gpt-6.1-sol"
model_provider = "orbis"
web_search = "disabled"
[model_providers.orbis]
name = "Orbis"
base_url = "https://api.orbiorbi.com/v1"
wire_api = "responses"
env_key = "ORBIS_API_KEY"Keep /v1 in the URL; do not append /responses. The env_key value is an environment variable name, not your API key. Place the first three settings before the table header. Do not wrap them in the older [profiles.orbis] section. Disable web search initially, then check the selected route's additional capabilities after connecting.
Check the current model and configuration under the source route's Quick Connect → Tool Setup → Codex CLI. If your Codex version does not recognize the model, use the matching model catalog supplied by that route. Do not arbitrarily substitute another model alias or specify a catalog file that does not exist.
3. Enter Your Key and Launch the Profile
Open a terminal in your project directory. Paste your key when prompted; the input will be hidden.
$env:ORBIS_API_KEY = [System.Net.NetworkCredential]::new('', (Read-Host 'Paste your Orbis key' -AsSecureString)).Password
codex --profile orbisEnter the key again when you open a new terminal. To resume a session, use codex --profile orbis resume. To return to your original default configuration, exit and run codex without a profile. Project and managed settings may still affect the effective configuration.
4. Verify a Real Request
- Run
/statusto check the provider, model, and directory. - Send “Reply only with OK,” then check Usage Logs for the actual model, route, and charge. A real request consumes API credit. The local preview logs are not connected to upstream usage.
- Read a practice file and ask a follow-up question to test tool calling and conversation continuation separately.
| Symptom | What to Check |
|---|---|
Missing ORBIS_API_KEY or 401 | Set the variable in the same terminal that launches Codex and confirm that the key is valid. |
| Configuration is not applied | Confirm that your version supports independent files and that you included --profile orbis. |
| 404 or model unavailable | Check the /v1 URL, exact model ID, and route assigned to the key. |
| Chat works, but tools or follow-up requests fail | Check the route's Responses compatibility and retain a redacted copy of the error. |
This configuration is for the CLI. An application launched from a desktop shortcut does not automatically inherit your terminal's environment variables. See the official gateway documentation for configuration boundaries in other clients. For full installation and task examples, see the illustrated tutorial (external source).