Cordium is a free and open source, self-hosted, identity-based, horizontally scalable sandbox platform built on Kubernetes and Octelium for humans and AI agents. The platform was designed around two tightly integrated purposes that most platforms treat as separate concerns.
General-purpose sandboxed execution and identity-based zero-trust secretless remote access
Cordium provides a platform for running both long-lived workloads—such as remote development environments, persistent coding sessions, and running servers—and short-lived tasks including AI agent runs, CI/CD jobs, and automated scripts inside isolated, reproducible sandboxes. These sandboxes are accessible via a web browser, SSH, the cordium CLI, or gRPC-based SDKs. The same Workspace can be used for long-lived coding sessions and short-lived automated workloads through a web browser, SSH and editors including VS Code, Zed and JetBrains, the CLI, or the SDKs.
Identity-based zero-trust secretless remote access is the second integrated purpose. The platform leverages Octelium ZTNA capabilities to provide secretless, policy-driven access to infrastructure resources including SSH servers, databases, internal HTTP APIs, LLM providers, Kubernetes clusters, and mTLS services from within Workspaces. This works for both human users opening a browser-based terminal and AI agents executing programmatically inside a Workspace. Upstream application-layer credentials such as API keys, access tokens, SSH private keys, and database passwords are never exposed, distributed, or managed. Credentials remain at Octelium's identity-aware proxy and are applied at the protocol layer.
Declarative reproducible environments
Environments are defined declaratively in YAML. Users define images, Dockerfiles, devcontainers, repositories, lifecycle tasks, environment variables, and resource limits. Workspaces support root access inside the sandbox for installing system packages and running nested containers. Reusable Templates support pre-builds that capture a fully initialized filesystem for fast startup.
Persistent, ephemeral and forkable storage
Storage models vary by use case. Persistent Workspaces preserve their filesystem across stops and restarts, while ephemeral ones start fresh on every run. WorkspaceSnapshots checkpoint storage and restore it into new Workspaces for rollback or parallel runs. Volumes outlive individual Workspaces and provide persistent or shared storage for datasets, caches, and artifacts.
Network isolation and egress control
Outbound traffic is restricted by CIDR and port, including a default-deny posture, with network policies enforced outside the sandbox. Read-only root filesystems and configurable Linux capabilities provide further controls for untrusted and AI-generated code.
A built-in AI assistant
The Cordium Agent runs in a dedicated sandbox from the web portal to create and manage Workspaces, run commands and test suites, copy files, and access authorized Octelium Services. The agent runs inside the user's own Workspace with their own identity, with configurable approvals for sensitive operations.
Secretless access to infrastructure
Standard tools such as psql, ssh, curl, and kubectl access authorized Octelium Services without holding upstream API keys, database passwords, SSH private keys, or kubeconfigs. This secretless access applies to both developers and AI agents, including access to private resources behind NAT and public APIs such as LLM providers.
Identity-based access control
Octelium provides per-request, L7-aware attribute-based access control (ABAC) with policy-as-code using CEL and OPA and zero standing privileges by default. Authentication supports OIDC and SAML 2.0 identity providers, GitHub OAuth2, passkeys, and workload identity federation.
OpenTelemetry-native auditing and visibility
Infrastructure requests through Octelium are authorized and logged with the Workspace's identity. Access logs with L7 awareness can be exported to OTLP receivers for integration with log management and SIEM providers.
APIs and SDKs
The complete gRPC API used by the CLI and web portal is available through official SDKs for Go, Python, Rust, and TypeScript/JavaScript. Sandboxes can be created and managed, commands executed, files transferred, and snapshots and Volumes managed from applications, AI agents, and CI pipelines. The GitHub Actions example demonstrates workload authentication and automation.
Open source and designed for self-hosting
Cordium runs on a single-node VM or a production multi-node Kubernetes cluster, cloud-based or on-premises. There is no proprietary control plane, no tiered feature set, and no vendor lock-in. Spaces organize Workspaces, Templates, Secrets, and Volumes for individuals and teams.
Installation and getting started
Installation follows the quick installation guide for a single-node Linux VM/VPS, or the Cluster installation guide for an existing Octelium Cluster or a multi-node Kubernetes installation. CLI installation guides exist for Linux, macOS, and Windows. To run a first Workspace, set the Cluster domain, log in, and create a Workspace from the default Template with an interactive terminal:
export OCTELIUM_DOMAIN=example.com
octelium login
cordium run
A disposable Workspace from an image, or a custom YAML configuration, can be created with:
cordium run --image python:3.13-slim --ephemeral --rm cordium run --file workspace.yamlFor an existing Workspace named abc, a terminal can be opened (starting it first if stopped), a test suite run, or startup logs followed with:
cordium run abc cordium exec abc -w /workspace/repo -- make test cordium logs abcWorkspace and Template specifications
Workspaces and Templates share the same declarative spec structure. A workspace.yaml example clones a Python project and installs its dependencies on the first run:
spec: image: registry: url: python:3.13-slim repository: url: https://github.com/myorg/my-project runtime: tasks: - name: install type: ON_CREATE workingDir: /workspace/repo run: pip install -r requirements.txt onFailure: ON_FAILURE_ABORTThis can be run via
cordium run --file workspace.yaml, or saved as a reusable Template viacordium create template python-dev --file workspace.yaml.Architecture and isolation
Each Workspace runs inside a Kubernetes pod that bootstraps a hardened supervisor, which in turn launches the actual sandbox as a rootless container. The sandbox has its own filesystem, processes, and network, and its root user maps to an unprivileged user outside it. This permits installing system packages and running containers inside the Workspace without granting root access to the Kubernetes node. The supervisor enforces resource limits and network egress policies outside the sandbox. Cordium runs on standard Kubernetes nodes without requiring a separate VM per Workspace or specialized hardware.
Storage requirements
Template pre-builds and WorkspaceSnapshots require a Kubernetes CSI storage backend with volume snapshot support. Shared Volumes require a multi-writer filesystem backend such as NFS, CephFS, or EFS. Persistent Workspaces and exclusive Volumes can use regular single-writer storage.
Licensing
Cordium-owned source code is licensed under the Apache License 2.0. Cordium is built on top of Octelium; some Cordium components or complete deployments may include Octelium Cluster components, which are publicly licensed under AGPLv3. Octelium Labs, LLC owns the relevant copyrights for both projects. Copyright © Octelium Labs, LLC. All rights reserved.