OpenCode hosting
Open-source coding agent for any AI provider. Deploy to a dedicated VPS in seconds — database auto-created, SSL installed, firewall locked down from the first boot.
Latest
Versions
None
Database
Agent
Category
What is OpenCode?
OpenCode is an open-source coding agent for the terminal. It reads your project, edits files and runs commands, and it works with many AI providers instead of just one.
You can connect Anthropic, OpenAI, GitHub Copilot, OpenRouter, OpenCode Zen and other providers, and switch models from inside a session.
SharkCluster installs OpenCode with Node.js, creates a dedicated user with a Git workspace and gives you a browser terminal opened from the SharkCluster dashboard, plus SSH access. Provider sign-in happens inside the terminal and is stored only on your server.
Quick facts
- Version
- Latest
- Database
- None
- Category
- Agent
- SSL included
- Firewall locked
- DB auto-created
- Live in minutes
Why OpenCode on SharkCluster?
Use the provider you want
Connect one or several AI providers and pick the model per session.
Keys stay on your server
Provider credentials are saved in the app user's ~/.local/share/opencode/auth.json, in a folder only that user can read.
Private browser terminal
The web terminal opens only from a short-lived signed link in your dashboard.
Predictable updates
Automatic updates are turned off, so OpenCode only changes when you update it.
What you get with OpenCode
OpenCode CLI (latest from npm)
Node.js 22+ runtime
ripgrep for fast code search
Dedicated user and home directory
Git workspace in ~/htdocs
Multiple AI providers and models
Auto-update turned off
Browser terminal opened from the dashboard
SSH access
What OpenCode is built for
Provider-flexible coding
Compare models from different providers on the same codebase.
Using an existing subscription
Connect a provider account you already pay for, such as GitHub Copilot.
Remote development
Keep a coding agent and your repositories on a VPS you can reach from anywhere.
Server specs for
OpenCode
Not sure which plan to pick? The panel warns you before you deploy so you can choose the right size the first time.
- Minimum specs shown before deploy
- Panel blocks deploy if server is undersized
- Upgrade path available inside the panel
- Runtime
- Node.js 22 or later (installed during setup)
- Access
- Browser terminal from the dashboard, or SSH
- Authentication
- An account or API key for at least one supported AI provider
- Database
- Not required
How OpenCode fits together
Dashboard link
The Access tab creates a signed link that is valid for 60 seconds.
Access gate
A gate service on 127.0.0.1 checks the link and gives the browser a session cookie.
Web terminal
ttyd serves the terminal on a private socket that only the app user can reach.
OpenCode
Runs as the app user in ~/htdocs with its config in ~/.config/opencode.
After your OpenCode deploy
- 1
Open the web terminal
In SharkCluster, open the app's Access tab and click Open Web Terminal, or connect over SSH.
- 2
Connect a provider
Run opencode auth login, choose your provider and paste your API key or follow the sign-in link.
- 3
Start OpenCode
Run opencode in ~/htdocs or in a repository you cloned there.
- 4
Pick a model
Use /models inside OpenCode to choose the model for the session.
- 5
Review the results
Check the changes with git diff and run your tests before deploying.
Working with OpenCode
Check OpenCode
Show the installed OpenCode version.
opencode --versionConnect a provider
Add an AI provider account or API key.
opencode auth loginList connected providers
Show which providers are signed in.
opencode auth listStart a session
Start OpenCode in the workspace.
cd ~/htdocs && opencodeUpdate OpenCode
Install the newest release (auto-update is off).
sudo npm install -g opencode-ai@latestCommon OpenCode issues & fixes
The opencode command is not found
- Cause
- The npm install failed or the shell PATH does not include global npm binaries.
- Solution
- Check node --version and command -v opencode, then reinstall with sudo npm install -g opencode-ai@latest.
No models are available
- Cause
- No provider is connected yet.
- Solution
- Run opencode auth login, or use /connect inside OpenCode.
The web terminal says access denied
- Cause
- The signed link expired or was opened in a different browser.
- Solution
- Open the terminal again from the app's Access tab.
Hardened before your first request
Every deploy is locked down from boot — closed firewall, valid SSL, and restricted access by default.
Use your own provider accounts and API keys; SharkCluster does not supply them.
Provider credentials are stored on your server only, in a folder readable by the app user.
The workspace user can use sudo; review commands before letting OpenCode run them.
Do not paste production secrets into prompts or commit them to the workspace.
Open the web terminal only from your dashboard; links expire after 60 seconds.
Frequently Asked Questions
The questions we hear most from people deploying OpenCode on SharkCluster.
Contact supportMany, including Anthropic, OpenAI, GitHub Copilot, OpenRouter and OpenCode Zen. Connect them with opencode auth login.
In ~/.local/share/opencode/auth.json on your server, in a folder only the app user can read.
Open the app's Access tab in SharkCluster and click Open Web Terminal.
No. Auto-update is turned off; update with npm when you choose.
No. OpenCode does not need a database.
From deploy to live in minutes
Stack configured
Runtime, process manager and config files set up for you.
None wired
Database created with a user and credentials in your config.
SSL + firewall
Free Let's Encrypt certificate and closed-by-default UFW rules.
Deploy anytime
Push with Git, or use the built-in file manager and ZIP upload.
How do you start
with SharkCluster?
To start with SharkCluster, create an account and your first server on DigitalOcean, Contabo or OVHcloud — no credit card or lock-in contract is needed. Every account includes free self-hosted business apps, free local backups, unlimited migrations and a dedicated DevOps manager.