Sign out of HQ Cognito and clear local tokens.
Scanned 9/19/2026
Install to Claude Code
npx -y skills add indigoai-us/hq-core --skill hq-logout --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Hq Logout?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/indigoai-us-hq-logout)More formats (shields.io, HTML) on the badges page.
---
name: hq-logout
description: Sign out of HQ Cognito and clear local tokens.
allowed-tools: Bash(hq:*), Bash(ls:*), Bash(test:*), Bash(rm:*)
---
# /hq-logout — HQ Cognito sign-out (local)
Removes the cached Cognito session at `~/.hq/cognito-tokens.json` so future
HQ-authenticated operations (deploy, vault, sync) require a fresh sign-in.
**Local only.** Refresh tokens remain valid server-side until they expire
naturally — they just can't be used without `~/.hq/cognito-tokens.json`. If
you need to revoke at the pool, ask for AWS Cognito GlobalSignOut explicitly
(not in scope here).
## Steps
1. **Probe** — `test -f ~/.hq/cognito-tokens.json`. If absent, report
"already signed out" and exit.
2. **Clear** — `hq auth logout` (delegates to `@indigoai-us/hq-cli`'s
logout subcommand, which removes the token file).
3. **Confirm** — `test ! -f ~/.hq/cognito-tokens.json` and report success.
## Notes
- Same file consumed by `/deploy` — after this, `/hq-login` (or any deploy)
will trigger a fresh browser flow.
- Does NOT touch `~/.hq-deploy/config.json` (that's the unrelated
`hq-deploy` CLI's API-key store, not currently used here).
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!