Command-Line Interface

LyDos CLI — Everything from your terminal

Chat, run agents, monitor tasks, and manage the full LyDos platform without leaving your shell.

Live Demo

See it in action

Click the buttons to simulate real CLI commands. No installation needed.

lydos — terminal
LyDos CLI — Click a command to run it
Click to run:
Installation

Install LyDos CLI

Choose your preferred installation method. All methods install the same binary.

install.sh
Bash
# Local install (PyPI package coming soon)
cd web/sdk && pip install -e .
# (Local install — PyPI package coming soon)
 
# Or install all dependencies from source:
git clone https://github.com/lydianai/AILYDIAN-AGENT-ORCHESTRATOR.git
cd AILYDIAN-AGENT-ORCHESTRATOR && pip install -r requirements.txt

After installation, authenticate with lydos auth login and paste your API key. Get your key at your settings page.

Command Reference

All commands

Search and filter the full command list. Use lydos <command> --help for detailed flags.

Command
lydos auth login
lydos auth token
lydos auth logout
lydos health
lydos version
lydos chat <msg>
lydos chat --stream
lydos agents list
lydos agents get <id>
lydos agents run <id>
lydos tasks list
lydos tasks get <id>
lydos tasks watch
lydos tasks cancel <id>
lydos mcp serve
lydos mcp setup
lydos logs
lydos engines list
lydos config set
lydos config show

20 of 20 commands

Shell Completion

Tab completion

Enable shell completion for Tab-key command and flag suggestions.

completion.sh
Bash
# Bash — add to ~/.bashrc
lydos completion bash >> ~/.bashrc && source ~/.bashrc
 
# Zsh — add to ~/.zshrc
lydos completion zsh >> ~/.zshrc && source ~/.zshrc
 
# Fish
lydos completion fish > ~/.config/fish/completions/lydos.fish
 
# PowerShell
lydos completion powershell >> $PROFILE
Automation

Scripting & CI/CD

The CLI is designed for automation. Use --json for machine-readable output and pipe it through jq in your scripts.

JSON output

Add --json to any command for clean, parseable output.

lydos health --json | jq '.score'

Pipe support

Pipe stdin into the chat command for long content.

cat file.py | lydos chat "Review this"

Exit codes

0 on success, 1 on error, 2 on partial failure.

lydos health && echo 'OK'

Example: Automated security scan

scan.sh
Bash
1#!/usr/bin/env bash
2# Example: scan all Python files for security issues
3set -euo pipefail
4 
5echo "Starting security scan..."
6 
7for file in $(find ./src -name "*.py" -type f); do
8 RESULT=$(lydos agents run security-scanner "Scan $file" --json)
9 ISSUES=$(echo "$RESULT" | jq -r '.result.vulnerabilities_found // 0')
10 
11 if [ "$ISSUES" -gt 0 ]; then
12 echo " WARN: $ISSUES issue(s) in $file"
13 echo "$RESULT" | jq -r '.result.issues[]'
14 fi
15done
16 
17echo "Scan complete."
Configuration

Environment variables

Set these in your shell profile to avoid passing flags on every command.

.bashrc
Bash
# Add to ~/.bashrc, ~/.zshrc, or .env
export LYDOS_API_KEY="lyd_sk_your_key_here"
export LYDOS_API_URL="https://lydos.ailydian.com"
export LYDOS_TIMEOUT="60"
export LYDOS_MODEL="llama-3.3-70b-versatile"
 
# Local development (point to self-hosted)
export LYDOS_API_URL="https://lydos.ailydian.com"

Global flags

FlagDescription
--api-keyOverride stored API key
--api-urlOverride API server URL
--timeoutRequest timeout (seconds)
--jsonJSON output mode
--debugEnable debug logging
--modelLLM model to use
Interactive TUI

Full terminal UI

Run lydos with no arguments to open the interactive TUI with chat, agents, and tasks in a unified view.

KeyAction
EnterSend message / Confirm
Ctrl+AFocus agents panel
Ctrl+TFocus tasks panel
Ctrl+LClear chat history
Ctrl+POpen command palette
Tab / Shift+TabCycle focus
Page Up / Page DownScroll panels
EscCancel / Close dialog
qQuit TUI

Ready to automate everything?

Install the CLI, connect your API key, and start running agents from your terminal in under 2 minutes.