openpod

An opencode plugin that spins up a dedicated virtual machine for each session to isolate agent work.
git clone https://unitehenry.com/git/openpod.git
Log | Files | Refs | README

README.md (1900B)


      1 <p align="center">
      2   <img src="logo.svg" alt="OpenPod" width="204" />
      3 </p>
      4 
      5 <p align="center">
      6   Give each opencode session a dedicated virtual machine
      7 </p>
      8 
      9 ## Install
     10 
     11 ```sh
     12 opencode plugin add github:unitehenry/openpod
     13 ```
     14 
     15 **Prerequisite**
     16 
     17 - [`opencode`](https://opencode.ai)
     18 - [`limactl`](https://lima-vm.io)
     19 
     20 ### Ubuntu
     21 
     22 Run this install script on a fresh install of Ubuntu 24.04 as an out-of-the-box deployment of this setup:
     23 
     24 ```sh
     25 curl -fsSL https://raw.githubusercontent.com/unitehenry/openpod/master/install/ubuntu.sh | sudo bash
     26 ```
     27 
     28 ## Usage
     29 
     30 Anytime you prompt an opencode session, if the project is `git` enabled and has an `origin` remote, this plugin will start a dedicated virtual machine to isolate the work of the agent.
     31 
     32 ## Benefits
     33 
     34 - **One machine per session** — every OpenCode session gets its own VM and its own clone, not a shared shell.
     35 - **Run the stack N-up** — each pod has its own localhost, so five sessions can all use `:3000` and `:5432` at once.
     36 - **Parallel workstreams without worktrees** — no git worktree add, no branch locks, no shared index; each session has its own `.git`.
     37 - **No shared environment** — separate toolchains, packages, databases, Docker daemons, caches, and env vars.
     38 - **Clean slate every task** — fresh clone and fresh guest; no leftover `node_modules` or machine drift.
     39 - **Safe to break** — agents can `sudo`, `rm -rf`, and install anything; delete the session and the VM is gone.
     40 - **Small blast radius** — only the session's pod clone is mounted; your home, dotfiles, and other projects aren't.
     41 - **Mixed environments** — per-session OS, runtime, and database versions without Nix/Compose gymnastics.
     42 - **Transparent to the agent** — shell commands are wrapped in limactl shell; no new tools or workflow.
     43 - **CI-like reproducibility** — reproduce failures in a clean Linux guest and reset by deleting the session.