anomalyco / anomalyco/opencode
[FEATURE]:Per-API-Key Token Usage Limits
Open
@fwang is already working on this.
Since Aug 14, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
It would be useful to support setting a token usage limit for each API key.
For example:
API Key A: 1M tokens
API Key B: 10M tokens
API Key C: Unlimited
The system should track token usage for each API key and reject requests once the configured limit is reached.
It would also be helpful to display the current usage / limit for each API key.
This feature would make it easier to control token consumption and prevent unexpected or excessive usage.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.