All apps/Codex

Codex

codex

OpenAI's coding agent, running in the terminal.

Runs as codex|macOS, Linux, Windows|developers.openai.com

Command form

ai-draft · 3 tasks · 13 fields

Start the interactive Codex agent with a prompt, model and sandbox choices. Config overrides, remote and feature flags are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui codex
Start CodexExample values, fixed in this page — nothing here reaches a terminal
Basic
Prompt
string
Model
string
Working directory
directory
Sandbox
3 choicesenum
Approval policy
4 choicesenum
Advanced
Live web search
--search
TasksEach one presets the form for one job
Start a session
promptmodelcdsandboxapprovalsearch
Read-only session
promptmodelcdsandboxapproval
ParametersOnly these flags are editable in the form
Prompt
Initial instructions for the agent.
string · positional 0
Model
string
--model-m
Sandbox
enum
--sandbox-sread-onlyworkspace-writedanger-full-access
Approval policy
enum
--ask-for-approval-auntrustedon-failureon-requestnever
Working directory
path
--cd-C
Config profile
string
--profile-p
Images
path · repeatable
--image-i
Live web search
boolean
--search

codex exec

Run non-interactively

Run Codex non-interactively with one prompt.

Run non-interactivelyExample values, fixed in this page — nothing here reaches a terminal
Basic
Prompt*
string
Model
string
Working directory
directory
Sandbox
3 choicesenum
Live web search
--search
TasksEach one presets the form for one job
Run a prompt
promptmodelcdsandboxsearch
ParametersOnly these flags are editable in the form
Prompt
string · positional 0
Model
string
--model-m
Sandbox
enum
--sandbox-sread-onlyworkspace-writedanger-full-access
Working directory
path
--cd-C
Live web search
boolean
--search
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed codex against its version. A form that does not match your version is not offered.