# Building with Open Game Protocol

OGP is a protocol that lets you add token rewards to any game and reach millions of players - without going through an app store or losing 30% of your revenue. Players can earn real tokens by playing your game, and you earn as they play. Integration takes minutes, and you keep 100% of what you make.

***

### The Problem

As a game dev today, your options suck:

* Submit to app stores → lose 30% on every transaction
* Pay for your own marketing → no guarantee of players
* Hard to reach real users without burning budget
* Platform takes the upside - not you

### What OGP Gives You

OGP flips the model:

* **Free distribution** to millions of users
* **0% protocol cut** - you keep everything you earn
* **Plug-and-play API** to integrate token rewards in a short time
* **Community-powered launches** - players stake to support games
* **Earn gamecoins (Tokens)** tied to real tokens (ex. $GGIGA for $GIGA)

### Why It Works

* Players are already here, earning tokens by playing
* Games are ranked and surfaced by player votes
* Gamecoins = onchain rewards tied to actual ecosystems
* Devs earn based on how much people play
* No corp gatekeeping, no 30% cartel rejections, no BS

### What You Can Do

* Submit any game - even small AI-built ones or MVPs
* Instantly tap into communities like $GIGA, $FARTCOIN, and more
* Earn by building. Grow by default. Own your upside.

### Get Started

**1. Build your game**

**2. Integrate OGP (Quick API)**

**3. Submit to launch**

**4. Earn daily while your game gets played - at scale**

***

### Quick AI Game Integration

Building a game with AI? Here's the fastest path to OGP integration:

**Step 1: Build your JavaScript game**

Use any AI tool (Claude, ChatGPT, Cursor, etc.) to build your HTML/JavaScript game.

**Step 2: Prompt the AI to integrate OGP**

Once your game is working, add the [OpenGameSDK Implementation Guide](https://docs.opengameprotocol.com/integrations/ai-integration-guide) to your project and give your AI assistant this prompt:

> Read the [OpenGameSDK Implementation Guide](https://docs.opengameprotocol.com/integrations/ai-integration-guide) and integrate the Open Game SDK into my game. Save points when \[describe when points should be saved - e.g., "the player dies", "a level is completed", "the game ends"].

The agent should:

* Add the SDK script and API key meta tag
* Initialize the SDK with the points widget
* Call `addPoints()` during gameplay
* Call `savePoints()` at the right moment

That's it! The SDK handles authentication automatically when saving points.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.opengameprotocol.com/introduction/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
