‹ All agents

Codex + Elestio

by OpenAI

Codex is OpenAI's cloud-based coding agent that runs in the background. When paired with Elestio, it can deploy applications, manage infrastructure, configure backups, and handle your entire DevOps workflow.

Get Started Free Install CLI

Quick start

1

Install the Elestio CLI

Install the Elestio CLI globally via npm

npm install -g elestio
2

Install Codex

Install the Codex CLI globally

npm install -g @openai/codex
3

Configure your API credentials

Set your Elestio email and API token

elestio login --email "[email protected]" --token "your_api_token"

Get your token at dash.elest.io/account/security

4

Deploy your first service

Ask Codex to deploy — it will use the Elestio CLI automatically

elestio deploy PostgreSQL --project 112 --name my-db --provider hetzner

Example prompts

"Deploy N8N on Netcup in Germany"
"Add a custom SSL domain to my service"
"Scale my service to 8 vCPUs and 16GB memory"
"Create a firewall rule to whitelist my IP"
"Create a backup before migration"
"Deploy my GitHub repo with CI/CD"
"Add your SSH-key to my server"
"Reboot my server"
"Add 50GB of storage to my service"
"Get the admin credentials for my database"

Elestio CLI

The Elestio CLI gives Codex full access to the Elestio platform — deploy services, manage infrastructure, configure backups, and more. 400+ templates, 9 cloud providers, 100+ regions. View on GitHub →

Install Elestio CLI

npm install -g elestio

Authenticate

elestio login --email "[email protected]" --token "your_api_token"

Common workflows

1 Deploy a database

  • Ask Codex to deploy PostgreSQL
  • Codex searches with elestio templates search
  • Codex selects provider and region
  • Codex deploys with elestio deploy

2 Deploy from GitHub

  • Ask Codex to deploy your repo
  • Codex deploys CI/CD with elestio deploy cicd
  • Codex creates pipeline with elestio cicd create
  • Codex configures auto-deploy

3 Configure backups

  • Ask Codex to set up backups
  • Codex enables with elestio backups auto-enable
  • Codex creates snapshot with elestio snapshots take
  • Codex confirms backup schedule

4 Set up firewall

  • Ask Codex to configure firewall
  • Codex lists rules with elestio firewall get
  • Codex adds rules with elestio firewall enable
  • Codex verifies configuration

5 Check billing

  • Ask Codex for billing overview
  • Codex runs elestio billing
  • Codex shows costs with elestio billing project
  • Codex provides cost breakdown

6 Add SSL / custom domain

  • Ask Codex to add a domain
  • Codex adds with elestio ssl add
  • Codex provides DNS instructions
  • Codex verifies SSL is working

Tips for success

Install the Elestio CLI with npm install -g elestio for full platform access
Get your API token at dash.elest.io/account/security
Just ask Codex in natural language, e.g. "Deploy a new Keycloak service on Hetzner"
Use project IDs to organize your services across environments
Set up remote backups before major changes with elestio backups remote-take

Frequently asked questions

How do I give Codex access to Elestio?

Install the Elestio CLI with npm install -g elestio and authenticate with elestio login. This gives Codex access to Elestio's full API for deployments, backups, and infrastructure management.

What can I deploy with Codex + Elestio?

Anything from Elestio's catalog of 400+ open-source templates — databases (PostgreSQL, MySQL, MongoDB), CMS (WordPress, Ghost), development tools (GitLab, Gitea), monitoring (Grafana, Prometheus), and more. You can also deploy custom apps from GitHub with CI/CD pipelines.

Can Codex manage existing Elestio services?

Yes! Codex can list, manage, resize, and delete your existing services. It can also configure backups, firewall rules, SSL certificates, and check billing — all from your terminal.

How does billing work when deploying via Codex?

Billing works exactly the same as deploying from the Elestio dashboard. Services are billed to your Elestio account based on the provider, region, and server size you choose. Codex can show you pricing with elestio sizes before deploying.

Start deploying with Codex

Install the Elestio CLI and let Codex handle your infrastructure.

Get Started Free GitHub