AI Agents for Beginners is Microsoft's free course on building AI agents, programs where a language model plans, calls tools and acts for you. Its 18 lessons each stand alone: what agents are, agent frameworks, design patterns, tool use, agentic RAG, trustworthy agents, planning, multi-agent systems, metacognition, agents in production, protocols (MCP, A2A and NLWeb), context engineering, memory, Microsoft Agent Framework, computer-use agents, deploying at scale, local agents and securing agents. In the first ten minutes you can read lesson one and watch its short video, with nothing installed.
Each lesson has a written README, lessons 1 to 13 have a video, and most come with Python notebooks, plus some .NET samples, built on Microsoft Agent Framework. The code connects to Microsoft Foundry, so most notebooks need an Azure subscription and a deployed model such as gpt-5-mini. Lesson 17 builds an agent that runs entirely on your own computer with Foundry Local and Qwen, and the setup also describes OpenAI-compatible providers such as MiniMax. The course is translated into more than 50 languages.
It is written by Microsoft Cloud Advocates and is MIT-licensed, with about 81,000 stars and 119 contributors since November 2024. There are no versioned releases; the changelog's latest entry is from 14 July 2026, and the notebooks were last fixed on 16 November 2026 for Agent Framework 1.10 and Foundry Local 2.
- Repository: github.com/microsoft/ai-agents-for-beginners
- Licence: MIT (MIT License)
- Language: Jupyter Notebook. Stars: 81.1K. Forks: 26.5K. Last push: Nov 17, 2026.
- Scan: safe, Nov 28, 2026, commit 3bee2dd
Who it is for
Developers with some Python who want a structured route into building agents, students, and teams adopting Azure AI or Microsoft Agent Framework. The lessons read fine without code; running most notebooks needs Python 3.12, the Azure CLI and an Azure subscription, and a few need extra services such as Azure AI Search.
Getting started
1. Read the lessons on GitHub, starting with course setup
https://github.com/microsoft/ai-agents-for-beginners/tree/main/00-course-setup2. Clone it without the 50-plus translations, to keep the download small
git clone --filter=blob:none --sparse https://github.com/microsoft/ai-agents-for-beginners.git3. Then, inside the folder, skip the translation folders
git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'4. Install the packages in a Python 3.12 virtual environment
python3.12 -m venv venv && source venv/bin/activate && pip install -r requirements.txt5. Sign in to Azure so the notebooks can reach your Foundry project
az loginA full clone with every translation is about 10,400 files and 940 MB even without history. Model calls on Microsoft Foundry are billed to your Azure subscription, and lesson 5 also needs Azure AI Search. Lesson 17 needs Foundry Local, which you install separately. Lesson 15 installs Browser Use and Playwright, which downloads a browser; Browser Use sends anonymous usage telemetry unless you set ANONYMIZED_TELEMETRY=false.
Safety scan
We cloned microsoft/ai-agents-for-beginners at commit 3bee2dd on Nov 28, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.
- 0 secret hits, 0 pattern hits and no committed binaries across 10,362 files and about 2 million lines, almost all of them translated lessons and notebooks. One saved notebook output in lesson 15 shows the name of the author's own Azure endpoint, with no key.
- No install hooks or installer scripts. You read the lessons or run the notebooks in Jupyter; many notebooks run %pip install for their own packages, such as browser_use, langchain-openai and playwright in lesson 15. scripts/validate-notebooks.ps1 is a maintainer check that runs every notebook against a live Foundry project, and you never need it.
- 0 advisories. The root requirements.txt pins only agent-framework-core 1.10.0, which has none, and gives ranges or no version for the rest (the Azure SDKs, Agent Framework, MCP, OpenAI, ChromaDB and the Foundry Local SDK), so pip installs current releases. There are no npm projects.
- The hosts are GitHub, Microsoft Learn, Azure endpoints (mostly placeholders such as your-project.cognitiveservices.azure.com), the Browser Use and LangChain docs, the MCP site and Airbnb, which lesson 15's browser agent searches as its demo. Links carry Microsoft's WT.mc_id tag for counting course traffic; we found no analytics code.
- Three workflows: a manual smoke test that signs in to Azure with OIDC to test a deployed agent, and two that label and thank new issues and pull requests. No pull_request_target, and all four third-party actions are pinned to commits. Security policy, Dependabot, contributing guide and code of conduct present; no CodeQL.
What the scanner counted
| Check | Result |
|---|---|
| Secrets | None found. |
| Suspicious code | None found. |
| Install-time code | None: nothing runs at install beyond the package manager itself. |
| Committed binaries | None. |
| CI workflows | 3 workflows. None use pull_request_target. 0 of 4 third-party actions pinned to a tag rather than a commit. |
| Network hosts | 14 distinct hosts referenced from source; most often github.com, www.airbnb.com, learn.microsoft.com, cognitiveservices.azure.com. No URLs to bare IP addresses. |
| Known vulnerabilities | 0 advisories across 1 pinned package: 0 critical, 0 high, 0 moderate, 0 low. requirements.txt: 1 packages, 0 advisories. |
| Project hygiene | Has security policy, automated dependency updates, licence file, contributing guide. Missing CodeQL. |
| OpenSSF Scorecard | Not scored: the project is not in Scorecard's weekly index. |
By the numbers
| Stars | 81.1K |
|---|---|
| Forks | 26.5K |
| Contributors | 119 |
| Commits | 2,290 |
| Open issues | 2 |
| Open pull requests | 2 |
| Releases | 0 |
| Latest release | none tagged |
| Licence | MIT |
| Main language | Jupyter Notebook |
| Project age | 2 years |
| Last push | Nov 17, 2026 |
| Tracked files | 10,362 |
| Lines of code | 2M |
| Checkout size | 543 MB |
Lines by language: Jupyter 1.2M, Markdown 766.8K, JSON 63.7K, Python 3,172, C# 1,596, PowerShell 188.
Questions
Is AI Agents for Beginners free?
Yes. The lessons and code are free and MIT-licensed. Running most notebooks uses Microsoft Foundry, which bills your Azure subscription for the model calls; lesson 17 runs on your own computer at no cost with Foundry Local.
Do I need an Azure account?
For most of the code, yes: the samples use Microsoft Agent Framework with Microsoft Foundry. You can read every lesson without one, lesson 17 runs locally, and the setup guide describes OpenAI-compatible providers such as MiniMax for some samples.
AI Agents for Beginners or Generative AI for Beginners?
Start with Generative AI for Beginners, also on this list, if you have never called a language model from code; this course points there itself. Take this one next, once prompts and chat apps feel familiar.
Do I need to know how to code?
To run the notebooks, some Python helps. The written lessons and videos explain each pattern in plain language, so you can follow the ideas without coding.
This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.
