Borrowing it
Nothing to install: this file belongs to pandysp/openclaw-infra. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/pandysp/openclaw-infra/main/CLAUDE.mdgit clone --depth 1 https://github.com/pandysp/openclaw-infraWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/pandysp/openclaw-infra/claude-md)<a href="https://agentmods.dev/instructions/pandysp/openclaw-infra/claude-md"><img src="https://agentmods.dev/badge/instructions/pandysp/openclaw-infra/claude-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.07404 | $0.07404 |
| Opus 5 | $0.03702 | $0.03702 |
| Sonnet 5 | $0.01481 | $0.01481 |
| Haiku 4.5 | $0.00740 | $0.00740 |
Grade B, and why
openclaw-infra CLAUDE.md scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Downloads and executes remote codemediumSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
ssh ubuntu@openclaw-vps.<tailnet>.ts.net 'OPENCLAW_NO_ONBOARD=1 OPENCLAW_NO_PROMPT=1 curl -fsSL https://openclaw.ai/install.sh | bash' Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
ssh ubuntu@openclaw-vps.<tailnet>.ts.net 'OPENCLAW_NO_ONBOARD=1 OPENCLAW_NO_PROMPT=1 curl -fsSL https://openclaw.ai/install.sh | bash' How it starts
The opening of the file, as written. The whole thing — 573 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenClaw Infrastructure
AI assistant guide for deploying and managing OpenClaw on Hetzner Cloud with Tailscale.
What This Project Is
OpenClaw is a self-hosted AI Agent gateway deployed on a Hetzner VPS with zero-trust networking via Tailscale. All access is through Tailscale—no public ports exposed.
Repository
This repo is pandysp/openclaw-infra. Personal deployment config (Pulumi secrets, group_vars/openclaw.yml) stays gitignored or in Pulumi encrypted state.
Architecture
Your Machine (Tailscale) → Hetzner VPS → Gateway (systemd, localhost:18789) via Tailscale Serve. No public ports. Hetzner firewall + UFW block all inbound except Tailscale.
Security Model
| Layer | Measure |
|---|---|
| Network (infrastructure) | Hetzner cloud firewall blocks ALL inbound |
| Network (host) | UFW: deny incoming, allow only tailscale0 interface |
| Access | Tailscale-only (no public SSH, no public ports) |
| Process | Runs as unprivileged ubuntu user; all sessions sandboxed in Docker (custom image with dev toolchain) |
| Auth | Tailscale identity + device pairing |
| Secrets | Pulumi encrypted config (never in git) |
| Gateway | Binds localhost only, proxied via Tailscale Serve |
For the full threat model, see docs/SECURITY.md.
Gateway runs via systemd (not Docker) as unprivileged user. Docker is used only for sandbox sessions (openclaw-sandbox-custom:latest). Auth: Tailscale identity + device pairing; no token needed. Fallback tokenized URL: pulumi stack output tailscaleUrlWithToken --show-secrets.
Directory Structure
openclaw-infra/
├── CLAUDE.md # This file - AI assistant guide
├── README.md # Human overview
├── package.json # Node.js dependencies
├── tsconfig.json # TypeScript config
│
├── pulumi/
│ ├── Pulumi.yaml # Project definition
│ ├── Pulumi.prod.yaml # Stack config (non-secrets)
│ ├── index.ts # Main entrypoint (infra + Ansible trigger)
│ ├── server.ts # Hetzner server resource
│ ├── firewall.ts # Security rules (no inbound!)
│ └── user-data.ts # Cloud-init (Tailscale-only bootstrap)
│
├── ansible/
│ ├── ansible.cfg # Ansible config (pipelining, no host key check)
│ ├── requirements.yml # Ansible Galaxy collections
│ ├── playbook.yml # Main playbook
│ ├── group_vars/all.yml # Non-secret defaults (model, agent types, server templates)
│ ├── group_vars/openclaw.yml # Deployment-specific overrides (gitignored)
│ ├── group_vars/openclaw.yml.example # Template for openclaw.yml
│ ├── inventory/
│ │ └── pulumi_inventory.py # Dynamic inventory (Tailscale IP from Pulumi)
│ └── roles/
│ ├── system/ # apt packages, unattended-upgrades
│ ├── docker/ # Docker install, ubuntu→docker group
│ ├── ufw/ # Firewall rules
│ ├── openclaw/ # Binary install, onboard, daemon
│ ├── config/ # All `openclaw config set` commands
│ ├── agents/ # Create non-default agents, set bindings (conditional)
│ ├── telegram/ # Telegram channel config, cron jobs (conditional)
│ ├── whatsapp/ # WhatsApp channel config (conditional)
│ ├── obsidian-headless/ # Obsidian Sync daemon per workspace (conditional)
│ ├── qmd/ # qmd semantic search: install, per-agent watchers
│ ├── plugins/ # MCP adapter, Codex/Claude Code/Pi/qmd servers, deny rules
│ ├── sandbox/ # Pull base image, build custom Docker image
│ └── workspace/ # Deploy key, git sync timer (conditional)
│
├── scripts/
│ ├── provision.sh # Ansible wrapper (reads secrets from Pulumi)
│ ├── setup-mac-node.sh # One-time Mac node host installation
│ ├── setup-workspace.sh # Create workspace repo + deploy key + Pulumi config
│ ├── get-telegram-id.sh # Discover Telegram user/group IDs
│ ├── verify.sh # Post-deployment checks
│ └── backup.sh # Data backup
│
└── docs/
├── AUTONOMOUS-SAFETY.md # Multi-agent safety architecture design
├── BROWSER-CONTROL-PLANNING.md # Future browser automation approaches
├── DOCS-REVIEW.md # Official docs review tracking
├── INTEGRATIONS.md # Telegram, WhatsApp, Discord, Obsidian setup detail
├── NODE-EXEC.md # Remote Mac node host: setup, config, operations
├── SECURITY.md # Threat model
└── TROUBLESHOOTING.md
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 573 lines · 7,404 tokens per session scan B a7c1461deb16
openclaw-infra CLAUDE.md is an instructions file published in the GitHub repository pandysp/openclaw-infra (22 stars, last pushed 1mo ago), licensed MIT. It adds 7,404 tokens to every session, about $0.0370 per session on Opus 5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
plan-forge naming.instructions.md
Azure naming conventions — Microsoft CAF abbreviations, constraints, uniqueness, tagging.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.