Skip to content

Install

Requirements

ItemRequirement
Node.js≥ 18 (published artifacts run on Node; the monorepo may use Bun for development)
OSmacOS / Linux / Windows (WSL recommended)
NetworkReach your model API endpoint
Optionalsandbox-exec (macOS) or bwrap (Linux) for --sandbox

Install methods

bash
npm install -g @forgeax/cli

Verify:

bash
which forgeax
forgeax --version
forgeax --help

Package name ≠ command name: install @forgeax/cli; the command is forgeax. Do not use npm i -g forgeax as the product entry.

Temporary via npx

bash
npx @forgeax/cli --demo -p "hi"
npx @forgeax/cli -p "List TypeScript entrypoints in this directory"

From source / public mirror

bash
git clone --recurse-submodules https://github.com/ForgeaX-Games/forgeax-cli.git
cd forgeax-cli
# Follow the repo README to install deps and build dist, then:
# npm link   # or npm pack && npm i -g ./forgeax-cli-*.tgz

Public org: ForgeaX-Games.

Credentials

Configure at least one credential set matching your protocol family:

bash
# Anthropic Messages family (default)
export ANTHROPIC_API_KEY=...
export ANTHROPIC_BASE_URL=...          # optional

# Or OpenAI-compatible family
export FORGEAX_PROVIDER_API=openai-compat
export OPENAI_API_KEY=...
export OPENAI_BASE_URL=...

Model override:

bash
export FORGEAX_MODEL=claude-opus-4-8   # or your deployment name
# Equivalent: forgeax --model <id>

Or write user settings (see Configuration):

json
{
  "model": "claude-opus-4-8"
}

Path: ~/.forgeax/settings.json.

Acceptance checklist

On a clean machine:

bash
# 1) Binary & help
forgeax -v
forgeax -h

# 2) Offline smoke (no API key)
forgeax --demo -p "hi"

# 3) Real turn (needs a key)
forgeax -p "In one sentence, what is in the current working directory?"

If step 2 fails, see Troubleshooting.

Upgrade & uninstall

bash
npm update -g @forgeax/cli
npm uninstall -g @forgeax/cli

Relation to ForgeaX Studio

CLIStudio
Entryforgeax in a terminalBrowser / desktop app
KernelThis package is the runtimeCan attach the same kernel via --serve sidecar
DocsThis site /docs/cli/Studio docs

In Studio’s registry the internal kernel id may still show as forgeax-core — that is a KernelId, independent of the npm name @forgeax/cli, and does not change how you install or run the CLI.

Apache-2.0 · Open source