Skip to content

OpenCode Provider

Monitor and analyze your OpenCode sessions with GuideMode.

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)

In the meantime, see the CLI Overview for the providers that are supported today.

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