Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenAI Platform and Anthropic Console users can connect separate API monitors in Settings to see organization-reported spend and tokens for today and the last 30 UTC calendar days. OpenAI also reports completion requests. Anthropic includes Messages API cache-token categories, converts decimal cents to USD, and discloses that reported costs exclude Priority Tier charges. The README explains Anthropic's individual-account restriction.
Connect provides masked key entry and tests both reporting endpoints. Entered keys are saved in MeterUsage-owned macOS Keychain items so quitting or updating the app does not forget the connection. Disconnect deletes the saved item. Storage errors remain visible and preserve the current connection. An unreadable saved key offers Restore saved connection instead of opening a new-key field. A failed save retains the entered value privately in memory for Retry saving key. Ad-hoc updates may require macOS Keychain authorization, but reuse the existing API key.
OpenAI API also appears in the side notch, showing reported 30-day spend and the existing detail card without inferring quota percentages, reset times, or pace. Quota percentages retain a fixed size when switching between cards. Organization usage stays separate from Codex/Claude subscription limits and local coding totals.
Keys are sent directly to the provider through ephemeral sessions that reject redirects. They never enter preferences, plaintext files, logs, diagnostics, or the UI as plain text. The app retains default Keychain access controls. Saved keys take precedence over launcher environment keys, which remain session-only. Demo mode and normal unit tests never access production Keychain items.
Validation at ce8d21e:
swift build, all 391 tests,Scripts/make-app.sh, and strict code-sign verification passed for the PR source.Model(s): GPT-6-Astra (controller), GPT-5.6-Luna (bounded recovery edits).
Harness: T3 Code through Codex.