Skip to content
  1. Home
  2. Guides and documents
  3. Claude Cookbooks

Claude Cookbooks

Anthropic's notebooks and recipes for building with Claude

What it is

Anthropic's official collection of runnable notebooks, formerly published as the Anthropic Cookbook. Folders cover tool use, agent patterns, the Claude Agent SDK, managed agents, multimodal input, extended thinking, evals, observability and cost or latency tuning. Aimed at developers who want copyable code for the Claude API.

Good for

  • Copy a working tool-use or RAG example
  • Learn Claude API features from notebooks
  • Compare cost and latency techniques

Install or run

git clone https://github.com/anthropics/claude-cookbooks.git

Command as given in the project README. Read the repository before you run anything on your machine.

What you need

Claude API key; Python and Jupyter

Worth knowingExamples are mostly Python and written for the Claude API; the README still points beginners to a courses repo that is now archived.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for coding

See the topic →
  • Karpathy-Inspired Claude Code Guidelines

    multica-ai/andrej-karpathy-skills

    One CLAUDE.md with four rules against common LLM coding mistakes

    GuideGitHub stars: 233k
  • OpenAI Cookbook

    openai/openai-cookbook

    Official examples and guides for common OpenAI API tasks

    GuideGitHub stars: 77k
  • Awesome Claude Code

    hesreallyhim/awesome-claude-code

    Curated list of Claude Code skills, agents, tooling and plugins

    GuideGitHub stars: 58k
  • Claude Cookbooks: Tool Use

    anthropics/claude-cookbooks

    Notebooks on tool calling, memory and context management with Claude

    GuideGitHub stars: 55k