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

# talosconfig

> Describes the configuration file used by `talosctl` to authenticate and communicate with Talos clusters.

export const VersionWarningBanner = () => {
  const latestVersion = "v1.13";
  const [latestUrl, setLatestUrl] = useState(null);
  const [currentVersion, setCurrentVersion] = useState(null);
  const [isBeta, setIsBeta] = useState(false);
  const parseVersion = v => v.replace("v", "").split(".").map(Number);
  const isGreaterVersion = (a, b) => {
    const [aMajor, aMinor] = parseVersion(a);
    const [bMajor, bMinor] = parseVersion(b);
    if (aMajor > bMajor) return true;
    if (aMajor === bMajor && aMinor > bMinor) return true;
    return false;
  };
  useEffect(() => {
    if (typeof window === "undefined") return;
    const {pathname, hash, search} = window.location;
    const match = pathname.match(/\/talos\/(v\d+\.\d+)\//);
    if (!match) return;
    const detectedVersion = match[1];
    if (detectedVersion === latestVersion) return;
    setCurrentVersion(detectedVersion);
    if (isGreaterVersion(detectedVersion, latestVersion)) {
      setIsBeta(true);
    }
    const newPath = pathname.replace(`/talos/${detectedVersion}/`, `/talos/${latestVersion}/`);
    setLatestUrl(`${newPath}${search}${hash}`);
  }, []);
  if (!latestUrl || !currentVersion) return null;
  return <div className="not-prose sticky top-6 z-50 my-6">
      <div className="border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 rounded-xl">
        <div className="text-sm">
          {isBeta ? <>
              ⚠️ You are viewing a <strong>beta version</strong> of Talos ({currentVersion}).
              This version may be unstable.
              <a href={latestUrl} className="ml-2 underline text-yellow-400 hover:text-yellow-300 font-medium">
                View latest stable version {latestVersion} →
              </a>
            </> : <>
              ⚠️ You are viewing an older version of Talos ({currentVersion}).
              <a href={latestUrl} className="ml-2 underline text-yellow-400 hover:text-yellow-300 font-medium">
                View the latest version {latestVersion} →
              </a>
            </>}
        </div>
      </div>
    </div>;
};

<VersionWarningBanner />

The `talosconfig` file contains client configuration used by `talosctl` to authenticate and communicate with Talos clusters.

This file is typically generated and managed by `talosctl`. Direct manual modification is not usually required, but understanding its structure can be useful for advanced troubleshooting or automation.

## File generation

This `talosconfig` file is usually generated alongside the machine configuration (`controlplane.yaml` and `worker.yaml`) by running:

```bash theme={null}
talosctl gen config <cluster-name> https://<control-plane-ip>6443 --install-disk /dev/<disk-name>
```

Here is how a generated `talosconfig` file looks like:

```yaml theme={null}
contexts:
  my-cluster:
    endpoints:
      - 192.168.0.10
    nodes:
      - 192.168.0.10
    ca: <base64-encoded-ca>
    crt: <base64-encoded-client-cert>
    key: <base64-encoded-client-key>
```

## Default location

By default, `talosctl` searches for the configuration file in standard OS-specific locations (for example, `~/.talos/config` on Unix-like systems).

To specify a custom configuration file path, use the `--talosconfig` flag:

```bash theme={null}
talosctl --talosconfig <path>
```

Alternatively, you can set the `TALOSCONFIG` environment variable:

```bash theme={null}
export TALOSCONFIG=/path/to/talosconfig
```

## Configuration structure

The `talosconfig` file consists of a root configuration object and one or more named contexts.

### `context` (string)

Specifies the name of the active context.

This determines which entry under `contexts` is used when running `talosctl` commands.

**Example**:

```yaml theme={null}
context: my-cluster
```

### `contexts` (map\[string]Context)

Defines a set of named contexts. Each context contains the connection and authentication configuration required to communicate with a Talos cluster.

**Example**:

```yaml theme={null}
contexts:
  my-cluster:
    endpoints:
      - 192.168.0.10
```

Each entry under `contexts` contains the following fields:

#### `endpoints` (\[]string)

List of Talos API endpoints. This field is required.

These are the addresses `talosctl` uses to connect to the cluster.

**Example:**

```yaml theme={null}
endpoints:
  - 192.168.0.10
  - 192.168.0.11
```

For more details on how endpoints are used, see the [endpoints and nodes](../learn-more/talosctl#endpoints-and-nodes).

You can add an endpoint to an existing `talosconfig` using:

```bash theme={null}
talosctl config endpoint <endpoint>
```

#### `nodes` (\[]string, optional)

List of node addresses.

If specified, these addresses are used as default node targets for commands that operate on nodes.

**Example:**

```yaml theme={null}
nodes:
  - 192.168.0.10
  - 192.168.0.11
```

You can add default node addresses using:

```bash theme={null}
talosctl config node <node-ip>
```

#### `ca` (string, optional)

Base64-encoded Certificate Authority (CA) certificate.

Used to validate the server’s TLS certificate.

**Example:**

```yaml theme={null}
ca: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0t...
```

#### `crt` (string, optional)

Base64-encoded client certificate used for authentication.

**Example:**

```yaml theme={null}
crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0t...
```

#### `key` (string, optional)

Base64-encoded private key corresponding to the client certificate.

**Example:**

```yaml theme={null}
key: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQ...
```

#### `auth` (Auth, optional)

Specifies an alternative authentication method.

If specified, certificate fields (`ca`, `crt`, `key`) may not be required depending on the authentication method.

#### `auth.siderov1`

Sidero v1 API signature authentication.

**Example:**

```yaml theme={null}
auth:
  siderov1:
    identity: my-identity
```

**Fields:**

| Field      | Type   | Description                               |
| ---------- | ------ | ----------------------------------------- |
| `identity` | string | Identity used for SideroV1 authentication |

#### `cluster` (string, optional)

Optional cluster identifier.

**Example:**

```yaml theme={null}
cluster: production-cluster
```

## Using Omni with `talosconfig`

When using Omni, the `talosconfig` file works differently than it does in a direct (non-Omni) setup.

You can download this `talosconfig` file from the Omni UI or the CLI:

<Tabs>
  <Tab title="Omni UI">
    Download the `talosconfig` file from the Omni UI:

    <img src="https://mintcdn.com/siderolabs-fe86397c/XYc237y8-TcSyXVl/talos/v1.13/reference/images/talosconfig-download-from-UI.png?fit=max&auto=format&n=XYc237y8-TcSyXVl&q=85&s=739303b78e6f772eeb2c9a90c288ac60" alt="Download talosconfig from Omni UI" width="3004" height="1618" data-path="talos/v1.13/reference/images/talosconfig-download-from-UI.png" />
  </Tab>

  <Tab title="CLI">
    Download `talosconfig` via the CLI with this command:

    ```bash theme={null}
    omnictl talosconfig --cluster <cluster-name>
    ```
  </Tab>
</Tabs>

In an Omni-managed `talosconfig`, the `endpoints` field points to your Omni instance rather than directly to the control plane nodes.

Omni manages certificates and authentication automatically, as a result the client certificate fields (`ca`, `crt`, and `key`) must be empty.

A `talosconfig` file for managing Talos clusters through Omni looks like this:

```yaml theme={null}
contexts:
  omni-cluster:
    endpoints:
      - https://omni.example.com
    auth:
      siderov1:
        identity: my-identity
```

## Manage `talosconfig` with `talosctl`

In most cases, the configuration file is managed using `talosctl config` commands. Refer to the [talosctl config reference](./cli#talosctl-config-add) for more information.
