Docs · Connect

Command line

Configure Origin MCP from a terminal and publish games from scripts and CI with the deploy script.

One-line Origin MCP installer

In a macOS, Linux or WSL terminal, run:

curl -fsSL https://origingame.ai/install.sh | sh

The script:

  1. Reads Origin's live install catalog, which currently holds only the unified origin MCP (https://mcp.origingame.ai/mcp).
  2. Detects Claude Code (claude), Codex (codex) and Grok (grok) on your PATH and asks which to configure.
  3. Writes origin into each chosen agent's user-level configuration. Agents with browser sign-in (Claude Code, Codex) get the address only and open the browser sign-in themselves on first use; the other agents share one revocable credential from a browser device sign-in, stored in ~/.origingame/connector-credential (mode 0600).
  4. Removes older entries such as origin-assets and origin-generate that an earlier version wrote (only entries whose address is exactly one Origin published) and reports the entries it kept.

It installs no Origin binary, runtime or background process. Re-run the same command to update; revoke the device sign-in under "Signed-in devices" on the Access page. The script needs curl, unzip and sha256sum (or shasum).

OptionEffect
--agents claude,codex,grokConfigure only the listed agents (comma-separated), or all for every detected agent; without it the script detects them and asks you to confirm
--keep-legacyKeep the old per-domain MCP entries
--projectInstall the catalog's Skills into the current project; credentials and MCP configuration stay in your user profile
--aigccInstall only what AIGCC needs; when the catalog holds only MCP, this installs the unified origin MCP with no local upload helper
--helpShow usage

To pass options through the pipe, add -s -- after sh:

curl -fsSL https://origingame.ai/install.sh | sh -s -- --agents claude,codex
Note: the script supports only the default configuration folders; it stops when a custom CLAUDE_CONFIG_DIR or CODEX_HOME is set.

There is no PowerShell installer for Windows: add the address directly as described in Origin MCP, or use Origin Kit.

Origin Runner

The standalone Origin Runner command-line program is no longer published: 0.1.4 is its last version and receives no further updates. Running Origin's Sessions on your own computer is part of Origin Desktop; see Run on your own computer.

Skill repository and deploy script

Scripts and CI that don't use MCP can publish with the deploy script in the Skill repository. It reads your account API token from the environment:

Get an API token
git clone https://github.com/fran0220/origingame-skill
export OG_API_KEY=og-...
export OG_HOST=https://origingame.ai
origingame-skill/scripts/deploy.sh ./dist --title "Neon Dodge" --cover cover.png

./dist is the built game folder and --cover the landscape cover. Every option, including updating an existing game, engine, genre and visibility, is listed in the comment at the top of the script. Publishing requirements, releases and rollback are in Publish a game.

Note: an agent already set up with Origin MCP by the installer or Origin Kit should publish through MCP, not with a separate API token.

Environment variables

The Skill repository's scripts read these environment variables:

VariableMeaningWhen unset
OG_API_KEYYour account API token (og-...), created under AccessCommands that need a credential stop with an error
OG_HOSTThe Origin website's origin, used for publishing (/api/deploy); set it to https://origingame.ai for productionhttp://localhost:8787
OG_AI_GATEWAYThe Origin public API host, without /v1: model endpoints are at $OG_AI_GATEWAY/v1/...https://api.origingame.ai

Never commit OG_API_KEY to a repository or put it in game code. In CI, inject it through your platform's secrets.

Next steps

  • Publish a game: publishing requirements, updates, releases and rollback.
  • Model API: call https://api.origingame.ai/v1 directly with OG_API_KEY.
  • Origin MCP: use the platform tools in your agent.