Tokencap – Token budget enforcement across your AI agents
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…
Tokencap – Token budget enforcement across your AI agents launched on April 4, 2026 with 7 votes, #1,538 of 21,248 launches that month and more than 75% of that year's launches.
What it does
tokencap tracks token usage and enforces budgets across your AI agents - per agent, per user, or any scope you choose. Two ways to add it: Direct SDK: tokencap.wrap(anthropic.Anthropic(), limit=50_000) Any framework: tokencap.patch(limit=50_000) WARN, DEGRADE, BLOCK, or WEBHOOK when budgets are hit. SQLite out of the box, Redis for multi-agent enforcement. Zero required dependencies. pip install tokencap
Token budget enforcement for AI agents. Hard limits, configurable policy, zero infrastructure required. - pykul/tokencap
In the maker’s words, at launch
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…
Does a similar job
all alternatives →

I built Tokenyst to stop getting shocked by Claude Code API billsMay 2026 · github.com · ▲9I code on Claude's pay as you go API and started budgeting my token usage with my own CLI wrapper. Basically I set a budget for a task that I'm working on in my project: Task: "Fix mobile responsiveness" Budget: $3.00 and the budget updates after each prompt: Task: "Fix mobile responsiveness" Budget: $2.34 / $3.00 78% It helps keep an eye on my spending when working on projects.
delegareApr 2026 · delegare.dev · ▲70Hi guys, am building SecureLend.ai and when working on our underwriting agents (free trial, paid after) I had issues with seamless payment options. Of course I looked at x402 which I believe is a great protocol but not a fan of a) sharing private keys with the agent b) having a human in the loop or c) similar workaround e.g. pre-funded wallets So I started building out a solution. For my use case it was important to not only have stablecoins but also a fiat rail which is now implemented using Stripe. Initially I build a mandate system internally but am very glad and big shoutout to the guys…


More dev tools this month
the category →

open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 28d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 26d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 23d ago · openbot.run
Talanoa▲346Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 21d ago · talanoa.email
CoreSpeed▲332One MCP for everything your agents need: apps, memory, tools
Dev tools · 29d ago · corespeed.io
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, April 2026
the whole month →
- AG
Thought the resources for GPU arch were lacking, so here we are
Life & fun · Apr 2026 · jaso1024.com

Built a ~9M param LLM from scratch to understand how they actually work. Vanilla transformer, 60K synthetic conversations, ~130 lines of PyTorch. Trains in 5 min on a free Colab T4. The fish thinks the meaning of life is food. Fork it and swap the personality for your own character.
AI · Apr 2026 · github.com


I made a laptop stand out of solid concrete, in the style of brutalist architecture, with themes of urbex and urban decay
Life & fun · Apr 2026 · sam-burns.com

With social media and now AI, its important to keep the indie web alive. There are many people who write frequently. Blogosphere tries to highlight them by fetching the recent posts from personal blogs across many categories. There are two versions: Minimal (HN-inspired, fast, static): https://text.blogosphere.app/ Non-minimal: https://blogosphere.app/ If you don't find your blog (or your favorite ones), please add them. I will review and approve it.
AI · Apr 2026 · text.blogosphere.app