Codex hosting
OpenAI's coding agent CLI on your server. Deploy to a dedicated VPS in seconds — database auto-created, SSL installed, firewall locked down from the first boot.
Latest
Versions
None
Database
Agent
Category
What is Codex?
Codex is OpenAI's open-source coding agent for the terminal. It can read a project, explain code, make changes you ask for and run commands, with your approval when it needs to go beyond its sandbox.
SharkCluster installs the Codex CLI on your server with Node.js, creates a dedicated user with a Git workspace, and sets Codex to ask before acting outside the workspace. You can use it from a browser terminal opened from the SharkCluster dashboard, or over SSH.
You sign in to OpenAI yourself inside the terminal, either with your ChatGPT account or an OpenAI API key. SharkCluster does not supply or store OpenAI credentials.
Quick facts
- Version
- Latest
- Database
- None
- Category
- Agent
- SSL included
- Firewall locked
- DB auto-created
- Live in minutes
Why Codex on SharkCluster?
Safe defaults
Codex starts with approval_policy "on-request" and sandbox_mode "workspace-write": it can edit files in the workspace and asks before doing more.
Private browser terminal
The web terminal is behind an access gate. It opens only from a short-lived signed link in your dashboard, so the public address never hands out a shell.
Always-on workspace
Your repositories and Codex settings stay on the server, so you can pick up work from any device.
Your own OpenAI account
Sign in with ChatGPT or an API key; usage is billed by OpenAI under your account.
What you get with Codex
OpenAI Codex CLI (latest from npm)
Node.js 22+ runtime
ripgrep and bubblewrap for fast search and sandboxing
Dedicated user and home directory
Git workspace in ~/htdocs, marked as trusted
Approval on request, workspace-write sandbox
Browser terminal opened from the dashboard
SSH access
What Codex is built for
Code changes and fixes
Ask Codex to implement a feature or fix a bug, then review the diff and run your tests.
Understanding a codebase
Have Codex explain how a project is structured and where things happen.
Remote development
Keep a coding agent and your repositories on a VPS you can reach from anywhere.
Server specs for
Codex
Not sure which plan to pick? The panel warns you before you deploy so you can choose the right size the first time.
- Minimum specs shown before deploy
- Panel blocks deploy if server is undersized
- Upgrade path available inside the panel
- Runtime
- Node.js 22 or later (installed during setup)
- Access
- Browser terminal from the dashboard, or SSH
- Authentication
- ChatGPT account or OpenAI API key
- Database
- Not required
How Codex fits together
Dashboard link
The Access tab creates a signed link that is valid for 60 seconds.
Access gate
A gate service on 127.0.0.1 checks the link and gives the browser a session cookie.
Web terminal
ttyd serves the terminal on a private socket that only the app user can reach.
Codex CLI
Runs as the app user in ~/htdocs with its settings in ~/.codex.
After your Codex deploy
- 1
Open the web terminal
In SharkCluster, open the app's Access tab and click Open Web Terminal, or connect over SSH.
- 2
Sign in to OpenAI
Run codex login --device-auth and follow the link to sign in with ChatGPT, or log in with an OpenAI API key.
- 3
Open a project
Clone a repository into ~/htdocs or use the empty Git workspace that is already there.
- 4
Start Codex
Run codex in the project folder and describe what you want in plain English.
- 5
Review the results
Check the changes with git diff and run your tests before deploying anything.
Working with Codex
Check Codex
Show the installed Codex CLI version.
codex --versionSign in with ChatGPT
Open the link shown and enter the code.
codex login --device-authSign in with an API key
Use an OpenAI API key from the environment.
printenv OPENAI_API_KEY | codex login --with-api-keyCheck sign-in status
See whether Codex is signed in.
codex login statusStart a session
Start Codex in the workspace.
cd ~/htdocs && codexUpdate Codex
Install the newest Codex release.
sudo npm install -g @openai/codex@latestCommon Codex issues & fixes
The codex command is not found
- Cause
- The npm install failed or the shell PATH does not include global npm binaries.
- Solution
- Check node --version and command -v codex, then reinstall with sudo npm install -g @openai/codex@latest.
Codex asks me to sign in again
- Cause
- You are not signed in for this user, or the sign-in expired.
- Solution
- Run codex login status, then codex login --device-auth or log in with an API key.
The web terminal says access denied
- Cause
- The signed link expired or was opened in a different browser.
- Solution
- Open the terminal again from the app's Access tab.
Codex asks for approval for every command
- Cause
- The command needs to write outside the workspace or use the network, which the sandbox does not allow.
- Solution
- Approve commands you trust, or work inside ~/htdocs where Codex can edit freely.
Hardened before your first request
Every deploy is locked down from boot — closed firewall, valid SSL, and restricted access by default.
Sign in with your own OpenAI account or API key; SharkCluster does not store OpenAI credentials.
Keep the default approval and sandbox settings unless you understand the change.
The workspace user can use sudo; review any command that asks for it.
Do not paste production secrets into prompts or commit them to the workspace.
Open the web terminal only from your dashboard; links expire after 60 seconds.
Frequently Asked Questions
The questions we hear most from people deploying Codex on SharkCluster.
Contact supportNo. Codex is installed, and you sign in with your own ChatGPT account or OpenAI API key.
Open the app's Access tab in SharkCluster and click Open Web Terminal. The link is valid for 60 seconds.
By default Codex can write inside the workspace and asks for approval before doing more.
Yes. Clone it into ~/htdocs and make sure the server user has access to it.
No. Codex does not need a database.
From deploy to live in minutes
Stack configured
Runtime, process manager and config files set up for you.
None wired
Database created with a user and credentials in your config.
SSL + firewall
Free Let's Encrypt certificate and closed-by-default UFW rules.
Deploy anytime
Push with Git, or use the built-in file manager and ZIP upload.
How do you start
with SharkCluster?
To start with SharkCluster, create an account and your first server on DigitalOcean, Contabo or OVHcloud — no credit card or lock-in contract is needed. Every account includes free self-hosted business apps, free local backups, unlimited migrations and a dedicated DevOps manager.