Deploy OpenCode on DigitalOcean
Run OpenCode on DigitalOcean with AgentSea — the easiest way to deploy Grid-backed AI agents on infrastructure you control. Copy the command below: it installs the CLI, then walks you through deployment interactively.
AgentOpenCode
EnvironmentDigitalOcean
Run this command
Paste this in your terminal (macOS, Linux, or WSL). It installs AgentSea, then starts agentsea opencode digitalocean and guides you through the rest — API keys, provisioning, and connecting to your agent.
shell
curl -fsSL https://agentsea.thegrid.ai/install.sh | bash -s -- opencode digitaloceanAlready installed? Run deploy only
shell
agentsea opencode digitaloceanInstall CLI without deploying
shell
curl -fsSL https://agentsea.thegrid.ai/install.sh | bashInstall options and flags in the CLI Reference.
Common commands
shell
agentsea # Interactive picker
agentsea ls # List your deployments
agentsea matrix # Agent x cloud matrixAfter install — what to do next
Once AgentSea finishes provisioning OpenCode on DigitalOcean, here's how to get the most from your agent.
- Run opencode in a project folder — AgentSea connects you to the terminal UI automatically.
- Run /init inside OpenCode so it learns your project structure (creates AGENTS.md).
- Switch between Build (full tools) and Plan (read-only analysis) agents with Tab. OpenCode docs
- Reconnect later with agentsea connect or agentsea list.
Prefer not to install the CLI?
Run this one-liner instead — no global install required. It downloads and runs the bootstrap script for OpenCode on DigitalOcean.
shell
bash <(curl -fsSL https://agentsea.thegrid.ai/digitalocean/opencode.sh)