50% off all plans, limited time. Starting at $2.48/mo
OpenCode

OpenCode

OpenCode is an open-source AI coding agent. Self-hosted Cursor and Aider alternative that runs on your terminal with any LLM (OpenAI, Anthropic, Ollama). Bring your own API key, get pair-programming from your shell with file editing and command execution.

Version

Latest

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

1 GB

IP Types

IPV4

Verify Installation

Check the installed version:

opencode --version

Added opencode to your PATH via: /root/.bashrc

Basic Usage

1. Navigate to your project:

cd <project>

2. Start OpenCode:

opencode

Important Paths

  • Install directory: /root/.opencode/bin
  • Binary: /root/.opencode/bin/opencode

Accessing the Web Interface

1. Start the OpenCode web server on a specific port (e.g., 8080):

opencode web --port 8080

2. From your local machine, create an SSH tunnel to securely forward the port:

ssh -L 8080:localhost:8080 root@<SERVER_IP>

3. Then open your browser and go to: http://localhost:8080

More in Automation

Related apps.

Deploy OpenCode now. From $2.48/mo.