lovcode icon indicating copy to clipboard operation
lovcode copied to clipboard

feat: Detect OpenCode installation and add as supported AI tool

Open afaf-tech opened this issue 4 months ago • 0 comments

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)
    • opencode binary 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.json to 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 opencode binary, ~/.local/share/opencode/ directory, or npm global opencode-ai package

Related

  • Would pair well with session history import (separate issue)
  • Would pair well with Agent Workbench launch support (separate issue)

🤖 Generated with Claude Code

afaf-tech avatar Aug 03 '26 02:08 afaf-tech