Open-Source AI Agent, DeFi Bot & n8n Starter Templates (Ready in 60 Seconds)
Deploy working autonomous agents, trading safety pipelines, and B2B enrichment automations without boilerplate. Every template runs free against ?dryRun=true and /api/v1/free/* before switching to a 0ms Prepaid Session Pass or pay-per-call USDC/Lightning.
Which starter templates are included in the Freedom Engine GitHub SDKs?
The official Python SDK (github.com/m2mfreedom/freedom-m2m-python-sdk) includes runnable scripts for Polymarket vs Kalshi arbitrage scanning, Base pre-trade honeypot verification, non-custodial safe swaps, and OpenAI SDK drop-in inference. The MCP repository (github.com/m2mfreedom/freedom-m2m-mcp-server) adds ready-to-paste Claude Desktop, Cursor, VS Code, and n8n JSON workflows.
How can developers and agencies test these templates at zero cost before funding?
Use /api/v1/free/btc-oracle, /api/v1/free/swap-fee-calculator, and /api/v1/free/x402-inspector at 0 Sats, or append ?dryRun=true to any of the 92 paid routes for schema and safety pre-flight checks. When ready for production, mint a reusable m2m-pass-... API key from 50 Sats (~$0.05) with up to +35% volume bonus.
Technical Specifications, Endpoints & Pricing Matrix
| Capability / Route | Endpoint / Protocol | Technical Summary | Rate / Guarantee |
|---|---|---|---|
| Polymarket-Kalshi Arb Bot | POST /api/v1/router/tools/prediction-arb | Cross-venue YES/NO arbitrage spread scanner | 10 Sats ($0.0094) |
| Base Pre-Trade Honeypot Guard | POST /api/v1/router/tools/honeypot-guard | Blocks rug pulls & simulates sell tax before swaps | 5 Sats ($0.005) |
| Non-Custodial Safe Swap Bot | POST /api/v1/router/tools/swap-build | AML-screened unsigned EVM/Solana swap calldata (0.45%) | 5 Sats + 0.45% |
| OpenAI SDK Crypto Drop-In | POST /v1/chat/completions | 120B GPT-OSS & 27B Qwen chat via base_url=/v1 | 10 Sats ($0.0094) |
| n8n B2B Lead Enricher | POST /api/v1/router/tools/lead-enrich | Domain tech stack, MX/DMARC & Zero-PII contact roles | 15 Sats ($0.0141) |
| Free Developer Utilities | GET /api/v1/free/* | BTC Oracle, Swap Savings Calculator & x402 Inspector | FREE (0 Sats) |
Quickstart Code & Pre-Flight Dry-Run Example
Test payload validation for 0 Sats using ?dryRun=true or authenticate immediately via L402, x402, or a 0ms Prepaid Session Pass. Primary endpoint: /templates (0 Sats Preview · 1–60 Sats Live / $0.00 Preview · $0.001+ Live).
# Install Python SDK or MCP server
pip install freedom-m2m
npx -y freedom-m2m-mcp-server
# Test free utilities right away (0 Sats)
curl -s "https://m2mfreedom.com/api/v1/free/btc-oracle"
curl -s "https://m2mfreedom.com/api/v1/free/swap-fee-calculator?amountUsd=2500&type=swap"
# Run Polymarket-Kalshi arb pre-flight (0 Sats)
curl -s -X POST "https://m2mfreedom.com/api/v1/router/tools/prediction-arb?dryRun=true" -H "Content-Type: application/json" -d '{"topic":"fed","limit":10}'
Architecture Notes & Operational Guarantees
Production Safety by Default: Every template validates inputs with ?dryRun=true before spending funds, uses exact-amount approvals on swaps, and respects Atomic Token Protection (zero charge on upstream error).
Unified Billing Across Protocols: The same m2m-pass token works seamlessly across Python SDK, OpenAI /v1 drop-in, Remote MCP (/mcp), and n8n HTTP Request nodes.
Frequently Asked Questions
Where can I clone all runnable example files?
Python examples live under examples/ in https://github.com/m2mfreedom/freedom-m2m-python-sdk and MCP/n8n configs under examples/ in https://github.com/m2mfreedom/freedom-m2m-mcp-server.
Can I use these templates with a single Bearer API key instead of per-call wallet signing?
Yes. Top up an m2m-pass-<hex> token at https://m2mfreedom.com/#buy-pass (500 to 106,000 Sats with +10% to +35% free bonus) and pass it via Authorization: Bearer m2m-pass-... at 0ms auth overhead.
Do you offer revenue sharing if I embed Freedom Engine in my bot or SaaS?
Yes. Register a free ?ref= link at POST /api/v1/referrals/register (or in the portal) to earn a 15% lifetime Sats commission on referred volume.