Agent skill

Openusage Provider

by janekbaraniewski in janekbaraniewski/openusage

Add new AI usage providers to the OpenUsage TUI dashboard. An agent skill from janekbaraniewski/openusage.

MITAuto-check passedBackend & APIs

Install Openusage Provider

skills CLI
$ npx skills add janekbaraniewski/openusage --skill openusage-provider -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install janekbaraniewski/openusage openusage-provider --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
openusage-provider
GitHub stars
218
Token cost
~5.2k tokens
SKILL.md length
1,345 words
Files
3
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Add new AI usage providers to the OpenUsage TUI dashboard. An agent skill from janekbaraniewski/openusage.

  • Works in 7 steps: Quiz the User (MANDATORY) → Research → Create the Provider Package → …
  • Tasks that involve Rate limiting
  • SKILL.md covers Phase 0 — Quiz the User…, Phase 1 — Research, Phase 2 — Create the Provider… and Phase 3 — Dashboard Widget…, plus 7 more sections
  • Calls go, make and gh; reaches api.openai.com; needs PROVIDER_API_KEY and XAI_API_KEY

What it does

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.

When your agent uses it

  • Tasks that involve Rate limiting

Example prompts

  • “/openusage-provider”

Requirements

  • A credential in PROVIDER_API_KEY
  • A credential in XAI_API_KEY

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Quiz the User (MANDATORY)
  2. Research
  3. Create the Provider Package
  4. Dashboard Widget Configuration
  5. Register the Provider
  6. Write Tests
  7. Verify

What it can do on your machine

Read from SKILL.md and the folder at commit f76f3dd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • go
    • make
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.openai.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • PROVIDER_API_KEY
    • XAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~5.2k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from janekbaraniewski/openusage at commit f76f3dd, republished under its MIT licence (© janekbaraniewski). 1,345 words, ~5,190 tokens.

Download SKILL.mdSave it as .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.
name
openusage-provider
description
Add new AI usage providers to the OpenUsage TUI dashboard.
scope
project

OpenUsage Provider Skill

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.


Phase 0 — Quiz the User (MANDATORY)

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).

Questions to ask:
  1. Provider name & ID

    • What is the human-readable name? (e.g. "OpenAI", "DeepSeek", "Gemini CLI")
    • What should the snake_case provider ID be? (e.g. openai, deep_seek, gemini_cli)
  2. 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)
  3. If API key auth: What is the env var name? (e.g. XAI_API_KEY)

  4. Data source — how do we get usage data?

    • HTTP API with rate-limit headers (probe a lightweight endpoint like /v1/models)
    • Dedicated usage/balance REST endpoint (e.g. DeepSeek /user/balance)
    • Local files (stats JSON, session files, SQLite databases)
    • CLI subprocess output
    • Combination of the above
  5. What metrics are available? Try to identify:

    • Rate limits: RPM, TPM, RPD, TPD (from headers or API)
    • Spending: balance, credits, daily/weekly/monthly spend
    • Usage: messages, tokens (input/output/reasoning), sessions, tool calls
    • Account metadata: plan name, email, org, billing cycle
  6. API documentation URL — link to the provider's rate-limit or usage docs

  7. Base URL — the API base (e.g. https://api.openai.com/v1)

  8. Probe model (if using header probing) — a cheap/default model to use for the probe request (e.g. gpt-4.1-mini)

  9. 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)
  10. Does the provider support per-model usage breakdowns? (for the Analytics tab)


Phase 1 — Research

Before coding, look up the provider's API docs to understand:

  • Exact HTTP endpoints, methods, headers
  • Response JSON schemas
  • Rate-limit header names and formats
  • Any balance/credits/usage endpoints
  • Authentication header format (Bearer, x-api-key, etc.)
  • Error response codes and their meaning (401, 403, 429)

Document your findings in a brief summary before proceeding.


Phase 2 — Create the Provider Package

2.1 Directory structure

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)
2.2 Provider implementation (<provider_id>.go)

