Claude Cookbooks
by Anthropic
Official, runnable Jupyter recipes for building real things with Claude.
Overview
Claude Cookbooks (github.com/anthropics/claude-cookbooks) is Anthropic's official, MIT-licensed repository of self-contained Jupyter notebooks — over 94% notebooks — that demonstrate practical ways to use Claude. Actively maintained with hundreds of commits and 46k+ GitHub stars, it is organized by capability: tool use (customer-service agents, calculators, SQL queries), agent patterns (including sub-agents such as Haiku working under Opus and a claude_agent_sdk directory), retrieval-augmented generation with vector databases like Pinecone, prompt caching, extended thinking, and multimodal/vision tasks such as chart analysis and form extraction. Each notebook is runnable immediately with a free Claude API key and many include an 'Open in Colab' badge for zero-setup execution. While examples are in Python, the patterns transfer to any language that can call the Claude API.
At a Glance
- Topic
- Frameworks
- Level
- Intermediate
- Format
- Interactive
- Cost
- Free
- Duration
- Self-paced notebooks
- Provider
- Anthropic
- Hands-on
- Yes — code/exercises
- Certificate
- None
What You’ll Learn
- ✓Implement tool use for agents: customer service, calculators, and SQL querying
- ✓Build agent patterns including sub-agents and the Claude Agent SDK
- ✓Add retrieval-augmented generation with vector databases like Pinecone
- ✓Use prompt caching and extended thinking to cut cost and improve reasoning
- ✓Handle multimodal inputs — vision, charts, and form/document extraction
Highlights
- •Official Anthropic recipes, MIT-licensed and actively maintained (46k+ stars)
- •Every recipe is a runnable notebook, most with one-click 'Open in Colab'
- •Covers the full stack: tool use, agents, RAG, MCP, caching, and multimodal
Who It’s For
Best For
- ✓Developers who learn best from runnable, production-minded code
- ✓Engineers building agents, RAG, or multimodal features on Claude
- ✓Teams looking for vetted starting points instead of boilerplate
Prerequisites
- •Python and Jupyter basics
- •A free Claude API key for running the notebooks
FAQ
What is Claude Cookbooks?
Anthropic's official open-source collection of runnable Jupyter notebooks showing effective, production-minded patterns for building with Claude. It is for developers who want copy-ready code for tool use, agents, RAG, MCP, prompt caching, and multimodal tasks.
Is Claude Cookbooks free?
Claude Cookbooks is free to access.
What level is Claude Cookbooks for?
Claude Cookbooks is aimed at a intermediate audience. Recommended background: Python and Jupyter basics, A free Claude API key for running the notebooks.
How long does Claude Cookbooks take?
Expect roughly Self-paced notebooks. Most learners work through it at their own pace.
What will I learn from Claude Cookbooks?
You'll learn: Implement tool use for agents: customer service, calculators, and SQL querying; Build agent patterns including sub-agents and the Claude Agent SDK; Add retrieval-augmented generation with vector databases like Pinecone; Use prompt caching and extended thinking to cut cost and improve reasoning; Handle multimodal inputs — vision, charts, and form/document extraction.