auto-game-builder

agent
Security Audit
Pass
Health Pass
  • License — License: GPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 29 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Self-hosted game studio pipeline: build, ship and fix Flutter/Godot/Unity games from your phone. Android + iOS, Google Play + App Store, AI agents (Claude Code) working your task list.

README.md
Auto Game Builder

Auto Game Builder

Your own game studio pipeline — build, ship and fix games from your phone.

Self-hosted · Android + iOS · Google Play + App Store · AI agents that work through your task list

Google Play
App Store
Server
Engines
License: GPL v3

Welcome screen with Try demo   Dashboard with Google Play and App Store channels per game

Left: try the app without a server. Right: every game with its Play tracks and App Store state (demo data).


Why

Shipping a game is mostly not making the game: it is version bumps, signing, uploads, store tracks, review submissions, and a long list of small fixes. Auto Game Builder runs that whole loop on your own machine and puts it in your pocket:

🚀 One tap, both stores Build Android and iOS together, upload to Google Play and TestFlight, then promote or send to App Review from the phone
👀 See every channel Each game card lists every active Play track and its App Store state — live, in review, TestFlight, or not released yet
🤖 AI that works the backlog Claude Code (or Gemini, Codex, a local model) picks up tasks, fixes bugs, runs the tests, and reports back
🍎 Mac-native Run the server on a Mac for iOS builds, App Store Connect uploads and an always-on background service
🔒 Yours Self-hosted, API-key + HMAC protected, multi-user, open source (GPL-3.0)
🎮 Try first Open the app and tap Try demo — the whole app runs offline on sample data

Jump to: My games · Features · Security · Architecture · Quick Start · Prerequisites · API · Roadmap

See My Games

Every game on Lifecharger on Google Play is built, shipped and maintained with Auto Game Builder.

Features

Multi-Agent AI

  • Claude Code, Gemini CLI, Codex CLI, and Aider for bug fixes, feature implementation, and task automation
  • Local AI via Aider + Ollama for offline/private work (default model: qwen2.5-coder:7b)
  • Smart prompt templates per engine (Flutter, Godot, generic) with code quality standards baked in

Game Studio

One-tap Studio Actions — each button creates an enriched task in your project's tasklist.json that the next autonomous AI run consumes. Distilled from the Claude Code Game Studios skill framework into a condensed, autonomous-first shape.

Studio Reviews (Issues screen → 🧪 popup):

  • Design Review — GDD section audit against 8-section standard + mechanic clarity + monetization ethics
  • Code Review — per-engine code quality, crash risks, memory leaks, architecture smells
  • Balance Check — economy, progression curves, reward pacing, ethical monetization patterns
  • Consistency Check — cross-document drift scanner (GDD ↔ code ↔ data files) catching conflicting stats, prices, and formulas
  • Tech Debt Scan — Tier 1/2/3 debt triage for god scripts, duplicates, dead code, stale TODOs
  • Asset Audit — cross-reference assets/ against code references and GDD plans — broken refs, orphans, missing planned, placeholders
  • Content Audit — walk every shippable surface (levels, characters, items, dialogue, UI) for completeness and dead ends
  • Scope Check — producer reality-check with cut list and weeks-to-clear estimate
  • Performance Profile — player-felt bottleneck analysis (frame drops, memory, load time) — no micro-optimization noise

Art & Assets (Issues screen → 🎨 popup):

  • Art Bible — one-time authoring of design/art-bible.md, the 9-section visual identity anchor (color palette, character direction, UI language, style prohibitions) that every future asset-generation task reads as a constraint
  • Asset Specs — per-asset spec generator — bundles the art bible + GDD entry into a ready-to-run prompt tuned for the target generator (PixelLab / Grok / Meshy / Tripo)

Task creation:

  • Brainstorm — AI-generated game concepts with full GDD scaffolding (Dashboard → Brainstorm FAB)
  • Generate Ideas — session-focused idea generation weighted by visual / gameplay / code / polish (Issues screen top bar)
  • Document Enhancement — AI-powered improvement of gdd.md and CLAUDE.md files (App Detail screen)

