Hosted package transport uses scoped Continual API keys so creators and CI can authenticate to MDL without reusing a browser session.
| Mode | Used for |
|---|---|
| Account auth | Interactive MDL platform access in the browser. |
| Automation auth | CLI and CI access to hosted package endpoints through a bearer API key. |
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>continual_pro.mdl.hosted.diff for authenticated inventory comparisonmdl.hosted.sync for authenticated upload and finalize operationsCreators manage hosted package keys from each hosted game workspace under /platform/games/<slug>/api-keys. The surface supports:
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.
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