Compatibility
Minecraft: Java Edition
Platforms
Creators
Details
Imagine
Create Minecraft plugins from inside the game. Type /imagine, describe a feature in plain English, and Imagine has it written, compiled and loaded onto your running server. No IDE, no upload, no restart.
/imagine create a /heal command that restores full health
* Imagining: create a /heal command that restores full health
* Generating code... (this may take a few minutes)
* Compiling...
* Downloading jar...
* HealCommand loaded successfully!
What it adds
/imagine <idea>: turns a description into a working plugin. Imagine saves the finished jar to yourpluginsfolder, loads it and enables it, and its commands work right away./kod <api-key>: saves your Kodari API key from in game, so you don't have to edit a file.- Progress in chat: you see each step (generating, compiling, downloading, loaded), and a clear message if one fails.
- Replaces older versions: if a plugin with the same name is already running, Imagine unloads it before loading the new one.
- Your code is saved: every plugin you generate is also a project on your Kodari account, where you can read every file, change it and download it.
Why use it
Adding one small feature normally means finding a plugin that almost does what you want, or paying someone to write it. Imagine is for those small things: a custom command, a join message, a cooldown, a reward when a mob dies. You can find out whether an idea is fun in a few minutes, without leaving the game.
Ideas that work well:
a /heal command with a 60 second cooldowngive players a diamond the first time they joinannounce in chat when a player reaches level 30creepers drop 2 extra gunpowder when killed by a player
Tips:
- One feature per command. Two small plugins are easier to test than one that does everything.
- Give numbers: cooldowns, radiuses and amounts get you what you pictured.
- Name the trigger: "when a player joins", "every 10 minutes", "when a creeper explodes".
For bigger projects like a full economy or a minigame, use the web editor on kodari.ai, where you can refine a plugin over several messages.
Requirements
- A Spigot, Paper or Folia server. Folia is supported.
- Java 8 or newer.
- A Kodari account and API key. Accounts are free to create. Each generation uses credits from your account.
- An internet connection on the server.
Setup
- Create a free account on kodari.ai and make an API key on the API keys page.
- Put Imagine in your server's
pluginsfolder and start the server once, so it creates its config. - Add your key in
plugins/Imagine/config.yml, or run/kod <your key>in game. - Run
/imaginefollowed by your idea.
# plugins/Imagine/config.yml
api-key: "kod-your-api-key"
Commands and permissions
| Command | What it does | Permission | Default |
|---|---|---|---|
/imagine <idea> |
Generates a plugin from your idea and loads it | imagine.use |
Operators |
/kod <api-key> |
Sets your Kodari API key | imagine.admin |
Operators |
What this plugin connects to
Imagine sends your idea to the Kodari API (kodari.ai) using your API key. Kodari generates the code and compiles it. Imagine then downloads the compiled jar, saves it to your plugins folder and loads it. Nothing is generated or loaded unless someone with imagine.use runs /imagine.
Using it safely
Imagine loads new code onto a running server, so treat it like giving someone the power to install plugins.
- Keep
imagine.useandimagine.adminto people you trust. Both default to operators only. - Try ideas on a test server first. Generated plugins load straight away, without a review step.
- Read the code when it matters: open the project on kodari.ai to see exactly what it does.
- Back up before big changes, as you would before installing any plugin.
Troubleshooting
- "Kodari API key not configured." Add your key with
/kod <key>or inconfig.yml. - "Generation failed" or "Compilation failed": nothing was loaded. Try a simpler or more specific idea, or open the project on kodari.ai and fix it there.
- "Failed to load plugin": the jar was saved but the server could not enable it. The message after it says why.
- "You don't have permission to use this command." You need
imagine.use, or to be an operator. - Out of credits: claim your daily reward on kodari.ai or top up, then try again.
Support
Join the Discord: discord.gg/dn8YE2Ctbv
Licensed under MIT.


