Claude Labs

These labs show you how to build AI agents with Claude, Anthropic’s family of models. You’ll use the Claude Platform (including the Claude Console), the Claude SDK for Python, and Claude Code in Visual Studio Code. You’ll start by prototyping an agent’s instructions and tools in the Console, then implement the agent in Python with an agent loop that uses web search, and use Claude Code to add a new feature to the agent. Next, you’ll extend the agent with a custom tool that works alongside web search, and connect it to tools on a remote MCP server. Finally, you’ll rebuild the complete agent as a managed agent, which runs on Anthropic’s platform.

Along the way you’ll learn how to send prompts and tools to the Messages API, how conversation history works, how to implement custom tools that Claude can call, how to use tools from MCP servers, how managed agents use sessions and events, and how to use Claude Code to make changes to an existing codebase.

Start with the lab “Get ready for Claude API development”. It explains how to create your Claude and Claude Console accounts, and how to install Visual Studio Code, Git, GitHub, and Python, so that you have everything you need for the other labs. Then work through the remaining labs in order.

Tip: Each lab page includes an Ask Claude button that opens a chat assistant to help you with the lab. To use it, you need your own Claude API key (from the Claude Console). The key is stored only in your browser tab and is cleared when you close the tab, and usage is billed to your Console account.