Deploy Cezar
Password-protected control centre for Claude Code, Codex and other agents
Just deployed
/data
Deploy and Host Cezar on Railway
Cezar is an open-source (MIT) control centre for coding agents such as Claude Code and Codex. You add a project, type a task, pick a workflow and watch the agent work live: its text, tool calls, tokens and cost. Tasks can run in their own git worktrees, open pull requests, and follow schedules or GitHub events.
About Hosting Cezar
Cezar has no login of its own, and its documentation says never to expose it to the internet without a gate in front. This template adds one. A Caddy server is the only public entry point and asks for a username and password on every request; Railway generates a random 24-character password for each deploy. Cezar listens only inside the container, in hosted mode. A volume at /data keeps agent logins, Cezar's state and your projects across restarts, and an unauthenticated /healthz endpoint lets Railway check that the service is up. If the password is missing or shorter than 12 characters, the service refuses to start instead of running without the gate.
Common Use Cases
- Keep Claude Code or Codex tasks running in the cloud after you close your laptop
- Start, watch and review agent tasks from any browser, including your phone
- Run scheduled or GitHub-triggered agent work, for example triaging new issues every morning
- Give a small team one shared place to run coding agents against your repositories
Dependencies for Cezar Hosting
- A login for at least one agent: a Claude subscription or Anthropic API key for Claude Code, or a ChatGPT plan or OpenAI API key for Codex
- Optional: a GitHub token, so Cezar can read issues and open pull requests
- Cezar (https://github.com/open-mercato/cezar), Claude Code, Codex CLI, the GitHub CLI and Caddy are preinstalled in the image
Implementation Details
After deploying:
- Open the Railway URL and sign in with CEZAR_USERNAME and CEZAR_PASSWORD (shown in the service's Variables).
- Connect an agent: set ANTHROPIC_API_KEY or OPENAI_API_KEY and redeploy, or sign in under Settings → Agents → Providers in Cezar. You can also run
railway ssh, thenas-cezar claude(type /login) oras-cezar codex login. - Add a project with Clone from GitHub, type a task and press Start.
| Variable | Purpose |
|---|---|
| CEZAR_USERNAME | Sign-in name for the front door (default admin) |
| CEZAR_PASSWORD | Sign-in password, generated for you |
| ANTHROPIC_API_KEY / OPENAI_API_KEY | Optional API keys instead of signing in |
| GITHUB_TOKEN | Optional, for GitHub issues and pull requests |
| CEZ_TERMINAL | Optional; set to 1 to turn on Cezar's in-browser terminal |
Measured on Railway: about 190 MB of memory and almost no CPU when idle. Source and issues: https://github.com/ashutoshanand13/cezar-railway. This is a community template, not made by the Cezar team.
Why Deploy Cezar on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Cezar on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content

