> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opengame.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent guide endpoint

> The full OpenGame creator guide for coding agents, returned as Markdown to a signed-in creator's agent, with the skills it installs.

The full creator guide for coding agents, as Markdown. A signed-in creator's agent reads the current procedure from here instead of from a copy that can go stale.

[Authentication](https://docs.opengame.io/api-reference/authentication.md) covers each credential, and [errors](https://docs.opengame.io/api-reference/errors.md) covers the JSON error body.

The guide installs every skill with `opengame setup`, for every project, and the CLI keeps them current. They also install into one project with one command run in the game's folder.

```bash theme={"system"}
npx skills add opengamehq/opengame
```

Or [download the skills](https://opengame.io/downloads/opengame-skills.zip) as one zip and copy the folders into your agent's skills folder.

## Read the agent guide

`GET https://opengame.io/api/v1/docs/for-agents`

**Authentication:** A creator token or a signed-in browser session.

Requires a creator token or browser session, with the same identity rules as bootstrap. Game-pinned and deploy-only tokens can read it. The answer is the For agents page of these docs, as Markdown.

### Request

```bash cURL theme={"system"}
curl --request GET \
  --url 'https://opengame.io/api/v1/docs/for-agents' \
  --header "Authorization: Bearer $OPENGAME_TOKEN"
```

### Response 200

The agent guide, as `text/markdown; charset=utf-8`. Never shared-cache this response.

#### Headers

**Cache-Control** `string`

Always `private, no-store`.

**Vary** `string`

Always `Authorization, Cookie`.

````markdown theme={"system"}
# For agents

Before every `opengame deploy` or `opengame publish`, stop and ask the creator: show them the game and its title, for a jam entry the track and models you suggest, and wait for a clear yes. A deploy can use one of their jam entries, and an update to a live game publishes by itself. Then deploy to a private preview, give them its link, and publish after review only if they asked. Read each command's result before the next one.

## Install

```bash
npm i -g @opengamehq/cli
opengame setup
```

Once `opengame` is installed, confirm it and read the command reference:

```bash
opengame version --json
opengame help --json
```

`help --json` lists every command, flag, exit code, environment variable and event, with the finding schema.

…
````

### Errors

| Status | Meaning |
| - | - |
| 401 | `sign_in_required`, `token_invalid` or `token_revoked`. Sign in again, or use a token that has not been revoked. |
| 403 | `not_member`: this account does not have access to the creator API. `account_inactive`: the account is suspended or deleted. `account_banned`: OpenGame's moderators have banned the account, so it can read and roll back to a version that was live, but cannot ship anything new, and `retry` is `never`. `not_launched`: the creator API is closed to this caller. It is open to each signed-in account, so sign in and try again. |
| 404 | `not_found`: this server does not serve the creator API. |
| 429 | `rate_limited`: this token made too many requests. Wait `retryAfterSeconds`. A browser session is not counted. |
| 500 | `internal_error`: a failure retrying cannot fix. Quote `requestId` when you report it. |
| 503 | `temporarily_unavailable`: OpenGame could not finish the request, and the cause is on our side. Wait `retryAfterSeconds` when the body gives it, then send the same request again, with the same `Idempotency-Key` if it had one. A token or access check that could not finish includes no wait. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.