CClaude Code 中文教程
文档 / agent-sdk/examples

Examples

官方中文文档· 查看原文 ↗ ·此页暂无该语言版本,显示英文原文

Find a complete, runnable Agent SDK project or a guided recipe in the Claude Cookbook that matches what you want to build.

This page routes you to complete, runnable Agent SDK projects and guided Claude Cookbook recipes. TypeScript applications live in the claude-agent-sdk-demos repo, and Python recipes live in the Claude Cookbook.

Run a minimal agent first

If you haven't built anything with the SDK yet, start with one of these before a full application:

  • Agent SDK quickstart: build your first working agent in TypeScript or Python, with setup steps included. The agent finds and fixes bugs in a sample file.

  • Hello World: a minimal TypeScript project to clone when you want to start from repo code

Explore a TypeScript application

The TypeScript applications in claude-agent-sdk-demos are demos for local development, from an email client to a multi-agent research system. Clone the demo whose shape matches what you're building.

Work through a Python recipe

The Claude Cookbook's Agent SDK series is a sequence of recipes, each a Python notebook, that progresses from a simple research agent to sophisticated multi-agent systems. Each notebook builds on the previous one, introducing new concepts and capabilities. Start with the one-liner research agent and work forward.

For recipes across Claude products, see the full Claude Cookbook.