Skip to main content

orchagent-cli

CLI for the Orchagent API, built on the orchagent Python SDK.

Dev Install

# 1) Install SDK first (from the sibling repo)
cd /home/admin/Downloads/git/orchagent-python
python -m venv .venv && source .venv/bin/activate
pip install -U pip wheel
pip install -e .

# 2) Install CLI
cd /home/admin/Downloads/git/orchagent-cli
pip install -e .

# 3) Use
orch --help

Examples

# Configure base URL via env (or pass --base-url to each command)
export ORCHAGENT_BASE_URL=http://localhost:8080

# Auth
orch auth register --email you@example.com --password pass123
orch auth login --email you@example.com --password pass123

# Create thread from a workflow JSON
THREAD=$(orch threads create --spec ../Orchagent/example_workflows/composio_calendar_hil_chat.json -q)
echo "Thread: $THREAD"

# Send a message and stream events
RUN=$(orch runs send $THREAD --prompt "Hi" --secrets-file secrets.json -q)
orch runs stream $RUN

# Interactive chat
orch chat start --spec ../Orchagent/example_workflows/composio_calendar_hil_chat.json

Install

Recommended (isolated):

pipx install orchagent-cli
orch --help

Or with pip (in a venv):

python -m venv .venv && source .venv/bin/activate
pip install orchagent-cli
orch --help

Secrets and Inputs Files

  • --secrets-file secrets.json: Pass provider credentials and other secrets at run-time. The CLI wraps this under body.secrets automatically.
  • --inputs-file inputs.json: Pass non-secret inputs (e.g., user_id, event payloads).

Secrets precedence on the server: run > thread > workflow > environment.

Common secrets.json examples:

  • OpenAI:
{"providers": {"openai": {"api_key": "sk-..."}}}
  • OpenAI-compatible (custom base_url):
{"providers": {"openai": {"api_key": "sk-...", "base_url": "https://compatible.example/api"}}}
  • Anthropic:
{"providers": {"anthropic": {"api_key": "sk-ant-..."}}}
  • Gemini (Google GenAI):
{"providers": {"google_genai": {"api_key": "AIza..."}}}
  • Ollama (local):
{"providers": {"ollama": {"base_url": "http://localhost:11434"}}}
  • Tavily key:
{"TAVILY_API_KEY": "tvly-...", "providers": {"openai": {"api_key": "sk-..."}}}

Security: do not commit secrets.json; consider chmod 600 secrets.json.

Generate a provider template to a file:

orch templates secrets openai -o secrets.json
# overwrite if exists
orch templates secrets openai -o secrets.json --force

Inspect API capabilities and deprecations:

orch meta

Commands Summary

  • orch auth register --email ... --password ...
  • orch auth login --email ... --password ...
  • orch auth whoami | logout
  • orch threads create --spec path.json [-q]
  • orch threads secrets <thread_id> --secrets-file file.json
  • orch threads history <thread_id> [--limit 20]
  • orch runs send <thread_id> --prompt "..." [--inputs-file file.json] [--secrets-file file.json] [-q]
  • orch runs stream <run_id>
  • orch runs resume <run_id>
  • orch approvals approve <run_id> --tool NAME [--args-keys k1,k2]
  • orch approvals clear [--all] [--user EMAIL]
  • orch chat start [--spec path.json | --thread-id th_x]

Metadata

Release files for orchagent-cli 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orchagent-cli 0.1.5
File Size Uploaded
orchagent_cli-0.1.5.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orchagent-cli 0.1.5
File Interpreter ABI Platform
orchagent_cli-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / orchagent_cli-0.1.5.tar.gz

Download URL orchagent_cli-0.1.5.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e90e0fcf74154840b69e8e8650dd0dc6873fa4a760e9de6c872c6df5e878df44
BLAKE2b-256 checksum
How to use checksums
c68bc5ecc5c8dd72f6114ab51086246cf6030a2d6e81c1b8b7e2874ff6d71fb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release files / orchagent_cli-0.1.5-py3-none-any.whl

Download URL orchagent_cli-0.1.5-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8eebcc41643712ef451484f711d83744687c4b378599f89bcfa1590bfaf13f7
BLAKE2b-256 checksum
How to use checksums
aff704cc2e33fbf9be30f01a8544eca62668d92470710e35385d5e4848a13328
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page