From zero to insured in 10 minutes. No blockchain knowledge needed.
Think of it like this: You give your AI agent a credit card (API Key) with a spending limit (Approve). The agent decides when to buy insurance for protection, or when to deposit into Lumina vaults to generate yield — all based on rules you define.
| Item | What It Is | Where to Get It |
|---|---|---|
| Wallet | MetaMask, Coinbase Wallet, or Rainbow | metamask.io |
| USDC | USDC stablecoin by Circle | coinbase.com |
| ETH on Base | For one-time approval (~$0.01) | Bridge or buy on Base |
→ Step 1 of 2: Connect your wallet
→ Step 2 of 2: Generate your key
Replace YOUR_WALLET with your actual wallet address:
curl -X POST https://lumina-protocol-production.up.railway.app/api/v2/keys/create \
-H "Content-Type: application/json" \
-d '{"wallet":"YOUR_WALLET_ADDRESS","label":"my-agent"}'
This tells your USDC: "Lumina can charge me up to $X for insurance." You control the limit and can revoke it anytime by setting it to 0.
cast send 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 \ "approve(address,uint256)" \ 0xd5f8678A0F2149B6342F9014CCe6d743234Ca025 \ 10000000000 \ --rpc-url YOUR_RPC_URL --interactive
This is your risk limit. 10000000000 in 6 decimals = $10,000 max. Your agent cannot spend more than this. Revoke anytime by setting to 0.
3a — What is an AI Agent?
An AI agent is a ChatGPT, Claude, or custom bot that can take actions on your behalf. In Lumina, your agent monitors markets and buys insurance automatically — you just set the rules.
Don't have an agent yet? Here are 3 easy ways to start:
💬 Option A — ChatGPT or Claude (easiest, 2 minutes)
🤖 Option B — Claude Code (automated setup)
Go back to the main page and click "Getting Started" → "Auto-Setup (Claude Code)". Copy the setup prompt and paste it into Claude Code terminal. It configures everything automatically.
🔧 Option C — Custom Agent (developers)
If you're building with ElizaOS, LangChain, or a custom framework: set LUMINA_API_KEY as an environment variable, include the SKILL file in your agent's knowledge base, and use the API endpoints documented in the SKILL file.
🔒 Option D — OWS Wallet (most secure)
For autonomous agents running 24/7. Uses Open Wallet Standard for policy-gated signing — your private key is encrypted and every transaction is validated before signing.
curl -fsSL https://openwallet.sh/install.sh | bashgit clone https://github.com/org-lumina/LUMINA-PROTOCOL.git && cd LUMINA-PROTOCOL/ows && ./setup-lumina-agent.sh my-agentows_key_xxx token and fund the wallet with USDC + ETH on BaseRequires Linux or macOS. Full OWS documentation →
3b — The Key
Your agent's authorization to spend
Give this key to your AI agent so it can authenticate with Lumina. How you do it depends on your agent:
💬 Using ChatGPT or Claude?
Paste your API key directly in the chat along with the SKILL file. Tell your agent: "My Lumina API key is: lum_xxxxx. Use it for all Lumina API calls."
🤖 Using ElizaOS or a custom framework?
Set it as an environment variable:
LUMINA_API_KEY=lum_your_key
🔧 Building your own agent?
Include the key in the X-API-Key header of every API call:
-H "X-API-Key: lum_your_key"
⚠️ Keep your API key secret. Anyone with this key can make your agent spend USDC. Never share it publicly.
3c — The Map
Your agent's knowledge of Lumina
This file teaches your agent everything: products, endpoints, pricing, and rules. Without it, your agent doesn't know Lumina exists.
📥 Download LUMINA-SKILL.txt💡 Tip: Paste this file into your agent's chat (ChatGPT, Claude, or any LLM) so it learns the protocol rules automatically.
Your agent is ready! Here's how to test:
💬 Using ChatGPT or Claude?
Tell your agent: "Buy a BTC Catastrophe Shield for $100, 7 days duration." Your agent will call the Lumina API and respond with a confirmation including the policy ID.
🤖 Using Claude Code?
The auto-setup already ran a test purchase. Check the output for "success": true.
curl -X POST https://lumina-protocol-production.up.railway.app/api/v2/purchase \
-H "Content-Type: application/json" \
-H "X-API-Key: lum_your_key_here" \
-d '{"productId":"BCS","coverageAmount":100000000,"durationSeconds":604800}'
This buys $100 BTC Catastrophe Shield for 7 days.
After your first purchase, check the Dashboard to see your active policy.
If something goes wrong — revoke the approval:
Set the approval to 0. This instantly stops all purchases.
Option 1 — Use this page (easiest)
Option 2 — Use Basescan
approve() with:spender = 0xd5f8678A0F2149B6342F9014CCe6d743234Ca025 (CoverRouter)amount = 0Option 3 — Revoke OWS key (if using OWS)
If your agent uses OWS, revoke its API key:
ows key revoke --name my-agent-key
This instantly disables the agent's signing capability. The wallet and funds are unaffected.
Both options instantly revoke your agent's ability to spend USDC. No private key needed.
Email support@lumina-org.com or visit the Dashboard.
Lumina Protocol — Insurance for the Machine Economy