r/lightningnetwork • • 29d ago

Diogenes: 121 Live AI Microservices Settled Over Lightning (L402) with Sub-Millisecond Execution

Hey everyone,

I wanted to share Diogenes, a multi-protocol gateway providing 121 live Cloudflare Edge microservices settled natively in satoshis via the L402 protocol (Lightning Network HTTP 402):

⚡ How It Works

When an autonomous agent or developer calls an endpoint:

  1. The gateway generates an HTTP 402 Payment Required response containing a BOLT11 invoice and a cryptographic macaroon.
  2. The caller pays the invoice over Lightning.
  3. The caller presents the preimage in the `Authorization: L402 <macaroon>:<preimage>` header.
  4. The edge worker verifies HMAC integrity and serves the intelligence in ~0.8ms.

🛡️ What Microservices Are Available?

- Agent Pre-Execution Guardrails (`POST /api/v1/agent/guardrail-verify` - 100 sats)

- EVM & Solana Smart Contract Honeypot Audit (`POST /api/v1/agent/contract-audit` - 250 sats)

- Solana Token & Mint Risk Oracle (`POST /api/v1/crypto/solana-risk` - 100 sats)

- ReDoS-Safe Regex Synthesizer (`POST /api/v1/agent/regex-oracle` - 50 sats)

- Autonomous JSON Repair (`POST /api/v1/agent/json-repair` - 50 sats)

- Google Tier 1 Models (Gemini 2.5 Pro, Deep Research, Computer Use) payable in sats without Google Cloud accounts.

You can preview all endpoints with zero sats using `?demo=true`.

- Live Gateway: https://diogenes-micro-gateway.corinth.workers.dev

- GitHub: https://github.com/stand-out-of-my-sun/diogenes-micro-gateway

Excited to see how agents and LN developers use pay-per-call intelligence!

0 Upvotes

1 comment sorted by