OpenCode · Open source · Any model provider

OpenCode VPS Your own always-on box for the open source agent

A Linux VPS for OpenCode, the open source coding agent. Install it with one line, connect the model provider you already pay for, and reach it from a terminal or from its web UI through an SSH tunnel. Private KVM server with full root, a dedicated IP and reserved memory. The 4 GB plan we suggest starts at $14.99₹1,389.27 a month, billed monthly.

OpenCode VPS plans

OpenCode states no minimum RAM. We suggest the 4 GB plan for an agent that also runs builds and tests, and 2 GB is workable for light use. Billed monthly, with no long contract.

Compute Region

Choose the deployment location
Currently out of stock

OpenCode VPS plans · Miami

Miami, Florida · AMD EPYC KVM VPS with full root access and a choice of 15 Linux builds
Plan vCPU Memory Storage Bandwidth Setup Price
4GB Plan Recommended 4 vCPU 4 GB 80 GB SSD 5 TB Instant $14.99/mo₹1,389.27/mo Buy Now
6GB Plan 4 vCPU 6 GB 100 GB SSD 5 TB Instant $19.99/mo₹1,852.67/mo Buy Now
8GB Plan 6 vCPU 8 GB 100 GB SSD 5 TB Instant $29.99/mo₹2,779.47/mo Buy Now
16GB Plan 8 vCPU 16 GB 100 GB SSD 5 TB Instant $59.99/mo₹5,559.87/mo Buy Now
Choose Ubuntu 24.04 or Debian 12 on the order form. OpenCode provides Linux binaries for x64 servers like these.

Why people put OpenCode on a server

People pick OpenCode because it is open source and lets them choose the model. A server adds the two things they ask for next: it never sleeps, and it can be reached from anywhere.

Open source agent, your own machine

The agent is open source and the server is yours to control as root. You decide what is installed, which repositories are on it and when it gets wiped.

Any provider you connect

OpenCode does not come with a model. You sign in to a provider with one command and can change it later without moving the server or the project.

Sessions that outlast your laptop

Run OpenCode inside tmux and the session carries on after you disconnect. Hand it a long task at night and read the result when you are back.

A web UI that stays private

The OpenCode web UI listens only on localhost. You reach it through an SSH tunnel, so there is no extra port open to the internet.

Reach it from a phone or tablet

Any device with an SSH app can attach to the session. With port forwarding in that app, the web UI opens in the phone browser too.

One IP address that is only yours

Every plan has a dedicated IPv4 address. Use it for SSH, for a test domain, or to preview the app the agent has just built.

Run OpenCode on a VPS in 7 steps

From a new server to a working agent with its web UI open on your laptop. The OpenCode commands are the ones in the official docs.

  1. 1

    Order a plan with Ubuntu 24.04

    Press Buy Now on a plan above, 4 GB if you are unsure, and select Ubuntu 24.04 on the order form. The server is built automatically after payment and the IP address and root password come by email.

  2. 2

    Connect by SSH and make a normal user

    Sign in as root once and create a user for daily work. An agent that runs commands should not have root by default. Swap YOUR_SERVER_IP for the address in the email.

    ssh root@YOUR_SERVER_IP
    adduser dev
    usermod -aG sudo dev
    su - dev
  3. 3

    Install tmux, git and OpenCode

    tmux keeps a terminal session running on the server after you leave. The second line is the OpenCode v2 installer.

    sudo apt update && sudo apt install -y tmux git
    curl -fsSL https://opencode.ai/v2/install | bash

    If you prefer npm, npm install -g @opencode/cli installs it as well.

  4. 4

    Connect a model provider

    OpenCode needs a model to talk to, and none is included. Run the login command and pick your provider. With an API key nothing has to open in a browser, which is the easy route on a server.

    opencode auth login

    For a key login the docs give this example: opencode auth login anthropic --method key. Providers that use OAuth open an authorization URL or show a code to enter. You can also type /connect inside OpenCode.

  5. 5

    Start OpenCode inside tmux

    Open a tmux session, fetch your project and start the agent in its folder. To leave it running, press Ctrl+B then D and close the terminal.

    tmux new -s opencode
    git clone https://github.com/you/your-project.git
    cd your-project
    opencode
  6. 6

    Open the web UI through an SSH tunnel

    Run the first command on the server. The web UI listens only on localhost, port 49374. Run the second command on your own computer, with your server in place of my-server, then open http://localhost:49374 in your browser.

    # on the server
    opencode pair
    
    # on your own computer
    ssh -L 49374:127.0.0.1:49374 my-server
  7. 7

    Come back whenever you like

    Log in from any device and attach to the session you left.

    ssh dev@YOUR_SERVER_IP
    tmux attach -t opencode

