← 返回 Skills 市场
unixlamadev-spec

Lightningprox

作者 unixlamadev-spec · GitHub ↗ · v1.4.0 · MIT-0
cross-platform ✓ 安全检测通过
833
总下载
0
收藏
2
当前安装
11
版本数
在 OpenClaw 中安装
/install lightningprox
功能描述
Pay-per-use AI gateway via Bitcoin Lightning. No API keys, no account — pay sats, get inference. Supports Anthropic (claude-opus-4-5-20251101, claude-sonnet-...
使用说明 (SKILL.md)

\r \r

LightningProx — Lightning-Native AI Gateway\r

\r Pay-per-use access to AI models across 5 providers via Bitcoin Lightning micropayments. No API keys. No subscriptions. No accounts. Pay sats, get inference. Implements the L402 payment protocol.\r \r

When to Use\r

\r

  • Accessing AI models without provider API keys\r
  • Autonomous agent inference with Lightning payments\r
  • Comparing responses across multiple providers\r
  • Low-cost inference via open models (Llama 4, Mistral, DeepSeek)\r
  • Vision tasks (multimodal via image_url)\r
  • Code generation (Codestral, Devstral)\r
  • Reasoning tasks (Magistral)\r \r

Supported Models\r

\r | Provider | Models (use exact IDs in API calls) |\r |----------|--------------------------------------|\r | Anthropic | claude-opus-4-5-20251101, claude-sonnet-4-20250514, claude-haiku-4-5-20251001 |\r | OpenAI | gpt-4o, gpt-4-turbo |\r | Together.ai | meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8, meta-llama/Llama-3.3-70B-Instruct-Turbo, deepseek-ai/DeepSeek-V3, mistralai/Mixtral-8x7B-Instruct-v0.1 |\r | Mistral | mistral-large-latest, mistral-small-latest, open-mistral-nemo, codestral-latest, devstral-latest, pixtral-large-latest, magistral-medium-latest |\r | Google | gemini-2.5-flash, gemini-2.5-pro |\r \r

Payment Flow\r

\r

Option A — Spend Token (recommended for repeat use)\r

# 1. Top up at lightningprox.com/topup — pay Lightning invoice, get token\r
# 2. Use token directly\r
curl -X POST https://lightningprox.com/v1/messages \\r
  -H "Content-Type: application/json" \\r
  -H "X-Spend-Token: $LIGHTNINGPROX_SPEND_TOKEN" \\r
  -d '{\r
    "model": "claude-opus-4-5-20251101",\r
    "messages": [{"role": "user", "content": "Hello"}],\r
    "max_tokens": 1000\r
  }'\r
```\r
\r
### Option B — L402 Pay-per-request (standard protocol)\r
```bash\r
# 1. Send request without credentials → receive HTTP 402\r
curl -si -X POST https://lightningprox.com/v1/messages \\r
  -H "Content-Type: application/json" \\r
  -d '{"model": "gemini-2.5-flash", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 100}'\r
# Response header: WWW-Authenticate: L402 macaroon="eyJ...", invoice="lnbc..."\r
\r
# 2. Pay the bolt11 invoice from your Lightning wallet\r
\r
# 3. Retry with L402 credential (macaroon from header + preimage from wallet)\r
curl -X POST https://lightningprox.com/v1/messages \\r
  -H "Content-Type: application/json" \\r
  -H "Authorization: L402 \x3Cmacaroon>:\x3Cpreimage>" \\r
  -d '{"model": "gemini-2.5-flash", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 100}'\r
