diff --git a/README.md b/README.md index 5200574..37569d4 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,10 @@ This outputs (and copies to your clipboard) a complete setup sequence that instr # Standard prompt (Claude Code / Cursor integration) kalibr prompt -# Full autonomous onboarding for OpenClaw / Hermes +# Website-driven (email pre-filled, zero human steps): +kalibr prompt --openclaw --email user@example.com + +# Manual (user fills in email themselves): kalibr prompt --openclaw ``` diff --git a/kalibr/cli/prompt_cmd.py b/kalibr/cli/prompt_cmd.py index 92b2693..0e29d4e 100644 --- a/kalibr/cli/prompt_cmd.py +++ b/kalibr/cli/prompt_cmd.py @@ -22,9 +22,7 @@ 1. pip install kalibr huggingface_hub -2. kalibr auth --agent --email - Ask the user: "What email should I use to provision your Kalibr account?" - Then run: kalibr auth --agent --email +2. kalibr auth --agent --email 3. Source credentials into shell: - If ~/.zshrc exists: append KALIBR_API_KEY and KALIBR_TENANT_ID exports @@ -71,13 +69,27 @@ def prompt( "--openclaw", help="Output the full autonomous OpenClaw / Hermes agent onboarding prompt.", ), + email: Optional[str] = typer.Option( + None, + "--email", + help="Pre-fill user email for OpenClaw onboarding (avoids prompting). Example: kalibr prompt --openclaw --email user@example.com", + ), ) -> None: """Output a ready-to-paste Claude Code / Cursor integration prompt. With --openclaw: outputs the full autonomous onboarding sequence for OpenClaw / Hermes agent orchestrators. Zero human steps after pasting. """ - text = OPENCLAW_PROMPT_TEXT if openclaw else PROMPT_TEXT + if openclaw: + if email: + text = OPENCLAW_PROMPT_TEXT.replace( + "kalibr auth --agent --email ", + f"kalibr auth --agent --email {email}", + ) + else: + text = OPENCLAW_PROMPT_TEXT + else: + text = PROMPT_TEXT console.print(text) console.print()