openclaw-operator  by openclaw-rocks

Kubernetes operator for deploying and managing AI agents

Created 1 month ago
278 stars

Top 93.4% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

The OpenClaw Operator provides a Kubernetes-native solution for deploying and managing OpenClaw AI agents, addressing the complexities of production-grade AI agent infrastructure. It targets users who need to self-host AI agents on their own Kubernetes clusters, offering enhanced security, observability, and lifecycle management. The operator simplifies the deployment of a fully managed AI agent stack, enabling users to go from zero to production readiness in minutes.

How It Works

The operator leverages Kubernetes Custom Resource Definitions (CRDs), primarily OpenClawInstance, to declaratively define an AI agent's desired state. Upon creation or modification of an OpenClawInstance resource, the operator's controller reconciles this state by provisioning and managing a suite of underlying Kubernetes resources, including StatefulSets, Services, NetworkPolicies, Secrets, and more. A key innovation is the agent's ability to autonomously modify its own configuration, install skills, or update environment variables via OpenClawSelfConfig resources, with all actions validated by the operator against an allowlist policy.

Quick Start & Requirements

  • Primary Install: Helm chart (helm install openclaw-operator oci://ghcr.io/openclaw-rocks/charts/openclaw-operator --namespace openclaw-operator-system --create-namespace).
  • Prerequisites: Kubernetes 1.28+, Helm 3.
  • Dependencies: Requires a Kubernetes cluster. API keys for AI providers are configured via Secrets. S3-compatible storage is needed for backups.
  • Links: Official quick-start and documentation are implied by the README structure.

Highlighted Details

  • Declarative Management: A single OpenClawInstance CRD defines the entire agent stack, including StatefulSet, Service, RBAC, NetworkPolicy, PVC, PDB, and Ingress.
  • Agent Self-Configuration: Agents can autonomously adapt their environment (skills, config, env vars, workspace files) through the Kubernetes API, subject to operator-validated allowlist policies.
  • Secure by Default: Instances run as non-root (UID 1000), feature read-only root filesystems, dropped capabilities, seccomp, and default-deny NetworkPolicies.
  • Extensibility: Supports numerous sidecars (Chromium for browser automation, Ollama for local LLMs, Tailscale for networking) and custom init containers/sidecars.
  • Automated Backup & Restore: Integrates with S3-compatible storage for PVC data snapshots, supporting scheduled backups and restore operations.
  • Auto-Update: Opt-in feature for automatic version tracking, deployment, and rollback based on health checks.

Maintenance & Community

The project explicitly states it is developed collaboratively by a human and Claude Code, with the human acting as the final reviewer. Contributions are welcome via issues and PRs, with guidelines in CONTRIBUTING.md. A roadmap indicates future plans, including API graduation to v1.

Licensing & Compatibility

  • License: Apache License 2.0.
  • Compatibility: Compatible with commercial use and closed-source linking, consistent with the permissive Apache 2.0 license.

Limitations & Caveats

The primary API (OpenClawInstance) is currently at v1alpha1, indicating potential instability and breaking changes before reaching v1. The AI-assisted development model, while efficient, may introduce unique review and maintenance considerations. Some features, like Ollama, may require root privileges within their specific containers, overriding the default non-root policy.

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
138
Issues (30d)
52
Star History
171 stars in the last 30 days

Explore Similar Projects

Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

SuperAGI by TransformerOptimus

0.6%
17k
Open-source framework for autonomous AI agent development
Created 2 years ago
Updated 1 year ago
Feedback? Help us improve.