Anthropic · 2023-08-15 · notable
Claude Cookbooks — Anthropic's Official Recipe Collection for Building with Claude
Anthropic's official collection of Jupyter notebooks covering tool use, RAG, multimodal vision, sub-agents, prompt caching, extended thinking, fine-tuning, and more. 38k stars, MIT licensed.
Copy-paste Jupyter notebooks for every major Claude API feature, maintained by Anthropic.
Key specs
| License | MIT |
|---|---|
| GitHub stars | 38k |
| Commits | 541 |
What is it?
The Claude Cookbooks repository is Anthropic's official collection of runnable Jupyter notebooks that demonstrate how to use the Claude API. It covers capabilities from basic classification and summarization to advanced patterns like sub-agents (using Haiku for cheap tasks and Opus for hard ones), tool use, RAG with vector databases, multimodal vision, prompt caching, and the Claude Agent SDK.
How does it work?
Each recipe is a self-contained Jupyter notebook in Python. You clone the repo, set your API key, and run. Notebooks are organized by topic: capabilities, tool use, third-party integrations (Pinecone, Wikipedia), multimodal, extended thinking, fine-tuning, and coding. The code is designed to be copied into your own projects.
Why does it matter?
Official cookbooks are the fastest way to go from reading docs to running code. These notebooks are maintained by Anthropic's own team, so they stay current with API changes. With 38k stars, they are one of the most-used AI tutorial repositories on GitHub.
Who is it for?
Developers building applications with Claude, from beginners to advanced users.
Try it
git clone https://github.com/anthropics/claude-cookbooks && cd claude-cookbooks