MCPcopy Create free account
hub / github.com/RightNow-AI/rightnow-cli / _setup_api_key

Method _setup_api_key

rightnow_cli/interactive.py:500–514  ·  view source on GitHub ↗

Setup API key.

(self)

Source from the content-addressed store, hash-verified

498 self._setup_api_key()
499
500 def _setup_api_key(self):
501 """Setup API key."""
502 console.print("\n[yellow]Get your API key from: https://openrouter.ai[/yellow]")
503
504 questions = [
505 inquirer.Password('key', message="Enter API key")
506 ]
507
508 try:
509 answers = inquirer.prompt(questions)
510 if answers and answers['key']:
511 self.cache_manager.save_api_key(answers['key'])
512 console.print("[green]✓ API key saved[/green]\n")
513 except Exception as e:
514 console.print(f"[red]Error: {e}[/red]\n")

Callers 2

_optimize_workflowMethod · 0.95
_show_configMethod · 0.95

Calls 1

save_api_keyMethod · 0.80

Tested by

no test coverage detected