AI Agent Installation Guide
Forgexa orchestrates 14 AI coding agent integrations: six standard automatic-routing candidates and eight explicit agents, including MiniMax Code and DeepSeek Harness. Platform and machine readiness are checked independently of this product integration count.
MiniMax Code supports the reviewed 0.7.0 release and retains 0.6.13 compatibility. It is included in the fourteen integrations; local authentication and build/profile acceptance determine whether a particular machine is ready.
Install at least one agent per Runtime machine. Authentication remains local. MiniMax Code uses an independently authenticated managed profile; Harness uses an isolated runtime profile with an operator-approved read-only credential reference. Neither copies personal credentials. See Installation for daemon setup.
Supported Agents at a Glance
| # | Agent | CLI Binary | Min Version | Routing | macOS | Linux | Windows |
|---|---|---|---|---|---|---|---|
| 1 | Claude Code | claude | 2.0.0 | Auto | Native | Native | Native / WSL2 |
| 2 | OpenAI Codex | codex | 0.147.0 | Auto | Native | Native | WSL2 (recommended) |
| 3 | GitHub Copilot CLI | copilot | 1.0.70 | Auto | Native | Native | Native |
| 4 | Gemini CLI | gemini | — | Auto | Native | Native | Native |
| 5 | OpenCode | opencode | v1: >=1.4.0,<2.0.0; v2: >=2.2.5,<2.5.0 | Auto | v1 | Native v1/v2 | v1 (npm) / WSL2 v1 |
| 6 | Kimi Code | kimi | 0.18.0 | Auto | Native | Native | WSL2 |
| 7 | MiMo Code | mimo | 0.1.14 | Explicit | Native | Native | WSL2 |
| 8 | Qwen Code | qwen | 0.24.1 | Explicit | Native | Native | Native (npm) |
| 9 | CodeBuddy Code | codebuddy | 2.156.0 | Explicit | Native | Native | Native (npm) |
| 10 | Qoder CLI | qoder | 1.1.59 | Explicit | Native | Native | WSL2 |
| 11 | TraeCode CLI | traecli | — | Explicit | Native | Native | WSL2 |
| 12 | ZCode | zcode | — | Explicit | Native | Native | WSL2 |
| 13 | DeepSeek Harness | dsh | Exactly 0.2.0-rc.2 | Explicit | Build acceptance | bubblewrap + local acceptance | Not enabled |
| 14 | MiniMax Code | mcode | Reviewed 0.6.13 / 0.7.0 | Explicit | Build/profile acceptance | bubblewrap + local acceptance | Not enabled, including WSL |
Routing modes:
- Auto — the six standard candidates. Forgexa's RouterAgent can select them automatically and include them in fallback chains (e.g. when an agent hits a rate limit).
- Explicit — the last eight. They are excluded from automatic routing and default fallback chains. MiniMax Code and Harness require owned personal Runtimes or Desktop; an explicit policy fallback entry counts as intentional selection.
Why these minimums? Each floor is set only where there is verified evidence that Forgexa's integration depends on a feature introduced by that version — not invented:
| Agent | Floor | Verified Reason |
|---|---|---|
| Claude Code | 2.0.0 | Agent-mode design gate: the stream-json + --resume + permission-skipping stack is specified against Claude Code 2.x |
| Codex | 0.147.0 | Live-verified on 0.147.0; the 0.125.0 npm package ships an empty vendor dir and cannot run |
| Copilot CLI | 1.0.70 | Includes the one-shot auth persistence fixes required by the AgentHost |
| OpenCode | v1 >=1.4.0,<2.0.0; v2 >=2.2.5,<2.5.0 | v2 is native Linux only. OpenCode 2.3/2.4 require a Forgexa build with the expanded version gate; v1 retains --dir |
| Kimi Code | 0.18.0 | Non-interactive auto-approval via bare -p (no --yolo) and the current on-disk auth/session layout both assume 0.18.0+ |
| MiMo Code | 0.1.14 | mimo run --format json protocol and the non-interactive permission flag were introduced in 0.1.14 |
| Qwen Code | 0.24.1 | Verified stream-json event envelope and native --resume support |
| CodeBuddy | 2.156.0 | Verified headless stream-json protocol, native --resume, and setting-source isolation |
| Qoder CLI | 1.1.59 | Verified headless stream-json protocol, native --resume, and setting-source isolation |
| Gemini CLI | — | No hard floor; L1 compatibility level |
| TraeCode CLI | — | No version floor; readiness is gated by the real-account live gate instead |
| ZCode | — | No version floor; readiness is gated by binary fingerprint approval + protocol acceptance instead |
| DeepSeek Harness | Exactly 0.2.0-rc.2 | Matching CLI, headless, base, extension, Node and platform fingerprint acceptance required |
| MiniMax Code | Reviewed 0.6.13 / 0.7.0, not an open-ended minimum | Schema-v1 exec protocol, actual package/Node content and managed-profile policy are checked; upgrades invalidate prior build acceptance |
Prerequisites (All Platforms)
- Node.js ≥ 18 (20 LTS recommended) — required by the npm-based agents (
claude,codex,copilot,gemini,qwen,codebuddy,opencode). Check withnode --version. - Harness requires Node 22.19+ within 22.x, or Node 24+; Node 20 and 23 do not meet its requirement.
- MiniMax Code requires Node 22.19+ within 22.x or 24.2+ within 24.x; Node 25/26 require acceptance for that specific build and platform.
- A package manager where applicable: Homebrew (macOS), the system package manager (Linux), or npm.
- Network access to each agent's authentication endpoint (browser OAuth flows open a local browser).
- The user running the Forgexa daemon must be the same user that completed the agent login.
Desktop /review: read-only project review
Continue uses the linked project's review rules and a frozen Git diff. Unlike Generic Review, it requires a working OS sandbox and does not fall back to a normal Agent turn.
- Linux: Install or upgrade the official Desktop DEB with
sudo apt install ./Forgexa_VERSION_amd64.deb(substitute the downloaded filename). APT installsbubblewrapautomatically; on Ubuntu 24.04 the package also loads a Forgexa-specific AppArmor policy. Quit and reopen Forgexa after upgrading. The package does not change global namespace settings or overwrite administrator policy. If a custom policy still blocks the sandbox, the review does not start. Agent-based project review supports Copilot CLI1.0.101+and Codex0.163.0+. If Copilot's login is stored only in the desktop keyring, use a Copilot-authorizedCOPILOT_GITHUB_TOKENin the environment that launches Desktop rather than exposing the keyring to the sandbox. Never enter the token in a chat. - macOS: Uses
sandbox-exec. OCR Delegation currently requires macOS even when the selected Agent also supports Linux. - Native Windows and managed WSL: Read-only project review is not available. Generic Review is a separate option that uses the normal session permissions.
Windows: Native vs WSL2
Windows users have two viable paths:
- Native (Windows 10+) — for npm-based agents that officially support Windows: Claude Code, GitHub Copilot CLI, Gemini CLI, OpenCode, Qwen Code, CodeBuddy Code. Install Node.js for Windows, then use the same
npm install -gcommands in PowerShell. - WSL2 — for script-based installers that target macOS/Linux (Codex, Kimi Code, MiMo Code, Qoder CLI, TraeCode CLI, ZCode). Install WSL2 with Ubuntu 22.04+, then follow the Linux instructions inside the WSL distro.
For native Windows npm installs, Forgexa uses the Windows launcher (such as copilot.cmd), not the extensionless Unix script next to it. If you set FACTORY_COPILOT_PATH or FACTORY_OPENCODE_PATH manually, point it to the Windows launcher. After installing or updating a CLI, reopen Desktop and select Refresh Agents to check readiness. This check does not verify login.
Same-side principle
The agent must run in the same environment as the Forgexa daemon and the workspace it operates on. If your workspace lives in WSL, the daemon and agents must also run inside that WSL distro — a Windows-side agent cannot see WSL-side workspaces (and vice versa). This matters for Desktop users enabling WSL workspaces: install the agents inside the distro, not on the Windows side.
macOS GUI note
On macOS, an app launched from Dock/Finder does not inherit shell exports. If an agent needs an environment variable, launch the Desktop app once from Terminal, or persist it with launchctl setenv <VAR> "<value>" (re-apply after reboot).
Claude Code (Anthropic)
Anthropic's agentic coding tool that lives in your terminal.
- Website: https://claude.com/product/claude-code
- Docs: https://code.claude.com/docs
- Repository: https://github.com/anthropics/claude-code
macOS / Linux
# Native installer (recommended)
curl -fsSL https://claude.ai/install.sh | bash
# Or via npm
npm install -g @anthropic-ai/claude-codeWindows
# Native installer (PowerShell)
irm https://claude.ai/install.ps1 | iex
# Or via npm (requires Git for Windows for the Bash tool)
npm install -g @anthropic-ai/claude-codeWSL2 is also officially supported — follow the Linux instructions inside the distro.
Authorization
claudeThe first run opens a browser to sign in with a Claude account (Pro/Max subscription) or Anthropic Console account. For server/daemon machines without a browser, generate a long-lived token first:
claude setup-token # creates a CLAUDE_CODE_OAUTH_TOKEN for headless useAlternatively set ANTHROPIC_API_KEY (Console billing) as an environment variable.
Use DeepSeek from Forgexa Desktop
Forgexa starts Claude Code directly, so exports in a terminal session or shell startup file are not available when the desktop app is launched independently. In the OS account running the selected Claude Code (inside the selected distro for WSL), merge these entries into the env object of its user settings:
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.deepseek.com/anthropic",
"ANTHROPIC_AUTH_TOKEN": "<your DeepSeek API key>",
"ANTHROPIC_MODEL": "deepseek-flash"
}
}Use ~/.claude/settings.json (Windows: %USERPROFILE%\.claude\settings.json), or settings.json under CLAUDE_CONFIG_DIR if the desktop runtime is configured to use that directory. Keep the key in local user settings, not in a repository or a support message. For another gateway, use its own Anthropic-compatible endpoint and credential.
An expired Claude OAuth session means Claude Code tried that credential, not that DeepSeek rejected its key. Check that the selected runtime can read the settings above; signing in to Claude is only needed if you intend to use a Claude account. Verify by sending a short message with Claude Code in Forgexa. The local authentication check alone does not test the provider.
Verify
claude --version # Forgexa requires >= 2.0.0OpenAI Codex
OpenAI's open-source coding agent.
- Website: https://developers.openai.com/codex
- Repository: https://github.com/openai/codex
macOS
brew install codex
# or
npm install -g @openai/codexLinux
npm install -g @openai/codexWindows
Official documentation recommends WSL2: install Codex inside the distro using the Linux command above. Check the GitHub releases page for native Windows builds if you prefer a non-WSL setup.
Authorization
codex loginSigns in with a ChatGPT account (Plus, Pro, Team, or Enterprise) via browser OAuth. For API-billing setups instead:
codex login --api-key # or export OPENAI_API_KEYVerify
codex --version # Forgexa requires >= 0.147.0GitHub Copilot CLI
GitHub's official Copilot agent for the terminal, billed through your Copilot subscription.
macOS / Linux / Windows
npm install -g @github/copilotWindows PowerShell works natively — no WSL needed.
Authorization
copilotThe first run starts a GitHub device-code sign-in in the browser. An active Copilot subscription (Pro, Business, Enterprise, or free tier with limits) is required on the account.
Verify
copilot --version # Forgexa requires >= 1.0.70 (auth persistence fixes)Gemini CLI (Google)
Google's open-source AI agent for the terminal, powered by Gemini models.
- Website: https://google-gemini.github.io/gemini-cli
- Repository: https://github.com/google-gemini/gemini-cli
macOS / Linux / Windows
npm install -g @google/gemini-climacOS also: brew install gemini-cli. Windows PowerShell works natively.
Authorization
geminiThe first run prompts a Google account sign-in (browser OAuth). A personal Google account includes a free usage tier. For API-billing setups, export GEMINI_API_KEY from Google AI Studio; Vertex AI is also supported via its own settings.
Verify
gemini --versionOpenCode
Open-source AI coding agent (provider-agnostic — bring your own model provider).
- Website: https://opencode.ai
- Repository: https://github.com/anomalyco/opencode
Current support is stable OpenCode v1
>=1.4.0,<2.0.0and native-Linux v2>=2.2.5,<2.5.0. Forgexa 1.93.0 introduced the original 2.2.x support. For OpenCode 2.3.x or 2.4.x, update Desktop for local chat, or update both the server and the executing Runtime for server-dispatched tasks. macOS, native Windows and WSL retain v1 support. Installing or signing in to the CLI cannot clear a version or platform restriction.
OpenCode v1: retained compatibility
macOS / Linux
npm install -g "opencode-ai@>=1.4.0 <2.0.0"Windows
npm install -g "opencode-ai@>=1.4.0 <2.0.0"Native npm works; WSL2 is a solid alternative if you prefer the script installer.
Authorization
opencode auth loginSelect your provider (Anthropic, OpenAI, Google, etc.) and complete the browser OAuth or paste an API key. OpenCode supports multiple providers in one profile.
Verify
opencode --version # Forgexa requires >=1.4.0 and <2.0.0The server validates the CLI version and current Daemon version instead of trusting an old ready flag. OpenCode v2 requires an executing Runtime at least 1.93.0; missing or stale version proof cannot authorize it. The executing process probes the actual CLI before launch. V1 keeps --dir; v2 uses a private --standalone server and the process cwd/PWD. Refresh inventory after upgrading; existing v1 Runtimes do not need a forced CLI upgrade.
If multiple installations exist, check command -v opencode on macOS/Linux or Get-Command opencode in PowerShell. A successful npm installation does not prove that the command on PATH is the v1 binary. Use FACTORY_OPENCODE_PATH to select an independently retained v1 executable when needed; set it in the actual Daemon/AgentHost environment.
OpenCode v2: native Linux
The official v2 instructions use a separate installer and the @opencode/cli npm package, not opencode-ai@2. For macOS, Linux, or a selected WSL distribution, the following pins the verified research baseline:
curl -fsSL https://opencode.ai/v2/install | bash -s -- --version 2.2.5
opencode --version
opencode run --helpFor OpenCode 2.4.1, substitute --version 2.4.1 only when the executing Forgexa build includes the expanded version gate. If an older build detects 2.4.1 as not ready, update Forgexa and refresh Agents rather than signing in again or downgrading a migrated OpenCode profile.
The script replaces ~/.opencode/bin/opencode and creates an opencode2 compatibility alias to the same v2 binary; it does not preserve v1 under the original command. If the install directory is already on PATH, --no-modify-path can be passed to avoid shell startup-file changes.
For native Windows v2, use the standalone archive from the official instructions; upstream currently does not support Windows package managers. The Bash installer above can be used inside WSL.
Version/help checks do not authenticate, run a model task, or prove Forgexa compatibility. When intentionally starting v2, use opencode auth login or the TUI /connect flow as documented upstream. First startup/authentication can migrate the native profile; back up its data before switching generations, and do not assume that retaining an old binary makes a migrated profile safe to downgrade.
Keep a compatible alternative available during rollout. Do not remove version checks or add v1-only --dir to v2. Upstream standalone installation on another OS does not enable that OS's Forgexa v2 adapter.
Headless model selection
The model selected in a TUI session can differ from opencode run's default. Login and opencode models do not prove that a particular model is currently accessible or has quota. If needed, set the already-authorized model in the actual executing process:
export FACTORY_OPENCODE_MODEL="provider/model"Daemon, Desktop AgentHost, server gateway and inline analysis all honor this override without storing credentials centrally. A GUI or systemd service does not automatically inherit a terminal export. Update the service's own environment when appropriate, then refresh/restart it during a maintenance window. Exhausted quota, retired models and provider refusals are surfaced explicitly; repeatedly retrying or changing CLI flags does not fix them.
Kimi Code (Moonshot)
Moonshot AI's terminal coding agent powered by Kimi models.
- Website: https://code.kimi.com
macOS / Linux
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bashWindows
Use WSL2 — run the Linux installer inside the distro. Check the official site for native Windows availability.
Authorization
kimiThe first run opens a browser to sign in with a Kimi account. API-key configuration (Moonshot OpenAPI) is available in the CLI settings for headless machines.
Verify
kimi --version # Forgexa requires >= 0.18.0MiMo Code (Xiaomi)
Xiaomi's terminal coding agent. In Forgexa this integration is explicit-selection only (excluded from auto-routing and fallback chains).
- Website: https://mimo.xiaomi.com
macOS / Linux
curl -fsSL https://mimo.xiaomi.com/install | bashWindows
Use WSL2 — run the Linux installer inside the distro. Check the official site for native Windows availability.
Authorization
mimoComplete the first-run login flow with a MiMo account in the browser.
Verify
mimo --version # Forgexa requires >= 0.1.14Qwen Code (Alibaba)
Qwen's terminal coding agent, forked from the Gemini CLI architecture.
macOS / Linux / Windows
npm install -g @qwen-code/qwen-codeWindows PowerShell works natively.
Authorization
qwenThe first run offers Qwen OAuth sign-in (free tier via a chat.qwen.ai account). For API-billing, export OpenAI-compatible credentials pointed at Alibaba Cloud Model Studio / DashScope:
export OPENAI_API_KEY="<your-key>"
export OPENAI_BASE_URL="<compatible-endpoint>"Optionally enable the sandbox for safer execution: qwen sandbox --sandbox.
Verify
qwen --version # Forgexa requires >= 0.24.1CodeBuddy Code (Tencent)
Tencent's terminal coding agent. Explicit-selection only in Forgexa.
- Website: https://www.codebuddy.ai
macOS / Linux / Windows
npm install -g @tencent-ai/codebuddy-codeWindows PowerShell works natively.
Authorization
codebuddy loginSigns in with a Tencent Cloud / CodeBuddy account via browser OAuth.
Verify
codebuddy --version # Forgexa requires >= 2.156.0Qoder CLI (Alibaba)
Agentic coding CLI from the Qoder team. Explicit-selection only in Forgexa.
- Website: https://qoder.com
macOS / Linux
curl -fsSL https://qoder.com/install | bashWindows
Use WSL2 — run the Linux installer inside the distro, or check the official site for a native Windows installer.
Authorization
qoderComplete the first-run browser login with a Qoder account.
Verify
qoder --version # Forgexa requires >= 1.1.59TraeCode CLI (Trae)
The Trae terminal coding agent (字节跳动 Trae 团队). Explicit-selection only in Forgexa.
- Website (CN): https://trae.cn
- Website (International): https://trae.ai
macOS / Linux
sh -c "$(curl -fsSL https://trae.cn/trae-cli/install_v2.sh)"International users may use the corresponding installer on https://trae.ai.
Windows
Use WSL2 — run the Linux installer inside the distro, or check the official site for a native Windows installer.
Authorization
traecli loginBrowser OAuth with a Trae account (CN or international, matching the installer source).
Forgexa readiness gate
Forgexa keeps TraeCode CLI not-ready until it passes the real-account live gate — after installing and logging in, confirm the Runtime page shows it ready before assigning tasks to it.
Verify
traecli --versionZCode (Z.ai)
Z.ai's coding agent, integrated by Forgexa over the app-server protocol. Explicit-selection only.
- Website: https://z.ai
- Repository: https://github.com/zai-org/ZCode
macOS / Linux / Windows
Install from the GitHub releases page — pick the archive for your platform. On Windows without a native build, use WSL2.
Authorization
zcode loginBrowser OAuth with a Z.ai account.
Forgexa-specific steps (recommended):
# Approve the installed binary's fingerprint into the persistent allowlist
# (visible to GUI-launched desktop/daemons, no restart needed)
forgexa zcode approve-build
# Alternative: environment variable (only effective for processes that can read it)
export FORGEXA_ZCODE_ALLOWED_SHA256="<approved-zcode-sha256>"
# Optional: give Forgexa a dedicated ZCode profile directory
export FORGEXA_ZCODE_HOME="$HOME/.forgexa/zcode"
HOME="$HOME/.forgexa/zcode" zcode login # one login inside the dedicated profile
# Optional: pin the model if the profile has no persisted default
export FACTORY_ZCODE_MODEL="<providerId/modelId>"Verify
zcode --versionDeepSeek Harness (Developer Preview)
- Website: https://www.deepseek.com/harness/
- Repository: https://github.com/deepseek-ai/deepseek-harness
- Agent ID:
deepseek; binary:dsh. This is not a DeepSeek model for OpenCode or a generic LLM Integration.
deepseek is the canonical ID. The previous deepseek-harness ID remains an input compatibility alias for CLI, workflow, API and Desktop sessions; new selections and responses use deepseek. Existing deepseek-harness home/approval paths, FACTORY_DEEPSEEK_HARNESS_* variables and native handles remain unchanged. Upgrade/restart the server and the runtime or Desktop to load the renamed integration; the server preserves the reported legacy wire ID when dispatching to an older daemon.
Global installation is recommended for PATH-based discovery:
node --version
npm i -g @deepseek-ai/dsh@0.2.0-rc.2
dsh --versionAlternatively use an isolated tools directory, not business-project dependencies:
npm install --prefix "$HOME/.forgexa/tools/deepseek-harness" --save-exact @deepseek-ai/dsh@0.2.0-rc.2
export FACTORY_DEEPSEEK_HARNESS_PATH="$HOME/.forgexa/tools/deepseek-harness/node_modules/.bin/dsh"Discovery never downloads through npx. macOS uses /usr/bin/sandbox-exec; Linux needs working bwrap, including user-namespace permissions. WSL follows the same-distro Linux path and still needs local acceptance, not a native Windows guarantee.
Complete official Harness authentication locally. Forgexa reads DEEPSEEK_API_KEY or an external credential file, defaulting to $DSH_HOME/.credentials.yaml or ~/.dsh/.credentials.yaml. When no key is present, an operator-configured DeepSeek account grant is supported. No failed request silently switches providers. FACTORY_DEEPSEEK_HARNESS_CREDENTIALS selects an absolute credential file path; FACTORY_DEEPSEEK_HARNESS_MODEL selects a supported model ID (default deepseek-flash). The Messages endpoint is fixed to https://api.deepseek.com/anthropic, not an arbitrary OpenAI-compatible endpoint. Renew expired credentials through the official CLI outside a task.
Each canonical workspace owns ~/.forgexa/agents/deepseek-harness/<workspace-hash>, a serialized profile lock and a private run overlay. Personal patches/plugins are not imported. The sole preset is workspace-write + never: escalation is rejected, not automatically approved. Outer supervision denies writes outside the workspace/managed state and to Git metadata, session bindings and the credential file. This is not same-UID secret-read or network isolation; use trusted workspaces or a dedicated OS account/VM for untrusted input.
Session-log upload, plugin inventory upload and OTel extensions are separately disabled. Ordinary model requests still send prompts and selected code to DeepSeek; this is not total network silence.
After live start/resume/cancel/isolation acceptance for the exact build:
forgexa agent approve-live deepseek
forgexa check --agent deepseek --quick
forgexa check --agent deepseekApproval records an operator attestation, not an automatic test. --quick makes no model call; normal check runs a potentially billable minimal task, not the full acceptance checklist. Build, OS/Node and runtime-policy changes invalidate approval. A changed build/provider/model/composition rejects native resume; start a new session. Only a proven missing log before turn start can cause one fresh-session retry.
Harness emits committed JSONL blocks, not token deltas. Success requires session/turn-end/final plus exit 0; cancellation/timeout wins over native exit 0. The supervisor enforces a 4 MiB output budget. Image, native fork, read-only review and parallel flags remain disabled. Shared pools and automatic routing are not enabled.
MiniMax Code
MiniMax Code is an independent minimax Agent running mcode exec, not the Xiaomi MiMo Agent or a MiniMax model configured in another Agent. It is explicit-only for Desktop primary sessions and owned personal Runtimes. Automatic routing, shared pools, Windows/WSL, images, parallel sessions, read-only review and sensitive AWS/observability evidence are not enabled.
Install and Initialize
Use the reviewed official @minimax-ai/code@0.7.0 release; 0.6.13 remains compatible, but other releases require protocol review rather than an unbounded latest upgrade. A working native SQLite binding is required. Prefer Node 22.19+ within 22.x or 24.2+ within 24.x; Node 25/26 require independent acceptance. Existing installations are not modified. FACTORY_MINIMAX_PATH may select the installed launcher; the official ~/.minimax-code/bin directory is discovered automatically. The 0.7.0 --ptc option is not enabled by Forgexa's standard invocation.
mcode --version
forgexa agent minimax-initInitialization creates a private, persistent ~/.forgexa/agents/minimax/<local-owner-hash>/ with data, config, home and bindings directories. It does not copy ~/.minimax, keys, login state, plugins or skills. Authenticate/configure a dedicated low-quota provider using the MINIMAX_DATA_DIR=... mcode login command printed by initialization; Global accounts additionally use --region global. Enter secrets directly into your terminal or approved secret store, never prompts or task arguments. Native authentication refresh remains the CLI's responsibility.
Review policy.json: set the real provider ID, cn/global/custom region, explicitly permitted model overrides and audited HTTPS service origins. allowed_endpoints is an audit inventory, not an egress firewall. config/runtime.json is the explicit Runtime configuration; use the official configuration schema for the accepted provider/model. The native data/config.yaml, known Provider/Plugin/Skill/MCP/hook configuration and managed config are fingerprinted automatically. List any additional native settings in config_files, relative to the profile root. Keep managed files private (0600) and directories private (0700), without symlinks. No unrelated environment secrets or NODE_OPTIONS are inherited.
Server-side direct Gateway/inline execution additionally requires an actual authenticated User model in context.user and the matching forgexa_owner_id in this policy. Missing context, JSON identity claims and other users are rejected before the runner; older callers without that trusted context must use an owned personal Runtime instead. Changing this owner binding invalidates acceptance.
Real Acceptance and Approval
CLI installation, personal TUI login and Forgexa host readiness are separate checks. Use a disposable workspace, dedicated credentials and verified outer isolation to collect real start, exact-session resume, cancellation, timeout, permission, filesystem, network, telemetry, extension and descendant-process evidence. smart is not a sandbox; telemetry opt-out variables alone are not proof that the published package stops uploads. macOS/Linux execution uses sandbox-exec/bwrap, but their presence does not prove network or child-process confinement. Complete those tests before approving that machine/profile.
Collect initial evidence with the official CLI directly in the same managed data directory and audited outer environment. A machine without matching acceptance stays installed_but_not_ready; this is not a product preview label and does not change the integration count. forgexa check cannot bootstrap approval or replace those checks.
forgexa agent minimax-statusThe status command makes no model call and returns the current build/profile fingerprint and required evidence checks. Prepare a secret-free JSON attestation with that exact fingerprint and SHA-256 digests of the actual evidence:
{
"version": 1,
"fingerprint": "<fingerprint-from-minimax-status>",
"checks": {
"start": "<sha256>",
"resume": "<sha256>",
"cancel": "<sha256>",
"timeout": "<sha256>",
"permissions": "<sha256>",
"filesystem": "<sha256>",
"network": "<sha256>",
"telemetry": "<sha256>",
"extensions": "<sha256>",
"descendants": "<sha256>"
}
}Placeholders are intentionally invalid. Never manufacture passing evidence or approve simply to run a smoke test.
forgexa agent approve-live minimax --evidence /path/to/acceptance.json
forgexa check --agent minimax --quick
forgexa check --agent minimax --timeout 30Approval records operator attestation, not an automatic audit. Agent-only approval is refused. --quick is non-billable; normal check discloses profile, Provider, timeout and step budget and runs a potentially billable disposable task. Do not use provider test in discovery.
Sessions, Upgrades and Recovery
Success requires a valid, ordered schema-v1 event stream, matching native identities, one authoritative exec.completed.result, exit 0 and completed cleanup. The upstream no-frame sequence regression also remains in 0.7.0 and is rejected, not sorted away. Process text, reasoning and tool previews are not final business output. Missing usage/cost is unknown rather than free.
One writer owns a profile across all execution paths. Resume binds the native ID to the canonical workspace, build, policy and model; failures never replay a write task automatically. Upgrades, changed Node/OS, native settings, plugins or policy invalidate approval. FACTORY_MINIMAX_MODEL must be an explicitly accepted provider/model[#variant] override. Do not run mcode update during a task.
After an interrupted run, an active.json or recovery-required.json marker blocks reuse. Confirm that every owned process has stopped before an operator archives stale recovery markers; do not delete native databases or other sessions to force recovery. Never clear markers while ownership is uncertain. This integration does not promise same-UID credential secrecy or automatic network isolation. Linux and other platform/credential combinations require their own real acceptance.
Verify Your Installation
Run through the agents you installed — each command must exit 0 and print a version:
claude --version
codex --version
copilot --version
gemini --version
opencode --version
kimi --version
mimo --version
qwen --version
codebuddy --version
qoder --version
traecli --version
zcode --version
dsh --version
mcode --versionThen restart the Forgexa daemon (or the Desktop app) so it re-discovers agents, and check Runtimes in the web console: each installed agent should appear under the runtime's agent list. See Installation → Start the Daemon for daemon startup and Runtimes & Agents API for programmatic checks.
Troubleshooting
| Symptom | Likely Cause | Fix |
|---|---|---|
| Agent not listed on the Runtime page | Installed after daemon start | Restart the daemon so it re-scans PATH |
command not found from daemon tasks | Agent installed under a different user / non-login shell | Install with the same user that runs the daemon; ensure the binary is on that user's PATH |
macOS tasks fail to see export vars | GUI-launched app doesn't inherit shell env | Use launchctl setenv (see tip above) or launch from Terminal |
Auth errors mid-execution (401) | Token expired / login done under another user | Re-run the agent's login command as the daemon user on the runtime machine |
| TraeCode CLI stays not-ready | Real-account live gate not passed | Complete login, then re-check the Runtime page |
| ZCode rejected on start | Binary fingerprint not approved | Run forgexa zcode approve-build |
| Harness installed but not ready | Unknown build/platform or acceptance pending | Use exactly 0.2.0-rc.2 and attest the verified build; native Windows stays blocked |
| Harness native resume rejected | Changed composition or unowned session | Start a new session; do not delete logs or reuse personal sessions |
| Windows agent can't see WSL workspace | Same-side principle violated | Install the agent inside the WSL distro (see above) |