Skip to content
PidocsCLI & tooling

Find how to log out of GPT provider in pi CLI

Session from pi-traces on Hugging Face by Becks723 · MIT · condensed by Coders Talk

12ssession
0interventions
GOAL

The developer wanted to know how to log out of the GPT/OpenAI account in the pi coding agent CLI.

  1. Prompt · +0
    pi怎么登出gpt? (how do I log out of GPT in pi?)
  2. Agent did · +0m
    Read the pi README and grepped docs/providers.md and README.md for 'login'/'logout' references to find the relevant CLI commands.
  3. Outcome · +0m
    Answered with the /logout command to sign out of a provider, plus the fallback of deleting ~/.pi/agent/auth.json (which clears all provider logins) and /login to sign back in.
VERDICT

I'd just ask this directly next time since it's a quick doc lookup - the agent found the answer fast by grepping the local docs instead of guessing. No corrections were needed; it correctly flagged that deleting the auth file wipes all providers, not just GPT, which was the useful caveat.

I tried this · 0

Discussion · 0

How Builds work