
ai-engineering-from-scratch
Free open-source course that builds AI systems from raw math upward
- Pricing
- Open source
- Platforms
- Web, CLI
- GitHub stars
- 79.2K
- Last commit
- 1 day ago
- Language
- Python
- License
- MIT
About ai-engineering-from-scratch
ai-engineering-from-scratch is an open-source AI tool for ai models and llm tooling. It is available on Web and CLI.
The course site lists 542 lessons across math, models, tokenizers, agents, evaluation and production, each repeating a loop of problem, derivation, code, test and kept artifact. Code is given in Python, TypeScript, Rust and Julia, and algorithms such as backprop, tokenizers, attention and the agent loop are written by hand before any framework is used.
A command installs the lessons as a skill so an agent can act as tutor in the terminal, with a placement quiz and a personalised path. Learning paths include AI engineering, agent harness work, stateless MCP systems, portable skills and Claude or MCPA certification routes.
It is built to run on your own machine and is MIT licensed.
What it does
- 542 lessons
- Covers math, models, tokenizers, agents, evaluation and production.
- Four languages
- Lessons are implemented in Python, TypeScript, Rust and Julia.
- Agent as tutor
- A skill command turns your agent into a terminal tutor with a placement quiz.
- Learning paths
- Separate routes for AI engineering, MCP systems and skills.
- Kept artifacts
- Each lesson ends with an artifact you keep.
Good for
- Learning how attention and backprop work by implementing them
- Studying how to build and secure MCP systems
- Following a guided path toward an AI engineering role
- Practising skill authoring in a real agent host
Pricing
Open source
Free, MIT licensed
Prices change. Check aiengineeringfromscratch.com before you buy.
ai-engineering-from-scratch FAQ
Is it free?
The site describes it as free and open source, under the MIT licence.
How do I start?
Run npx skills add rohitg00/ai-engineering-from-scratch and use start-learning.
Which languages are used?
Python, TypeScript, Rust and Julia.
Is ai-engineering-from-scratch free?
Yes. ai-engineering-from-scratch is open source, so you can use and self-host it for free.
What are the best alternatives to ai-engineering-from-scratch?
The closest alternatives to ai-engineering-from-scratch are GPT-3 Playground (OpenAI), ChatGPT (OpenAI), to teach, Heyday and ECC.
Alternatives to ai-engineering-from-scratch
-icon.png)
Free AI writing tool - Let the AI generate any text you can imagine
- Free
- Copywriting
-icon.jpg)
Ask any question or prompt to AI - The tool most other writing tools are based on
- Free
- Chat



Skills, hooks, memory and security layer for coding agent harnesses
- Freemium
- Open-source agent
- 305K GitHub stars
- AI models and LLM tooling
