Game mod / tooling

Add AI to a game mod or tool

AI NPC dialogue, procedural quests and modding helpers work best with local models: no per-player API cost, works offline, and no keys shipped inside your mod.

Recommended stack

Model

Framework

Hosting

  • Fly.io: No free tier (free trial: $1 of credit for 7 days); personal-org bills under $5/mo are waived; smallest always-on VM ~$2.19/mo (verified 2026-11-15)

No-code alternative

  • Bolt.new: Free 1M tokens/mo (300K/day); Pro $25/mo (verified 2026-11-15)

Rough monthly cost

$0–5/mo (local models via Ollama are free)Approximate. Tool prices checked 2026-11-15.

Difficulty

Intermediate–Advanced

Some links may be affiliate links. Disclosure

Why this stack

Step-by-step

  1. Get a hello-world mod or Godot scene running.
  2. Install Ollama, pull a small model, and call its local HTTP API from your game code.
  3. Give each NPC a short persona prompt plus recent game state.
  4. Stream responses and set a timeout so the game never freezes.

Common pitfalls

Customise this stack in the picker →

Related stacks

Last updated 2026-11-22.

📬 The Loadout

One weekly AI build loadout: a project idea, the stack to build it, and the tools worth knowing. Free, unsubscribe anytime.

Subscribe to The Loadout