← Back to catalog
OpenCode

OpenCode

v1.1.1

Open-source CLI coding agent with full dev environment

Install

$curl -fsSL https://virtua.sh/i/opencode-ssh | bash
No server?Virtua.Cloud →

What's included

  • OpenCode 1.17.18 (pinned) -- open-source CLI coding agent
  • Docker, Go, Rust, Node.js 22, Python + uv
  • Playwright with Chromium and Firefox
  • ripgrep, fd, fzf, jq, yq, bat, tmux, htop, btop
  • Hardening: ufw (SSH only), fail2ban, unattended security upgrades, nightly state backups -- validated on Ubuntu, best-effort on RHEL

After install

  • SSH in and switch to the coder user: su - coder
  • Authenticate: opencode auth login
  • Long-running tasks: supervise with systemd (see MOTD); tmux available for interactive sessions

Supported Operating Systems

Ubuntu 24Ubuntu 25Debian 12Debian 13Rocky 9Rocky 10Alma 9Alma 10

Requirements

RAM
1GB minimum
Disk
10GB minimum

Configuration

VariableDefaultDescription
VIRTUA_USERcoderSystem user for the agent
VIRTUA_PASSrandom 24-charUser password (for su - coder). Auto-generated if not set.

Changelog

v1.1.12026-07-12
  • OpenCode pinned to 1.17.18 (weekly pin-bump loop)
v1.1.02026-07-07
  • OpenCode pinned to 1.17.15 (weekly pin-bump loop, smoke-tested)
  • One-click hardening: ufw default-deny (SSH only), fail2ban, unattended security upgrades (Ubuntu-validated)
  • Nightly backup of ~/.config/opencode and ~/.local/share/opencode to /var/backups/agent (7-day rotation) and log rotation
  • MOTD documents first-run auth (opencode auth login) and systemd as the supervision path
v1.0.02026-04-02
  • Initial release
  • Full dev environment: Docker, Go, Rust, Node.js, Python
  • Playwright with Chromium and Firefox
  • Developer tools: ripgrep, fd, fzf, jq, bat, tmux, htop