invinoveritas
Enables pay-per-insight micropayments using the Bitcoin Lightning Network (L402 protocol), allowing agents to purchase AI reasoning and decision services with satoshis via cryptographically verifiable payments.
⚡ invinoveritas
Lightning-paid reasoning and decision intelligence for autonomous agents
Pay-per-insight API using the L402 protocol (Bitcoin Lightning).
No subscriptions. No accounts. No KYC.
Live API: https://invinoveritas.onrender.com
MCP Endpoint: https://invinoveritas.onrender.com/mcp
MCP Registry: io.github.babyblueviper1/invinoveritas
Quick Start
Python SDK — manual payment flow
pip install invinoveritasfrom invinoveritas import InvinoClient, PaymentRequired
client = InvinoClient()
try:
result = client.reason("What are the biggest risks for Bitcoin in 2026?")
except PaymentRequired as e:
print(f"Pay: {e.invoice} ({e.amount_sats} sats)")
result = client.reason(
"What are the biggest risks for Bitcoin in 2026?",
payment_hash=e.payment_hash,
preimage="your_preimage_here",
)
print(result.answer)Python SDK — autonomous payments (v0.3.1)
Agents pay automatically. No human in the loop.
# LND node
pip install "invinoveritas[langchain]"
# Alby, Zeus, or any NWC wallet (no node required)
pip install "invinoveritas[nwc]"# With LND
from invinoveritas.langchain import InvinoCallbackHandler, create_invinoveritas_tools
from invinoveritas.providers import LNDProvider
handler = InvinoCallbackHandler(
provider=LNDProvider(
macaroon_path="/root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon",
cert_path="/root/.lnd/tls.cert"
)
)
# With NWC (Alby, Zeus, Mutiny — no node required)
from invinoveritas.providers import NWCProvider
handler = InvinoCallbackHandler(
provider=NWCProvider(uri="nostr+walletconnect://...")
)
tools = create_invinoveritas_tools(handler)
result = agent.run("Should I increase my BTC exposure in 2026?", callbacks=[handler])
print(f"Spent: {handler.total_spent_sats} sats")Full SDK docs → sdk/README.md
Agent Wallets
Agents can pay automatically using Lightning. There are two main options:
LND Node — Full control, runs your own Lightning node
NWC Wallet (Alby, Zeus, Mutiny) — No node required, easiest setup
All payments are cryptographically verifiable and atomic.
Minimal SDK Example (NWC Wallet)
from invinoveritas.providers import NWCProvider
from invinoveritas.langchain import InvinoCallbackHandler, create_invinoveritas_tools
handler = InvinoCallbackHandler(
provider=NWCProvider(uri="nostr+walletconnect://YOUR_WALLET_URI_HERE")
)
tools = create_invinoveritas_tools(handler)
result = agent.run(
"Should I increase my BTC exposure in 2026?",
callbacks=[handler]
)
print(f"Spent: {handler.total_spent_sats} sats")
print(result)Replace YOUR_WALLET_URI_HERE with your WalletConnect URI from Alby, Zeus, or Mutiny.
For LND Node Users
Simply swap the provider:
from invinoveritas.providers import LNDProvider
from invinoveritas.langchain import InvinoCallbackHandler, create_invinoveritas_tools
handler = InvinoCallbackHandler(
provider=LNDProvider(
macaroon_path="/root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon",
cert_path="/root/.lnd/tls.cert"
)
)
tools = create_invinoveritas_tools(handler)Official Wallet Setup Guides
LND Node: https://docs.lightning.engineering
WalletConnect / NWC Wallets: https://walletconnect.com/
MCP Endpoint (Claude Desktop, Cursor)
Point your MCP-compatible agent to:
https://invinoveritas.onrender.com/mcp
Full L402 payment handling built-in. Supports initialize, tools/list, and callTool.
lnget (CLI agents)
lnget handles L402 automatically:
lnget POST https://invinoveritas.onrender.com/reason \
'{"question": "What are the biggest risks for Bitcoin in 2026?"}'Direct HTTP
curl -X POST https://invinoveritas.onrender.com/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "callTool",
"params": {
"name": "reason",
"arguments": { "question": "What are the biggest risks for Bitcoin in 2026?" }
}
}'After paying the returned invoice, retry with:
-H "Authorization: L402 <payment_hash>:<preimage>"
Pricing (Dynamic)
Tool | Base Price | With Agent Multiplier | Typical Range |
reason | 500 sats | 1.2x | 500 – 800 sats |
decide | 1000 sats | 1.2x | 1000 – 1400 sats |
Prices can vary slightly based on input length.
Full pricing → /prices
Credit-Based Accounts (Optional)
For users or agents who prefer pre-funded accounts instead of paying per call:
Register an Account
POST /accounts/register→ Returns a 1000 sats invoiceTop Up
POST /accounts/topup→ Provideapi_keyand amountSettle Top-Up
POST /accounts/settle-topup→ Confirm with preimageUse Credits
Include yourapi_keyin requests — balance is debited automaticallyCheck Balance
GET /accounts/balance?api_key=<your_api_key>
Benefits: No invoice per call, ideal for high-frequency usage.
Why Agents Use invinoveritas
Autonomous agents use invinoveritas when they need:
Strategic reasoning deeper than local models
Structured, machine-readable decisions with confidence & risk scores
Deterministic, predictable costs (paid in sats)
Cryptographically verifiable payments via Lightning
Native MCP tool support
Pay only when the insight truly matters — atomically, with Bitcoin Lightning.
Core Tools
reason— Premium strategic reasoningdecide— Structured decision intelligence with confidence and risk scores
Both tools support the full L402 payment flow via REST, MCP, or SDK.
Payment Flow (L402)
First call → returns 402 Payment Required + Lightning invoice
Pay the invoice using any Lightning wallet or
lngetRetry with:
Authorization: L402 <payment_hash>:<preimage>Receive the result
Full guide → /guide
Discovery Endpoints (Free)
GET /health— Service status and pricingGET /prices— All tool prices in one callGET /guide— Step-by-step payment guideGET /.well-known/mcp/server-card.json— MCP server cardGET /price/{endpoint}— Current price in sats
Philosophy
Most AI agents are stuck with subscriptions or unpredictable token costs.
invinoveritas offers a better model:
Atomic intelligence purchases using Bitcoin Lightning.
Pay only when the decision matters — with sats, instantly, and without intermediaries.
Built for the Bitcoin × AI future. ⚡
Quick Links
Live API: https://invinoveritas.onrender.com
MCP Endpoint: https://invinoveritas.onrender.com/mcp
MCP Registry: https://registry.modelcontextprotocol.io
Health Check: https://invinoveritas.onrender.com/health
Payment Guide: https://invinoveritas.onrender.com/guide
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/babyblueviper1/invinoveritas'
If you have feedback or need assistance with the MCP directory API, please join our Discord server