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 No other changes to your
llm object to each Agent you create: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.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.