claude-cookbooks
8/31/2026, 8:23:37 PM · Source
Explore official Anthropic code notebooks and recipes for building applications with Claude, covering classification, RAG, tool use, vision, and advanced techniques.
GitHub - anthropics/claude-cookbooks: A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
GitHub - anthropics/claude-cookbooks: A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
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:
Anthropic developer documentation Anthropic support docs Anthropic Discord community
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.
Customer service agent Calculator integration SQL queries
Third-Party Integrations
Retrieval augmented generation: Supplement Claude's knowledge with external data sources.
Vector databases (Pinecone) Wikipedia Web pages
Embeddings with Voyage AI
Multimodal Capabilities
Vision with Claude:
Getting started with images Best practices for vision Interpreting charts and graphs Extracting content from forms
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.
Learning map
Stage 1: Fundamentals
- Get a Claude API key and set up your development environment.
- Learn basic API interaction through Python code snippets.
Stage 2: Core Capabilities
- Implement text classification and summarization.
- Build Retrieval-Augmented Generation (RAG) pipelines using vector databases.
Stage 3: Advanced Integration
- Integrate external tools and functions for tool use.
- Leverage multimodal features like vision and PDF parsing.
Stage 4: Optimization and Scale
- Apply advanced techniques like prompt caching and cost optimization.
- Build sub-agent architectures and automated evaluations.
Get hands-on — step by step
- Clone the GitHub repository at https://github.com/anthropics/claude-cookbooks using Git.
- Install Python and set up a virtual environment for running Jupyter notebooks.
- Obtain an API key from the Anthropic console and configure it in your environment variables.
- Open a beginner-friendly notebook such as the text classification or basic summarization recipe.
- Run the code cells sequentially, modifying inputs to test Claude's responses with your own data.
Top 3 sources
- 1Claude Cookbooks GitHub Repository
The official collection of notebooks and code recipes for building with Claude.
https://github.com/anthropics/claude-cookbooks
- 2Anthropic Developer Documentation
Comprehensive documentation for working with the Claude API and models.
https://docs.anthropic.com
- 3Anthropic API Console
The platform to manage your API keys, usage, and billing.
https://console.anthropic.com
Links are AI-suggested — worth a quick sanity check before diving in.