When should you use it?
- You just installed an always-on agent on a rented server
- You lack the background to harden Linux yourself
- The agent will later get email or business tools
Not for: Production systems with an existing security team; Servers you cannot afford to lock yourself out of
What do you need, and what do you get?
You need
- A freshly set up VPS running the agent
- A way to message the agent
- Console access from your hosting provider as a fallback
You get
- Firewall rules and SSH changes applied
- A written record of what changed and why
How does it work, step by step?
- Keep a way back inConfirm you can reach the server's web console before any SSH changes.
- Ask for an audit before featuresHave the agent list open ports, login settings and container exposure.
- Approve each fixLet it propose firewall rules, disable root login and patch exposed services, one at a time.
- Get it written downAsk for a short document of every change and how to undo it.
- Re-check laterRepeat the audit after you add new tools or services.
The prompt
Our own prompt, inspired by Jonathan Shriftman and written to work in OpenClaw and Custom agent. Values in lime are placeholders.
Audit the security of this server before we do anything else. List open ports, running services, SSH settings and any containers exposed to the internet. For each issue, propose a fix and wait for my approval. Make sure a non-root user with sudo works before disabling root SSH login. After each change, confirm I can still connect. Write everything you changed, and how to reverse it, to SECURITY.md.
Inspired by Jonathan Shriftman: My First Experience with OpenClaw: Building an AI Agent for VC Workflows. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Disabling root login before a user account with sudo exists can lock you out.
- An agent can also open holes; review what it changes, not just what it reports.
Our take
Jonathan Shriftman got the order right. Most people setting up a personal agent rush to the fun features while a fresh server sits on the internet with default settings, and attackers scan for exactly those within hours. Asking the agent to harden its own home first, and to write down every change, costs pennies and closes the obvious doors. The documentation request is as important as the fixes, because six months from now you will need to know why a port is closed or how to log in. Two cautions. Keep a way back in that does not depend on SSH, such as the provider's web console, before letting an agent touch firewall or SSH settings, since a single wrong rule can lock everyone out. And do not combine disabling root login with creating your personal account in one step; confirm the new account works first. Review each proposed change before it applies, then repeat the audit monthly or after installing new services, since every addition can open something new.
Where the time goes back: Basic hardening that would mean hiring someone or a long tutorial session takes a short supervised conversation.
FAQ
What did it cost?
Why do this first?
Source and credit
Inspired by Jonathan Shriftman. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- My First Experience with OpenClaw: Building an AI Agent for VC Workflows
- Creator
- Jonathan Shriftman
- Published on
- shriftman.substack.com (Substack)
- Original date
- Feb 9, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- OpenClaw
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.