---
title: "Kodema: open-source software factory for coding agents"
description: "Kodema is an open-source software factory by Optimi for running coding agents as a team on your own Kubernetes, with a person approving every change."
canonical_url: https://optimi.com/en/kodema
md_url: https://optimi.com/en/kodema.md
language: en
alternates:
  - lang: fr
    url: https://optimi.com/fr/kodema
    md_url: https://optimi.com/fr/kodema.md
---

# Kodema: run coding agents as a team, on your own Kubernetes

Kodema is an open-source software factory by Optimi for running coding agents as a team on your own Kubernetes. It takes a task to a tested, merged change. An agent does the work in a container, the people you choose approve it, and every step is on record.

[Read the quickstart](/en/docs/kodema/getting-started) · [View Kodema on GitHub](https://github.com/optimiware/kodema)

```
curl -fsSL https://raw.githubusercontent.com/optimiware/kodema/master/install.sh | sh
```

Then `kodema up`. Needs Linux with rootless Podman 5+, or macOS with a Podman machine.

[Optimi also uses Kodema to help companies replace legacy business applications with software they own.](/en/solutions/legacy-modernization)

## Every change takes the same path, and ends with a person’s yes

A pipeline is an ordered list of actions. An action runs a container or asks a person for a decision. Each run is recorded and cannot be changed once it starts.

1. **Set up the pipeline:** Engineers define a project’s steps once: which images and coding agents run, which credentials they may use, and which roles approve.
2. **Submit a task:** Anyone describes the work through the API, the kodema CLI or MCP. A Git push can also start a pipeline.
3. **Steps run in order:** Each action runs in its own container: write, build, test. A stuck agent can ask a person a question without holding a container.
4. **A person approves:** Reviewers pass, revise or fail it from their inbox. A protected branch only accepts the exact commit that passed review.

Each action is a plain Kubernetes Job, with no custom resources and no operator. Git hosting, coding agents, the LLM proxy and MCP are all optional, so Kodema also works as a plain CI and delivery engine.

## What the Kodema software factory gives engineering teams

### Any coding agent

Claude Code, Codex, OpenCode, Pi or a shell script run as a container command. Each gets the same workspace, task files, scoped identity and model access.

### Drive it from your agent over MCP

Connect Claude Code, Codex, OpenCode or Cursor with `kodema mcp install claude` and create tasks, start pipelines and read logs from the chat.

### Human review that cannot be skipped

A pipeline can ask a role for a decision. Kodema’s Git service refuses a push to a protected branch without a passed review of that exact commit.

### A complete audit trail

Decisions record who made them and when. Executions record the exact pipeline bytes, their SHA-256 hash and the image digests that ran.

### Model access with budgets

A built-in LLM proxy injects provider credentials, so keys stay in the control plane. Token and USD budgets cap what each task can spend.

### Safe after a crash

PostgreSQL records facts and NATS distributes them. After a crash, Kodema never reruns a command it cannot prove did not run.

### Secrets you never see again

Secrets are envelope-encrypted under your KMS: Scaleway, AWS, Google Cloud or Vault Transit. The API returns metadata, never values.

### Built for organisations

Multi-tenant and role-based, with Git access rules per repository and per branch, managed in a Git repository.

## Control over what AI agents can ship

- Approvals are tied to one commit and recorded with an immutable decision ID.
- The task identity token is renewed during long runs and revoked while waiting for a decision or once the run ends.
- The installer checks the binary against the release’s published SHA256 sums.
- Each organisation is kept in its own isolated tenant.

**Kodema is not a sandbox.** Kodema isolates work in ordinary containers. It is designed for teams that trust their own engineers, not for running untrusted or hostile code. If you need hard isolation between tenants you do not trust, add it underneath.

## Install Kodema and run your first pipeline

About two minutes on Linux with rootless Podman 5 or newer, or macOS with a Podman machine.

```sh
# install the kodema binary (checked against SHA256SUMS)
curl -fsSL https://raw.githubusercontent.com/optimiware/kodema/master/install.sh | sh

# start a local instance and load its environment
kodema up
source ~/.kodema/instances/default/env.sh

# run the one-action hello.yaml pipeline from the docs
podman pull docker.io/library/alpine:3.24
kodema run hello.yaml

# connect your coding agent over MCP
kodema mcp install claude
```

- [Kodema quickstart: approvals, tasks and MCP](/en/docs/kodema/getting-started)
- [Kodema concepts: pipelines, actions, executions, tasks](/en/docs/kodema/concepts)
- [Coding agents and services](/en/docs/kodema/agents)
- [Running Kodema on Kubernetes](/en/docs/kodema/operations)
- [Kodema releases and changelog](https://github.com/optimiware/kodema/blob/master/CHANGELOG.md)

## Where Kodema stands today

Kodema is at version 0.8 and moving fast. Here is exactly what has been validated.

- **Runs on:** Podman, single host k3s, Kubernetes via Helm
- **Clouds validated live:** Scaleway
- **Implemented, not yet validated:** AWS, Google Cloud
- **High availability:** Control plane and NATS run as one replica each, so a control plane upgrade causes a short outage.
- **Interfaces:** One kodema binary, a REST API, an MCP endpoint and optional Git hosting. No web interface of its own.
- **Sizing:** The reference deployment is not a sizing guarantee. Load-test your own workload.

## Built by Optimi

Kodema is developed by Optimi and released as open source. You can run it yourself on one machine, on Scaleway, AWS or Google Cloud, or use it hosted with the Optimi Platform, which handles accounts, entitlements and billing.

## Questions about Kodema

### What is Kodema?

Kodema is an open-source software factory by Optimi for running coding agents as a team on your own Kubernetes. It takes a task to a tested, merged change, with a person approving it and every step on record.

### Is Kodema free and open source?

Yes. Kodema is free and released under the Apache 2.0 licence, and you host it yourself. Optimi also offers it hosted with the Optimi Platform.

### Does Kodema work with Claude Code?

Yes. Claude Code, Codex, OpenCode, Pi or a shell script can run as a pipeline step, and Claude Code, Codex, OpenCode or Cursor can drive Kodema over MCP.

### Does Kodema run on Kubernetes?

Yes. Each action runs as a plain Kubernetes Job, installed with Helm charts and no operator. Locally it runs on rootless Podman or k3s.

### Which clouds does Kodema support?

Kodema ships OpenTofu setups for Scaleway, AWS and Google Cloud. Scaleway has run live; AWS and Google Cloud are implemented but not yet validated.

### Is Kodema a sandbox for untrusted code?

No. It uses ordinary containers and is designed for teams that trust their own engineers.

### Can Kodema be used without AI agents?

Yes. Agents, the LLM proxy, Git hosting and MCP are optional, so Kodema also works as a plain pipeline and delivery engine.

### Is Kodema a typo for kodama?

No. Kodema is the name of Optimi’s software factory. The name comes from kodama, the Japanese tree spirit.

## Try Kodema on your own machine today

Tell us what breaks in a GitHub issue or discussion. If Kodema is useful to you, a star helps other teams find it.

[Read the quickstart](/en/docs/kodema/getting-started) · [Kodema on GitHub](https://github.com/optimiware/kodema) · [Talk to Optimi](/en/contact)
