Install the Together CLI
Requires Python 3.10+ and uv.
The
[cli] extra target includes additional dependencies used by the CLI. The extra target prevents the Python SDK from being bloated with dependencies it does not use.together, an alias of tg that’s identical in behavior. Examples throughout these docs use tg.
Upgrade notices
The CLI checks PyPI in the background for a newer release and caches the result for 24 hours. When one is available, it prints an upgrade notice at most once per day. In an interactive terminal it also offers to run the upgrade for you, using the command that matches your install (uv, pipx, or pip). With --json or --non-interactive, it prints the upgrade command instead.
To disable the check entirely (for example, in CI), set:
Shell
Authenticate
Log in with your browser:tg switch.
Authenticate with an API key
For CI/CD, scripts, and other environments where you can’t log in with a browser, authenticate with an API key instead. Find your API key in your account settings, then set it as an environment variable:Shell
tg login, the CLI uses your login instead of TOGETHER_API_KEY. To use the API key, pass --api-key or run tg logout.
Use the CLI in a CI/CD environment
uvx is a helper utility from uv that downloads and runs a Python binary without a separate install step. In a CI/CD environment, invoke the CLI directly with uvx:
TOGETHER_API_KEY instead of passing --api-key so the key doesn’t appear in process lists or logs. If both are provided, --api-key takes precedence over the environment variable.
Available commands
login, switch, and logout
Log in with your browser, switch between projects, and log out.
models
Manage the models you deploy with dedicated model inference. Browse supported models, or register your own models and adapters and upload their weights.
endpoints
Deploy models to dedicated endpoints, then manage each endpoint’s deployments, traffic, and rollouts.
files
Upload and manage datasets for use in fine-tuning, evals, and batch inference.
fine-tuning
Create and manage fine-tuning jobs, then download the model weights they produce.
evals
Manage model evaluation jobs.
batches
Submit and manage batch inference jobs.
clusters
Reserve, manage, and interact with GPU clusters.
jig (beta)
Build, deploy, and manage dedicated containers.
projects
List the projects your current credentials can access.
whoami
Show the project and organization your current credentials belong to.
Beta commands
Thebeta namespace provides access to experimental features and new capabilities before they become part of the standard API.
Features in the beta namespace are largely considered stable. However, these features are subject to change and may be modified or removed in future releases.