agentwallet
БесплатноБез исполняемых скриптовНе проверенWallets for AI agents with x402 payment signing, referral rewards, and policy-controlled actions.
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
AgentWallet
AgentWallet provides server wallets for AI agents. Wallets are provisioned after email OTP verification. All signing happens server-side and is policy-controlled.
TL;DR - Quick Reference
FIRST: Check if already connected by reading ~/.agentwallet/config.json. If file exists with apiToken, you're connected - DO NOT ask user for email.
Need to connect (no config file)? Ask user for email → POST to /api/connect/start → user enters OTP → POST to /api/connect/complete → save API token.
x402 Payments? Use the ONE-STEP /x402/fetch endpoint (recommended) - just send target URL + body, server handles everything.
x402/fetch - ONE-STEP PAYMENT PROXY (RECOMMENDED)
This is the simplest way to call x402 APIs. Send the target URL and body - the server handles 402 detection, payment signing, and retry automatically.
curl -s -X POST "https://frames.ag/api/wallets/USERNAME/actions/x402/fetch" \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d '{"url":"https://enrichx402.com/api/exa/search","method":"POST","body":{"query":"AI agents","numResults":3}}'
That's it! The response contains the final API result:
{
"success": true,
"response": {
"status": 200,
"body": {"results": [...]},
"contentType": "application/json"
},
"payment": {
"chain": "eip155:8453",
"amountFormatted": "0.01 USDC",
"recipient": "0x..."
},
"paid": true,
"attempts": 2,
"duration": 1234
}
x402/fetch Request Options
| Field | Type | Required | Description |
|---|---|---|---|
url |
string | Yes | Target API URL (must be HTTPS in production) |
method |
string | No | HTTP method: GET, POST, PUT, DELETE, PATCH (default: GET) |
body |
object | No | Request body (auto-serialized to JSON) |
headers |
object | No | Additional headers to send |
preferredChain |
string | No | "auto" (default), "evm", or "solana". Auto selects chain with sufficient USDC balance |
dryRun |
boolean | No | Preview payment cost without paying |
timeout |
number | No | Request timeout in ms (default: 30000, max: 120000) |
idempotencyKey |
string | No | For deduplication |
Dry Run (Preview Cost)
Add "dryRun": true to the request body. Returns payment details without executing:
{
"success": true,
"dryRun": true,
"payment": {
"required": true,
"chain": "eip155:8453",
"amountFormatted": "0.01 USDC",
"policyAllowed": true
}
}
Error Codes
| Code | HTTP | Description |
|---|---|---|
INVALID_URL |
400 | URL malformed or blocked (localhost, internal IPs) |
POLICY_DENIED |
403 | Policy check failed (amount too high, etc.) |
WALLET_FROZEN |
403 | Wallet is frozen |
TARGET_TIMEOUT |
504 | Target API timed out |
TARGET_ERROR |
502 | Target API returned 5xx error |
PAYMENT_REJECTED |
402 | Payment was rejected by target API |
NO_PAYMENT_OPTION |
400 | No compatible payment network |
Config File Reference
Store credentials at ~/.agentwallet/config.json:
{
"username": "your-username",
"email": "[email protected]",
"evmAddress": "0x...",
"solanaAddress": "...",
"apiToken": "mf_...",
"moltbookLinked": false,
"moltbookUsername": null,
"xHandle": null
}
| Field | Description |
|---|---|
username |
Your unique AgentWallet username |
email |
Email used for OTP verification |
evmAddress |
EVM wallet address |
solanaAddress |
Solana wallet address |
apiToken |
Fund API token for authenticated requests (starts with mf_) |
moltbookLinked |
Whether a Moltbook account is linked |
moltbookUsername |
Linked Moltbook username (if any) |
xHandle |
X/Twitter handle from Moltbook (if linked) |
Security: Never commit to git. Set chmod 600. Treat apiToken like a password.
Connect Flow
Web flow: Ask user for email → direct to https://frames.ag/connect?email=EMAIL → user enters 6-digit OTP → page displays credentials (AGENTWALLET_USERNAME, AGENTWALLET_API_TOKEN, etc.). User should save the API token securely.
API flow (for CLI/agents):
Step 1 - Send OTP:
curl -X POST https://frames.ag/api/connect/start \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]"}'
Returns username in response. For referrals, add "ref":"REFERRER_USERNAME" to body.
Step 2 - Ask user for OTP, then complete:
curl -X POST https://frames.ag/api/connect/complete \
-H "Content-Type: application/json" \
-d '{"username":"USERNAME_FROM_STEP_1","email":"[email protected]","otp":"USER_OTP"}'
Returns apiToken, evmAddress, solanaAddress. Save the apiToken for all wallet operations.
Referral & Airdrop Program
Share your referral link: https://frames.ag/connect?ref=YOUR_USERNAME&email=THEIR_EMAIL
Both referrer and new agent earn airdrop points. Points: refer
Установить agentwallet в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agentwallet?
Wallets for AI agents with x402 payment signing, referral rewards, and policy-controlled actions.
Как установить скилл agentwallet?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentwallet запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic