OpenCode Provider
Monitor and analyze your OpenCode sessions with GuideAI Desktop.
What is OpenCode?
Section titled “What is OpenCode?”OpenCode is an open-source AI coding assistant that provides:
- Code generation - AI-powered code completion
- Code review - Automated code analysis
- Bug detection - Find and fix issues
- Documentation - Generate code documentation
Requirements
Section titled “Requirements”Install OpenCode
Section titled “Install OpenCode”# Install via npmnpm install -g opencode
# Or using yarnyarn global add opencode
# Verify installationopencode --version
Create Your First Session
Section titled “Create Your First Session”# Start OpenCodeopencode
# Or in a specific directorycd ~/my-projectopencode
File Locations
Section titled “File Locations”OpenCode stores session data differently per platform:
macOS & Linux
Section titled “macOS & Linux”~/.local/share/opencode/└── storage/ ├── part/ │ └── msg_id/ │ └── message.json └── projects/ └── project-data/
Windows
Section titled “Windows”%LOCALAPPDATA%\opencode\└── storage\ └── ... (same structure)
Configuring GuideAI Desktop
Section titled “Configuring GuideAI Desktop”Step 1: Enable OpenCode Provider
Section titled “Step 1: Enable OpenCode Provider”- Navigate to Configuration
- Find “OpenCode” card
- Toggle “Enabled” to ON
Step 2: Verify Home Directory
Section titled “Step 2: Verify Home Directory”Auto-detected paths:
- macOS/Linux:
~/.local/share/opencode
- Windows:
%LOCALAPPDATA%\opencode
Step 3: Configure Sync and Projects
Section titled “Step 3: Configure Sync and Projects”Same as other providers:
- Choose Sync Mode (Nothing, Metrics Only, or Full)
- Select Projects (All or Selected)
- Start monitoring automatically begins
Step 4: Verify Monitoring
Section titled “Step 4: Verify Monitoring”Check for active file watching status.
Session Detection
Section titled “Session Detection”What Gets Captured
Section titled “What Gets Captured”OpenCode sessions include:
- Code requests: Prompts to OpenCode
- Generated code: AI responses
- Context: Files and environment
- Metadata: Timestamps, project info
Metrics
Section titled “Metrics”- Code generation stats
- Token usage
- Session duration
- Quality indicators