Deploy AI agents for your users with complete isolation and security.
# Clone the repository
git clone https://github.com/fresh-industries/openclaw-saas.git
cd openclaw-saas
# Install dependencies
pnpm install
# Set up environment
cp .env.example .env
# Edit .env with your credentials
# Initialize database
cd apps/api
pnpm db:push
# Start development
pnpm devopenclaw-saas/
├── apps/
│ ├── web/ # Next.js 16 frontend (App Router)
│ └── api/ # Express API + Better Auth + Prisma
├── packages/
│ └── openclaw-wrapper/ # Docker container management
├── docker/
│ ├── Dockerfile # OpenClaw container image
│ └── docker-compose.yml
├── turbo.json
└── pnpm-workspace.yaml
- Next.js 16 - React framework with App Router
- React 19 - UI library
- Tailwind CSS - Styling
- shadcn/ui - Component library
- Express - API server
- Better Auth - Authentication (JWT, OAuth, email/password)
- Prisma 7 - Database ORM (SQLite for dev, PostgreSQL for prod)
- Vercel AI SDK - AI integration (GPT-4o, streaming)
- Docker SDK - Container management
- Docker - Per-user container isolation
- Stripe - Billing & subscriptions
- Traefik - Reverse proxy (production)
- Skill Packs: Marketing, Sales, Personal, Real Estate
- Multi-Tenancy: Isolated Docker containers per user
- Better Auth: Email/password, OAuth (Google, GitHub, etc.)
- AI Chat: Vercel AI SDK with streaming responses
- Stripe Billing: Subscription management with webhooks
- Modern UI: Beautiful interface with shadcn/ui
| Tier | Price | Includes |
|---|---|---|
| Personal | $27/mo | Personal pack |
| Professional | $47/mo | 2 packs included |
| Business | $97/mo | All packs + priority |
- Per-user Docker containers with complete isolation
- JWT-based authentication with Better Auth
- OAuth-only (no API key storage in DB)
- Encrypted tokens at rest
- Docker socket protection
# Install all dependencies
pnpm install
# Run all apps in parallel
pnpm dev
# Build all apps
pnpm build
# Lint all apps
pnpm lint
# Format code
pnpm formatPOST /sign-up- Create accountPOST /sign-in- LoginGET /session- Get current sessionPOST /sign-out- Logout
GET /- List user containersPOST /- Create containerGET /:id- Get container infoPOST /:id/message- Send message to agentPOST /:id/stop- Stop containerDELETE /:id- Delete containerGET /:id/logs- Get container logs
GET /plans- List plansPOST /create-checkout- Create Stripe checkoutPOST /create-portal- Stripe billing portalGET /subscription/:userId- Get subscription statusPOST /webhook- Stripe webhook handler
POST /chat- Chat with AI (streaming supported)POST /generate- Generate contentPOST /analyze- Analyze text
pnpm devdocker-compose up -dConnect your repository to Vercel for automatic deployments.
MIT License - See LICENSE for details.
Built with ❤️ by Fresh Industries