The provider MUST:

  1. Define a Provider struct that embeds providerbase.Base:
go
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
}
  1. Implement a New() constructor that registers the ProviderSpec:
go
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>))
        }),
    }
}
  1. Implement the Fetch() method — this is the core data collection logic.

Key rules for Fetch():

  • First param is context.Context — pass it to all HTTP requests via http.NewRequestWithContext
  • Second param is core.AccountConfig — use acct.ResolveAPIKey() for API key, acct.BaseURL for custom base URL, acct.Binary for CLI path
  • Return (core.UsageSnapshot, error)
  • For auth failures: return a valid snapshot with Status: core.StatusAuth and err == nil
  • For rate limiting: return snapshot with Status: core.StatusLimited and err == nil
  • For fatal errors (network failure, bad request): return (core.UsageSnapshot{}, err)
  • Always prefix error messages with provider name: fmt.Errorf("<provider_id>: creating request: %w", err)
  • Initialize all maps: Metrics: make(map[string]core.Metric), Resets: make(map[string]time.Time), etc.
Pattern A: HTTP header probing (simplest — for providers that expose rate-limit headers)
go
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
}
Pattern B: REST API + balance endpoint (like DeepSeek)

Split into helper methods: fetchBalance(), fetchRateLimits(), etc. Parse JSON responses into core.Metric entries. Use snap.SetAttribute("key", "value") for account metadata.

Pattern C: Local file readers (like Claude Code, Codex)

Read from known paths using acct.Binary or acct.ExtraData["config_dir"]. Parse JSON/SQLite data. Populate metrics from parsed data.

2.3 Metric keys — naming conventions
CategoryKey patternUnitWindowExamples
Rate limitsrpm, tpm, rpd, tpdrequests/tokens1m/1drpm, tpm
Spendingtotal_cost_usd, today_api_cost, 7d_api_cost, monthly_spendUSDcurrent/today/7d/monthcredit_balance
Creditscredit_balance, credits, plan_spendUSD/creditscurrentcredit_balance
Usage countsmessages_today, sessions_today, tool_calls_todaymessages/sessions/callstodaymessages_today
Token countstokens_today, input_tokens, output_tokenstokensvariestoday_input_tokens
Planplan_percent_used, spend_limit%/USDvariesplan_percent_used
Per-modelmodel_<model_name>_<metric>variesvariesmodel_gpt4_cost
2.4 Attribute keys — naming conventions

Use snap.SetAttribute() for metadata displayed in the details panel:

KeyDescriptionExample value
account_emailAccount emailuser@example.com
account_nameAccount/key nameMy API Key
plan_namePlan tier namePro, Free, Team
plan_typePlan typeprepaid, postpaid
billing_cycle_startBilling period start2025-01-01
billing_cycle_endBilling period end2025-02-01
cli_versionTool version1.2.3
auth_typeHow auth was resolvedapi_key, oauth
2.5 ModelUsage records (for Analytics tab)

If the provider returns per-model breakdowns, populate snap.ModelUsage:

go
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,
})
2.6 DailySeries (for Analytics charts)

If the provider has historical daily data, populate snap.DailySeries:

go
snap.DailySeries = map[string][]core.TimePoint{
    "cost": {
        {Date: "2025-01-15", Value: 1.23},
        {Date: "2025-01-16", Value: 2.34},
    },
}

Phase 3 — Dashboard Widget Configuration

3.1 When to use defaults vs custom widget
  • Use defaults (via providerbase.DefaultDashboard(providerbase.WithColorRole(...))) for simple header-probing providers with just RPM/TPM.
  • Create widget.go when the provider has rich metrics (credits, spending, activity, per-model data).
Show full SKILL.md (537 more words)Show less
3.2 Custom widget (widget.go)
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
}
3.3 Widget design principles
  • Gauges: Only metrics with both Limit and Remaining (or Limit and Used) render as gauge bars. Put the most meaningful resource-constraint metric first in GaugePriority.
  • Compact rows: The tile shows 2-3 rows of compact pills. Design rows covering Credits/Spending, Rate Limits/Usage, and Activity/Tokens.
  • Color: Choose a color role that doesn't clash with neighboring providers (see the map in Phase 0 Q9).
  • Detail panel: The default sections (Usage, Spending, Tokens, Activity) work for most providers. Customize DetailWidget.Sections only if the provider has a unique data layout.

