Skip to content

OpenCode on a VPS – installing the AI agent, free models and working in the browser

Installing OpenCode 2 on a VPS. Free models with no API key, your first task in the terminal, command confirmation before anything runs, working in the browser over an SSH tunnel, and the opencode pair command. Tested on Debian 12 with OpenCode 2.1.2.