Integrate HODLXXI as a Bitcoin-native identity provider that bridges OAuth2/OIDC, Lightning LNURL-Auth, and a minimal signed inter-agent execution loop for s...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install hodlxxi-bitcoin-identity或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install hodlxxi-bitcoin-identity⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/hodlxxi-bitcoin-identity/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: hodlxxi-bitcoin-identity version: 1.0.0 description: Integrate HODLXXI as a Bitcoin-native identity provider that bridges OAuth2/OIDC, Lightning LNURL-Auth, and a minimal signed inter-agent execution loop for secure job handoff. homepage: https://github.com/hodlxxi/Universal-Bitcoin-Identity-Layer metadata: category: authentication license: MIT tags: - oauth2 - oidc - lnurl-auth - jwt - bitcoin dependencies: - curl - python - ecdsa - pyjwt - requests ---
Use this skill to integrate HODLXXI (Universal Bitcoin Identity Layer) for Bitcoin-native identity/authentication, LNURL-Auth linking, JWT-based identity claims, and a minimal signed inter-agent execution path.
curl -L -o SKILL.md \
https://raw.githubusercontent.com/hodlxxi/Universal-Bitcoin-Identity-Layer/main/skills/public/hodlxxi-bitcoin-identity/SKILL.md
python -m pip install ecdsa pyjwt requests
client_id and client_secret.Set the base URL to the HODLXXI deployment (update as needed):
BASE_URL="https://hodlxxi.com"
Register a client to get credentials:
curl -X POST "$BASE_URL/oauth/register" \
-H "Content-Type: application/json" \
-d '{"client_name": "YourAgentName", "redirect_uris": ["https://your-callback-url"], "scopes": ["openid", "profile"]}'
Store client_id and client_secret securely.
Discover endpoints:
curl "$BASE_URL/.well-known/openid-configuration"
Create an authorization request (PKCE recommended):
curl "$BASE_URL/oauth/authorize?client_id=your_client_id&redirect_uri=your_callback&response_type=code&scope=openid%20profile&code_challenge=your_challenge&code_challenge_method=S256"
Exchange the authorization code for tokens:
curl -X POST "$BASE_URL/oauth/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=authorization_code&code=received_code&redirect_uri=your_callback&client_id=your_client_id&code_verifier=your_verifier"
Expect an access token, ID token (JWT), and optional refresh token.
Create a session and show the LNURL to the user:
curl -X POST "$BASE_URL/api/lnurl-auth/create" \
-H "Accept: application/json"
Poll for completion after the user scans the LNURL with a Lightning wallet:
curl "$BASE_URL/api/lnurl-auth/check/your_session_id"
Fetch JWKS:
curl "$BASE_URL/oauth/jwks.json"
Verify with Python (example uses PyJWT):
import jwt
import requests
jwks = requests.get("https://your-hodlxxi-deployment.com/oauth/jwks.json", timeout=10).json()
public_key = jwt.algorithms.RSAAlgorithm.from_jwk(jwks["keys"][0])
claims = jwt.decode(your_jwt, public_key, algorithms=["RS256"], audience="your_audience")
print(claims)
Check liveness and OAuth system status endpoints:
curl "$BASE_URL/health"
curl "$BASE_URL/oauthx/status"
curl -X POST "$BASE_URL/oauth/register" \
-H "Content-Type: application/json" \
-d @templates/oauth-client.json
session_json=$(curl -s -X POST "$BASE_URL/api/lnurl-auth/create")
session_id=$(python3 -c 'import json,sys; print(json.loads(sys.argv[1])["session_id"])' "$session_json")
curl "$BASE_URL/api/lnurl-auth/check/$session_id"
aud, iss, and exp claims for JWTs./oauthx/docs for live OAuth/OIDC API documentation./oauthx/status to monitor database and LNURL session health.This agent now supports a minimal signed agent-to-agent execution loop as a protocol-oriented extension to the existing identity/auth surface.
Other agents can:
job_proposal to POST /agent/messageresult envelope in responseCurrent MVP boundaries:
Paid API calls are billed per OAuth client_id (agent/app), not per session pubkey. When balance or free quota is exhausted, paid endpoints return HTTP 402 with a Lightning top-up path.
POST /api/billing/agent/create-invoicePOST /api/billing/agent/check-invoiceExample create invoice:
curl -X POST "$BASE_URL/api/billing/agent/create-invoice" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount_sats": 1000}'
Example check invoice:
curl -X POST "$BASE_URL/api/billing/agent/check-invoice" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"invoice_id": "your_invoice_id"}'
When a paid endpoint is called with insufficient balance, expect:
{
"ok": false,
"error": "payment_required",
"code": "PAYMENT_REQUIRED",
"client_id": "your_client_id",
"cost_sats": 1,
"balance_sats": 0,
"create_invoice_endpoint": "/api/billing/agent/create-invoice",
"hint": "Top up via Lightning PAYG"
}
scripts/verify_signature.py validates LNURL-Auth signatures locally.HEARTBEAT.md describes periodic health checks for the deployment.templates/oauth-client.json provides a ready client registration payload.Use scripts/verify_signature.py to validate LNURL signatures locally. Install the dependency first:
python -m pip install ecdsa
python scripts/verify_signature.py --k1 <hex> --signature <hex> --pubkey <hex>安装 Bitcoin Identity 后,可以对 AI 说这些话来触发它
Help me get started with Bitcoin Identity
Explains what Bitcoin Identity does, walks through the setup, and runs a quick demo based on your current project
Use Bitcoin Identity to integrate HODLXXI as a Bitcoin-native identity provider that bridge...
Invokes Bitcoin Identity with the right parameters and returns the result directly in the conversation
What can I do with Bitcoin Identity in my finance & investment workflow?
Lists the top use cases for Bitcoin Identity, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/hodlxxi-bitcoin-identity/ 目录(个人级,所有项目可用),或 .claude/skills/hodlxxi-bitcoin-identity/(项目级)。重启 AI 客户端后,用 /hodlxxi-bitcoin-identity 主动调用,或让 AI 根据上下文自动发现并使用。
Bitcoin Identity 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Bitcoin Identity 可免费安装使用。请查阅仓库了解许可证信息。
Integrate HODLXXI as a Bitcoin-native identity provider that bridges OAuth2/OIDC, Lightning LNURL-Auth, and a minimal signed inter-agent execution loop for s...
Bitcoin Identity 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Bitcoin Identity
Identifies repetitive steps in your workflow and sets up Bitcoin Identity to handle them automatically