Skip to content

Latest commit

 

History

History
247 lines (199 loc) · 14.5 KB

providers.md

File metadata and controls

247 lines (199 loc) · 14.5 KB

Providers

How each provider signs in and what its card shows.

  • Every value comes from the provider's API. The one estimate is ChatGPT's credits, at 4¢ each.
  • OpenUsage computes no spend from logs and applies no model pricing. A metric the provider does not report stays hidden.
  • Time ranges (Today, Yesterday, This Week, and the like) always show, at 0 when the provider reports nothing.
  • Balances show even at $0 left.
  • Extra Usage shows while the provider has it on, even at $0, and hides while it is off.
Provider Sign-in Card shows
Claude Browser (claude.ai OAuth) Session, Weekly, Sonnet, Fable, Extra Usage, Limit Resets
ChatGPT Browser (OpenAI OAuth), with a device-code fallback Session, Weekly, Spark, Spark Weekly, Extra Usage, Credit Limit, Limit Resets, Today, Yesterday, Last 30 Days
Cursor Browser (cursor.com) Total Usage, Cursor Models, Other Models, Extra Usage, Grok Bot, Requests, Credits, Today, Yesterday, Last 30 Days
Amp Device code (Amp) Agent Usage, Orb Hours, Amp Free, Credits
Antigravity Browser (Google OAuth) Gemini 5h, Gemini, Argon, Claude 5h, Claude
Copilot Device code (GitHub or GHE.com) Credits, Extra Usage, Chat, Completions
Copilot organization Organization and token Org Credits, Org Spend
Devin Browser (devin.ai) Daily, Weekly, Extra Usage
Grok Device code (xAI) Weekly, Extra Usage
Muse Code Device code (Meta) Session, Weekly
Ollama API key Session, Weekly, Monthly, Extra Usage, Today, Yesterday, Last 30 Days, Requests
OpenCode Device code (OpenCode Console) Session, Weekly, Monthly
OpenRouter Management API key, or a standard API key Balance, Today, Yesterday, This Week, This Month, Prior 30 Days, Key Limit, Budget, Free Requests
Z.ai API key Session, Weekly, Web Searches, Limit Resets

What you grant

Each OAuth sign-in asks for the least the card needs. A refresh never asks for more than the sign-in did, except Claude's: it asks for today's scopes and falls back to the old ones when Anthropic refuses. The token is stored in the app's Keychain.

Provider Scopes requested Notes
Claude user:profile, user:inference Anthropic only lets a token with user:inference spend a reset, so OpenUsage asks for it. That scope also lets the token run Claude on your plan; OpenUsage never does. The token cannot create API keys or reach Claude Code sessions, MCP servers, or uploads.
ChatGPT openid profile email offline_access Plain OpenID Connect. The email names the account.
Cursor none Cursor's sign-in returns a dashboard session with no scopes.
Amp none The same device sign-in the Amp CLI uses. The token lasts five minutes, so OpenUsage renews it before each read.
Antigravity cloud-platform, userinfo.email Google's quota API requires cloud-platform.
Copilot read:user (ignored by GitHub) GitHub ignores the scopes a GitHub App asks for, so OpenUsage cannot narrow the token. It reads only your login and your quota with it.
Copilot organization none; you create the token A fine-grained personal access token with Organization permissions, Administration, Read-only, from an organization owner or billing manager.
Devin none The same sign-in the Devin CLI uses, so the session token it returns can do what the CLI can. OpenUsage only reads your quota with it.
Grok openid email offline_access grok-cli:access OpenUsage doesn't ask for api:access, which would let the token run Grok models.
OpenCode none The same device sign-in the OpenCode CLI uses to connect a Console account, scoped to the workspace you pick.
Muse Code none Meta's device sign-in takes no scopes. The usage read also returns the account's Model API key, which OpenUsage never reads or stores.

A narrower grant applies the next time you add an account. To get it for an existing account, remove the account and add it again.

A Claude account signed in before OpenUsage asked for user:inference keeps reading usage, but Anthropic refuses its reset claims with HTTP 401. The resets popover then asks you to remove the account and add it again.

