Codex CLI VPS

OpenAI Codex CLI preinstalled on your own Linux server: a clean, isolated machine where the agent can run commands, install packages and run your tests without touching your computer.

VPS from $2.27/month, or by the hour. Pay with Nano, Bitcoin, Monero, USDT…

Deploy a Codex CLI VPS

Location
Plan

Loading plans…

Period
SSH key and hostname (optional)

Your public key (~/.ssh/id_ed25519.pub). A root password is always given too.

AI agents

Ready a few minutes after the server starts, used with your own account.

Pay with

Root access · IPv4 + IPv6 · ready in minutes · from 1 hour · renew anytime before the end

How it works

  1. Deploy a VPS with Codex CLI ticked, and pay with crypto.
  2. Connect over SSH as root (password or your SSH key), or open the browser console from your order page.
  3. Code: sign in with codex login --device-auth (your ChatGPT account) or an OpenAI API key, then run codex in your project.

Codex CLI VPS: FAQ

What do I need to use Codex on the VPS?

A ChatGPT plan that includes Codex, or an OpenAI API key. You sign in on the server with your own account; NanVPS does not resell model usage.

How do I sign in to Codex on a server without a browser?

Run codex login --device-auth over SSH, open the link it prints on any device and enter the one-time code (device code sign-in must be enabled in your ChatGPT security settings first). An OpenAI API key works too: printenv OPENAI_API_KEY | codex login --with-api-key.

Can I install Claude Code or OpenCode too?

Yes, tick several agents when ordering: they are all installed at first boot. Claude Code then connects from your order page and OpenCode gets its own web interface.

Which plan should I pick?

Codex runs on 1 vCPU and 1 GB RAM; pick 2 GB or more if the agent builds your project or runs its tests.

Other coding agents

Claude Code VPSOpenCode VPSGPU servers

Tick several agents when ordering: they are all installed on the same server.