Toolken is the LLM gateway that tags every token with the dimension you care about, feature, customer, agent, or user, so you finally see where your AI spend goes.

Three lines. That's the whole integration.
Point your existing OpenAI client at Toolken. No new SDK. No code refactor. Full attribution and budget control from day one.
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY, baseURL: "https://gateway.toolken.ai/v1", defaultHeaders: { "X-Toolken-Key": process.env.TOOLKEN_KEY, },});
const response = await client.chat.completions.create({ model: "", messages: [{ role: "user", content: prompt }],});Who it's for
One gateway. Every buyer finally seeing the same numbers.
Which feature is eating my OpenAI bill? Which customer is unprofitable on AI cost?
My agent loops. I have no idea which agent in the swarm is burning tokens or stuck in a retry storm.
My 80-person eng team has a shared OpenAI key. I have no idea who's using what or why my bill jumped 40%.
How it works
One URL change. No SDK. Full visibility across every feature, team, and customer.
Change your LLM client's base URL to gateway.toolken.ai/v1. Pass X-Toolken-Key and optionally X-Toolken-Feature in headers. Zero other changes required.
Toolken reads your metadata headers, records token counts and cost, enforces budget rules, then forwards to the provider. Response arrives untouched.
Your dashboard shows spend by feature, tenant, model, and time — updated in seconds. Export via CSV or API. Set alerts on any budget threshold.
Start free, scale when you need to. No surprise invoices.
For solo builders and early experiments.
From side-project to first paying user.
For funded startups, agent shops, and mid-size SaaS.
Volume, security, and control for regulated teams.
Failed and upstream-error calls aren't billed across every paid plan.
Join the teams already using Toolken to attribute costs, enforce budgets, and ship AI features with financial confidence.
Already have an account? Sign in
FAQ
Still have questions? Email us — hello@toolken.ai
Stay in the loop
Patterns from real teams: what's burning their budgets, which optimizations shipped, and what we're building next.
No spam. Unsubscribe anytime.