Documentation

AgentCost documentation

AgentCost tracks what your LLM calls cost and attributes each one to the agent, workflow and project that made it. Start with the SDK if you are instrumenting an application, the REST API if you are integrating directly, or the OpenAPI specification if you are an agent.

Quick start

pip install agentcost

import agentcost
agentcost.init(api_key="sk_your_project_key")

Guides

Machine-readable resources

Packages and source