simplex CLI is installed alongside the Python SDK and provides full access to the Simplex API from your terminal. All commands support --help for detailed usage information.
Auth
simplex login
Authenticate with Simplex. Opens a browser-based OAuth flow by default.
| Flag | Description |
|---|---|
--api-key KEY | Skip the browser flow and authenticate with an API key directly |
~/.simplex/credentials.
simplex whoami
Display current authentication identity, including a masked API key and its source.
simplex logout
Remove saved credentials from ~/.simplex/credentials.
Core
simplex run
Run a workflow and optionally wait for completion.
| Argument / Flag | Description |
|---|---|
WORKFLOW_ID | The workflow to run (required) |
--vars JSON | Variables as a JSON string or path to a .json file |
--metadata, -m STR | Metadata string to attach to the session |
--webhook-url URL | Webhook URL for session completion notification |
--watch, -w | Poll every 2s with a spinner until completion, then display outputs |
--watch is used, the CLI polls the session every 2 seconds and displays a spinner. On completion, it prints the session outputs, structured output, and file metadata.
simplex editor
Create a new workflow and start an interactive editor session.
| Flag | Description |
|---|---|
--name, -n NAME | Name for the new workflow (required) |
--url, -u URL | Starting URL for the workflow (required) |
--vars JSON | Initial variables as a JSON string or path to a .json file |
--json | Output machine-readable JSON |
workflow_id, session_id, vnc_url, logs_url, message_url.
simplex connect
Stream live SSE events from a running session in the terminal.
| Argument / Flag | Description |
|---|---|
WORKFLOW_ID | A workflow ID or a full logs_url |
--json | Output raw JSON events (useful for piping to other tools) |
AskUserQuestion event, the CLI prompts you for input interactively.
simplex send
Send a message to a running session’s browser agent.
| Argument | Description |
|---|---|
WORKFLOW_ID | The workflow whose active session should receive the message |
MESSAGE | The message text to send |
Session Control
simplex pause
Pause a running session. Looks up the active session from the workflow ID.
simplex resume
Resume a paused session.
simplex interrupt
Interrupt a running editor session’s agent mid-execution.
Workflow Management
simplex workflows list
List and search workflows. Displays a table with ID (truncated), Name, and Metadata.
| Flag | Description |
|---|---|
--name, -n STR | Filter by workflow name (partial match) |
--metadata, -m STR | Filter by metadata string |
simplex workflows vars
Show the variable schema for a workflow. Displays a table with Name, Type, Required, Default, and Allowed Values. Also prints an example simplex run command with required variables pre-filled.
| Flag | Description |
|---|---|
--json | Output raw JSON schema |
simplex workflows set-vars
Set the variable schema for a workflow. Fields can be specified inline or via a JSON file.
| Flag | Description |
|---|---|
--field, -f SPEC | Field specification (repeatable). See format below |
--file PATH | Path to a JSON file containing the variable schema |
--clear | Remove all existing variables before setting new ones |
--json | Output result as JSON |
| Format | Meaning |
|---|---|
name:type | Optional field |
name!:type | Required field |
name:enum:val1,val2 | Enum field with allowed values |
name!:type:description | Required field with description |
simplex workflows outputs
Show the structured output schema for a workflow. Displays Name, Type, and Description.
| Flag | Description |
|---|---|
--json | Output raw JSON schema |
simplex workflows set-outputs
Set the structured output schema for a workflow.
| Flag | Description |
|---|---|
--field, -f SPEC | Field specification (repeatable). See format below |
--file PATH | Path to a JSON file containing the output schema |
--clear | Remove all existing output fields before setting new ones |
--json | Output result as JSON |
| Format | Meaning |
|---|---|
name:type | Output field |
name:type:description | Output field with description |
name:enum:val1,val2 | Enum output field with allowed values |
simplex workflows update
Update a workflow’s metadata.
| Flag | Description |
|---|---|
--metadata, -m STR | New metadata string (required) |
Session Inspection
simplex sessions status
Get the status of a session. Shows whether the session is in progress, succeeded, is paused, and displays the final message, outputs, structured output, and file metadata.
| Flag | Description |
|---|---|
--watch, -w | Poll until the session completes |
simplex sessions events
Poll events for a workflow’s active session. Shows agent text, tool calls, and errors.
| Flag | Description |
|---|---|
--since, -s INT | Event index to start from (use next_index from previous call) |
--limit, -l INT | Maximum number of events to return |
--json | Output raw JSON events |
simplex sessions logs
Retrieve completed session logs as JSON. Returns an error if the session is still running.
simplex sessions download
Download files from a completed session. Downloads all files as a zip archive by default, or a specific file with --filename.
| Flag | Description |
|---|---|
--filename, -f STR | Download a specific file by name instead of the zip archive |
--output, -o PATH | Output path (defaults to current directory) |
simplex sessions replay
Download the session replay video as an MP4 file.
| Flag | Description |
|---|---|
--output, -o PATH | Output path for the MP4 file (defaults to current directory) |
