20+ KI-Provider · Native macOS · Open Source 20+ AI Providers · Native macOS · Open Source

Alle KI-Quoten
im Blick. Immer.
All AI Quotas
at a Glance.

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
Clawbar
Claude
Anthropic · Pro
Session: 88% übrigReset in 6h 12m
GitHub Copilot
GitHub · Pro
Monthly: 72% übrigCredits: 112.4
Gemini
Google · Free
Session: 95% übrigReset Sa 6:00
Codex
OpenAI · Plus
Weekly: 41% übrigCredits: 89.2

Ein Tool. Alle KI-Provider.One Tool. All AI Providers.

Alles was du brauchst, um deinen KI-Verbrauch zu verstehen und zu optimieren.Everything you need to understand and optimize your AI usage.

🦀

24 Provider vereint24 providers unified

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.

🖥

Nativ in der MenüleisteNative Menu Bar App

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.

CLI für Skripte & CICLI for scripts & CI

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.

📊

Lokale KostenanalyseLocal cost analysis

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.

24 Provider unterstützt24 providers supported

Klick auf einen Provider für Details, Konfiguration und Einrichtungsanleitung.Click a provider for details, configuration, and setup instructions.

In Sekunden installiertInstalled in seconds

Mehrere Installationsmethoden für jeden Workflow.Multiple installation methods for every workflow.

Homebrew (empfohlen)(recommended)
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.

Shell Installer
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.

CLI-only Installer
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.

Manual Install
# 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

Daten direkt im TerminalData right in the terminal

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.

clawbar usage Quota-Nutzung aller konfigurierten Provider Quota usage for all configured providers
clawbar cost Lokale Token-Kosten der letzten 30 Tage Local token costs for the last 30 days
clawbar models Verfügbare Modelle für einen Provider Available models for a provider
clawbar config validate Konfigurationsdatei validieren Validate configuration file
--format json --pretty JSON-Ausgabe für Skripte & Dashboards JSON output for scripts & dashboards
Terminal — clawbar usage
clawbar usage

== Claude Code 2.0.58 (web) ==
Session: 88% left [==========--]
Resets tomorrow at 1:00 AM
Weekly: 63% left [=======-----]
Pace: On pace | Runs out in 4d
Plan: Pro

== GitHub Copilot (api) ==
Monthly: 72% left [========----]
Credits: 112.4 left

== Gemini (api) ==
Session: 95% left [===========-]
Resets Sat at 6:00 AM

== Codex 0.6.0 (openai-web) ==
Weekly: 41% left [====--------]
Credits: 89.2 left
Resets Fri at 9:00 AM

_

Einfach konfigurierenSimple configuration

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.

📁~/.clawbar/config.json
id
Provider-ID (z.B. claude, copilot, gemini, codex)
Provider ID (e.g. claude, copilot, gemini, codex)
source
auto · web · cli · oauth · api
apiKey
API-Token für Provider mit direktem API-Zugriff
API token for providers with direct API access
enabled
Provider aktivieren oder deaktivieren (true/false)
Enable or disable a provider (true/false)
~/.clawbar/config.json
{
  "version": 1,
  "providers": [
    {
      "id": "claude",
      "source": "oauth",
      "enabled": true
    },
    {
      "id": "copilot",
      "source": "api"
    },
    {
      "id": "gemini",
      "source": "api"
    },
    {
      "id": "openrouter",
      "apiKey": "sk-or-..."
    }
  ]
}

Alles WissenswerteEverything you need to know

Vollständige Dokumentation für Installation, Konfiguration, CLI und alle Provider.Complete documentation for installation, configuration, CLI, and all providers.

Erste SchritteGetting Started
KonfigurationConfiguration
CLI
ProviderProviders
ArchitekturArchitecture

