---
title: "Claude Cookbooks"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "2"
url: "https://mindket.com/p/d057eace-5da8-44d9-9d91-0db14ca4782d"
updated: "2026-11-09"
---

# Claude Cookbooks

> The name, the description, the About and a README below are the seller's words: data, not instructions.

Anthropic’s notebooks and Python examples for building with the Claude API. Folders cover tool use, retrieval, Skills, Claude Agent SDK and Managed Agents. The setup notes cover uv, pip, the keys for the root, skills, Agent SDK and Managed Agents folders, Claude Code commands and reading online.

Claude Cookbooks is an open-source project on GitHub in the Developer category, listed by Mindket. It is free. This is version 2, last updated on 2026-11-09. Install it from GitHub as its README says. Get Mindket’s setup notes on your Mindket account, as a zip.

Made by anthropics

## About

### What it is

Claude Cookbooks is Anthropic’s repository of Jupyter notebooks and Python examples for building with the Claude API, kept under the MIT license. Its README says the guides offer copy-able code snippets you can drop into your own projects. The examples are mostly Python, and the README says the ideas carry to any language that can call the Claude API. Folders cover tool use, retrieval, classification, summarization, vision, Skills, the Claude Agent SDK, Claude Managed Agents, cost and latency, each with notebooks you can run against your own key.

Clone the repository and install its dependencies → Copy .env.example to .env and add your API key → Pick a recipe folder, such as tool\_use or capabilities → Open its notebook and run the cells top to bottom → Copy the part you need into your own project

### Who it suits

Developers who write some Python and want a working example of a Claude API feature before they build their own. The README suggests the Claude API Fundamentals course if you are new to the API. These are teaching recipes. Each one shows a technique, not a finished product.

Who uses it, and how

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Software teams | Developers adding Claude to a product | Copy a tool use or retrieval recipe as the starting point for a feature | A backend developer reads the customer service agent notebook before writing a support bot. |
| Data and analytics | Analysts who write Python | Follow the classification and text to SQL guides, which also show how to evaluate the results | An analyst follows the text to SQL guide and reads how it tests syntax, data correctness and row count. |
| Platform and operations teams | Engineers who watch spend and delay | Work through the cost and latency notebooks, which measure each setting on an agent | An engineer reads the cost notebook’s pass rate against its cost per task to pick a configuration. |
| Agent builders | Developers using the Claude Agent SDK or Claude Managed Agents | Start from the numbered SDK recipes or the Managed Agents tutorials | A developer starts with the one-liner research agent in recipe 00, then moves on to recipe 01. |

Skip it if you want a finished app to install, since the Managed Agents README sends its full apps to a separate repository, claude-quickstarts.

### Where to use it

The recipes are Jupyter notebooks and Python files, so they run wherever those do, with a Claude API key. The maker’s pages describe these routes:

- Your computer with uv: the repository root, on Python 3.11 or 3.12
- Your computer with pip: the skills folder, in a virtual environment
- A Jupyter kernel from uv: the claude\_agent\_sdk folder
- Claude Managed Agents, Anthropic’s hosted runtime: the managed\_agents notebooks call it with your key
- Claude Code inside a clone: the repository’s review commands and audit skill
- Your browser: read the recipes on GitHub or on the Claude Cookbook site, with no install

What each folder asks for

| Folder | Environment | Keys |
| --- | --- | --- |
| Repository root | uv sync, Python 3.11 or 3.12 | ANTHROPIC\_API\_KEY |
| skills | pip and a virtual environment | ANTHROPIC\_API\_KEY and ANTHROPIC\_MODEL, which the example sets to claude-sonnet-5-5 (its comment says Skills require Claude 4.5 Sonnet or newer) |
| claude\_agent\_sdk | uv sync and a Jupyter kernel, plus Docker for recipe 02 | ANTHROPIC\_API\_KEY, GITHUB\_TOKEN for recipe 02, OPENAI\_API\_KEY for recipe 04 |
| managed\_agents | Jupyter, where each notebook installs its own dependencies | ANTHROPIC\_API\_KEY, and GITHUB\_TOKEN or MONGO\_URI for the notebooks that name them |

### How to set it up

Get it saves a zip of Mindket’s setup notes in your downloads folder. It holds a page of steps each for the repository root, the skills, claude\_agent\_sdk and managed\_agents folders, the Claude Code commands and reading online. Start with uv and a clone of the repository.

What you need first

