Skip to main content

Debug your AI agents like you debug your code

Project description

🐑 Shepherd CLI

Debug your AI agents like you debug your code.

Installation

pip install shepherd-cli

For enhanced shell experience (tab completion, history):

pip install shepherd-cli[shell]

Quick Start

1. Configure your API key

shepherd config init

Or set the environment variable:

export AIOBS_API_KEY=aiobs_sk_xxxx

2. List sessions

shepherd sessions list

3. Get session details

shepherd sessions get <session-id>

4. Interactive shell

shepherd shell

Commands

Config

shepherd config init          # Interactive setup
shepherd config show          # Show current config
shepherd config set <key> <value>
shepherd config get <key>

Sessions

shepherd sessions list          # List all sessions
shepherd sessions list -n 10    # Limit to 10 sessions
shepherd sessions list -o json  # Output as JSON
shepherd sessions list --ids    # List only session IDs (for scripting)

shepherd sessions get <id>      # Get session details with trace tree
shepherd sessions get <id> -o json  # Output as JSON

# Search and filter sessions
shepherd sessions search "query"              # Search by name, ID, labels, or metadata
shepherd sessions search --label env=prod     # Filter by label
shepherd sessions search --provider openai    # Filter by provider
shepherd sessions search --model gpt-4        # Filter by model
shepherd sessions search --function my_func   # Filter by function name
shepherd sessions search --after 2025-12-01   # Sessions after date
shepherd sessions search --before 2025-12-07  # Sessions before date
shepherd sessions search --has-errors         # Only sessions with errors
shepherd sessions search --evals-failed       # Only sessions with failed evaluations

# Compare two sessions
shepherd sessions diff <id1> <id2>            # Compare sessions side-by-side
shepherd sessions diff <id1> <id2> -o json    # Output diff as JSON

# Combine filters
shepherd sessions search --provider anthropic --label user=alice --after 2025-12-01
shepherd sessions search "agent" --model claude-3 --evals-failed -n 5

Shell

shepherd shell                  # Start interactive shell

Inside the shell:

shepherd > sessions list
shepherd > sessions get <id>
shepherd > sessions search --provider openai
shepherd > sessions diff <id1> <id2>
shepherd > config show
shepherd > help
shepherd > exit

Features:

  • Tab completion
  • Command history (persisted)
  • Auto-suggestions
  • /command or command syntax

Configuration

Config file location: ~/.shepherd/config.toml

[default]
provider = "aiobs"

[providers.aiobs]
api_key = "aiobs_sk_xxxx"
endpoint = "https://shepherd-api-48963996968.us-central1.run.app"

[cli]
output_format = "table"
color = true

Development

Setup

git clone https://github.com/neuralis/shepherd-cli
cd shepherd-cli
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"

Running Tests

pytest

Project Structure

shepherd-cli/
├── src/shepherd/
│   ├── cli/           # CLI commands (typer)
│   ├── models/        # Pydantic models
│   ├── providers/     # API clients
│   └── config.py      # Configuration management
├── tests/             # Test suite
└── pyproject.toml

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shepherd_cli-0.0.2.tar.gz (70.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shepherd_cli-0.0.2-py3-none-any.whl (43.9 kB view details)

Uploaded Python 3

File details

Details for the file shepherd_cli-0.0.2.tar.gz.

File metadata

  • Download URL: shepherd_cli-0.0.2.tar.gz
  • Upload date:
  • Size: 70.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shepherd_cli-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ec77bdd79e250140186a475087db0110d888e2f9d2a452f7b08131b6b7a1963a
MD5 6d34380ec7a303153f1f12c7d42c15c1
BLAKE2b-256 c10e916590c04a84957067e659ef593ee0639104ae35ed17902ee84f6b675234

See more details on using hashes here.

Provenance

The following attestation bundles were made for shepherd_cli-0.0.2.tar.gz:

Publisher: release.yml on neuralis-in/shepherd-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shepherd_cli-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: shepherd_cli-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 43.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shepherd_cli-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c751d901567e72159c219678da5ff67878804b7b235d6635ed6f92421a734096
MD5 707ef0ef8306e3d51a5b82a71a140115
BLAKE2b-256 fc2fe4a6d4e5b34b3544e0d4bc281e7645edb5bf4795b8a7951ffb6a3d5541ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for shepherd_cli-0.0.2-py3-none-any.whl:

Publisher: release.yml on neuralis-in/shepherd-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page