Self-Hosted AI Agent
The back of a Mac mini: power, Ethernet, HDMI and three Thunderbolt ports

Can Codex run on a VPS?

Yes, on a plan with 4 GB of memory (8 GB recommended) running Ubuntu 20.04+ or Debian 10+.

What Codex needs

From Codex’s own documentation, checked 28 October 2026.

Operating systemmacOS 12+, Ubuntu 20.04+ or Debian 10+, or Windows 11 via WSL2
Memory4 GB minimum, 8 GB recommended
ProcessorThe requirements table does not name a processor architecture

What a VPS brings

Good to knowA 2 vCPU plan with 4–8 GB of RAM cost $15–24 a month in September 2026 (Hostinger KVM 2 renewal price, Vultr, DigitalOcean); OpenClaw's docs also show it running on a 1 GB, $6-a-month Droplet with swap.
Left on all dayAlways on and reachable without touching your home network, but you pay every month and your agent and its files live on someone else's computer.

Local models on a VPS

Typical 4–8 GB plans have no graphics card, so a local model would run slowly on shared processors. A cloud model is the usual choice on a VPS. The memory table shows what each model size needs.

Questions

Is a VPS enough for Codex?

Yes, on a plan with 4 GB of memory (8 GB recommended) running Ubuntu 20.04+ or Debian 10+.

What does it cost to keep a VPS running for Codex?

A 2 vCPU plan with 4–8 GB of RAM cost $15–24 a month in September 2026 (Hostinger KVM 2 renewal price, Vultr, DigitalOcean); OpenClaw's docs also show it running on a 1 GB, $6-a-month Droplet with swap.

Can Codex use a local model on a VPS?

Typical 4–8 GB plans have no graphics card, so a local model would run slowly on shared processors. A cloud model is the usual choice on a VPS.

Other combinations

Codex on An old laptop · An old office PC · An N100 mini PC · A Mac mini · A Raspberry Pi 5.

On a VPS: OpenClaw · Hermes Agent · Claude Code. See every agent and computer.

Sources