Claude

  • Sign in through claude.ai in your browser. If the browser shows a code instead of returning to the app, paste it into the sheet.
  • The card reads the plan (Pro, Max, or Ultra) once an hour. Ultra has no 5-hour limit, so it has no Session row.
  • Extra Usage shows spend against the monthly limit, or the amount spent when there is no limit, in the account's billing currency. It hides while extra usage is off. On an Enterprise plan, where this is the whole monthly bill, the row reads Spend.
  • Limit Resets counts the account's rate-limit resets. Click the count to see each one by kind (Session, Weekly, Fable or Full Reset), with its countdown and the date and time it expires. With 5 minutes or less left, the countdown reads Expiring. The kind comes from the reset's own fields, the same way Claude Code reads them. Choose Use, then Reset, to spend the reset you picked. The confirmation says which limits it refills. Use shows only on a reset Anthropic says can be used now. If Anthropic wants another reset used first, the popover says which, and nothing is spent. At launch the kinds and Use come from the last saved answer; Use checks the reset with Anthropic again before it spends anything.

ChatGPT

  • Sign in through OpenAI in your browser. If the app cannot listen on port 1455, it offers a device code instead.
  • The command line calls this provider codex.
  • Extra Usage shows your credits in dollars, at 4¢ a credit, even at $0. It hides while ChatGPT reports credits off.
  • Rate-limit resets work like Claude's. Each one is a Full Reset.
  • Credit Limit shows the credits a workspace lets you spend and when that resets. It shows only when the workspace sets one.

Today, Yesterday, and Last 30 Days show the text tokens ChatGPT counted per UTC day, from the reports behind the Codex app's Analytics view. ChatGPT reports no dollar amount for them.

The card reads these reports once an hour, at the start of a UTC day, and on ⌘R. If today's or yesterday's counts can't be read, that range reads 0, and Last 30 Days still includes the older days.

Cursor

  • Sign in through cursor.com in your browser.
  • Extra Usage is on-demand usage and resets with the billing cycle. It hides when on-demand usage is off (no spend limit, or a $0 one). When the limit is the team's shared pool and not yours, the row reads Team Spend.
  • Credits reads $0 left when Cursor reports none.
  • A unified account (Cursor, X and Grok merged) has one weekly included pool, so it shows Total Usage for that pool and no Cursor Models, Other Models, or Grok Bot rows. Credits is the balance on the dashboard's Credits card. Extra Usage is the dashboard's Additional usage: what this month's usage past the pool cost, paid from credits. With no monthly limit it shows only that amount, even at $0; with a limit it shows against the limit and resets with the month. It hides when additional usage is off.

Today, Yesterday, and Last 30 Days show what Cursor charged and the tokens it reported, from the usage history on Cursor's Usage page. The charge counts only on-demand usage. Included usage and errored or free requests count as $0. Tokens count every event.

How the history is read:

  • One local day at a time, at most 4 days at once and for at most 20 seconds per refresh.
  • Today and yesterday on every refresh. An older day until one read of it succeeds.
  • Days are kept in memory, so the first refresh after a launch reads all 30 days again.
  • A failed day adds nothing to a range.
  • If Cursor rate-limits a read, the retry waits for its Retry-After, or an hour.

Amp

  • Sign in with an Amp device code. The browser opens the page amp login opens, with the code filled in. The account takes the email Amp reports.
  • The card shows what amp usage prints:
    • Agent Usage: the plan's agent dollars spent.
    • Orb Hours: the plan's orb hours used.
    • Amp Free: the daily free allowance.
    • Credits: your individual credits, even at $0 left.
  • Each row shows only when Amp reports it. Agent Usage and Orb Hours reset at the end of the billing period Amp reports. Amp gives no time for the daily Amp Free reset, so that row has none.

Antigravity

  • Sign in with Google in your browser.
  • The card shows the Gemini and Claude pools (5-hour and weekly) and the Argon weekly window.
  • Quota requests identify as the Antigravity hub client so Google includes the separate Argon window.
  • If the project has no quota subscription, the card explains the access issue. If the project lookup failed, refresh again.

Copilot

  • Sign in with a GitHub device code. The sign-in first asks for a domain: leave it blank for github.com, or enter your company's GitHub Enterprise address on GHE.com, such as octocorp.ghe.com. A pasted link works, and a bare name like octocorp means octocorp.ghe.com. Self-hosted GitHub Enterprise Server isn't supported.
  • A GHE.com sign-in checks your Copilot seat once and isn't added without one. The account shows its domain on the dashboard and Signed in at its domain on its page. Sign In Again… keeps the domain.
  • Extra Usage hides when the plan doesn't allow it.

To see an organization's billing, add it as its own account. Choose Copilot, then Organization Billing, and enter the organization and a token from an owner or billing manager. The card shows Org Credits (AI credits the organization used this month) and Org Spend (dollars billed beyond the included pool).

