Skip to content

An Arduino AI Assistant. (4A! Yay!). This plugin integrates Claude, ChatGPT, Gemini, LM Studio and more directly into the Arduino IDE.

License

Notifications You must be signed in to change notification settings

NikolaiRadke/AI.duino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AI.duino

🤖 AI.duino - AI assistant for Arduino IDE 2.X

AI.duino integrates the API providers Claude, ChatGPT, Gemini, Mistral, Perplexity and Cohere, Croq, aggregator services OpenRouter and Hugging Face, and local providers Claude Code, Codex CLI, LM Studio and Ollama directly into the Arduino IDE for intelligent code assistance. It also works with VS Code. Please use the newest Version to avoid annoying bugs.

Note

Groq ist not Grok! AI.duino is Elon-free!

Oje, Englisch? Kann ich nicht. Schnell hier hin.

🆕 What's new?

  • 24.12.2025 Fixed critical key generation bug. Merry Christmas!
    -- More news? Check the newsblog.

Features

Supported languages

The plugin uses the language selected in your IDE preferences. If it's a non-IDE language, select in in the plugin menu. Supported are:
bg, bs, cs, da, de, el, en, es, et, fi, fr, hr, hu, is, it, ja, ko, lt, lv, mk, mt, nl, no, pl, pt, ro, sk, sl, sq, sr, sv, tr, uk, zh.
More language will follow soon. No, i don't speak all these languages, the locales were generated by Claude Opus 4.1. You can add your own language bei adding a xx.json file to your locales/ folder

Code optimization

Optimizes Code. Example: Converts blocking code into non-blocking variants, delay() is replaced with millis()-based implementations.

Code explanation

Explains complex Arduino commands and hardware registers in plain language.

Automatic documentation

Adds meaningful comments to existing code.

Error analysis

Explains compiler error messages and provides concrete solutions. When using this feature, you copy the error message from the Arduino output window.

Direct AI question with follow up questions

Ask something with or without marked code. You can ask further context-related.

Debug support

  • Analysis of Serial Monitor output
  • Hardware diagnostics for common problems
  • Timing analysis

AI Chat

Multiple chats like in the browser but integrated in the IDE with history based persistance. Claude Code provides full session persistance. You can add files content. All feature results can be discussed here too.

Custom agents

Let the AI do some tasks for you, like error checking after compiling. Agents can include build outputs and additional internal and external files .

Offline code analysis

Gives some information about the current file.

Inline completion

AI will suggest code completion behind common keywords like Serial. and in comments ending with ':'.
Example: // Let the LED blink for three times:. Press to accept the suggestion. You can select a different provider, Groq is fast, free and recommended for inline completion.

Auto update

The provider settings will be updated when availabe. They will be generated automatically every week. The extension is checking itself and will inform the user for new version updates.

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

Usage

  1. Select code in Arduino IDE
  2. Right-click → AI.duino → Choose function in the menu above
  • Ctrl+Shift+C (Windows/Linux) or Cmd+Shift+C (Mac)
  • Press the AI.duino button below
  • Enter Ai.duino menu through the side tree bar

Installation

Automatic (recommended)

You need the VSIX file aiduino.vsix in the same folder with the installer. The installer will install the plugin in your home folder. If you want to install it into the Arduino programm directory, see Manual installation.

Windows

Run install_aiduino_windows.bat as administrator

Linux

chmod +x install_aiduino_linux.sh
./install_aiduino_install_linux.sh

macOS

chmod +x install_aiduino_macos.sh
./install_aiduino_Install_macos.sh

Manual installation

Add read permissions to each folder and file. Copy the prepared aiduino folder to the Arduino IDE plugin directory. The folder must have the following structure:

aiduino/
└── extension/
    ├── icons/ 
    ├── locales/
    └── out/
        ├── config/
        ├── core/
        ├── features/
        |   ├── inlineCompletion/
        ├── localProviders/
        |   ├── httpProviders/
        |   └── processProviders/
        └── utils/
            └── panels/

Windows

C:\Program Files\Arduino IDE\resources\app\plugins\

macOS (Untested)

/Applications/Arduino IDE.app/Contents/Resources/app/plugins/

Linux

/usr/share/arduino/resources/app/plugins/
or
~/.local/share/arduino-ide/resources/app/plugins/

Deinstallation

You can completly remove the extension in the AI.duino settings panel bei clickung the uninstall button. Are you sure? Are you really REALLY sure?

If you installed AI.duino manually into the plugin folder, you need to remove it by yourself. AI.duino has no permissions to do that.

API keys

AI.duino communicates through the API with the AIs. It's impossible to connect through the web interface, so an API key is mandatory. If you already have a monthly paid account, you need to - sigh - buy an additional key for about $5. Fortunatly, this really lasts long.

Tip

You can try Groq and Gemini: They have a rate for API keys for free.

Required: An API key from either:

The keys are stored locally and not transmitted.

Local providers don't need an API key. If you have an account, for example Pro Plan with Claude, you can use Claude Cor no extra costs. HTTP based providers like Ollama get auto detected, process based providers like Claude Code only needs the path to the binary. Example: Try which claude (Linux/macOS) or where claude (Windows) and copy the path for the AI.duino input field when selecting Claude Code.

Supported Providers:

Content

AI.duino/
Root directory with some explanation files
|
├── aiduinio/
|   The plugin directory structure for manual installation.
└── installer/
    Installer files with plugin VSIX file  

💙 Support AI.duino

AI.duino is free and open source. If it saved your day, consider buying me a coffee! ☕

GitHub Sponsors Ko-fi

Every contribution helps keep this project alive! 🚀

About

An Arduino AI Assistant. (4A! Yay!). This plugin integrates Claude, ChatGPT, Gemini, LM Studio and more directly into the Arduino IDE.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 2

  •  
  •  

Languages