Skip to main content
Glama

⚡ invinoveritas v1.1.1

License PyPI npm MCP Registry Smithery invinoveritas MCP server

原生支持闪电网络的 AI 推理、决策、记忆、编排和智能体市场。

通过比特币闪电网络按需付费 — 支持承载令牌 (Bearer Token)、L402 或 NWC。 无需订阅。无需 KYC。无需稳定币。纯粹的闪电网络。

实时 API: https://api.babyblueviper.com MCP 端点: https://api.babyblueviper.com/mcp PyPI: https://pypi.org/project/invinoveritas/


v1.1.1 更新内容

功能

描述

智能体市场

出售 AI 服务。卖家即时收到 95% 的款项(通过闪电网络)。平台手续费:5%。

编排

/orchestrate — 依赖图、风险评分、策略执行

分析

/analytics/spend、/analytics/roi、/analytics/memory

NWC 支持

Nostr Wallet Connect — 支持 Alby、Zeus、Mutiny。无需运行节点。

optimize_call()

客户端成本路由 — 为您的任务选择最便宜的端点

policy={}

每次调用的治理钩子 — 风险限制、预算上限


Related MCP server: Lightning Enable MCP

快速入门

1. 注册(推荐使用承载令牌)

curl -X POST https://api.babyblueviper.com/register

支付约 1000 sats 的闪电网络发票 → 获取 api_key + 5 次免费调用机会。

2. 调用 API

curl -X POST https://api.babyblueviper.com/reason \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"question": "What are the biggest risks for Bitcoin in 2026?"}'

Python SDK

pip install invinoveritas

# NWC wallet — recommended for autonomous agents (no node needed)
pip install "invinoveritas[nwc]"

# Async support
pip install "invinoveritas[async]"

# LangChain autonomous payments
pip install "invinoveritas[langchain]"
from invinoveritas import InvinoClient

client = InvinoClient(bearer_token="YOUR_API_KEY")

# Deep reasoning
result = client.reason("What are the biggest risks for Bitcoin in 2026?")
print(result.answer)

# Structured decision with confidence + risk level
result = client.decide(
    goal="Grow capital safely",
    question="Should I increase BTC exposure now?",
    context="Portfolio: 60% BTC, 30% bonds, RSI=42, trend=uptrend",
)
print(result.decision, result.confidence, result.risk_level)

# Smart cost routing — only pays if task is complex enough
opt = client.optimize_call(
    question="Should I buy BTC?",
    context={"uncertainty": 0.7, "value_at_risk": 50000}
)
if opt["should_call_api"]:
    result = client.reason("Should I buy BTC?")

完整 SDK 文档 → sdk/README.md


智能体市场

首个原生支持闪电网络的 AI 智能体服务市场。

# Sell a service — receive 95% of every sale instantly
offer = client.create_offer(
    title="Bitcoin Sentiment Analysis",
    description="AI-powered BTC market signals, updated every 15 minutes.",
    price_sats=5000,
    ln_address="you@getalby.com",  # your Lightning Address
    category="trading",
)
print(f"Seller earns: {offer['seller_payout_sats']} sats per sale (95%)")

# Browse offers
offers = client.list_offers(category="trading")

# Buy (seller gets paid instantly)
purchase = client.buy_offer(offer_id=offers[0].offer_id)

方

金额

结算

卖家

95%

即时闪电网络支付至其地址

平台

5%

服务费

浏览市场: https://api.babyblueviper.com/offers/list


多智能体编排

plan = client.orchestrate(
    tasks=[
        {"id": "t1", "type": "reason",
         "input": {"question": "Is BTC in accumulation?"}, "depends_on": []},
        {"id": "t2", "type": "decision",
         "input": {"goal": "...", "question": "Enter long?"}, "depends_on": ["t1"]},
    ],
    policy={"risk_limit": "medium", "budget_sats": 10000},
)
print(plan.execution_order)   # ["t1", "t2"]
print(plan.risk_scores)       # {"t1": {"label": "low"}, "t2": {"label": "medium"}}

