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

# CLI Authentication

> Configure API keys and base URLs for @firstsales.io/cli.

Use environment variables for agents and CI:

```bash theme={null}
export FIRSTSALES_API_KEY="fs_..."
export FIRSTSALES_BASE_URL="https://api.app.firstsales.io"
```

Or pass flags:

```bash theme={null}
firstsales whoami --api-key "$FIRSTSALES_API_KEY" --base-url https://api.app.firstsales.io
```

The CLI supports local profiles for developer machines. Environment variables are preferred for automation because they are explicit and easier to rotate.
