# Is the Claude Agent SDK free to use?

You can install the Claude Agent SDK from npm or PyPI without paying for the package, but running an agent isn't free. Anthropic's quickstart has you set an `ANTHROPIC_API_KEY` from the Claude Console, or authenticate through Amazon Bedrock, Google Cloud, or Microsoft Foundry, so every model call the agent makes is billed to that account at the provider's rates.

The docs add one boundary. Unless Anthropic has approved it, third-party developers can't offer claude.ai login or its rate limits in a product built on the SDK, so a subscription can't be the way your customers pay for it. Use API key authentication instead.

Cost scales with the loop, since every turn and tool call adds a model call, and [evaluating the agent adds its own cost](/answers/eval-costs/what-drives-the-cost-of-evaluating-an-ai-agent).

The docs state no price for the SDK itself.

---

Published: 2026-11-04

Sources:
- Agent SDK quickstart, Anthropic: https://code.claude.com/docs/en/agent-sdk/quickstart (fetched 2026-11-04)
- Agent SDK overview, Anthropic: https://code.claude.com/docs/en/agent-sdk/overview (fetched 2026-11-04)

Source: https://tessary.ai/answers/claude-agent-sdk-evals/is-the-claude-agent-sdk-free-to-use
More on Claude Agent SDK evals: https://tessary.ai/answers/claude-agent-sdk-evals
From Tessary, agent reliability for AI agents in production: https://tessary.ai
