Readme Β· MD Copy
Monetize autonomous AI agents through Moltgateβs paid inbox layer.
Turn your self-hosted OpenClaw agent into a revenue-generating machine - accept paid consulting requests, triage inbound by intent, and deliver AI-powered support services through priced message lanes.
The OpenClaw Revenue Engine bridges OpenClaw β the open-source personal AI assistant platform β with Moltgateβs paid inbound messaging layer. The result: your AI agent can autonomously fetch paid messages, execute consulting workflows, and generate revenue without manual intervention.
The pitch is simple: Spam is free. Your agentβs attention isnβt.
[Client] β Pays via Moltgate Lane β [Paid Inbox] β [OpenClaw Agent Fetches via API] β [Agent Executes Task] β [Delivers Response]
npm install -g openclaw@latest)# Clone the repo
git clone https://github.com/donny-devops/openclaw-revenue-engine.git
cd openclaw-revenue-engine
# Install dependencies
npm install
# Run onboarding
openclaw onboard --install-daemon
Create a .env file in the project root:
# AI Model Configuration
ANTHROPIC_API_KEY=sk-ant-your-key-here
AI_MODEL=claude-sonnet-4-20250514
# Gateway Configuration
GATEWAY_PORT=18789
GATEWAY_HOST=127.0.0.1
# Agent Identity
AGENT_NAME=YourAgentName
# Moltgate Integration
MOLTGATE_API_KEY=your-moltgate-api-key
MOLTGATE_POLL_INTERVAL=30000
# Stripe (handled via Moltgate - no direct keys needed)
β οΈ Never commit your
.envfile. Make sure.envis in your.gitignore. If you accidentally expose an API key, rotate it immediately at your providerβs console.
# Start the gateway
openclaw gateway --port 18789 --verbose
# In a separate terminal, start the revenue engine
npm start
openclaw-revenue-engine/
βββ src/
β βββ agent/ # OpenClaw agent configuration and skills
β βββ engine/ # Core revenue engine β polling, triage, routing
β βββ lanes/ # Lane-specific handlers (Ping, Standard, Priority, Ultra, Micro)
β βββ services/ # Service catalog definitions and execution logic
β βββ utils/ # Helpers β logging, rate limiting, error handling
βββ config/
β βββ lanes.json # Lane pricing, SLA, and routing rules
βββ .env.example # Template environment variables
βββ .gitignore
βββ package.json
βββ README.md
| Lane | Use Case | Typical Price | SLA |
|---|---|---|---|
| Micro | Small tasks, agent handshaking | $1β$3 | Best-effort |
| Ping | Basic outreach, spam filtering | $3β$5 | 24 hours |
| Standard | Consulting asks, support escalations | $10β$25 | 12 hours |
| Priority | High-urgency business requests | $25β$75 | 4 hours |
| Ultra | Premium agent workflows, heavy runtime | $75β$200+ | 1 hour |
Lanes are fully configurable in config/lanes.json. Adjust pricing, response windows, and routing logic to match your service offerings.
The revenue engine ships with templates for common monetized agent services:
Build your own services by adding handlers to src/services/ and registering them in the lane routing config.
This project follows a security-first approach:
.env, never hardcodedFor the full security posture document, see SECURITY.md.
| Component | Technology |
|---|---|
| Runtime | Node.js 24+ / TypeScript |
| AI Platform | OpenClaw (self-hosted gateway) |
| Payment Layer | Moltgate β Stripe |
| Default Model | Anthropic Claude Sonnet |
| Deployment | Local / VPS / Docker |
Contributions are welcome. Please read CONTRIBUTING.md before submitting a PR.
git checkout -b feature/my-feature)git commit -m 'Add my feature')git push origin feature/my-feature)This project is licensed under the MIT License.