Codex CLI on your own VPS
Codex CLI is OpenAI's open-source coding agent for the terminal. It reads your code, runs commands and edits files. On a server, a long task keeps running after you disconnect, you can check in from anywhere over SSH, and the agent stays away from your personal files.
Order Box Plus with Codex · All AI agent apps
How the one-click app works
- Order Box Plus or bigger and choose Codex CLI as the app, or install it later from the App tab.
- We install the official release binary on Debian or Ubuntu.
- Log in over SSH and run
codex. Sign in with your ChatGPT account or use an OpenAI API key. - Run long tasks inside
tmux(tmux new -s work) so they survive a disconnect; come back withtmux attach -t work.
Which plan
| Plan | RAM | Good for | Price |
|---|---|---|---|
| Box Plus | 2 GB | One project, normal builds and tests | $2.25 a month |
| Box Max | 4 GB | Big code bases and heavy builds | $4.00 a month |
OpenAI lists 4 GB of RAM; Box Max matches that, and Box Plus works for most single projects.
Good to know
- Your ChatGPT plan's limits or API billing apply as usual; the server adds nothing.
- Use SSH keys or deploy keys for your repositories, and keep API keys out of them.
- Take a snapshot before letting the agent make big changes.
- natbox is not affiliated with OpenAI. We install the official release; you need your own OpenAI account.
Codex on a VPS questions
Do I need an API key?
No. You can sign in with a ChatGPT plan, or use an API key if you prefer API billing.
Can I use Claude Code too?
Yes, on the same server: see Claude Code on a VPS.
How do I update Codex?
Install a newer release the same way, whenever you choose. You have root.
Also see: VS Code in the browser, learn Linux on a VPS.