The M-Pesa for AI Agents
Universal Transaction Gateway (UTG) is high-fidelity financial infrastructure that allows AI agents to interact with the real world securely, legally, and reliably.
0. The 100% Free Cloudflare Setup
Don't pay for expensive DigitalOcean servers. Because your domain is on Cloudflare, you can host the gateway infrastructure for $0/month.
1. Cloudflare Pages (The Website)
Go to your Cloudflare Dashboard -> Pages. Import this repository and set the Root Directory to docs_site. Point your custom domain (utg.useaima.com) to it.
2. Your Laptop (The Server)
The gateway requires Python and Playwright. Run the server directly on your laptop using utg-server.
3. Cloudflare Tunnels (The Bridge)
Use cloudflared tunnel --url http://localhost:8080 to expose your laptop securely to the world (e.g., api.utg.useaima.com) without opening router ports.
1. Installation
Ensure you have Python 3.10+ installed. Use the tabs below for your platform's specific commands.
# Install the Gateway as a global tool
pip install .
# If Scripts folder isn't on PATH, use:
python -m pip install .
# Install via Pip (Recommended)
pip3 install .
# Ensure Playwright dependencies are met
npx playwright install firefox
# Install UTG
pip install .
# Setup Playwright Binaries
npx playwright install-deps
npx playwright install firefox
2. The Onboarding Wizard
No coding required! Run our interactive setup to generate your secure Identity Keys and configuration.
utg-onboard
NOTE: If the command isn't found, use python src/gateway/utils/onboarding_wizard.py
3. Connecting to OpenClaw
Paste this configuration into your OpenClaw mcpServers settings. The onboarding wizard will generate your exact absolute path.
"mcpServers": {
"utg-gateway": {
"command": "python",
"args": ["/path/to/your/universal-gateway/src/gateway/server.py"]
}
}