Nicheloom

Market intelligence for builders — see what's gaining traction before it's crowded.

Tokencap

Token budget enforcement across your AI agents

Details

External ID
47639207
Source
HN
Company
—
Product
Tokencap
Website domain
github.com
Launched
April 4, 2026
Cohort
—
Upvotes
7
Upvotes percentile
0.38817480719794345
Tags
—
Fetched at
Sept. 7, 2026, 9:26 p.m.
Updated at
Sept. 7, 2026, 9:26 p.m.

Description

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.Two ways to add it: # Direct client wrapper client = tokencap.wrap(anthropic.Anthropic(), limit=50_000) # LangChain, CrewAI, AutoGen, etc. tokencap.patch(limit=50_000) Four actions at configurable thresholds: WARN, DEGRADE (transparent model swap), BLOCK, and WEBHOOK. SQLite out of the box, Redis for multi-agent setups.One design decision worth mentioning: tokencap tracks tokens, not dollars. Token counts come directly from the provider response and never drift with pricing changes.Happy to answer any questions.

Enrichment

Theme
payments, billing, and wallet infrastructure
Vertical
Horizontal
Function
Observability & eval
Audience
Developer
AI stance
AI feature
Project type
Commercial product
Normalized one-liner
token budget management for ai agents
Manually corrected
False

Could you build this?

Yes It is an SDK middleware/wrapper around LLM client libraries that tracks token usage per request and enforces client-side spending limits.

Discussion

No comments on this launch.

Competitors

Other products that read as similar to this one — 111 launches clear the similarity bar, closest 8 shown.

Attention rank: #54 of 112 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).

Launched 155 days after the earliest competitor.

Other launches for this product

Same idea, different domain

Nobody's really built a observability & eval tool for Media & entertainment yet.