saddler
English | 简体中文
saddler is a declarative CLI for building and operating agent environments.
It manages storage, runtime, and agent lifecycles in one place, and provides hitch for compose-style multi-agent orchestration.
Why saddler
- Unified lifecycle management for storages, runtimes, and agents
- Pluggable harnesses (for example
codex,cursor,gemini,openclaw,opencode,claude_code) - Declarative resource assembly from local paths or remote sources
- Repeatable environment setup with
hitch(up,down,ps,config) - Python-first workflow with
uvand Typer-based CLI ergonomics
Requirements
- Python
3.11+ uv(recommended package manager)- Optional: Docker (for docker runtime backend)
Installation
Install from PyPI:
pip install saddler
or with uv:
uv tool install saddler
or run directly with uvx:
uvx saddler --help
Install from source (for contributors):
git clone https://github.com/hopeful0/saddler.git
cd saddler
uv sync
Validate installation:
uv run saddler --help
Using saddler with uvx
For ad-hoc usage without global installation:
uvx saddler --help
For local source-tree testing:
uvx --from . saddler --help
For daily usage after installation:
saddler --help
Quick Start
1) Create and start a runtime
saddler runtime create local --name dev-local
saddler runtime start dev-local
2) Create an agent on that runtime
saddler agent create \
--runtime dev-local \
--harness codex \
--workdir /workspace \
--name my-agent
3) Launch the harness session
saddler agent tui my-agent
4) Inspect current resources
saddler runtime ls
saddler agent ls
saddler storage ls
Core Commands
saddler agent create|ls|inspect|tui|acp|rmsaddler runtime create|start|stop|ls|inspect|harnesses|rmsaddler storage create|ls|inspect|rmsaddler hitch config|up|stop|down|ps
Common aliases:
saddler agentcan also be called from top-level high-frequency commandssaddler runtimehas aliassaddler rtsaddler storagehas aliassaddler st
Runtime Creation Patterns
Create local runtime:
saddler runtime create local --name local-dev
Create docker runtime:
saddler runtime create docker \
--name docker-dev \
--image saddler-runtime:all \
--user 1000:1000 \
--mount .:/workspace
Create with dynamic backend type:
saddler runtime create --type <backend> --opt key=value
Hitch: Compose-style Orchestration
hitch treats agent stacks like a compose project and helps you bring everything up/down reproducibly.
Minimal example:
name: demo
version: 1
runtimes:
rt:
backend: docker
backend_spec:
image: saddler-runtime:all
user: 1000:1000
mounts:
- .:/workspace
agents:
main:
harness: opencode
workdir: /workspace
runtime: rt
Typical workflow:
saddler hitch config -f hitch.local.yml
saddler hitch up -f hitch.local.yml
saddler hitch ps -f hitch.local.yml
saddler hitch down -f hitch.local.yml
Shell Completion
saddler supports native Typer completion for zsh, bash, and fish.
- zsh:
echo 'eval "$(_SADDLER_COMPLETE=zsh_source saddler)"' >> ~/.zshrcsource ~/.zshrc
- bash:
echo 'eval "$(_SADDLER_COMPLETE=bash_source saddler)"' >> ~/.bashrcsource ~/.bashrc
- fish:
echo '_SADDLER_COMPLETE=fish_source saddler | source' >> ~/.config/fish/config.fishsource ~/.config/fish/config.fish
Troubleshooting
runtime harnessesshowsnot installed- Install required harness dependencies in the runtime, then rerun
runtime harnesses
- Install required harness dependencies in the runtime, then rerun
- Docker runtime cannot start
- Confirm Docker daemon is running and your user can run
docker
- Confirm Docker daemon is running and your user can run
- Bind mount errors
- Ensure destination is absolute and host source path exists
- Completion not effective
- Reload shell config (
source ~/.zshrc,source ~/.bashrc, or fish config)
- Reload shell config (
Metadata
Release files for saddler 0.1.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 | Actions |
|---|---|---|---|---|
| saddler-0.1.2.tar.gz | 301.2 kB | Without provenance | Details for saddler-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saddler-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for saddler-0.1.2-py3-none-any.whl |
Total release size: 404.4 kB
Release files / saddler-0.1.2.tar.gz
| Download URL | saddler-0.1.2.tar.gz |
|---|---|
| Size | 301.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9499e13853415b5b2fb6595107f44f6b9c2f0bdab4c95f8cd5ff3c5f5734065a
|
|
BLAKE2b-256 checksum How to use checksums |
0580a6676a575d4befdc37fcde30ad45f62b959cdccb1b5d53f27c747abf6cb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Release files / saddler-0.1.2-py3-none-any.whl
| Download URL | saddler-0.1.2-py3-none-any.whl |
|---|---|
| Size | 103.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b83a67f586c8ae355ee579bd8a2e27854a0099c6d76ffaa87a138b9295789f0
|
|
BLAKE2b-256 checksum How to use checksums |
851c57f79b1ec9f5b1929a271691425424d5d34e12806611b5ba5e7e687db6cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.13
|
Security for saddler 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.