rawr Rawrter
Login

OpenCode

Open-source AI agent for the terminal

CLI & terminal cli terminal agent

About

OpenCode is an open-source terminal AI agent supporting many LLM providers. It connects to our gateway via the @ai-sdk/openai-compatible provider.

How to connect

  1. Install OpenCode:

    npm install -g opencode-ai
    
  2. In the OpenCode window open File → Settings → Providers.

    📷 Screenshot: "File → Settings" menu, "Providers" section selected

  3. Click Add provider and choose the Other type (OpenAI-compatible).

    📷 Screenshot: adding a provider, "Other" type selected

  4. Fill in the provider fields:

    • Provider ID: openrussiarouter
    • Base URL: https://api.openrussiarouter.com/v1
    • API Key: your sk-or-... key

    📷 Screenshot: filled-in OpenRussiaRouter provider fields

  5. Add the models you need from the /models catalog — for each one specify its ID and display name.

    📷 Screenshot: models added in the provider settings

  6. Save the settings, type /models and pick a model.

    📷 Screenshot: OpenRussiaRouter models listed in /models