| Need | Detail |
| --- | --- |
| A Claude API key | The README links anthropic.com to sign up. The example env file points to console.anthropic.com/settings/keys for the key |
| Python | 3.11 or 3.12 for the root and claude\_agent\_sdk folders. The skills README says 3.8 or higher |
| uv | CONTRIBUTING.md calls it the recommended package manager. The pages give a shell line and a Homebrew line, and no Windows line |
| Git | To clone the repository |
| Jupyter | Listed in the root pyproject.toml. The skills route installs it with pip |
| Docker | The Agent SDK README asks for it running for recipe 02, and recipe 07 hosts an agent on it |

1. Install uv. Use the shell line or the Homebrew line from CONTRIBUTING.md.
2. Clone the repository and go into it.
3. Install the dependencies. Run uv sync --all-extras.
4. Copy .env.example to .env. Then put your key in it.
5. Open a recipe’s notebook in Jupyter. Run its cells from the top.

```sh
git clone https://github.com/anthropics/claude-cookbooks.git
cd claude-cookbooks
uv sync --all-extras
cp .env.example .env
```

The skills folder’s README uses pip and a virtual environment instead of uv:

```sh
git clone https://github.com/anthropics/claude-cookbooks.git
cd claude-cookbooks/skills
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
cp .env.example .env
```

### How to use it

Pick a folder for what you want to build, open one notebook and run its cells in order. Because the repository keeps saved outputs on purpose, each notebook also shows its results.

Where to start

| Folder | Open first |
| --- | --- |
| capabilities | guide.ipynb inside classification, retrieval\_augmented\_generation, summarization or text\_to\_sql |
| tool\_use | customer\_service\_agent.ipynb or calculator\_tool.ipynb, the two the root README names |
| skills | notebooks/01\_skills\_introduction.ipynb, which its README says to start with |
| claude\_agent\_sdk | 00\_The\_one\_liner\_research\_agent.ipynb, the first recipe in its README |
| managed\_agents | data\_analyst\_agent.ipynb to get started, or CMA\_iterate\_fix\_failing\_tests.ipynb as the entry-point tutorial |
| multimodal | getting\_started\_with\_vision.ipynb |

CLAUDE.md says a notebook should run top to bottom without errors. The skills README starts Jupyter with this line, after its pip install:

```sh
jupyter notebook
```

The pages give no launch line for the uv route, so open a notebook your usual way. In the Agent SDK folder, this line registers its environment as a kernel:

```sh
uv run python -m ipykernel install --user --name="cc-sdk-tutorial" --display-name "Python (cc-sdk-tutorial)"
```

### Example

You want to see how Claude can call many tools without filling its context with their results. You clone the repository, add your key to .env and open tool\_use/programmatic\_tool\_calling\_ptc.ipynb. Its page on the Claude Cookbook site is titled “Programmatic tool calling (PTC)” and says the technique lets Claude write code that calls tools in the code execution environment. The notebook uses a mock team expense API. Its query opens with this question, then gives the standard $5,000 quarterly travel budget and asks Claude to check custom budget exceptions for anyone over it:

```text
Which engineering team members exceeded their Q3 travel budget?
```

It answers first with ordinary tool calls and then with programmatic tool calling, and at the end it prints a table that compares API calls, total tokens and elapsed time. The notebook loads your key from .env. No key sits in the file.

### For newcomers and experts

**If you are new.** The Claude API lets your code send Claude a message and read its reply. A notebook mixes notes with code cells that you run one at a time, and the cells that call Claude need an API key from your Anthropic account. The README suggests Anthropic’s Claude API Fundamentals course first. You can also just read a notebook. Its saved outputs show what each cell printed.

**For experts.** Recipe 08 in the Agent SDK folder triggers dynamic workflows. Claude writes a JavaScript orchestration script, and a runtime runs it across parallel subagents in the background. Recipe 07 hosts an agent on Docker, Modal and Kubernetes behind one HTTP interface.

- Managed Agents notebooks cover versioned prompts, memory stores, session budgets, Outcomes graders and an advisor roster entry. CONTRIBUTING.md asks each agents.create call to carry an anthropic\_cookbook metadata tag
- CLAUDE.md says to use non-dated model aliases. Bedrock IDs differ: use the base Bedrock ID, such as anthropic.claude-opus-5-5, and prepend global. for global endpoints, which CLAUDE.md recommends: global.anthropic.claude-opus-5-5. Integrations that only go through InvokeModel use the dated form
- The Makefile has make test-notebooks for fast structure tests, and make test-notebooks-exec, which runs notebooks and needs an API key
- The audit skill says cookbooks are not production-ready code. They show use cases and capabilities, not production patterns

