Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Emanuele-web04/dpcode/llms.txt

Use this file to discover all available pages before exploring further.

Codex is the default provider in DP Code. When you start a session with the codex provider, DP Code launches codex app-server as a subprocess and communicates with it using JSON-RPC over stdio. All agent output is streamed to the browser through the DP Code WebSocket server.

Prerequisites

Before you can use the Codex provider, you need the Codex CLI installed and authorized on the machine running the DP Code server.
1

Install Codex CLI

Follow the installation instructions in the Codex repository for your platform.
npm i -g @openai/codex
2

Authorize Codex

Run codex at least once in a terminal to complete the login flow and confirm your account is active.
codex
3

Verify the binary is on your PATH

DP Code resolves the codex binary from your shell PATH by default. Confirm it is reachable:
codex --version
If the binary is not on PATH, set binaryPath in your provider settings to the absolute path of the executable.

Settings

Configure the Codex provider under providers.codex in your DP Code server settings.
providers.codex.binaryPath
string
default:"codex"
Path to the codex executable. Accepts a bare binary name resolved from PATH or an absolute path. Leave empty to use the default "codex".
providers.codex.homePath
string
default:""
Override the Codex home directory (equivalent to setting CODEX_HOME). When set, DP Code uses this path for Codex configuration and state instead of the default location. Leave empty to use Codex’s standard home directory.
providers.codex.customModels
string[]
default:"[]"
List of additional model slugs to make available in the model picker alongside the built-in options. Each entry must be a non-empty string with a maximum of 256 characters.
providers.codex.enabled
boolean
default:"true"
Set to false to disable the Codex provider entirely. Existing sessions are not affected until you reload.

Model selection

The following models are available by default. DP Code selects gpt-5.5 when no model is specified.
Model slugDisplay nameDefault reasoning effort
gpt-5.5GPT-5.5Medium
gpt-5.4GPT-5.4High
gpt-5.4-miniGPT-5.4 MiniHigh
gpt-5.3-codexGPT-5.3 CodexHigh
gpt-5.3-codex-sparkGPT-5.3 Codex SparkHigh
gpt-5.2-codexGPT-5.2 CodexHigh
gpt-5.2GPT-5.2High
You can also add custom model slugs using customModels if you have access to early-access or private models.

Model aliases

DP Code accepts short aliases in addition to canonical slugs:
AliasResolves to
5.5gpt-5.5
5.4gpt-5.4
5.3gpt-5.3-codex
gpt-5.3gpt-5.3-codex
5.3-sparkgpt-5.3-codex-spark

Reasoning effort options

All Codex models support the following reasoning effort levels. You set this per turn in the model options UI.
ValueLabel
lowLow
mediumMedium
highHigh
xhighExtra High
gpt-5.5 defaults to medium. All other models default to high.

Fast mode

Models based on the GPT-5 family support fast mode, which reduces latency at the cost of response depth. Toggle it in the model options panel.

Approval policies and sandbox modes

DP Code maps its two runtime modes to Codex approval and sandbox settings automatically.
DP Code runtime modeCodex approval policyCodex sandbox
approval-requireduntrustedread-only
full-accessneverdanger-full-access
full-access mode gives Codex unrestricted write access to your filesystem and network. Use it only in trusted, isolated environments.

How the session works

When you open a thread with the Codex provider, DP Code:
  1. Spawns codex app-server as a subprocess with JSON-RPC over stdio.
  2. Sends an initialize request to negotiate capabilities.
  3. Opens or resumes a Codex thread with thread/start or thread/resume.
  4. Forwards each user message as a turn/start JSON-RPC request.
  5. Streams events back to your browser over the DP Code WebSocket connection.
If a thread cannot be resumed (for example, after a Codex state database change), DP Code falls back to starting a fresh thread automatically.

Codex repository

Source code, releases, and installation instructions for the Codex CLI.

Codex app-server docs

Official documentation for the Codex app-server JSON-RPC protocol.

Build docs developers (and LLMs) love