Skip to Content
๐Ÿš€ OpenGame Playable Ads SAAS โ€” AI-generated playable ads from $9/creative
User GuideOverview

OpenGame overview

Learn about OpenGame, an open-source agentic framework that lives in your terminal and turns natural-language game-design prompts into fully playable web games.

Get started in 30 seconds

Prerequisites:

  • An OpenAI-compatible API key (or a local deployment of GameCoder-27B)
  • Node.js 20+ย . You can run node -v to check the version.

Install OpenGame (from source)

git clone https://github.com/leigest519/OpenGame.git cd OpenGame npm install npm run build npm link

This exposes the opengame command on your PATH.

Start using OpenGame

mkdir my-game && cd my-game opengame

Then describe the game you want, for example:

Build a 2D platformer where a cat collects yarn balls while avoiding dogs.

OpenGame will scaffold the project, write the code, run the game in a sandbox, and iteratively debug it until it is playable. When done, open the generated index.html (or run the printed dev-server command) in your browser to play.

Continue with Quickstart (5 mins) โ†’

Tip

See troubleshooting if you hit issues.

What OpenGame does for you

  • Prompt โ†’ playable game: describe a game in plain language; OpenGame plans the architecture, picks an appropriate template (canvas, Phaser, three.js, etc.), writes the code, and tests it.
  • Game Skill: a reusable agent capability composed of Template Skill (stable scaffolding) and Debug Skill (systematic resolution of integration and runtime errors), so the agent ships working games rather than plausible-looking code.
  • Iterate naturally: ask OpenGame to add a power-up, change the art style, tune difficulty, or fix a bug โ€” it edits files, re-runs the game, and verifies the change.
  • Headless / scriptable: run opengame -p "..." for CI, batch generation, and benchmark runs.

Why developers love OpenGame

  • Works in your terminal: meets you where you already work, with the tools you already use.
  • Takes action: OpenGame can directly edit files, run commands, install dependencies, and launch the game in a sandboxed browser to verify it actually works.
  • Open and composable: framework, GameCoder-27B model, training data, and OpenGame-Bench evaluation pipeline are all open-source. You can swap in your own model via the OpenAI-compatible API.

Inherited from upstream

OpenGame is built on top of qwen-codeย  (which itself is based on Google Gemini CLIย ). Many features documented in this guide โ€” Plan Mode, SubAgents, MCP, the Skills system, IDE integrations, the TypeScript SDK โ€” come from that lineage and continue to work in OpenGame.