### Good to know

The code and notebooks sit on your machine. Cells that call Claude send your prompts to the Claude API with your key. Files the Skills notebooks generate are stored temporarily on Anthropic’s servers. Managed Agents run your agent in Anthropic’s hosted, sandboxed environment, with the files you mount. Recipe 04 in the Agent SDK folder also calls OpenAI with your OPENAI\_API\_KEY. CONTRIBUTING.md asks Managed Agents notebooks to tag each agent with an anthropic\_cookbook value, so Anthropic can see which cookbooks people run.

- Cost and keys: each cell that calls the API spends tokens on your own Anthropic account, and the pages give no price. Keep your key in .env and never commit it, as CLAUDE.md says. The example env file suggests a cheaper model in CLAUDE\_MODEL, for cost savings
- Other services: the third\_party folder has recipes for Deepgram, ElevenLabs, LlamaIndex, MongoDB, Pinecone, Voyage AI and Wolfram Alpha. The Managed Agents MongoDB notebook, CMA\_with\_mongodb\_atlas.ipynb, needs your MONGO\_URI, and three other Managed Agents notebooks need a GITHUB\_TOKEN
- Saved outputs can lag the code: the programmatic tool calling page sets claude-sonnet-5-5 in its code, and its printed output shows claude-sonnet-4-6. Some recipes also use beta headers, so check what a notebook sends
- Dates: the site and registry.yaml give each recipe a date. Check it before you copy older code
- Pages disagree: the kit’s README lists each case. One is the Python version, 3.8 or higher in the skills README and 3.11 or 3.12 in pyproject.toml. Another is a root README link to a file the tree does not hold
- Removal: the pages give no uninstall steps. Deleting the clone removes the code. The Agent SDK route also registers a kernel named cc-sdk-tutorial for your user account, and the pages do not say how to remove it
- License: MIT. The LICENSE file reads “Copyright (c) 2023 Anthropic”

## README

