Skip to content

Codex (Desktop)

Codex Desktop runs on the same adapter as Codex CLI. There is no separate install for Desktop. Once you have run the codex-install command, Desktop loads the hooks from ~/.codex/hooks.json automatically.

Follow the Codex (CLI) install. The codex-install command writes ~/.codex/hooks.json, and Codex Desktop reads that file. Nothing else is needed.

There are no documented capability differences between Codex Desktop and Codex CLI. Every engine command works identically with the TOKEN_OPTIMIZER_RUNTIME=codex prefix.

One surface detail: the telemetry hook profile adds PostToolUse rows that render in Desktop. If you want those rows visible, install with the telemetry profile:

Terminal window
TOKEN_OPTIMIZER_RUNTIME=codex python3 skills/token-optimizer/scripts/measure.py codex-install --profile telemetry

Same doctor as the CLI:

Terminal window
TOKEN_OPTIMIZER_RUNTIME=codex python3 skills/token-optimizer/scripts/measure.py codex-doctor --project "$PWD"

The dashboard runs on port 24843 at http://localhost:24843/token-optimizer.

Uninstall from the Codex CLI side. Removing the plugin and the daemon there removes them for Desktop too, because both surfaces share ~/.codex/hooks.json. See Codex (CLI).