Tuned Tensor
DocsDashboard

CLI Tool

The tt CLI lets you manage behaviour specs, runs, models, and datasets from the command line — without writing API calls.

Installation

Install globally via npm:

npm install -g @tuned-tensor/cli

Verify the installation with tt --version.

Authentication

Store your API key so you don't need to pass it on every command:

tt auth login tt_your_api_key

Check your auth status:

tt auth status

Other auth commands:

  • tt auth logout — Remove stored credentials
  • tt -k tt_your_api_key <command> — Pass API key inline (overrides stored key)
  • tt -u https://your-api.example.com <command> — Use a custom base URL (e.g. for local dev)

Commands Overview

CommandDescription
tt authManage authentication (login, logout, status)
tt specsList, create, get, update, delete behaviour specs
tt runsList runs, start a run, get details, cancel, watch
tt datasetsList and manage datasets
tt modelsList fine-tuned models
tt usageShow usage summary and tier info
tt initCreate a local behaviour spec file (tunedtensor.json)
tt pushPush local spec to the Tuned Tensor API
tt evalEvaluate a model against a behaviour spec locally

Quick Examples

List specs and runs

tt specs list
tt runs list

Start a run

tt runs start <spec-id>

Use tt runs watch <run-id> to poll until the run completes.

Create a spec from a local file

# Create a local spec template
tt init -n "My Spec" --model meta-llama/Llama-3.2-3B-Instruct

# Edit tunedtensor.json, then push to the API
tt push

Global options

  • -k, --api-key <key> — Override stored API key
  • -u, --base-url <url> — Custom API base URL (default: https://www.tunedtensor.com)
  • --json — Output raw JSON
  • --no-color — Disable colors

See Also