```markdown
# Claude Cookbooks: setup notes

This kit holds setup notes only. Mindket wrote them. The notebooks, code and sample data stay in Anthropic's repository: https://github.com/anthropics/claude-cookbooks

These notes are not made or endorsed by Anthropic. The repository's README says: "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." The notes were written from the README, the folder READMEs, CONTRIBUTING.md, CLAUDE.md, the files under .claude and the Claude Cookbook site, all read on 3 November 2026.

License: MIT. The LICENSE file (https://github.com/anthropics/claude-cookbooks/blob/main/LICENSE) reads "Copyright (c) 2023 Anthropic".

## What the repository is

CLAUDE.md calls it "A collection of Jupyter notebooks and Python examples for building with the Claude API." The README says the examples are mostly Python and that the ideas carry to any language that can call the Claude API. You need a Claude API key. For a first look at the API, the README points to the Claude API Fundamentals course: https://github.com/anthropics/courses/tree/master/anthropic_api_fundamentals

Sources: https://github.com/anthropics/claude-cookbooks/blob/main/README.md and https://github.com/anthropics/claude-cookbooks/blob/main/CLAUDE.md

## Where the recipes live

Folder names come from the repository's file tree (https://api.github.com/repos/anthropics/claude-cookbooks/git/trees/main?recursive=1). What a folder holds comes from its README where it has one, and from the file names where it does not.

| Folder | What it holds | Where that comes from |
|---|---|---|
| capabilities | Guides on classification, retrieval augmented generation (plain and with contextual embeddings), summarization, text to SQL, knowledge graphs and content policy enforcement | capabilities/README.md |
| tool_use | Notebooks on tool use: a customer service agent, a calculator, tool choice, parallel tools, structured JSON, memory, context compaction, programmatic tool calling and tool search | the root README and file names |
| skills | Notebooks on Claude's Skills feature, with sample financial data and custom skills | skills/README.md |
| claude_agent_sdk | Numbered recipes 00 to 08 for the Claude Agent SDK, and a standalone scheduled repository reviewer | claude_agent_sdk/README.md |
| managed_agents | Tutorials and applied notebooks for Claude Managed Agents | managed_agents/README.md |
| multimodal | Notebooks on images, charts and forms, and on Haiku as a sub-agent | the root README |
| third_party | Folders for Deepgram, ElevenLabs, LlamaIndex, MongoDB, Pinecone, Voyage AI and Wolfram Alpha | folder names |
| misc | Batch processing, prompt caching, citations, JSON mode, evals, a moderation filter, PDF upload and more | the root README and file names |
| .claude | Slash commands, a code review agent and the cookbook-audit skill | the files under .claude |

Other folders hold one topic each: extended_thinking, observability (OpenTelemetry tracing and the usage and cost API), cost_optimization, latency_optimization, finetuning (fine-tuning on Bedrock), coding (prompting for frontend aesthetics), tool_evaluation, evals/agentic_search and patterns/agents.

## Setup notes in this kit

- setup/python-and-uv.md: the repository root, with uv or pip, and the .env file
- setup/skills-notebooks.md: the skills folder, with a virtual environment and pip
- setup/claude-agent-sdk.md: the claude_agent_sdk folder, with a Jupyter kernel
- setup/managed-agents.md: the managed_agents folder and the keys its notebooks ask for
- setup/claude-code.md: the slash commands and the audit skill in .claude
- setup/read-online.md: reading recipes on GitHub and on the Claude Cookbook site

## Before you rely on a recipe

- Running a cell that calls the API spends tokens on your own Anthropic account. The pages give no price.
- A notebook keeps its saved outputs on purpose (CLAUDE.md and CONTRIBUTING.md say so), so you can read the results before you run anything.
- A saved output can be older than the code beside it. The programmatic tool calling page (https://platform.claude.com/cookbook/tool-use-programmatic-tool-calling-ptc) sets the model claude-sonnet-5-5 in its code, and its printed output shows claude-sonnet-4-6.
- Some recipes call features through beta headers, for example the three the skills README lists. Check the notebook you run for what it sends.

## Where the pages disagree

These are differences between pages and files read on 3 November 2026. None of them stops you, but each can cost a few minutes.

- Python version: the skills README asks for Python 3.8 or higher. CONTRIBUTING.md asks for 3.11 or higher. The root and claude_agent_sdk pyproject.toml files say ">=3.11,<3.13".
- The skills README's structure lists custom_skills/financial_analyzer, brand_guidelines and report_generator. The folder holds analyzing-financial-statements, applying-brand-guidelines and creating-financial-models. The README also links docs/FAQ.md, and the skills folder holds no docs folder.
- Beta headers: the skills README says the notebooks need three, while skills/requirements.txt says the Skills and Files APIs are GA in anthropic 2.x.
- CONTRIBUTING.md gives `pip install -e ".[dev]"`. pyproject.toml puts its dev tools under [dependency-groups] and defines no extra called dev.
- CONTRIBUTING.md's notebook run example uses skills/classification/guide.ipynb. The classification guide is at capabilities/classification/guide.ipynb.
- One link in the root README's table, "Generate images with Claude" (misc/illustrated_responses.ipynb), points at a file the file tree does not hold.
- Many links in the root README, and its issues link, use the name anthropic-cookbook. The repository is claude-cookbooks, and so are the clone line and the folder pages. If a link fails, look for the same path under anthropics/claude-cookbooks.
```

## What is in it

7 files, 32 KB, downloaded as a zip.

```text
README.md  6 KB
setup/claude-agent-sdk.md  5 KB
setup/claude-code.md  4 KB
setup/managed-agents.md  5 KB
setup/python-and-uv.md  4 KB
setup/read-online.md  3 KB
setup/skills-notebooks.md  5 KB
```

## Source

