GodotAI Dev — local AI assistant for Godot 4

No cloud
No API keys
No subscription
Powered by Ollama
Python 3.10+
MIT License
🔍
Codebase-aware

Indexes your .gd files with ChromaDB. Reads the files it actually needs before writing.

🔒
100% local

Your code never leaves your LAN. Ollama runs on your own hardware.

🛡️
Git safety net

Every patch is committed to a session branch. Multi-level /undo always available.

Truncation protection

Three layers prevent the AI from writing corrupt partial files.

Install

git clone https://github.com/ja33man/godot-ai-dev.git
cd godot-ai-dev
pip install -r requirements.txt

Run

# Windows
python godot_ai.py C:\Users\you\MyGame --host http://192.168.2.49:11434

# Mac / Linux
python3 godot_ai.py ~/MyGame --host http://192.168.2.49:11434

# Ollama on same machine
python3 godot_ai.py ~/MyGame --host http://localhost:11434

Models (pull on your Ollama server)

ollama pull nomic-embed-text      # ~274 MB — indexes your codebase
ollama pull qwen2.5-coder:14b     # ~9 GB   — writes and fixes GDScript
ollama pull qwen3.5:2b            # ~2.7 GB — fast chat answers

Commands

CommandWhat it does
/fixPaste a Godot error → diagnose → patch files
/featureDescribe a feature → generate GDScript → write files
/chatAsk anything about Godot or your project
/runLaunch Godot here — errors trigger auto-fix offer
/watchWatch Godot's log file for errors in real time
/retryRe-run last command with a stricter prompt
/undoRevert last AI patch via git reset
/modelsList Ollama models and switch code/chat model
/helpFull command reference
View on GitHub Full docs