Cubebot brings persistent, sandboxed AI agents to self-hosted infrastructure
A new open-source runtime gives each AI agent its own memory, workspace, and isolated computer, running on Docker or Kubernetes.
GitHub user vicotrbb released Cubebot, a self-hosted runtime for persistent, collaborative AI agents, on November 30, 2026. The platform allows developers to deploy teams of agents that retain memory across restarts and operate within isolated sandboxes, either as containers or KVM virtual machines.
What happened
Cubebot introduces a new approach to managing agentic workflows by treating each AI agent as a long-lived entity with its own identity, memory, and computational environment. Unlike transient chat sessions, these agents maintain their state, workspace, and learned context through system upgrades and reboots. The project is licensed under Apache-2.0 and provides a complete stack for running these agents on personal or enterprise infrastructure.
The system is designed for collaboration, allowing users to organize agents into rooms and teams with defined organizational structures. An orchestrator component manages task distribution, splitting high-level outcomes described in the Tasks interface into subtasks assigned to specific agents based on their capabilities. Users interact with the system through a web console and an installable app that mimics a chat workspace, supporting both text and voice interactions.
Installation is streamlined for Linux and macOS environments using Docker Compose 2.23 or later. A single command downloads and runs an installer script that configures the runtime environment, asking only four questions regarding isolation level, access method, installation directory, and administrator setup. For Kubernetes users, the project publishes a Helm chart that deploys the platform into a single namespace, supporting ingress controllers and Gateway API configurations.
How it works
Each agent operates inside a dedicated sandbox, which can be configured as a standard container or a KVM virtual machine. The KVM option provides stronger isolation by giving each agent its own virtual machine with a terminal, browser, and desktop environment that administrators can monitor live. This architecture ensures that agents only access tools, accounts, and data explicitly granted to them, maintaining strict security boundaries.
The platform supports a wide range of AI models, including providers like Anthropic, OpenAI, Google Gemini, and xAI Grok, as well as self-hosted options via Ollama or vLLM. Spending is tracked per agent, and users can authenticate using API keys or existing plans like ChatGPT and SuperGrok. The system includes 45 native connectors for services such as GitHub, Slack, Notion, and Prometheus, and it supports any Model Context Protocol (MCP) server for extended functionality.
Memory management is handled through a process where idle agents "sleep" and then "dream" to tidy their stored context. This mechanism helps keep the agent's knowledge base relevant and organized without manual intervention. The orchestrator, which controls agent lifecycle and identity, runs with root privileges on the host machine via the Docker socket, a design choice that requires careful deployment considerations.
Key details
- Persistent state: Agents retain conversation history, memory, and workspace data across restarts and software updates.
- Isolation options: Users can choose between KVM virtual machines for strong isolation or containers for broader compatibility, including macOS.
- Model flexibility: Supports major cloud providers and self-hosted models, with per-agent spend tracking and authentication options.
- Collaborative structure: Features rooms, teams, and an org chart for organizing agents, with an orchestrator that splits tasks automatically.
- Security controls: Includes per-agent grants, approval workflows for sensitive actions, an encrypted vault, audit logs, and OpenID Connect SSO.
- Deployment: Available via a simple bash installer for Docker environments or a Helm chart for Kubernetes clusters.
Why it matters
For engineering teams building agentic systems, state management and isolation are significant hurdles. Most current frameworks treat agents as ephemeral processes, losing context between sessions and requiring complex external databases to maintain continuity. Cubebot’s architecture addresses this by bundling memory, workspace, and compute into a single persistent unit. This reduces the operational overhead of managing state consistency and allows agents to develop deeper contextual understanding over time.
The emphasis on self-hosting and granular permissions also responds to growing concerns about data privacy and security in AI workflows. By keeping agents within an organization’s infrastructure and providing detailed audit logs and encrypted vaults, the platform enables the use of AI agents for sensitive internal tasks. The ability to watch an agent’s desktop live adds a layer of transparency that is often missing in black-box AI services, helping developers debug and trust autonomous behaviors.
What you can do
- Install the platform on a Linux or macOS machine using the provided bash installer and Docker Compose.
- Configure agents to run in KVM virtual machines if your hardware supports
/dev/kvmfor maximum isolation. - Connect existing AI provider accounts or set up local models via Ollama to start creating agents.
- Define reusable skills and procedures in the knowledge base to standardize how agents perform common tasks.
- Set up OpenID Connect single sign-on and configure per-agent grants to enforce security policies.
- Monitor agent activity through the web console, checking the calendar for scheduled routines and reviewing audit logs.



