Show HN: Tokencap – Token budget enforcement across your AI agents
4.2(1,000 recenzji)
Płatne· od US$20.00/mies.
Uruchomiono w 2026
Sobre
I built this after hitting the same wall repeatedly — no good way to enforce token budgets in application code. Provider caps are account-level and tell you what happened, not what is happening.<p>Two ways to add it:<p><pre><code> # Direct client wrapper client = tokencap.wrap(anthropic.Anthropic(), limit=50_000) # LangChain, CrewAI, AutoGen, etc. tokencap.patch(limit=50_000) </code></pre> Four actions at configurable thresholds: WARN, DEGRADE (transparent model swap), BLOCK, and W
Zalety
- +Enforça orçamentos de tokens em agentes de IA
- +Dois métodos para adicionar: wrapper direto e patch
- +Quatro ações configuráveis com limiares: WARN, DEGRADE, BLOCK e WARN
Wady
- −Limitado a agentes de IA específicos
- −Configuração de limiares pode ser complexa