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.
-
Get ready for Claude API development
Create your Claude and Claude Console accounts, and install Visual Studio Code, Git, GitHub, and Python, so you're ready for the Claude labs.
-
Develop your first AI agent with Claude
Use the Claude Platform, the Claude SDK, and Claude Code in Visual Studio Code to create an agent.
-
Extend an AI agent with tools
Combine Claude's built-in web search tool with a custom tool function, so that your agent can find, download, and display openly licensed images.
-
Connect an AI agent to an MCP server
Use the Claude API's MCP connector to give your agent the tools from a remote Wikipedia MCP server, so it can find and display Wikipedia articles.
-
Develop a managed AI agent with Claude
Rebuild the computing history agent as a managed agent - with web search, image input, a custom tool, and an MCP server - and build a client app that chats with it.