ClaudeMap

Claude Agent SDK Demos

Anthropic's official demo apps for the Claude Agent SDK — email, research, and chat agents.

SDKs & Toolingofficialagent-sdkexamplesdemos

Anthropic's official collection of demo applications built on the Claude Agent SDK: an email agent, a multi-agent research agent, a chat app with session persistence, and more. The app-pattern counterpart to the API-focused claude-quickstarts — read these to see how production agent apps are structured before writing your own.

What it does

  • Eight official demos: email-agent (an in-development IMAP email assistant with inbox display and agentic search), research-agent (subtopics spawn parallel web-searching researchers, then synthesis), simple-chatapp (React + Express + WebSocket streaming), resume-generator, excel-demo, hello-world, hello-world-v2, and ask-user-question-previews
  • hello-world-v2 demonstrates the V2 Session API (unstable_v2_*): separate send()/stream() calls instead of a single query() generator, with multi-turn conversation and session persistence
  • ask-user-question-previews renders answer options as HTML preview cards (previewFormat: 'html' plus canUseTool over WebSocket) with plan-mode steering
  • Shows whole-app patterns — session persistence, multi-agent orchestration, human-in-the-loop — the app-pattern counterpart to the API-focused claude-quickstarts

When to use it

Read these before writing your own Agent SDK app: pick the demo matching your pattern (chat with persistence, multi-agent research, guided UX) and study the wiring.

Getting started

git clone https://github.com/anthropics/claude-agent-sdk-demos.git
cd claude-agent-sdk-demos
cd email-agent  # or any other demo, then follow its README

Prerequisites: the Bun runtime (or Node.js 18+) and an Anthropic API key.

Things to know

Carries a top-of-README warning: demos are intended for local development only and should NOT be deployed to production or used at scale. hello-world-v2 exercises an explicitly unstable API surface (unstable_v2_*).

Repository

anthropics/claude-agent-sdk-demos

Charted

Related on the map

  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • Extract your own local chat history from ten AI coding assistants into one normalized JSONL — for fine-tuning, analytics, or backing up years of conversations. Standard library only.

    • cli
    • data-export
    • jsonl
    • backup