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

# tm auth status

> Show local Control Plane and Gateway auth status.

## What This Checks

`tm auth status` is a local readiness check. It inspects whether the expected Control Plane and gateway credentials are present locally. It does not make a live API request.

Use [`tm auth whoami`](/cli/reference/auth/whoami) when you want to verify that the current bearer token works against the Control Plane.

## Usage

```sh theme={null}
tm auth status [OPTIONS]
```

## Examples

### Show local Control Plane and Gateway auth state.

```sh theme={null}
tm auth status
```

### Use shell-friendly exit codes when Control Plane or Gateway auth is not ready.

```sh theme={null}
tm auth status --exit-status
```

## Options

| Name            | Type      | Required | Default | Details                                                                                   |
| --------------- | --------- | -------- | ------- | ----------------------------------------------------------------------------------------- |
| `--exit-status` | `boolean` | no       | `false` | Exit non-zero when Control Plane or Gateway auth prerequisites are missing. Boolean flag. |

## Inherited Global Options

| Name                  | Type           | Required | Default                              | Details                                                                                                                      |          |    |          |                                                                   |
| --------------------- | -------------- | -------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | -------- | -- | -------- | ----------------------------------------------------------------- |
| `--version`, `-V`     | `boolean`      | no       | `false`                              | Show the version and exit. Boolean flag.                                                                                     |          |    |          |                                                                   |
| `--config`            | `path`         | no       | `"~/.config/tensormesh/config.toml"` | Path to config TOML file                                                                                                     |          |    |          |                                                                   |
| `--output`            | \`choice\[text | json     | yaml                                 | raw                                                                                                                          | table]\` | no | `"text"` | Output format (text is human-readable; json is machine-friendly). |
| `--quiet`             | `boolean`      | no       | `false`                              | Suppress non-essential output. Boolean flag.                                                                                 |          |    |          |                                                                   |
| `--debug`             | `boolean`      | no       | `false`                              | Print debug logs to stderr (secrets redacted). Boolean flag.                                                                 |          |    |          |                                                                   |
| `--ca-bundle`         | `path`         | no       |                                      | Path to a PEM CA bundle for TLS verification (overrides TENSORMESH\_CA\_BUNDLE).                                             |          |    |          |                                                                   |
| `--timeout`           | `float`        | no       |                                      | Default HTTP timeout in seconds (overrides TENSORMESH\_TIMEOUT\_SECONDS; subcommands may override).                          |          |    |          |                                                                   |
| `--max-retries`       | `integer`      | no       |                                      | Max retries for idempotent HTTP requests on transient errors (overrides TENSORMESH\_MAX\_RETRIES; subcommands may override). |          |    |          |                                                                   |
| `--controlplane-base` | `text`         | no       |                                      | Override the Control Plane base URL.                                                                                         |          |    |          |                                                                   |

## Prerequisites

* Set `gateway_api_key` under `[overrides]` in `config.toml` so `tm auth status` reports the inference API key as present.

## Caveats

* Reports local credential presence. Use `tm auth whoami` to live-validate Control Plane auth.

## Related Commands

* [`tm auth login`](/cli/reference/auth/login)
* [`tm auth whoami`](/cli/reference/auth/whoami)
* [`tm config show`](/cli/reference/config/show)
* [`tm doctor`](/cli/reference/doctor)

## Parent Command

* [`tm auth`](/cli/reference/auth)
