Skip to main content

Deploy Moyai for a team

If you have…Use…Where commands run
A server with Docker ComposeDocker release bundleModal by default, or AWS Lambda MicroVMs
A Kubernetes clusterMoyai Helm chartModal by default. The chart runs the Moyai services in your cluster.
An AWS account with Lambda MicroVM and Bedrock accessAWS Terraform deploymentLambda MicroVMs in your AWS account

The Docker and Helm examples below use the published Moyai v0.1.6 release. 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.

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.

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

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 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. From the directory containing your values file, install into your prepared namespace.

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. To run the sandboxes themselves on EKS, follow the separate EKS sandbox build and installation guide. 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 or Helm upgrade guidance. Changing a running installation's topology, database, or object storage requires a migration.

LiteLLM Enterprise
SSO/SAML, audit logs, spend tracking, multi-team management, and guardrails, built for production.
Learn more →