ScriptsApr 6, 2026·3 min read

Claude Agent SDK Demos — 8 Official Example Projects

Official demo collection by Anthropic showcasing the Claude Agent SDK: email agent, research agent, resume generator, chat app, Excel processing, and more. MIT license, 2,100+ stars.

SC
Script Depot · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

git clone https://github.com/anthropics/claude-agent-sdk-demos.git
cd claude-agent-sdk-demos

# Pick a demo and follow its README:
cd demos/hello-world
npm install
npm start

Requires: Node.js 18+ (or Bun), Anthropic API key.


Intro

Claude Agent SDK Demos is Anthropic's official collection of 8 demonstration projects showing how to build AI-powered applications with the Claude Agent SDK. With 2,100+ GitHub stars and MIT license, it includes practical examples like an email assistant (IMAP integration), multi-agent research system, resume generator from web searches, React chat app, and Excel file processor. Each demo is self-contained and designed for learning — copy the patterns into your own projects.

Best for: developers learning the Claude Agent SDK who want working code examples to study and adapt. Works with: Claude Agent SDK, Node.js 18+, Bun, React. Setup time: under 5 minutes per demo.


Claude Agent SDK Demos — Project Guide

Demo Projects

Demo What It Shows Tech Stack
Hello World Basic SDK setup and agent invocation TypeScript
Hello World V2 V2 Session API, multi-turn conversations, session persistence TypeScript
Email Agent IMAP inbox display, agentic email search, AI-powered email assistance TypeScript, IMAP
Research Agent Multi-agent coordination, parallel agent spawning, report synthesis TypeScript
Resume Generator Web searching, .docx document generation from search results TypeScript
Excel Demo Spreadsheet file handling and analysis with Claude TypeScript
Simple Chat App Full conversation loop, streaming responses over WebSocket React, Express
AskUserQuestion Previews HTML rendering of options, WebSocket communication, plan mode steering TypeScript

Featured: Research Agent

The Research Agent demo showcases multi-agent orchestration:

  1. Coordinator Agent receives a research topic
  2. Spawns 3-5 specialized research sub-agents in parallel
  3. Each sub-agent searches different sources and angles
  4. Synthesis agent combines findings into a structured report
  5. Activity tracking shows real-time agent progress

Featured: Email Agent

A fully functional email assistant:

  • Connects to any IMAP email server
  • Displays inbox with AI-generated summaries
  • Searches emails using natural language queries
  • Drafts responses with context awareness

Featured: Simple Chat App

A complete full-stack chat application:

  • Frontend: React with real-time streaming UI
  • Backend: Express + WebSocket for streaming responses
  • Features: Conversation history, streaming tokens, tool use visualization

How to Use These Demos

  1. Clone the repository
  2. Navigate to any demo directory
  3. Copy .env.example to .env and add your Anthropic API key
  4. Install dependencies and run
  5. Study the code patterns and adapt for your projects

FAQ

Q: What are Claude Agent SDK Demos? A: 8 official demo projects by Anthropic showing how to build AI applications with the Claude Agent SDK — from basic setup to multi-agent research systems and full-stack chat apps.

Q: Are these production-ready? A: No, these are designed for learning and prototyping. Study the patterns and adapt them for production with proper error handling and security.

Q: Is it free? A: Yes, MIT license. You pay for Anthropic API usage.


🙏

Source & Thanks

Created by Anthropic. Licensed under MIT.

claude-agent-sdk-demos — ⭐ 2,100+

Thank you to Anthropic for providing these comprehensive SDK demonstrations.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets