OpenCode Provider
Monitor and analyze your OpenCode sessions with GuideMode.
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 --versionCreate Your First Session
Section titled “Create Your First Session”# Start OpenCodeopencode
# Or in a specific directorycd ~/my-projectopencodeFile 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)Setting up capture
Section titled “Setting up capture”In the meantime, see the CLI Overview for the providers that are supported today.
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
