‹ All agents Open Source CLI

OpenCode + Elestio

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.

Up and Running in Minutes

Install the CLI, authenticate, and deploy your first service with OpenCode.

1

Install the Elestio CLI

Global npm package, zero dependencies.

2

Add the Elestio skill

Gives Cursor access to 400+ templates.

3

Install OpenCode

Install from github.com/opencode-ai/opencode.

4

Configure credentials

API token from dash.elest.io/account/security

5

Deploy your first service

Ask Cursor to deploy — it uses the Elestio CLI automatically.

terminal
# Step 1: Install CLI
$ npm install -g elestio
 
# Step 2: Add skill
$ npx skills add elestio/elestio-skill
  Elestio skill added
 
# Step 3: Authenticate
$ elestio login --email "you@example.com" --token "your_api_token"
  Authenticated successfully
 
# Step 4: Deploy!
$ elestio deploy PostgreSQL --project 112 --name my-db --provider hetzner
  PostgreSQL deployed in 2m 18s

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 Cursor full access to the Elestio platform — deploy services, manage infrastructure, configure backups, and more. 400+ templates, any cloud provider, 100+ regions.

View on GitHub →
terminal
# Install Elestio CLI
$ npm install -g elestio
 
# Authenticate
$ elestio login --email "you@example.com" --token "your_api_token"
  Authenticated successfully
 
# Search templates
$ elestio templates search "postgresql"
 
# Deploy a service
$ elestio deploy PostgreSQL --project 112
  Service deployed successfully

Common Workflows

Deploy a database

  • Ask OpenCode to deploy PostgreSQL
  • Searches with elestio templates search
  • Selects provider and region
  • Deploys with elestio deploy

Deploy from GitHub

  • Ask OpenCode to deploy your repo
  • Deploys CI/CD with elestio deploy cicd
  • Creates pipeline with elestio cicd create
  • Configures auto-deploy

Configure backups

  • Ask OpenCode to set up backups
  • Enables with elestio backups auto-enable
  • Creates snapshot with elestio snapshots take
  • Confirms backup schedule

Set up firewall

  • Ask OpenCode to configure firewall
  • Lists rules with elestio firewall get
  • Adds rules with elestio firewall enable
  • Verifies configuration

Check billing

  • Ask OpenCode for billing overview
  • Runs elestio billing
  • Shows costs with elestio billing project
  • Provides cost breakdown

Add SSL / custom domain

  • Ask OpenCode to add a domain
  • Adds with elestio ssl add
  • Provides DNS instructions
  • Verifies SSL is working

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 IDE.
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.