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

> ## Agent Instructions
> These docs describe the Ancha CLI, npm package @ancha-labs/cli version 0.1.4, and the hosted workspace at app.ancha.io. Coding agents should start at https://docs.ancha.io/coding-agents. Run the CLI as `ancha` after `npm install -g @ancha-labs/cli`, or as `npx -y @ancha-labs/cli@0.1.4` without installing. Pass --json for machine-readable output, or set ANCHA_JSON=1. Every command ends with a `next:` line naming the next command. Exit codes: 0 pass, 1 a check failed or a comparison regressed, 2 usage, config or authentication error, 3 infrastructure error, 4 unimplemented endpoint with --strict.

# ancha logout

> Forget the saved sign-in for a hosted Ancha workspace so commands use local servers again.

`ancha logout` removes a saved sign-in from the credentials file. It does not revoke the API key; revoke it under **Settings** in the console.

```bash theme={null}
ancha logout [options]
```

| Option | Description |
| - | - |
| `--url <url>` | Hosted world server to forget (default: the saved default) |

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

```text Output theme={null}
Signed out of https://app.ancha.io/t/<workspace>. Commands run a local server again unless --server-url is set.
```

With nothing saved, it prints `Nothing saved; you were not signed in.` and exits `0`.


## Related topics

- [CLI overview](https://docs.ancha.io/cli/overview.md)
- [ancha login](https://docs.ancha.io/cli/login.md)
- [Login and API keys](https://docs.ancha.io/cloud/login-and-api-keys.md)
- [Changelog](https://docs.ancha.io/changelog.md)
- [ancha.yaml](https://docs.ancha.io/reference/ancha-yaml.md)


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