---
title: "Deploy Moyai for a team"
url: "/docs/self_hosted_coding_agents/moyai/deployment"
canonical_url: "https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai/deployment"
type: "docs"
last_updated: "2026-12-02"
summary: "Choose Docker Compose, Helm, or the AWS Terraform deployment for a persistent Moyai installation and plan which state to back up."
related:
  - "/docs/self_hosted_coding_agents/moyai/setup"
  - "/docs/self_hosted_coding_agents/moyai/aws"
---
# Deploy Moyai for a team

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt

| If you have… | Use… | Where commands run |
| --- | --- | --- |
| A server with Docker Compose | [Docker release bundle](#docker-compose) | Modal by default, or AWS Lambda MicroVMs |
| A Kubernetes cluster | [Moyai Helm chart](#kubernetes) | Modal by default. The chart runs the Moyai services in your cluster. |
| An AWS account with Lambda MicroVM and Bedrock access | [AWS Terraform deployment](./aws.md) | Lambda MicroVMs in your AWS account |

The Docker and Helm examples below use the published [Moyai v0.1.6 release](https://github.com/BerriAI/moyai/releases/tag/v0.1.6). Both packages pin an application image from the same revision.

## Docker Compose

Use Docker Compose 2.30 or newer on the host. Prepare an HTTPS origin, a PostgreSQL database with empty installation schemas, a private S3-compatible bucket, and a LiteLLM gateway with a Responses-capable model. The default sandbox provider requires a Modal token. You can use an existing Temporal namespace or start the bundled Temporal service.

Download and extract the release on the Docker host.

```bash
curl -fLO https://github.com/BerriAI/moyai/releases/download/v0.1.6/moyai-docker.tar.gz
tar -xzf moyai-docker.tar.gz
cd moyai-docker
```

Export the host, database, storage, model, and sandbox settings from your secret manager. The bundle's `README.md` gives the full environment example. Start one application container with the bundled Temporal server.

```bash
export MOYAI_TEMPORAL_MODE=bundled
sh moyai.sh up
sh moyai.sh status
```

For separate API, coordinator, broker, and worker containers, export `MOYAI_INSTALL_TOPOLOGY=split` **before the first startup**. To use an existing Temporal service, supply its address, namespace, and credentials in place of the bundled setting. [Release configuration and topology options](https://github.com/BerriAI/moyai/blob/v0.1.6/deploy/docker/README.md#first-installation)

Open your HTTPS origin and sign in as `admin`. If you let the installer generate the password, retrieve it privately with `sh moyai.sh password`. Then [run the file task](./setup.md#check-the-model-connection) to verify the model and sandbox.

## Kubernetes

The release chart runs the four Moyai roles in **one pod**. It requires Kubernetes 1.29+, Helm 3.19+, an existing namespace, a private bucket, persistent storage, and ingress that supports streaming and WebSockets. The broker route must be reachable during startup. Use external PostgreSQL and Temporal for a persistent team deployment. The chart also offers bundled services for development.

Create the runtime and database Secrets and a `values.yaml` for your origin, storage, and Temporal namespace. Use the [release chart's prerequisites and values example](https://github.com/BerriAI/moyai/blob/v0.1.6/charts/moyai/README.md#prerequisites-and-secrets). From the directory containing your values file, install into your prepared namespace.

```bash
helm install moyai oci://ghcr.io/berriai/charts/moyai \
  --version 0.1.6 --namespace moyai --values values.yaml
kubectl get pods --namespace moyai
```

When the pod is ready, open the configured origin and [run the file task](./setup.md#check-the-model-connection). To run the **sandboxes themselves on EKS**, follow the separate [EKS sandbox build and installation guide](https://github.com/BerriAI/moyai/blob/main/docs/kubernetes-sandboxes.md). That path requires a matching source chart, application and workspace images, and EKS sandbox support.

## Backups and upgrades

Back up the installation's signing and encryption keys with PostgreSQL, the referenced objects and checkpoints, and Temporal persistence. Test a restore by signing in, opening a saved file, and continuing its conversation.

For an image change, use the release's [Docker maintenance procedure](https://github.com/BerriAI/moyai/blob/v0.1.6/deploy/docker/README.md#maintenance-upgrades) or [Helm upgrade guidance](https://github.com/BerriAI/moyai/blob/v0.1.6/charts/moyai/README.md#restart-recovery-and-upgrades). Changing a running installation's topology, database, or object storage requires a migration.

## Related pages

- [Docker quickstart](https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai/setup.md)
- [AWS deployment](https://docs.litellm.ai/docs/self_hosted_coding_agents/moyai/aws.md)
