Integration and examples

Codex and coding-agent setup

Codex, Claude Code and OpenAI-compatible IDE clients do not all speak the same protocol. Use the client-specific configuration below instead of treating a base URL as a universal adapter.

Choose the client before choosing a URL

Codex uses a Responses provider. Claude Code uses an Anthropic-compatible Messages gateway. An IDE that explicitly offers OpenAI Compatible typically asks for a /v1 base and an exact model ID; its agent features still need to be supported by the route.

A successful one-word answer checks basic text connectivity only. Tool execution, file access, long sessions and streaming are separate parts of an agent workflow. Do not infer support from a model being present in a dropdown.

ClientBase URLContract
Codexhttps://clodex.xyz/v1Responses
Claude Codehttps://clodex.xyzMessages
OpenAI-compatible clienthttps://clodex.xyz/v1Its configured supported endpoint

Manual Codex CLI configuration

Install official Codex and back up ~/.codex/config.toml. Merge this block rather than overwriting the file or creating a duplicate table. The model ID must be available to your key. env_key refers to CLODEX_API_KEY in the process environment; it must not contain the secret value.

# Merge into ~/.codex/config.toml; do not overwrite other settings.
model = "gpt-5.6-sol"
model_provider = "clodex"

[model_providers.clodex]
name = "Clodex"
base_url = "https://clodex.xyz/v1"
wire_api = "responses"
env_key = "CLODEX_API_KEY"
supports_websockets = false
requires_openai_auth = false

Codex App and the model catalog

The OS-specific installers in our /docs also configure a validated CLODEx model catalog. Keep a working model_catalog_json absolute path if the installer created it. Do not paste a placeholder path from a generic example; a missing file can break model selection before a request is sent.

For the VS Code extension, the provider configuration and key must be visible to the process running VS Code. Completely restart it after updating the environment. The same applies to an already-open desktop app. A variable set in one terminal is not proof that a GUI process inherited it.

CLODEx OS-specific installers · OpenAI: custom model providers

Check the provider without exposing the key

Open /status in Codex and inspect the model and provider. If another provider appears, inspect project-level configuration, launch arguments and managed settings rather than overriding organization policy.

Use a disposable directory with a README containing one known line. Ask the agent to read only that file and report the line count without changes or commands. Then separately test one permitted edit and inspect the diff. These tests can incur inference charges; they are not a free health endpoint.

Diagnose the actual failing layer

SymptomNext check
Missing environment variableCheck the launching process, not a different terminal
401Key validity and chosen provider
Model not foundExact ID, key restrictions and the installed catalog
Plain text works, tools failProtocol/tool support and the specific failing request
Interrupted streamCompletion event and usage before retrying

Claude Code is a separate setup

Use ANTHROPIC_BASE_URL=https://clodex.xyz without /v1 and your CLODEx key as ANTHROPIC_API_KEY. Select an exact Messages model. Do not copy the Codex TOML provider into Claude Code settings or assume a ChatGPT subscription authenticates this gateway.

Keep tool approvals and sandbox restrictions in place. A gateway configuration grants inference access; it does not authorize reading secrets, changing production or deleting a repository.

Claude Code setup · Responses lifecycle

Documentation and example scope

Connection settings follow CLODEx documentation. Examples target the stated protocol; they are not recorded inference results and do not promise identical features across models. A successful generation request can incur a charge.

Client configuration · API protocols

Frequently asked questions

Must I replace auth.json?

No. The documented CLODEx provider reads an environment variable with requires_openai_auth=false. Do not delete credentials for unrelated providers.

Should I disable permissions for a failing test?

No. Determine whether the failure is authentication, protocol compatibility, an actual denied operation or a stream interruption.

Is this a benchmark of coding agents?

No. This page documents connection and a bounded integration check. It makes no comparative speed or accuracy claim.

Connect CLODEX API to your application

One key-management layer, compatible endpoints and several LLM families for apps, agents and developer tools.