You can use the Together CLI to manage your Together AI resources from your terminal, or using automated systems. Use the Together CLI to deploy endpoints, fine-tune models, manage your GPU clusters, and more.Documentation Index
Fetch the complete documentation index at: https://docs.together.ai/llms.txt
Use this file to discover all available pages before exploring further.
Install the Together CLI
Requires Python 3.10+.
The [cli] extra target includes additional dependencies used by the CLI exclusively. The extra target prevents the Python SDK from being bloated with dependencies it does not use.
Update the CLI
Authenticate
The CLI relies on theTOGETHER_API_KEY environment variable being set to your account’s API token to authenticate requests. You can find your API token in your account settings.
To create an environment variable in the current shell, run:
Shell
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:
Available Commands
models
View Together models and upload your own.
endpoints
Manage your models on your own custom endpoints for improved reliability at scale.
files
Upload and manage datasets for use in fine-tuning, evals, and batch inference.
fine-tuning
Fine tune custom models.
evals
Manage model evaluation jobs.
clusters (beta)
Reserve, manage, and interact with gpu clusters.
jig (beta)
Build, deploy and manage dedicated containers.
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.
Command aliases
Several commands and subcommands have shorthand aliases for faster typing:| Alias | Full command | Available on |
|---|---|---|
ft | fine-tuning | tg ft … (e.g. tg ft create, tg ft ls) |
ls | list | tg files ls, tg fine-tuning ls, tg models ls, tg endpoints ls, tg evals ls, tg beta clusters ls, tg beta clusters storage ls, tg beta jig ls, tg beta jig secrets ls, tg beta jig volumes ls |
-c | create | tg fine-tuning -c, tg endpoints -c, tg evals -c, tg beta clusters -c, tg beta clusters storage -c |
-d | delete | tg files -d, tg fine-tuning -d, tg endpoints -d, tg beta clusters -d, tg beta clusters storage -d, tg beta jig secrets -d, tg beta jig volumes -d |
Global parameters
The following parameters are available on every command:| Flag | Description |
|---|---|
--help | Print help docs for the prefixed command. |
--json | Forces the command into returning json response. Useful for scripting. |
--non-interactive | Disables any prompting and manual input. In CI/Agent runners this is disabled by default. |
--api-key [string] | Your Together API key. Defaults to reading environment variable TOGETHER_API_KEY. |
--timeout [number] | Request timeout, defaults to 5 seconds. |
--max-retries [number] | Maximum number of HTTP retries. |
--version | Print CLI version. |
--debug | Turns on debug mode to log diagnostic information. |