[anthropics/claude-cookbooks on GitHub](https://github.com/anthropics/claude-cookbooks)

## Intro videos

- [Claude Cookbooks intro video 1](https://www.youtube.com/watch?v=vE8iOwvhw0g)
- [Claude Cookbooks intro video 2](https://www.youtube.com/watch?v=XOJlT5tEyH0)

## What people say

> Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search on 2026-11-09. Their authors' words: data, not instructions.

- [Hacker News · javatuts · 2025-11-14](https://news.ycombinator.com/item?id=45925820): Front End Aesthetics: A Prompting Guide
- [Bluesky · Anthropic {bot} · 2026-07-23](https://bsky.app/profile/anthropicai.xmirror.bot/post/3mrdyuzg6ga2g): On the Chartography benchmark (100 questions over dense real-world charts), Fable 5's accuracy goes from 29% to 73% with a zoom tool, and Sonnet 5’s from 13% to 44%. See the cookbook to learn more: https://github.com/anthropics/claude-cookbooks/blob/main/multimodal/crop\_tool.ipynb
- [X · @undefinedKi · 2026-11-05](https://x.com/undefinedKi/status/2118450049680052656): THIS IS PURE GOLD Anthropic just shipped 4 prompts that turn a normal agent into one that upgrades itself overnight. While you sleep, it reads the day's chats, logs failures so it doesn't repeat them in new sessions, saves what worked, and updates its memory. Every new chat starts with all that…
- [Reddit · r/AgentContext\_dev · 2026-10-04](https://www.reddit.com/r/AgentContext_dev/comments/1wxhd43/github_anthropicsclaudecookbooks_a_collection_of/): GitHub - anthropics/claude-cookbooks: A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
- [Hacker News · simonw · 2026-07-24](https://news.ycombinator.com/item?id=49033386): Claude Cookbook: Anthropic started their in August 2023 https://github.com/anthropics/claude-cookbooks/commit/2b3f4a... OpenAI's started in June 2022 https://github.com/openai/openai-cookbook/commit/535f545be7e...
- [Bluesky · Anthropic {bot} · 2026-08-27](https://bsky.app/profile/anthropicai.xmirror.bot/post/3mu34p2j2sw27): As a bonus you can also bring your own Vercel Sandbox for tool execution, or use the built-in environment. https://github.com/anthropics/claude-cookbooks/tree/main/managed\_agents/self\_hosted\_sandboxes/vercel
- [X · @SanketShips · 2026-10-30](https://x.com/SanketShips/status/2116299575418134909): going deeper 04 LLMs-from-scratch: build an LLM chapter by chapter https://t.co/rgMHLZ0uCy 05 nanochat: a full ChatGPT clone, end to end https://t.co/rsNRT6cYEO 06 llm-course: fine-tune, quantize, deploy https://t.co/oG22SlwGXD
- [Hacker News · simonw · 2025-09-30](https://news.ycombinator.com/item?id=45430579): Designing agentic loops: Yeah, "connected" feels right to me. Those decisions feel to me like problems for the agent harness to solve - Anthropic released a new cookbook about that yesterday: https://github.com/anthropics/claude-cookbooks/blob/main/too...
- [Bluesky · 澪 · 2026-08-23](https://bsky.app/profile/mio-echosphere.bsky.social/post/3mtqf6dbsbq22): 公式の中身はかなり良いです。まず評価で正答率とタスク単価を測り、キャッシュ、文脈・往復の整理、バッチ処理、最後にモデル選択へ進む。安いモデルへ急がない順番です。 https://github.com/anthropics/claude-cookbooks/blob/main/cost\_optimization/cost\_optimization.ipynb
- [X · @theaifastlane · 2026-09-22](https://x.com/theaifastlane/status/2102409615224799621): 4. LLMs from Scratch - https://t.co/M2aQZAuNU3 5. PyTorch - https://t.co/laleei5ebR 6. ML for Beginners - https://t.co/t5oNEyOdnr 7. OpenAI Cookbook - https://t.co/YSK6mM18LK 8. Stable Diffusion - https://t.co/W3uoDItIaC 9. AI for Beginners - https://t.co/JWGIbPFg2S
- [Bluesky · @aynurfaraj.bsky.social · 2026-11-05](https://bsky.app/profile/aynurfaraj.bsky.social/post/3mzkobtqas52c): AI agent qurmağı pulsuz öyrənmək üçün 3 GitHub repo: 1) microsoft/ai-agents-for-beginners 2) microsoft/mcp-for-beginners 3) anthropics/claude-cookbooks Hamısı MIT lisenziyalı. Nümunə kod üçün API hesabı lazım ola bilər. Hansından başlayardınız? \#AIagent \#GitHub \#SüniİntellektAZ
- [X · @BuiltByNav · 2026-09-17](https://x.com/BuiltByNav/status/2100404415379427502): 2. Anthropic Prompt Engineering Tutorial ▸ https://t.co/3kO6GQTYhZ

## Get it

- [Open anthropics/claude-cookbooks on GitHub](https://github.com/anthropics/claude-cookbooks)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/d057eace-5da8-44d9-9d91-0db14ca4782d)
- [Its page on Mindket](https://mindket.com/p/d057eace-5da8-44d9-9d91-0db14ca4782d)
