frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Launch HN: Tokenless (YC S26) – Automatic model switching to save money

https://usetokenless.com/
15•rohaga•51m ago
Hi HN, Rohit here from Tokenless (https://usetokenless.com/), which I’m building alongside co-founders Andrew and Kev. We’re building an API gateway which routes agent traffic dynamically turn-by-turn between different models to save on AI spend.

The cost of AI tokens is top-of-mind for many. Companies like Uber and Salesforce have been complaining about blowing their yearly AI spend faster than expected.

Frontier models are amazing for dev work, but are so expensive. Open-source models are cheap and rapidly improving, closing the gap with frontier models, but aren’t quite there yet.

Tokenless gets you the best of both worlds–routing harder turns to smarter models only when needed, which keeps costs low.

Before Tokenless, I was doing a PhD at Princeton. While using coding/other agents, I constantly agonized over model choice, to make sure my AI spend was going as far as possible on my academic Cursor account.

At the same time, I was doing LLM research, and a small technique I developed while in recovery from NeurIPS submission season seemed to hit SOTA pretty fast. I was surprised that such simple ideas could do routing well.

We’ve been able to develop a version of the router that matches the performance of Claude Fable 5 at half the cost. The blog post on our website explores the technical details on how we did this (https://usetokenless.com/blog/building-tokenless/).

Highlights: - Our approach queries multiple models at once and uses their progress to make decisions (this technique is novel AFAIK, let us know if you know anyone else doing this). - Switching models doesn’t destroy the cache if the routing algorithm is aware of when the cache is hot/cold.

To come: - Adding Kimi K3, all other GPT efforts and more to the router

Go ahead and sign up on usetokenless.com and try using Tokenless with your agent, you’ll get $20 of free credit. Here’s a demo on how to use it: https://youtu.be/sjZWriclcls

Tokenless provides frontier-level intelligence for cheaper, so we’d love some feedback on how it feels to use, any corner cases that the router routes incorrectly, and whether you find the routing problem interesting!

Comments

mediaman•37m ago
So this only switches models if the cache is cold, because otherwise the economics of switching don't work. But most agentic work involves long strings of successive tool calls that benefit from a hot cache. Hot cache calls reduce input cost by 90%. This can basically only deliver cost savings in turns where the AI delivers a result to the user, the user waits at least 5 minutes (or the length of the cache), and then responds.

But user->AI calls are very much the rare case now, the more agentic the workload. Most of them will be tool->result->tool without the user involved. And token burn is highest with these long running agentic chains, but that's precisely where routing doesn't work because of the KV cache.

How do you deal with that?

rohaga•31m ago
> So this only switches models if the cache is cold

Not exactly. It can also make sense if the cache is hot to switch models. For example, we might currently be on Deepseek and the next task is SO HARD that it doesn't make sense to not use frontier (1 turn to crack versus 100 turns for Deepseek to crack). Likewise, the router may judge that it's likely that the next few set of tool-calls will be ridiculously easy, and so switching to Deepseek will save over time.

Remember that Deepseek can be something like 30x cheaper even cold.

There is a more fine-grained view of caching here, because each model can have a different amount of the prefix already cached as well (since we were switching a bunch) so even if the cache is somewhat warm it may make sense to switch.

ignoramous•6m ago
> the next task is SO HARD that it doesn't make sense to not use frontier

How does tokenless quantify "so hard"?

> 1 turn to crack versus 100 turns for Deepseek to crack

Interesting definition for a "frontier". What is a "turn" here? Token count? Request count? Context-based?

I've found that MiniMax M3 (a smaller model at 295b) will code up better when DeepSeek v4 Pro (1.2t) will not (and vice versa).

grim_io•29m ago
How can you be cheaper if you query multiple models at once, compared to me just using a single model, which will always have the correct caching configured?
rohaga•25m ago
If we cut off an unconfident/expensive model early in thinking, then we don't have to pay for additional thinking cost at all. For many tasks, this is quite a large saving.

That being said, whatever models we select to race at any point will ALL have their cache updated, so if they're chosen on the next race they'll be a lot cheaper.

grim_io•16m ago
Maybe I'm misunderstanding, but this seems to oversimplify the problem.

Most frontier Models won't show you their true reasoning, but only a summary.

There is also no reason you can automatically assume the quality and price of the outcome based on the first few reasoning trace summaries.

If you look at the recent model releases, it becomes clear that the trend is that the largest models provide the most cost-effective solutions, because of the massive turn/tool call/reasoning reduction needed to find the solution, compared to cheaper and smaller models.

rohaga•8m ago
Our research seems to indicate you can get a decent signal based on the first few reasoning trace summaries. We analyzed hundreds of billions of tokens to figure this out. Any open-weights model also gives you reasoning, which is very helpful (because they are usually lower-quality candidates you would want to cut off early)

The largest models are very well known for having large reasoning traces. The thing that cracks down on overthinking is reasoning-effort training, which is largely a function of how the model is trained (certain RL objectives/teachers) rather than size of the model. The Kimi K3 technical report has some excellent work on this: https://arxiv.org/pdf/2607.

crazytweek•12m ago
Our approach queries multiple models at once and uses their progress to make decisions (this technique is novel AFAIK, let us know if you know anyone else doing this)

Sounds like DigitalOceans Model synthesis (https://www.digitalocean.com/blog/model-synthesis) or AilinOne (https://ailin.guide/) ?

sarjann•10m ago
Sounds like this would be expensive on the input token side with some saving on the decode side. For workloads with large documents / context that could be an issue.
crazytweek•7m ago
AFAIK they solve this through their RAG based knowledgebases to only search and use the most relevant Information.
random17•4m ago
These approaches, along with OpenRouter Fusion (https://openrouter.ai/blog/announcements/fusion-beats-fronti...) are different from ours in that:

1. we trained custom models to predict LLM performance (this performs much better than asking LLMs directly to predict performance)

2. we cut off model responses early if they are not performing well, saving on costs versus running them to completion

3. finally we serve the unmodified output of the chosen model, instead of synthesizing the outputs into one, which makes us a model router

sarjann•11m ago
If it only switches when cache is cold, it seems like it'd lock in one model for the whole session?

What use case are you imagining where cache eviction would happen during it? It might also be the case that a task might seem easy but then it ends up becoming hard for certain parts. For spawning subagents I could see this being useful maybe.

MikhailTal•10m ago
It's a smart approach, definitely interesting. It all hinges on quality of course which im not convinced.

τ³-Banking is the only one which you show better accuracy and cheaper. If i'm reading the blog results right, for deepswe and terminalbench, you are worse+cheaper than frontier, and better+more expensive than just small models. Which is exactly what i would expect even for a router that switches at random.

Speaking of random routing, this would be a great ablation study as well. What about also if you route each request to a tiny 7B model classifier? Why is your approach SOTA?

JoshTriplett•2m ago
> Tokenless fans out your request to a group of models and watches them think. Once a model is clearly on track

By the time the model is "on track", it will have already received the input tokens. To a first approximation, input tokens are often the bulk of the cost for many queries, and this would increase the cost for such queries. It seems like it'd only decrease costs for prompts where you feed a relatively small amount of input into the model first and can tell whether the model is "on track" before it starts reading larger amounts of input data.

1•meryll_dindin•20s ago

Notation design and how it affects thought

https://github.com/kai-qu/notation
1•tosh•48s ago•0 comments

KaaS – Knowledge as a Service: an out-of-the-box LLM wiki compiler

https://github.com/bybit-exchange/kaas
1•lucasmaan•1m ago•0 comments

Show HN: Jamit

https://jamit.app
1•Ikeorizu•1m ago•0 comments

Why Mexico Built an $8,500 Electric Car

https://spectrum.ieee.org/mexico-olinia-car-electric-vehicle
1•pseudolus•1m ago•0 comments

Compliance Copilot (UAE)

https://github.com/imranbaloch/uae-compliance-copilot
1•imranku07•3m ago•0 comments

Show HN: Argpeek – Zero-dependency CLI argument inspector for Python

https://github.com/prasad-a-abhishek/argpeek
1•prasadaabhishek•3m ago•0 comments

Some thoughts about Anthropic's new cryptanalysis results

https://blog.cryptographyengineering.com/2026/07/29/some-notes-about-anthropics-new-results/
1•supermatou•4m ago•0 comments

Aisler Lovely Library – curated collection of electronic symbols and footprints

https://github.com/AislerHQ/lovely-library
1•gregsadetsky•5m ago•0 comments

List of most massive black holes

https://en.wikipedia.org/wiki/List_of_most_massive_black_holes
1•ethanpil•5m ago•0 comments

eBay reaches $56M settlement with e-com newsletter writers it terrorized in 2019

https://techcrunch.com/2026/07/28/ebay-reaches-56m-settlement-with-e-commerce-newsletter-writers-...
1•pseudolus•6m ago•0 comments

Google Gemini Distillation Service [archive link]

https://web.archive.org/web/20260728173925/https://docs.cloud.google.com/gemini-enterprise-agent-...
1•bluepeter•6m ago•0 comments

Your Wish Is My Command

https://masterbran.ch/posts/your-wish-is-my-command.html
2•grapemane•7m ago•0 comments

Ton 618

https://en.wikipedia.org/wiki/TON_618
1•ethanpil•8m ago•0 comments

Show HN: Kudory – Tailor your CV for each job application

https://kudory.com
1•acbeni•9m ago•0 comments

Keychron announces first open-source firmware for gaming mice

https://www.digitalfoundry.net/news/2026/07/keychron-announces-first-open-source-firmware-for-gam...
3•JLO64•9m ago•1 comments

An agent with a spreadsheet engine beats one without

https://grid.is/blog/an-agent-with-a-spreadsheet-engine-beats-one-without
1•mooreds•9m ago•0 comments

The last decade of front-end engineering

https://www.natemeyvis.com/the-last-decade-of-front-end-engineering/
1•Brajeshwar•12m ago•0 comments

Every Time I Hire a Linguist, Inference Costs Go Down

https://arxiv.org/abs/2607.25335
2•cwbuilds•12m ago•0 comments

AI companies are reportedly shredding books after using them to train AI models

https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-companies-are-reportedly-sh...
1•Pandionic•12m ago•0 comments

Boss Profits from Your Excuses

https://www.youtube.com/watch?v=suVyMze_qO0
1•gillysuit•13m ago•1 comments

NSF partners with universities and industry on pilot 4-year PhD programs

https://www.nsf.gov/news/nsf-partners-universities-industry-pilot-initiative-four
2•yiyingzhang•13m ago•1 comments

Show HN: Open-sourced, non-AI newtab extension to read your X/Twitter bookmarks

https://chromewebstore.google.com/detail/twitter-x-bookmarks-on-ne/acpkgdfhoaalmnhjifhneghcgfnjkglo
1•iankit17•15m ago•0 comments

Existing industry processes are blueprints for AI workflows

https://abtdomain.com/blog/2026/07/from-fords-assembly-line-to-local-ai-pipelines/
1•ABTdomain•16m ago•0 comments

eBay and ex-executives to pay $55.7M to couple sent cockroaches

https://www.theguardian.com/technology/2026/jul/28/ebay-harassment-lawsuit-settlement
1•mitchbob•17m ago•0 comments

Show HN: Energy, carbon and water estimates for AI content, shown as ranges

https://aicontentfootprint.com/
1•daniloedu•17m ago•0 comments

The rise of fake online shopping platforms that let you pretend to buy things

https://www.fastcompany.com/91560432/dopamine-sites-fake-online-shopping-apps-let-you-pretend-to-...
1•austinallegro•17m ago•0 comments

Emacs Writing Machine

https://chainsawriot.com/postmannheim/2026/07/25/writeredeck.html
1•abnercoimbre•19m ago•0 comments

Newsmax, Meta Enter AI Content Partnership

https://news.bloomberglaw.com/artificial-intelligence/newsmax-meta-enter-ai-content-partnership
1•cdrnsf•21m ago•0 comments

CryptanalysisBench: Can LLMs Do Cryptanalysis?

https://arxiv.org/abs/2607.18538
1•zdw•22m ago•0 comments