Deploy a Codex CLI app to production
OpenAI's Codex CLI is a terminal agent that edits files and runs commands locally. Launchmatic gives Codex a single command — `lm deploy` — that takes whatever it just built and puts it in production.
Why Launchmatic for Codex CLI
Codex CLI is great at writing code, indifferent to packaging it. Launchmatic's Nixpacks-powered detector handles the Dockerfile, build, and runtime selection, so Codex never has to learn your hosting setup.
Deploy in 5 steps
- 1Run Codex CLI in your project:
codex. - 2After it finishes, commit and push to GitHub.
- 3Install + authenticate:
npm i -g @launchmatic/cli && lm login. - 4Bind the repo to Launchmatic:
lm initfor a single-service project, orlm monorepo initif Codex scaffolded an apps/services workspace. - 5Deploy:
lm deploy(single) orlm up(every service in the monorepo manifest). - 6Optional: add Launchmatic's MCP server so Codex can deploy directly:
codex mcp add launchmatic https://launchmatic.io/mcp.
End-of-Codex-session deploy hook (single service):
# Add to ~/.codex/hooks/post-session.sh
[ -f .launchmatic.json ] || lm init --yes
git add . && git commit -m "codex: $(date +%s)" || true
git push && lm deployFAQ
Can Codex deploy without me running the command?+
Yes — register Launchmatic's MCP server with Codex (`codex mcp add launchmatic https://launchmatic.io/mcp`) and Codex can call our `deploy` tool directly inside a session.
Ready to deploy?
Free to start. No credit card. Auto-SSL on custom domains, managed Postgres, and per-branch preview deploys included.