lovcode
lovcode copied to clipboard
feat: Detect OpenCode installation and add as supported AI tool
Summary
Add automatic detection of OpenCode CLI installations on the user's system, and add OpenCode as a first-class supported AI coding tool alongside Claude Code and Codex.
Motivation
OpenCode is the most-starred AI coding agent on GitHub (182K+ stars, 8M+ monthly users). It's a terminal-based AI coding CLI very similar to Claude Code and Codex. Many developers use multiple AI coding tools, and Lovcode's value proposition is being the unified command center for all of them.
Currently Lovcode supports:
- Claude Code
- Codex
OpenCode is a natural next addition.
Proposed Feature
- Auto-detect OpenCode installations via common paths:
~/.local/share/opencode/(session/config storage)opencodebinary on PATH (installed via brew, npm, curl script, go install, etc.)
- Show OpenCode status in the Lovcode dashboard alongside Claude Code/Codex
- Provider detection — parse
~/.local/share/opencode/auth.jsonto show which LLM providers are configured
Technical Notes
- OpenCode stores sessions at
~/.local/share/opencode/ - Config lives at
opencode.json(project-level) and~/.config/opencode/config.json - Auth info at
~/.local/share/opencode/auth.json - Installation detection: check for
opencodebinary,~/.local/share/opencode/directory, or npm globalopencode-aipackage
Related
- Would pair well with session history import (separate issue)
- Would pair well with Agent Workbench launch support (separate issue)
🤖 Generated with Claude Code