Skip to main content

Headless Mode

Headless mode sends a single message to the Svantic mesh, streams the response to stdout, and exits. No interactive UI is rendered. This mode is designed for shell scripts, CI/CD pipelines, and programmatic invocation.

Running a Headless Command

Pass --headless with a message:
The terminal authenticates, initializes a session, sends the message via A2A streaming, and prints the response text to stdout. Diagnostics go to stderr.

Exit Codes

Check the exit code in scripts:

Output Streams

Response text goes to stdout, diagnostics go to stderr:

Verbose Mode

Add --verbose to see tool calls, results, and thinking on stderr:
Verbose output on stderr:
Response text on stdout:

Shell Script Example

CI/CD Integration

GitHub Actions

GitLab CI

Combining with Flags

Override the model or Svantic URL per invocation:

Authentication Errors

If credentials are missing or invalid, the terminal exits with code 1:
Ensure SVANTIC_CLIENT_ID and SVANTIC_CLIENT_SECRET are set. See Environment and Config for details.