Claude Agent SDK

by Anthropic · Framework · Text & code

A code library for building your own agents that use Claude to read files, run commands and finish tasks inside your app or script.

unproven

Usable on a Claude plan, but one user reports it burns the 5-hour quota faster

Latest · Nov 4Anthropic's support page says the SDK can use a Claude plan; plan-logged use draws on subscription limits, API-key use on the key. Max, Ultra and Team plans include monthly API credits.

AccessOpen code

Why we say so

Rafael Quintanilha relays Anthropic's support page: plan-logged SDK use draws on subscription limits and API-key use on the key. A single user, writing as Агенты Романа (Roman's Agents), measured some SDK scenarios using the 5-hour window about 1.8x faster than interactive Claude Code at similar token counts, tied to the entrypoint identifier. The weekly quota showed no such gap, and nobody else has reproduced it.

Evidence

  1. Nov 4
    One user's measurements showed some SDK scenarios used the 5-hour window about 1.8x faster than interactive Claude Code at comparable tokens, also seen in non-interactive CLI mode.
  2. Nov 4
    The difference was tied to the CLAUDE_CODE_ENTRYPOINT identifier (e.g. an SDK TypeScript value): changing it changed 5-hour quota use. The weekly quota showed no such difference.

Everything said about Claude Agent SDK, on the wire

Alternatives