Uploaded June 2026 | Updated November 2026, 3 hours ago
This beginner-friendly tutorial walks you through how to build your first AI agent in Python from scratch, step by step, with no prior experience required.
π€ Install Agentspan in seconds: pip install agentspan or npm install @agentspan-ai/sdk
First, you'll set up everything you need to follow along, including Python, the Java Development Kit (JDK), and the uv package manager, then install the free and open-source Agentspan framework with a single command.
Next, you'll build your first AI agent in Python using just three simple building blocks: a tool the agent can call, the agent itself, and a single line of code that runs it.
Then, you'll open the Agentspan dashboard and watch every step your agent takes, including the exact inputs and outputs of each tool call, so you can see exactly what your AI agent is doing.
Afterward, you'll build a more capable agent that reads a Python file and writes its own pytest tests for each function, saving its progress one step at a time.
Along the way, you'll learn why your agent's state lives on a server instead of inside your Python script, the design choice behind everything that follows.
Then, you'll crash your agent on purpose by killing the Python process in the middle of a run, and watch it resume exactly where it left off when you start it back up.
Finally, you'll learn how to make your agent idempotent so it can survive reruns.
Start building with Agentspan β pip install agentspan
Host: David DeWinter
Sponsor: Agentspan
π RESOURCES
Resource Guide (commands & code) β docs.google.com/document/d/1vx9qDblLCNyRp7z-M4H6_ICnaSlOcto4Ep4DvyfAFmQ/edit
Agentspan β agentspan.ai
Agentspan Docs β github.com/agentspan-ai/agentspan
Python β python.org/downloads
Java JDK (Adoptium Temurin) β adoptium.net/temurin/releases
uv (Python package manager) β https://docs.astral.sh/uv/
OpenAI API Keys β platform.openai.com/api-keys
Anthropic API Keys β platform.claude.com
β TIMESTAMPS
0:00 - What You'll Build
0:23 - Install Prerequisites
1:46 - VS Code Setup
2:33 - API Keys & Providers
3:22 - Tool, Agent & Run
5:30 - Start the Server
6:07 - Agentspan Dashboard
6:58 - Test-Writing Agent
9:12 - Crash & Resume
12:02 - Next Steps
π© NEWSLETTER
Get the latest high-quality tutorials and tips and tricks videos emailed to your inbox each week: kevinstratvert.com/newsletter
π½ CONNECT WITH ME
Official website: kevinstratvert.com
LinkedIn: / kevinstratvert
Discord: bit.ly/KevinStratvertDiscord
Twitter: / kevstrat
Facebook: / kevin-stratvert-101912218227818
TikTok: / kevinstratvert
Instagram: / kevinstratvert
π PARTNERS & DISCOUNTED OFFERS
π» Hostinger | hostinger.kevinstratvert.com
π Notion | notion.kevinstratvert.com
π΅ Quickbooks Online | qbo.kevinstratvert.com
ποΈ Voicemod AI Voice Changer | voicemod.kevinstratvert.com
π΅οΈ VidIQ | vidiq.kevinstratvert.com
π MY COURSES
Go from Excel novice to data analysis ninja in just 2 hours: kevinstratvert.thinkific.com
πTRAINING
Take your skills, or your teamβs, to the next level by partnering with us for expert training: kevinstratvert.com/training
π REQUEST VIDEOS
https://forms.gle/BDrTNUoxheEoMLGt5
π SUBSCRIBE ON YOUTUBE
https://www.youtube.com/user/kevlers?...
π SUPPORT THE CHANNEL
Hit the THANKS button in any video!
Amazon affiliate link: amzn.to/3kCP2yz
β DISCLOSURE
Some links are affiliate links. Purchasing through these links gives me a small commission to support videos on this channel. The price to you is the same.
This beginner-friendly tutorial walks you through how to build your first AI agent in Python from scratch, step by step, with no prior experience required.
π€ Install Agentspan in seconds: pip install agentspan or npm install @agentspan-ai/sdk
First, you'll set up everything you need to follow along, including Python, the Java Development Kit (JDK), and the uv package manager, then install the free and open-source Agentspan framework with a single command.
Next, you'll build your first AI agent in Python using just three simple building blocks: a tool the agent can call, the agent itself, and a single line of code that runs it.
Then, you'll open the Agentspan dashboard and watch every step your agent takes, including the exact inputs and outputs of each tool call, so you can see exactly what your AI agent is doing.
Afterward, you'll build a more capable agent that reads a Python file and writes its own pytest tests for each function, saving its progress one step at a time.
Along the way, you'll learn why your agent's state lives on a server instead of inside your Python script, the design choice behind everything that follows.
Then, you'll crash your agent on purpose by killing the Python process in the middle of a run, and watch it resume exactly where it left off when you start it back up.
Finally, you'll learn how to make your agent idempotent so it can survive reruns.
Start building with Agentspan β pip install agentspan
Host: David DeWinter
Sponsor: Agentspan
π RESOURCES
Resource Guide (commands & code) β docs.google.com/document/d/1vx9qDblLCNyRp7z-M4H6_ICnaSlOcto4Ep4DvyfAFmQ/edit
Agentspan β agentspan.ai
Agentspan Docs β github.com/agentspan-ai/agentspan
Python β python.org/downloads
Java JDK (Adoptium Temurin) β adoptium.net/temurin/releases
uv (Python package manager) β https://docs.astral.sh/uv/
OpenAI API Keys β platform.openai.com/api-keys
Anthropic API Keys β platform.claude.com
β TIMESTAMPS
0:00 - What You'll Build
0:23 - Install Prerequisites
1:46 - VS Code Setup
2:33 - API Keys & Providers
3:22 - Tool, Agent & Run
5:30 - Start the Server
6:07 - Agentspan Dashboard
6:58 - Test-Writing Agent
9:12 - Crash & Resume
12:02 - Next Steps
π© NEWSLETTER
Get the latest high-quality tutorials and tips and tricks videos emailed to your inbox each week: kevinstratvert.com/newsletter
π½ CONNECT WITH ME
Official website: kevinstratvert.com
LinkedIn: / kevinstratvert
Discord: bit.ly/KevinStratvertDiscord
Twitter: / kevstrat
Facebook: / kevin-stratvert-101912218227818
TikTok: / kevinstratvert
Instagram: / kevinstratvert
π PARTNERS & DISCOUNTED OFFERS
π» Hostinger | hostinger.kevinstratvert.com
π Notion | notion.kevinstratvert.com
π΅ Quickbooks Online | qbo.kevinstratvert.com
ποΈ Voicemod AI Voice Changer | voicemod.kevinstratvert.com
π΅οΈ VidIQ | vidiq.kevinstratvert.com
π MY COURSES
Go from Excel novice to data analysis ninja in just 2 hours: kevinstratvert.thinkific.com
πTRAINING
Take your skills, or your teamβs, to the next level by partnering with us for expert training: kevinstratvert.com/training
π REQUEST VIDEOS
https://forms.gle/BDrTNUoxheEoMLGt5
π SUBSCRIBE ON YOUTUBE
https://www.youtube.com/user/kevlers?...
π SUPPORT THE CHANNEL
Hit the THANKS button in any video!
Amazon affiliate link: amzn.to/3kCP2yz
β DISCLOSURE
Some links are affiliate links. Purchasing through these links gives me a small commission to support videos on this channel. The price to you is the same.










