Skip to main content

Self-Hosting / Setup

ClawMind is a Next.js app. To run the full production path, you need:

Local Setup

Open http://localhost:3000. The app can boot with placeholder env values, but real 0G Storage and Chain writes require the production variables below.

Required Production Env

Never commit ZERO_G_STORAGE_PRIVATE_KEY. Use a dedicated wallet with only the funds needed for storage uploads and gas.

Deploy

On Vercel or another Next.js host:
  1. Add the env vars above.
  2. Build with npm run build.
  3. Start with npm run start.
  4. Run the checks below.
/api/analyze starts a background analysis and the client polls /api/status?taskId=.... Redis is strongly recommended in production so task status does not disappear between serverless invocations.

Verify Your Deployment

Expected: For configuration debugging:

Optional: Deploy Your Own Registry

The hosted app uses:
To deploy your own signed registry:
Then set:
The deployer wallet becomes the first authorized EIP-712 operator.

Optional: Docker

Then open http://localhost:3000.

Optional: MCP Server

The MCP server lives in apps/mcp-server.
Set CLAWMIND_API_BASE_URL if the MCP server should call your self-hosted app instead of the public deployment.