> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tandemn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the CLI

> Install the Tandemn CLI and connect it to a Tandemn server.

The Tandemn CLI is the user-facing tool for checking connectivity and submitting inference jobs.

## Install

Install the package in your preferred Python 3.12+ environment.

<CodeGroup>
  ```bash pip theme={null}
  pip install tandemn
  ```

  ```bash venv theme={null}
  python -m venv .venv
  source .venv/bin/activate
  pip install tandemn
  ```
</CodeGroup>

## Connect to the server

Set `TD_SERVER_URL` to the URL provided by your Tandemn administrator.

```bash theme={null}
export TD_SERVER_URL=<your-server-url>
```

If your deployment requires API key authentication, also set `TD_API_KEY`.

```bash theme={null}
export TD_API_KEY=<your-api-key>
```

Persist the variable in your shell profile if you use the same server regularly.

```bash theme={null}
echo 'export TD_SERVER_URL=<your-server-url>' >> ~/.zshrc
```

## Check connectivity

```bash theme={null}
tandemn check
```

Successful output means the CLI can reach the Tandemn server and you can submit jobs.

> If your organization uses multiple Tandemn environments, keep separate shell profiles or terminal sessions for development, staging, and production.

## Next step

Submit your first inference job in [Run your first job](/getting-started/run-first-job).
