Continual MI
MDL
Endless VN Engine
GamesMGPT APIEarningsMonitoringDocs
Learn
  • Introduction
  • Quick Start
  • MDL CLI
  • How It Works
Build
  • Workspace
  • Agentic Workflow
  • Instructions
  • Schema
  • Assets
Ship
  • Publishing
  • Monitoring
  • Earnings & Payouts
Reference
  • Package Model
  • API Keys & Auth
  • CLI Reference
  • Platform Reference
Docs/API Keys & Auth

API Keys & Auth

Hosted package transport uses scoped Continual API keys so creators and CI can authenticate to MDL without reusing a browser session.

Two auth modes

ModeUsed for
Account authInteractive MDL platform access in the browser.
Automation authCLI and CI access to hosted package endpoints through a bearer API key.

Current Hosted Auth

The hosted package routes reuse shared Continual API keys stored in core.api_keys. The CLI sends them as bearer tokens.

Authorization: Bearer <continual-api-key>

Required server-side checks

  • The key must exist, be active, and not be expired.
  • The key must include the required hosted package scope.
  • The key must resolve to a real owner account.
  • The owner must have continual_pro.
  • The owner must be allowed to push the target hosted game.

Public scopes

  • mdl.hosted.diff for authenticated inventory comparison
  • mdl.hosted.sync for authenticated upload and finalize operations

Creator key lifecycle

Creators manage hosted package keys from each hosted game workspace under /platform/games/<slug>/api-keys. The surface supports:

Install CLICLI reference
  • Create a key with a label, scopes, and optional expiry date.
  • One-time secret reveal at creation — the plaintext is not stored or shown again.
  • Inspect label, scopes, created-at, last-used, and expiry at any time.
  • Revoke a key without affecting the rest of the account.
Host-scoped CLI auth now ships

Use mdl auth login for repeated local CLI use, or pass --api-key and --base-url directly when you want explicit one-off control. The default CLI host is https://mdl.continualmi.com. CI should still prefer environment variables instead of stored local config.

CI guidance

Non-interactive workflows should use environment variables and injected secrets, not checked-in config files. Keep CI credentials scoped narrowly and rotate them when access changes.

export MDL_BASE_URL="https://mdl.continualmi.com"
export MDL_API_KEY="your-creator-key"

mdl whoami
mdl push --package . --game my-game

Next

Build
MDL CLI
Use scoped API keys in the canonical local package workflow.
Reference
CLI reference
See which commands require auth and which mutate hosted state.
Build
Hosting
Understand how auth fits into dev-container pushes and release separation.