Truss
$ truss Official Med RiskTruss (truss) is Baseten's open-source CLI for packaging Python ML/LLM models into standardized config.yaml projects (truss init), iterating with hot-reload dev sandboxes (truss watch), and deploying to production endpoints (truss push) with --non-interactive and --dryrun flags.
pip install truss truss scaffolds local model directories, validates config.yaml, and streams local code edits to remote Baseten GPU sandboxes.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Provides --non-interactive on init and --dryrun on push, though it lacks --json output and truss watch blocks indefinitely.
truss init --non-interactiveandtruss push --dryrunsupport safe automation- No native
--jsonCLI output flag
truss push --dryrun validates locally without remote side effects; live truss push provisions billed remote GPU deployments.
--dryrunpreviews generated files before remote deployment
Cross-platform PyPI CLI (pip install truss) on macOS, Linux, and Windows.
- Cross-platform
pip install trussdistribution
Hot-reload truss watch and --watch-hot-reload accelerate remote GPU model iteration.
- Supports in-process
--hot-reloadand TRT-LLM backend templates
Official Baseten (basetenlabs/truss) tool under MIT license.
- Official
basetenlabs/trussrepo (MIT)
Clear documentation at docs.baseten.co and Click-based --help output.
- Official Baseten Truss docs and
--helpreference
Security, Auth & Guardrails
Stores Baseten remote API keys in ~/.trussrc (or reads BASETEN_API_KEY env var).
MIT open-source CLI; pushing models to Baseten creates billable remote GPU deployments.
# Truss Agent Rules - Always run `truss push --dryrun` before `truss push`, and pass `--non-interactive` on `truss init`. - Never run `truss watch` synchronously (it streams logs forever) or `truss push --promote` without user approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
truss --help && truss push --help
Displays scaffolding, watch, and deployment flags without modifying files or calling Baseten.
Controlled Writes & Previews
truss push --dryrun .
Validates and generates Truss container build files locally without creating a remote billable deployment.
Strengths for Agents
- +
truss push --dryrunandtruss init --non-interactiveprovide strong pre-flight safety for automation. - + Supports
--hot-reloaddevelopment patching without restarting GPU containers.
Caveats & Pitfalls
- ! Lacks
--jsonoutput on CLI commands;truss watchblocks while tailing logs. - ! Live
truss pushdeploys paid Baseten GPU infrastructure.