Documentation Index
Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
Use this file to discover all available pages before exploring further.
truss auth command group manages how the Truss CLI authenticates with a Baseten remote. Use it to log in with an API key or via browser-based OAuth, view the active credential for a remote, and log out.
Authentication methods
The CLI supports two authentication methods, and a single trussrc can mix both โ one per remote.- API key: paste a long-lived API key. Best for CI/CD, scripts, and any non-interactive context.
- Browser (OAuth): complete an OAuth 2.0 device flow by entering a code on the Baseten website. Best for laptops where you donโt want a long-lived secret on disk.
Where credentials are stored
Truss stores credentials in your operating systemโs keyring under the service namebaseten-truss whenever a usable backend is available (macOS Keychain, GNOME Keyring, and Windows Credential Manager). Keyring storage works for both API keys and OAuth tokens.
If no keyring backend is available โ for example, a headless Linux container โ Truss falls back to writing the secret inline to ~/.trussrc and prints a one-line warning. To force the inline path silently, set BASETEN_TRUSS_AUTH_KEYRING_DISABLED=1.
On macOS, the first read or write triggers a one-time Keychain prompt. Click Always Allow to make subsequent calls silent.
[remote] api_key = ... entries in ~/.trussrc continue to work without changes โ thereโs no auto-migration.
Remotes
A remote is a named entry in~/.trussrc that points at a Baseten workspace and stores its credential. The default remote is baseten. You can configure additional remotes (for staging environments, multiple workspaces, and so on) and select one with --remote on most CLI commands.
truss auth status and truss auth logout both accept --remote NAME. When only one remote is configured, the flag is optional.
login
Log in to a Baseten remote.--browser or --api-key explicitly.
truss login is an alias and accepts the same flags.
Options
Log in via browser using the OAuth device flow. Mutually exclusive with
--api-key.Name of the remote to create or update in
~/.trussrc. Defaults to baseten.Examples
Log in interactively and choose a method when prompted:logout
Log out of a Baseten remote and remove it from~/.trussrc. For OAuth remotes, this also revokes the refresh token on the backend.
Options
Remote name to log out of. Inferred when only one remote is configured.
Examples
Log out of the only configured remote:status
Show the active authentication for a remote โ the URL it points at, which method it uses, and where the credential is stored.Options
Remote name to inspect. Inferred when only one remote is configured.
Examples
Inspect a remote:source field is one of:
keyring: the credential is stored in the OS keyring.trussrc-inline: the credential is stored as plaintext inside~/.trussrc.
auth_type field is api_key, oauth, or api_key (legacy plaintext) for entries written by older Truss versions.
Environment variables
API key used as a fallback when the active remote has no credentials in
~/.trussrc. Recommended for CI/CD, where setting the env var avoids running truss login before each job.Set to
1 to skip the OS keyring and write credentials inline to ~/.trussrc without printing a warning. Useful in containers and headless environments where no keyring backend is available.