From 1790149986686dce173a39adae105a998b9c5020 Mon Sep 17 00:00:00 2001
From: yiling
Date: Sun, 14 Jun 2026 11:04:04 +0800
Subject: [PATCH 1/9] docs(readme): improve remote deployment and temporal
execution instructions
---
README.md | 66 +++++++++++++++++++++++++++++++++++--------------------
1 file changed, 42 insertions(+), 24 deletions(-)
diff --git a/README.md b/README.md
index 31972d59..c3014c36 100644
--- a/README.md
+++ b/README.md
@@ -41,15 +41,16 @@ The easiest way to run Shumai is using Docker Compose. You do not need to clone
```bash
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.yaml
```
-2. Start the services:
+2. Configure environment variables (if deploying remotely):
+ If you are deploying Shumai to a remote server (e.g., AWS ECS, EC2, VPS), you must edit `docker-compose.yaml` under `shumai -> environment` to set:
+ - `AWS_ENDPOINT_URL_S3` to your server's public IP or domain name (e.g., `http://43.153.213.233:3000`).
+ - `BETTER_AUTH_URL` to your server's public IP or domain name (e.g., `http://43.153.213.233:3000`).
+3. Start the services:
```bash
docker compose up -d
```
-3. Access the application in your browser at:
- ```
- http://localhost:3000
- ```
-4. Stop and remove the services:
+4. Access the application in your browser at `http://localhost:3000` (or `http://:3000` for remote deployments).
+5. Stop and remove the services:
```bash
docker compose down
```
@@ -94,11 +95,15 @@ Create a `.env` file in this folder and add the following configuration (which a
```env
DATABASE_URL=postgresql://shumai:shumai_password@localhost:5432/shumai_db?schema=public
-BETTER_AUTH_SECRET=ySxs7DxzHDGBbeeHNPEwBuspYwipBqz5Gk5XdBjNhWw=
+BETTER_AUTH_SECRET=ySxs7DxzHDZBbeeHNPEwBuspYwipBqz5Gk5XdBjNhWw=
BETTER_AUTH_URL=http://localhost:3000
STORAGE_BACKEND=local
+AWS_ENDPOINT_URL_S3=http://localhost:3000
```
+> [!NOTE]
+> If you are deploying on a remote server, make sure to change `BETTER_AUTH_URL` and `AWS_ENDPOINT_URL_S3` from `http://localhost:3000` to your server's public IP address or domain name (e.g., `http://43.153.213.233:3000`).
+
#### Step 4: Run Shumai
Start the application from your configuration folder:
@@ -142,39 +147,52 @@ For production environments or workloads with heavy media processing and AI agen
By setting the environment variable `WORKFLOW_EXECUTOR=temporal`, the main Shumai application will delegate background workflows to a Temporal cluster instead of using the local polling-based engine. This allows you to run independent worker processes (`shumai-agent` and `shumai-transcode`) on separate specialized machines (e.g., transcoding workers on GPU-accelerated instances, and agents on sandboxed environments).
-### 1. Configure the environment
+> [!IMPORTANT]
+> **Storage Requirement**: Because the main Shumai application and the background workers run on different machines in a distributed setup, **you must use S3-compatible storage** (e.g., AWS S3, Cloudflare R2, MinIO). Local storage (`STORAGE_BACKEND=local`) will not work because the workers and the main application do not share a common local filesystem.
-Add the following variables to your `.env` configuration on all machines:
+### 1. Set up the Core Stack
-```env
-WORKFLOW_EXECUTOR=temporal
-TEMPORAL_ADDRESS=localhost:7233
-```
+Spin up the database, Temporal server, and the main Shumai web application on your primary host machine using Docker Compose:
-### 2. Set up the stack
-
-You can spin up the main application, database, and Temporal services using Docker Compose:
-
-1. Create a `docker-compose.yaml` file by downloading the configuration:
+1. Download the Temporal-enabled `docker-compose.yaml` file:
```bash
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/temporal/docker-compose.yaml
```
-2. Start the services:
+2. Configure the environment variables in `docker-compose.yaml`:
+ - Set the S3 storage environment variables (`S3_ENDPOINT_URL`, `S3_REGION`, `BUCKET_NAME`, etc.).
+ - If deploying to a remote host (e.g., AWS ECS, EC2, VPS), update `AWS_ENDPOINT_URL_S3` and `BETTER_AUTH_URL` under the `shumai` service to your server's public IP address or domain name (e.g., `http://43.153.213.233:3000`).
+ - Note: The `TEMPORAL_ADDRESS` environment variable for the main Shumai application is pre-configured as `temporal:7233` (referencing the Temporal container within the same Docker network) and does not need to be changed.
+3. Start the services:
```bash
docker compose up -d
```
- This exposes the Shumai Web UI at `http://localhost:3000` and the Temporal dashboard at `http://localhost:8080`.
+ This exposes the Shumai Web UI at `http://:3000`, the database at port `5432`, the Temporal gRPC service at port `7233`, and the Temporal dashboard at `http://:8080`. Ensure that port `7233` is exposed and accessible by your background worker machines.
-### 3. Run the background workers
+### 2. Run the Background Workers
-When running in Temporal mode, the main Shumai application only submits tasks to the Temporal queue. To process these tasks, you must run at least one agent worker and one transcoding worker:
+When running in Temporal mode, the main Shumai application only submits tasks to the Temporal queue. To process these tasks, you must run at least one agent worker and one transcoding worker on their respective machines.
+
+Configure a `.env` file on each worker machine. It must contain the following variables:
+
+```env
+DATABASE_URL=postgresql://shumai:shumai_password@:5432/shumai_db?schema=public
+TEMPORAL_ADDRESS=:7233
+STORAGE_BACKEND=s3
+AWS_ENDPOINT_URL_S3=http://:3000 # Or your public S3/R2 endpoint URL
+S3_REGION=us-east-1
+S3_BUCKET=shumai
+S3_ACCESS_KEY_ID=your-access-key-id
+S3_SECRET_ACCESS_KEY=your-secret-access-key
+```
+
+Run the workers:
- **Transcoding Worker**:
Install `@shumai-one/shumai-transcode` and run it on a machine with sufficient transcoding resources:
```bash
npm install -g @shumai-one/shumai-transcode
- # Run worker with correct .env containing DATABASE_URL and TEMPORAL_ADDRESS
+ # Run worker with the configured .env
shumai-transcode
```
@@ -182,6 +200,6 @@ When running in Temporal mode, the main Shumai application only submits tasks to
Install `@shumai-one/shumai-agent` and run it on a machine configured for AI tasks (with access to sandbox environments and `GEMINI_API_KEY`):
```bash
npm install -g @shumai-one/shumai-agent
- # Run worker with correct .env containing DATABASE_URL and TEMPORAL_ADDRESS
+ # Run worker with the configured .env (must include GEMINI_API_KEY)
shumai-agent
```
From 8c55897d80407e3ab9b42b62f8c7a1c4821c5abc Mon Sep 17 00:00:00 2001
From: yiling
Date: Sun, 14 Jun 2026 15:01:44 +0800
Subject: [PATCH 2/9] refactor(auth): remove BETTER_AUTH_URL configuration and
set a default baseURL fallback
---
README.md | 6 ++----
docker-compose/local/docker-compose.yaml | 1 -
docker-compose/temporal/docker-compose.yaml | 1 -
packages/core/src/auth/auth.ts | 2 +-
4 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index c3014c36..a2791ade 100644
--- a/README.md
+++ b/README.md
@@ -44,7 +44,6 @@ The easiest way to run Shumai is using Docker Compose. You do not need to clone
2. Configure environment variables (if deploying remotely):
If you are deploying Shumai to a remote server (e.g., AWS ECS, EC2, VPS), you must edit `docker-compose.yaml` under `shumai -> environment` to set:
- `AWS_ENDPOINT_URL_S3` to your server's public IP or domain name (e.g., `http://43.153.213.233:3000`).
- - `BETTER_AUTH_URL` to your server's public IP or domain name (e.g., `http://43.153.213.233:3000`).
3. Start the services:
```bash
docker compose up -d
@@ -96,13 +95,12 @@ Create a `.env` file in this folder and add the following configuration (which a
```env
DATABASE_URL=postgresql://shumai:shumai_password@localhost:5432/shumai_db?schema=public
BETTER_AUTH_SECRET=ySxs7DxzHDZBbeeHNPEwBuspYwipBqz5Gk5XdBjNhWw=
-BETTER_AUTH_URL=http://localhost:3000
STORAGE_BACKEND=local
AWS_ENDPOINT_URL_S3=http://localhost:3000
```
> [!NOTE]
-> If you are deploying on a remote server, make sure to change `BETTER_AUTH_URL` and `AWS_ENDPOINT_URL_S3` from `http://localhost:3000` to your server's public IP address or domain name (e.g., `http://43.153.213.233:3000`).
+> If you are deploying on a remote server, make sure to change `AWS_ENDPOINT_URL_S3` from `http://localhost:3000` to your server's public IP address or domain name (e.g., `http://43.153.213.233:3000`).
#### Step 4: Run Shumai
@@ -160,7 +158,7 @@ Spin up the database, Temporal server, and the main Shumai web application on yo
```
2. Configure the environment variables in `docker-compose.yaml`:
- Set the S3 storage environment variables (`S3_ENDPOINT_URL`, `S3_REGION`, `BUCKET_NAME`, etc.).
- - If deploying to a remote host (e.g., AWS ECS, EC2, VPS), update `AWS_ENDPOINT_URL_S3` and `BETTER_AUTH_URL` under the `shumai` service to your server's public IP address or domain name (e.g., `http://43.153.213.233:3000`).
+ - If deploying to a remote host (e.g., AWS ECS, EC2, VPS), update `AWS_ENDPOINT_URL_S3` under the `shumai` service to your server's public IP address or domain name (e.g., `http://43.153.213.233:3000`).
- Note: The `TEMPORAL_ADDRESS` environment variable for the main Shumai application is pre-configured as `temporal:7233` (referencing the Temporal container within the same Docker network) and does not need to be changed.
3. Start the services:
```bash
diff --git a/docker-compose/local/docker-compose.yaml b/docker-compose/local/docker-compose.yaml
index 7a26291f..a91a6875 100644
--- a/docker-compose/local/docker-compose.yaml
+++ b/docker-compose/local/docker-compose.yaml
@@ -32,7 +32,6 @@ services:
# Better Auth
BETTER_AUTH_SECRET: qSxs9DxzHDZBbeeTNPEwBuspYwipBqz5Gk5XdBjNhWw=
- BETTER_AUTH_URL: https://staging.shumai.one/
depends_on:
postgres:
diff --git a/docker-compose/temporal/docker-compose.yaml b/docker-compose/temporal/docker-compose.yaml
index 1d7b07ca..982deaeb 100644
--- a/docker-compose/temporal/docker-compose.yaml
+++ b/docker-compose/temporal/docker-compose.yaml
@@ -33,7 +33,6 @@ services:
S3_ACCESS_KEY_ID: ID
S3_SECRET_ACCESS_KEY: KEY
BETTER_AUTH_SECRET: qSxs9DxzHDZBbeeTNPEwBuspYwipBqz5Gk5XdBjNhWw=
- BETTER_AUTH_URL: http://localhost:3000
WORKFLOW_EXECUTOR: temporal
TEMPORAL_ADDRESS: temporal:7233
GEMINI_API_KEY: KEY
diff --git a/packages/core/src/auth/auth.ts b/packages/core/src/auth/auth.ts
index b3966f6c..6ff73601 100644
--- a/packages/core/src/auth/auth.ts
+++ b/packages/core/src/auth/auth.ts
@@ -15,7 +15,7 @@ export const auth = betterAuth({
},
secret: process.env.BETTER_AUTH_SECRET,
// eslint-disable-next-line @typescript-eslint/naming-convention
- baseURL: process.env.BETTER_AUTH_URL,
+ baseURL: process.env.BETTER_AUTH_URL || 'http://localhost:3000',
basePath: '/api/auth',
trustedOrigins: ['http://localhost:3000', 'http://127.0.0.1:3000'],
advanced: {
From 8d8eeaaf475ad0a943905897b22385357c89603e Mon Sep 17 00:00:00 2001
From: Yiling-J
Date: Sun, 14 Jun 2026 15:10:09 +0800
Subject: [PATCH 3/9] Update README for clarity and consistency
---
README.md | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index a2791ade..ac20c722 100644
--- a/README.md
+++ b/README.md
@@ -42,17 +42,12 @@ The easiest way to run Shumai is using Docker Compose. You do not need to clone
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/local/docker-compose.yaml
```
2. Configure environment variables (if deploying remotely):
- If you are deploying Shumai to a remote server (e.g., AWS ECS, EC2, VPS), you must edit `docker-compose.yaml` under `shumai -> environment` to set:
- - `AWS_ENDPOINT_URL_S3` to your server's public IP or domain name (e.g., `http://43.153.213.233:3000`).
+ If you are deploying Shumai to a remote server (e.g., AWS ECS, EC2, VPS), you must edit `docker-compose.yaml`, set `AWS_ENDPOINT_URL_S3` to your server's public IP or domain name (e.g., `http://12.345.567.789:3000`).
3. Start the services:
```bash
docker compose up -d
```
4. Access the application in your browser at `http://localhost:3000` (or `http://:3000` for remote deployments).
-5. Stop and remove the services:
- ```bash
- docker compose down
- ```
### Option 2: Install from NPM
@@ -86,8 +81,8 @@ npm install -g @shumai-one/shumai
Create a new directory for your Shumai configuration and navigate into it:
```bash
-mkdir my-shumai-app
-cd my-shumai-app
+mkdir shumai
+cd shumai
```
Create a `.env` file in this folder and add the following configuration (which aligns with the Docker database command in Step 1):
@@ -100,7 +95,7 @@ AWS_ENDPOINT_URL_S3=http://localhost:3000
```
> [!NOTE]
-> If you are deploying on a remote server, make sure to change `AWS_ENDPOINT_URL_S3` from `http://localhost:3000` to your server's public IP address or domain name (e.g., `http://43.153.213.233:3000`).
+> If you are deploying on a remote server, make sure to change `AWS_ENDPOINT_URL_S3` from `http://localhost:3000` to your server's public IP address or domain name.
#### Step 4: Run Shumai
@@ -158,7 +153,7 @@ Spin up the database, Temporal server, and the main Shumai web application on yo
```
2. Configure the environment variables in `docker-compose.yaml`:
- Set the S3 storage environment variables (`S3_ENDPOINT_URL`, `S3_REGION`, `BUCKET_NAME`, etc.).
- - If deploying to a remote host (e.g., AWS ECS, EC2, VPS), update `AWS_ENDPOINT_URL_S3` under the `shumai` service to your server's public IP address or domain name (e.g., `http://43.153.213.233:3000`).
+ - If deploying to a remote host (e.g., AWS ECS, EC2, VPS), update `AWS_ENDPOINT_URL_S3` under the `shumai` service to your server's public IP address or domain name.
- Note: The `TEMPORAL_ADDRESS` environment variable for the main Shumai application is pre-configured as `temporal:7233` (referencing the Temporal container within the same Docker network) and does not need to be changed.
3. Start the services:
```bash
@@ -195,7 +190,7 @@ Run the workers:
```
- **AI Agent Worker**:
- Install `@shumai-one/shumai-agent` and run it on a machine configured for AI tasks (with access to sandbox environments and `GEMINI_API_KEY`):
+ Install `@shumai-one/shumai-agent` and run it on a machine configured for Agent tasks:
```bash
npm install -g @shumai-one/shumai-agent
# Run worker with the configured .env (must include GEMINI_API_KEY)
From 42d89eb88d1f7096d7ff7d066224cd2b853125d8 Mon Sep 17 00:00:00 2001
From: yiling
Date: Sun, 14 Jun 2026 15:18:31 +0800
Subject: [PATCH 4/9] docs(readme): add worker network and region proximity
recommendations
---
README.md | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/README.md b/README.md
index ac20c722..a14ad023 100644
--- a/README.md
+++ b/README.md
@@ -165,6 +165,12 @@ Spin up the database, Temporal server, and the main Shumai web application on yo
When running in Temporal mode, the main Shumai application only submits tasks to the Temporal queue. To process these tasks, you must run at least one agent worker and one transcoding worker on their respective machines.
+> [!NOTE]
+> **Network & Access Requirements**:
+>
+> - Both the transcode worker and the agent worker must have network access to the PostgreSQL database and the S3-compatible storage.
+> - Because the transcode worker needs to download and upload large media files for transcoding, it is highly recommended to deploy the transcode worker in the same cloud provider and region as your S3 storage to minimize transfer latency and data egress fees.
+
Configure a `.env` file on each worker machine. It must contain the following variables:
```env
From f285b9e3279aebde5f4d63294c655bd92acd9168 Mon Sep 17 00:00:00 2001
From: Yiling-J
Date: Sun, 14 Jun 2026 15:24:58 +0800
Subject: [PATCH 5/9] Update README with website and documentation links
Added links to website, documentation, and demo in the README.
---
README.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a14ad023..8133b202 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,10 @@
An open-source platform for all your creative work.
----
+
+ Website | Docs | Demo
+
+

From 28243776004e644de34b08f2550dc382bbd8d896 Mon Sep 17 00:00:00 2001
From: yiling
Date: Sun, 14 Jun 2026 16:06:35 +0800
Subject: [PATCH 6/9] docs(readme): add Agent Sandbox platform support and OS
dependencies details
---
README.md | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 61 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 8133b202..66b78464 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,6 @@
Website | Docs | Demo
-

## Features
@@ -73,6 +72,9 @@ docker run --name shumai_postgres \
Install the main Shumai package using `npm`, `pnpm`, `bun`, or `yarn`:
+> [!IMPORTANT]
+> **Prerequisite**: Because Shumai uses a secure sandboxed execution environment for its AI agents, your machine must meet the platform requirements for the sandbox. Please verify you have installed the required dependencies for your OS as detailed in the [Agent Sandbox Platform Support](#agent-sandbox-platform-support) section.
+
```bash
npm install -g @shumai-one/shumai
# or: pnpm add -g @shumai-one/shumai
@@ -200,8 +202,66 @@ Run the workers:
- **AI Agent Worker**:
Install `@shumai-one/shumai-agent` and run it on a machine configured for Agent tasks:
+
+ > [!IMPORTANT]
+ > Because the AI Agent worker runs sandboxed agent scripts, the host machine must have the necessary dependencies installed. Please refer to [Agent Sandbox Platform Support](#agent-sandbox-platform-support) for setup details.
+
```bash
npm install -g @shumai-one/shumai-agent
# Run worker with the configured .env (must include GEMINI_API_KEY)
shumai-agent
```
+
+---
+
+## Agent Sandbox Platform Support
+
+Shumai uses `anthropic-experimental/sandbox-runtime` to execute AI agent scripts and tasks in a secure, isolated sandbox environment. When installing Shumai or the AI Agent worker from NPM, ensure your host platform meets the following requirements:
+
+### Platform Support
+
+- **macOS**: Uses `sandbox-exec` with custom profiles (no additional OS-level containerization dependencies).
+- **Linux**: Uses `bubblewrap` (bwrap) for containerization.
+- **Windows**: Not yet supported.
+
+### Platform-Specific Dependencies
+
+#### Linux
+
+The following system packages must be installed on your Linux host:
+
+- `bubblewrap` - Container runtime
+ - Ubuntu/Debian: `sudo apt-get install bubblewrap`
+ - Fedora: `sudo dnf install bubblewrap`
+ - Arch: `sudo pacman -S bubblewrap`
+- `socat` - Socket relay for proxy bridging
+ - Ubuntu/Debian: `sudo apt-get install socat`
+ - Fedora: `sudo dnf install socat`
+ - Arch: `sudo pacman -S socat`
+- `ripgrep` - Fast search tool for deny path detection
+ - Ubuntu/Debian: `sudo apt-get install ripgrep`
+ - Fedora: `sudo dnf install ripgrep`
+ - Arch: `sudo pacman -S ripgrep`
+
+**Ubuntu 24.04+ Note**: These releases restrict unprivileged user namespaces by default. Disable this restriction so that `bubblewrap` and the seccomp isolation layer can function:
+
+```bash
+sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
+```
+
+**Optional Linux Dependencies (for seccomp fallback)**:
+Pre-generated seccomp filters are provided for x86-64 and arm architectures. If you run on a different architecture, you will need a C compiler and development files:
+
+- `gcc` or `clang`
+- `libseccomp` development headers
+ - Ubuntu/Debian: `sudo apt-get install gcc libseccomp-dev`
+ - Fedora: `sudo dnf install gcc libseccomp-devel`
+ - Arch: `sudo pacman -S gcc libseccomp`
+
+#### macOS
+
+The following dependencies are required on macOS:
+
+- `ripgrep` - Fast search tool for deny path detection
+ - Install via Homebrew: `brew install ripgrep`
+ - Or download from: https://github.com/BurntSushi/ripgrep/releases
From ca31ef02fd325b4b7e725e91603f32155fa6e079 Mon Sep 17 00:00:00 2001
From: Yiling-J
Date: Sun, 14 Jun 2026 16:10:25 +0800
Subject: [PATCH 7/9] Change header level for Shumai Agent section
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 66b78464..48726359 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@
- **Scalable Transcode Workflows via Temporal**: Offload resource-heavy video transcoding to a reliable background worker pool orchestrated by Temporal.
- **Flexible Asset Metadata System**: Customize your workspace metadata with dynamic, user-defined fields tailored to your production pipeline.
-### Shumai Agent
+#### Shumai Agent
- **Chat with Agent as a Collaborator**: Converse with a context-aware AI agent directly within your project workspace.
- **Extend Agent with Skills**: Easily register new tools and custom skills for the agent to run and automate workflows.
From fc3baede99f0376dc2b9168e6b67f68a8c3d5954 Mon Sep 17 00:00:00 2001
From: yiling
Date: Sun, 14 Jun 2026 16:20:55 +0800
Subject: [PATCH 8/9] docs(readme): correct S3 endpoint environment variable
names
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 48726359..4161b3c7 100644
--- a/README.md
+++ b/README.md
@@ -157,7 +157,7 @@ Spin up the database, Temporal server, and the main Shumai web application on yo
curl -o docker-compose.yaml https://raw.githubusercontent.com/shumaiOne/shumai/main/docker-compose/temporal/docker-compose.yaml
```
2. Configure the environment variables in `docker-compose.yaml`:
- - Set the S3 storage environment variables (`S3_ENDPOINT_URL`, `S3_REGION`, `BUCKET_NAME`, etc.).
+ - Set the S3 storage environment variables (`AWS_ENDPOINT_URL_S3`, `S3_REGION`, `S3_BUCKET`, etc.).
- If deploying to a remote host (e.g., AWS ECS, EC2, VPS), update `AWS_ENDPOINT_URL_S3` under the `shumai` service to your server's public IP address or domain name.
- Note: The `TEMPORAL_ADDRESS` environment variable for the main Shumai application is pre-configured as `temporal:7233` (referencing the Temporal container within the same Docker network) and does not need to be changed.
3. Start the services:
From 0a0a8f973d953df56ff10c1dd9b872ec50de8b7b Mon Sep 17 00:00:00 2001
From: yiling
Date: Sun, 14 Jun 2026 17:21:46 +0800
Subject: [PATCH 9/9] docs(readme): add FFmpeg prerequisites and
WORKFLOW_EXECUTOR env variable
---
README.md | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 4161b3c7..7b255150 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,13 @@ docker run --name shumai_postgres \
Install the main Shumai package using `npm`, `pnpm`, `bun`, or `yarn`:
> [!IMPORTANT]
-> **Prerequisite**: Because Shumai uses a secure sandboxed execution environment for its AI agents, your machine must meet the platform requirements for the sandbox. Please verify you have installed the required dependencies for your OS as detailed in the [Agent Sandbox Platform Support](#agent-sandbox-platform-support) section.
+> **Prerequisites**:
+>
+> - **Agent Sandbox**: Because Shumai uses a secure sandboxed execution environment for its AI agents, your machine must meet the platform requirements for the sandbox. Please verify you have installed the required dependencies for your OS as detailed in the [Agent Sandbox Platform Support](#agent-sandbox-platform-support) section.
+> - **FFmpeg & FFprobe**: Shumai requires `ffmpeg` and `ffprobe` to be installed on your system path for handling media transcoding and metadata extraction.
+> - macOS: `brew install ffmpeg`
+> - Ubuntu/Debian: `sudo apt-get install ffmpeg`
+> - Fedora: `sudo dnf install ffmpeg`
```bash
npm install -g @shumai-one/shumai
@@ -180,6 +186,7 @@ Configure a `.env` file on each worker machine. It must contain the following va
```env
DATABASE_URL=postgresql://shumai:shumai_password@:5432/shumai_db?schema=public
+WORKFLOW_EXECUTOR=temporal
TEMPORAL_ADDRESS=:7233
STORAGE_BACKEND=s3
AWS_ENDPOINT_URL_S3=http://:3000 # Or your public S3/R2 endpoint URL
@@ -194,6 +201,12 @@ Run the workers:
- **Transcoding Worker**:
Install `@shumai-one/shumai-transcode` and run it on a machine with sufficient transcoding resources:
+ > [!IMPORTANT]
+ > **FFmpeg Requirement**: The transcoding worker requires `ffmpeg` and `ffprobe` to be installed and available on the machine's system path.
+ >
+ > - macOS: `brew install ffmpeg`
+ > - Ubuntu/Debian: `sudo apt-get install ffmpeg`
+
```bash
npm install -g @shumai-one/shumai-transcode
# Run worker with the configured .env