Run OpenCode In Your Browser
Run OpenCode in Your Browser: Self-Hosted Web UI with Claude OpenCode is an open-source AI coding agent, looking like Claude Code, that normally runs in your terminal, but you can also host it yourself as a web UI and use Claude (or other models) behind it. ⸻ 1. Install OpenCode (package manager or script) Use one of these: # Install via script (Linux/macOS/WSL) curl -fsSL https://opencode.ai/install | bash Or via a package manager, for example: # Node.js npm install -g opencode-ai # macOS / Linux (Homebrew) brew install opencode ⸻ 2. Connect Claude (or another provider) Run the auth helper once: opencode auth login Then in the TUI popup: 1. Select provider → choose Anthropic / Claude (or your preferred provider). 2. Paste your API key (Claude API or Claude Pro/Max via a supported route). You only need to do this once per machine / config. ⸻ 3. Start the self-hosted web UI From your project directory: cd /path/to/project # Self-hosted OpenCode web UI opencode web --hostname ...