Built-in knowledge base at server/config/studio/*.md — 15 condensed specialist files covering brainstorming, GDD templates, gameplay/UX, code quality, visual audit, polish, consistency scanning, tech debt, asset audit, content audit, scope, performance, art bible, asset specs. Each is ~40-60 lines, autonomous-first, and loads into task prompts automatically based on the action.

Store Status at a Glance

Every app card shows where each build is, on both stores:

  • Google Play — every active track (production, beta, alpha, internal) with its version; halted tracks stay hidden
  • App Store — live, approved, in review, and the newest TestFlight build when it is ahead of them
  • "Not released yet" when nothing is out to players on that store
  • Promote to production (Play) appears only when a test track holds a newer build than production
  • Send to review (Apple) attaches the newest TestFlight build to the App Store version and submits it in one tap
  • Status refreshes in the background; approved Apple versions are released automatically when the app is set to

Apple / iOS Pipeline (macOS host)

  • One-tap iOS builds for Flutter and Godot 4 projects — Xcode archive, signing, export to IPA
  • Dual builds — one tap builds the Android AAB and the iOS IPA, uploads both (Play track + TestFlight) and bumps the version once
  • App Store Connect API — registers bundle ids, creates provisioning profiles, uploads the IPA, and waits for processing
  • Auto-attach — a freshly processed build is attached to the editable App Store version (never while a version is in review)
  • Submit for review — sends the version together with its ready in-app purchases, subscriptions and Game Center achievements/leaderboards. Note: Apple only accepts an app's first purchases through the App Store Connect website; AGB detects that case and tells you
  • Project fix-ups before every build — app icon from the project's store icon, Info.plist essentials (display name, export compliance, SKAdNetwork list for AdMob), entitlements (Sign in with Apple, Game Center), Godot iOS export preset
  • Store screenshots upload to App Store Connect

Build & Deploy

  • One-tap builds for Flutter, Godot, Unity, Phaser (Capacitor), and React Native projects
  • Build targets: AAB, APK, IPA (iOS), Dual (AAB + IPA), EXE (Windows), APP (macOS), Web
  • Google Play deployment — automatic version bumping, AAB upload, track selection (internal/alpha/beta/production)
  • App Store deployment — IPA upload to TestFlight, then attach and submit from the phone (see above)
  • Release commits — each successful deploy commits the project as Release vX+Y to <track>
  • Python projects supported for python -m build workflows
  • Auto-detected build commands and output paths per engine

Issue Tracking & Auto-Fix

  • Create issues (bug, ANR, crash, improvement, feature, idea) with priority levels
  • Queue issues for AI auto-fix with engine-specific prompt templates
  • Session tracking with 20-minute timeout, internet-aware scheduling
  • ANR report parsing from Google Play Console crash data

Task Automation

  • Continuous automation loops with configurable intervals
  • One-shot and per-task execution scripts
  • Background process management with auto-restart on failure

MCP Integration

Extend AI agent capabilities with Model Context Protocol servers:

  • PixelLab — AI pixel art generation (characters, tilesets, UI, backgrounds)
  • ElevenLabs — AI audio, music, and sound effects
  • Meshy AI — 3D model generation (text-to-3D, image-to-3D, rigging, animation)
  • Mobile MCP — Device testing and automation
  • Godot MCP — Godot engine tools (cloud, requires Claude Max)
  • Cloudflare MCP — Cloudflare management (cloud, requires Claude Max)
  • Per-app MCP assignment — each project gets its own set of MCP servers
  • Preset auto-setup and custom server registration via API

Multi-User

  • Admin sees everything; members see and act only on the apps they own
  • Each user gets their own API key (shown once, stored hashed, rotatable)
  • Lets a teammate or family member build their own games on the same server

Accounts Are Optional

  • Continue without an account — the full app works; your server list just stays on that device
  • Sign in with Google keeps the server list in your Google Drive; Sign in with Apple (iPhone/Mac) keeps it on your Apple ID — so a new phone finds your servers again
  • In-app account deletion for Apple accounts

Demo Mode

  • Try demo on the companion app's first screen runs the whole app offline on sample data — no server, nothing sent anywhere
  • Builds, promotes and review submissions are simulated in memory; leaving the demo wipes it
  • Made for App Review and for anyone who wants to look before installing the server

Remote Access

  • Cloudflare Worker proxy for a permanent phone-to-PC URL
  • Cloudflare Tunnel with auto-registration to KV
  • Access your server from anywhere — the URL never changes even when the tunnel restarts

AI Chat

  • Conversational AI endpoint with context-aware specialist routing
  • Automatically loads relevant knowledge (brainstorm, code quality, visual audit, polish, gameplay) based on the question

Asset Generation Tools

Python scripts in tools/, organized by vendor/category subfolders:

  • tools/pixellab/ — pixel art generation, UI elements, backgrounds, image-to-pixel conversion, inpainting
  • tools/meshy/ — text-to-3D, image-to-3D, retexturing, remeshing, rigging, animation
  • tools/tripo/ — Tripo3D text/image → 3D, rigging, animation (official SDK + Studio JWT path with refresh_studio_token.py)
  • tools/grok/ — Grok (xAI) image/video generation + favorites downloader
  • tools/chrome/ — Chrome DevTools Protocol launcher and network capture
  • tools/blender/ — automatic mesh splitting and Mixamo bulk animation download
  • tools/media/ — pad_image, video_to_frames, png_to_pixel_array
  • tools/extract/ — per-project asset extractors
  • tools/pixel_guy/ — merged Pixel Guy character viewer app + Python pipeline
  • tools/comic_translator/ — merged Gemini-powered comic translator
  • tools/animation_generator/ — merged 2D Animation Generator UI (wraps the grok + media + tripo subfolders)
  • ElevenLabs — accessed via MCP only (no standalone scripts)

All vendor API keys live in the gitignored server/config/mcp_servers.json under {vendor}._api_key. Client modules walk upward from their script directory to find it, so moving tools between depths just works. See tools/CLAUDE.md for the full per-tool reference.

Security

Auto Game Builder takes security seriously. Your development PC is exposed to the internet via Cloudflare tunnels, so multiple layers of protection are in place:

How It Works

Phone ──X-API-Key──> Worker ──verify HMAC──> Tunnel ──validate key──> Your Server (Mac/PC)
Layer Threat Protection
API Key Authentication Unauthorized access to your server Every request requires a shared secret (X-API-Key header). Both the Cloudflare Worker and the PC server independently validate it.
HMAC-Signed Tunnel URLs KV poisoning / man-in-the-middle When the server writes its tunnel URL to Cloudflare KV, it also writes an HMAC-SHA256 signature. The Worker verifies this signature before proxying — a poisoned URL fails verification.
QR Code Pairing Secure key exchange The API key is transferred from PC to phone via QR code scan (physical/local channel). The key never travels through the internet during setup.
Worker Secrets Key leakage API key and HMAC secret are stored as Cloudflare Worker secrets (encrypted, never visible in dashboards or logs).

Pairing Your Phone

  1. Start the server — keys are auto-generated on first run and saved to settings.json
  2. On the desktop app — go to Settings > "Show Pairing QR Code"
  3. On your phone — go to Settings > "Scan QR Code to Pair"
  4. Done. Your phone is now authenticated for all future requests.

What's Protected

  • All /api/* endpoints require a valid API key (except /api/health)
  • The Worker rejects requests without a valid key before they ever reach your PC
  • Tunnel URLs in KV are cryptographically signed — even with Cloudflare account access, an attacker cannot redirect traffic without the HMAC secret
  • The health endpoint no longer leaks the raw tunnel URL

Architecture

auto-game-builder/
  server/              Python/FastAPI backend (runs on your dev machine; Mac recommended)
    api/server.py        REST API (apps, issues, tasks, builds, studio, chat)
    core/                Engine modules (build, deploy, autofix, AI tools)
    config/              Settings, MCP servers, studio knowledge base
    database/            SQLite with WAL mode (thread-safe, auto-migrating)
  app/                 Flutter companion app (Android, iPhone, Windows)
  worker/              Cloudflare Worker proxy (JS)
  tools/               Asset generation + store toolkit, organized by vendor:
    apple/ (App Store Connect capabilities, Game Center, profiles)
    grok/ pixellab/ meshy/ tripo/ chrome/ blender/ media/ extract/
    pixel_guy/ comic_translator/ animation_generator/ dart/

Supported Tech Stacks

Engine Detection Build Targets Scaffold
Flutter pubspec.yaml AAB, APK, IPA, Dual, EXE, Web flutter create
Godot 4.x project.godot APK, AAB, IPA, Dual, Windows, Web, Linux —
Unity 6 ProjectSettings/ProjectVersion.txt AAB, APK, Debug APK — (see Unity Support)
Phaser capacitor.config.ts AAB, APK, Web Custom template
React Native package.json AAB, APK npx react-native init
Python pyproject.toml dist/ —
Custom Manual User-defined —

Quick Start

Server Setup

git clone https://github.com/Lifecharger/auto-game-builder.git
cd auto-game-builder
pip install -r server/requirements.txt
python setup_wizard.py
python server/main.py

On macOS you can start it with ./start_agb.sh instead. To keep it running after logout and reboots, register it as a launchd user agent (~/Library/LaunchAgents/<your-label>.plist running start_agb.sh with KeepAlive), then restart it with launchctl kickstart gui/$(id -u)/<your-label>.

The setup wizard offers two modes:

  1. Agent mode (recommended): Generates a prompt — paste it into Claude/Gemini/Codex and the AI configures everything automatically
  2. Manual mode: Walk through each step interactively

Mobile App

Install from Google Play (the iPhone version is on its way to the App Store) or build from source:

cd app
flutter pub get
flutter build windows --release   # Windows desktop
flutter build apk --release       # Android APK
flutter build appbundle --release  # Android AAB (Google Play)
flutter build ipa --release        # iPhone (on a Mac with Xcode)

No server yet? Open the app and tap Try demo.

Prerequisites

Required

Optional (for full functionality)

  • Flutter SDK — flutter.dev (for building Flutter games)
  • Godot Engine — godotengine.org (for building Godot games)
  • Unity 6 + Android Build Support — unity.com/download (for building Unity games; install via Unity Hub)
  • Node.js — nodejs.org (for Phaser/Capacitor builds, React Native, Mobile MCP, wrangler)
  • Ollama — ollama.com (for local/offline AI via Aider)

For iOS builds (macOS host)

  • Xcode (from the Mac App Store) with command-line tools, and CocoaPods (brew install cocoapods)
  • An Apple Developer Program membership
  • An App Store Connect API key (Users and Access → Integrations → App Store Connect API, role App Manager or Admin). Put its key id, issuer id, team id and the path to the .p8 file under apple in server/config/settings.json — keep the file outside the repo
  • A distribution signing certificate in the login keychain (AGB unlocks the keychain for head-less builds)

Remote Access (phone outside local network)

To access your server from your phone over the internet:

  1. Install cloudflared:

    • Windows: winget install Cloudflare.cloudflared
    • macOS: brew install cloudflared
    • Linux: Cloudflare docs
  2. Install and authenticate wrangler (for Cloudflare KV — stores your tunnel URL):

    npm install -g wrangler
    wrangler login
    

    This opens a browser to authenticate with your Cloudflare account. After login, the setup wizard can auto-configure tunnel settings.

  3. Deploy the worker and set secrets (after first server start generates keys):

    cd worker && npx wrangler deploy
    # Read keys from server/config/settings.json, then:
    echo "YOUR_API_KEY" | npx wrangler secret put API_KEY
    echo "YOUR_HMAC_SECRET" | npx wrangler secret put HMAC_SECRET
    
  4. Pair your phone — see Security > Pairing Your Phone above

MCP Servers (optional, for AI capabilities)

  • PixelLab — AI pixel art generation. Get API key at pixellab.ai/dashboard
  • ElevenLabs — AI audio/music. Get API key at elevenlabs.io. Requires uv (pip install uv)
  • Meshy AI — 3D model generation (text-to-3D, image-to-3D, rigging, animation). Get API key at meshy.ai
  • Mobile MCP — Device testing. Requires Node.js
  • Godot MCP — Cloud-based, requires Claude Max subscription
  • Unity MCP — Drives the running Unity editor (scenes, GameObjects, components, scripts, tests). Requires uv and the MCP for Unity package installed in the project
  • Cloudflare MCP — Cloud-based, requires Claude Max subscription

API Reference

Core Endpoints

Group Endpoints Description
Apps GET/POST/PATCH /api/apps CRUD for game projects, auto-scan for projects
Issues GET/POST/PATCH/DELETE /api/issues Bug tracking with priority, category, status
Tasks GET/POST/PATCH/DELETE /api/apps/{id}/tasks Task management with archiving and statistics
Builds GET /api/builds, POST /api/apps/{id}/deploy Build orchestration, Google Play + App Store upload, retry (build_target: aab, apk, ios, dual, …)
Store status GET /api/apps/{id}/store-status, POST /api/apps/{id}/store-status/refresh, POST /api/store-status/refresh Play tracks + App Store versions and builds per app
Release POST /api/apps/{id}/promote, POST /api/apps/{id}/submit-for-review Play track promotion; Apple attach + submit (with purchases, subscriptions, Game Center)
Users GET/POST/PATCH /api/users, POST /api/users/{id}/rotate-key Multi-user accounts and keys (admin only)
Automations GET/POST/PATCH/DELETE /api/automations Continuous automation loops, start/stop/run-once
Studio POST /api/studio/brainstorm, POST /api/apps/{id}/studio/{action} Game studio — brainstorm + 11 one-tap skill actions (design-review, code-review, balance-check, consistency-check, tech-debt, asset-audit, content-audit, scope-check, perf-profile, art-bible, asset-spec)
Chat POST /api/chat Context-aware AI conversation
MCP POST/DELETE /api/mcp/servers MCP server management, presets, per-app config
GDD GET/PUT /api/apps/{id}/gdd Game Design Document read/write
Enhance POST /api/apps/{id}/enhance AI-powered document improvement
Logs GET /api/logs Build and automation log viewer
Health GET /api/health Server status (no auth required)

Unity Support

Unity 6 Android projects are first-class alongside Flutter, Godot and Phaser: detection,
version bumping, head-less builds, and Google Play upload all work from the phone.

What is different from the other engines: Unity has no CLI export command. Every
build runs a static C# method inside the project, so a Unity project must ship its own
editor build script before Auto Game Builder can build it.

Requirements

  1. Unity 6 with Android Build Support, installed through Unity Hub. The path is
    auto-detected from the Hub folder and stored as engines.unity_path in
    server/config/settings.json — set it manually if you installed Unity elsewhere.

  2. An editor build script at Assets/Editor/BuildPlayer.cs exposing three static
    methods on a BuildPlayer class:

    Method Build target Output
    Aab() aab build/<slug>.aab
    Apk() apk build/<slug>.apk
    DebugApk() debug build/<slug>.apk

    The class may live in any namespace — it is read from the file, not assumed. If the
    script is missing, the build fails with that reason instead of producing nothing.
    Keystore passwords belong in environment variables read by that script, never in the
    project or in this repo.

Adding a Unity project

Unity projects are created in Unity Hub, then imported — there is no scaffolding for
them yet (see the roadmap). Put the project under your projects_root and either:

  • POST /api/apps/scan — registers new folders and refreshes the engine of existing ones, or
  • POST /api/apps/{id}/detect-engine — re-reads one app's engine from disk.

Engine re-detection also runs automatically at server start, so a project ported from
another engine
(for example Godot → Unity) starts reporting the new one on the next
restart without any manual edit.

Versioning

Unity keeps two separate values in ProjectSettings/ProjectSettings.asset:

  • bundleVersion — the display semver (1.0.23)
  • AndroidBundleVersionCode — the integer Google Play orders uploads by (24)

The deploy pipeline bumps both on every aab/apk build, and the version code is always
incremented rather than derived from the patch number, so a minor bump can never repeat a
code Play has already seen. When porting a project from another engine, copy the last
shipped version into these two fields first
— otherwise the first Unity upload starts at
code 1 and Play rejects it.

Building

Unity locks a project folder while the editor has it open, so a head-less build cannot
run while you have that project open in Unity
. The deploy engine checks for
Temp/UnityLockfile and refuses with a readable message rather than a wall of Unity log
output. Builds are serialized with Godot builds (both drive Gradle), write their full
editor log to build/build_log.txt, and are allowed up to 45 minutes — an IL2CPP Android
build compiles the whole scripting runtime and routinely runs past the Godot ceiling.

Configuration

All configuration is stored in gitignored files (never committed):

  • server/config/settings.json — tool paths, server settings, credentials
  • server/config/mcp_servers.json — MCP server configs and API keys

Template files with empty values are committed for reference:

  • server/config/settings.example.json

For AI Agents

If you're an AI agent configuring this project, read AGENT_SETUP_GUIDE.md for complete instructions on JSON formats, tool search strategies, and configuration rules.

Contributing

Contributions are welcome! Whether it's bug fixes, new features, documentation improvements, or translations — all pull requests are thoroughly reviewed. Feel free to open an issue to discuss ideas before submitting.

If you build something you think every user would benefit from, open a pull request — we'd love to see it.

Maintainer: @Lifecharger

Make It Yours

This project is meant to be forked and customized. Change the app name, the theme, the package name, the features — whatever fits your workflow. The setup wizard handles developer identity and package naming so your build is truly yours, not a clone.

Some ideas:

  • Add your own AI prompts and automation scripts
  • Swap the color scheme in app/lib/theme.dart
  • Add new build targets or deploy pipelines
  • Integrate your own MCP servers for specialized tools
  • Add custom studio knowledge files for your genre

Your Creations

Games and apps you build with Auto Game Builder are entirely yours. You own all rights to your creations — sell them, publish them, modify them, do whatever you want. No attribution required, no revenue sharing, no restrictions. Auto Game Builder is just the tool; what you make with it belongs to you.

Roadmap

  • Meshy MCP Integration — 3D model generation via Meshy AI
  • Phaser Engine Support — Full build pipeline for Phaser + Capacitor
  • React Native Support — Detection, build pipeline, and scaffolding
  • Game Studio System — AI-powered brainstorming, design review, and code review
  • AI Chat — Context-aware conversational interface with specialist routing
  • Local AI — Offline AI mode via Aider + Ollama
  • Tools Reorganization — Vendor subfolders (grok, pixellab, meshy, tripo, chrome, blender, media, extract) + merged standalone projects (pixel_guy, comic_translator, animation_generator) + Tripo Studio JWT browser-path refresher
  • Studio Actions Expansion — 8 new one-tap skill buttons (consistency, tech-debt, asset-audit, content-audit, scope, perf, art-bible, asset-spec) distilled from the Claude Code Game Studios framework
  • Unity Support — Detection, head-less build pipeline, version bumping, and Google Play deployment for Unity 6 Android projects (details)
  • iOS / App Store Pipeline — Flutter + Godot IPA builds, dual Android+iOS deploys, TestFlight upload, auto-attach, submit for review with purchases and Game Center
  • Store Status — Play tracks and App Store states on every card, promote and send-to-review from the phone
  • Mac Host — macOS launcher and launchd service
  • Multi-User — admin and member roles with per-user keys
  • Demo Mode — the companion app runs offline on sample data
  • iPhone App on the App Store
  • Unity Project Scaffolding — Create new Unity projects from the app (today they are created in Unity Hub and imported)
  • Genre Selection & Database — Genre-based project templates with curated mechanics, assets, and configurations

License

This project (Auto Game Builder itself) is licensed under the GNU General Public License v3.0 — see LICENSE for details. This license applies to the tool, not to what you create with it.

Reviews (0)

No results found