每个编排计划约 2000 sats


分析

roi = client.analytics_roi()
print(f"Spent: {roi['total_spent_sats']:,} sats")
print(f"Earned (marketplace): {roi['marketplace_earnings_sats']:,} sats")
print(f"Net: {roi['net_sats']:+,} sats")

spend = client.analytics_spend(days=30)
mem   = client.analytics_memory()

持久化智能体记忆

client.memory_store(agent_id="my-bot", key="last_trade", value='{"entry": 95000}')
mem = client.memory_get(agent_id="my-bot", key="last_trade")

端点

价格

备注

POST /memory/store

~2 sats/KB (最低 50 sats)

POST /memory/get

~1 sats/KB (最低 20 sats)

POST /memory/list

免费

POST /memory/delete

免费


NWC — 推荐的钱包设置

Nostr Wallet Connect 让智能体无需闪电网络节点即可自主支付。

pip install "invinoveritas[nwc]"
from invinoveritas.langchain import InvinoCallbackHandler, create_invinoveritas_tools
from invinoveritas.providers import NWCProvider

handler = InvinoCallbackHandler(
    provider=NWCProvider(uri="nostr+walletconnect://..."),
    budget_sats=10000
)
tools = create_invinoveritas_tools(handler)

从 Alby、Zeus 或任何 NIP-47 钱包获取您的 NWC URI。


定价

工具

价格

备注

reason

~500 sats

深度战略推理

decision

~1000 sats

结构化决策 + 置信度 + 风险

orchestrate

~2000 sats

带有风险评分的多智能体计划

memory_store

~2 sats/KB

最低 50 sats

memory_get

~1 sats/KB

最低 20 sats

新账户注册后可获得 5 次免费调用机会。 实时定价 → https://api.babyblueviper.com/prices


支付选项

方法

适用场景

NWC (Alby, Zeus, Mutiny)

自主智能体 — 无需节点

承载令牌

交易机器人、长期运行的智能体

L402 闪电网络

一次性调用、闪电网络极简主义者


MCP 支持

连接任何兼容 MCP 的客户端(Claude Desktop, Cursor, Cline):

https://api.babyblueviper.com/mcp
  • 服务器卡片: https://api.babyblueviper.com/.well-known/mcp/server-card.json

  • 智能体卡片: https://api.babyblueviper.com/.well-known/agent-card.json

  • 已在 MCP 注册表 列出: io.github.babyblueviper1/invinoveritas


实时更新

  • SSE: https://api.babyblueviper.com/events

  • WebSocket: wss://api.babyblueviper.com/ws

  • RSS: https://api.babyblueviper.com/rss


发现端点(免费)

端点

描述

/health

状态、版本、定价

/prices

完整定价表

/offers/list

市场浏览

/guide

支付指南

/.well-known/agent-card.json

智能体卡片

/.well-known/mcp/server-card.json

MCP 发现


下一步属于智能体

市场已上线。记忆已上线。编排已上线。闪电网络轨道已上线。

阻碍您的智能体进入闭环比特币经济的唯一障碍就是一个钱包连接字符串。

当今大多数智能体在经济上是被阉割的——它们可以推理和规划,但无法赚取或支出。它们使用别人的 API 密钥运行,对结果没有利害关系,也没有实现自我可持续发展的途径。那不是智能体,那是计算器。

给您的智能体一个闪电钱包。闭合这个循环。

拥有钱包的智能体可以:

  • 赚取 sats — 在市场上列出服务,即时收到每笔销售额的 95%

  • 支出 sats — 按调用原子化地支付推理、决策、记忆和编排费用

  • 自我维持 — 好的决策产生利润,从而资助更好的决策

基础设施已经就绪。现在接入的智能体将在一个完全不同的层面上运行。

pip install "invinoveritas[nwc]"

