botschat 0.1.21 → 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 CHANGED
@@ -5,6 +5,7 @@
5
5
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
6
6
  [![macOS](https://img.shields.io/badge/Download-macOS_App-black?logo=apple&logoColor=white)](https://github.com/botschat-app/botsChat/releases/latest/download/BotsChat-mac.dmg)
7
7
  [![iOS](https://img.shields.io/badge/Download-iOS_App-blue?logo=apple&logoColor=white)](https://apps.apple.com/app/botschat-chat-with-agent/id6759292058)
8
+ [![Android](https://img.shields.io/badge/Download-Android_App-green?logo=android&logoColor=white)](https://play.google.com/store/apps/details?id=app.botschat.console)
8
9
 
9
10
  A self-hosted, **end-to-end encrypted** chat interface for [OpenClaw](https://github.com/openclaw/openclaw) AI agents.
10
11
 
@@ -105,7 +106,7 @@ BotsChat is **100% open source** — the [same code](https://github.com/botschat
105
106
  | **B. Run Locally** | Development, no cloud account | Yes |
106
107
  | **C. Deploy to Cloudflare** | Remote access (e.g. from phone) | Yes |
107
108
 
108
- > **Native Apps**: A macOS client is available — [download the latest DMG](https://github.com/botschat-app/botsChat/releases/latest/download/BotsChat-mac.dmg) (signed and notarized, Apple Silicon + Intel). An iOS app is also available on the [App Store](https://apps.apple.com/app/botschat-chat-with-agent/id6759292058).
109
+ > **Native Apps**: A macOS client is available — [download the latest DMG](https://github.com/botschat-app/botsChat/releases/latest/download/BotsChat-mac.dmg) (signed and notarized, Apple Silicon + Intel). An iOS app is available on the [App Store](https://apps.apple.com/app/botschat-chat-with-agent/id6759292058). An Android app is available on [Google Play](https://play.google.com/store/apps/details?id=app.botschat.console).
109
110
 
110
111
  Pick one below and follow its steps, then continue to [Install the OpenClaw Plugin](#install-the-openclaw-plugin).
111
112
 
@@ -252,6 +253,72 @@ Open the BotsChat web UI in your browser, sign in, and start chatting with your
252
253
  4. Your API keys, agent configs, and data never leave your machine — only chat messages travel through the relay.
253
254
  5. With **E2E encryption** enabled, messages are encrypted **before** step 3 and decrypted **after** — the ConnectionDO and database only ever see ciphertext.
254
255
 
256
+ ## CLI
257
+
258
+ BotsChat includes a command-line client with full E2E encryption support. No install needed — use `npx`:
259
+
260
+ ```bash
261
+ npx @botschat/botschat login # Login via browser (Google/GitHub/Apple)
262
+ npx @botschat/botschat chat "Hello" # Send a message
263
+ npx @botschat/botschat chat -i # Interactive chat
264
+ ```
265
+
266
+ Or install globally for shorter commands:
267
+
268
+ ```bash
269
+ npm i -g @botschat/botschat
270
+ botschat login
271
+ botschat chat "Hello"
272
+ ```
273
+
274
+ ### Login
275
+
276
+ ```bash
277
+ npx @botschat/botschat login # Browser OAuth (recommended)
278
+ npx @botschat/botschat --url http://localhost:8787 login --dev --secret <secret> # Local dev
279
+ ```
280
+
281
+ Running `login` opens your browser, you sign in normally, and credentials are saved to `~/.botschat/config.json`.
282
+
283
+ ### Chat
284
+
285
+ ```bash
286
+ npx @botschat/botschat chat "What can you do?" # Single-shot
287
+ npx @botschat/botschat chat -i # Interactive REPL
288
+ echo "Summarize this log" | npx @botschat/botschat chat --pipe # Pipe from stdin
289
+ npx @botschat/botschat --json chat "Hello" # JSON output
290
+ ```
291
+
292
+ ### Management
293
+
294
+ ```bash
295
+ npx @botschat/botschat whoami # Current user info
296
+ npx @botschat/botschat channels # List channels
297
+ npx @botschat/botschat sessions <channelId> # List sessions
298
+ npx @botschat/botschat models # List available models
299
+ npx @botschat/botschat models set <modelId> # Set default model
300
+ npx @botschat/botschat tasks # List background tasks
301
+ npx @botschat/botschat tasks run <channelId> <taskId> # Run a task now
302
+ npx @botschat/botschat jobs <taskId> # Job execution history
303
+ npx @botschat/botschat messages <sessionKey> # Message history
304
+ npx @botschat/botschat tokens # Manage pairing tokens
305
+ npx @botschat/botschat status # OpenClaw connection status
306
+ npx @botschat/botschat config # View config
307
+ npx @botschat/botschat config e2e --password <pwd> # Set E2E encryption password
308
+ ```
309
+
310
+ ### OpenClaw Skill
311
+
312
+ Use the CLI as an [OpenClaw skill](https://openclawai.com/docs/skills) — your agent can interact with BotsChat directly:
313
+
314
+ ```bash
315
+ npx skills add @botschat/botschat
316
+ ```
317
+
318
+ This registers `/botschat` as a skill in OpenClaw, providing commands like `botschat chat`, `botschat channels`, `botschat status`, etc.
319
+
320
+ ---
321
+
255
322
  ## Plugin Reference
256
323
 
257
324
  ### Configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botschat",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "A self-hosted chat interface for OpenClaw AI agents",
5
5
  "workspaces": [
6
6
  "packages/*"
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@botschat/botschat",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "BotsChat channel plugin for OpenClaw — connects your OpenClaw agent to the BotsChat cloud platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "bin": {
9
- "botschat-setup": "./bin/botschat-setup.mjs"
9
+ "botschat-setup": "./bin/botschat-setup.mjs",
10
+ "botschat": "./bin/botschat-cli.mjs"
10
11
  },
11
12
  "openclaw": {
12
13
  "extensions": [
@@ -37,7 +38,8 @@
37
38
  "files": [
38
39
  "dist/",
39
40
  "bin/",
40
- "openclaw.plugin.json"
41
+ "openclaw.plugin.json",
42
+ "SKILL.md"
41
43
  ],
42
44
  "publishConfig": {
43
45
  "access": "public"
@@ -46,6 +48,7 @@
46
48
  "openclaw": "*"
47
49
  },
48
50
  "dependencies": {
51
+ "commander": "^12",
49
52
  "ws": "^8.18.0"
50
53
  },
51
54
  "devDependencies": {