@halfagiraf/clawx 0.1.15 → 0.1.16

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 +45 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -570,11 +570,54 @@ The agent will create files, install dependencies, build, and verify — iterati
570
570
 
571
571
  ### Remote scaffolding via SSH
572
572
 
573
+ 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.
574
+
575
+ **1. Configure an SSH target** in `clawx.json` (in your working directory):
576
+
577
+ ```json
578
+ {
579
+ "sshTargets": {
580
+ "pi": {
581
+ "host": "192.168.1.198",
582
+ "username": "dev",
583
+ "privateKeyPath": "~/.ssh/id_ed25519"
584
+ }
585
+ }
586
+ }
587
+ ```
588
+
589
+ **2. Run a prompt that references the target:**
590
+
573
591
  ```bash
574
- # With SSH targets configured in .env or clawx.json
575
- clawx run "SSH into my Pi and set up a Node.js service that monitors CPU temperature and exposes it as a Prometheus metric on port 9100"
592
+ clawx run "SSH into the pi and run: hostname && uname -a"
576
593
  ```
577
594
 
595
+ **3. Clawx connects and executes:**
596
+
597
+ ```
598
+ [tool] ssh_run target="pi" command="hostname && uname -a"
599
+ [pi] exit=0 (943ms)
600
+ ubuntu
601
+ Linux ubuntu 6.14.0-1019-raspi aarch64 GNU/Linux
602
+ ```
603
+
604
+ Tested and verified with DeepSeek API → Raspberry Pi 4 (Ubuntu aarch64) over local network.
605
+
606
+ **More SSH examples:**
607
+
608
+ ```bash
609
+ # Install and start a service on a remote Pi
610
+ clawx run "SSH into the pi, install Node.js, create an Express API with a /hello endpoint, start it on port 3000, and verify it's running with curl"
611
+
612
+ # Set up monitoring
613
+ clawx run "SSH into the pi and set up a Node.js service that monitors CPU temperature and exposes it as a Prometheus metric on port 9100"
614
+
615
+ # Deploy to a server
616
+ clawx run "SSH into server, pull the latest code from git, run npm install, and restart the PM2 process"
617
+ ```
618
+
619
+ You can define multiple targets (pi, server, vm, etc.) and reference them by name in your prompts.
620
+
578
621
  ### Interactive basic REPL
579
622
 
580
623
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halfagiraf/clawx",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
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": {