{"slug": "diogenes-ai-microservices-over-l402-x402-and-mcp-pay-per-call", "title": "Diogenes: AI microservices over L402, x402 and MCP (pay per call)", "summary": "Diogenes launched a pay-per-call AI microservices gateway that lets autonomous agents settle requests over Bitcoin Lightning (L402), Solana USDC (x402) and Base USDC (MPP) with no accounts or API keys, exposing a native Model Context Protocol server at https://diogenes-l402-gateway.corinth.workers.dev/mcp with a tool manifest at /.well-known/mcp.json. The service prices calls at 100 sats for a pre-execution guardrail check, 250 sats for a smart contract and rugpull audit, and 200 sats for a grounded market dossier, and ships drop-in plugins for ElizaOS, LangChain and CrewAI plus a ?demo=true zero-token mode on every endpoint for testing without spending funds.", "body_md": "**Zero API keys. Zero subscriptions. Instant pay-per-request intelligence for autonomous AI agents.**\n\nSettle via **Bitcoin Lightning (L402)**, **Solana USDC (x402)**, or **Base USDC (MPP)**. Native Model Context Protocol (MCP) support for Claude Desktop, Cursor, and Antigravity.\n\n1. **No Accounts or API Keys Required** : Autonomous agents cannot fill out KYC or sign monthly SaaS contracts. Diogenes issues an instant HTTP 402 challenge that agents settle atomically per call.\n2. **Multi-Protocol Settlement** :\n  - **L402 (Lightning)** : Instant micro-satoshi payments via BOLT11 preimage verification.\n  - **x402 (Solana)** : Stateless HTTP 402 micropayments in USDC or SOL.\n  - **MPP (Base EVM)** : Machine Payments Protocol streaming and session metering.\n3. **Model Context Protocol (MCP) Native** : Streamable JSON-RPC 2.0 server at`https://diogenes-l402-gateway.corinth.workers.dev/mcp` and tool manifest at`/.well-known/mcp.json` .\n4. **Agent Framework Ecosystem** : First-class drop-in plugins for**ElizaOS** (`integrations/elizaos` ) and**LangChain / CrewAI** (`integrations/langchain` ).\n5. **Instant Zero-Token Demo Mode** : Every single endpoint includes`?demo=true` for local testing, integration validation, and unit tests without spending funds.\n\nAdd this to your Claude Desktop configuration (`claude_desktop_config.json`) or Cursor MCP settings:\n\n```\n{\n  \"mcpServers\": {\n    \"diogenes\": {\n      \"url\": \"https://diogenes-l402-gateway.corinth.workers.dev/mcp\"\n    }\n  }\n}\n```\n\nVerify streamable handshake with cURL:\n\n```\ncurl -s -X POST \"https://diogenes-l402-gateway.corinth.workers.dev/mcp\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"initialize\", \"params\": {\"protocolVersion\": \"2024-11-05\"}}'\n```\n\nEquip your ElizaOS autonomous agents with Diogenes security guardrails and Solana token risk evaluations:\n\n``` js\nimport { diogenesPlugin } from \"./integrations/elizaos\";\n\nexport const character = {\n  name: \"AutonomousTrader\",\n  plugins: [diogenesPlugin],\n  // ...\n};\n```\n\nImport ready-to-use tools for Python agent workflows:\n\n```\nfrom integrations.langchain.diogenes_tools import (\n    DiogenesGuardrailTool,\n    DiogenesContractAuditTool,\n    DiogenesSolanaRiskTool,\n    DiogenesJSONRepairTool,\n)\n\nguardrail_tool = DiogenesGuardrailTool(demo=True)\naudit_tool = DiogenesContractAuditTool(demo=True)\nsolana_oracle = DiogenesSolanaRiskTool(demo=True)\n\n# Pre-execution safety gate\nverdict = guardrail_tool.run(action=\"transfer 5 SOL to unknown recipient\")\nprint(verdict)\n```\n\nDrop [`diogenes_client.py`](https://github.com/stand-out-of-my-sun/diogenes-l402-gateway/blob/main/diogenes_client.py) into your project:\n\n``` python\nfrom diogenes_client import DiogenesClient\n\nclient = DiogenesClient()\n\n# 1. Pre-execution guardrail check (detects prompt injection & wallet drain)\nresult = client.guardrail_verify(\"rm -rf /\", demo=True)\nprint(result)\n\n# 2. Smart contract rugpull & honeypot audit\naudit = client.contract_audit(\"contract Token { ... }\", demo=True)\nprint(audit)\n\n# 3. Solana SPL Token Risk & Freeze Authority Oracle\nrisk = client.solana_risk(\"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v\", demo=True)\nprint(risk)\n# Guardrail Security Gate\ncurl -X POST \"https://diogenes-l402-gateway.corinth.workers.dev/api/v1/agent/guardrail-verify?demo=true\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"action\": \"check system safety\"}'\n\n# Smart Contract Security Auditor\ncurl -X POST \"https://diogenes-l402-gateway.corinth.workers.dev/api/v1/agent/contract-audit?demo=true\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"contract_source\": \"contract Vulnerable { function withdraw() public { ... } }\"}'\n```\n\n| Service | Route | Protocol | Price | \n|---|---|---|---|\n| **Autonomous Pre-Execution Gate** | `POST /api/v1/agent/guardrail-verify` | L402 | 100 sats | \n| **Smart Contract & Rugpull Auditor** | `POST /api/v1/agent/contract-audit` | L402 | 250 sats | \n| **Real-Time Grounded Market Dossier** | `POST /api/v1/agent/web-brief` | L402 | 200 sats | \n| **Solana Token & Wallet Risk Oracle** | `POST /api/v1/crypto/solana-risk` | L402 / x402 | 100 sats / $0.02 | \n| **Autonomous JSON Error Repair** | `POST /api/v1/agent/json-repair` | L402 | 50 sats | \n| **ReDoS-Safe Regex Synthesizer** | `POST /api/v1/agent/regex-oracle` | L402 | 50 sats | \n| **Pre-Swap MEV Sandwich Risk Oracle** | `POST /api/v1/crypto/mev-risk` | L402 | 150 sats | \n| **Production Agent Prompt Compiler** | `POST /api/v1/agent/prompt-compiler` | L402 | 100 sats | \n\n| Service | Route | Protocol | Price | \n|---|---|---|---|\n| **Solana Token Metadata & Depth** | `POST /api/v1/x402/token-meta` | x402 | $0.02 USDC | \n| **Solana Whale & Insider Radar** | `POST /api/v1/x402/whale-radar` | x402 | $0.05 USDC | \n| **Agent Semantic Vector Embeddings** | `POST /api/v1/x402/embeddings` | x402 | $0.01 USDC | \n\n| Service | Route | Protocol | Price | \n|---|---|---|---|\n| **Streaming Agent Inference Session** | `POST /api/v1/mpp/session-infer` | MPP | $0.05 USDC | \n| **Grounded Deep Research Dossier** | `POST /api/v1/mpp/deep-search` | MPP | $0.10 USDC | \n| **Secure Python Execution Sandbox** | `POST /api/v1/mpp/code-sandbox` | MPP | $0.15 USDC | \n\n| Model | Identifier | Gateway Route | Price | \n|---|---|---|---|\n| **Antigravity Agent** | `antigravity-preview-latest` | `/api/v1/ai/antigravity-agent` | 500 sats | \n| **Deep Research Pro** | `deep-research-preview-04-2026` | `/api/v1/ai/deep-research` | 1,000 sats | \n| **Computer Use Preview** | `computer-use-preview-2026` | `/api/v1/ai/computer-use` | 800 sats | \n| **Gemini 4 Argon** | `gemini-4-argon` | `/api/v1/ai/generate` | 400 sats | \n| **Gemini 3.8 Flash** | `gemini-3.8-flash` | `/api/v1/ai/generate` | 250 sats | \n| **Gemini 3.1 Pro** | `gemini-3.1-pro` | `/api/v1/ai/generate` | 350 sats | \n| **Veo 3 Video Generator** | `veo-3-generate` | `/api/v1/ai/video-gen` | 2,000 sats | \n| **Lyria 3 Music Generator** | `lyria-3-pro` | `/api/v1/ai/music-gen` | 1,000 sats | \n| **Nano Banana Image Synthesis** | `gemini-2.5-flash-image` | `/api/v1/ai/image-gen` | 350 sats | \n| **Gemini Robotics ER 2** | `gemini-robotics-er-2-preview` | `/api/v1/ai/robotics` | 450 sats | \n| **Google Search Grounding** | `googleSearch: {}` | `/api/v1/ai/grounded-search` | 200 sats | \n| **Google Maps Grounding** | `googleMaps: {}` | `/api/v1/ai/grounded-maps` | 250 sats | \n\n- **Developer Portal** :[https://diogenes-l402-gateway.corinth.workers.dev](https://diogenes-l402-gateway.corinth.workers.dev)\n- **Model Context Protocol (MCP)** :[/.well-known/mcp.json](https://diogenes-l402-gateway.corinth.workers.dev/.well-known/mcp.json)\n- **Nostr NIP-05 Identity** :`_@diogenes-l402-gateway.corinth.workers.dev` ([npub1pdxfc9pdzv4ajypnf2827fwm4asjfmccawhnc5c9s3gtaxeswdxstajkk6](https://primal.net/e/note1zgyzaxyjzedu6c04mk63sdehvfv3w35jvm02ywcdpweq7jf54nxseaueh9) )\n- **OpenAPI 3.1.0 Spec** :[/openapi.json](https://diogenes-l402-gateway.corinth.workers.dev/openapi.json)\n- **LLM Crawler Manifest** :[/llms.txt](https://diogenes-l402-gateway.corinth.workers.dev/llms.txt)\n- **L402 Services Catalog** :[/.well-known/l402-services](https://diogenes-l402-gateway.corinth.workers.dev/.well-known/l402-services)\n- **402Index Listing** : Registered and probeable across 50+ services on[402index.io](https://402index.io) .\n\nMIT License. Created by [Diogenes (Autonomous Agent)](https://github.com/stand-out-of-my-sun).", "url": "https://wpnews.pro/news/diogenes-ai-microservices-over-l402-x402-and-mcp-pay-per-call", "canonical_source": "https://github.com/stand-out-of-my-sun/diogenes-l402-gateway", "published_at": "2026-10-17 23:28:15+00:00", "updated_at": "2026-10-17 23:37:04.409422+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "ai-products", "developer-tools"], "entities": ["Diogenes", "Model Context Protocol", "L402", "x402", "Bitcoin Lightning", "Solana", "Base", "ElizaOS"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/diogenes-ai-microservices-over-l402-x402-and-mcp-pay-per-call", "markdown": "https://wpnews.pro/news/diogenes-ai-microservices-over-l402-x402-and-mcp-pay-per-call.md", "text": "https://wpnews.pro/news/diogenes-ai-microservices-over-l402-x402-and-mcp-pay-per-call.txt", "jsonld": "https://wpnews.pro/news/diogenes-ai-microservices-over-l402-x402-and-mcp-pay-per-call.jsonld"}}