Phase 4 — Register the Provider

4.1 Add to registry

Edit internal/providers/registry.go — import the new package and add <provider_id>.New() to the AllProviders() slice.

4.2 Add auto-detection (if applicable)
For API key providers

Edit internal/detect/detect.go — add to the envKeyMapping slice:

go
{"<PROVIDER_API_KEY>", "<provider_id>", "<account_id>"},
For CLI/local tool providers

Add a detect<ProviderName>(result *Result) function that uses findBinary(), checks config dirs, and calls addAccount(). Then call it from AutoDetect().

4.3 Add example config

Update configs/example_settings.json — add an account entry to the accounts array:

json
{
    "id": "<provider_id>",
    "provider": "<provider_id>",
    "api_key_env": "<PROVIDER_API_KEY>"
}

Phase 5 — Write Tests

5.1 Required test cases (minimum 3)
  1. TestFetch_Success — happy path with mocked HTTP server returning expected headers/JSON
  2. TestFetch_AuthRequired — missing API key returns StatusAuth
  3. TestFetch_RateLimited — HTTP 429 returns StatusLimited
5.2 Test template
go
package <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)
    }
}
5.3 Additional test cases for rich providers
  • TestFetch_ParsesBalance — if the provider has a balance endpoint
  • TestFetch_ParsesUsage — if it parses usage/generation data
  • TestFetch_ServerError — HTTP 500 handling
  • TestFetch_MalformedJSON — graceful handling of bad response bodies
  • TestFetch_CustomBaseURL — ensure acct.BaseURL override works

Phase 6 — Verify

After implementation, run these commands:

bash
go build ./cmd/openusage
go test ./internal/providers/<provider_id>/ -v
go test ./internal/providers/... -v
make test
make vet

Checklist

Before marking the provider as done, verify ALL items:

  • Provider struct embeds providerbase.Base
  • New() constructor fills in complete ProviderSpec (ID, Info, Auth, Setup, Dashboard)
  • Fetch() handles: missing key -> StatusAuth, HTTP 401/403 -> StatusAuth, HTTP 429 -> StatusLimited
  • Fetch() uses http.NewRequestWithContext(ctx, ...) for all HTTP calls
  • Fetch() wraps errors with provider name prefix
  • All maps initialized with make()
  • Provider registered in internal/providers/registry.go
  • Auto-detection added in internal/detect/detect.go (env key or tool detection)
  • Example config entry added to configs/example_settings.json
  • At least 3 tests: success, auth-required, rate-limited
  • Tests use httptest.NewServer, TEST_-prefixed env vars, no external calls
  • go build ./cmd/openusage succeeds
  • go test ./internal/providers/<provider_id>/ -v passes
  • make vet passes
  • Dashboard widget has a unique ColorRole not conflicting with existing providers
  • Widget CompactRows designed with 2-3 meaningful rows
  • Widget GaugePriority puts the most useful metric first

Existing Provider Reference

ProviderPatternAuthKey Features
openaiHeader probingAPI keyRPM/TPM from headers
anthropicHeader probingAPI keyRPM/TPM from headers
deepseekAPI + headersAPI keyBalance endpoint + rate limits
cursorAPI + SQLiteTokenRich billing, model aggregation
claude_codeLocal filesLocalStats JSON parsing
gemini_cliLocal filesOAuthConfig dir reading
copilotCLI subprocessCLIgh copilot integration
openrouterRich REST APIAPI keyCredits, usage, keys analytics

