Coding-Agent CLI-installierbar

OpenCode

Open-Source-Coding, Open-Weight-Modelle.

Open-Source-Terminal-Coding-Agent. Open-Source obenauf, Open-Weight-Modelle darunter, geroutet über Melious.

opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "model": "melious/<MODEL_ID>",
  "small_model": "melious/<SMALL_MODEL_ID>",
  "provider": {
    "melious": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Melious",
      "options": {
        "baseURL": "https://api.melious.ai/v1",
        "apiKey": "{env:MELIOUS_API_KEY}"
      },
      "models": {
        "<MODEL_ID>": {
          "name": "<Display Name>",
          "limit": { "context": 128000, "output": 16384 }
        }
      }
    }
  }
}
Über

What is OpenCode?

OpenCode ist ein Open-Source-Terminal-Coding-Agent vom Team hinter SST. Modell-agnostisch, konfiguriert über eine einfache JSON-Datei, diszipliniert im Token-Verbrauch. Kurze Prompts, kaum Scratchpad-Rauschen, kein automatisches Zusammenfassen, bis es nötig ist. In Kombination mit unserem Eco-Routing der günstigste Weg zu ernsthafter Agent-Arbeit.

Zur offiziellen Website opencode.ai
Setup

Wie nutze ich OpenCode mit Melious?

  1. OpenCode installieren

    Den offiziellen Installer ausführen. macOS und Linux laden ein kleines Shell-Skript. Windows nutzt npm.

    Shell
    # macOS / Linux
    curl -fsSL https://opencode.ai/install | bash
    
    # Windows (requires Node.js)
    npm install -g opencode-ai
  2. Melious als Provider eintragen

    Lege opencode.json im Projekt an (oder ~/.config/opencode/config.json für globalen Default). Die models-Map wird nicht automatisch von /v1/models befüllt. Trag pro Modell, das du nutzen willst, einen Eintrag ein, oder lass die Melious-CLI die Datei bei jedem Start schreiben. Aktuelle IDs und Kontextlängen unter melious.ai/hub/models.

    opencode.json
    {
      "$schema": "https://opencode.ai/config.json",
      "model": "melious/<MODEL_ID>",
      "small_model": "melious/<SMALL_MODEL_ID>",
      "provider": {
        "melious": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "Melious",
          "options": {
            "baseURL": "https://api.melious.ai/v1",
            "apiKey": "{env:MELIOUS_API_KEY}"
          },
          "models": {
            "<MODEL_ID>": {
              "name": "<Display Name>",
              "limit": { "context": 128000, "output": 16384 }
            }
          }
        }
      }
    }
  3. OpenCode starten

    Melious-Key exportieren, dann starten. Jedes Modell heißt melious/<MODEL_ID>.

    Shell
    export MELIOUS_API_KEY=sk-mel-<YOUR_API_KEY>
    opencode
Bereit?

Drei Schritte von hier.

Hol dir einen Melious-Key. Wähl dein Tool. Folg der Anleitung. Gleicher Client, antwortet jetzt aus Europa.