Home › Courses › Build Your First AI Agent from Scratch

Build Your First AI Agent from Scratch

A weekend build: a terminal agent that plans, calls tools and remembers. No frameworks

Over six lessons you build one terminal agent in plain Python, with no framework. It calls Claude, uses tools you write and test, plans in a loop that knows when to stop, keeps track of what it has learned, copes when a tool fails, and finally runs three real tasks end to end. You need an Anthropic API key; the first lesson shows you how to get one.

Build an AI agent from scratch in Python

Write a tool, connect it to the agent loop, and choose a stopping rule. Test what happens when the tool receives invalid arguments or returns an error.

6 lessons · 6 labs · 1 working agent

What you finish with

Curriculum

Tools

Anthropic API · Python · httpx · Serper API

Common questions

Do I need agent-framework experience?

No. This course deliberately uses no framework. You need Python (functions, classes, basic async/await) and an Anthropic API account. If you've used ChatGPT or Claude but never built a tool-calling agent, this is the place to start.

Why no LangChain or CrewAI?

Frameworks are useful once you understand what they wrap. This course teaches the mechanism itself, the tool_use/tool_result loop, so any framework you use later is readable to you rather than a black box.

How is this different from the Agentic AI Engineering course?

Agentic AI Engineering is a 50-lesson, 10-phase production track covering multi-agent systems, MCP, computer use, memory and production infrastructure. This is a 6-lesson weekend build that gets you one working agent quickly: the same ideas at small scale.

Will I need to pay for API usage?

Yes. The Anthropic API and Serper API (for web search) are pay-per-use beyond a free tier, but a full run through this course costs a small fraction of a dollar in API usage.

What do I end up with?

A Python agent on your own machine that calls 4 tools (web search, file reading, Python execution, URL fetching), plans multi-step tasks, manages its context and handles failures, run against 3 tasks you chose yourself.

Key terms in this course

Agent · Context Window · ReAct · Tool Use

Continue your learning path

Agentic AI Engineering

Start the Build Your First AI Agent from Scratch course

Create a free account — the opening phases of 29 of 35 courses, and the first lesson of every phase, are free, no credit card. Or see Pro pricing.

All courses · Pricing · About · FAQ · Glossary · Projects by topic