> ## 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.

# Platform

> The limits an OpenGame deploy has to fit, what your account has left, and the oldest CLI version the server accepts, read by the CLI before each deploy.

What the server allows right now: the limits a deploy has to fit, what your account has left, and the oldest CLI the server accepts. The CLI fetches these before each deploy, so a changed limit needs no CLI release.

[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.

## Read limits, account usage and CLI package metadata

`GET https://opengame.io/api/v1/bootstrap`

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

Requires a creator token or browser session. The CLI reads this once per command. A server without this route answers 404, and the CLI then reads `GET /api/v1/limits` instead.

### Request

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

```bash CLI theme={"system"}
opengame limits --json
```

### Response 200

Limits, usage for this account and the CLI package `opengame upgrade` installs, or null when none is set.

```json theme={"system"}
{
  "apiVersion": "1",
  "minimumCliVersion": "0.2.0",
  "packagingContract": "1",
  "bundle": {
    "archiveBytesMax": 4294967295,
    "uncompressedBytesMax": 5368709120,
    "fileBytesMax": 1073741824,
    "fileCountMax": 25000,
    "compressionRatioMax": 200,
    "entryPoint": "index.html",
    "pathBytesMax": 768
  },
  "platform": {
    "apiVersion": "1",
    "minimumCliVersion": "0.2.0",
    "packagingContract": "1",
    "deploy": {
      "buildTimeoutMs": 600000,
      "preflightTimeoutMs": 120000,
      "preflightMemoryMb": 1024,
      "uploadTimeoutMs": 600000,
      "uploadAttemptsMax": 3,
      "releasesKept": 10,
      "failedRetentionSeconds": 86400
    },
    "incrementalUpload": {
      "bodyBytesMax": 4194304,
      "archiveBytesMax": 209715200,
      "assetPlanBodyBytesMax": 8388608,
      "batchFilesMax": 32,
      "chunkBytesMax": 1048576
    },
    "largeAssets": {
      "storedBytesMax": 1073741824,
      "fileBytesMax": 536870912,
      "decodedBytesMax": 2147483648,
      "fileCountMax": 512
    },
    "largeGameAssets": {
      "storedBytesMax": 12884901888,
      "fileBytesMax": 1073741824,
      "decodedBytesMax": 17179869184,
      "fileCountMax": 32768,
      "combinedFileCountMax": 40960
    },
    "kaigenAssets": {
      "storedBytesMax": 4294967296,
      "fileBytesMax": 268435456,
      "decodedBytesMax": 6442450944,
      "fileCountMax": 16384,
      "combinedFileCountMax": 16384
    },
    "manifest": {
      "bytesMax": 65536,
      "boardCountMax": 25,
      "boardKeyCharsMax": 48,
      "boardLabelCharsMax": 60,
      "pathCharsMax": 512,
      "buildCommandCharsMax": 1000
    }
  },
  "usage": {
    "deploysPerHour": {
      "used": 2,
      "max": 30,
      "remaining": 28,
      "resetsAt": "2026-10-21T15:29:47Z"
    },
    "deploysPerDay": {
      "used": 2,
      "max": 5,
      "remaining": 3,
      "resetsAt": "2026-10-22T14:29:47Z"
    },
    "heldBytes": {
      "used": 121089,
      "max": 120259084288,
      "remaining": 120258963199
    },
    "submissionsPerDay": {
      "used": 1,
      "max": 5,
      "remaining": 4,
      "resetsAt": "2026-10-22T00:00:00Z"
    },
    "playtestsPerDay": {
      "used": 1,
      "max": 10,
      "remaining": 9,
      "resetsAt": "2026-10-22T14:41:05Z"
    },
    "activeEntries": {
      "used": 1,
      "max": 2,
      "remaining": 1,
      "jamSlug": "global-ai-game-jam-2026",
      "jamName": "Game Jam #1"
    }
  },
  "package": null,
  "capabilities": {
    "incrementalUpload": true,
    "archiveParts": true,
    "fileParts": true,
    "filePacks": true,
    "externalAssets": [
      "large-game-v1"
    ]
  }
}
```

### 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. |

## Read current limits and the minimum CLI version

`GET https://opengame.io/api/v1/limits`

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

The same body as bootstrap without `package` and `capabilities`. A CLI reads it only when the server has no bootstrap route. A CLI older than `minimumCliVersion` exits with code 6.

### Request

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

### Response 200

The bundle limits, the platform limits a deploy is held to, and this account's usage.

```json theme={"system"}
{
  "apiVersion": "1",
  "minimumCliVersion": "0.2.0",
  "packagingContract": "1",
  "bundle": {
    "archiveBytesMax": 4294967295,
    "uncompressedBytesMax": 5368709120,
    "fileBytesMax": 1073741824,
    "fileCountMax": 25000,
    "compressionRatioMax": 200,
    "entryPoint": "index.html",
    "pathBytesMax": 768
  },
  "platform": {
    "apiVersion": "1",
    "minimumCliVersion": "0.2.0",
    "packagingContract": "1",
    "deploy": {
      "buildTimeoutMs": 600000,
      "preflightTimeoutMs": 120000,
      "preflightMemoryMb": 1024,
      "uploadTimeoutMs": 600000,
      "uploadAttemptsMax": 3,
      "releasesKept": 10,
      "failedRetentionSeconds": 86400
    },
    "incrementalUpload": {
      "bodyBytesMax": 4194304,
      "archiveBytesMax": 209715200,
      "assetPlanBodyBytesMax": 8388608,
      "batchFilesMax": 32,
      "chunkBytesMax": 1048576
    },
    "largeAssets": {
      "storedBytesMax": 1073741824,
      "fileBytesMax": 536870912,
      "decodedBytesMax": 2147483648,
      "fileCountMax": 512
    },
    "largeGameAssets": {
      "storedBytesMax": 12884901888,
      "fileBytesMax": 1073741824,
      "decodedBytesMax": 17179869184,
      "fileCountMax": 32768,
      "combinedFileCountMax": 40960
    },
    "kaigenAssets": {
      "storedBytesMax": 4294967296,
      "fileBytesMax": 268435456,
      "decodedBytesMax": 6442450944,
      "fileCountMax": 16384,
      "combinedFileCountMax": 16384
    },
    "manifest": {
      "bytesMax": 65536,
      "boardCountMax": 25,
      "boardKeyCharsMax": 48,
      "boardLabelCharsMax": 60,
      "pathCharsMax": 512,
      "buildCommandCharsMax": 1000
    }
  },
  "usage": {
    "deploysPerHour": {
      "used": 2,
      "max": 30,
      "remaining": 28,
      "resetsAt": "2026-10-21T15:29:47Z"
    },
    "deploysPerDay": {
      "used": 2,
      "max": 5,
      "remaining": 3,
      "resetsAt": "2026-10-22T14:29:47Z"
    },
    "heldBytes": {
      "used": 121089,
      "max": 120259084288,
      "remaining": 120258963199
    },
    "submissionsPerDay": {
      "used": 1,
      "max": 5,
      "remaining": 4,
      "resetsAt": "2026-10-22T00:00:00Z"
    },
    "playtestsPerDay": {
      "used": 1,
      "max": 10,
      "remaining": 9,
      "resetsAt": "2026-10-22T14:41:05Z"
    },
    "activeEntries": {
      "used": 1,
      "max": 2,
      "remaining": 1,
      "jamSlug": "global-ai-game-jam-2026",
      "jamName": "Game Jam #1"
    }
  }
}
```

### 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. |

## Read the minimum CLI version

`GET https://opengame.io/api/v1/cli`

**Authentication:** Optional: a creator token.

The CLI calls this when it has no token. Anybody gets the API version and the oldest CLI the server accepts. `package` is set only for a request with an `ogt_` token whose account may use the creator API, and only when the server has a CLI package set. Otherwise it is null, and a rejected token gets null instead of an error. `opengame upgrade` installs only an official npm release, and stops with `upgrade_untrusted` for anything else. In JSON or agent mode it installs nothing and returns the npm command to run.

### Request

```bash cURL theme={"system"}
curl --request GET \
  --url 'https://opengame.io/api/v1/cli'
```

### Response 200

The versions, and the package when the caller may see it.

```json theme={"system"}
{
  "apiVersion": "1",
  "minimumCliVersion": "0.2.0",
  "package": null
}
```

### Errors

| Status | Meaning |
| - | - |
| 404 | `not_found`: this server does not serve the creator API. |
| 500 | `internal_error`: a failure retrying cannot fix. Quote `requestId` when you report it. |
| 503 | `temporarily_unavailable`: a token was sent and could not be checked, or the platform access could not be read. Retry, or call without a token. |


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