# OpenManus Docker Commands # Build and run the OpenManus platform locally # 1. Build the Docker image locally docker build -t openmanus-local . # 2. Run the container locally (recommended) docker run -it -p 7860:7860 --platform=linux/amd64 openmanus-local # 3. Run with environment variables (for Cloudflare integration) docker run -it -p 7860:7860 --platform=linux/amd64 \ -e CLOUDFLARE_API_TOKEN="your-token" \ -e CLOUDFLARE_ACCOUNT_ID="your-account-id" \ -e CLOUDFLARE_D1_DATABASE_ID="your-d1-id" \ -e CLOUDFLARE_R2_BUCKET_NAME="your-r2-bucket" \ -e CLOUDFLARE_KV_NAMESPACE_ID="your-kv-id" \ -e CLOUDFLARE_DURABLE_OBJECTS_ID="your-durable-objects-id" \ openmanus-local # 4. Run with volume mounts (for persistent data) docker run -it -p 7860:7860 --platform=linux/amd64 \ -v "${PWD}/data:/home/user/app/data" \ -v "${PWD}/logs:/home/user/app/logs" \ openmanus-local # 5. Run in background (daemon mode) docker run -d -p 7860:7860 --platform=linux/amd64 --name openmanus openmanus-local # 6. Run from HuggingFace registry - NEW HHH SPACE docker run -it -p 7860:7860 --platform=linux/amd64 \ registry.hf.space/speedofmastery-hhh:latest # 6b. Run from old agnt space (backup) docker run -it -p 7860:7860 --platform=linux/amd64 \ registry.hf.space/speedofmastery-agnt:latest # 7. Debug mode with shell access docker run -it --platform=linux/amd64 openmanus-local /bin/bash # 8. Check running containers docker ps # 9. Stop the container docker stop openmanus # 10. Remove the container docker rm openmanus # Access the platform at: http://localhost:7860