Pet VADGR

Separator

An open-source loop that controls your computer, reachable from your phone.

Describe your work in a sentence. Vadgr runs it on your machine - writing code, controlling apps, clicking buttons, and delivering results - while you do something else. You start it from this CLI or from the phone app, and watch it from either. It is not tied to one model vendor: the machine talks to whichever provider you point it at. Cross-platform: Linux, Windows, WSL2 and macOS. ## Platform
| | Technology | Status | Role | |:---:|:---:|:---:|:---| | | Linux | Supported | Built, tested and released on every change | | | Windows | Supported | Native, with its own installer | | | WSL2 | Supported | Desktop automation reaches the Windows side | | | macOS | Limited in 0.4.12 | Computer use must start from the terminal that holds Accessibility and Screen Recording; signed background identity arrives in 0.5.0 |
## Install Release engineering uses a manually approved, default-branch candidate workflow. Windows candidates remain unpublished while signatures, approved legal inputs and installation behaviour are checked. A keyless manifest attestation binds the held installer and its legal and SBOM hashes; its offline verification bundle is retained with the candidate. This does not replace Windows code signing, approve unreviewed terms, or make an untested candidate a release. A separate credential-free dependency producer builds the missing Windows ARM64 and Intel macOS cryptography wheels from pinned sources on native runners. Its validated, attested output still requires exact-hash review before payload use; it grants no signing approval and does not qualify an installer. Works on **Linux**, **WSL**, **Windows** and **macOS**. Vadgr carries its pinned desktop-automation runtime on all four. The owner needs no Python, pip or uv. On macOS `0.4.12`, grant Accessibility and Screen Recording to the terminal named by the operating-system dialogs, restart that terminal, and start vadgr from it. Those grants do not follow the private interpreter into a login, `launchd` or independently started daemon. The signed `0.5.0` distribution owns the stable application identity required for those background launches. The installer also sets up git and the build toolchain. No Node.js and no browser are required. ```bash # Linux / macOS / WSL curl -fsSL https://raw.githubusercontent.com/MONTBRAIN/vadgr/master/install.sh | bash ``` ```powershell # Windows (PowerShell) irm https://raw.githubusercontent.com/MONTBRAIN/vadgr/master/install.ps1 | iex ``` The daemon owns OpenAI, Gemini and Anthropic connections, their authenticated model catalogs and the machine default. It calls provider APIs directly and does not use an agent CLI as a model runtime. Restart your terminal, then: ```bash vadgr start ``` ### Vadgr CLI **Services:** | Command | Description | |---------|-------------| | `vadgr start` | Start the vadgr daemon (`vadgr api` is the same command) | | `vadgr stop` | Stop the daemon | | `vadgr restart` | Restart the daemon | | `vadgr status` | Show whether the daemon is running | | `vadgr logs` | Tail the daemon's log | | `vadgr update` | Pull the latest code, rebuild and reinstall the binaries | **Runs:** | Command | Description | |---------|-------------| | `vadgr run ""` | Start a run from a task sentence and watch it | | `vadgr run "" --background` | Start it and return straight away | | `vadgr run "" -p -m ` | Run it on a named provider and model | | `vadgr runs list [--status failed]` | List runs | | `vadgr runs get ` | Show run details | | `vadgr runs cancel ` | Cancel a running run | | `vadgr runs resume ` | Resume a failed run | `vadgr run` exits `0` when the run completed, `1` when it failed, `2` on a usage error, `3` when the daemon is not reachable, and `130` on Ctrl-C, which stops watching and leaves the run going. **Info:** | Command | Description | |---------|-------------| | `vadgr health` | Check the daemon's health | | `vadgr providers` | List available providers and models | | `vadgr computer-use enable` | Enable desktop automation | | `vadgr computer-use disable` | Disable desktop automation | | `vadgr computer-use status` | Show computer use and daemon status | **Providers:** | Command | Description | |---------|-------------| | `vadgr provider login [openai\|gemini\|anthropic]` | Connect or reauthenticate one provider | | `vadgr provider status [--refresh] [provider]` | Show connections and authenticated catalogs | | `vadgr provider logout ` | Disconnect a provider that is not the default | | `vadgr model list` | List models from every connected provider | | `vadgr model default [provider/model]` | Live-test and set the machine default | ## Architecture ```mermaid graph LR Owner((Owner)) -->|on the box| VCLI[vadgr CLI] Phone((Phone)) -->|built-in transport or Tailscale| API VCLI -->|REST /api| API[The daemon
the same binary, serving] VCLI <-->|WebSocket| API API -->|drives| Loop[The agent loop
and its MCP host] API -->|read/write| DB[(SQLite
in the state root)] Loop -->|writes| Journal[Run journals
in the state root] Loop -.->|if enabled| CU[Computer Use
Desktop Automation] CU -->|controls| Desktop[Host OS
Mouse, Keyboard, Screen] ``` ## Modules ### The CLI `vadgr` starts runs, watches them, pairs the phone and manages the daemon. It talks to the daemon over HTTP and to a run over a WebSocket, so it is a client like any other, with no private path in. ### The daemon One binary. It serves the API the phone and the CLI both call, runs the loop, owns the MCP host and the cua connection, and writes an append-only journal per run so a killed machine resumes rather than restarts. Its state lives below the platform's local-state directory, never below the directory it was started from. ### Reaching it from the phone The daemon serves every transport it supports and reports the list; the phone picks between them at pairing, and a paired phone can switch to another one later without pairing again. Today that list is two entries on every machine: - **Built-in.** An [iroh](https://www.iroh.computer/) endpoint inside the binary. Nothing installs it and nothing switches it on. The machine's identity is a public key, a relay introduces the two ends, and most connections go direct after that. Traffic is end-to-end encrypted between the two endpoint keys; a relay forwards sealed packets it cannot read. - **Tailscale.** The tailnet adapter, as before. Whether it works is discovered when it is used: if tailscaled is not running here, pairing says so in that transport's own words and the built-in transport carries the phone. Run `vadgr pair` and scan the QR. The code is one-time and valid for five minutes, and every route needs both an authorized peer and the device token. Two settings exist, and neither is needed for normal use: - `VADGR_IROH_RELAYS` points the built-in transport's rendezvous somewhere else: a comma-separated list of `https` relay URLs for self-hosted [iroh-relay](https://github.com/n0-computer/iroh) instances, or `none` for a directly reachable machine. Unset means n0's public relays, which are fine for development and testing; they see connection metadata (addresses, timing, volume), never payloads. `none` is deliberately not the default: it fails on exactly the networks strangers bring, and the app cannot tell "machine off" from "this NAT pair cannot meet". - `VADGR_TRANSPORT=loopback` serves nothing off this machine. It is the mode tests and CI run in, it takes no other value, and removing it restores the default: the machine serves what it supports. The endpoint's secret key lives at `credentials/iroh_secret_key` under the state root, owner-only. Keep it: a new key is a new machine as far as every paired phone is concerned. ### Desktop Automation Vadgr installs its pinned desktop-automation MCP server inside its private payload. It gives runs eyes and hands: take a screenshot, reason, click or type, then repeat. Do not install Python or `vadgr-computer-use` separately. Linux prints its system-package plan before changing anything. WSL and Windows need no payload setup. macOS reports the grants its private interpreter needs. ## Structure ``` Vadgr/ ├── Cargo.toml # The crate: one daemon, one CLI ├── src/ │ ├── main.rs # The daemon │ ├── cli/ # The `vadgr` command │ ├── config.rs # Where a machine's state lives, decided in one place │ ├── migrate.rs # Bringing older state to that root, before serving │ ├── routes/ # The HTTP endpoints │ ├── ws/ # The two run sockets │ ├── engine/ # The loop, its journal, providers and the MCP host │ ├── auth/ # Pairing and the two gates │ ├── db/ # SQLite schema and repositories │ └── transport/ # The registry: loopback, the built-in iroh transport, Tailscale ├── tests/ # Integration tests ├── E2E/ # One runbook per release, and its harness ├── install.sh, install.ps1 # The installer └── scripts/ # The repository's own gates ``` Desktop automation ships as a released package from [vadgr-computer-use](https://github.com/MONTBRAIN/vadgr-computer-use). Vadgr pins and installs that package inside its own private payload. ## Contributing 1. Create a branch from `master`: ```bash git checkout master && git checkout -b feature/your-change ``` 2. Make your changes and commit: ```bash git add . && git commit -m "your message" ``` 3. Push and open a PR into `master`: ```bash git push -u origin feature/your-change ```