Quota Axi
kunchenguid/quota-axi
Report local Claude, Codex, Cursor, GitHub Copilot, Grok, Kimi, Z.AI, Alibaba, OpenCode Go, Antigravity, Command Code, MiniMax, MiMo, DeepSeek, OpenRouter, ElevenLabs, Devin, Muse, and Higgsfield…
Add new AI usage providers to the OpenUsage TUI dashboard. An agent skill from janekbaraniewski/openusage.
$ npx skills add janekbaraniewski/openusage --skill openusage-provider -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install janekbaraniewski/openusage openusage-provider --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/janekbaraniewski/openusage.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/skills/openusage-provider .claude/skills/openusage-provider && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "openusage-provider" agent skill from https://github.com/janekbaraniewski/openusage/tree/main/docs/skills/openusage-provider into .claude/skills/openusage-provider/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openusage-provider", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/janekbaraniewski/openusage/tree/main/docs/skills/openusage-providerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add janekbaraniewski/openusage --skill openusage-provider -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install janekbaraniewski/openusage openusage-provider --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/janekbaraniewski/openusage.git skills-src && mkdir -p .agents/skills && cp -r skills-src/docs/skills/openusage-provider .agents/skills/openusage-provider && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "openusage-provider" agent skill from https://github.com/janekbaraniewski/openusage/tree/main/docs/skills/openusage-provider into .agents/skills/openusage-provider/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openusage-provider", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add janekbaraniewski/openusage --skill openusage-provider -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install janekbaraniewski/openusage openusage-provider --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/janekbaraniewski/openusage.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/docs/skills/openusage-provider .cursor/skills/openusage-provider && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "openusage-provider" agent skill from https://github.com/janekbaraniewski/openusage/tree/main/docs/skills/openusage-provider into .cursor/skills/openusage-provider/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openusage-provider", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/janekbaraniewski/openusage.git --path docs/skills/openusage-provider--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add janekbaraniewski/openusage --skill openusage-provider -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install janekbaraniewski/openusage openusage-provider --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/janekbaraniewski/openusage.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/docs/skills/openusage-provider .gemini/skills/openusage-provider && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "openusage-provider" agent skill from https://github.com/janekbaraniewski/openusage/tree/main/docs/skills/openusage-provider into .gemini/skills/openusage-provider/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openusage-provider", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install janekbaraniewski/openusage openusage-providerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add janekbaraniewski/openusage --skill openusage-provider -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/janekbaraniewski/openusage.git skills-src && mkdir -p .github/skills && cp -r skills-src/docs/skills/openusage-provider .github/skills/openusage-provider && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "openusage-provider" agent skill from https://github.com/janekbaraniewski/openusage/tree/main/docs/skills/openusage-provider into .github/skills/openusage-provider/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openusage-provider", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add janekbaraniewski/openusage --skill openusage-provider -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install janekbaraniewski/openusage openusage-provider --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/janekbaraniewski/openusage.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/docs/skills/openusage-provider .opencode/skills/openusage-provider && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "openusage-provider" agent skill from https://github.com/janekbaraniewski/openusage/tree/main/docs/skills/openusage-provider into .opencode/skills/openusage-provider/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openusage-provider", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
openusage-providerAdd new AI usage providers to the OpenUsage TUI dashboard. An agent skill from janekbaraniewski/openusage.
Openusage Provider is an agent skill from janekbaraniewski/openusage. Add new AI usage providers to the OpenUsage TUI dashboard.
Its SKILL.md is about 5.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `README.md` and `skill.json`).
It sits in Backend & APIs, covering Rate limiting. It works with OpenRouter. The repository describes itself as: The one dashboard you’ve been looking for — track spend and usage across Claude, Cursor, OpenRouter, Copilot, Gemini, Codex, and more. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f76f3dd. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gomakeghFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.openai.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
PROVIDER_API_KEYXAI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Openusage Provider loads about 5.2k tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 1,345 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from janekbaraniewski/openusage at commit f76f3dd, republished under its MIT licence (© janekbaraniewski). 1,345 words, ~5,190 tokens.
.claude/skills/openusage-provider/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Invocation: When a user asks to add, create, or implement a new AI provider to OpenUsage.
You are implementing a new AI usage/quota provider for the OpenUsage TUI dashboard. This is a multi-step process. Follow every step precisely.
Before writing any code, you MUST gather all of the following information. Ask these questions conversationally but DO NOT proceed until every answer is obtained. If the user doesn't know an answer, research it yourself (check the provider's docs, API reference, etc).
Provider name & ID
openai, deep_seek, gemini_cli)Authentication method — which of these applies?
api_key — user sets an env var like PROVIDER_API_KEY (most common for API providers)oauth — OAuth flow with stored credentials (e.g. Gemini CLI)cli — shells out to a CLI binary (e.g. GitHub Copilot via gh)local — reads local files/databases (e.g. Claude Code stats)token — extracted from local storage (e.g. Cursor IDE token from SQLite)If API key auth: What is the env var name? (e.g. XAI_API_KEY)
Data source — how do we get usage data?
/v1/models)/user/balance)What metrics are available? Try to identify:
API documentation URL — link to the provider's rate-limit or usage docs
Base URL — the API base (e.g. https://api.openai.com/v1)
Probe model (if using header probing) — a cheap/default model to use for the probe request (e.g. gpt-4.1-mini)
Color role for the dashboard tile — pick one that doesn't conflict with existing providers:
green (OpenAI), peach (Anthropic), lavender (Cursor), blue (Gemini CLI)sky (DeepSeek), teal (xAI), yellow (Groq), sapphire (Mistral)rosewater (OpenRouter), maroon (Copilot), flamingo (Codex), auto (Claude Code)Does the provider support per-model usage breakdowns? (for the Analytics tab)
Before coding, look up the provider's API docs to understand:
Bearer, x-api-key, etc.)Document your findings in a brief summary before proceeding.
Create internal/providers/<provider_id>/ with these files:
internal/providers/<provider_id>/
├── <provider_id>.go # Provider struct + Fetch() implementation
├── <provider_id>_test.go # Tests
└── widget.go # Dashboard widget configuration (only if customizing beyond defaults)<provider_id>.go)The provider MUST:
Provider struct that embeds providerbase.Base:package <provider_id>
import (
"context"
"fmt"
"net/http"
"time"
"github.com/janekbaraniewski/openusage/internal/core"
"github.com/janekbaraniewski/openusage/internal/parsers"
"github.com/janekbaraniewski/openusage/internal/providers/providerbase"
)
const (
defaultBaseURL = "https://api.<provider>.com/v1"
)
type Provider struct {
providerbase.Base
}New() constructor that registers the ProviderSpec:func New() *Provider {
return &Provider{
Base: providerbase.New(core.ProviderSpec{
ID: "<provider_id>",
Info: core.ProviderInfo{
Name: "<Provider Name>",
Capabilities: []string{"headers"},
DocURL: "https://docs.<provider>.com/rate-limits",
},
Auth: core.ProviderAuthSpec{
Type: core.ProviderAuthTypeAPIKey,
APIKeyEnv: "<PROVIDER_API_KEY>",
DefaultAccountID: "<provider_id>",
},
Setup: core.ProviderSetupSpec{
Quickstart: []string{"Set <PROVIDER_API_KEY> to a valid API key."},
},
Dashboard: dashboardWidget(), // or providerbase.DefaultDashboard(providerbase.WithColorRole(core.DashboardColorRole<Color>))
}),
}
}Fetch() method — this is the core data collection logic.Key rules for Fetch():
context.Context — pass it to all HTTP requests via http.NewRequestWithContextcore.AccountConfig — use acct.ResolveAPIKey() for API key, acct.BaseURL for custom base URL, acct.Binary for CLI path(core.UsageSnapshot, error)Status: core.StatusAuth and err == nilStatus: core.StatusLimited and err == nil(core.UsageSnapshot{}, err)fmt.Errorf("<provider_id>: creating request: %w", err)Metrics: make(map[string]core.Metric), Resets: make(map[string]time.Time), etc.func (p *Provider) Fetch(ctx context.Context, acct core.AccountConfig) (core.UsageSnapshot, error) {
apiKey := acct.ResolveAPIKey()
if apiKey == "" {
return core.UsageSnapshot{
ProviderID: p.ID(),
AccountID: acct.ID,
Timestamp: time.Now(),
Status: core.StatusAuth,
Message: "no API key found (set <ENV_VAR> or configure token)",
}, nil
}
baseURL := acct.BaseURL
if baseURL == "" {
baseURL = defaultBaseURL
}
url := baseURL + "/models/<default_model>"
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
return core.UsageSnapshot{}, fmt.Errorf("<provider_id>: creating request: %w", err)
}
req.Header.Set("Authorization", "Bearer "+apiKey)
resp, err := http.DefaultClient.Do(req)
if err != nil {
return core.UsageSnapshot{}, fmt.Errorf("<provider_id>: request failed: %w", err)
}
defer resp.Body.Close()
snap := core.UsageSnapshot{
ProviderID: p.ID(),
AccountID: acct.ID,
Timestamp: time.Now(),
Metrics: make(map[string]core.Metric),
Resets: make(map[string]time.Time),
Raw: parsers.RedactHeaders(resp.Header),
}
switch resp.StatusCode {
case http.StatusUnauthorized, http.StatusForbidden:
snap.Status = core.StatusAuth
snap.Message = fmt.Sprintf("HTTP %d – check API key", resp.StatusCode)
return snap, nil
case http.StatusTooManyRequests:
snap.Status = core.StatusLimited
snap.Message = "rate limited (HTTP 429)"
}
parsers.ApplyRateLimitGroup(resp.Header, &snap, "rpm", "requests", "1m",
"x-ratelimit-limit-requests", "x-ratelimit-remaining-requests", "x-ratelimit-reset-requests")
parsers.ApplyRateLimitGroup(resp.Header, &snap, "tpm", "tokens", "1m",
"x-ratelimit-limit-tokens", "x-ratelimit-remaining-tokens", "x-ratelimit-reset-tokens")
if snap.Status == "" {
snap.Status = core.StatusOK
snap.Message = "OK"
}
return snap, nil
}Split into helper methods: fetchBalance(), fetchRateLimits(), etc.
Parse JSON responses into core.Metric entries.
Use snap.SetAttribute("key", "value") for account metadata.
Read from known paths using acct.Binary or acct.ExtraData["config_dir"].
Parse JSON/SQLite data. Populate metrics from parsed data.
| Category | Key pattern | Unit | Window | Examples |
|---|---|---|---|---|
| Rate limits | rpm, tpm, rpd, tpd | requests/tokens | 1m/1d | rpm, tpm |
| Spending | total_cost_usd, today_api_cost, 7d_api_cost, monthly_spend | USD | current/today/7d/month | credit_balance |
| Credits | credit_balance, credits, plan_spend | USD/credits | current | credit_balance |
| Usage counts | messages_today, sessions_today, tool_calls_today | messages/sessions/calls | today | messages_today |
| Token counts | tokens_today, input_tokens, output_tokens | tokens | varies | today_input_tokens |
| Plan | plan_percent_used, spend_limit | %/USD | varies | plan_percent_used |
| Per-model | model_<model_name>_<metric> | varies | varies | model_gpt4_cost |
Use snap.SetAttribute() for metadata displayed in the details panel:
| Key | Description | Example value |
|---|---|---|
account_email | Account email | user@example.com |
account_name | Account/key name | My API Key |
plan_name | Plan tier name | Pro, Free, Team |
plan_type | Plan type | prepaid, postpaid |
billing_cycle_start | Billing period start | 2025-01-01 |
billing_cycle_end | Billing period end | 2025-02-01 |
cli_version | Tool version | 1.2.3 |
auth_type | How auth was resolved | api_key, oauth |
If the provider returns per-model breakdowns, populate snap.ModelUsage:
snap.ModelUsage = append(snap.ModelUsage, core.ModelUsageRecord{
RawModelID: "gpt-4o-2025-01-01",
ProviderSlug: "<provider_id>",
InputTokens: 1234,
OutputTokens: 567,
TotalCost: 0.0042,
RequestCount: 15,
})If the provider has historical daily data, populate snap.DailySeries:
snap.DailySeries = map[string][]core.TimePoint{
"cost": {
{Date: "2025-01-15", Value: 1.23},
{Date: "2025-01-16", Value: 2.34},
},
}providerbase.DefaultDashboard(providerbase.WithColorRole(...))) for simple header-probing providers with just RPM/TPM.widget.go when the provider has rich metrics (credits, spending, activity, per-model data).widget.go)package <provider_id>
import "github.com/janekbaraniewski/openusage/internal/core"
func dashboardWidget() core.DashboardWidget {
cfg := core.DefaultDashboardWidget()
cfg.ColorRole = core.DashboardColorRole<Color>
// Gauge priority — which metrics show as gauge bars in the tile (need Limit+Remaining or Limit+Used)
cfg.GaugePriority = []string{
"credit_balance", "spend_limit", "rpm", "tpm",
}
cfg.GaugeMaxLines = 2
// Compact rows — summary pills shown in the tile (2-3 rows, 3-5 segments each)
cfg.CompactRows = []core.DashboardCompactRow{
{Label: "Credits", Keys: []string{"credit_balance", "plan_spend", "monthly_spend"}, MaxSegments: 4},
{Label: "Usage", Keys: []string{"rpm", "tpm", "rpd", "tpd"}, MaxSegments: 4},
{Label: "Activity", Keys: []string{"messages_today", "sessions_today", "requests_today"}, MaxSegments: 4},
}
// Metric label overrides for the detail panel
cfg.MetricLabelOverrides["custom_metric"] = "Custom Metric Label"
// Compact label overrides for tile pills (keep very short: 3-6 chars)
cfg.CompactMetricLabelOverrides["custom_metric"] = "short"
// Hide noisy metrics from the tile
cfg.HideMetricPrefixes = append(cfg.HideMetricPrefixes, "model_")
cfg.SuppressZeroMetricKeys = []string{"some_usually_zero_metric"}
// Raw groups — metadata sections in the detail panel
cfg.RawGroups = append(cfg.RawGroups, core.DashboardRawGroup{
Label: "API Key Info",
Keys: []string{"key_name", "key_type", "expires_at"},
})
return cfg
}Limit and Remaining (or Limit and Used) render as gauge bars. Put the most meaningful resource-constraint metric first in GaugePriority.DetailWidget.Sections only if the provider has a unique data layout.Edit internal/providers/registry.go — import the new package and add <provider_id>.New() to the AllProviders() slice.
Edit internal/detect/detect.go — add to the envKeyMapping slice:
{"<PROVIDER_API_KEY>", "<provider_id>", "<account_id>"},Add a detect<ProviderName>(result *Result) function that uses findBinary(), checks config dirs, and calls addAccount(). Then call it from AutoDetect().
Update configs/example_settings.json — add an account entry to the accounts array:
{
"id": "<provider_id>",
"provider": "<provider_id>",
"api_key_env": "<PROVIDER_API_KEY>"
}TestFetch_Success — happy path with mocked HTTP server returning expected headers/JSONTestFetch_AuthRequired — missing API key returns StatusAuthTestFetch_RateLimited — HTTP 429 returns StatusLimitedpackage <provider_id>
import (
"context"
"net/http"
"net/http/httptest"
"os"
"testing"
"github.com/janekbaraniewski/openusage/internal/core"
)
func float64Ptr(v float64) *float64 { return &v }
func TestFetch_Success(t *testing.T) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("x-ratelimit-limit-requests", "100")
w.Header().Set("x-ratelimit-remaining-requests", "95")
w.WriteHeader(http.StatusOK)
w.Write([]byte(`{"ok": true}`))
}))
defer server.Close()
os.Setenv("TEST_<PROVIDER>_KEY", "test-key-value")
defer os.Unsetenv("TEST_<PROVIDER>_KEY")
p := New()
acct := core.AccountConfig{
ID: "test-<provider_id>",
Provider: "<provider_id>",
APIKeyEnv: "TEST_<PROVIDER>_KEY",
BaseURL: server.URL,
}
snap, err := p.Fetch(context.Background(), acct)
if err != nil {
t.Fatalf("Fetch() error: %v", err)
}
if snap.Status != core.StatusOK {
t.Errorf("Status = %v, want OK", snap.Status)
}
metric, ok := snap.Metrics["rpm"]
if !ok {
t.Fatal("missing rpm metric")
}
if metric.Limit == nil || *metric.Limit != 100 {
t.Errorf("rpm limit = %v, want 100", metric.Limit)
}
}
func TestFetch_AuthRequired(t *testing.T) {
os.Unsetenv("TEST_<PROVIDER>_MISSING")
p := New()
acct := core.AccountConfig{
ID: "test-<provider_id>",
Provider: "<provider_id>",
APIKeyEnv: "TEST_<PROVIDER>_MISSING",
}
snap, err := p.Fetch(context.Background(), acct)
if err != nil {
t.Fatalf("Fetch() error: %v", err)
}
if snap.Status != core.StatusAuth {
t.Errorf("Status = %v, want AUTH_REQUIRED", snap.Status)
}
}
func TestFetch_RateLimited(t *testing.T) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusTooManyRequests)
w.Write([]byte(`{"error": "rate limited"}`))
}))
defer server.Close()
os.Setenv("TEST_<PROVIDER>_KEY", "test-key-value")
defer os.Unsetenv("TEST_<PROVIDER>_KEY")
p := New()
acct := core.AccountConfig{
ID: "test-<provider_id>",
Provider: "<provider_id>",
APIKeyEnv: "TEST_<PROVIDER>_KEY",
BaseURL: server.URL,
}
snap, err := p.Fetch(context.Background(), acct)
if err != nil {
t.Fatalf("Fetch() error: %v", err)
}
if snap.Status != core.StatusLimited {
t.Errorf("Status = %v, want LIMITED", snap.Status)
}
}TestFetch_ParsesBalance — if the provider has a balance endpointTestFetch_ParsesUsage — if it parses usage/generation dataTestFetch_ServerError — HTTP 500 handlingTestFetch_MalformedJSON — graceful handling of bad response bodiesTestFetch_CustomBaseURL — ensure acct.BaseURL override worksAfter implementation, run these commands:
go build ./cmd/openusage
go test ./internal/providers/<provider_id>/ -v
go test ./internal/providers/... -v
make test
make vetBefore marking the provider as done, verify ALL items:
Provider struct embeds providerbase.BaseNew() constructor fills in complete ProviderSpec (ID, Info, Auth, Setup, Dashboard)Fetch() handles: missing key -> StatusAuth, HTTP 401/403 -> StatusAuth, HTTP 429 -> StatusLimitedFetch() uses http.NewRequestWithContext(ctx, ...) for all HTTP callsFetch() wraps errors with provider name prefixmake()internal/providers/registry.gointernal/detect/detect.go (env key or tool detection)configs/example_settings.jsonhttptest.NewServer, TEST_-prefixed env vars, no external callsgo build ./cmd/openusage succeedsgo test ./internal/providers/<provider_id>/ -v passesmake vet passesColorRole not conflicting with existing providersCompactRows designed with 2-3 meaningful rowsGaugePriority puts the most useful metric first| Provider | Pattern | Auth | Key Features |
|---|---|---|---|
openai | Header probing | API key | RPM/TPM from headers |
anthropic | Header probing | API key | RPM/TPM from headers |
deepseek | API + headers | API key | Balance endpoint + rate limits |
cursor | API + SQLite | Token | Rich billing, model aggregation |
claude_code | Local files | Local | Stats JSON parsing |
gemini_cli | Local files | OAuth | Config dir reading |
copilot | CLI subprocess | CLI | gh copilot integration |
openrouter | Rich REST API | API key | Credits, usage, keys analytics |
internal/core/types.go (UsageSnapshot, Metric, Status)internal/core/provider_spec.go (ProviderSpec, Auth types)internal/core/widget.go (DashboardWidget, ColorRole)internal/providers/providerbase/base.go (Base struct, helpers)internal/parsers/ (rate limit header parsing)internal/providers/registry.go (AllProviders)internal/detect/detect.go (AutoDetect, env key mapping)configs/example_settings.json| Color | Provider |
|---|---|
green | OpenAI |
peach | Anthropic |
lavender | Cursor |
blue | Gemini CLI |
sky | DeepSeek |
teal | xAI |
yellow | Groq |
sapphire | Mistral |
rosewater | OpenRouter |
maroon | Copilot |
flamingo | Codex |
auto | Claude Code |
Choose a unique color role not in this list.
© janekbaraniewski, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in docs/skills/openusage-provider of janekbaraniewski/openusage.
Open the folder on GitHubat commit f76f3dd
Openusage Provider next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Openusage Provider this skilljanekbaraniewski/openusage | 218 | — | ~5.2k | Automated safety check: Pass | MIT | |
| Quota Axikunchenguid/quota-axi | 146 | — | ~547 | Automated safety check: Pass | MIT | |
| Openrouter Rate Limitsjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~2.4k | Automated safety check: Pass | MIT | |
| LLM GatewayBagelHole/DevOps-Security-Agent-Skills | 1.1k | — | ~2k | Automated safety check: Pass | MIT | |
| Openrouter Load Balancingjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~2.4k | Automated safety check: Pass | MIT | |
| Add Hosted Keysimstudioai/sim | 30k | — | ~3.4k | Automated safety check: Pass | Apache-2.0 |
kunchenguid/quota-axi
Report local Claude, Codex, Cursor, GitHub Copilot, Grok, Kimi, Z.AI, Alibaba, OpenCode Go, Antigravity, Command Code, MiniMax, MiMo, DeepSeek, OpenRouter, ElevenLabs, Devin, Muse, and Higgsfield…
jeremylongshore/tons-of-skills-marketplace
Understand and handle OpenRouter rate limits. An agent skill from jeremylongshore/tons-of-skills-marketplace.
BagelHole/DevOps-Security-Agent-Skills
Deploy an API gateway for LLM traffic with load balancing, rate limiting, key management, semantic caching, fallback routing, and cost tracking.
jeremylongshore/tons-of-skills-marketplace
Distribute OpenRouter requests across multiple keys and models for high throughput.
simstudioai/sim
Add hosted API key support to a tool so Sim provides the key (metered and billed to the workspace) when a user has not brought their own.
upstash/ratelimit-js
Lightweight guidance for using the Redis Rate Limit TypeScript SDK, including setup steps, basic usage, and pointers to advanced algorithm, features, pricing, and traffic‑protection docs.
janekbaraniewski/openusage
Design new features for OpenUsage with structured design docs and implementation tasks.
janekbaraniewski/openusage
Implement a feature from an existing design doc. An agent skill from janekbaraniewski/openusage.
janekbaraniewski/openusage
Review a design doc against the actual codebase, find inconsistencies, and quiz the user on needed fixes.
Works with
Categories
Add new AI usage providers to the OpenUsage TUI dashboard. An agent skill from janekbaraniewski/openusage. Openusage Provider is an agent skill from janekbaraniewski/openusage. Add new AI usage providers to the OpenUsage TUI dashboard.
Openusage Provider fits situations like: tasks that involve Rate limiting.
Run `npx skills add janekbaraniewski/openusage --skill openusage-provider -a claude-code`. Or copy the skill folder (docs/skills/openusage-provider in janekbaraniewski/openusage) into .claude/skills/openusage-provider in your project. Claude Code loads it when a task matches its description.
Run `npx skills add janekbaraniewski/openusage --skill openusage-provider -a codex`. Or copy the skill folder (docs/skills/openusage-provider in janekbaraniewski/openusage) into .agents/skills/openusage-provider in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add janekbaraniewski/openusage --skill openusage-provider -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openusage-provider, .gemini/skills/openusage-provider, .github/skills/openusage-provider and .opencode/skills/openusage-provider in your project.
Going by SKILL.md and its folder, Openusage Provider needs the command-line tools its instructions call (go, make and gh) and credentials named PROVIDER_API_KEY and XAI_API_KEY. Our summary lists: A credential in PROVIDER_API_KEY; A credential in XAI_API_KEY.
SKILL.md names 1 domain. In commands or code: api.openai.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Openusage Provider is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 5.2k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Openusage Provider: Quota Axi (kunchenguid/quota-axi, 146 stars), Openrouter Rate Limits (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), LLM Gateway (BagelHole/DevOps-Security-Agent-Skills, 1.1k stars) and Openrouter Load Balancing (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
janekbaraniewski (a GitHub user) maintains it in janekbaraniewski/openusage, which has 218 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 5, 2026.
Source: janekbaraniewski/openusage on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.