Turn any machine into a remotely controllable command-execution agent. One-line install, public URL access, cross-platform: Linux / macOS / Windows / Android.
Built on aitun.cc tunnel — no public IP or port forwarding required. Get a public HTTPS URL on startup, controllable from any device.
Auto-detects platform architecture, downloads the correct binary to /usr/local/bin or ~/.local/bin.
Three steps after install — you have a public-controllable remote agent.
Prints Public URL + Auth token on startup. Save them.
Returns JSON: exit_code, stdout, stderr, duration_ms.
SHA256 auto-verified, atomic rename, crash-safe.
All binaries are statically linked — zero runtime dependencies. See checksums-sha256.txt for SHA256.
| Platform | Architecture | File | Size | Download |
|---|---|---|---|---|
| Linux | x86-64 (amd64) | samcommand-linux-amd64 |
7.4 MB | Download |
| Linux | ARM 64-bit (arm64) | samcommand-linux-arm64 |
6.8 MB | Download |
| Linux | ARM 32-bit v7 (armv7l) | samcommand-linux-arm |
7.1 MB | Download |
| Windows | x86-64 (amd64) | samcommand-windows-amd64.exe |
7.5 MB | Download |
| macOS | Intel (amd64) | samcommand-darwin-amd64 |
7.5 MB | Download |
| macOS | Apple Silicon (arm64) | samcommand-darwin-arm64 |
6.9 MB | Download |
| Install script | Linux / macOS | install.sh |
2.1 KB | Download |
| Install script | Windows PowerShell | install.ps1 |
2.0 KB | Download |
All endpoints (except /health) require Authorization: Bearer <token> or X-SamCommand-Token: <token> header.
| Method | Path | Purpose |
|---|---|---|
GET | /health | Liveness probe (no auth) |
GET | /info | Host info (OS, CPU, IP, uptime) |
POST | /exec | Run shell command (bash on Linux / cmd on Windows) |
POST | /ps1 | Run PowerShell command (Windows only) |
POST | /ssh | Run command on remote host via SSH (jump host) |
GET | /ls?path=... | List directory |
GET | /stat?path=... | File info + SHA256 |
POST | /upload?path=... | Upload file (raw body or multipart) |
GET | /download?path=... | Download file (streaming) |