OpenCode

System: Ubuntu 24.04
Edition: 1.14.28

Develop your software with personal AI Agent

Description

A tool for those who value transparency, project context, and independence from specific AI vendors.

OpenCode is an open-source AI agent designed for developers who work with full codebase context rather than isolated lines of code. It doesn't treat code as plain text. The agent integrates with LSP (Language Server Protocol), enabling it to work directly with the project's AST (Abstract Syntax Tree). It sees the dependency tree, available object methods, and linter diagnostics—exactly as a full-fledged IDE does during codebase indexing.

Flexible Connectivity and Distributed Architecture

In OpenCode, you can switch between OpenAI, Google, or Anthropic APIs, connect local models via Ollama or LM Studio, and use the built-in OpenCode model router to automatically select the optimal model for each task.

The OpenCode engine and its interface are decoupled: you can run the resource-intensive server process on a powerful workstation or remote Linux server, while managing it from a lightweight ultrabook or mobile app.

Two Operation Modes for Different Tasks

The agent offers a clear separation of workflows. The build mode acts as a virtual senior developer: it creates and edits files, applies changes in diff format, and runs commands like npm run test, cargo build, or pytest to verify compilation. If an error occurs, it reads stderr from the console and attempts to fix bugs in the next iteration.

The plan mode ensures safe auditing: it operates strictly in read-only mode, analyzes legacy code, generates documentation, and requests confirmation before execution via a [Y/n] prompt. This approach guarantees full control over changes in corporate or regulated environments. It's ideal for exploring unfamiliar or large codebases. For example, you can ask the agent to trace the authentication flow from router to database and prepare documentation. It will only read the code without modifying the project.

Deployment Recommendations

For maximum performance, it's recommended to run the agent on an Ubuntu virtual server with fast NVMe storage and sufficient RAM, as LSP metadata analysis and code generation require stable I/O.

By deploying a cloud server on Ubuntu via immers.cloud, you get a ready-to-use environment with open ports, up-to-date dependencies, and the ability to scale resources to match your codebase size — without purchasing local hardware. This cloud hosted model allows you to pay only for actual server uptime, pausing the instance during idle periods.

Who It's For

The solution is built for experienced developers comfortable in the terminal, teams that value independence from a single AI provider, and corporate environments with strict security and change-audit requirements. OpenCode turns a cloud VM into an autonomous workstation where AI doesn't just suggest syntax, but actively participates in architecture, verification, and refactoring of your project.

Operating system version:

Distributor ID: Ubuntu
Description:    Ubuntu 24.04.4 LTS
Release:        24.04
Codename:       noble

Kernel version:

Linux 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux

Category:
Base Linux / Neural Networks
Size:
6.20 GB
Image added:
28.04.2026
Image updated:
28.05.2026
Uses:
10
Avg boot time:
00:29 — 01:14

Getting started

To connect copy your cloud server IP address into your browser addressbar. You can get Login and Password in "Password" section of your server page

In this image we preconfigured immers.cloud API endpoint which allows you to start your work immidiately

To change LibreChat settings you can edit /home/ubuntu/config/opencode/opencode.jsonc. Then you need to restart LibreChat service: sudo systemctl restart opencode

Software in the image

Software Version
Ubuntu 24.04.3 LTS
Nginx 1.24.0-2ubuntu7.6