A 21-lesson Microsoft course teaching developers the fundamentals of building generative AI applications with Python and TypeScript.
anthropics/claude-cookbooks
A collection of Jupyter notebook recipes showing how to build with the Claude API, from classification and RAG to tool use and evals.
- Stars
- 53,594
- Forks
- 6,453
- Open issues
- 364
- Last commit
- 4 days ago
What is it?
Claude Cookbooks is a set of copy-able code snippets and guides for developers building with the Claude API. Most examples are Python Jupyter notebooks, and the concepts are presented so they can be adapted to other languages that can call the API.
The recipes are grouped by topic. Capability examples cover text classification, retrieval augmented generation, and summarization. Tool use examples show integrating Claude with external functions, such as a customer service agent, a calculator, and natural-language SQL queries. Further entries cover third-party integrations like Pinecone vector search, Wikipedia search, and Voyage AI embeddings.
Other notebooks address multimodal input for images, charts and forms, PDF uploads, JSON mode, moderation filters, prompt caching, automated evaluations, and sub-agent patterns that pair Haiku with Opus. A Claude API key is needed to run the examples.
Key features
- 01Python Jupyter notebooks with copy-able code for the Claude API
- 02Recipes for classification, RAG, and summarization
- 03Tool use examples including a calculator and a customer service agent
- 04Multimodal examples for images, charts, and forms
- 05Guides on prompt caching, JSON mode, and automated evaluations
Use cases
- Learning how to structure common Claude API applications
- Adding retrieval over a vector database to a Claude-based app
- Extracting structured data from PDFs or images with Claude
- Setting up prompt evaluations for an LLM feature
Quick start
- 1
Get a Claude API key from Anthropic
- 2
Clone the repository
- 3
Open the recipe notebooks and run the examples with your API key
Things to know
- Code examples are primarily in Python, and you need a Claude API key to run them.
Topics
FAQ
- What is claude-cookbooks?
- A collection of Jupyter notebook recipes showing how to build with the Claude API, from classification and RAG to tool use and evals. Claude Cookbooks is a set of copy-able code snippets and guides for developers building with the Claude API. Most examples are Python Jupyter notebooks, and the concepts are presented so they can be adapted to other languages that can call the API.
- Is claude-cookbooks free to use? What license does it have?
- claude-cookbooks is open source under the MIT license. Check the license terms before using it in commercial products.
- Is claude-cookbooks still maintained?
- Actively maintained. The last commit to claude-cookbooks was on Oct 17, 2026.
- What can I use claude-cookbooks for?
- Learning how to structure common Claude API applications Adding retrieval over a vector database to a Claude-based app Extracting structured data from PDFs or images with Claude Setting up prompt evaluations for an LLM feature
- How do I install claude-cookbooks?
- Get a Claude API key from Anthropic Clone the repository Open the recipe notebooks and run the examples with your API key
- Where can I get claude-cookbooks?
- The source code and installation instructions are on GitHub: https://github.com/anthropics/claude-cookbooks
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A 17-lesson Python tutorial that builds a Claude Code-like agent harness from scratch, starting with a single loop and bash.
Open-source deep research tool that searches and reasons over private data using LLMs and vector databases.
A curated Chinese-language guide to ChatGPT and frontier LLMs, covering usage, prompting, app development, agents, and productivity tools.
A free, open-source 10-week online course on building LLM applications with RAG, vector search, agents, evaluation and monitoring.
A curated directory of Agent Skills, the SKILL.md instruction files that teach AI coding assistants like Claude, Codex and Copilot new tasks.