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

# Sign in

> Connect the Actual CLI to your Actual AI account when you want your organization's decisions or the Advisor; the checks run without it.

Signing in is optional. The checks and the local decision commands run signed out, so you can skip this page until you want the decisions your organization keeps in [Actual AI](https://app.actual.ai).

## Signed out and signed in

| Signed out | Needs a sign-in |
| - | - |
| `actual plan-check` and `actual impl-check` | `actual adr list`, `show`, `create`, `update`, `publish`, `unpublish`, `delete`, `restore`, `accept` and `reject`, which manage your organization's decisions in Actual AI |
| `actual rules`, and the rule briefs the plugin gives your agent | `actual advisor` |
| `actual adr new`, which writes a decision and its rule file into the repository | `actual auth create-token`, which mints a token from your sign-in |
| `actual adr check`, comparing decision files with each other | `actual adr check` also compares with your decisions in Actual AI |

The checks judge your rules with a runner, such as the Claude Code CLI, and that runner has its own sign-in. `actual auth` checks the runner's sign-in; it has nothing to do with your Actual AI account.

## Sign in from your terminal

```bash theme={null}
actual login
```

`actual login` opens your browser to sign in to Actual AI, then stores your credentials on your machine. It needs a person at the browser, so an agent can't finish it from its shell. Ask your agent to sign you in and the `actual` skill either asks you to run `actual login` or runs it with `--no-browser` and gives you the URL to open.

| Flag | Use it when |
| - | - |
| `--no-browser` | The terminal can't open a browser, as over SSH. The CLI prints the sign-in URL for you to open and waits for the sign-in to finish |
| `--org <ORG_ID>` | Your account belongs to more than one organization. A single-organization account is picked for you. If you belong to several and the browser doesn't ask within about three minutes, pass `--org` |

## Check who you are

```bash theme={null}
actual whoami
```

`actual whoami` prints the signed-in organization, account and scopes from your local credentials, with no network request. It exits with status 2 when you aren't signed in, which makes it a quick check before a command that needs a sign-in.

`actual whoami --check` (CLI 0.15.0 or later) asks the auth server whether your sign-in still works, renewing the access token first when it expires within a minute. Its exit status tells a lapsed sign-in from an outage:

| Exit status | Meaning |
| - | - |
| 0 | The server accepts your sign-in |
| 2 | The server no longer accepts it, after a sign-out on another machine or a revoked token, for example. Run `actual login` again |
| 3 | The server couldn't be reached or failed |

## Sign out

```bash theme={null}
actual logout
```

`actual logout` signs you out of Actual AI and deletes the local credentials.

## Where credentials live

Your sign-in is stored in `~/.actualai/actual/credentials.yaml`, readable only by you, beside the CLI's `config.yaml`. When `ACTUAL_CONFIG_DIR` names another directory, the file lives there instead. Commands renew the access token as it expires, so you sign in again only when the server stops accepting the sign-in.

While you're signed in, the telemetry the CLI sends carries your sign-in. [Privacy and telemetry](https://docs.actual.ai/resources/privacy-and-telemetry.md) covers what is sent and how to turn it off.

## Sign-in for CI and headless agents

A CI job or an unattended agent has no browser to sign in with. `actual auth create-token` mints a scoped token from your own sign-in, and `actual mint-token` gets one from a service-account key with no person involved. Both pass the token through `ACTUAL_TOKEN`. [Unattended agents and CI](https://docs.actual.ai/guides/unattended-agents-and-ci.md) walks through each.


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