AI-native server operations control plane for vssh-backed infrastructure
Project description
MeshClaw
MeshClaw is an infrastructure capability control plane for AI operators.
MeshClaw is not a chat assistant and must not become one. Users talk to Codex, Claude, ChatGPT, Open WebUI/local models, or another operator. MeshClaw only provides truthful infrastructure state, available capabilities, policy decisions, safe actions, diagnostics, provisioning hooks, and evidence.
User
-> Codex mobile / Claude
-> MeshClaw MCP / CLI
-> inventory + capability vault + policy + capacity + doctor + runbooks + audit
-> vssh-native over Tailscale / provider APIs / monitor agents
-> servers / models / APIs / temporary capacity
Scope
MeshClaw owns:
- server inventory
- model and API capability registry
- workspace registry: which model/human is working on which server/folder
- capacity and budget facts
- fleet status
- policy answers
- safe remote execution
- server operations agent workflows
- log analysis
- security checks
- provision/bootstrap/deprovision hooks
- diagnostics and repair plans
- service/log/deploy runbooks
- audit and evidence
- CLI, dashboard, and MCP surfaces
- AI-operator friendly outputs for Codex and Claude
MeshClaw does not own:
- general chat
- assistant personality
- Matrix-first personal assistant behavior
- Siri or Shortcuts automation
- mail, calendar, browser, or lifestyle assistant tools
- multi-agent roleplay or broad coworker orchestration
- coding-agent replacement workflows
First Commands
Install the Python entrypoint package:
pip install meshclaw
The PyPI package provides the meshclaw command wrapper. The Go binary remains
the server-operations runtime and can be built locally:
go build -o /Users/dragon/bin/meshclaw ./cmd/meshclaw
go run ./cmd/meshclaw list
go run ./cmd/meshclaw capabilities
go run ./cmd/meshclaw status
go run ./cmd/meshclaw monitor-check
go run ./cmd/meshclaw monitor-agent 5m
go run ./cmd/meshclaw monitor-agent 10m --hygiene
go run ./cmd/meshclaw fleet-scan --hosts d1,v1 --security --hygiene --logs --json
go run ./cmd/meshclaw autoheal-plan
go run ./cmd/meshclaw autoheal-apply-safe
go run ./cmd/meshclaw disk-investigate d1 /home/dell
go run ./cmd/meshclaw data-clean-plan d1 /home/dell/kobolt
go run ./cmd/meshclaw data-clean-apply d1 /tmp/meshclaw-data-clean-plan-d1-...
go run ./cmd/meshclaw policy-check codex read_state server
go run ./cmd/meshclaw policy-show
go run ./cmd/meshclaw policy-init --preset devops
go run ./cmd/meshclaw policy-presets
go run ./cmd/meshclaw matrix-plan
go run ./cmd/meshclaw workers
go run ./cmd/meshclaw workspace-list
go run ./cmd/meshclaw workspace-add meshclaw-local local /Users/dragon/meshclaw codex serverops
go run ./cmd/meshclaw workspace-activity meshclaw-local codex edit "added workspace registry"
go run ./cmd/meshclaw ops-chat
go run ./cmd/meshclaw ops-dispatch matrix "!workers"
go run ./cmd/meshclaw ops-dispatch openwebui "workspaces"
go run ./cmd/meshclaw evidence-list 10
go run ./cmd/meshclaw run d1 'hostname && uptime'
go run ./cmd/meshclaw doctor d1
go run ./cmd/meshclaw analyze-logs d1 syslog
go run ./cmd/meshclaw service-check v3 server-agent.service
go run ./cmd/meshclaw service-remove v3 walknews.service /root/walknews
go run ./cmd/meshclaw security-check d1
go run ./cmd/meshclaw hygiene-plan d1
go run ./cmd/meshclaw hygiene-scan-host d1
go run ./cmd/meshclaw provision-plan batch-log-analysis 10
go run ./cmd/meshclaw mcp
The execution path is vssh-native first over Tailscale/private network. SSH is
only a fallback for nodes that do not have vssh server running yet. Wire
remains legacy compatibility.
Default remote execution requires:
Tailscale/private route + vssh server + VSSH_SECRET
Fallback execution still needs Tailscale + sshd + SSH key/user mapping.
Product Claim
Kubernetes is for orchestrating containerized workloads. MeshClaw is for operating the servers that already exist: VPS nodes, home servers, GPU boxes, NAS devices, Docker hosts, mail servers, and small private infrastructure. When existing capacity is not enough, MeshClaw exposes approved provisioning hooks so an AI operator can plan, rent, bootstrap, attach, use, and tear down temporary servers under policy.
Agent Workflows
MeshClaw should expose repeatable infrastructure workflows as MCP tools and CLI commands. These workflows return structured findings, risk levels, evidence, and recommended next actions. Codex, Claude, or a local model explains and coordinates the plan; MeshClaw supplies the operational truth.
Initial workflows:
doctor: diagnose reachability, services, capacity, and runtime healthmonitor-check: check the whole fleet and store evidencemonitor-agent: continuously collect fleet state and alert evidence; with--hygiene, it also stores redacted sensitive-data leak findingsfleet-scan: run monitor, security, logs, and redacted hygiene checks across selected hosts and store one evidence bundle for AI reviewautoheal-plan: convert fleet alerts into read-only or auto-safe actionsautoheal-apply-safe: execute bounded non-destructive cleanup actionsdisk-investigate: collect disk evidence without deleting datadata-clean-plan: find raw/intermediate/checkpoint cleanup candidates while preserving clean/final outputsdata-clean-apply: apply a manifest generated bydata-clean-plananalyze-logs: summarize recent logs, detect errors, and cite evidenceservice-check: collect read-only systemd status, unit config, and logsservice-quarantine: disable a flapping service only when its ExecStart target is missingservice-remove: stop/disable a local systemd service, remove its local unit, and optionally remove its matching working directorysecurity-check: check SSH exposure, users, updates, firewall, open ports, failed logins, risky services, and secret handlinghygiene-plan: continuously detect sensitive data leaks, log leaks, risky permissions, and safe remediation opportunitieshygiene-scan-host: scan likely remote logs/config files for redacted secret and PII leak evidence without storing raw valuescapacity-plan: decide whether existing servers are enoughprovision-plan: propose temporary VPS/GPU capacity under budget policy
Policy is loaded from ~/.meshclaw/policy.json, or from
MESHCLAW_POLICY_FILE when set. Configured rules are evaluated before the
built-in safety defaults, so operators can grant or restrict Codex, Claude,
local LLMs, and automations without changing code.
Natural-language conversation is owned by Codex, Claude, ChatGPT, Open WebUI, or another model frontend. MeshClaw makes that conversation operational by exposing MCP tools, policy decisions, vssh execution, and evidence.
Hygiene workflows are allowed to auto-apply only safe repairs such as permission hardening, redacted log copies, and quarantine. Destructive actions, secret rotation, database edits, service restarts, and provider revocation need approval.
Non-Conversation Rule
All natural-language planning belongs to Codex, Claude, ChatGPT, local LLMs, or another operator frontend. MeshClaw interfaces return structured facts and action results. Matrix is allowed as an operations room, notification channel, approval channel, and optional MCP command surface; it is not the assistant brain.
Real Matrix bridge commands:
meshclaw matrix-config-init --force
meshclaw matrix-post "MeshClaw Matrix bridge connected"
meshclaw matrix-sync-once
meshclaw matrix-bridge
Archived Previous Version
The previous broad personal-AI-runtime version was archived outside this repo:
/Users/dragon/meshclaw-archive-20260516-serverops-pivot
Current Handoff
See:
docs/HANDOFF_2026-05-16.md
docs/MCP_SETUP.md
MCP
Run:
meshclaw mcp
Initial tools:
meshclaw.server_listmeshclaw.workersmeshclaw.workspace_listmeshclaw.workspace_addmeshclaw.workspace_activitymeshclaw.capability_listmeshclaw.monitor_checkmeshclaw.autoheal_planmeshclaw.autoheal_apply_safemeshclaw.evidence_listmeshclaw.policy_checkmeshclaw.policy_showmeshclaw.matrix_planmeshclaw.ops_dispatchmeshclaw.provision_planmeshclaw.run_evidencemeshclaw.disk_investigatemeshclaw.data_clean_planmeshclaw.data_clean_applymeshclaw.service_checkmeshclaw.service_quarantinemeshclaw.service_remove
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meshclaw-1.2.15.tar.gz.
File metadata
- Download URL: meshclaw-1.2.15.tar.gz
- Upload date:
- Size: 61.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df4f742d92c0f8f97e2d69972071fa51054a7b869e604f887fdadf5b8afb0e90
|
|
| MD5 |
7d395a6cae800034f46715f4a9c5455b
|
|
| BLAKE2b-256 |
7fa7530f8c2487ad22e670470ce6dd96ef59d5e184cc0b2c01fa09201e5c4df0
|
File details
Details for the file meshclaw-1.2.15-py3-none-any.whl.
File metadata
- Download URL: meshclaw-1.2.15-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
924dd29c4ad1e2031371cab2f3cee2465ff8cb5896db4f83861673dce985fa7e
|
|
| MD5 |
b9de9bf55ab25421e8a11cd371dd1cc0
|
|
| BLAKE2b-256 |
5b6160dc41233bff896b7ed0667011e7906697ad5001f0103d2e0bfb9fab7d1b
|