Repository navigation
Replies: 3 comments 1 reply
|
Thanks for opening this issue. Here are some possibly related discussions, issues, or pull requests:
|
0 replies
|
I read #204 after posting this, and want to say how this work fits the "glance, don't operate" idea:
|
0 replies
|
Thanks for splitting it by topic, maybe start with the reset feature, that is a nice one to have. Recommend just keeping it as one PR relating to showing Claude resets available at a glance. A bit worried about the grants endpoint, the rate limiting can get aggressive I wouldn't want to stop anyone's Claude Desktop from working, once a day sounds reasonable. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi! I've been running a fork with a set of features for people who use several Claude Code accounts on several computers. Before opening any PRs I'd like to know which parts, if any, you'd want upstream, and in what shape. Everything is on separate branches in https://github.com/bruring/Clawdmeter, listed below in the order they were built; each builds on the ones above it.
feature/integrationhas all of them merged, plus your currentmain.What's there
docs/token-usefeature/remote-hooksaccountUuid+ org), never by path. Addsclawdmeter hooks install/status/removeandclawdmeter hub ping/testfor headless machines.feature/all-accountsfeature/claude-grants/limit-resetuses) once a day, opt-in (claude_resets = on). They're shown like Codex's reset credits (rc/rx).feature/reset-kindsrfkey; Fable-only ones are drawn violet.feature/peek-accountsan/ap, and it restarts its rate ring on a switch, so a switch never reads as a reset). "Auto" follows the account you're prompting in. A button preset peeks at the next account.feature/swipefeature/reset-labelsPayload keys were changed on both sides (
keys_match_firmware_parserpasses), and older firmware and apps ignore the new keys.One thing you should decide on
The grants endpoint (
/api/oauth/usage?cedar_ember=1) only answers Claude Code's own User-Agent (claude-cli/<version> (external, cli)). Any other agent getsineligible_reason: "surface". So that one call, once a day and read-only, sends it. It's off by default and documented as such; CodexBar does the same. Every other call keepsclawdmeter/<version>(thehonest_user_agenttest still holds). If you'd rather not have that upstream, the grants branch can stay in the fork, and the rest doesn't depend on it.Small fixes that stand alone
claude -p /usagein it, which creates the folder and Claude Code's state inside it.Testing: fmt/clippy (Linux, macOS, Windows target), the workspace tests, the native firmware tests, and running daily on an M5Stack Core2 with three accounts and three computers.
Happy to split this into small PRs in whatever order suits you, or to keep it in the fork if it's more than you want to maintain.
All reactions