AI8 min read
How to Become an AI Engineer in Morocco in 2026: A Practical Roadmap
What an AI engineer actually does, why Morocco's 2026 AI strategy matters, a step-by-step roadmap from software basics to RAG, agents and evaluation, where to train (including 1337), and realistic jobs and salaries in Casablanca. From a Technical Lead & AI Engineer who took that path.

Quick answer In 2026, most AI engineers in Morocco don't invent new AI models. They build products on top of existing ones, like GPT, Claude or open models, and make them reliable, affordable and useful. The path is: learn to build real software first, then learn the AI layer (connecting models to company data, building agents, measuring quality and cost), then prove it with projects people can try. You don't need a PhD or an expensive degree. Morocco's free coding schools, like 1337, are a real route in, and demand is growing because the country has made AI a national priority.
Contents
- What an AI engineer actually does
- Why now is a good time in Morocco
- The roadmap, step by step
- Where to learn in Morocco
- Jobs and salaries
- How I did it, and what I'd do differently
- Questions people ask
What an AI Engineer Actually Does
The job title is new and confusing, so let's be precise. There are three different jobs people call "AI":
- AI researcher: invents new models and methods. Usually a PhD, usually at a big lab. Very few of these jobs exist in Morocco, or anywhere.
- Data scientist / ML engineer: trains models on a company's own data, for example to predict fraud or classify documents.
- AI engineer: builds products using models that already exist. This is where most of the new jobs are.
As an AI engineer, a normal week looks like this: connecting a model to a company's documents so it answers with real information (this is called RAG, retrieval-augmented generation), building an "agent" that can take actions like searching a database or filling a form, testing whether the answers are actually correct, and keeping the bill and the response time under control. It is software engineering first, with AI as a new and powerful component.
That is also why I think the best AI engineers are good software engineers first. A model that answers well in a demo is easy. A feature that keeps answering well for thousands of users, without the cost exploding, is the real job.
Why Now Is a Good Time in Morocco
Morocco has put AI at the center of its national plans:
- A national AI strategy. Launched in January 2026 (Morocco World News), "AI Made in Morocco" targets 100 billion dirhams of GDP from AI, 50,000 direct and indirect jobs and 200,000 people trained in AI by 2030 (Maroc.ma, TelQuel).
- New AI institutes. The JAZARI network of AI centres was launched with the strategy in January 2026, and in August 2026 four JAZARI institutes covering AI, education, industry and smart cities were formally established (Morocco World News).
- Digital Morocco 2030. The national digital strategy names AI as one of the high-value sectors to grow, and aims for 100,000 new digital talents a year by 2030 (official presentation, September 2024). I break down what it means for engineers in Morocco Digital 2030: What It Means for Software Engineers.
Plans are not jobs, and targets are not guarantees. But the direction is clear, and the companies hiring AI engineers today, from Moroccan startups to European companies with teams in Casablanca, are already struggling to find people who can ship AI features in production.
The Roadmap, Step by Step
This is the order I'd follow if I were starting today. Each step builds on the one before.
- Learn to build real software. Pick one language and go deep: Python or TypeScript are the two that matter most for AI products. Learn to build an API, work with a database like PostgreSQL, and use Git. If you skip this, you'll be stuck at demos.
- Call a model from code. Use the OpenAI, Anthropic or Azure OpenAI APIs. Learn how prompts, tokens and pricing work. Build something small that you use yourself.
- Connect a model to real data (RAG). Store documents in a vector database (pgvector on PostgreSQL is a great start) and make the model answer from them. This is the single most requested AI skill in companies.
- Build an agent. Give the model tools it can use: search, a database query, an email. Learn the Model Context Protocol (MCP), which has become a standard way to connect models to tools.
- Measure quality and cost. Build a small test set of questions with known good answers and check your system against it every time you change something. Track the cost of each finished task, not just the price per token. I explain why in The Cheaper AI Model Can Cost You More.
- Ship it. Put it online with Docker on a cloud like Azure or AWS, with logs and error handling. A live link beats a screenshot.
For the deeper technical version of steps 3 to 6, see my AI engineering guide.
Where to Learn in Morocco
- 1337 Coding School. Free, no degree required, a member of the global 42 Network and the school of digital science of UM6P. It was founded in 2018 in Khouribga and now has campuses in Khouribga, Benguerir, Tetouan and Rabat (Wikipedia). There are no lectures: you learn by building projects and reviewing each other's code. I trained there, and I wrote about what it really teaches in From 1337 to Technical Lead.
- Engineering schools and universities. A computer engineering degree gives you strong foundations. Add the AI layer yourself with projects.
- Online. The model providers' own documentation and courses are free and up to date. In AI, documentation from six months ago can already be old.
Whatever the route, the diploma gets you an interview. What you have built gets you the job.
Jobs and Salaries
Casablanca, Morocco's economic capital, is where most tech employers are. Job market guides describe an acute shortage of experienced and senior engineers (Jobsquare), and one recruiter lists the best-paying sectors for AI engineers as financial services and fintech, telecoms, defense and security, data consulting, and service centers of European groups (Naïm Bentaleb).
Salaries are hard to pin down, and sources disagree, so treat these as rough ranges:
- A recruiter who follows the market estimates about 12,000 to 15,000 MAD gross a month for junior AI engineers in Casablanca, and 18,000 to 25,000 MAD with two to five years of experience (Naïm Bentaleb).
- His own articles don't fully agree with each other, and the figures aren't from an official survey, so use them as a rough guide only.
The other option is working remotely for European companies. Morocco shares almost the same working hours as Paris and London, which makes day-to-day collaboration easy. I worked this way for almost three years with a Paris-based company before joining Camelo in Casablanca.
How I Did It, and What I'd Do Differently
I didn't start in AI. I did a technology diploma in computer engineering, then a professional degree, then 1337, where I wrote an operating system kernel in C and built networks and servers from scratch. I joined Fygurs, a Paris startup, as its founding engineer and became its Technical Lead, where I integrated GPT-4o into the product, built RAG and AI agents, and trained a small PyTorch model for the assessment engine. Today I'm Technical Lead & AI Engineer at Camelo, building AI products for the web, desktop and mobile.
Three things I'd tell anyone starting:
- Don't skip the boring foundations. In production, most AI problems turn out to be software problems: a slow database, a missing retry, a bad deployment.
- Build in public. One live project with real users says more than ten certificates.
- Learn to measure. The engineers who stand out can say "this change made answers 20% more accurate and 30% cheaper" and prove it. Most people only say "it looks better".
Questions People Ask
Do I need a master's degree to become an AI engineer in Morocco?
No. Companies hiring AI engineers look first at what you can build. A degree helps for some large companies and for visas abroad, but free schools like 1337 and a strong portfolio are a proven route.
Should I learn Python or JavaScript for AI?
Python is the default for anything close to the models and data. TypeScript is excellent for building the product around them. Start with one, then learn enough of the other to read it.
How long does it take to become an AI engineer?
If you already code, a few focused months of building RAG, agents and evaluation projects can get you to junior AI engineer level. From zero, count one to two years to build the software foundations first.
Can I work remotely from Morocco for European companies?
Yes. The time zone is close to Western Europe, and many Moroccan engineers already work this way, either employed or as freelancers.
Sources
- Morocco World News, Morocco launches Maroc IA 2030 roadmap
- Maroc.ma, Morocco moves on AI strategy implementation, targets MAD 100 bln GDP value by 2030
- TelQuel, Maroc IA 2030 : 100 milliards de DH, 50.000 emplois et 200.000 talents au programme
- Morocco World News, Morocco establishes four institutes to drive AI, industry and smart cities
- CGEM, Official launch of the national strategy Morocco Digital 2030
- Wikipedia, 1337 Coding School
- Naïm Bentaleb, AI engineer salary in Morocco in 2026 and April 2026 update
- Jobsquare, IT and digital sector in Morocco in 2026
You might also like What a Technical Lead Actually Does, and How to Become One and How to Configure AI Coding Agents Like an Engineering Team.
Working on something similar?
I'm a Technical Lead & AI Engineer building LLM-powered SaaS in production.
NestJS, Next.js and Django on Azure, from model integration to the architecture around it. If your team is working through the same problems, I'm happy to compare notes.
