Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

LiteLLM Agent Platform: Open-Source Kubernetes Infrastructure for Isolated AI Agents and Persistent Sessions

BerriAI open-sources LiteLLM Agent Platform for running multiple AI agents reliably in production.

MarkTechPost 2 min read

LiteLLM Agent Platform: Open-Source Kubernetes Infrastructure for Isolated AI Agents and Persistent Sessions

BerriAI has open-sourced the LiteLLM Agent Platform, a self-hosted infrastructure layer designed to run multiple AI agents reliably in production. The platform tackles the challenges of scaling agents beyond single processes by providing per-team sandboxes and session continuity across restarts and deployments.

What Problem Does It Solve?

Agents are stateful—they carry session history, tool results, and reasoning across turns. If a container crashes or restarts, that state is lost without explicit management. Different teams also require separate runtime environments, tools, and secrets, making a shared container impractical. The platform addresses these issues through two core features: isolated sandboxes per context and persistent session management.

Architecture and Technical Stack

The platform consists of a Next.js dashboard (port 3000) for managing agents, sessions, and live status, plus a worker process for async tasks. It uses Postgres for persistent storage, with schema migrations running on startup. Sandboxes are created on Kubernetes using the kubernetes-sigs/agent-sandbox Custom Resource Definition (CRD), and local development relies on kind (Kubernetes in Docker).

Environment variables prefixed with CONTAINER_ENV_ are automatically injected into sandbox containers with the prefix stripped, allowing secure secret passing without modifying images.

Getting Started

Prerequisites include Docker Desktop, kind, kubectl, helm, and a LiteLLM gateway. To start locally, run:

bin/kind-up.sh
docker compose up

For production, the recommended deployment uses AWS EKS for the sandbox cluster and Render for web/worker processes.

Relationship to the LiteLLM Gateway

The Agent Platform builds on the existing LiteLLM ecosystem, which provides an AI Gateway for calling 100+ LLM APIs with cost tracking and guardrails. The platform adds agent orchestration and session management on top, while model routing and rate limiting remain in the gateway.

Key Concepts

  • LiteLLM Gateway: The underlying AI Gateway required by the platform.
  • Sandbox: Isolated container environment for each agent session.
  • Harness: Configuration layer defining how coding agents run inside sandboxes.
  • CRD: Kubernetes extension for managing sandbox lifecycles.

The platform is open-source under the MIT license and available on GitHub.

React