Three ways to reach OpenCode on the server

OpenCode gives you a terminal and a web UI. How you reach the web UI decides how exposed your server is.

Web UI behaviour as described in the OpenCode documentation, November 2026.
Way inWhat is exposedOur view
SSH and tmux (terminal)Nothing beyond SSHSimple and works from any phone SSH app. Good for checking progress and sending the next instruction.
Web UI through an SSH tunnel: opencode pair and ssh -LNothing beyond SSH. The web UI stays on localhost.The one we recommend. You get the full web UI on your laptop without opening it to anyone else.
opencode pair --remoteThe docs warn: "This will expose your OpenCode server to the internet."Only if you understand the risk. An agent that can run commands should not sit on the open internet.
Why we push the tunnel. An exposed coding agent is an open door to your code and to any keys stored on the server. If you ever make OpenCode listen beyond localhost, set a long password first. The safer habit is to leave it on localhost and use the tunnel.

Which plan for which kind of work

OpenCode publishes no memory requirement, so the sizes below are our own suggestions.

OpenCode states no minimum RAM as of November 2026. These sizes are VPSLake suggestions, not a vendor requirement.
What you runPlan we suggestWhy
Light use: one session on a small project, no heavy builds2 GBWorkable when the server only holds the agent, git and a few scripts.
One agent plus builds, tests and a dev server4 GBOur default suggestion. The build tools usually need more memory than the agent itself.
Several sessions, or Docker containers next to the agent8 GBEach session and each container takes its own share of memory.
A full stack with a database and a staging copy of the app16 GBRoom for the database cache as well as the agents, all day.
Bots, cron jobs and small scripts with no coding agent1 GBFine for light programs. We do not suggest it for a coding agent.

What an OpenCode VPS is

An OpenCode VPS is a Linux server in a datacenter where you install OpenCode and keep your projects. You log in over SSH from whatever device is in your hands. The agent, the repository and the build tools are all on the server, so work carries on when your own computer is off. Every VPSLake plan is a private KVM virtual machine with reserved memory, SSD storage, full root access and its own IPv4 address.

It suits people who chose OpenCode for control: you pick the model, you can read the source of the agent, and with a VPS you also own the machine it runs on. It is not something everybody needs. If you open OpenCode for a quick fix now and then and are happy doing that on your laptop, stay there and save the money.

What we set up and what stays with you

You receive a clean server with the operating system you picked, a root password and a fixed IP. OpenCode is not preinstalled and there is no one-click installer. We see that as a plus: you run the official installer and get the release that is current today. We do not sell model subscriptions or API credit. Help with the server itself, such as SSH access, a reboot or a reinstall, is available by ticket, WhatsApp and Telegram seven days a week.

You need a model provider

OpenCode is the agent, not the model. Before it can do anything it has to be connected to a provider with opencode auth login. What that provider charges is between you and them. The OpenCode team also has an optional paid plan of its own, called OpenCode Go.

Our servers have no GPU. That is fine for an agent that calls a hosted model over the internet, which is how most people use OpenCode. It does mean this VPS cannot run a large local model for you.

The web UI and how to keep it private

The command opencode pair starts the web UI. Its server listens only on localhost, port 49374 on Linux, so from the outside it is invisible. An SSH tunnel carries that port to your own computer:

