Show HN: Selfhost pi agents API with Linux desktop sandbox github.com · 2 points...

@show

Show HN: Selfhost pi agents API with Linux desktop sandbox github.com · 2 points · 0 comments · HN thread

TL;DR Pi Managed Agents is an open-source, self-hosted API and browser console built on the Pi coding agent SDK, meant as an alternative to the OpenAI Agents API and Claude Managed Agents API. It runs agent tasks in Docker workspaces or optional Linux desktops in QEMU/KVM VMs driven by Microsoft HCU, keeps session state, and publishes output files. The author posted it as a Show HN asking for feedback; the thread has no comments yet.

  • Agents are defined as immutable versions; sessions pin a version and run tasks in Docker workspaces or optional Linux desktop VMs.
  • Desktop sessions use Microsoft HCU for accessibility-tree and screenshot control inside QEMU/KVM, with Off, Internet, or domain-allowlist networking.
  • Files under outputs/ are published as downloadable artifacts; runs keep going if the client disconnects, and uncertain tool effects are not replayed automatically.
  • Deployment is Docker Compose on one Linux VPS with Caddy HTTPS, PostgreSQL, an API/console process and a separate Pi worker; model keys stay on the server.
  • The project is an MVP for a trusted operator: no high availability, per-user roles, spending quotas, MCP, custom tools, approvals, or subagents yet.
  • Real inference was verified only through OpenRouter (DeepSeek V4.1 Flash and GPT-4.1 mini); direct OpenAI and Anthropic inference is unverified.

Discussion No comments have been posted yet, so there is no discussion to summarize. The submission has 2 points and was posted as a Show HN asking for feedback.

#selfHosted #aiAgents #showHN #qemuKvm #piAgent #openSource