
OpenAI Codex CLI - an AI coding agent that runs in your terminal. Deploy as a persistent cloud workstation with Zeabur Terminal access.
Zeabur
Zeabur
Zeabur
Codex is OpenAI's open-source AI coding agent that runs in your terminal. It can understand your codebase, propose changes, execute commands, and help you build software faster — all through natural language conversation.
This template deploys Codex as a persistent cloud workstation on Zeabur with a web-based terminal (ttyd) accessible from your browser.
user and the password from the Instructions tab on the Zeabur dashboard.codex, then open https://auth.openai.com/codex/device in your browser and enter the one-time code shown in the terminal. See Codex Auth Docs.Instead of device code sign-in, you can set OPENAI_API_KEY in the Zeabur dashboard. Optionally set OPENAI_BASE_URL to use Zeabur AI Hub (e.g., https://hub.zeabur.com/v1).
All data under /home/node/ is persisted across restarts and redeployments.
| Command | Description |
|---|---|
codex | Start interactive Codex session |
codex "describe task" | Run Codex with a specific prompt |
codex exec "task" | Run non-interactively (for automation) |
codex resume | Resume a previous session |
codex --version | Check installed Codex version |
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | No | OpenAI API key (only needed if not using device auth) |
OPENAI_BASE_URL | No | Custom API endpoint (for Zeabur AI Hub) |
WEB_TERMINAL_PASSWORD | Auto | Password for web terminal login (auto-generated) |
Zeabur