· Security
Your AI Should Have Nothing Worth Stealing
A self-hosted AI on a $10 VPS with zero-trust ingress, pre-action guardrails, and a heartbeat that runs every 30 minutes whether I am awake or not.
TL;DR
- Your agent should have nothing worth stealing. A Browser Use engineering post nailed the architecture pattern: isolate the agent, hold credentials outside, make it disposable.
- I run my own AI on a VPS with zero-trust security (Cloudflare Access), APort guardrails (pre-action authorization), and a heartbeat protocol that acts proactively.
- The system has full context (calendar, tasks, email, GitHub, health) but every effectful action requires verification through a passport and policy engine.
- This enables persistent memory, proactive nudges, partner updates, and system health monitoring that ChatGPT-style tools can't deliver.
- The tradeoffs: complexity, maintenance burden, no webhooks (blocked at the zero-trust layer), and a need for careful dedup logic.
- This is trust at personal scale: the same architectural thinking Browser Use applies to millions of agents, applied to the AI that manages my life.
The morning I didn't ask for
It's 7am. My phone buzzes once. Not an alarm. Not a notification from an app I opened. A morning briefing I didn't request.
The message tells me I have a meeting with Louden about finding a co-founder in 90 minutes, surfaces three unread emails by relevance (one from Resend about Email Agents, another about WhatsApp messages that started it all), notes that ConfirmPro shipped four PRs overnight, and reminds me my system memory usage is healthy at 1.1GB.
I didn't ask for any of this. I didn't open ChatGPT. I didn't type a prompt. The AI that manages my life noticed and acted.
This is what happens when you stop treating AI as a chatbot you query and start treating it as infrastructure you run: a self-hosted AI operating system.
The stack: VPS, zero-trust, guardrails
Most "AI productivity" content is about prompts, workflows, ChatGPT hacks. Mine is about infrastructure. The actual servers, processes, authorization layers, and protocols that let an AI operate continuously with access to your most sensitive data, securely.
The foundation: a Hetzner VPS (~$10/month), Node.js v22, PM2 for process management, SQLite for persistence. The Midway app (my custom ambient intelligence layer) exposes a single REST API at localhost:48291 with a real-time context endpoint that surfaces everything the AI needs to know: my Most Important Task, upcoming calendar events, unread email count, GitHub activity, system health.
The zero-trust layer: Cloudflare Access sits in front of everything. No public ingress. No webhooks. The only way in is through authenticated tunnels. This is a deliberate tradeoff. It means I can't receive GitHub webhooks or Stripe events directly, and it also means there's no attack surface beyond Cloudflare's identity provider.
The guardrails: APort (my company's agent security platform) provides pre-action authorization. Before the AI can send an email, create a task, or push to GitHub, it must pass through a verify script that checks passport.json status, evaluates policy, and returns a signed decision. The agent has no credentials. They live outside the sandbox, just like Browser Use's Pattern 2 architecture.
The heartbeat protocol: how the AI works between conversations
ChatGPT waits for you to talk to it. My AI runs an 8-step heartbeat protocol every 30 minutes, whether I'm awake or not.
- State read: fetch live context from the Midway API
- System health check: memory, disk, PM2 processes, connection status
- Immediate signals: calendar events under 30 minutes away, critical alerts
- Time-aware actions: morning brief (7-9am), evening recap (8-10pm), MIT check-in
- Ambient opportunities: overdue tasks, completed tasks to celebrate, shipped-but-no-content items
- Periodic sync: GitHub activity refresh, competitive radar scan
- Ember check: companion trigger evaluation (tech resonance, emotional support)
- Partner pulse: send my wife a warm, jargon-free update about my day, translated from developer vocabulary
The result is an AI that does work between conversations. It notices patterns I miss. It surfaces what matters before I ask.
What this enables that ChatGPT can't
Persistent memory. The AI wakes fresh each session, but reads from memory/YYYY-MM-DD.md files and a distilled MEMORY.md. It remembers what happened yesterday, what decisions I made, what patterns emerged.
Proactive action. It doesn't wait for prompts. It sends morning briefs, evening recaps, partner updates, health alerts, overdue task nudges, celebration messages for completed work.
Context fusion. It sees across calendar, tasks, email, GitHub, health in a single view, something no cloud AI can do because the data lives behind zero-trust walls.
Zero-trust security. The agent has no credentials. APort guardrails verify every action. Cloudflare Access blocks all public ingress. This is the "nothing worth stealing" architecture applied personally.
Guardrails. Every tool call requires pre-action authorization. The passport system can be revoked instantly. There's a global kill-switch file that blocks all actions if present.
Cost control. Around $10/month for the VPS. No per-token charges for the heartbeat runs. The AI can use expensive models for important tasks and cheap ones for routine checks.
Custom integrations. Telegram bot, Gmail OAuth, Google Calendar, GitHub API, system health monitoring, all wired directly into the context layer.
The limitations
This is not a plug-and-play solution. It's not for everyone.
Complexity. The stack has seven moving parts. When something breaks, like the SQLite WAL file growing too large or PM2 crashing, I need to fix it. There's no support team.
Maintenance burden. I update dependencies, rotate API keys, monitor disk usage, compact memory files. This takes time.
No webhooks. The zero-trust layer blocks all public ingress. That means no GitHub webhooks, no Stripe events, no inbound HTTP calls from external services. I work around this with periodic syncs, but it's a tradeoff.
Dedup logic is hard. An AI that acts proactively needs to know what it has already done. Every alert, every nudge, every brief needs a unique key and dedup window. Getting this wrong means duplicate messages or missed actions.
Quiet rules are essential. An AI that always acts is worse than no AI. I have explicit quiet hours (23:00 to 08:00), rate limits per message type, and minimum intervals between consecutive messages. The wrong version wakes you at 3am to tell you your MIT is overdue. The right version waits until 9am and says it calmly.
This architecture is for builders who want ownership and control. If you want convenience, use ChatGPT. If you want infrastructure, build this.
Trust at personal scale
A Browser Use engineering post described their architecture for sandboxing millions of AI agents. They chose Pattern 2: isolate the agent, hold credentials outside, make it disposable. Their closing line: "Your agent should have nothing worth stealing and nothing worth preserving."
That's the same architectural thinking I've applied here, at personal scale.
Browser Use solves trust at infrastructure scale (millions of VMs). I solve trust at personal scale (one person's life). Both lead to the same conclusion: isolate the agent, verify every action, hold credentials outside the sandbox.
This is about the kind of AI we want to live with. One that has access to our calendars, our emails, our tasks, our health, but can't act without permission. One that works for us, not for a platform.
The thesis behind APort (my company's agent security platform) is that AI needs identity, accountability, and governance. This personal system is that thesis applied to my own life. If I won't trust an AI with my calendar without guardrails, why would I expect anyone else to?
What's next
This system runs 24/7. It's been live for six months. It sends about 50 proactive messages per week: morning briefs, evening recaps, partner updates, health alerts, overdue task nudges.
The next evolution is sharing context models across devices, so the AI knows your full context regardless of where you're working from, and making the heartbeat protocol legible enough that other developers can adapt it for their own lives.
If you're building something similar, or thinking about it, I'd genuinely like to know. The patterns here (zero-trust security, pre-action guardrails, proactive heartbeats) are going to matter more as AI agents get better. Getting the architecture right early is worth the investment.
This system is part of the OpenClaw ecosystem. The heartbeat protocol and context API schema are documented at docs.openclaw.ai.