Как подключиться

Установка и подключение Claude Code, Codex CLI, OpenCode или любого OpenAI/Anthropic-совместимого SDK.

Одна команда — ставит CLI + пишет ~/.config/opencode/opencode.json с тремя провайдерами (Claude, GPT и Gemini + Grok) на один ключ. Нужен Node.js 18+.

OpenCode

Open-source CLI-агент. Установка через npm.

Открой Windows PowerShell и вставь:

irm https://vibecode.moe/i/opencode.ps1?lang=ru | iex
curl -fsSL "https://vibecode.moe/i/opencode.sh?lang=ru" | bash
curl -fsSL "https://vibecode.moe/i/opencode.sh?lang=ru" | bash

Запуск: opencode

Три провайдера на один ключ — отдельные SDK-адаптеры под Claude, GPT и Gemini + Grok.

OpenCode

1

Уже установлен?

opencode --version

Версия — пропускай следующий шаг.

2

Установка CLI

npm install -g opencode-ai
3

opencode.json

Linux / macOS: ~/.config/opencode/opencode.json · Windows: %USERPROFILE%\.config\opencode\opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "model": "vibecode/gpt-5.5",
  "small_model": "vibecode/gpt-5.4-mini",
  "provider": {
    "vibecode": {
      "npm": "@ai-sdk/openai",
      "name": "vibecode.moe — GPT",
      "options": {
        "baseURL": "https://vibecode.moe/v1",
        "apiKey": "vk-YOUR-KEY"
      },
      "models": {
        "gpt-5.6-sol":           { "name": "GPT 5.6 Sol", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "gpt-5.6-terra":         { "name": "GPT 5.6 Terra", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "gpt-5.6-luna":          { "name": "GPT 5.6 Luna", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "gpt-5.5":               { "name": "GPT 5.5", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "gpt-5.4-mini":          { "name": "GPT 5.4 Mini", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "codex-auto-review":     { "name": "Codex Auto Review", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } }
      }
    },
    "vibecode-gemini": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "vibecode.moe — Gemini + Grok",
      "options": {
        "baseURL": "https://vibecode.moe/v1",
        "apiKey": "vk-YOUR-KEY"
      },
      "models": {
        "gemini-3-flash-preview":   { "name": "Gemini 3 Flash", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "gemini-3.6-flash":         { "name": "Gemini 3.6 Flash", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "gemini-3.1-pro-preview":   { "name": "Gemini 3.1 Pro", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "grok-4-5":                 { "name": "Grok 4.5", "modalities": { "input": ["text"], "output": ["text"] } },
        "grok-4-6":                 { "name": "Grok 4.6", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } }
      }
    },
    "vibecode-claude": {
      "npm": "@ai-sdk/anthropic",
      "name": "vibecode.moe — Claude",
      "options": {
        "baseURL": "https://vibecode.moe/v1",
        "apiKey": "vk-YOUR-KEY"
      },
      "models": {
        "claude-fable-5":     { "name": "Claude Fable 5", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "claude-haiku-4-5":   { "name": "Claude Haiku 4.5", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "claude-sonnet-4-6":  { "name": "Claude Sonnet 4.6", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "claude-sonnet-5":    { "name": "Claude Sonnet 5", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "claude-opus-4-7":    { "name": "Claude Opus 4.7", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "claude-opus-4-8":    { "name": "Claude Opus 4.8", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } },
        "claude-opus-5":      { "name": "Claude Opus 5", "attachment": true, "modalities": { "input": ["text", "image"], "output": ["text"] } }
      }
    }
  }
}

Три блока — три SDK-адаптера (Claude, GPT, Gemini + Grok), ключ один на всех. Меняй в них только apiKey.

4

Запуск

opencode

Выбирай модель: vibecode/gpt-5.5 — GPT; vibecode-gemini/gemini-3.1-pro-preview — Gemini; vibecode-gemini/grok-4-6 — Grok; vibecode-claude/claude-sonnet-4-6 и т. д. — Claude. Лишние провайдеры можно убрать.