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

# Auth

<a id="oxen.auth" />

# oxen.auth

<a id="oxen.auth.config_auth" />

## config\_auth

```python theme={null}
def config_auth(token: str,
                host: str = "hub.oxen.ai",
                path: Optional[str] = None)
```

Configures authentication for a host.

**Arguments**:

* `token` - `str`
  The token to use for authentication.
* `host` - `str`
  The host to configure authentication for. Default: 'hub.oxen.ai'
* `path` - `Optional[str]`
  The path to save the authentication config to.
  Defaults to \$HOME/.config/oxen/auth\_config.toml