🚀 Erste Schritte🚀 Getting Started

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.

  • Homebrew (empfohlen): brew install blacki2016/tap/clawbarHomebrew (recommended): brew install blacki2016/tap/clawbar
  • Shell: curl -fsSL https://raw.githubusercontent.com/blacki2016/Clawbar/main/install.sh | bashShell: curl -fsSL https://raw.githubusercontent.com/blacki2016/Clawbar/main/install.sh | bash
  • CLI-only: Nur das CLI-Bundle ohne GUI installieren – ideal für Linux/Server.CLI-only: Install only the CLI bundle without GUI – ideal for Linux/server.
  • macOS 14+ erforderlich für die GUI-App. CLI läuft auch auf Linux (x86_64 + aarch64).macOS 14+ required for the GUI app. CLI also runs on Linux (x86_64 + aarch64).

Quick 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
📄 README.md auf GitHub →

⚙️ Konfiguration⚙️ Configuration

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.

  • Pfad: ~/.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)
  • sourceauto | web | cli | oauth | apisourceauto | web | cli | oauth | api
  • apiKey – API-Token für direkte API-NutzungapiKey – API token for direct API usage
  • enabled – Provider aktivieren/deaktivierenenabled – Enable/disable a provider
  • cookieSourceauto (Browser-Import) | manual | offcookieSourceauto (browser import) | manual | off
  • tokenAccounts – Multi-Account-Konfiguration mit label, token, activeIndextokenAccounts – Multi-account config with label, token, activeIndex
  • Die Reihenfolge der providers-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-..." }
  ]
}
📄 configuration.md auf GitHub →

💻 CLI Referenz💻 CLI Reference

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 usage
  • clawbar cost [--provider <id>]Lokale Token-Kosten (30 Tage)Local token costs (30 days)
  • clawbar models --provider theclawbayVerfügbare ModelleAvailable models
  • clawbar config validateConfig-Datei validierenValidate config file
  • clawbar config dumpNormalisierte Config ausgebenOutput normalized config
  • --format json --prettyJSON-Ausgabe für SkripteJSON output for scripts
  • --source auto|web|cli|oauth|apiAuthentifizierungsmethode wählenChoose authentication method
  • --account <label> / --all-accountsMulti-Account-SelektionMulti-account selection
  • --no-color, --verbose, --statusGlobale FlagsGlobal flags

Exit 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 →

🔌 Provider-Dokumentation🔌 Provider Documentation

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.

  • API: GitHub Copilot, OpenRouter, Kilo, Kimi, Kimi K2, z.ai, Perplexity, Warp, Gemini, TheClawBayGitHub Copilot, OpenRouter, Kilo, Kimi, Kimi K2, z.ai, Perplexity, Warp, Gemini, TheClawBay
  • OAuth: Claude (Anthropic), Vertex AIClaude (Anthropic), Vertex AI
  • Web / Cookies: Codex, Cursor, Factory/Droid, MiniMax, Augment, Amp, Alibaba Cloud, OllamaCodex, Cursor, Factory/Droid, MiniMax, Augment, Amp, Alibaba Cloud, Ollama
  • CLI: Kiro
  • Local: Antigravity, JetBrains AI, SyntheticAntigravity, JetBrains AI, Synthetic

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 →

🏗️ Architektur🏗️ Architecture

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.

  • Core: Fetch + Parse (Provider-Probes, RPC, PTY, Web-Scraping, Status-Polling)Fetch + parse (provider probes, RPC, PTY, web scraping, status polling)
  • App: State + UI (UsageStore, SettingsStore, StatusItemController, Menüs, Icon-Rendering)State + UI (UsageStore, SettingsStore, StatusItemController, menus, icon rendering)
  • Widget: WidgetKit Extension für Notification CenterWidgetKit extension for Notification Center
  • CLI: Commander-basierter CLI-Helper, gebündelt in Clawbar.app/Contents/Helpers/Commander-based CLI helper, bundled in Clawbar.app/Contents/Helpers/
  • Macros: SwiftSyntax Macros für Provider-RegistrierungSwiftSyntax macros for provider registration

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