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

# anona-compute login

> Sign in through the browser (or save an API key with --with-api-key)

```text
Sign in to Anona Compute.

Without flags, anona-compute login starts a device sign-in (RFC 8628): it prints a
URL and a code, opens the browser, and waits while you sign in to the
dashboard, check the code, pick the organization and approve. The CLI then
holds a dashboard session for this machine and trades it for gateway tokens
that last 15 minutes. The session secret is stored in the OS keychain when
one is available, else in credentials.json (mode 0600) next to config.toml;
ANONA_COMPUTE_CREDENTIAL_STORE=file|keyring forces one. anona-compute logout revokes it.

--with-api-key reads an API key (ac_ + 40 lowercase hex characters) from
stdin, saves it to the profile, and checks it against the gateway (an
invalid key is still saved, and the command exits 3; --no-verify skips the
check).

The dashboard is --web-url, else ANONA_COMPUTE_WEB_URL, else the profile's web_url,
else https://<domain>.
```

## Usage

```text
anona-compute login [flags]
```

## Flags

| Flag | Type | Description |
| - | - | - |
| `--help`, `-h` | | help for login |
| `--no-browser` | | print the sign-in URL but do not open a browser |
| `--no-verify` | | with --with-api-key: save the key without checking it against the gateway |
| `--org` | string | organization slug to act in (default: the one picked in the browser) |
| `--web-url` | string | dashboard URL (env ANONA\_COMPUTE\_WEB\_URL; default https\://\<domain>) |
| `--with-api-key` | | read an API key from stdin instead of signing in through the browser |

Global flags (`--api-key`, `--api-url`, `--json`, `--output`, `--profile`, `--request-timeout`, `--verbose`) work on every command; see [anona-compute](/docs/cli/reference/anona-compute.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.