# opencode

URL: https://agentvera.dev/en/agents/opencode/ · Command: `opencode`

AgentVera opens opencode in a real terminal and lets you use any provider connected to it: Anthropic, OpenAI, Google, OpenRouter, local models and the free OpenCode Zen models. Every agent works in its own opencode session.

- Provider sign-in happens in opencode itself: /connect in the agent’s terminal or opencode auth login.
- The model list comes from opencode models --verbose, grouped by provider and cached for 10 minutes.
- Each model’s own variants are shown as effort options.
- The role is added to opencode as an instructions file, written with permissions only you can read.
- Each agent starts in its own opencode session (--session ses_…). The session is created ahead of time by a short-lived opencode serve that only listens on 127.0.0.1; duplicating forks it the same way.
- The role, MCP servers and AgentVera browser travel as inline config and are merged with your own opencode.json.
- Install with npm: npm i -g opencode-ai.
- Copy a conversation into a new agent and compact context with /compact.
- Works in flows and automatic review.

- **Can I use local models with opencode?** Yes. Every provider you connect to opencode, local models included, shows up in the model list.
- **Will my own opencode.json be changed?** No. AgentVera’s settings are merged with your file at launch; the file itself isn’t modified.

---

**About AgentVera.** AgentVera is a desktop app for macOS, Windows and Linux, built by Solviera Teknoloji. It runs 18 AI coding agents (Claude Code, Codex, Gemini CLI, Copilot, Cursor, Antigravity, opencode, Hermes, Qwen Code, Kimi Code, Kiro, Amp, Droid, Goose, Vibe, Crush, Aider, Cline) side by side, per project, in real terminals with the user's own CLI installs and logins. The free plan runs 2 agents at once. Download: https://agentvera.dev/en/download/ · Pricing: https://agentvera.dev/en/pricing/
