Hq logout

From indigoai-us/hq-core · View interactive version

Hq logout is an AI agent skill from the GitHub repository indigoai-us/hq-core. Sign out of HQ Cognito and clear local tokens.

How to use this skill

Skill file

/hq-logout — HQ Cognito sign-out

Ends the HQ session on the server and removes the cached Cognito session at

~/.hq/cognito-tokens.json, so future HQ-authenticated operations (deploy,

vault, sync) require a fresh sign-in.

hq logout revokes the refresh token on the server first, so a copied token

file stops working, and then deletes the local tokens. If the server cannot be

reached, it still deletes the local tokens and says the session could not be

ended everywhere; the refresh token then stays valid until it expires.

Steps

  1. Probe — test -f ~/.hq/cognito-tokens.json. If absent, report

"already signed out" and exit.

  1. Sign out — hq logout. Report its message as printed: either a clean

sign-out, or a local sign-out whose server-side revoke did not happen.

  1. Confirm — test ! -f ~/.hq/cognito-tokens.json and report success.

Notes

will trigger a fresh browser flow.

hq-deploy CLI's API-key store, not currently used here).

hq auth logout only deleted the local file and left the refresh token

valid on the server.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.