‹ All agents

OpenCode + Elestio

Open Source CLI

OpenCode is the open-source CLI tool for coding with LLMs. When paired with Elestio, it can deploy applications, manage infrastructure, configure backups, and handle your entire DevOps workflow from your terminal.

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 OpenCode

Install OpenCode via your package manager

brew install opencode
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 OpenCode 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 OpenCode 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 OpenCode to deploy PostgreSQL
  • OpenCode searches with elestio templates search
  • OpenCode selects provider and region
  • OpenCode deploys with elestio deploy

2 Deploy from GitHub

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

3 Configure backups

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

4 Set up firewall

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

5 Check billing

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

6 Add SSL / custom domain

  • Ask OpenCode to add a domain
  • OpenCode adds with elestio ssl add
  • OpenCode provides DNS instructions
  • OpenCode 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 OpenCode 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 OpenCode access to Elestio?

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

What can I deploy with OpenCode + 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 OpenCode manage existing Elestio services?

Yes! OpenCode 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 OpenCode?

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. OpenCode can show you pricing with elestio sizes before deploying.

Start deploying with OpenCode

Install the Elestio CLI and let OpenCode handle your infrastructure.

Get Started Free GitHub