Skip to content

sylearn/AIUsage

Repository files navigation

AIUsage icon

AIUsage

One dashboard for all your AI subscriptions

Track quotas, costs, and accounts across 10+ AI providers.
Built-in Claude Code proxy for any OpenAI-compatible model.

中文说明 · English

macOS 14+ SwiftUI Release License Stars Downloads

Sponsored by
Sucloud
500+ AI models · Text, image, video & audio · Top models included · Pay-as-you-go

AIUsage dashboard


Table of Contents

Features

Feature Description
11+ AI Providers Codex, Copilot, Cursor, Antigravity, Kiro, Warp, Gemini CLI, Droid, Claude Code, Kimi, MiniMax — one dashboard
Multi-account Multiple accounts per provider, independent refresh, one-click CLI switching
Usage Stats Unified cost & token breakdown from Claude/Codex proxy archives plus token-only non-proxy Codex sessions — per-model trends, time-period analysis, source-aware aggregation
Claude Code Proxy Use Claude Code with DeepSeek, GPT, Ollama or any OpenAI-compatible model; Anthropic passthrough for usage logging
Codex Proxy Point Codex CLI at any OpenAI-compatible upstream; unified switcher across subscription accounts and API nodes, surgical config.toml merge
Menu Bar Multi-account status bar icons, quota/cost metrics, quick-glance popover, colored progress bars
Credential Vault macOS Keychain storage for all managed credentials

Preview

Dashboard Provider monitoring
Dashboard Provider & Multi-account Monitoring
Claude Code proxy node management Claude Code proxy configuration
Claude Code Proxy · Node Management Claude Code Proxy · Configuration
Codex proxy Usage stats
Codex Proxy · Nodes & Subscriptions Usage Stats (Claude & Codex)
Menu bar
Menu Bar

Install

Download .dmg or .zip from the Releases page.

Proxies

AIUsage ships two independent proxies — one for Claude Code, one for Codex (Codex CLI) — each with node management, usage logging and a unified switcher.

Claude Code Proxy

Use Claude Code CLI with any OpenAI-compatible model, or transparently log Anthropic API usage.

Mode What it does
OpenAI Proxy Translates Claude API → OpenAI format. Works with DeepSeek, GPT, Azure, Ollama, etc.
Anthropic Passthrough Forwards requests as-is, logs input/output/cache tokens for cost tracking

Quick start: Open AIUsage → Claude Code Proxy → New Node → Configure → Activate. Settings are written to ~/.claude/settings.json automatically.

Codex Proxy

Point the Codex CLI at any OpenAI-compatible upstream (Responses API), and switch between subscription accounts and API nodes from one place — they are mutually exclusive, so only one identity is ever active.

Capability What it does
OpenAI-compatible upstream Routes Codex CLI through any responses-compatible endpoint
Unified switcher One toggle across subscription accounts (~/.codex/auth.json) and API nodes (config.toml)
Surgical config merge Injects managed blocks into ~/.codex/config.toml while preserving your own settings; global fragment + per-node TOML override
cc-switch sync One-click import of Codex providers from local cc-switch (upstream / model / key), preserving model_reasoning_effort, mcp_servers and other settings; deterministic-id dedup avoids duplicate nodes (symmetric with Claude)

Quick start: Open AIUsage → Codex Proxy → New Node (or pick a subscription account) → Configure → Activate. ~/.codex/config.toml is merged automatically. Already on cc-switch? Hit "Sync cc-switch" in the toolbar to import in one click.

Usage and billing details for Claude Code and Codex are documented in docs/USAGE_AND_BILLING.md.


Acknowledgements

Inspired by CodexBar and Quotio.

Sponsor

Sucloud

Sucloud — AI API aggregation platform with 500+ models.
Full modality coverage (text, image, video, audio) including Claude, GPT, Gemini and more.
RMB payment supported, no overseas card required.

Models Pricing Bonus

Support the Author

If AIUsage helps you, consider buying the author a coffee. Your support helps keep the project maintained and improved.

Donation QR code

Friendly Links

License

Apache License 2.0

About

One dashboard to manage all your AI subscriptions — track quotas, costs, accounts, Claude Code proxy, and Codex proxy in one place.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages