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:
- Reads Origin's live install catalog, which currently holds only the unified
originMCP (https://mcp.origingame.ai/mcp). - Detects Claude Code (
claude), Codex (codex) and Grok (grok) on your PATH and asks which to configure. - Writes
origininto 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). - Removes older entries such as
origin-assetsandorigin-generatethat 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).
| Option | Effect |
|---|---|
--agents claude,codex,grok | Configure only the listed agents (comma-separated), or all for every detected agent; without it the script detects them and asks you to confirm |
--keep-legacy | Keep the old per-domain MCP entries |
--project | Install the catalog's Skills into the current project; credentials and MCP configuration stay in your user profile |
--aigcc | Install only what AIGCC needs; when the catalog holds only MCP, this installs the unified origin MCP with no local upload helper |
--help | Show usage |
To pass options through the pipe, add -s -- after sh:
curl -fsSL https://origingame.ai/install.sh | sh -s -- --agents claude,codex
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 tokengit 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.
Environment variables
The Skill repository's scripts read these environment variables:
| Variable | Meaning | When unset |
|---|---|---|
OG_API_KEY | Your account API token (og-...), created under Access | Commands that need a credential stop with an error |
OG_HOST | The Origin website's origin, used for publishing (/api/deploy); set it to https://origingame.ai for production | http://localhost:8787 |
OG_AI_GATEWAY | The 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/v1directly withOG_API_KEY. - Origin MCP: use the platform tools in your agent.