Zum Inhalt springen
Cosvexa – Cosvexa-Startseite

Apps

Cosvexa CLI

Der Coding-Agent in deinem Terminal: Installation, Anmeldung, Befehle, Freigabemodi, Council-Review und Nutzung in CI.

Installieren und anmelden

Erfordert Node.js 20 oder neuer.

bash
npm i -g https://cosvexa.ai/downloads/cosvexa-cli-0.1.0.tgz
cosvexa --version

cosvexa login --browser   # device code, approve in your browser
cosvexa login             # or paste an API key that starts with cvx_
cosvexa status

Die Einstellungen liegen unter Windows in %APPDATA%\cosvexa\config.json und unter macOS und Linux in ~/.config/cosvexa/config.json. Die Umgebungsvariablen COSVEXA_API_KEY, COSVEXA_MODEL und COSVEXA_BASE_URL werden ebenfalls unterstützt.

Grundlegende Nutzung

bash
cd my-project
cosvexa "make the failing date test pass"   # one task
cosvexa                                      # interactive session
cosvexa -c "now add tests"                   # continue the last session
cosvexa sessions                             # list sessions
cosvexa init                                 # draft COSVEXA.md project instructions
cosvexa models                               # models you can use

Modell und Aufwand

  • -m claude-sonnet-5-5 wählt ein bestimmtes Modell und hat immer Vorrang.
  • --effort low|medium|high (oder /effort) legt fest, wie viel das gewählte Modell nachdenkt, bevor es antwortet; das Modell selbst ändert sich nie. Modelle ohne Einstellung für die Denkstufe ignorieren es.

Sicherheit

  • --mode ask|auto-edit|plan|full-auto legt den Freigabemodus fest (Shift+Tab in einer interaktiven Sitzung). full-auto braucht zusätzlich --yolo.
  • --read-only erlaubt nur die Tools zum Lesen, Auflisten und Suchen.
  • /undo stellt die Datei wieder her, die der Agent zuletzt geändert hat. Gefährliche Befehle fragen in jedem Modus nach, auch mit --yes.

Code-Review und Council

bash
cosvexa review                  # review local changes
cosvexa review --base main      # review the diff against main
cosvexa "add input validation" --council
cosvexa --team "refactor the payments module"

Council- und Team-Jobs zeigen zuerst eine Kostenobergrenze und bitten dich um Bestätigung.

Skripte und CI

bash
cosvexa -p "summarise the open TODOs"
cosvexa -p --yes "fix the lint errors" --json

Exit-Codes: 0 fertig, 1 Fehler, 2 falsche Verwendung, 3 am Schritt- oder Ausgabelimit gestoppt.

Interaktive Befehle

/model, /mode, /undo, /compact, /context, /init, /review, /team, /cost, /clear, /exit. Eigene Befehle legst du als Dateien .cosvexa/commands/<name>.md an; @path hängt eine Datei an. Der Kontext wird bei 80% Füllstand automatisch zusammengefasst.

MCP und OpenCode

cosvexa mcp verwaltet MCP-Server (--no-mcp schaltet sie ab). cosvexa opencode konfiguriert OpenCode mit Cosvexa als Anbieter (führe zuerst npm i -g opencode-ai aus).