Claude Cookbooks
English Edition
Code recipes and guides for building with Claude API — organized as a browsable book.
Welcome

Claude Cookbooks is a collection of practical code recipes and guides for building applications with the Claude API.
This book organizes 90+ community cookbooks into a browsable, navigable format — so you can find the right pattern for your use case without scrolling through a GitHub file tree.
What’s Inside
| Part | Topics |
|---|---|
| I · Core Capabilities | Classification, Summarization, RAG, Knowledge Graphs, Text-to-SQL |
| II · Tool Use | Function calling, parallel tools, structured JSON, context engineering |
| III · Extended Thinking | Extended thinking mode, thinking with tool use |
| IV · Multimodal | Vision, charts/graphs, OCR, crop tool, sub-agents |
| V · Agent Patterns & SDK | Orchestrator-workers, evaluator-optimizer, Claude Agent SDK |
| VI · Managed Agents (CMA) | Production agents: iterate, gate, orchestrate, observe |
| VII · Skills | Introduction to Claude Skills, financial & custom applications |
| VIII · Evaluations | Building evals, agentic search benchmarks, tool evaluation |
| IX · Miscellaneous | Prompt caching, JSON mode, batch, citations, metaprompt |
| X · Third-Party | Pinecone, LlamaIndex, MongoDB, Wikipedia, WolframAlpha, ElevenLabs |
How to Use This Book
Each chapter is a self-contained recipe:
- Read the narrative to understand the concept
- Copy the code snippets directly into your project
- Experiment with the provided examples
Note: Code cells are rendered statically — outputs are pre-computed. To run them yourself, clone the original repository and execute the notebooks.
Prerequisites
- A Claude API key (sign up at anthropic.com)
- Python 3.10+
- The
anthropicPython package
pip install anthropicSource
This book is derived from the anthropics/claude-cookbooks repository. All credit goes to Anthropic and the community contributors.