← 开源

A self-hosted coding agent for background work - works with Claude Code, Codex, OpenCode & 100+ providers

Python
增长势头
+024 小时新增 Star0.0%
359
Star
59
Fork
9
贡献者
创建于 2026-09-30 · 更新于 2026-12-02 · 今日第 24699 名
主要开发者
README

Moyai

Moyai is a shared AI workspace for coding and connected-service tasks. Chat with an agent, steer its work, answer questions, inspect its computer, and keep the resulting files and history. Pydantic AI and Harness provide the agent; Temporal runs durable execution, Modal or AWS Lambda MicroVMs provide its computer, and LiteLLM supplies models.

The application has one Python installation, one lockfile, and one React frontend. An existing deployment keeps its users, permissions, historical sessions, credentials and accounting through the shared product services.

The current composer, captured at 2× resolution in light and dark mode. Account, model, and session data are synthetic; the task is an unsent demo draft.

Install

Moyai runs as four roles from one image: the API, coordinator, broker and worker. Bring PostgreSQL, private S3-compatible storage, a reachable HTTPS origin, a model gateway with an enabled Responses-capable model, and Modal credentials. Agents execute in Modal computers; your host runs the Moyai application.

For AWS ARM64 computers, follow the native Lambda MicroVM setup.

Docker

Use the Docker installation guide. It includes a complete environment example and instructions to obtain a release bundle or build one from a checkout. From the deployment directory, with the required settings exported:

sh moyai.sh up

Choose the Temporal option before the first startup:

Setting Behavior
MOYAI_TEMPORAL_MODE=external Connect to Temporal Cloud or your existing server using its address, namespace and TLS/API-key settings.
MOYAI_TEMPORAL_MODE=bundled Start the included persistent Temporal server and database; setup generates the internal database password.

The helper configures the installation, checks dependencies, prepares schemas, retains generated keys, starts the services and waits for activation. Use sh moyai.sh password to retrieve a generated sign-in password and sh moyai.sh status to check readiness. A real file task separately verifies model and computer access.

Keep the deployment configuration and persistent volumes, and keep credentials exported for later starts. Existing installations must use the documented migration and upgrade procedures.

Kubernetes

Use the Helm chart.

Develop from source

Prerequisites: Python 3.13, Node.js 22 or newer, Rust 1.88 or newer (to build AgentChat), uv, and a local PostgreSQL and S3-compatible store.

git clone https://github.com/BerriAI/moyai.git
cd moyai
uv sync --frozen

moyai dev runs every role in one process against those local services, with a Temporal development server. Export the settings described under local rehearsal, then:

uv run --frozen moyai dev --port 8787

Installation builds the UI from source.

Use and operate

  • Using Moyai: chat, files, computer control, connections, Settings, Slack, approvals and recovery.
  • GitLab: selected-project setup, native MR workflows, review handling and supported capability boundaries.
  • Swarms: persistent teams, shared findings, independent member computers, and durable Pause/Resume/time controls on Pydantic AI.
  • Architecture: how requests move through the system and which data belongs to each service.
  • Lens tracing: export native runs and join them to gateway model calls, with replay-safe context propagation.
  • Full Linux computers: select Modal's VM runtime for Chromium/WebRTC and other workloads that need a full Linux kernel.
  • Docker installation: self-hosted installation and upgrades.
  • Managed deployment workflows and runbooks are maintained in a private repository.
  • Verification: tests, packaging and Docker checks.
  • Consolidation scope: retired code, preserved contracts and features that remain deferred.
  • Documentation index.

Develop

uv run --frozen pytest -q tests
uv run --frozen pytest -q native/tests
uv run --frozen --directory native ruff check src tests
uv run --frozen --directory native pyright
npm run typecheck
npm test
npm run test:ui

Install Chromium once with npx playwright install chromium. PostgreSQL tests need a disposable local database; see the verification guide. Build frontend changes with npm run build. The generated native/src/moyai/static directory is ignored by Git and included by the package build. The Python image serves those assets without Node.js.

排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载