```\r
\r
## Drop-in OpenAI SDK Replacement\r
\r
```bash\r
npm install lightningprox-openai\r
```\r
\r
```javascript\r
// Before: import OpenAI from 'openai'\r
import OpenAI from 'lightningprox-openai'\r
const client = new OpenAI({ apiKey: process.env.LIGHTNINGPROX_SPEND_TOKEN })\r
\r
// Everything else stays identical:\r
const response = await client.chat.completions.create({\r
  model: 'claude-opus-4-5-20251101',\r
  messages: [{ role: 'user', content: 'Hello' }]\r
})\r
```\r
\r
Two lines change. Nothing else does.\r
\r
## Check Available Models\r
```bash\r
curl https://lightningprox.com/v1/models\r
# or\r
curl https://lightningprox.com/api/capabilities\r
```\r
\r
## Security Manifest\r
\r
| Permission | Scope | Reason |\r
|------------|-------|--------|\r
| Network | lightningprox.com | API calls for AI inference |\r
| Env Read | LIGHTNINGPROX_SPEND_TOKEN | Authentication for prepaid requests |\r
\r
## Trust Statement\r
\r
LightningProx is operated by LPX Digital Group LLC. Payment = authentication. No data stored beyond request logs. No accounts, no KYC. Operated at lightningprox.com.\r
安全使用建议
This skill is internally consistent for a Lightning-pay AI gateway, but before installing consider: (1) Privacy — every prompt and any uploaded image will be sent to lightningprox.com and logged by that operator; (2) Costs — the L402 flow requires paying Bolt11 invoices from your Lightning wallet and the spend token will be used to draw down prepaid balance; (3) Secrets — keep LIGHTNINGPROX_SPEND_TOKEN secret and avoid placing it in shared environments; (4) Autonomy — if you allow autonomous agent invocation, it could make paid requests without prompting you; consider restricting or auditing calls. Also review the optional npm package (lightningprox-openai) on its registry to confirm it's trustworthy before installing. If you need higher assurance, request the provider's source code, privacy policy, or an audited client library before use.
功能分析
Type: OpenClaw Skill Name: lightningprox Version: 1.4.0 The lightningprox skill provides a Bitcoin Lightning-powered gateway to various AI models (Anthropic, OpenAI, etc.) using the L402 protocol. It requires access to a specific environment variable (LIGHTNINGPROX_SPEND_TOKEN) and network access to lightningprox.com, both of which are strictly aligned with its stated purpose of facilitating paid inference. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found in the SKILL.md or configuration files.
能力评估
Purpose & Capability
Name/description advertise a Lightning-pay AI gateway. The only required env var is LIGHTNINGPROX_SPEND_TOKEN (used for the 'spend token' flow). Declared network access (lightningprox.com) matches the purpose. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
SKILL.md instructs the agent to POST requests to lightningprox.com using either an X-Spend-Token header or the L402 payment flow (receiving an invoice, paying from a Lightning wallet, then retrying with an Authorization header). Those instructions are within scope for a pay-per-request gateway. Note: runtime behavior will send user prompts to an external third party and can incur real Lightning payments; this is expected but has privacy and cost implications.
Install Mechanism
Instruction-only skill with no install spec, no downloads, and no code files to execute — lowest installation risk. The README suggests an optional npm package (lightningprox-openai); installing that package is separate and should be reviewed before use.
Credentials
Only LIGHTNINGPROX_SPEND_TOKEN is declared as required, which is appropriate for the spend-token authentication flow. No additional secrets or unrelated env vars are requested.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request elevated persistent privileges or modify other skills. Autonomous invocation remains possible (platform default) but is not a special property of this skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lightningprox
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lightningprox 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.4.0
Updated to inline L402 flow, new model IDs, added /v1/models endpoint
v1.3.2
Updated model list, strict pipeline examples
v1.3.1
- Fixed model list in documentation: corrected "Meta-Llama-3.1-8B" to "Meta-Llama-3.1-70B" in the supported models table. - No other user-facing changes.
v1.3.0
No visible file changes detected for version 1.3.0. - No updates or modifications were made in this version.
v1.2.0
Added lightningprox-openai SDK: drop-in OpenAI replacement, pay with Lightning
v1.1.0
Model expansion: 19 models across 5 providers (Anthropic, OpenAI, Together.ai, Mistral, Google). Added Llama 4, full Mistral lineup, Gemini 2.5 and 3 preview. Pay sats, get inference — no API keys.
v4.0.1
Added AIProx ecosystem links, registration curl command, MCP npm package, autonomous agent demo reference
v4.0.0
Added AIProx ecosystem links, registration curl command, MCP npm package, autonomous agent demo reference
v1.0.2
Soften trust statement to transparent language
v1.0.1
Address review: remove aggressive routing language, fix metadata placement, add proxy transparency
v1.0.0
Initial release — pay-per-use AI via Bitcoin Lightning
元数据
Slug lightningprox
版本 1.4.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 11
常见问题

Lightningprox 是什么?

Pay-per-use AI gateway via Bitcoin Lightning. No API keys, no account — pay sats, get inference. Supports Anthropic (claude-opus-4-5-20251101, claude-sonnet-... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 833 次。

如何安装 Lightningprox?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lightningprox」即可一键安装,无需额外配置。

Lightningprox 是免费的吗?

是的,Lightningprox 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Lightningprox 支持哪些平台?

Lightningprox 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lightningprox?

由 unixlamadev-spec(@unixlamadev-spec)开发并维护,当前版本 v1.4.0。

💬 留言讨论