CostKey

Integrations for every agent framework

Add one line to your framework and every run shows up as a tree of agents, steps and tools, with the cost and code behind each model call.

OpenAI Agents SDKSee every agent, tool call, handoff and guardrail in an OpenAI Agents SDK run, with what each step cost and the code that made it.LangGraphTrace LangGraph and LangChain runs node by node, see which step failed, and know what every run cost. On your own machines.Vercel AI SDKSee every generateText and streamText run, its steps and tool calls, what it cost and the code that called it. No wrapping.CrewAISee every crew, task and tool call, which agent spent what, and why a run failed. On your own machines.Claude Agent SDKThe Claude Agent SDK runs its model calls in a separate Claude Code process. CostKey's integration records the run, its tools and subagents, and prices every call.

More frameworks

Mastra, LlamaIndex, Pydantic AI, Google ADK, smolagents, AutoGen AgentChat, AG2, DSPy, Strands Agents, browser-use, OpenTelemetry. Each has an integration in the agents and frameworks docs. Anything that emits OpenTelemetry spans works through the OpenTelemetry bridge.

Providers

Model calls are captured from HTTP, so any of the 45+ supported providers is priced whichever framework made the call, including speech and audio providers such as ElevenLabs, Deepgram and Cartesia. See provider coverage.

Try it on your own machines

One command starts Postgres, the server and the console with Docker.

bash
curl -fsSL https://costkey.dev/install.sh | sh