Installation
shannon CLI command. Verify with:
Connection
Local (self-hosted)
Shannon Cloud
Register at https://shannon.run to get an API key, then:Environment Variables
Set these to avoid passing flags on every call:| Variable | Default | Description |
|---|---|---|
SHANNON_BASE_URL | http://localhost:8080 | Gateway URL |
SHANNON_API_KEY | (none) | API key auth (sent as X-API-Key header) |
SHANNON_BEARER_TOKEN | (none) | Bearer token auth (alternative to API key) |
Global Options
These go before the command name:Tasks
submit - Submit a task
| Argument | Required | Description |
|---|---|---|
QUERY | Yes | The task query string |
| Flag | Type | Description |
|---|---|---|
--wait | flag | Block until task completes, print result |
--session-id | string | Attach task to a session |
--mode | simple | standard | complex | supervisor | Execution mode hint |
--model-tier | small | medium | large | Model tier selection |
--model-override | string | Specific model (e.g. gpt-5-nano-2025-08-07) |
--provider-override | string | Force provider: openai, anthropic, google, groq, xai, deepseek, qwen, zai, ollama, mistral, cohere |
--force-research | flag | Force ResearchWorkflow with citations |
--research-strategy | quick | standard | deep | academic | Research strategy preset |
--max-iterations | int (1-50) | Override max research iterations |
--max-concurrent-agents | int (1-20) | Override max concurrent agents |
--enable-verification | flag | Enable claim verification |
--disable-verification | flag | Disable claim verification |
--enable-citations | flag | Enable citation collection |
--disable-citations | flag | Disable citation collection |
--swarm | flag | Force swarm multi-agent workflow |
--idempotency-key | string | Deduplicate submissions |
--traceparent | string | W3C traceparent for distributed tracing |
status - Get task status
cancel - Cancel a task
pause - Pause a task
Pauses at the next workflow checkpoint (not immediate).resume - Resume a paused task
control-state - Get pause/cancel state
Streaming
stream - Stream task events via SSE
| Flag | Type | Description |
|---|---|---|
--types | string | Comma-separated event types to filter |
--traceparent | string | W3C traceparent for distributed tracing |
WORKFLOW_STARTED, WORKFLOW_COMPLETED, LLM_PROMPT, LLM_PARTIAL, LLM_OUTPUT, TOOL_INVOKED, TOOL_OBSERVATION, APPROVAL_REQUESTED, APPROVAL_DECISION, ERROR_OCCURRED
Examples:
HITL Review (Human-in-the-Loop)
review-get - Get review state
review-feedback - Submit feedback
--version flag enables optimistic concurrency control.
Example:
review-approve - Approve review plan
approve - Approve/reject pending approval request
--approve is the default. Use --reject to reject.
Examples:
Sessions
session-list - List sessions
| Flag | Default | Description |
|---|---|---|
--limit | 50 | Max sessions to return |
--offset | 0 | Pagination offset |
session-get - Get session details
session-title - Update session title
session-delete - Delete a session
Schedules
schedule-create - Create a recurring task
| Argument | Required | Description |
|---|---|---|
NAME | Yes | Schedule name |
CRON | Yes | Cron expression |
QUERY | Yes | Task query to execute each run |
| Flag | Default | Description |
|---|---|---|
--description | (none) | Schedule description |
--timezone | UTC | Timezone for cron evaluation |
--force-research | off | Enable research mode |
--research-strategy | (none) | quick | standard | deep | academic |
--budget | (none) | Max budget per run in USD |
--timeout | (none) | Timeout per run in seconds |
schedule-list - List schedules
schedule-get - Get schedule details
schedule-update - Update a schedule
| Flag | Description |
|---|---|
--name | New name |
--description | New description |
--cron | New cron expression |
--timezone | New timezone |
--query | New task query |
--budget | New max budget per run (USD) |
--timeout | New timeout per run (seconds) |
--clear-context | Clear task context |
schedule-pause - Pause a schedule
schedule-resume - Resume a schedule
schedule-delete - Delete a schedule
schedule-runs - View execution history
| Flag | Default | Description |
|---|---|---|
--page | 1 | Page number |
--page-size | 10 | Items per page |
Skills
skills-list - List available skills
skill-get - Get skill details
skill-versions - List skill versions
Common Workflows
Submit and stream results
HITL review loop
Schedule with monitoring
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (task failure, API error, invalid arguments) |