Skip to main content

locopilot logout

Remove stored credentials and disable Pro tier.

Source: src/cli/commands/logout.ts

Synopsis

locopilot logout

No flags.

Behaviour

  1. Reads ~/.locopilot/config.json. If missing or token-less, prints Not logged in — nothing to remove. and exits 0.
  2. Removes the token field while preserving the rest of the file (e.g. cached tunnel URL).
  3. If the file becomes empty after the deletion, deletes it entirely.
✔ Logged out. Pro tier disabled.

Run `locopilot login` to re-enable Pro tier.

The very next CLI call will detect the missing token via isProUser() and revert to Free-tier behaviour automatically — no restart required.