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

# Command line authentication

If you run `ag auth` and you get the error: `CLI authentication failed` or your CLI gets stuck on

```
Waiting for a response from browser...
```

It means that your CLI was not able to authenticate with your Agno account on [app.agno.com](https://app.agno.com)

The quickest fix for this is to export your `AGNO_API_KEY` environment variable. You can do this by running the following command:

```bash theme={null}
export AGNO_API_KEY=<your_api_key>
```

Your API key can be found on [app.agno.com](https://app.agno.com/settings) in the sidebar under `API Key`.

<img src="https://mintcdn.com/agno/0omqNXZ9CSqcNU7_/images/cli-faq.png?fit=max&auto=format&n=0omqNXZ9CSqcNU7_&q=85&s=b9ef51131b22f825b84d1c6c92d36690" alt="agno-api-key" width={600} data-path="images/cli-faq.png" />

Reason for CLI authentication failure:

* Some browsers like Safari and Brave block connection to the localhost domain. Browsers like Chrome work great with `ag setup`.
