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 variableValue
OPENAI_BASE_URLhttps://api.wos.one/v1
OPENAI_API_KEYthe key you create in the console

Steps

  1. Create an API Key in the console.

  2. Export the environment variables:

    export OPENAI_BASE_URL=https://api.wos.one/v1
    export OPENAI_API_KEY=your-key
  3. 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.

Hand AI integration over to Chonway API today

One Base URL for the full Claude & GPT lineup. Instant access, pay-as-you-go, up to 30% off official.