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

# Sign-in and API tokens

> Sign in from a terminal, or authenticate CI, servers and agents with an API token.

On a machine with a browser, sign in with `pp login`. In CI, on a server, or
for an agent, use an API token in `PROOFPOD_TOKEN`. Both identify your account
and draw on the same credit.

## Signing in

```console theme={null}
$ pp login
To sign in, open:

    https://proofpod.dev/activate?code=BCDF-GHJK

and confirm the code BCDF-GHJK.
```

Your browser opens, you create an account or sign in, confirm the code, and the
terminal finishes on its own. If the browser cannot be opened from this
machine, run `pp login --no-browser` and open the link in a browser on any
device. If the code expires before you confirm it, run `pp login` again.

Each machine signs in separately. To check which account a machine uses:

```console theme={null}
$ pp whoami
```

## API tokens

`pp login` needs a browser. In CI, on a server, or for an agent, use an API
token. Create one from the [dashboard](https://proofpod.dev/app/#/tokens) or
from a machine that is already signed in:

```console theme={null}
$ pp token create github-actions
pp_3f9a2c1b4d5e_8c7e…
proofpod: this token is shown once. Use it as PROOFPOD_TOKEN in CI.
```

Then use it in one of two ways:

* **Set `PROOFPOD_TOKEN`** in the environment. It takes precedence over any
  stored credentials. This is the usual choice for CI; see
  [Continuous integration](https://docs.proofpod.dev/guide/ci.md).
* **Store it** on the machine with `pp login --token TOKEN`.

To review or revoke tokens:

```console theme={null}
$ pp token list
$ pp token revoke 3f9a2c1b4d5e
```

## Signing out

```console theme={null}
$ pp logout
```

This removes the credentials stored on this machine. The token itself stays
valid until it is revoked with `pp token revoke`.

## Where credentials are stored

Credentials are stored in `~/.config/proofpod/credentials.json` with mode 0600.
Set `PROOFPOD_CONFIG_DIR` to use another directory. See
[Files](https://docs.proofpod.dev/reference/cli.md#files) for everything else ProofPod keeps on your
machine.


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