- Python 95.8%
- PowerShell 2.7%
- Shell 1.3%
- Inno Setup 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Adds skills/ with a Python package (apps, browser, core, facts, install, linkedin) of repeatable operations, markdown blueprints for one-off recipes, and unit and e2e tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| .claude/skills | ||
| .github | ||
| config | ||
| docker/qemu-windows | ||
| docs | ||
| packaging/windows | ||
| scenarios/examples | ||
| setup | ||
| skills | ||
| tests | ||
| tools | ||
| vmtester | ||
| .bandit.yml | ||
| .flake8 | ||
| .gitignore | ||
| .markdownlint.json | ||
| .pre-commit-config.yaml | ||
| agent.spec | ||
| AGENTS.md | ||
| build_windows_agent.sh | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| cli.spec | ||
| CODEOWNERS | ||
| conftest.py | ||
| create_new_version_v2.py | ||
| GEMINI.md | ||
| install-client.sh | ||
| pyproject.toml | ||
| README.md | ||
| sandbox.sh | ||
| setup.cfg | ||
| SUPPORT.md | ||
| version.txt | ||
VMTester
VMTester drives a Windows machine remotely to install, exercise, and verify desktop applications. A small agent runs on the Windows box and exposes typed, deterministic primitives over an authenticated HTTP API; a client — a human at a terminal, a CI job, or an AI harness — runs anywhere and talks to it.
Security posture — read this before the quickstart
- The agent binds
127.0.0.1by default and refuses any other bind address unless you pass--allow-remote(or setWT_ALLOW_REMOTE=true), because the port is a level of remote control over the machine it runs on. - It refuses to start without a strong
API_KEY_HASH— there is no default key and no anonymous access. Generate one with--keygen(below). - TLS is on by default;
--insecuredisables it and is meant for local development only, never for a bind address other than loopback. - This agent is built for disposable test machines — a VM you can snapshot and revert — not for a production endpoint. It is not a general-purpose remote administration tool, and nothing about its design assumes the box under test has anything on it worth protecting after the test run ends.
Quickstart
Every command below was run to produce the output shown, from the repository root with
venv/ activated — that's not optional: ./sandbox.sh install only installs
dependencies into venv/, never this project itself, so nothing below works from a
plain shell with no venv active. If a command's output looks wrong once both of those
are true, something is actually broken rather than just undocumented. One environment
note: the paths the agent writes to (DATA_DIR, ARTIFACT_ROOT, AUDIT_LOG_PATH) are
declared per platform, so running this quickstart on Linux puts them under
~/.local/share/vmtester/ rather than %PROGRAMDATA%\VmTester\. There is nothing
extra to set, and nothing is written there until the first request arrives.
./sandbox.sh venv && ./sandbox.sh install
source venv/bin/activate
Generate an API key and its stored hash. The key itself goes to whichever client
authenticates as this agent, and cannot be recovered from the hash later. Put the
hash in WT_API_KEY_HASH — there is no default config-file path, so if you'd
rather keep it in agent-base.json instead, every command that starts the agent needs
--config agent-base.json to actually read it, or the hash is silently never seen:
python -m vmtester.main_agent --keygen
# key: <a fresh key>
# hash: $argon2id$v=19$m=65536,t=3,p=4$...
Start the agent. --insecure disables TLS and is for local development only — a real
deployment leaves TLS on (the default) and pins the certificate fingerprint the agent
prints at startup on the client side instead:
WT_API_KEY_HASH='<hash from above>' python -m vmtester.main_agent --serve --insecure
# agent listening on http://127.0.0.1:8765
In another shell, point the client at it. Targets are named in a small inventory file
rather than hardcoded, and a target's key comes from WT_KEY_<NAME> in the
environment — never from the inventory file itself, so it is safe to commit:
cat > targets.json <<'EOF'
{"targets": [{"name": "local", "url": "http://127.0.0.1:8765"}]}
EOF
WT_KEY_LOCAL='<key from above>' python -m vmtester.main_cli --targets targets.json ping local
# {"pong":true,"server_time":"2026-09-08T18:38:08.428506Z"}
WT_KEY_LOCAL='<key from above>' python -m vmtester.main_cli --targets targets.json info local
# {"agent_version": "0.1.0", "protocol_version": 1, ..., "capabilities": [...]}
info returns the full list of operations this agent build actually implements
(capabilities), which is the honest way to find out what is callable rather than
guessing from documentation.
Drive it from any AI harness — the MCP server
Any tool that speaks MCP gets the whole client through one config block. Drop this into the harness's MCP configuration:
{
"mcpServers": {
"vmtester": {
"command": "/abs/path/to/venv/bin/python",
"args": ["-m", "vmtester.main_cli", "--targets", "/abs/path/to/targets.json",
"mcp", "win11-test", "--stdio"],
"env": { "WT_KEY_WIN11_TEST": "<that target's key>" }
}
}
}
What the harness gets: one tool per operation this build registers — named
group_verb, with input and output schemas generated from that operation's own request
and response models — plus the composed tools whose requirements this build meets. The
listing is derived from the contract, so it is exactly what this build serves and nothing
else; call tools/list first rather than assuming, branch on each failure's stable
code, and note that no tool accepts or returns a screen coordinate. --http in place of
--stdio serves streamable HTTP at http://127.0.0.1:8770/mcp for a harness that
connects rather than spawns.
What works today
info (above) prints the operations this build actually implements; that list, not this
README, is the honest answer. The full milestone plan (M1 through M8) is in
§20 of the design spec.
Where to go next
docs/index.md— the documentation map across all four audiences (user, developer, AI-operating, reference); start here if the links below aren't what you need.AGENTS.md— contributing to this codebase: commands, invariants, conventions. Read this before editingvmtester/.docs/user/index.md— installing, configuring, and securing a deployed agent as an operator rather than a contributor (includinginstallation.mdandquickstart.md).docs/ai/— operating this tool against a Windows target as an AI harness, once an agent is already running.docs/reference/— the generated operation, config, and error-code tables, plus the hand-written wire protocol and file layout.