Skip to content

Prompt for API key on first run - #12

Merged
lionuncle merged 1 commit into
mainfrom
feat/api-key-prompt
Apr 16, 2026
Merged

Prompt for API key on first run#12
lionuncle merged 1 commit into
mainfrom
feat/api-key-prompt

Conversation

@lionuncle

Copy link
Copy Markdown
Contributor

Summary

  • When no ANTHROPIC_API_KEY is found in env or config, rpr now prompts the user to paste it interactively
  • Saves the key to ~/.config/rpr/config.json so it only asks once
  • Env var still takes priority if set

Test plan

  • Unset ANTHROPIC_API_KEY and remove any config — rpr should prompt for the key
  • After pasting, verify ~/.config/rpr/config.json contains the key
  • Run again — should not prompt, uses saved key
  • Set env var — should use env var, never prompt

🤖 Generated with Claude Code

When ANTHROPIC_API_KEY is not found in env or config, rpr now
interactively asks the user to paste it, then saves it to
~/.config/rpr/config.json so it never asks again.
@lionuncle
lionuncle merged commit 7fe4bf5 into main Apr 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant