Vortex

Headless CLI

Run the same workspace from the terminal with vortex run and vortex review, including detached jobs, CI gates, and review rules from AGENTS.md.

The desktop app is one front end for the same workspace. The vortex command line runs the same loop (understand, plan, implement, verify) from a terminal, so the work can happen in a script, a CI job, or an SSH session.

A first run

vortex run --prompt "…" --workspace . --model openai/gpt-4o-mini

--workspace sets the directory the agent works in. --model names the model to use. Without it, OpenRouter runs use openai/gpt-4o-mini and OpenAI runs use gpt-4o-mini; every other provider needs a model. VORTEX_RUN_MODEL changes that default.

On Windows, the installer adds vortex to your user PATH. Open a new terminal after installing so it picks up the change.

Run flags

FlagEffect
--prompt "…"The job to run
--prompt-file <path>Read the job from a file instead
--workspace <path>Directory the agent edits and runs commands in
--model <id>Model for this run
--provider <id>Built-in provider, or any OpenAI-compatible provider you have saved
--base-url <url>OpenAI-compatible root, when that provider is not already saved
--api-key <key>Provider key for this run
--job-dir <path>Where job state and traces are written
--verboseMore detail in the terminal output
--detachStart the job and return immediately
--listList known jobs and their status
--automation-id <id>Load that automation's prompt, workspace, and model

API keys

Provide a key in one of these ways:

  1. --api-key on the command line.
  2. VORTEX_RUN_API_KEY for vortex run.
  3. VORTEX_REVIEW_API_KEY for vortex review.
  4. The provider's own environment variable, such as GEMINI_API_KEY or DASHSCOPE_API_KEY.
  5. ~/.vortex/provider-keys.json, the same file Settings writes, when none of the above is set.

OPENROUTER_API_KEY is also read when you route through OpenRouter. Do not commit keys to the repo. An environment variable or --api-key wins over the file.

Detached jobs

--detach starts the run and returns control to your shell. Status and traces are written under:

~/.vortex/detached/<id>/

You can close the terminal and collect the result later. List the jobs you have started with:

vortex run --list

A detached job only survives a closed laptop if it was started over SSH and kept alive on the remote with nohup. A job on a sleeping local machine stops when the machine sleeps.

Run health

vortex stats --since 7d

vortex stats is a read-only summary of local runs. It prints counts and durations, never prompts or code:

--since accepts 7d or 12h and defaults to 30d. --format json prints the same report as JSON.

Reviewing a branch

vortex review diffs HEAD against a base branch and reviews the change with read-only agents on a cloud model. They read the code around each group of changed files, findings outside the diff are dropped, and a second agent tries to disprove each one that is left. It returns the findings with the tokens and cost they took:

vortex review --json --base main --fail-on error
FlagEffect
--base <branch>Branch to diff against (default origin/HEAD, else main)
--model <id>Cloud model
--provider <id>Built-in provider, or any OpenAI-compatible provider you have saved
--base-url <url>OpenAI-compatible root, when that provider is not already saved
--max-tokens <n>Cap on the response of a one-shot review
--format text or --format jsonOutput format; --json is short for the second
--fail-on never, warning, or errorLowest severity that fails the command (default error)
--verboseThe review agents' step log, on stderr
--pr <n>, --repo <owner/repo>The pull request being reviewed
--postPublish the review to that pull request
--include-unconfirmedAlso post findings the second agent could not confirm

Repo rules as review rubric

vortex review reads the Code Review Rules section of your AGENTS.md and treats it as extra rubric on top of the default. A repository can therefore enforce its own rules without changing the CLI: ban unwrap() on library paths, require Result-returning helpers, or flag a new Tauri command that is not registered.

CI examples

A pull-request gate that fails the build on any error-severity finding:

vortex review --json --base main --fail-on error

A nightly job that runs detached and leaves its traces behind:

vortex run --detach --prompt "Update the lockfile and run the test suite" --workspace .

Exit codes matter for CI. --fail-on sets the threshold, but you can also read the JSON output and apply your own gate: fail only on findings that touch files you own, or post the JSON as a review comment. Combine both rather than relying on a single threshold.

Beta surface

The CLI is a beta surface and changes between builds. Check the flags with the built-in help before you wire it into a pipeline, and pin a version in CI if the job must be stable.