@halfagiraf/clawx 0.1.18 → 0.1.19

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.
Files changed (2) hide show
  1. package/README.md +36 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -408,21 +408,19 @@ CLAWDEX_EXEC_TIMEOUT=120000 # Tool execution timeout (ms)
408
408
 
409
409
  ### SSH targets
410
410
 
411
- Define named SSH targets via environment or `clawx.json`:
411
+ Clawx has a dedicated `ssh_run` tool — the model calls it by target name, no raw SSH needed. Define targets in `clawx.json`:
412
412
 
413
- ```bash
414
- CLAWDEX_SSH_TARGETS='{"pi":{"host":"192.168.1.100","username":"pi","privateKeyPath":"~/.ssh/id_rsa"}}'
415
- ```
413
+ **Global (works from any directory):** `~/.clawx/clawx.json`
416
414
 
417
- Or in `clawx.json`:
415
+ **Per-project (overrides global):** `./clawx.json` in your working directory
418
416
 
419
417
  ```json
420
418
  {
421
419
  "sshTargets": {
422
420
  "pi": {
423
- "host": "192.168.1.100",
424
- "username": "pi",
425
- "privateKeyPath": "~/.ssh/id_rsa"
421
+ "host": "192.168.1.198",
422
+ "username": "dev",
423
+ "privateKeyPath": "~/.ssh/id_ed25519"
426
424
  },
427
425
  "server": {
428
426
  "host": "myserver.com",
@@ -434,6 +432,35 @@ Or in `clawx.json`:
434
432
  }
435
433
  ```
436
434
 
435
+ Or via environment variable:
436
+
437
+ ```bash
438
+ CLAWDEX_SSH_TARGETS='{"pi":{"host":"192.168.1.198","username":"dev","privateKeyPath":"~/.ssh/id_ed25519"}}'
439
+ ```
440
+
441
+ **Quick setup:**
442
+
443
+ ```bash
444
+ # Create global config dir (if it doesn't exist)
445
+ mkdir -p ~/.clawx
446
+
447
+ # Create global SSH targets
448
+ cat > ~/.clawx/clawx.json << 'EOF'
449
+ {
450
+ "sshTargets": {
451
+ "pi": {
452
+ "host": "192.168.1.198",
453
+ "username": "dev",
454
+ "privateKeyPath": "~/.ssh/id_ed25519"
455
+ }
456
+ }
457
+ }
458
+ EOF
459
+
460
+ # Now SSH works from any directory
461
+ clawx run "SSH into the pi and check what's running"
462
+ ```
463
+
437
464
  ### Config file
438
465
 
439
466
  Place a `clawx.json` in your working directory:
@@ -575,7 +602,7 @@ The agent will create files, install dependencies, build, and verify — iterati
575
602
 
576
603
  Clawx can SSH into other machines on your network and run commands — from installing packages to deploying services. You describe what you want on your desktop; it happens on the remote machine.
577
604
 
578
- **1. Configure an SSH target** in `clawx.json` (in your working directory):
605
+ **1. Configure an SSH target** in `~/.clawx/clawx.json` (global) or `./clawx.json` (per-project):
579
606
 
580
607
  ```json
581
608
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halfagiraf/clawx",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Terminal-first coding agent — runs locally with Ollama, DeepSeek, OpenAI, or any OpenAI-compatible endpoint",
5
5
  "type": "module",
6
6
  "bin": {