--output json and --jq filtering, so anything you do interactively is scriptable.
The CLI is open source on GitHub, where you can browse the code, watch for new releases, and file issues.
The Baseten CLI is in beta and under active development. Commands, flags, output schemas, and the install path may change before general availability.
Install
Install with Homebrew on macOS or Linux:brew update && brew upgrade baseten.
Optionally run
brew trust basetenlabs/baseten before installing to limit
how much unofficial tap code Homebrew evaluates by default. See
tap trust in the Homebrew docs.Manual install (Windows, or a specific version)
Manual install (Windows, or a specific version)
Download and extract the For other platforms or a specific version, download an archive from GitHub releases and move
baseten binary for your platform, then place it on your PATH.- macOS (arm64)
- Linux (x64)
- Windows (x64)
Download and extract
baseten into /usr/local/bin:baseten onto your PATH.Authenticate
Log in interactively:BASETEN_API_KEY in the environment instead. See baseten auth for browser login, reading a key from stdin, switching accounts, and credential storage.
Output and filtering
Every Baseten-native command supports four output formats through--output:
text(default): human-readable narrative.json: a single JSON document. Pair with--jq EXPRto extract one field.jsonl: one JSON record per line. Used by commands that stream results.none: suppress stdout entirely.
--jq implies --output json (or jsonl for streamed commands), so a single flag turns any command into a clean value for the next stage of your pipeline.
Global flags
These flags work on every Baseten-native command:Command groups
Thebaseten CLI organizes commands by resource:
Use with AI agents
If you drive the Baseten CLI through a coding agent (Claude Code, Cursor, Codex), add this snippet to your project’sAGENTS.md or CLAUDE.md. The CLI documents itself through --help, so the snippet only covers what an agent can’t discover on its own: how to install, how to authenticate, and how to ask for machine-readable output.
AGENTS.md
Next steps
Deploy from CI
Use
baseten model push from GitHub Actions and other CI runners.Compare with Truss
See when to reach for
baseten vs truss for each task.