Skip to main content
OpenCode is a powerful AI coding agent that can be configured to use VibeCodeCheap’s models.

Step 1: Install OpenCode

The easiest way to install OpenCode is through the install script.
curl -fsSL https://opencode.ai/install | bash
You can also install with npm:
npm install -g opencode-ai

Step 2: Configure Custom Provider

  1. Visit the VibeCodeCheap API Console to get your API key.
  2. Run opencode auth login and scroll down to select Other to create a custom provider.
$ opencode
opencode auth login
 Add credential

 Select provider
 ...
 Anthropic

  1. Enter your VibeCodeCheap API key.
 Add credential

 Enter your API key
 lm_...

  1. Create or update the opencode.json configuration file:
    • Global config (~/.config/opencode/opencode.json) - user preferences
    • Project config (opencode.json in project root) - project-specific settings
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "anthropic": {
      "options": {
        "baseURL": "https://api.vibecodecheap.com/v1/ai/v1"
      }
    }
  }
}
See Models for all available models.
  1. Run opencode and use the /models command to select Claude Opus 4.5 or Claude Sonnet 4.5 in Anthropic.
Do NOT select “Claude Opus 4.5 (latest)” or “Claude Sonnet 4.5 (latest)” - these are default Anthropic models that won’t use VibeCodeCheap’s API.
$ opencode
/models

Share

OpenCode’s share feature allows you to create public links to conversations, making it easy to collaborate with teammates or get help from others.

How It Works

When you share a conversation, OpenCode:
  1. Creates a unique public URL for your session
  2. Syncs the conversation history to servers
  3. Makes the conversation accessible via a shareable link — opencode.ai/s/<share-id>

Share

By default, conversations are not shared automatically. You can manually share using the /share command:
/share

Un-share

To stop sharing a conversation and remove it from public access:
/unshare

IDE Extensions

OpenCode integrates with VS Code, Cursor, or any IDE that supports terminal.

Installation

To install OpenCode on VS Code and popular forks like Cursor, Windsurf, VSCodium:
  1. Open VS Code
  2. Open the integrated terminal
  3. Run opencode - the extension auto-installs

Usage

  • Quick Launch: Use Cmd+Esc (Mac) or Ctrl+Esc (Windows/Linux) to open OpenCode in a split terminal view.
  • New Session: Use Cmd+Shift+Esc (Mac) or Ctrl+Shift+Esc (Windows/Linux) to start a new session.
  • Context Awareness: Automatically shares selection or current tab with OpenCode.
  • File Reference Shortcuts: Use Cmd+Option+K (Mac) or Alt+Ctrl+K (Linux/Windows) to insert file references. For example @File#L37-42.

GitHub Workflow

OpenCode integrates with GitHub workflow. Mention /opencode or /oc in a comment, and OpenCode will execute tasks in a GitHub Actions runner.

Features

  • Triage issues: Ask OpenCode to review an issue and explain.
  • Fix and implement: Ask OpenCode to fix an issue or implement a feature. OpenCode will work in a new branch and submit a PR with all changes.
  • Secure: OpenCode runs inside your GitHub runners.

Installation

Run the following command in a project with a GitHub repo:
opencode github install

Examples

  • Explain an issue: Add this comment in a GitHub issue.
    /opencode explain this issue
    
  • Fix an issue: In a GitHub issue:
    /opencode fix this
    
  • Review PRs and make changes: Comment on a GitHub PR.
    Delete the attachment from S3 when the note is removed /oc
    

Resources