Integrations / Codex CLI
C

Codex CLI

OpenAI · Verified setup guide

OpenAI's terminal agent. Needs the Responses API, LuxeChain serves it.

Setup steps

  1. 1
    Get your keyRedeem a voucher at /redeem and copy the key.
  2. 2
    Edit ~/.codex/config.tomlAdd the model_providers block below and set model to a /models id.
  3. 3
    Export the keyexport LUXECHAIN_API_KEY="lxc_live_YOUR_KEY" (the name matches env_key in the block).
  4. 4
    Run CodexStart codex and send a prompt to confirm it answers.

Configuration example

toml
# ~/.codex/config.toml
model = "YOUR_MODEL_ID"                  # any model id from the /models page
model_provider = "luxechain"

[model_providers.luxechain]
name = "luxechain"
base_url = "https://api.luxechain.si/v1"
env_key = "LUXECHAIN_API_KEY"
wire_api = "responses"      # Codex speaks the Responses API only

Replace YOUR_MODEL_ID with any model from the catalogue. Never paste a real API key into a shared document.

Troubleshooting

Codex only speaks the Responses API. wire_api must be "responses"; the old "chat" value is no longer accepted.

If the tool rejects the endpoint, confirm the base URL exactly matches the value on the right, and that the key is active in your account.