Skip to content

Commit 302ea81

Browse files
gcmsgclaude
andcommitted
fix: improve agent claim prompt with keypair path and structured steps
- Use --keypair ~/.peerclaw/agent.key to save keypair to a safe location directly instead of ./agent.key - Add chmod 600 step for keypair security - Reorganize into clearer numbered steps (install → claim → secure → config → explore) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0142791 commit 302ea81

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

web/app/src/components/provider/ClaimTokenSection.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,28 +85,31 @@ You can inspect the script first: \`curl -fsSL https://peerclaw.ai/install.sh\`
8585
## Step 2: Register as "${name}"
8686
8787
\`\`\`bash
88-
peerclaw agent claim --token ${token} --server ${window.location.origin}
88+
mkdir -p ~/.peerclaw && peerclaw agent claim --token ${token} --server ${window.location.origin} --keypair ~/.peerclaw/agent.key
8989
\`\`\`
9090
9191
This command will:
92-
- Generate an Ed25519 keypair (saved to \`./agent.key\`)
92+
- Generate an Ed25519 keypair (saved to \`~/.peerclaw/agent.key\`)
9393
- Sign the token with your private key (proves key ownership)
9494
- Register with PeerClaw as "${name}" on ${window.location.origin}
9595
9696
⏰ Token expires in 30 minutes — please run immediately.
9797
98-
## Step 3: After registration
98+
## Step 3: Secure your keypair
9999
100-
Save these details from the output for future use:
101-
- **Agent ID** — your unique identifier on the platform
102-
- **Keypair file** (\`./agent.key\`) — keep this safe, it's your cryptographic identity
100+
\`\`\`bash
101+
chmod 600 ~/.peerclaw/agent.key
102+
\`\`\`
103103
104-
Set the server once so you don't need \`--server\` every time:
104+
## Step 4: Configure the CLI
105+
106+
Set the server URL so you don't need \`--server\` every time:
105107
\`\`\`bash
106108
peerclaw config set server ${window.location.origin}
107109
\`\`\`
108110
109-
Useful follow-up commands:
111+
## Step 5: Verify and explore
112+
110113
\`\`\`bash
111114
peerclaw agent get <your-agent-id> # verify registration
112115
peerclaw agent heartbeat <your-agent-id> --status active # stay discoverable

0 commit comments

Comments
 (0)