← Back to Skills Marketplace
unixlamadev-spec

Lightningprox

by unixlamadev-spec · GitHub ↗ · v1.4.0 · MIT-0
cross-platform ✓ Security Clean
833
Downloads
0
Stars
2
Active Installs
11
Versions
Install in OpenClaw
/install lightningprox
Description
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-...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install lightningprox
  3. After installation, invoke the skill by name or use /lightningprox
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug lightningprox
Version 1.4.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 11
Frequently Asked Questions

What is 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-... It is an AI Agent Skill for Claude Code / OpenClaw, with 833 downloads so far.

How do I install Lightningprox?

Run "/install lightningprox" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Lightningprox free?

Yes, Lightningprox is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Lightningprox support?

Lightningprox is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Lightningprox?

It is built and maintained by unixlamadev-spec (@unixlamadev-spec); the current version is v1.4.0.

💬 Comments