lightningprox
通过比特币闪电网络为 5 个提供商的 19 个模型提供按使用付费的 AI 网关。没有 API 密钥,没有帐户 - 支付 Sats,获得推理。支持 Anthropic (claude-sonnet-4-6、claude-opus-4-6)、OpenAI、Together.ai (Llama 4)、Mistral 和 Google Gemini 2.5。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~unixlamadev-spec-lightningproxcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~unixlamadev-spec-lightningprox/file -o unixlamadev-spec-lightningprox.md## 概述(中文)
通过比特币闪电网络为 5 个提供商的 19 个模型提供按使用付费的 AI 网关。没有 API 密钥,没有帐户 - 支付 Sats,获得推理。支持 Anthropic (claude-sonnet-4-6、claude-opus-4-6)、OpenAI、Together.ai (Llama 4)、Mistral 和 Google Gemini 2.5。
## 原文
# LightningProx — Lightning-Native AI Gateway
Pay-per-use access to 19 AI models across 5 providers via Bitcoin Lightning micropayments. No API keys. No subscriptions. No accounts. Pay sats, get inference.
## When to Use
- Accessing AI models without provider API keys
- Autonomous agent inference with Lightning payments
- Comparing responses across multiple providers
- Low-cost inference via open models (Llama 4, Mistral, DeepSeek)
- Vision tasks (multimodal via image_url)
- Code generation (Codestral, Devstral)
- Reasoning tasks (Magistral)
## Supported Models (19 total)
| Provider | Models |
|----------|--------|
| Anthropic | `claude-opus-4-6`, `claude-sonnet-4-6`, `claude-haiku-4-5` |
| OpenAI | `gpt-4o`, `gpt-4-turbo`, `gpt-4o-mini` |
| Together.ai | `llama-4-maverick`, `llama-3.3-70b`, `deepseek-v3`, `mixtral-8x7b` |
| Mistral | `mistral-large-latest`, `mistral-medium`, `mistral-small`, `codestral`, `devstral`, `magistral` |
| Google | `gemini-2.5-flash`, `gemini-2.5-pro` |
## Payment Flow
### Option A — Spend Token (recommended for repeat use)
```bash
# 1. Top up at lightningprox.com/topup — pay Lightning invoice, get token
# 2. Use token directly
curl -X POST https://lightningprox.com/v1/messages \
-H "Content-Type: application/json" \
-H "X-Spend-Token: $LIGHTNINGPROX_SPEND_TOKEN" \
-d '{
"model": "claude-opus-4-5-20251101",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 1000
}'
```
### Option B — Pay per request
```bash
# 1. Send request without token → get invoice
curl -X POST https://lightningprox.com/v1/messages \
-H "Content-Type: application/json" \
-d '{"model": "gemini-2.5-flash", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 100}'
# 2. Pay the Lightning invoice returned
# 3. Retry with X-Payment-Hash header
```
## Drop-in OpenAI SDK Replacement
```bash
npm install lightningprox-openai
```
```javascript
// Before: import OpenAI from 'openai'
import OpenAI from 'lightningprox-openai'
const client = new OpenAI({ apiKey: process.env.LIGHTNINGPROX_SPEND_TOKEN })
// Everything else stays identical:
const response = await client.chat.completions.create({
model: 'claude-opus-4-5-20251101',
messages: [{ role: 'user', content: 'Hello' }]
})
```
Two lines change. Nothing else does.
## Check Available Models
```bash
curl https://lightningprox.com/api/capabilities
```
## Security Manifest
| Permission | Scope | Reason |
|------------|-------|--------|
| Network | lightningprox.com | API calls for AI inference |
| Env Read | LIGHTNINGPROX_SPEND_TOKEN | Authentication for prepaid requests |
## Trust Statement
LightningProx is operated by LPX Digital Group LLC. Payment = authentication. No data stored beyond request logs. No accounts, no KYC. Operated at lightningprox.com.