TurboPrivate docsCreate API account

CLI reference

The turboprivate CLI is a command-line program that opens an encrypted Room and exposes a local compatibility endpoint for an existing tool. It is a client of the Model API.

Install and authenticate

npm i -g https://api.turboprivate.ai/cli.tgz
turboprivate login

login validates the key before storing it in ~/.turboprivate/credentials.json with mode 0600. For automation, set TURBOPRIVATE_API_KEY instead of writing a credential interactively.

Connect an existing tool

turboprivate models
turboprivate connect --model <live-model-id> --print

Keep this process running. Copy the printed base URL and temporary token into your tool's custom-provider settings. Use the OpenAI URL for OpenAI-compatible clients and the Anthropic URL for Anthropic-compatible clients. The temporary local token is different from your account API key.

Send a request from the tool, then stop the CLI with Ctrl+C when finished and check its cleanup result. The CLI runs the connection locally; model execution remains remote. For automated integration, use the SDK. For evidence export, see Privacy proofs.

Commands

commandpurpose
loginValidate and store a long-lived API key.
modelsShow catalog data, live availability, context and legal controls.
connect [--print]Hold a room open behind a credentialed 127.0.0.1 compatibility endpoint.
check [--proof file.json]Open a room, make one real request, close and optionally save content-free signed evidence.
verify file.jsonCheck exported Room signatures offline; no account or network access required.
tokenMint a short-lived account token for a helper or credential command.
uninstallRemove the saved API credential.
helpPrint command help.

Room-opening flags

flagmeaning
--model <id>Select an exact model id or an unambiguous fragment.
--set <id>=<value>Set a catalog-declared control. Repeat for multiple controls.
--effort <value>Compatibility shorthand for --set effort=value.
--printWith connect, print complete local endpoint configuration and its temporary token.

Environment

variableeffect
TURBOPRIVATE_API_KEYCredential for CI or another non-interactive environment.
TURBOPRIVATE_PORTStarting loopback port; default 8788. If occupied, the client walks forward to a free port.
TURBOPRIVATE_QUIETSuppress explanatory client output.

Examples

turboprivate models
turboprivate check --model qwen3.8-27b
turboprivate connect --model qwen3.8-27b --set effort=low --print