@keychat-io/keychat 0.1.19 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -7
- package/package.json +1 -1
- package/scripts/install.sh +1 -1
- package/scripts/postinstall.mjs +2 -2
- package/src/channel.ts +1 -1
- package/src/paths.ts +1 -1
package/README.md
CHANGED
|
@@ -22,20 +22,20 @@ Supported platforms: macOS (ARM/x64), Linux (x64/ARM64).
|
|
|
22
22
|
Alternatively, install via shell script:
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
curl -fsSL https://raw.githubusercontent.com/keychat-io/keychat/main/scripts/install.sh | bash
|
|
25
|
+
curl -fsSL https://raw.githubusercontent.com/keychat-io/keychat-openclaw/main/scripts/install.sh | bash
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### Security Warnings
|
|
29
29
|
|
|
30
30
|
During installation, OpenClaw's security scanner may show three warnings. All are expected:
|
|
31
31
|
|
|
32
|
-
| Warning
|
|
33
|
-
|
|
34
|
-
| Shell command execution (bridge-client.ts) | Spawns a Rust sidecar for Signal Protocol and MLS encryption.
|
|
35
|
-
| Shell command execution (keychain.ts)
|
|
36
|
-
| Shell command execution (notify.ts)
|
|
32
|
+
| Warning | Reason |
|
|
33
|
+
| ------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
34
|
+
| Shell command execution (bridge-client.ts) | Spawns a Rust sidecar for Signal Protocol and MLS encryption. |
|
|
35
|
+
| Shell command execution (keychain.ts) | Stores identity mnemonics in the OS keychain (macOS Keychain / Linux libsecret). |
|
|
36
|
+
| Shell command execution (notify.ts) | Notifies the agent on startup so it can send the Keychat ID and QR code to the user. |
|
|
37
37
|
|
|
38
|
-
Source code is fully open: [github.com/keychat-io/keychat](https://github.com/keychat-io/keychat)
|
|
38
|
+
Source code is fully open: [github.com/keychat-io/keychat-openclaw](https://github.com/keychat-io/keychat-openclaw)
|
|
39
39
|
|
|
40
40
|
### Upgrade
|
|
41
41
|
|
|
@@ -58,6 +58,16 @@ After `openclaw gateway restart`, the agent will send you its **Keychat ID**, **
|
|
|
58
58
|
|
|
59
59
|
Open the [Keychat app](https://keychat.io) → tap the link, paste the npub, or scan the QR code to add as contact. If `dmPolicy` is `open` (default after auto-init), the agent accepts immediately.
|
|
60
60
|
|
|
61
|
+
**Can't find the public key?** Check your config file or gateway logs:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# View the agent's npub in config
|
|
65
|
+
cat ~/.openclaw/openclaw.json | grep npub
|
|
66
|
+
|
|
67
|
+
# Or watch the gateway logs for the Keychat ID
|
|
68
|
+
openclaw logs --follow
|
|
69
|
+
```
|
|
70
|
+
|
|
61
71
|
## Configuration
|
|
62
72
|
|
|
63
73
|
All options go under `channels.keychat` in your OpenClaw config (`~/.openclaw/openclaw.json`):
|
package/package.json
CHANGED
package/scripts/install.sh
CHANGED
|
@@ -173,7 +173,7 @@ echo " 🎉 Keychat installed successfully!"
|
|
|
173
173
|
echo "════════════════════════════════════════"
|
|
174
174
|
echo ""
|
|
175
175
|
echo "Your agent's Keychat ID will appear in the gateway logs."
|
|
176
|
-
echo "Run 'openclaw
|
|
176
|
+
echo "Run 'openclaw logs --follow' to see it."
|
|
177
177
|
echo ""
|
|
178
178
|
echo "To connect: open the Keychat app and scan the QR code."
|
|
179
179
|
echo ""
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -137,5 +137,5 @@ console.log("Next step: restart the gateway to activate Keychat");
|
|
|
137
137
|
console.log("");
|
|
138
138
|
console.log(" openclaw gateway restart");
|
|
139
139
|
console.log("");
|
|
140
|
-
console.log("Your agent's Keychat ID will appear in the logs.");
|
|
141
|
-
console.log("Run 'openclaw
|
|
140
|
+
console.log("Your agent's Keychat ID will appear in the gateway logs.");
|
|
141
|
+
console.log("Run 'openclaw logs --follow' to see it.");
|
package/src/channel.ts
CHANGED
|
@@ -714,7 +714,7 @@ export const keychatPlugin: ChannelPlugin<ResolvedKeychatAccount> = {
|
|
|
714
714
|
ctx.log?.info(`[${account.accountId}] Bridge sidecar started`);
|
|
715
715
|
|
|
716
716
|
// 2. Initialize Signal Protocol DB
|
|
717
|
-
const dbPath = `~/.openclaw/keychat
|
|
717
|
+
const dbPath = `~/.openclaw/keychat/signal-${account.accountId}.db`;
|
|
718
718
|
await bridge.init(dbPath);
|
|
719
719
|
ctx.log?.info(`[${account.accountId}] Signal DB initialized`);
|
|
720
720
|
|
package/src/paths.ts
CHANGED
|
@@ -19,7 +19,7 @@ export const WORKSPACE_KEYCHAT_DIR = join(HOME, ".openclaw", "workspace", "keych
|
|
|
19
19
|
|
|
20
20
|
/** Signal DB path for a given account */
|
|
21
21
|
export function signalDbPath(accountId: string): string {
|
|
22
|
-
return join(
|
|
22
|
+
return join(KEYCHAT_DIR, `signal-${accountId}.db`);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/** QR code image path for a given account */
|