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.
- +0Prompt · +0pi怎么登出gpt? (how do I log out of GPT in pi?)
- +0mAgent did · +0mRead the pi README and grepped docs/providers.md and README.md for 'login'/'logout' references to find the relevant CLI commands.
- +0mOutcome · +0mAnswered 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.