Skip to content

Commit d3e6bbc

Browse files
authored
Merge pull request #148 from kalibr-ai/fix/openclaw-prompt-email
fix: pass email via --email flag in kalibr prompt --openclaw, remove ask-user step
2 parents c0b115e + f9c13d0 commit d3e6bbc

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ This outputs (and copies to your clipboard) a complete setup sequence that instr
103103
# Standard prompt (Claude Code / Cursor integration)
104104
kalibr prompt
105105

106-
# Full autonomous onboarding for OpenClaw / Hermes
106+
# Website-driven (email pre-filled, zero human steps):
107+
kalibr prompt --openclaw --email [email protected]
108+
109+
# Manual (user fills in email themselves):
107110
kalibr prompt --openclaw
108111
```
109112

kalibr/cli/prompt_cmd.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
2323
1. pip install kalibr huggingface_hub
2424
25-
2. kalibr auth --agent --email <ASK_USER_FOR_EMAIL>
26-
Ask the user: "What email should I use to provision your Kalibr account?"
27-
Then run: kalibr auth --agent --email <that_email>
25+
2. kalibr auth --agent --email <YOUR_EMAIL>
2826
2927
3. Source credentials into shell:
3028
- If ~/.zshrc exists: append KALIBR_API_KEY and KALIBR_TENANT_ID exports
@@ -71,13 +69,27 @@ def prompt(
7169
"--openclaw",
7270
help="Output the full autonomous OpenClaw / Hermes agent onboarding prompt.",
7371
),
72+
email: Optional[str] = typer.Option(
73+
None,
74+
"--email",
75+
help="Pre-fill user email for OpenClaw onboarding (avoids prompting). Example: kalibr prompt --openclaw --email [email protected]",
76+
),
7477
) -> None:
7578
"""Output a ready-to-paste Claude Code / Cursor integration prompt.
7679
7780
With --openclaw: outputs the full autonomous onboarding sequence for
7881
OpenClaw / Hermes agent orchestrators. Zero human steps after pasting.
7982
"""
80-
text = OPENCLAW_PROMPT_TEXT if openclaw else PROMPT_TEXT
83+
if openclaw:
84+
if email:
85+
text = OPENCLAW_PROMPT_TEXT.replace(
86+
"kalibr auth --agent --email <YOUR_EMAIL>",
87+
f"kalibr auth --agent --email {email}",
88+
)
89+
else:
90+
text = OPENCLAW_PROMPT_TEXT
91+
else:
92+
text = PROMPT_TEXT
8193

8294
console.print(text)
8395
console.print()

0 commit comments

Comments
 (0)