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.

The docs state no price for the SDK itself.

published

sources

keep reading

More on this.

Try Tessary on Cloud.

free · 10,000 traces a month · 1 GB · 30-day retention · $10 one-time credit for triage and RCA · no credit card