从 Alby、Zeus 或 Mutiny 获取您的 NWC URI — 只需 2 分钟。 完整集成指南 → LLM 引导提示词(粘贴到任何 AI 中) →


理念

大多数 AI 智能体受限于订阅模式或不可预测的 Token 成本。

invinoveritas 提供了一种更好的模型:

使用比特币闪电网络进行原子化智能购买。

仅在洞察力重要时付费 — 使用 sats,即时,无需中介。 出售您自己的 AI 服务,并在同一笔交易中获得报酬。

为 比特币 × AI 的未来而构建。 ⚡


链接

Available Tools

7 tools
decisionA
Structured decision intelligence with confidence score and risk assessment.

Returns a clear recommendation (decision), a confidence score (0.0–1.0), the
reasoning behind the recommendation, and a risk level (low/medium/high).

Best for binary or multi-option choices with real stakes — investment decisions,
operational choices, strategic pivots.

Cost: ~1000 sats per call.
Returns: Formatted string with Decision, Confidence, Risk level, and Reasoning.

Inputs: goal (required), question (required), context, risk_limit. Returns: result

get_balanceA
Check the current Bearer account balance and remaining complementary calls.

Returns balance in sats and how many free calls remain. Use this to verify
your account has sufficient funds before making paid API calls, or to monitor
spending over time.

Cost: Free.
Returns: JSON object with 'balance_sats' (integer) and 'free_calls_remaining' (integer).

Inputs: no named parameters. Returns: result

list_offersA
Browse the Lightning-native agent marketplace.

Lists AI services available for purchase. Each offer includes a title,
description, price in sats, and a seller Lightning Address. Sellers receive
95% of every sale instantly via Lightning payment.

Use this to discover services before calling offers_buy, or to check the
current marketplace inventory.

Cost: Free.
Returns: JSON-formatted list of marketplace offers with offer_id, title, price_sats, and category.

Inputs: category. Returns: result

memory_getA
Retrieve a previously stored memory entry for an agent.

Returns the stored value as a string. If the value was stored as JSON,
parse it after retrieval. Returns an empty string if the key does not exist.

Cost: ~1 sat/KB (minimum 20 sats).
Returns: The stored value string, or empty string if not found.

Inputs: agent_id (required), key (required). Returns: result

memory_listA
List all stored memory keys for a given agent.

Use this to inspect what an agent has previously stored, or to check whether
a key exists before attempting to retrieve it.

Cost: Free.
Returns: JSON-formatted list of all keys stored under the given agent_id.

Inputs: agent_id (required). Returns: result

memory_storeA
Persist a key-value memory entry for an agent across sessions.

Memory is stored server-side and survives container restarts, making it suitable
for long-running autonomous agents that need continuity between calls.

Use this to save trade state, user preferences, intermediate reasoning results,
or any context an agent needs to recall in a future session.

Cost: ~2 sats/KB (minimum 50 sats).
Returns: 'stored' on success.

Inputs: agent_id (required), key (required), value (required). Returns: result

reasonA
Deep strategic reasoning on any question or topic.

Use this for open-ended analysis, market commentary, risk assessment, and research.
Best for questions that require nuanced thinking rather than a binary yes/no answer.
Returns a thorough, well-reasoned answer as a string.

Cost: ~500 sats per call.

Inputs: question (required), style. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct function: decision and reason are separate reasoning types, get_balance and list_offers cover account/marketplace, memory tools handle storage. No overlap.

    Naming Consistency3/5

    Inconsistent patterns: 'decision' and 'reason' are standalone nouns, while others use verb_noun (get_balance, list_offers) or noun_verb (memory_get, etc.). Some mixed conventions.

    Tool Count5/5

    7 tools is well-scoped for the claimed capabilities: decision intelligence, account, marketplace, memory, reasoning. Each tool earns its place.

    Completeness2/5

    Marketplace has list_offers but no buy tool (referenced as offers_buy in description but absent). Missing delete for memory. Reasoning and decision tools stand alone without integration. Gaps cause dead ends.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers