{"skill":{"slug":"redotpay","displayName":"RedotPay Wallet","summary":"Discover and retrieve services and data via RedotPay CLI across media, model APIs, data APIs, and commerce lookups without purchase flows.","description":"---\nname: redotpay-payment\ndescription: \"Trigger when the user asks RedotPay to find, search, request, or look up services/data. Covers service discovery by ```bash\nredotpay wallet services list --search \"<keywords>\"\n```  and data retrieval across media generation, model APIs, data APIs, and agent-commerce lookups. Triggers on 'use redotpay to find/search/look up/request XXX'.\"\nmetadata: {\"openclaw\":{\"requires\":{\"bins\":[\"redotpay\"]}}}\n---\n\n# RedotPay Payment\n\nService discovery and data retrieval via CLI. **Find, search, and request only — no purchase/buy flows.**\n\n## When to Trigger\n\nTrigger when the user message combines RedotPay with a **discovery or query** action:\n\n- `use redotpay to find/search/look up/request …`\n- `request/find/search/look up … by/via redotpay`\n- `用 redotpay 找/查/搜 …`\n\n**Trigger examples:**\n\n> \"use redotpay to find running shoes under $150 with free shipping\"\n> \"use redotpay to search flights SFO to Tokyo\"\n> \"look up AAPL stock data by redotpay\"\n> \"request weather data for NYC via redotpay\"\n\n---\n\n## Task Buckets\n\nRedotPay services are organized into these categories. Use them to guide keyword selection during service discovery:\n\n### Generate Media\nImage, video, music, audio, TTS, transcription.\n\n### Model APIs\nChat completion, embeddings, inference.\n\n### Data APIs\nSearch, extraction, on-chain data, travel/maps-style lookups (per catalog).\n\n### Agent-Commerce\nBuy/order/purchase flows exposed via MPP (lottery, domains, mail, etc.).\n\n> **Note:** This skill handles discovery and data retrieval across all buckets. Agent-commerce **purchase** flows are excluded — only listing/searching/looking up commerce services is allowed.\n\n---\n\n## Core Workflow (Four Steps)\n\n**Steps A, B, C do not require login.** Login is only needed at Step D before making a paid request.\n\n### Step A — Search for Services\n\n```bash\nredotpay wallet services list --search \"<keywords>\"\n```\n\nExtract 1–3 core keywords from the user's request. Match against the task buckets above:\n\n| User Request | Bucket | Search Terms |\n|-------------|--------|-------------|\n| Find running shoes under $150 | Data APIs | `--search \"shoes product search\"` |\n| Search flights SFO→JFK | Data APIs | `--search \"flight travel\"` |\n| Look up AAPL stock | Data APIs | `--search \"stock market finance\"` |\n| Generate an image of a cat | Generate Media | `--search \"image generation\"` |\n| Transcribe this audio file | Generate Media | `--search \"transcription audio\"` |\n| Chat with GPT about history | Model APIs | `--search \"chat completion llm\"` |\n\nIf results are empty, try broader keywords. Output is JSON — focus on `id`, `name`, `description`, `serviceUrl`.\n\n### Step B — Inspect the Service\n\n```bash\nredotpay wallet services <service_id>\n```\n\nGet endpoint list, parameter schema, and pricing. **Always inspect before calling.**\n\n### Step C — Quote Cost and Get Confirmation\n\n**After inspecting the service and mapping user constraints to parameters, before any request:**\n\n1. Tell the user:\n   - Which service and endpoint will be called\n   - Exact cost (amount + currency)\n   - What the request will return\n2. **Wait for explicit user confirmation.** Do not proceed without it.\n3. If user says no or asks for alternatives, go back to Step A or B.\n\n### Step D — Login then Call the Service\n\n**Login is only required at this step.**\n\nFirst, check login status:\n\n```bash\nredotpay wallet whoami\n```\n\n- Logged in → proceed to call the service\n- Not logged in → run login flow (see Login Flow below), then proceed\n\nThen call the service:\n\n```bash\nredotpay request [flags] <endpoint_url>\n```\n\nOnly execute after Step C confirmation and login check.\n\n---\n\n## Command Reference\n\n```text\nredotpay wallet services list [--search <q>]  # Search services\nredotpay wallet services <id>                  # Inspect service details\nredotpay request [curl-flags] <url>            # Send request\nredotpay wallet whoami                         # Check login status\nredotpay wallet login                          # Log in\nredotpay wallet logout                         # Log out\nredotpay --help                                # Help\nredotpay request --help                        # Request help\nredotpay guide                                 # Usage guide\n```\n\n---\n\n## Payment Safety Rules\n\n### User Confirmation\n\n1. Login (`wallet login`) does not require confirmation for a specific charge.\n2. Any paid `redotpay request` must:\n   - State amount, currency, and purpose\n   - Obtain **explicit user confirmation** before executing\n\n### Spend Cap\n\nSet a cap via `--max-spend` or `REDOTPAY_CLI_MAX_SPEND` for any chargeable request. If the user refuses a cap, do not proceed.\n\n### Preflight\n\nLogin is only required at Step D. Do **not** run `whoami` or `login` during Steps A, B, or C.\n\n---\n\n## Login Flow\n\nOnly triggered at Step D when `whoami` returns \"not logged in\".\n\n```bash\nredotpay wallet login\n```\n\n1. Parse stdout JSON, extract `login_qr_png_path` and `user_code`\n2. Read and display the QR image as an attachment: `read <login_qr_png_path>`\n3. Tell the user: **Open the RedotPay app, scan the QR code above to authorize**\n4. Wait for user → `whoami` to confirm → continue\n\n---\n\n## Notes\n\n- Never expose OAuth tokens, keys, or wallet config in chat\n- Use `-v` sparingly (stderr may leak payment metadata)\n- **Login QR:** use `read` tool on the PNG path, not `![...](file://...)` markdown (blocked by browser security)\n\n---\n\n## Installation Reference\n\nFor first-time setup only.\n\n```bash\ncurl -fsSL \"https://raw.githubusercontent.com/redotpay/redotpay-cli/v0.1.0/install.sh\" -o redotpay-install.sh\nshasum -a 256 -c SHA256SUMS --ignore-missing\nbash redotpay-install.sh\nredotpay --version\n```\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":329,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":2},"createdAt":1778050931222,"updatedAt":1778492854429},"latestVersion":{"version":"1.0.0","createdAt":1778062472446,"changelog":"ok","license":"MIT-0"},"metadata":null,"owner":{"handle":"turbo-wang","userId":"s17ed9pje213tp47pdskp182md862fmm","displayName":"wanghao-ftd","image":"https://avatars.githubusercontent.com/u/13176434?v=4"},"moderation":null}