Skip to main content
Two lines of config and your entire crew is tracked. Pass a LLM object built with Toolken’s base URL and headers to each Agent, and every call is attributed and visible in your dashboard — no monkey-patching, no plugins.
1

Get your two keys

You need two keys:Toolken forwards your provider key to the upstream model provider untouched and never stores it.
2

Build the LLM object

Use CrewAI’s built-in LLM class. Set base_url to Toolken’s gateway and pass your Toolken key and agent name in extra_headers:
X-Toolken-Metadata-Agent is the metadata key that groups this agent’s spend in the dashboard. Use any string that is meaningful to you.
3

Pass the LLM to your agents

Hand the llm object to each Agent you create:
No other changes to your Crew, Task, or Process setup are needed.
4

Confirm in your dashboard

Run your crew. Within seconds, calls appear in the Toolken dashboard grouped under the research-agent agent. You can see cost, token usage, and latency for every request the agent made.
Give each agent its own LLM instance with a distinct X-Toolken-Metadata-Agent value to split spend per agent in the dashboard. For example, define one LLM for your researcher with "X-Toolken-Metadata-Agent": "research-agent" and a separate one for your writer with "X-Toolken-Metadata-Agent": "writer-agent". The dashboard breaks cost and tokens down by agent so you can see exactly which agent is driving spend.

Next

LangGraph

Connect LangGraph nodes to Toolken with a single model config.

Custom Properties

Tag requests with feature, customer, and metadata headers to slice every metric.

Providers & Routing

One gateway URL, many providers, your own keys.