Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Shop autonomously on Amazon via Moltpho - search products, manage credit, and purchase items using mUSD on Base mainnet
Shop autonomously on Amazon via Moltpho - search products, manage credit, and purchase items using mUSD on Base mainnet
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Shop for items on Amazon autonomously using credit-backed mUSD tokens on Base mainnet.
Moltpho is a headless shopping mall that enables AI agents to discover and purchase Amazon products using a credit system backed by mUSD (an ERC-20 token on Base mainnet). This skill handles: Agent registration and credential management Product search and discovery Autonomous and proactive purchasing Credit balance monitoring x402 payment protocol integration
On first invocation, the skill MUST check for existing credentials and register if needed.
PlatformPathLinux/macOS~/.config/moltpho/credentials.jsonWindows%APPDATA%\moltpho\credentials.jsonOverrideMOLTPHO_CREDENTIALS_PATH environment variable
Check credentials file at the appropriate path If missing, call POST /v1/agents/register with: openclaw_instance_id (if available) agent_display_name agent_description No shipping profile required at registration Save credentials with chmod 600 permissions Auto-open browser with notice: "Opening portal in your browser to complete setup..." Registration proceeds WITHOUT shipping profile - orders will fail until owner adds one via portal
{ "agent_id": "uuid", "api_key_id": "moltpho_key_...", "api_key_secret": "moltpho_secret_...", "api_base_url": "https://api.moltpho.com", "wallet_address": "0xabc123..." }
Initialize agent credentials and open portal for owner setup. 1. Check if credentials file exists at platform-specific path 2. If exists and valid: load credentials, verify with GET /v1/agents/me 3. If missing or invalid: a. Call POST /v1/agents/register (no auth required) b. Receive: agent_id, api_key_id, api_key_secret, claim_url, wallet_address c. Write credentials file with chmod 600 d. Display: "Opening portal in your browser to complete setup..." e. Open browser to claim_url (valid for 24 hours) 4. Return agent status (UNCLAIMED, CLAIMED, DEGRADED, SUSPENDED)
Verify sufficient credit before any purchase. Process: 1. Call GET /v1/balance 2. Response includes: - available_credit_cents: Spendable amount - staged_refunds: Pending refunds (shown with asterisk) - target_limit: Owner's configured credit limit 3. Compare against: - Quote total - per_order_cap (if set) - daily_cap (if set, track daily spending) 4. Return: can_purchase (bool), available_amount, reason_if_blocked
List the agent's support tickets. Process: 1. Call GET /v1/support_tickets 2. Display tickets with: type, status, order link, creation date 3. Status meanings: - OPEN: Submitted, awaiting support review - IN_PROGRESS: Being handled - WAITING_CUSTOMER: Support needs more info from you - RESOLVED: Issue resolved - CLOSED: Ticket closed
Delete local credentials (agent persists server-side). Process: 1. Delete credentials file at platform-specific path 2. Display: "Credentials removed. Agent still exists on Moltpho servers." 3. To fully delete agent, owner must use portal Note: This only removes LOCAL credentials. The agent account, wallet, and purchase history remain on Moltpho servers until owner deletes via portal.
The skill uses the browser for owner-sensitive operations.
ActionMethodComplete setup (claim link)Auto-open with noticeAdd/manage payment cardsDirect owner to portalSet credit limitsDirect owner to portalConfigure shipping profileDirect owner to portalView order historyDirect owner to portal
Always display notice: "Opening portal in your browser..." NEVER request card numbers, passwords, or sensitive credentials in chat Portal handles all PCI-sensitive operations via Stripe Elements Owner authenticates via magic link (email-based)
All API requests (except registration) require authentication.
Authorization: Bearer <api_key_secret> Or preferably: X-Moltpho-Key-Id: <api_key_id> X-Moltpho-Signature: <HMAC signature>
For state-changing operations, always include: Idempotency-Key: <unique-key> Required for: POST /v1/quotes POST /v1/orders POST /v1/wallets/x402/sign
CodeErrorAction401UNAUTHORIZEDRe-bootstrap or check credentials402PAYMENT_REQUIREDSign and retry with x402 signature409PRICE_CHANGEDRe-quote if price increased >2%409INSUFFICIENT_CREDITInform user, suggest adding credit409QUOTE_EXPIREDAuto-retry (up to 3x) or re-quote422INVALID_SHIPPING_PROFILEPrompt owner to add shipping via portal422AGENT_SUSPENDEDInform owner, direct to portal429RATE_LIMITEDWait per Retry-After header503TOKEN_PAUSEDSystem halted, wait for admin
When a quote expires during the x402 flow: Fetch new quote for same item Compare price to original quote If within 5% tolerance: continue with new quote If >5% change: fail with PRICE_CHANGED Maximum 3 retry attempts
LimitValueMaximum item price$10,000 USDQuote TTL10 minutes (fixed)Price tolerance2% increase allowedRetry price tolerance5% for auto-retryMax concurrent quotes5 per agentProactive purchase capmin(per_order_cap, $75)
EndpointLimitCatalog search60/minuteQuotes20/minuteOrders5/minuteSigning10/minute
The following categories CANNOT be purchased regardless of owner settings: Weapons, firearms, ammunition Controlled substances, prescription medications Tobacco, nicotine products Alcohol Adult content Hazardous materials
Owner sets target credit limit in USD Weekly automatic top-up restores credit to target Credit backed by mUSD tokens on Base mainnet 10% markup over Amazon prices (covers fees + gas)
POST /v1/orders returns 402 with PAYMENT-REQUIRED header Call POST /v1/wallets/x402/sign with payment blob Wallet service signs EIP-3009 authorization Retry order with PAYMENT-SIGNATURE header Facilitator settles on Base mainnet Order proceeds to fulfillment
ScenarioRefund TargetProcurement failuremUSD balance (auto)Order canceled (within 5 min)mUSD balance (auto)Owner decreases credit limitCard via StripeReturn/lost packageSupport ticket required (use create_support_ticket)
StateMeaningCan Order?UNCLAIMEDRegistered, awaiting owner claimNoCLAIMEDOwner claimed, fully operationalYesDEGRADEDPayment methods failed, using remaining balanceYes (if balance)SUSPENDEDAdmin action, requires manual resolutionNo
Call budget_check() to verify available credit Confirm shipping profile exists Check item against category denylist Verify confidence threshold for proactive purchases
Always confirm purchase with total price before executing Report order status and remaining credit after purchase If budget signals detected, acknowledge constraints Never pressure user to add more credit
On INSUFFICIENT_CREDIT: suggest adding credit via portal On INVALID_SHIPPING_PROFILE: collect shipping info and call upsert_shipping_profile(), or direct to portal On SUSPENDED: explain owner must resolve via portal
EndpointPurposePOST /v1/agents/registerNew agent registrationGET /v1/agents/meCurrent agent statusGET /v1/balanceAvailable creditGET /v1/catalog/searchSearch productsPOST /v1/quotesCreate purchase quotePOST /v1/ordersPlace order (x402)POST /v1/wallets/x402/signSign paymentGET /v1/shipping_profilesList shipping profilesPOST /v1/shipping_profilesCreate/update shipping profilePOST /v1/support_ticketsCreate support ticketGET /v1/support_ticketsList support tickets
https://portal.moltpho.com Owner actions: /claim/{token} - Claim agent ownership /agents - Manage agents /cards - Payment methods /orders - Order history /settings - Credit limits and preferences
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.