natbox.io

Codex CLI on your own VPS

OpenAI's coding agent in your terminal, on a server that keeps working when your laptop is closed.

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

  1. Order Box Plus or bigger and choose Codex CLI as the app, or install it later from the App tab.
  2. We install the official release binary on Debian or Ubuntu.
  3. Log in over SSH and run codex. Sign in with your ChatGPT account or use an OpenAI API key.
  4. Run long tasks inside tmux (tmux new -s work) so they survive a disconnect; come back with tmux attach -t work.

Which plan

PlanRAMGood forPrice
Box Plus2 GBOne project, normal builds and tests$2.25 a month
Box Max4 GBBig 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

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.