Clawbar ist eine native macOS Menüleisten-App und CLI zum Verfolgen von Token-Verbrauch, Kosten und Provider-Status über Claude, Copilot, Gemini, Codex und 20+ weitere KI-Dienste. Clawbar is a native macOS menu bar app and CLI for tracking token usage, costs, and provider status across Claude, Copilot, Gemini, Codex, and 20+ more AI services.
$ brew install blacki2016/tap/clawbar
Alles was du brauchst, um deinen KI-Verbrauch zu verstehen und zu optimieren.Everything you need to understand and optimize your AI usage.
Claude, Copilot, Gemini, Codex, Cursor und viele mehr – alle Quoten und Status auf einen Blick, ohne zwischen Dashboards zu wechseln.Claude, Copilot, Gemini, Codex, Cursor and many more – all quotas and status in one place without switching between dashboards.
Kein Dock-Icon, kein Overhead. SwiftUI-nativ für minimalen Ressourcenverbrauch. Mit Notification Center Widget für noch schnelleren Überblick.No Dock icon, no overhead. SwiftUI-native for minimal resource usage. Includes Notification Center widget for even faster access.
Vollständige CLI mit JSON-Ausgabe für Skripte und CI-Pipelines. Multi-Account-Support, alle Provider, globale Flags wie --format json und --pretty.Full CLI with JSON output for scripts and CI pipelines. Multi-account support, all providers, global flags like --format json and --pretty.
Analysiert Token-Kosten direkt aus lokalen Logs – kein Remote-Polling nötig. Tägliche Aufschlüsselung, Modellvergleich und 30-Tage-Trends inklusive.Analyzes token costs directly from local logs – no remote polling needed. Daily breakdown, model comparison, and 30-day trends included.
Klick auf einen Provider für Details, Konfiguration und Einrichtungsanleitung.Click a provider for details, configuration, and setup instructions.
Mehrere Installationsmethoden für jeden Workflow.Multiple installation methods for every workflow.
brew install blacki2016/tap/clawbar
ℹ Installiert Clawbar.app nach /Applications und verlinkt den clawbar CLI-Helper in deinen Homebrew-Pfad.ℹ Installs Clawbar.app to /Applications and links the clawbar CLI helper into your Homebrew binary path.
curl -fsSL https://raw.githubusercontent.com/blacki2016/Clawbar/main/install.sh | bash
ℹ Lädt das neueste macOS-Release herunter, installiert die App nach /Applications und erstellt einen CLI-Symlink.ℹ Downloads the latest macOS release, installs the app to /Applications, and creates a CLI symlink.
curl -fsSL https://raw.githubusercontent.com/blacki2016/Clawbar/main/install-cli.sh | bash
ℹ Installiert nur den CLI-Bundle nach ~/.local/share/clawbar und verlinkt clawbar in ~/.local/bin. Ideal für Linux/Server.ℹ Installs only the CLI bundle to ~/.local/share/clawbar and links clawbar in ~/.local/bin. Ideal for Linux/server.
# 1. Download from GitHub Releases # 2. Extract & move to /Applications mv Clawbar.app /Applications/ # 3. Optional: link the CLI ln -sf "/Applications/Clawbar.app/Contents/Helpers/clawbar" \ /opt/homebrew/bin/clawbar
Der clawbar CLI spiegelt alle App-Daten für Skripte, CI und eigene Dashboards. JSON-Ausgabe, Multi-Account-Support und vollständige Provider-Abdeckung.The clawbar CLI mirrors all app data for scripts, CI, and custom dashboards. JSON output, multi-account support, and full provider coverage.
Eine einzige JSON-Datei für App und CLI. Secrets werden mit Dateiberechtigungen 0600 geschützt – kein separater Keychain-Zugriff nötig.A single JSON file for both app and CLI. Secrets are protected with 0600 file permissions – no separate Keychain access needed.
claude, copilot, gemini, codex)claude, copilot, gemini, codex)auto · web · cli · oauth · apitrue/false)true/false){ "version": 1, "providers": [ { "id": "claude", "source": "oauth", "enabled": true }, { "id": "copilot", "source": "api" }, { "id": "gemini", "source": "api" }, { "id": "openrouter", "apiKey": "sk-or-..." } ] }
Vollständige Dokumentation für Installation, Konfiguration, CLI und alle Provider.Complete documentation for installation, configuration, CLI, and all providers.
Clawbar ist eine native macOS Menüleisten-App ohne Dock-Icon. Nach der Installation erscheint das Icon in der Menüleiste und zeigt Quoten für alle konfigurierten KI-Provider.Clawbar is a native macOS menu bar app without a Dock icon. After installation, the icon appears in the menu bar and shows quotas for all configured AI providers.
brew install blacki2016/tap/clawbarHomebrew (recommended): brew install blacki2016/tap/clawbarcurl -fsSL https://raw.githubusercontent.com/blacki2016/Clawbar/main/install.sh | bashShell: curl -fsSL https://raw.githubusercontent.com/blacki2016/Clawbar/main/install.sh | bashQuick Start nach der Installation: App starten → Menüleisten-Icon klicken → Provider in den Einstellungen einrichten → Quoten werden automatisch abgerufen.Quick start after installation: Launch app → click menu bar icon → configure providers in Settings → quotas are fetched automatically.
# Alle Provider abfragen clawbar usage # Spezifischen Provider clawbar usage --provider claude # Lokale Kosten clawbar cost # Konfiguration validieren clawbar config validate
Clawbar liest eine einzige JSON-Konfigurationsdatei für App und CLI. Secrets werden mit Dateiberechtigung 0600 geschützt.Clawbar reads a single JSON config file for both app and CLI. Secrets are protected with 0600 file permissions.
~/.clawbar/config.json (Legacy-Fallback: ~/.codexbar/config.json)Path: ~/.clawbar/config.json (legacy fallback: ~/.codexbar/config.json)id – Provider-Identifier (z.B. claude, copilot, gemini)id – Provider identifier (e.g. claude, copilot, gemini)source – auto | web | cli | oauth | apisource – auto | web | cli | oauth | apiapiKey – API-Token für direkte API-NutzungapiKey – API token for direct API usageenabled – Provider aktivieren/deaktivierenenabled – Enable/disable a providercookieSource – auto (Browser-Import) | manual | offcookieSource – auto (browser import) | manual | offtokenAccounts – Multi-Account-Konfiguration mit label, token, activeIndextokenAccounts – Multi-account config with label, token, activeIndexproviders-Array bestimmt die Anzeigereihenfolge in App und CLI.The order of the providers array controls display order in the app and CLI.{ "version": 1, "providers": [ { "id": "claude", "source": "oauth" }, { "id": "copilot", "source": "api" }, { "id": "openrouter", "apiKey": "sk-or-..." } ] }
Der clawbar CLI spiegelt alle App-Daten für Skripte, CI und Dashboards. Unterstützt JSON-Ausgabe, Multi-Account und alle Provider.The clawbar CLI mirrors all app data for scripts, CI, and dashboards. Supports JSON output, multi-account, and all providers.
clawbar usage [--provider <id>] – Quota-Nutzung abfragenQuery quota usageclawbar cost [--provider <id>] – Lokale Token-Kosten (30 Tage)Local token costs (30 days)clawbar models --provider theclawbay – Verfügbare ModelleAvailable modelsclawbar config validate – Config-Datei validierenValidate config fileclawbar config dump – Normalisierte Config ausgebenOutput normalized config--format json --pretty – JSON-Ausgabe für SkripteJSON output for scripts--source auto|web|cli|oauth|api – Authentifizierungsmethode wählenChoose authentication method--account <label> / --all-accounts – Multi-Account-SelektionMulti-account selection--no-color, --verbose, --status – Globale FlagsGlobal flagsExit Codes: 0 = Erfolg · 2 = Provider fehlt · 3 = Parse-Fehler · 4 = CLI-Timeout · 1 = Unerwarteter FehlerExit codes: 0 = success · 2 = provider missing · 3 = parse error · 4 = CLI timeout · 1 = unexpected failure
📄 cli.md auf GitHub →Clawbar unterstützt 24 KI-Provider mit verschiedenen Authentifizierungsstrategien. Jeder Provider hat eine eigene Dokumentationsdatei im docs/ Verzeichnis.Clawbar supports 24 AI providers with different authentication strategies. Each provider has its own documentation file in the docs/ directory.
Cookie-basierte Provider (Codex, Cursor, etc.) unterstützen automatischen Browser-Cookie-Import (Safari, Chrome, Firefox) oder manuellen Cookie-Header. Cookies werden im Keychain gecacht.Cookie-based providers (Codex, Cursor, etc.) support automatic browser cookie import (Safari, Chrome, Firefox) or manual cookie header. Cookies are cached in Keychain.
📄 providers.md auf GitHub →Clawbar ist in mehrere Swift Package Manager Module aufgeteilt. Swift 6 mit strikter Concurrency, macOS 14+ als Target.Clawbar is split into multiple Swift Package Manager modules. Swift 6 with strict concurrency, macOS 14+ as target.
Clawbar.app/Contents/Helpers/Commander-based CLI helper, bundled in Clawbar.app/Contents/Helpers/Datenfluss: Background Refresh → UsageFetcher/Provider-Probes → UsageStore → Menü/Icon/Widgets. Settings-Toggles beeinflussen Refresh-Kadenz und Feature-Flags.Data flow: Background refresh → UsageFetcher/provider probes → UsageStore → menu/icon/widgets. Settings toggles affect refresh cadence and feature flags.
📄 architecture.md auf GitHub → 📚 Alle 60+ DocsAll 60+ docs →