Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
A professional-grade AI coding assistant plugin for Godot 4 that transforms your development workflow with advanced features, responsive design, and enhanced markdown highlighting.
AI Coding Assistant for Godot
A powerful AI-powered coding assistant plugin for Godot 4.x that helps you write better code faster.
✨ Features
🤖 AI-Powered Assistance
- Real-time Chat: Ask questions and get instant coding help
- Code Generation: Generate complete scripts and functions
- Code Explanation: Understand complex code with AI explanations
- Code Improvement: Get suggestions for optimization and best practices
- Multiple AI Providers: Support for Google Gemini, Hugging Face, and Cohere
🎯 Smart Code Tools
- Quick Actions: Pre-built templates for common game development patterns
- Code Templates: Player movement, UI controllers, save systems, and more
- Syntax Analysis: Real-time code validation and suggestions
- Context Awareness: AI understands your current project context
🎨 Modern UI
- Responsive Design: Adapts to any screen size
- Flexible Layout: Resizable panels and collapsible sections
- Dark Theme: Easy on the eyes during long coding sessions
- Keyboard Shortcuts: Efficient workflow with hotkeys
🔧 Developer Experience
- Easy Setup: One-click installation and configuration
- Persistent Settings: Your preferences are saved automatically
- Code Diff Viewer: Review AI-generated changes before applying
- Export/Import: Save and share code snippets
🚀 Quick Start
1. Installation
Option A: From Godot Asset Library (Recommended)
- Open Godot 4.x
- Go to AssetLib tab
- Search for "AI Coding Assistant"
- Click Download and Install
Option B: Manual Installation
- Download the latest release from GitHub
- Extract to your project's
addons/folder - Enable the plugin in Project Settings > Plugins
2. Setup
- Enable Plugin: Go to Project Settings > Plugins and enable "AI Coding Assistant"
- Get API Key:
- For Gemini (recommended): Visit Google AI Studio
- For Hugging Face: Visit HF Tokens
- For Cohere: Visit Cohere Dashboard
- Configure: Open the AI Assistant dock and enter your API key
- Test: Send a message like "Hello, can you help me with GDScript?"
3. First Steps
Try these examples to get started:
"Create a simple player movement script"
"Explain how signals work in Godot"
"Generate a save/load system"
"Help me optimize this function"
📖 Usage Guide
Basic Chat
- Type your question in the input field
- Press Enter to send
- AI responses appear in the chat area
- Code responses are automatically formatted
Quick Actions
Use pre-built templates for common tasks:
- Player Movement: 2D/3D character controllers
- UI Controller: Menu and interface management
- Save System: Game state persistence
- Audio Manager: Sound and music control
- State Machine: AI and game state management
Code Operations
- Explain: Select code and click "Explain" for detailed explanations
- Improve: Get optimization suggestions for selected code
- Apply: Insert AI-generated code into your script
- Diff View: Review changes before applying them
Keyboard Shortcuts
Enter: Send messageCtrl+Enter: Apply generated codeCtrl+L: Clear chat historyCtrl+E: Explain selected codeCtrl+R: Improve selected codeCtrl+I: Focus input field
⚙️ Configuration
API Providers
Google Gemini (Recommended)
- Free Tier: 60 requests/minute, 1500/day
- Best For: Code generation and explanations
- Models: gemini-1.5-flash, gemini-1.5-pro
Hugging Face
- Free Tier: 30 requests/minute, 1000/day
- Best For: Open-source models
- Models: Various coding-focused models
Cohere
- Free Tier: 20 requests/minute, 100/day
- Best For: Advanced text generation
- Models: command, command-light
Settings
- Temperature: Controls AI creativity (0.0-1.0)
- Max Tokens: Maximum response length
- Auto-suggest: Enable real-time suggestions
- Save History: Persist chat conversations
🎮 Game Development Templates
Player Movement
extends CharacterBody2D
@export var speed: float = 300.0
@export var jump_velocity: float = -400.0
func _physics_process(delta):
# Handle movement and physics
# Generated by AI Assistant
Save System
extends Node
func save_game(data: Dictionary):
# Robust save/load implementation
# Generated by AI Assistant
UI Controller
extends Control
func show_menu(menu: Control):
# Menu management system
# Generated by AI Assistant
🔧 Troubleshooting
Common Issues
Plugin not appearing?
- Ensure Godot 4.x is being used
- Check that plugin is enabled in Project Settings
- Restart Godot after installation
API errors?
- Verify your API key is correct
- Check internet connection
- Ensure you haven't exceeded rate limits
Code not applying?
- Make sure a script is open in the editor
- Check that the generated code is valid GDScript
- Try using the diff viewer to review changes
Getting Help
- Check the built-in setup guide
- Review example prompts and templates
- Join the community discussions
- Report bugs on GitHub
🤝 Contributing
We welcome contributions! Here's how to help:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new features
- Submit a pull request
Development Setup
git clone https://github.com/your-repo/ai_assistant_for_godot.git
cd ai_assistant_for_godot
# Open in Godot 4.x for testing
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Godot Engine team for the amazing game engine
- AI providers for making powerful models accessible
- Community contributors and testers
- Open source projects that inspired this plugin
Happy Coding with AI! 🚀
A professional-grade AI coding assistant plugin for Godot 4 that transforms your development workflow with advanced features, responsive design, and enhanced markdown highlighting.
Reviews
Quick Information
A professional-grade AI coding assistant plugin for Godot 4 that transforms your development workflow with advanced features, responsive design, and enhanced markdown highlighting.