Configuring Codex with a Third-Party API
To point Codex at a third-party API, set OPENAI_BASE_URL to the Chonway API endpoint (https://api.wos.one/v1) and add your key — it works out of the box.
📝 Placeholder draft, pending polish.
In one line
Set OPENAI_BASE_URL=https://api.wos.one/v1 and OPENAI_API_KEY, and Codex routes through NexusAPI.
Config at a glance
| Environment variable | Value |
|---|---|
OPENAI_BASE_URL | https://api.wos.one/v1 |
OPENAI_API_KEY | the key you create in the console |
Steps
-
Create an API Key in the console.
-
Export the environment variables:
export OPENAI_BASE_URL=https://api.wos.one/v1 export OPENAI_API_KEY=your-key -
Use Codex as usual; requests route through NexusAPI.
Tips
- The OpenAI-compatible Base URL must include
/v1. - The same key works with other OpenAI-compatible tools (e.g. Cursor).
Wrap-up
NexusAPI is dual-protocol and pay-as-you-go. See live, callable models and real-time prices in the console.