Forge CLI & API Reference
On this page
This reference lists the verified CLI commands, exit codes, and public REST endpoints for Ariax Forge. For workflow guidance and quickstart steps, start with Ariax Forge Overview and Forge Workspace & Controls.
Pass --json on any CLI command for structured machine-readable output on stdout (progress messages go to stderr). Run ariax help forge or ariax help COMMAND for complete option flags.
1 Forge Session and Tool Commands#
| Activity | Command (ariax forge ...) |
|---|---|
| Filter catalog by task or modality | ariax forge catalog --task TASK --modality MOD --json |
| List all Forge packages | ariax forge catalog --all --json |
| Inspect tool + bundled guide | ariax forge catalog --tool TOOL --with-guide --json |
| Create a Forge session | ariax forge create --name NAME --gpu GPU --tools T1,T2 --max-gpu-hours H --wait |
| Resume a stopped project | ariax forge resume PROJECT --gpu GPU --tools T1,T2 --wait |
| List Forge sessions | ariax forge list --active --json |
| Inspect project & controls | ariax forge project PROJECT --json |
| Compact handoff summary | ariax forge summary PROJECT --json |
| Check status & tool readiness | ariax forge status SESSION, ariax forge tools SESSION |
| Wait for a tool to prepare | ariax forge tools wait SESSION TOOL --wait-timeout 1800 |
| Add tools (when permitted) | ariax forge tools add SESSION --tools TOOL |
| Stage local file input | ariax forge inputs add SESSION --file ./target.cif --path targets/target.cif --wait-ready |
| Stage remote URL input | ariax forge inputs add SESSION --url https://... --path targets/target.cif --wait-ready |
| Inspect staged inputs | ariax forge inputs list SESSION, ariax forge inputs status SESSION INPUT_ID |
| Run a native tool command | ariax forge run SESSION --tool TOOL --gpus 0 --wait-ready --wait -- <argv...> |
| Inspect or watch commands | ariax forge commands SESSION, ariax forge command SESSION CMD_ID, ariax forge watch SESSION CMD_ID |
| Read command logs | ariax forge logs SESSION CMD_ID --tail 1000 --no-json |
| Cancel a running command | ariax forge cancel SESSION CMD_ID --wait |
Archive bulk /scratch outputs |
ariax forge pack SESSION --src /scratch/run1 --dest /workspace/archives/run1.tar.zst --wait |
| Sync & browse Project Files | ariax forge sync SESSION --wait, ariax forge files PROJECT --path /workspace |
| Download or link saved file | ariax forge download PROJECT /workspace/results/top.cif --dest ./downloads |
| Delete, hydrate, or recover files | ariax forge files delete|hydrate|recover PROJECT --path /workspace/... |
| Edit or clear GPU-hour cap | ariax forge limit SESSION --gpu-hours 6, ariax forge limit SESSION --clear |
| Drain, flush & release GPU | ariax forge finish SESSION --wait |
| Emergency immediate teardown | ariax forge close SESSION --wait (add --force only to interrupt) |
| Inspect activity timeline | ariax forge activity PROJECT --json |
| Reconcile uncertain operations | ariax forge operations, ariax forge recover OPERATION_ID --wait |
2 Top-Level CLI Commands Used with Forge#
Project lifecycle controls, discovery, skills, pricing, and storage audits live at the top level of ariax (not under ariax forge):
| Activity | Top-level command |
|---|---|
| Unified workflow + Forge discovery | ariax discover --query "<goal>" --execution forge --json |
| Check live CLI/Agent GPU rates | ariax pricing --json |
| Read or install bundled skills | ariax skills --read --json, ariax skills install --target claude|codex|cursor|antigravity |
| Pause project & set human hold | ariax pause PROJECT |
| Permanently abort project | ariax abort PROJECT |
| Permanently delete project & files | ariax delete PROJECT --yes --wait |
| Inspect storage usage & cleanup | ariax storage usage PROJECT, ariax storage suggest PROJECT |
| Delete selected saved paths | ariax storage delete PROJECT --path /workspace/old --recursive --dry-run |
3 Exit Codes & Error Semantics#
When running with --wait, ariax forge run separates remote scientific command failures from API or transport errors:
0: CLI and remote command succeeded. Exit0alone does not verify scientific validity; inspect output structures, tables, and scores.11: Remote command exited non-zero inside the Forge container (error.detailsincludesexit_codeand a boundedoutput_tail).10: Server, control-plane, or transport error.- Common recoverable error codes:
core_gpu_required: Add a compatible core GPU (H100,A100_80GB,L40S, orRTX6000PRO) to--allowed-gpus.container_image_fixed: The active session locked its tool set at start; finish and resume with all needed tools in--tools.gpu_busy: Requested GPU index is reserved by another active command in the session.control_revision_conflict/limit_revision_conflict: Refresh project or session state before retrying a control or cap update.
4 Public Forge REST Endpoints#
The public catalog endpoints require no authentication. Project, session, and file endpoints authenticate with your Ariax bearer token or API key (Authorization: Bearer <key>):
| Method & Path | Purpose |
|---|---|
GET /api/v1/forge/catalog |
List public Forge tools (view=summary|full, task, modality, tier, q, include_all=true). Unauthenticated. |
GET /api/v1/forge/catalog/{tool} |
Inspect full public detail, checkpoints, modes, terms, and qualification rows for one tool. Unauthenticated. |
POST /api/v1/forge/sessions |
Create a new Forge project and session (idempotent via session_id). |
GET /api/v1/forge/projects/{project_id} |
Read Forge project status, control revision, human hold state, and session history. |
POST /api/v1/forge/projects/{project_id}/sessions |
Resume a stopped Forge project with a new session ID and expected control_revision. |
GET /api/v1/forge/projects/{project_id}/activity |
Paginated command and control event timeline. |
GET /api/v1/forge/projects/{project_id}/files |
List saved /workspace or /inputs entries and sync state. |
POST /api/v1/forge/projects/{project_id}/files/presign |
Issue a short-lived download URL for a saved project file. |
POST /api/v1/forge/sessions/{session_id}/limit |
Update or clear the active session's GPU-hour cap. |
POST /api/v1/forge/sessions/{session_id}/finish |
Start or observe the session's bounded drain, final flush, and GPU release. |
POST /api/v1/projects/{project_id}/pause |
Stop active compute after a final save and apply a human hold. |