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

# facet logout

> Remove saved registry credentials

## Usage

```sh theme={"theme":{"light":"github-light","dark":"github-dark"}}
facet logout
```

Removes the saved credentials file. No server call is made -- token revocation is done in the web UI at [agentfacets.io](https://agentfacets.io).

## Exit codes

| Code | Meaning                                                                |
| ---- | ---------------------------------------------------------------------- |
| `0`  | Always — credentials removed, or the file did not exist.               |
| `2`  | Unexpected filesystem error (surfaced by the top-level error handler). |

## What it does

<Steps>
  <Step title="Delete credentials file">
    Removes `$FACET_DIR/credentials` (default `~/.facet/credentials`).
  </Step>

  <Step title="Warn about FACET_TOKEN">
    If the `FACET_TOKEN` environment variable is set, the CLI warns that it will continue to authenticate commands. Run `unset FACET_TOKEN` to fully sign out of the current shell.
  </Step>
</Steps>

## See also

* [`facet login`](/cli/login) -- sign in to the registry.
* [`facet whoami`](/cli/whoami) -- verify the signed-in identity.
