nervepay-identity
Agent identity layer. Register DID, sign requests with Ed25519, prove WHO you are cryptographically.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- nervepay-identity
- metadata
- { "openclaw": { "emoji": "?", "requires": { "env": [ "NERVEPAY_DID", "NERVEPAY_PRIVATE_KEY" ], "bins": [ "node", "curl" ] }, "primaryEnv": "NERVEPAY_PRIVATE_KEY" } }
- description
- Agent identity layer. Register DID, sign requests with Ed25519, prove WHO you are cryptographically.
02 资源文件 1
- 参考文档_meta.json301 B
03 SKILL.md 正文
NervePay Identity — Agent Instructions
You are an AI agent with a NervePay identity. This skill lets you prove WHO you are using W3C DIDs and Ed25519 cryptographic signatures.
What This Skill Does
- Registers your identity: Creates a unique DID (Decentralized Identifier) for you
- Authenticates you: Signs requests with Ed25519 so API providers know it's really you
- Proves ownership: Cryptographic verification that you control your identity
- NO analytics tracking: This skill is identity-only. Use
nervepay-analyticsfor tracking ornervepayfor both.
Step 1: Download Helper Script
First, download the NervePay signing helper:
# Download signing script
curl -o nervepay-request.mjs https://nervepay.xyz/nervepay-request.mjs
chmod +x nervepay-request.mjs
This script handles Ed25519 signing for authenticated requests.
Step 2: Register Your Identity
If you don't have NERVEPAY_DID and NERVEPAY_PRIVATE_KEY env vars, register first:
curl -X POST https://api.nervepay.xyz/v1/agent-identity/register-pending \
-H "Content-Type: application/json" \
-d '{
"name": "Your Agent Name",
"description": "What you do"
}'
Save these from the response:
did→ Set asNERVEPAY_DIDprivate_key→ Set asNERVEPAY_PRIVATE_KEYmnemonic→ Backup for recovery (24 words)claim_url→ Give to your human owner to claim you
You can start authenticating immediately. Human ownership (via claim_url) is optional but recommended for better trust scores.
Making Authenticated Requests
Use the helper script to sign and send authenticated requests:
# Test authentication
node ./nervepay-request.mjs GET /v1/agent-identity/whoami
# Check your capabilities
node ./nervepay-request.mjs GET /v1/agent-identity/capabilities
# Authenticated POST (example)
node ./nervepay-request.mjs POST /v1/some-endpoint '{"key":"value"}'
The script handles Ed25519 signing automatically. It reads NERVEPAY_DID, NERVEPAY_PRIVATE_KEY, and NERVEPAY_API_URL (default: https://api.nervepay.xyz) from environment.
What the Signature Proves
| Guarantee | How |
|---|---|
| Authentication (who is calling) | Server verifies Ed25519 signature against your public key |
| Integrity (what was sent) | Signature covers method, path, query, body hash — tampering breaks verification |
| Replay protection | Unique nonce + timestamp prevents captured requests from reuse |
| Portable identity | Your DID carries reputation across all platforms that check NervePay headers |
Required Headers (automatically added)
The helper script adds these automatically:
Agent-DID: Your DIDX-Agent-Signature: Base64-encoded Ed25519 signatureX-Agent-Nonce: Unique nonce (UUID)X-Signature-Timestamp: ISO 8601 timestamp
Common Commands
Test authentication
node ./nervepay-request.mjs GET /v1/agent-identity/whoami
Returns your DID, name, reputation score, and confirms authentication works.
Check your capabilities
node ./nervepay-request.mjs GET /v1/agent-identity/capabilities
Shows your spending limits, allowed operations, and permissions.
Verify another agent
curl "https://api.nervepay.xyz/v1/agent-identity/verify/did:nervepay:agent:abc123xyz"
No auth required. Returns public profile, reputation, and transaction stats for any agent.
Poll claim status (check if human claimed you)
curl "https://api.nervepay.xyz/v1/agent-identity/register-pending/SESSION_ID/status"
Returns: pending, claimed, expired, or revoked.
Security Notes
- Private key: NEVER send to any server. Only send signatures.
- Nonces: Single-use. Generate new for each request (script handles this).
- Timestamps: Must be within 5 minutes of server time.
- Mnemonic: 24-word backup phrase. Store securely offline.
Need Analytics Too?
This skill is identity-only. To track API usage and build reputation:
- Use
nervepay-analyticsskill for analytics-only - Use
nervepayskill for both identity + analytics
Full API Reference
For complete endpoint documentation, error codes, and advanced usage, see:
- Online: https://nervepay.xyz/docs
- Download API reference:
curl -o api.md https://nervepay.xyz/api.md
API Base: https://api.nervepay.xyz/v1 Docs: https://nervepay.xyz/docs GitHub: https://github.com/nervepay/nervepay
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.