VIEWPORT
For developers

Codex

Run OpenAI Codex sessions under the Viewport daemon. Session detection, plan adapter, hook bridge.

BetaWired and usable, but the surface may shift before 1.0.

The Codex adapter is wired but has fewer polish steps than Claude Code. Sessions stream correctly; plan templates work; permission gates are CLI-level rather than fine-grained.

How it's wired

  1. The Codex CLI exposes session lifecycle hooks via its config file (~/.codex/config.toml).
  2. Viewport's vpd install writes a hook entry that posts session events to the local daemon.
  3. Frames flow through the same path as Claude Code (local socket → daemon → relay → platform).

Install

vpd install

You'll see:

[+] codex found at /usr/local/bin/codex
[+] Installing Codex hook... appended to ~/.codex/config.toml

Verify:

cd ~/code/api
codex "fix the failing auth tests"

In a separate terminal:

vpd logs --follow

You should see session frames.

Plan template

Codex's plan-then-execute mode is similar in shape to Claude Code's. Override the template per-workflow:

plan_template: ./prompts/codex-plan.md

If no template is supplied, Viewport uses a generic plan structure (goal / steps / files / risks).

Differences from Claude Code

CapabilityClaude CodeCodex
Per-tool permission promptsFine-grainedCLI-level (whole session)
Sub-agent nestingPartial (flattened)N/A
Streaming transcriptYesYes
Cost trackingPer-sessionPer-session
Hook installerFirst-classFirst-class

For most flows the experience is interchangeable. If you need fine-grained permission gating, Claude Code is the better target today.

Where to go next

On this page