config.yaml, iterate with truss watch, and push to Baseten. It also runs the Chains, Training, and Loops workflows. Install with uvx truss or pip install truss.
The Baseten CLI Beta manages your workspace: organizations, API keys, secrets, and the deployment lifecycle, from promoting deployments to terminating replicas. It also calls models and the Baseten API. Every command supports --output json and --jq filtering, built for scripts and CI. Install with Homebrew.
The Baseten Switch CLI Beta routes Claude Code and Codex CLI to Model APIs through a local gateway, and can install Pi’s direct Baseten provider. See Baseten Switch CLI.
Truss and the Baseten CLI are open source and authenticate against the same Baseten backend. Switch authenticates with the current Baseten CLI profile.
Which one do I use?
Overlapping commands
A few commands exist in both CLIs:Use both together
baseten truss forwards arguments to the truss binary on your PATH, so baseten truss push works as a synonym for truss push.
Next steps
Author a model
Use Truss to package and deploy your first model.
Manage your workspace
Use the Baseten CLI for orgs, deployments, and automation.
Build a Chain
Create multi-step inference pipelines with
truss chains.Wire CI/CD
Use
baseten model push in GitHub Actions and other pipelines.Baseten Switch CLI
Route Claude Code, Codex CLI, or Pi to Model APIs.