SDK
Building with the official SDKs — using the Claude Agent SDK and others, plus streaming, to develop applications.
4 articles
Claude SDK Error Handling and Retries: APIError Types, max_retries, and Timeout Config
A practical guide to how the Claude API's Python and TypeScript SDKs classify errors into typed exceptions, which failures get retried automatically, and how to customize retry and timeout behavior.
Claude SDK Streaming: SSE Events, Real-time Output & Error Recovery
Learn Claude streaming's SSE event flow (message_start→content_block_delta→message_stop), text/input_json/thinking delta types, real-time token output and final-message retrieval with the SDK, and generation-specific error recovery — based on official docs.
Claude Agent SDK Guide: Claude Code's Agent Loop in Code
Call the agent loop and tools that power Claude Code from Python or TypeScript - the Agent SDK explained from the official docs.
Getting Started with the Claude SDK (Python & TypeScript)
Intro to Claude's official client SDKs: supported languages, installation (pip install anthropic / npm install @anthropic-ai/sdk), first-call examples in Python and TypeScript, streaming and token usage, and client SDK vs Agent SDK — based on official docs.