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

# Auth Commands

> Log in with an API key, check status, and log out with declaw auth.

`declaw auth` manages your stored credentials. The CLI saves your API key to `~/.declaw/config.json` (override the directory with `DECLAW_CONFIG_DIR`).

## login

Authenticate and save your API key. If you don't pass `--api-key`, you're prompted to enter it (input is hidden). The key is validated against the API before being saved.

```bash theme={null}
declaw auth login
declaw auth login --api-key <your-key>
```

On success it prints the account email and tier.

## status

Show who you're logged in as (email, tier, owner ID), or report that you're not authenticated.

```bash theme={null}
declaw auth status
```

## logout

Remove stored credentials.

```bash theme={null}
declaw auth logout
```

## Next steps

* [Account commands](/cli/account) — view your account and manage API keys
* [CLI overview](/cli/overview) — credential resolution order and config file format
