Chapter 13 · Build
Connect an AI to your game
Use Claude, or another AI coding agent you already have, to make addons, fix errors and change your own realm, safely, with the kit that ships with Open Vanilla.
Open Vanilla has no AI of its own and no partnership with any AI company. What it ships is a kit: a set of instructions and starter prompts that turn an AI coding agent you run on your own PC (with your own account) into a careful helper that knows how Open Vanilla is laid out and what it must never touch. Nothing in the game, the launcher or this kit sends anything to an AI, and Open Vanilla never asks for, stores or sends AI keys or logins.
How it works, in one picture #
There are three pieces, and only the first one is an AI:
| Piece | Where it runs | What it does |
|---|---|---|
| Your AI agent (Claude Code, or another) | Its own terminal window on your PC, signed in to your own account | Reads and edits files in your Open Vanilla folder when you ask |
The AI workspace (CLAUDE.md, AGENTS.md, Agent\) | Your Open Vanilla data folder | Tells the agent the rules, the folder layout, how Vanilla addons work and how your servers are configured |
| Starter prompts | The launcher, the game (/assistant) and the website | Ready-made requests you copy and paste into the agent |
The agent edits files; you test the result in the game with /reload, or by restarting your realm for server changes. You stay in charge of every change: a good agent says what it will change, how to test it and how to undo it, before it does anything.
Which AI agents work #
The launcher looks for these on your PC, in this order:
| Agent | Command | Notes |
|---|---|---|
| Claude Code | claude | Works best: it reads CLAUDE.md by itself. Needs a paid Claude plan (Pro, Max, Team or Enterprise) or an Anthropic Console account. |
| Codex CLI | codex | Open the workspace in it and tell it to read AGENTS.md. |
| Gemini CLI | gemini | Same: point it at AGENTS.md. |
| Aider | aider | Same. |
| Cursor | cursor | Open the workspace folder as a project. |
| VS Code | code | With whatever AI extension you use. |
AGENTS.md is the short version "for any AI coding agent": it points to CLAUDE.md and says its rules apply to every tool. Any agent that can read and edit files in a folder can use the kit.
Note: Install Claude Code from its official page: code.claude.com/docs/en/setup. If the launcher can't find it after installing, close and reopen the launcher; it also checks the usual install folders, so a stale PATH doesn't hide it.
Set it up in the launcher #
- Open the launcher and go to Settings. The AI (optional) section is at the end of the page. (From your second launch the launcher also offers this once, in an Activate your AI (optional) card: Show me takes you there.)
- The status line says Claude Code — found (green) or not found on this PC. If it isn't found, press Install Claude Code; it opens the official install page.
- Press Set up AI workspace. The launcher copies the kit into your data folder and reports what it did, for example "AI workspace ready (12 files copied)".
- Press Open in Claude Code. A terminal opens in your data folder with Claude Code running. With another agent, press Open terminal here or Open workspace folder and start your agent there.
- Pick a Starter prompt from the list under the buttons, press Copy prompt, paste it into the agent, and fill in the parts in
<angle brackets>.
How it works on the same row opens the website's AI page, which has every prompt with a copy button.
What gets written, and where #
The workspace is your Open Vanilla data folder: %LOCALAPPDATA%\OpenVanilla for an installed launcher, or the folder beside the launcher for the portable zip (the OPENVANILLA_DATA_DIR setting overrides both).
| File | What it is |
|---|---|
CLAUDE.md | The full guide for the agent: rules, folder layout, Lua 5.0 addon rules, server config locations, GM commands, how to work with you |
AGENTS.md | The short version for other agents |
Agent\README.md | The player's guide to all this |
Agent\prompts\*.md | The starter prompts, one file each |
Agent\.kit.json | What the kit wrote and its version, so updates are safe |
Pressing Update AI workspace later is always safe: files you edited or wrote yourself are kept, only the kit's own untouched files are refreshed. The kit refuses to use a drive root or your whole user folder as the workspace, and never writes outside it.
Do it by hand (no launcher) #
If you play from a source checkout, or want the kit somewhere else:
- Copy
CLAUDE.md,AGENTS.mdand thepromptsfolder from the repo'sagent\folder into the folder you want the agent to work in. - Open a terminal there and start your agent (
claude,codex,gemini, ...). - First message:
Read CLAUDE.md, then tour this folder without changing anything.
The starter prompts #
Every prompt starts with "Read CLAUDE.md." so the agent loads the rules first. The same nine prompts are in the launcher, in the game and on the website.
| Prompt | What it does | Works on |
|---|---|---|
| Tour my Open Vanilla folder | Explains what's where; changes nothing | Your copy, read-only |
| Make my first addon | Builds MyFirstAddon with a /hello command | Your copy (AddOns\Enabled) |
| Fix an addon error | Reads the error, finds the cause, fixes it with a backup | Your own or copied addons |
| Make a UI theme | A new addon MyTheme (/mytheme) that restyles frames | Your copy |
| Change my realm's XP rate | Edits Rate.XP.* in your server config | Your own servers only |
| Add a custom NPC or vendor | Writes a .sql file in Agent\sql\ first, entry IDs above 190000 | Your own servers only |
| Host a realm for friends | Walks you through hosting | Your PC and your own realm |
| GM commands cheat sheet | Writes Agent\gm-cheatsheet.md | Your own servers only |
| Back up my characters and settings | Copies to Backups\manual-<date>\ with HOW-TO-RESTORE.txt | Your copy and your own servers |
In the game: the Assistant #
The Assistant addon puts the same prompts inside the game, so you can grab one without alt-tabbing.
- Open it with
/assistant(or/ai), or the Assistant button in the Esc menu./assistant howopens the how-to tab. - Prompts tab: pick a prompt; its text is selected in the box, press Ctrl+C to copy (the Vanilla client has no clipboard button), then paste into your agent.
- How it works tab: the five steps on this page, short.
The Assistant never talks to an AI or the network. Its footer says so: the AI runs outside the game, in its own window, on your PC.
Rules the kit gives the agent #
These are written into CLAUDE.md, and you should hold the agent to them:
- Your PC only. It works in your Open Vanilla folder and your own server folders. Never on the official realm or any server you don't run.
- Never Blizzard's files. It must not modify, extract, copy or share the Vanilla Client v1.3 game folder (
WoW.exe,Data\*.MPQ,WTF\),Interface\FrameXML,Interface\GlueXMLor anyBlizzard_*addon. - No secrets. It never reads out, prints or sends passwords, tokens or keys (including the database passwords in
mangosd.confand any password saved insettings.json). You type secrets yourself. - Backups first. Before changing a file it copies it to
Backups\ai-<date-time>\; before changing database tables it exports them (or uses Host → Backup in the launcher). - Program files are off limits:
OpenVanilla.exe,app\,Game\,Server\www\. Updates replace them anyway. - Don't edit the shipped Vanilla Remastered addons in place. Copy one under a new name, or write a separate addon.
- Small steps. Say what will change, how to test it and how to undo it. Nothing downloaded or run from the internet without explaining it first.
Warning: Read before you say yes. An agent can be wrong. If it asks to run a command or change a file you don't understand, ask it to explain first, or say no.
Good things to ask #
Once the workspace is set up you can ask in plain words. Some that work well:
- "My bags addon errors when I open the bank. Here's the error:
<paste>. Find the cause and fix it, with a backup." - "Make an addon that shows my current zone's level range under the minimap."
- "On my solo realm, double the drop rate of cloth and make mounts trainable at level 30. Show me the config changes first."
- "Write a Workshop listing for my addon
MyTheme: summary, screenshots I should take, and a changelog." (See Publish to the Workshop.) - "Explain what
Realms\Hosted\custom\mangosd.confcontrols, section by section."
For the details an agent needs to write addons that work in this client, see Edit your own game.
Herald Autopilot is not an AI #
Herald Autopilot (the desktop app started with Herald Autopilot.bat, and Let Herald play / /herald in game) can play your character, but it isn't a language model: it drives the realm's own playerbot "self-bot" with rules and a gear simulator. It does not hide from staff (no anti-ban tricks, no fake human delays), and on the official realm autoplay is currently switched off. Learning is opt-in and sends anonymous numbers only. More in Community: Herald.
For realm staff: AI in moderation #
Hosts can optionally let an AI model help sort player reports in Herald. It reads the report and the chat lines and suggests a score and an action; the AI never kicks or bans, humans decide. It's off unless the host sets MOD_AI_URL, MOD_AI_KEY and MOD_AI_MODEL (any OpenAI-compatible endpoint) in Herald's server settings. The key stays on the realm server; players never need one.
Open Vanilla