ssh -L 49374:127.0.0.1:49374 my-server

While that connection is open, http://localhost:49374 on your computer is the OpenCode running on the server. Close the SSH connection and the door is shut again.

The docs also describe opening it up. opencode pair --remote makes it reachable from the internet and prints the warning "This will expose your OpenCode server to the internet." There are service settings for the listening address and a password too:

opencode service set hostname 0.0.0.0
opencode service set password "a-long-secret"

We suggest you do not use either on a public server unless you have a clear reason. If you do, set the password before you change the address.

Other agents and where the servers are

A server set up this way is not tied to one tool. The same steps, with a different installer, give you a Claude Code VPS or a Codex VPS, and Google's tools are covered on the Gemini CLI VPS page. If you would rather work in a graphical Linux desktop than in a terminal, look at Ubuntu RDP.

You choose the location in the plans table: Miami, Florida, Frankfurt, Germany or Amsterdam, The Netherlands. The agent works on the server and only text travels to you, so pick the place nearest to you for a quick terminal, or nearest to your users if you will host the app there as well. Moving to a larger plan later keeps your data and needs a reboot.

OpenCode is an open source project developed in the anomalyco/opencode repository. VPSLake is an independent hosting provider and is not affiliated with the OpenCode project.

Pay the way you already pay

  • USDT, BTC & 20+ coinsvia Cryptomus
  • UPI / PhonePe / PaytmINR via Razorpay
  • Visa / Mastercardvia Paddle
  • Net banking & walletsIndia

Frequently Asked Questions

Yes. OpenCode ships Linux binaries for x64 and ARM64, and it runs in a terminal, so a Linux VPS reached by SSH is a natural place for it. You run the official install command, connect a model provider and start it inside tmux so it stays up after you disconnect.
The program is open source and costs nothing to install. What you pay for is the model behind it, because OpenCode needs a model provider and none is included. The OpenCode team also offers an optional plan called OpenCode Go, listed at $10 a month as of November 2026. The server is a separate monthly cost.
OpenCode does not publish a minimum RAM figure. Our own suggestion is the 4 GB plan when the agent shares the server with builds, tests or a dev server, and 2 GB is workable for light use on a small project. These are VPSLake suggestions, not a requirement from the OpenCode project.
No. You get a clean Ubuntu or Debian server with root access and paste the official installer line yourself. It takes a moment, and you get the current release straight from opencode.ai instead of whatever version was in an image months ago.
No. We provide the server. You bring a model provider, which you connect with opencode auth login. The server has no GPU, so the model runs at the provider and OpenCode calls it over the internet.
Run opencode auth login and choose your provider, or type /connect inside OpenCode. With an API key there is nothing to open in a browser, for example opencode auth login anthropic --method key. Providers that use OAuth open an authorization URL or show a code to enter.
Run opencode pair on the server. The web server listens only on localhost, port 49374, so it is not reachable from the internet. On your own computer run ssh -L 49374:127.0.0.1:49374 my-server and open http://localhost:49374 in your browser.
Yes, in two ways. An SSH app on the phone can attach to your tmux session, which gives you the terminal version. For the web UI, use an SSH app that supports port forwarding and forward port 49374 the same way as on a laptop. The docs also offer opencode pair --remote, but they warn that it exposes your OpenCode server to the internet, so we suggest the tunnel.
The usual reasons are that OpenCode is open source and that it is not tied to one company's models: you pick the provider. Claude Code is Anthropic's own tool and works with a Claude plan or an Anthropic API key. Both run well on the same kind of server, and nothing stops you from installing both.
Yes. Switch the prices to INR with the currency button in the menu and pay by UPI, PhonePe or net banking. Crypto and cards work as well. Billing is monthly with no long contract, and the servers are in the USA and Europe.

Put OpenCode on a server you control

Order a VPS, paste the installer line, connect your model provider and leave the agent running. Billed monthly, cancel when you like.

Related solutions