Repository navigation
Claude per-model weekly caps, model-aware limit estimate, and Since Codex reset - #1
Merged
Merged
Conversation
Carried over unchanged from the main checkout's working tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude reports a weekly cap per model (Fable) and how many points of the all-models week that model used. Tokenly now shows the cap and prices each model's usage at its own rate, so "100% ≈ $" no longer drops when the mix shifts toward Fable. The CLI's --quota lists the caps too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Shows Claude's per-model weekly caps (Fable) next to the all-models week, and keeps the "100% ≈ $" estimate steady when the model mix shifts.
What changes
Per-model caps (2f56496)
get_usagenow reports a weekly cap per model (limitsentries of kindweekly_scoped, ormodel_scoped) and each model's share of the all-models week (weekly_scoped_shares). The popover shows the cap as its own row ("7d Fable"), andtokenly --quotalists it too.Earlier work that was running in the installed app but never committed (ef9e47e)
claude-opus-4-8,gpt-6.2-astraandgpt-6.2-sol. GPT-6.2 requests above 272,000 input tokens use the long-context rate (input ×2, output ×1.5) with the built-in prices.<…>) are skipped.Checked
python3 -m unittest discover -s tests).tokenly.pyusage tables and--quotarun against real local logs.🤖 Generated with Claude Code