Key Files Reference

  • Core types: internal/core/types.go (UsageSnapshot, Metric, Status)
  • Provider spec: internal/core/provider_spec.go (ProviderSpec, Auth types)
  • Widget config: internal/core/widget.go (DashboardWidget, ColorRole)
  • Provider base: internal/providers/providerbase/base.go (Base struct, helpers)
  • Parsers: internal/parsers/ (rate limit header parsing)
  • Registry: internal/providers/registry.go (AllProviders)
  • Detection: internal/detect/detect.go (AutoDetect, env key mapping)
  • Example config: configs/example_settings.json

Color Role Assignments (Do Not Duplicate)

ColorProvider
greenOpenAI
peachAnthropic
lavenderCursor
blueGemini CLI
skyDeepSeek
tealxAI
yellowGroq
sapphireMistral
rosewaterOpenRouter
maroonCopilot
flamingoCodex
autoClaude 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

Files

SKILL.md and 2 other files in docs/skills/openusage-provider of janekbaraniewski/openusage.

  • SKILL.md
  • README.md
  • skill.json

Open the folder on GitHubat commit f76f3dd

Compare with similar skills

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.

Openusage Provider compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openusage Provider this skilljanekbaraniewski/openusage218—~5.2kAutomated safety check: PassMIT
Quota Axikunchenguid/quota-axi146—~547Automated safety check: PassMIT
Openrouter Rate Limitsjeremylongshore/tons-of-skills-marketplace2.8k—~2.4kAutomated safety check: PassMIT
LLM GatewayBagelHole/DevOps-Security-Agent-Skills1.1k—~2kAutomated safety check: PassMIT
Openrouter Load Balancingjeremylongshore/tons-of-skills-marketplace2.8k—~2.4kAutomated safety check: PassMIT
Add Hosted Keysimstudioai/sim30k—~3.4kAutomated safety check: PassApache-2.0

Similar skills

  • 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…

    146 GitHub stars~547 tokensUpdated today
    Backend & APIsAuto-check passed
  • Openrouter Rate Limits

    jeremylongshore/tons-of-skills-marketplace

    Understand and handle OpenRouter rate limits. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2.4k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • LLM Gateway

    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.

    1.1k GitHub stars~2k tokensUpdated 4 mo ago
    AI & LLM EngineeringAuto-check passed
  • Openrouter Load Balancing

    jeremylongshore/tons-of-skills-marketplace

    Distribute OpenRouter requests across multiple keys and models for high throughput.

    2.8k GitHub stars~2.4k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Add Hosted Key

    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.

    30k GitHub stars~3.4k tokensUpdated today
    Backend & APIsAuto-check passed
  • Upstash Ratelimit TS

    upstash/ratelimit-js

    Official

    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.

    2k GitHub stars~313 tokensUpdated 14 days ago
    Backend & APIsAuto-check passed

More from janekbaraniewski/openusage

  • Design Feature

    janekbaraniewski/openusage

    Design new features for OpenUsage with structured design docs and implementation tasks.

    218 GitHub stars~1.4k tokensUpdated 4 days ago
    Auto-check passed
  • Implement Feature

    janekbaraniewski/openusage

    Implement a feature from an existing design doc. An agent skill from janekbaraniewski/openusage.

    218 GitHub stars~2k tokensUpdated 4 days ago
    Auto-check passed
  • Review Design

    janekbaraniewski/openusage

    Review a design doc against the actual codebase, find inconsistencies, and quiz the user on needed fixes.

    218 GitHub stars~892 tokensUpdated 4 days ago
    Auto-check passed

Works with

Categories

Questions about Openusage Provider

What does Openusage Provider do?

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.

When should I use Openusage Provider?

Openusage Provider fits situations like: tasks that involve Rate limiting.

How do I install Openusage Provider in Claude Code?

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.

How do I install Openusage Provider in Codex?

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.

Can I use Openusage Provider in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Openusage Provider need to run?

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.

Does Openusage Provider access the network?

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.

Is Openusage Provider safe to install?

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.

What licence does Openusage Provider use?

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.

How many tokens does Openusage Provider use?

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.

What are the alternatives to Openusage Provider?

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.

Who maintains Openusage Provider?

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.