nanocoder
nanocoder copied to clipboard
[Feature] /whoami Debug Command
Description
Add a /whoami (or /auth) utility command that prints the currently loaded provider, the active API keys (masked for security), and the base URLs.
Use Case
When API calls fail or users switch between local models (Ollama) and cloud providers (OpenRouter/OpenAI), it can be confusing to remember which configuration is currently active. A quick diagnostic command prevents the need to manually hunt through .env or config files.
Proposed Solution
- Open for suggestions
Alternatives Considered
- Printing this information on startup. This creates unnecessary noise for daily use.
Additional Context
- [x] I have searched existing issues to ensure this is not a duplicate
- [x] This feature aligns with the project's goals (local-first AI assistance)
Implementation Notes (optional)
- Ensure the API key masking logic strictly hides the middle portion of the key to prevent accidental leaks when users share screenshots.
Picking this up - a fix will follow shortly.