🐑 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
/commandorcommandsyntax
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
Metadata
Release files for shepherd-cli 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| shepherd_cli-0.0.2.tar.gz | 70.4 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shepherd_cli-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 114.3 kB
Release files / shepherd_cli-0.0.2.tar.gz
| Download URL | shepherd_cli-0.0.2.tar.gz |
|---|---|
| Size | 70.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec77bdd79e250140186a475087db0110d888e2f9d2a452f7b08131b6b7a1963a
|
|
BLAKE2b-256 checksum How to use checksums |
c10e916590c04a84957067e659ef593ee0639104ae35ed17902ee84f6b675234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 12, 2025.
Transparency logRelease files / shepherd_cli-0.0.2-py3-none-any.whl
| Download URL | shepherd_cli-0.0.2-py3-none-any.whl |
|---|---|
| Size | 43.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c751d901567e72159c219678da5ff67878804b7b235d6635ed6f92421a734096
|
|
BLAKE2b-256 checksum How to use checksums |
fc2fe4a6d4e5b34b3544e0d4bc281e7645edb5bf4795b8a7951ffb6a3d5541ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 12, 2025.
Transparency logSecurity for shepherd-cli 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for shepherd_cli-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 12, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.