Skip to content

OpenCode Provider

Monitor and analyze your OpenCode sessions with GuideAI Desktop.

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
Terminal window
# Install via npm
npm install -g opencode
# Or using yarn
yarn global add opencode
# Verify installation
opencode --version
Terminal window
# Start OpenCode
opencode
# Or in a specific directory
cd ~/my-project
opencode

OpenCode stores session data differently per platform:

~/.local/share/opencode/
└── storage/
├── part/
│ └── msg_id/
│ └── message.json
└── projects/
└── project-data/
%LOCALAPPDATA%\opencode\
└── storage\
└── ... (same structure)
  1. Navigate to Configuration
  2. Find “OpenCode” card
  3. Toggle “Enabled” to ON

Auto-detected paths:

  • macOS/Linux: ~/.local/share/opencode
  • Windows: %LOCALAPPDATA%\opencode

Same as other providers:

  1. Choose Sync Mode (Nothing, Metrics Only, or Full)
  2. Select Projects (All or Selected)
  3. Start monitoring automatically begins

Check for active file watching status.

OpenCode sessions include:

  • Code requests: Prompts to OpenCode
  • Generated code: AI responses
  • Context: Files and environment
  • Metadata: Timestamps, project info
  • Code generation stats
  • Token usage
  • Session duration
  • Quality indicators