Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Tags
Creators
Details
Licensed MIT
Published 3 months ago
AIAgent
AIAgent is a server management plugin that integrates Google's Gemini AI directly into your Minecraft server. Instead of just acting as a chatbot, this plugin acts as an autonomous agent. It can read server files, modify configurations safely, and execute console commands based on natural language prompts.
You don't need to remember complex command syntaxes or dig through YAML files to find a specific setting. Just tell the AI what you want to do.
Features
- Smart Configuration Editing: The AI doesn't just blindly guess config keys. If you ask it to modify a plugin (e.g., "disable update checks in ViaVersion"), the agent will first read the target
config.yml, locate the exact correct key, and then apply the change. - Preserves YAML Formatting: When modifying configuration files, the plugin maintains your existing indentations and spacing so your configs won't break.
- Context-Aware Commands: The AI knows who is executing the command. If you type
/aiagent make me opor/aiagent heal me, it automatically targets your exact username. - Built-in Safety: By default, the AI will not execute anything immediately. It will tell you exactly which files it wants to edit, what keys it wants to change, or what commands it wants to run. You must type
/aiagent confirmto apply the changes or/aiagent cancelto abort. - Free to Use: Powered by Google's Gemini API (defaults to
gemini-3-flash), which offers a very generous free tier. API key required.
Examples
You can use plain English (or any other language Gemini understands) to control your server:
/aiagent change the render distance to 8(Finds view-distance in server.properties and updates it)/aiagent make it morning and clear the weather(Executes /time set day and /weather clear)/aiagent disable the check-for-updates in viaversion(Reads plugins/ViaVersion/config.yml, finds the right setting, and updates it)
Setup & Installation
- Drop the
AIAgent.jarinto your server'spluginsfolder. - Start the server once to generate the
config.ymlfile. - Get a free API key from Google AI Studio.
- Open
plugins/AIAgent/config.ymland paste your API key:gemini-api-key: "YOUR_API_KEY_HERE" model: "gemini-3-flash" require-confirmation: true - Restart the server or reload the plugin.
Commands & Permissions
/aiagent <prompt>- Ask the AI to do something./aiagent confirm- Approve the AI's proposed actions./aiagent cancel- Cancel the pending actions.
Permission node: aiagent.admin (Defaults to OP). Only grant this permission to highly trusted administrators, as it allows modifying root server files and executing console commands.


