Syntax

Codex

Use OpenAI's Codex CLI with Syntax.

Codex is OpenAI's official coding CLI. Syntax connects to it via the OpenAI-compatible Bridge, so Codex works unmodified.

Connect

syntax connect codex

The connect flow:

  • Locates Codex's configuration in the standard location for your OS.
  • Rewrites the model endpoint to point at the local Bridge.
  • Backs up the original configuration so syntax disconnect can restore it.

If Codex isn't installed, the command prints Codex's official install instructions and exits without making changes.

What works through Syntax

  • OpenAI-style streaming, tool calls, and reasoning all pass through.
  • Any model Syntax exposes — OpenAI-hosted, other hosted providers, local open-weight models, or managed remote inference via dUX — is reachable from Codex through the same endpoint.
  • If you sign in with an OpenAI Plus/Pro subscription, Syntax can route Codex requests to OpenAI's models alongside your OSS stack so simple, everyday, and complex tasks each land on the right backend.

Disconnect

syntax disconnect codex

Restores Codex's original endpoint configuration.

Where to start