nanocoder icon indicating copy to clipboard operation
nanocoder copied to clipboard

[Feature] /whoami Debug Command

Open akramcodez opened this issue 3 months ago • 1 comments

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.

akramcodez avatar Aug 24 '26 09:08 akramcodez

Picking this up - a fix will follow shortly.

awhite0030 avatar Aug 29 '26 22:08 awhite0030