Devin

  • Sign in to Devin in the browser that opens. The sheet closes when you're signed in.
  • OpenUsage reads usage from server.codeium.com, the Devin CLI's default server.
  • Extra Usage shows the balance whenever Windsurf reports one, even $0 left. Windsurf leaves out a zero balance, and then the row hides.
  • A plan that hides its daily quota shows it in the Weekly row when the plan has no weekly quota.
  • An account with no quota and no balance has nothing to show, and the card says so.

Grok

  • Sign in with an xAI device code.
  • Weekly is the shared pool. Extra Usage shows the pay-as-you-go cap and hides when there is no cap or a $0 one.
  • A team account has no personal quota. Its card shows the plan and says so.

Muse Code

  • Sign in with a Meta device code. The browser opens with the code filled in. The account takes the email Muse reports.
  • The card shows the Muse Code plan, the 5-hour Session, and the Weekly limit.
  • Muse reports no usage until the plan's first prompt, so both limits read 0% until then.
  • Muse leaves out usage while the 5-hour window is idle, so the card keeps the last values it read. A window whose reset has passed reads 0%.
  • A Meta account without a Muse Code subscription has no quota, and the card says so.
  • The sign-in has no renewal. When Meta stops accepting it, use Sign In Again….

Ollama

  • Paste an API key from ollama.com/settings/keys.
  • The card shows the session, weekly, and monthly windows your plan has. A free plan has none of them, so its card shows Extra Usage and the usage rows below.
  • Extra Usage shows purchased credits whenever Ollama reports them, even $0 left.
  • The right-click menu adds an API Keys link.

Today, Yesterday, and Last 30 Days show Ollama's usage per UTC day: its dollar value (what the requests are worth, whether the plan or credits paid) and the input and output tokens. Requests counts the last 30 days. A legacy plan reports only requests, so its card shows Requests alone.

The card reads all 30 days after a launch, then today and yesterday once an hour, at the start of a UTC day, and on ⌘R.

OpenCode

  • Sign in with an OpenCode Console device code, the sign-in the OpenCode CLI uses. Pick the workspace on the page that opens. The account takes your Console email, and each workspace is its own account.
  • The card shows the session, weekly, and monthly caps, and the plan the Console names: Go, Go Plus, or Go Teams. If the plan read fails, the card keeps its caps and shows no plan until the next try an hour later.
  • An account added earlier with an API key keeps reading its caps but shows no plan, since the key can't read it. Its page offers Sign In Again…, which switches it to the sign-in and keeps its name, order, and settings.

OpenRouter

Paste a Management key from openrouter.ai/settings/management-keys to see the whole account.

  • Balance is the credits you bought minus what you spent. It has no bar.
  • Today, This Week, and This Month add up the spend of every standard key in your default workspace, disabled and expired keys included.
  • Yesterday and Prior 30 Days come from OpenRouter's activity, which covers the 30 UTC days before today. The card reads all 30 days after a launch, then yesterday once an hour.
  • A Management key scoped to one workspace has no Balance, and its ranges add up that workspace's keys.
  • Spend through your own provider keys (BYOK) never counts toward the credit spend.

A standard API key shows its own spend: Today, This Week, This Month, Key Limit when the key has a limit, Budget when a guardrail or workspace budget applies, and Free Requests for the UTC day. It has no Balance, and its Yesterday and Prior 30 Days read $0. A daily, weekly, or monthly limit resets at midnight UTC, and weeks start on Monday.

The right-click menu adds a Credits link.

Z.ai

  • Paste an API key from the Z.ai key list.
  • The card shows the GLM Coding Plan session and weekly windows and the web-search quota.
  • A key without a GLM Coding Plan has no quota, and the card says so.
  • Limit Resets counts the banked Session and Weekly resets. Click the count to see them in one list, each titled Session Reset or Weekly Reset. Use spends the earliest of each kind.
  • The right-click menu adds an API Keys link.

Errors

A warning icon next to an account means the last refresh failed, or the provider has no usage to report. The account's right-click menu starts with the reason.

  • Sign-in expired. Use Sign In Again… on the account's page.
  • Rejected the API key. Use Replace API Key… on the account's page.
  • Rate limited and HTTP errors clear on a later refresh. See Refreshing.
  • Accounts from a CLIProxyAPI hub have their own messages. See CLIProxyAPI hubs.