What's the difference between the Claude Agent SDK and the Claude API?

The Claude Agent SDK ships a complete agent loop; the Claude API, which Anthropic calls the Client SDK when you use it directly, gives you raw model access and leaves the loop to you. Anthropic’s own comparison draws the line exactly there: the Client SDK offers “direct access to the Claude API,” where “you write the tool-calling loop yourself, or let the client SDK’s beta tool runner drive it,” while the Agent SDK is “a library that runs the Claude Code binary,” carrying Claude Code’s built-in tools, permissions, sessions, and hooks along with it. Reach for the Client SDK when you’re calling Claude for a single completion or want to own the loop yourself; reach for the Agent SDK when you want Claude Code’s own agent, file tools, and permission model already wired up. A third option, Managed Agents, has Anthropic run that same agent loop for you in a hosted sandbox instead of a process you operate.

sources

keep reading

More on this.

Two ways to run Tessary.

Tessary is an open-source agent reliability platform. Cloud and self-hosted run the same workflow on the OpenTelemetry traces your agent already emits.

Tessary Cloud

We host it for you. Send your first trace with nothing to deploy and no model key.

what's includedper organization
traces
10,000 per calendar month
stored trace data
1 GB
retention
30 days
model credit
$10, one-time, for triage and root-cause analysis
credit card
not required

Self-hosted Tessary

Run the open-source code on your own infrastructure with one command. Add your own model key for triage and root-cause analysis.

Self-host Tessary for me by following https://github.com/tessaryai/tessary/blob/main/setup.md

docker compose -f oci://docker.io/tessaryai/tessary:compose up -d -y