# Vibedgames **Give your coding agent the abilities of a game studio.** Describe the game. Your agent designs it, makes the art and audio, adds multiplayer, playtests it and ships it to `{slug}.vibedgames.com`. No engine to learn, no servers to rent, no art pipeline to assemble. Vibedgames is three things that do the same jobs: - **The `vg` CLI** for agents with a shell (Claude Code, Codex, Cursor, …). - **The MCP server** at `https://www.vibedgames.com/mcp` for chat apps (ChatGPT, Claude) and any MCP client. Same platform as tools, nothing to install. - **The game-studio skills**: Phaser, Three.js, pixel art, VFX, game feel, level design, multiplayer, playtesting, deploy. Served by both. Everything runs on your machine when the tools are there, and on vibedgames' servers when they aren't. You never have to install Python, Blender, ffmpeg or a browser to use any of it. ## Quick start Paste this into your coding agent: ``` Read https://www.vibedgames.com/install then help me build my game ``` The agent installs the skills and the CLI itself. Then just keep prompting. ## Install the CLI and skills For agents with a shell. In your game's folder: ```sh npx vibedgames init # skills into .agents/skills (+ .claude/skills), vg on PATH vg new my-game # Phaser 4 + Vite + TS (--engine threejs | react-r3f | none) vg login # device code in the browser; or set VG_TOKEN to an API key vg deploy ./dist --slug my-game # live at my-game.vibedgames.com ``` `vg init` targets Claude Code, Codex and Cursor by default; `--agent ` adds others. `vg update` keeps the CLI and skills current (it also runs daily). Full command list and agent conventions: [`apps/cli/README.md`](./apps/cli/README.md). ## Connect the MCP server For chat apps and agents without a shell. Connecting and reading the skills need no account; the first tool that acts for you asks you to sign in (OAuth). **ChatGPT.** Open the [Vibedgames app in ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6b0a884feb348191890b727b308a0789), click **Connect** (or **Install plugin**) and sign in to vibedgames. In a chat, type `@vibedgames` or pick it from **+**. The same listing brings the skills into Codex. **Claude (claude.ai, Claude Desktop, mobile).** The directory listing is on its way; until then add it as a custom connector: 1. Open [Customize → Connectors → Add custom connector](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Vibedgames&connectorUrl=https%3A%2F%2Fwww.vibedgames.com%2Fmcp) (**+ Add** → **Add custom connector**). 2. Name: `Vibedgames`. URL: `https://www.vibedgames.com/mcp`. Click **Continue**, keep the detected sign-in settings, then **Add**. 3. Click **Connect** and approve Vibedgames. In a chat, turn it on under **+** → **Connectors**. On Team and Enterprise plans an Owner adds it under **Organization settings → Connectors**, then each member clicks **Connect**. The Free plan allows one custom connector. **Claude Code.** ```sh claude mcp add --transport http vibedgames https://www.vibedgames.com/mcp ``` Then sign in from `/mcp` when a tool asks. (With a shell, the CLI above does more: scaffolding and local playtests.) **Cursor, VS Code, Windsurf and other clients.** Add a remote (Streamable HTTP) server: ```json { "mcpServers": { "vibedgames": { "url": "https://www.vibedgames.com/mcp" } } } ``` A client that can't do OAuth sends an API key from [Settings](https://www.vibedgames.com/settings) as `Authorization: Bearer vg_…`. Install guide with the same steps: [vibedgames.com/install/mcp](https://www.vibedgames.com/install/mcp). ## What your agent can do | Job | CLI | MCP tools | | ------------------ | ------------------------------------------------------- | -------------------------------------------------------------- | | Learn the craft | `vg skills [name]` | `skills` (also `skill://` resources) | | Scaffold a game | `vg new ` | (shell only) | | Make art and audio | `vg generate image\|video\|3d\|music\|sound\|speech\|…` | `generate_image`, `generate_video`, `generate_3d`, … | | Any other model | `vg generate run ` | (shell only) | | Process assets | `vg asset ` (sheets, GLB optimize, audio master…) | `asset_` (`asset_pack_spritesheet`, `asset_optimize`, …) | | Playtest | `vg playtest`, `vg playtest run`, `vg check ` | `playtest_run`, `check` | | Ship | `vg deploy` | `deploy` | | Manage games | `vg games list\|delete\|browse`, `vg fork` | `games_list`, `games_delete`, `games_browse`, `fork` | | Account | `vg whoami`, `vg credits` | `whoami`, `credits` | | Package elsewhere | `vg distribute itch\|ios\|android\|…` | (shell only) | One name everywhere: an MCP tool is its `vg` command with `_` for spaces, and the API procedure is `.` (`vg games list` → `games_list` → `games.list`). Commands that process files take `--where auto|local|cloud`: `auto` runs locally when the tools are installed and in a vibedgames container otherwise. Games import two npm packages: [`@vibedgames/multiplayer`](./packages/multiplayer) (host-authoritative shared state over WebSockets) and [`@vibedgames/gamepad`](./packages/gamepad) (touch and controller input). Deploys, hosting and multiplayer are free. Generation and cloud runs bill against your credit balance (`vg credits`). ## Docs - [vibedgames.com/docs](https://www.vibedgames.com/docs): CLI, HTTP API, OAuth, MCP, packages. - [vibedgames.com/llms.txt](https://www.vibedgames.com/llms.txt): when an agent should reach for vibedgames. - [`/openapi.json`](https://www.vibedgames.com/openapi.json): every API operation. - [`skills/`](./skills): the skill sources. - [`games/`](./games): example games, all deployed and playable. ## Repo layout ``` apps/ web/ TanStack Start app: site, auth, dashboard, API, /mcp cli/ the vg CLI (npm: vibedgames) games/ Worker serving deployed games at {slug}.vibedgames.com party/ PartyServer: real-time multiplayer backend media/ Worker + Containers running hosted asset, playtest and check jobs factory/ Autonomous agent that builds a game and runs it like a studio openai-plugin/ ChatGPT/Codex plugin manifest (pnpm plugin:openai packs it with skills/) games/ Example games packages/ contract/ oRPC contract shared by the web app, CLI and MCP service/ oRPC implementation + better-auth + credits ledger db/ Drizzle schema + Cloudflare D1 recipes/ ffmpeg / Blender / browser recipes, run by the CLI or the media containers asset-tools/ Image + sprite-sheet logic behind `vg asset` multiplayer/ npm: @vibedgames/multiplayer gamepad/ npm: @vibedgames/gamepad playtest/ npm: @vibedgames/playtest (the contract a playtest drives a game through) embed/ postMessage bridge between an embedded game and its wrapper evals/ Agent evals: real Claude Code and Codex against a mock /mcp and vg smoke/ Helpers the example games' browser smokes share ui/ Shared UI components (Base UI + Tailwind) skills/ The game-studio skills (served by /mcp, vg init and the OpenAI plugin) ``` [AGENTS.md](./AGENTS.md) is the full guide to working on the repo. ## Local development ```sh pnpm install && pnpm bootstrap --yes # .env, local D1 schema, seeded login pnpm dev # http://localhost:5173 ``` Seeded login: `user@vibedgames.com`, with a code from `pnpm sign-in-code`. ```sh pnpm dev:web | dev:party | dev: # one service or one example game pnpm build # build everything pnpm verify # typecheck + lint + format + knip + test (before every commit) pnpm db:push # push schema to local D1 pnpm dogfood # link the local vg CLI + sync skills ``` Platform Workers deploy from Cloudflare Workers Builds on push to `main`. ## Acknowledgements - [@chongdashu](https://x.com/chongdashu) - [@majidmanzarpour](https://x.com/majidmanzarpour) - [@Challacade](https://www.youtube.com/@Challacade) - [@pixeqla](https://www.youtube.com/@pixeqla) ## License [MIT](./LICENSE)