claude-cookbooks
A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
- 53.7k stars
- 6.5k forks
- 367 open issues
- Language: Jupyter Notebook
- License: MIT
- updated
Install
git clone https://github.com/anthropics/claude-cookbooks- Clone the repository.
- Follow the README for installation and usage instructions.
Editor's note
Claude Cookbooks is an official Anthropic repository of Jupyter notebooks that teach developers how to build applications using the Claude API. Organized into capability-focused sections, the collection covers text classification, retrieval-augmented generation with Pinecone vector databases, summarization, tool use (including a customer service agent, calculator integration, and SQL query generation), multimodal tasks such as chart interpretation and form transcription, and advanced techniques including prompt caching, JSON mode enforcement, automated evaluations, and content moderation filters. One notable recipe demonstrates using Claude Haiku as a sub-agent alongside Opus, illustrating a cost-conscious multi-model architecture. Third-party integrations include Voyage AI embeddings, Wikipedia search, and Stable Diffusion for image generation. All examples connect to Claude through the Anthropic API using Python, with concepts adaptable to other languages. The resource targets developers at varying experience levels, from those starting with API fundamentals to those building production-grade pipelines, and accepts community contributions via pull requests and GitHub issues.
Tools overview
Claude Cookbooks
The Claude Cookbooks provide code and guides designed to help developers build with Claude, offering copy-able code snippets that you can easily integrate into your own projects.
Prerequisites
To make the most of the examples in this cookbook, you'll need a Claude API key (sign up for free here).
While the code examples are primarily written in Python, the concepts can be adapted to any programming language that supports interaction with the Claude API.
If you're new to working with the Claude API, we recommend starting with our Claude API Fundamentals course to get a solid foundation.
Explore Further
Looking for more resources to enhance your experience with Claude and AI assistants? Check out these helpful links:
Contributing
The Claude Cookbooks thrives on the contributions of the developer community. We value your input, whether it's submitting an idea, fixing a typo, adding a new guide, or improving an existing one. By contributing, you help make this resource even more valuable for everyone.
To avoid duplication of efforts, please review the existing issues and pull requests before contributing.
If you have ideas for new examples or guides, share them on the issues page.
Table of recipes
Capabilities
Classification: Explore techniques for text and data classification using Claude.
Retrieval Augmented Generation: Learn how to enhance Claude's responses with external knowledge.
Summarization: Discover techniques for effective text summarization with Claude.
Tool Use and Integration
Tool use: Learn how to integrate Claude with external tools and functions to extend its capabilities.
Third-Party Integrations
Retrieval augmented generation: Supplement Claude's knowledge with external data sources.
Multimodal Capabilities
Generate images with Claude: Use Claude with Stable Diffusion for image generation.
Advanced Techniques
Sub-agents: Learn how to use Haiku as a sub-agent in combination with Opus.
Upload PDFs to Claude: Parse and pass PDFs as text to Claude.
Automated evaluations: Use Claude to automate the prompt evaluation process.
Enable JSON mode: Ensure consistent JSON output from Claude.
Create a moderation filter: Use Claude to create a content moderation filter for your application.
Prompt caching: Learn techniques for efficient prompt caching with Claude.
Cost optimization: Work through a cost optimization checklist on an agent, measuring pass rate and cost per task to find the Pareto-optimal configuration.
Additional Resources
Anthropic on AWS: Explore examples and solutions for using Claude on AWS infrastructure.
AWS Samples: A collection of code samples from AWS which can be adapted for use with Claude. Note that some samples may require modification to work optimally with Claude.
What people ask about claude-cookbooks
What is anthropics/claude-cookbooks?
anthropics/claude-cookbooks is tools for the Claude AI ecosystem. A collection of notebooks/recipes showcasing some fun and effective ways of using Claude. It has 53.7k GitHub stars and its last recorded update is dated 2026-10-17.
How do I install claude-cookbooks?
You can install claude-cookbooks by cloning the repository (https://github.com/anthropics/claude-cookbooks) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is anthropics/claude-cookbooks safe to use?
Our security agent has analyzed anthropics/claude-cookbooks and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains anthropics/claude-cookbooks?
anthropics/claude-cookbooks is maintained by anthropics. The last recorded GitHub activity is dated 2026-10-17, with 367 open issues.
Are there alternatives to claude-cookbooks?
Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.
Maintain this repo? Show its Trust Score in your README
The badge shows this repository's current Trust Score and verdict, and links back to this page. It follows the catalogue data: nobody can buy or edit the score it displays.
[](https://claudewave.com/en/repo/anthropics-claude-cookbooks)<a href="https://claudewave.com/en/repo/anthropics-claude-cookbooks"><img src="https://claudewave.com/api/badge/anthropics-claude-cookbooks" alt="ClaudeWave Trust Score for anthropics/claude-cookbooks" width="320" height="64"></a>