Show HN: Tokencap – Token budget enforcement across your AI agents
4.2(1,000 beoordelingen)
Betaald· vanaf US$20.00/maand
Gelanceerd in 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
Voordelen
- +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
Nadelen
- −Limitado a agentes de IA específicos
- −Configuração de limiares pode ser complexa
Você também pode gostar
Cursor
4.8(8,900)
Editor de código com IA integrada
ProgramaçãoFreemiumvanaf US$20.00/maand
Claude
4.8(9,220)
Assistente da Anthropic com foco em raciocínio longo
Escrita & TextoFreemiumvanaf US$20.00/maand
ChatGPT
4.7(18,420)
Assistente de IA conversacional da OpenAI
Escrita & TextoFreemiumvanaf US$20.00/maand