Open source ยท MIT ยท v0.1.0

Claude Code on Amazon Bedrock, without the token bill shock.

tokener is a drop-in API gateway that measures and cuts the token cost of Claude Code. Developers install nothing. They get a URL and a personal token, and the gateway does the rest.

15โ€“20%
lower cost with safe policies
30โ€“35%
with effort tuning on top
~$75
monthly infrastructure cost
No install
needed on developer laptops

Why tokener

In its agent loop, Claude Code resends the whole conversation on every turn. A 10-person team can easily spend $2,000โ€“3,000 a month on tokens, and nobody can see who spent it on what.

๐Ÿ‘€

Visibility

Every request is logged by developer, session, model and request class. See cost, cache hit rate and the most expensive sessions.

๐Ÿงญ

Policy

Deterministic rewrites route subagent and background traffic to cheaper models, fill in a default effort and trim oversized tool output.

๐Ÿ›‘

Control

Daily USD budgets and token limits per developer. Warn at 80%, then warn, downgrade to a cheaper model, or block.

See where every token goes

A built-in admin console with estimated cost, policy savings, cache hit rate and a 14-day trend, broken down by developer, model and request class.

tokener dashboard
What tokener never does: summarize history, drop messages, or switch models mid-conversation. Any of those would break the prompt cache. Every rewrite is deterministic, so caching and preserved thinking keep working.

Two lines in settings.json. That's the whole rollout.

Run it locally against your own AWS credentials today, then deploy to your AWS account with one CDK command.