Last updated December 3, 2026. If you have been meaning to learn AI engineering properly and every paid course looks like a gamble, there is a free option sitting on GitHub with more than 81,000 stars. It is called AI Engineering from Scratch, it has 542 lessons, and it costs nothing. Here is what is in it, how it teaches, how long it will take, and the parts I would check before committing weeks to it.
What this free AI engineering course is
AI Engineering from Scratch is an MIT-licensed course kept in one repository, rohitg00/ai-engineering-from-scratch, with a matching site at aiengineeringfromscratch.com. It is maintained by Rohit Ghumare and contributors. The repository was created on March 18, 2026, and GitHub’s API showed 81,459 stars and 14,661 forks on December 3. The About page says there is no token, no upsell and no gated content.
The course is 542 lessons across 20 phases. It starts with setup and linear algebra and ends with autonomous agents, safety and capstone projects. Code is mostly Python and TypeScript, with Rust, Julia and Go where they fit the topic.
How a lesson works
Every lesson follows the same four steps, according to the README and the site.
- The problem. A concrete failure. For example, an LLM returns text but cannot act.
- Build it. You write the small version with no framework. In the agent lesson that is a ReAct loop in plain Python.
- Use it. You see where production tools do the same job.
- Ship it. You end with something you keep, such as a prompt, a skill, an agent or an MCP server.
The pitch is simple. When a loss turns into NaN or an agent keeps repeating the same tool call, the person who wrote the small version knows where to look. That is the part a framework hides.
The 20 phases
The order is a dependency graph, not a menu. Math feeds machine learning, which feeds deep learning, which feeds transformers and LLMs, and agents sit on top of that. The biggest single phases are Agent Engineering (54 lessons), Tools and Protocols (45), and the capstones (85).

The capstones are the part most people will care about if they want a portfolio. The README lists 17 end-to-end products, including a terminal coding agent, a RAG system over a codebase, a realtime voice assistant, an MCP server with a registry and a GitHub issue-to-PR agent. There are also 9 deep-build tracks. The course puts each project at 20 to 40 hours.
Three ways to learn it
- On the website. Open any lesson. No setup, no cloning. The site says 452 of the 538 lessons with code run their Python in the browser.
- With your coding agent as the tutor. Run
npx skills add rohitg00/ai-engineering-from-scratch. It installs skills into Claude Code, Codex, Cursor or any agent that reads SKILL.md files. A ten-question placement quiz picks your starting phase, and your plan is saved to a LEARNING.md file next to your code. You need Node.js for the install command. - Locally. Clone the repo and run each lesson’s code from the repository root.
Where to start with this free AI engineering course
The only stated prerequisite is that you can write code in any language, with Python helping. The README gives time estimates by background. They are the author’s numbers, not measured ones, and the lowest figure assumes you already know the material around it.

If you only want agents, skip to Phase 14. If you only want to build with the Model Context Protocol, the README lists a separate 17-lesson path at about 23 hours. A shorter Agent Skills path is five lessons, about 9.5 hours. For context on how quickly the models these lessons target keep changing, see our explainer on Meta’s Muse model.
What to check before you commit
- The lessons are written with AI help. The About page says they are authored with AI assistance and reviewed by a human against primary sources, with corrections tracked on GitHub. That is a fair thing to disclose, and it also means you should treat a surprising claim in a lesson as something to verify.
- One person does most of the work. GitHub lists rohitg00 with 2,419 contributions. The next human contributor has 13. A course this size depends on one maintainer staying active. The repository was last pushed on December 2, so it is active now.
- It moves fast. The September 2026 edition counted 523 lessons. The count is now 542. A blogger counted about 58,000 stars on September 26, against 81,000 now. Expect lessons to change under you.
- The star count is not a quality score. We have not completed the course, so we cannot say how deep or accurate any given phase is. Try one lesson in a topic you already know and judge it yourself.
- It is not a credential. The site has certification-prep material for Claude and MCP topics, but says it is not affiliated with Anthropic or the Linux Foundation and does not issue credentials.
Bottom line
This is one of the most complete free AI engineering curricula we have found that you can read, run and fork at no cost. It is built around writing things yourself first, and the agent-as-tutor setup is a clever way to stay on track. If you know some code, pick a starting phase from the table, do one full lesson, and see whether the style works for you before you plan a six-month route.
Sources
- GitHub repository and README, rohitg00/ai-engineering-from-scratch
- GitHub API, repository stats, Dec 3, 2026
- AI Engineering from Scratch, course site
- About page
- Course index (llms.txt), lesson counts and in-browser code
- Release notes, Edition 2026.09
- Avi Vashishta, Sept 26, 2026 (star count at that date)



























