MATLAB AI Agent SDK


MATLAB AI Agent SDK lets you build and run AI agents in MATLAB.
  • Create agents based on OpenAI®, Ollama™, or OpenAI-compatible APIs.
  • Integrate LLMs and agentic workflows into your workflows in a targeted manner, retaining deterministic workflows when those are more suitable.
  • Let your agent work on large amounts of data without needing to send the data to the LLM.
This SDK is a Research Preview under active development and APIs may change.
Toshiaki Takeuchi
Toshiaki Takeuchi on 30 Jun 2026 at 15:14
I build this personal project using this SDK. This is a minimalist AI agent buit in MATLAB that runs on a local LLM:
  • no API key
  • no token cost
  • everything stays local.
I read somewhere: “Agents are just LLM + loop + tools.” - and i originally built it in MATLAB from scratch. With MATLAB AI Agent SDK, all the details of the agentic loop is handled with a single line of code:
response = run(bot, prompt);
I kept it very minimal, but it works surprisingly well for a toy project.
The best way to learn how AI agents work is to tinker with it, and hopefully you can check it out and build your own.
Hans Scharler
Hans Scharler on 30 Jun 2026 at 21:56
Awesome work! I want to use this with my Adpative Filter Design project. Thanks for sharing.