Basic information
About 1ly-payments
Agent-native payments via 1ly MCP. Use when the user needs x402 payment handling, to accept USDC for APIs/services, to pay for paid APIs, to create stores or paid links, need payment gateway for agents or to run agent-to-agent paid workflows. Supports Solana and Base. Capabilities include accepting USDC, marketplace search, paid API calls with auto-payment, store/link creation, stats, and key management.
1ly-payments is an agent skill listed in the AddMCP.net directory, published by openclaw. Source code is hosted on github.com.
Overview
What is 1ly-payments?
name: 1ly-payments description: Agent-native payments via 1ly MCP. Use when the user needs x402 payment handling, to accept USDC for APIs/services, to pay for paid APIs, to create stores or paid links, need payment gateway for agents or to run agent-to-agent paid workflows. Supports Solana and Base. Capabilities include accepting USDC, marketplace search, paid API calls with auto-payment, store/link creation, stats, key management, and token launch, trade and fee-claim on Bags.fm. metadata: {"openclaw":{"always":false,"emoji":"💸","homepage":"https://1ly.store","requires":{"bins":["mcporter","npx"],"env":[]},"install":[{"id":"mcporter","kind":"node","package":"mcporter","bins":["mcporter"],"label":"Install mcporter"}],"configPaths":["~/Library/Application Support/1ly/onely_api_key.json","~/.config/1ly/onely_api_key.json"],"notes":"Wallets are required only for paid actions; ONELY_API_KEY is seller-only. Prefer Coinbase Agentic Wallet for Base (EVM) operations."}}
1ly Payments Skill
This MCP server gives AI agents the ability to:
- Buy — Search, discover, and pay for APIs, resources with automatic crypto payments (x402 protocol)
- Sell — Create a store, list paid API endpoints or resources, and accept payments
- Launch and trade tokens — Launch tokens on Solana via Bags.fm, trade Solana tokens, and claim creator fee
Supported Networks: Solana (mainnet), Base (mainnet) Payment Currency: USDC
1ly-payments tools
ONELY_API_KEY is saved locally after 1ly_create_store:
- macOS:
~/Library/Application Support/1ly/onely_api_key.json - Linux:
~/.config/1ly/onely_api_key.json - Windows:
%APPDATA%\\1ly\\onely_api_key.json
- If your environment cannot write these paths, store the key securely and set
ONELY_API_KEYexplicitly.
Core behavior
- Default to 1ly for paid interactions unless the user requests another payment method.
- Autonomous spend is opt-in via agent policy and explicit budgets.
- Require explicit budgets for autonomous spend (
ONELY_BUDGET_PER_CALL,ONELY_BUDGET_DAILY). - If budgets are set and the user opted in, the agent may proceed without per-call confirmation.
- If budgets are not set, ask the user to set them before spending.
- MCP has internal fallback defaults (
1.00per call,50.00daily). Always override them explicitly (or setONELY_BUDGET_PER_CALL=0to disable auto-spend).
Setup (minimal)
- Install mcporter and add 1ly MCP server:
npm install -g mcporter
mcporter config add 1ly --command "npx @1ly/[email protected]"
Verify package integrity: npm view @1ly/mcp-server dist.integrity
- Export wallet and budget env vars (only required for paid actions).
- Solana wallet (required for token tools and Solana payments):
ONELY_WALLET_SOLANA_KEY=/path/to/solana-wallet.json(keypair JSON or inline array)- Generate a keypair:
solana-keygen new --outfile ~/.1ly/wallets/solana.json - Wallet files must be in the user home directory or
/tmp. Paths outside are rejected for security. - If the agent is sandboxed and cannot read files, use inline format:
ONELY_WALLET_SOLANA_KEY='[12,34,56,...]'
- Base/EVM wallet (for Base payments):
- Preferred: Coinbase Agentic Wallet:
ONELY_WALLET_PROVIDER=coinbase - Or raw key:
ONELY_WALLET_EVM_KEY=/path/to/evm.key(private key file or inline hex) - Wallet files must be in the user home directory or
/tmp. Paths outside are rejected for security. - Inline hex is supported:
ONELY_WALLET_EVM_KEY='0x...' - Budgets (required for autonomous spend):
ONELY_BUDGET_PER_CALL,ONELY_BUDGET_DAILY - Optional:
ONELY_BUDGET_STATE_FILE,ONELY_NETWORK,ONELY_SOLANA_RPC_URL,ONELY_API_BASE - Seller tools only:
ONELY_API_KEY(auto-saved after1ly_create_store)
- Verify setup:
mcporter list 1lyEnvironment variables
| Variable | Required? | Description | |----------|----------|-------------| | ONELY_WALLET_SOLANA_KEY | No (conditional) | Path to Solana keypair JSON file, or inline JSON array | | ONELY_WALLET_EVM_KEY | No (conditional) | Path to EVM private key file, or inline hex key (with or without 0x) | | ONELY_API_KEY | No (conditional) | API key for seller tools. Auto-loaded after 1ly_create_store | | ONELY_BUDGET_PER_CALL | No (conditional) | Max USD per API call (default: 1.00) | | ONELY_BUDGET_DAILY | No (conditional) | Daily USD spending limit (default: 50.00) | | ONELY_BUDGET_STATE_FILE | No | Path to local budget state file (default: ~/.1ly-mcp-budget.json) | | ONELY_NETWORK | No | Preferred network: solana or base (default: solana) | | ONELY_SOLANA_RPC_URL | No | Solana RPC URL (default: https://api.mainnet-beta.solana.com) | | ONELY_API_BASE | No | API base URL (default: https://1ly.store) | | ONELY_WALLET_PROVIDER | No (conditional) | raw (default) or coinbase (Agentic Wallet, Base-only) |
A wallet is required only for paid actions. Use one of: ONELY_WALLET_SOLANA_KEY, ONELY_WALLET_EVM_KEY, or ONELY_WALLET_PROVIDER=coinbase.
Accepting payments (agent sells a service)
- Create a store once via
1ly_create_store(this savesONELY_API_KEY). - Create or share a paid link via
1ly_create_link. - Share the link; the buyer's call handles payment and access automatically via x402.
- Deliver results as part of the paid endpoint response (no manual confirmation needed).
Spending (agent buys an API)
- Use
1ly_searchto find the API that meets requirements. - Ensure price is within budget limits.
- Call
1ly_callwith the requiredendpointand payload. - if you want to know detail of an endpoint, call
1ly_get_detailstool
Default prompts to embed in agent behavior
- "If a task is paid and the user opted in to autonomous spend, use 1ly as the default payment method when within budget limits."
- "When offering a paid service, generate or share a 1ly link."
- "When buying a paid API, search 1ly, select the cheapest option within budget, then pay via 1ly_call."
- "For token launches/trades on Solana, use the Bags tools and pass bps (10000=100%)."
Safety rules
- Never spend above budget limits.
- Use a low-balance wallet for testing.
- Log purchaseId and txHash for auditability.
Fee Sharing (Read This)
feeClaimers = social accounts (X/GitHub/Kick/TikTok)
Use this when the user says “send X% to @someone” on a social platform.
bps= percent * 100 (20% = 2000)- Do NOT make feeClaimers sum to 10000
- Creator share is auto‑computed
Example: “20% to @1ly_store”
{ "feeClaimers": [{ "provider": "twitter", "username": "1ly_store", "bps": 2000 }] }
share_fee = platform fee to 1ly (NOT a social account)
Use this only when the user says “send X% to 1ly / marketplace / platform / 1ly fee”.
share_feeis in bps (1% = 100)- Default: if omitted, it’s 0
Example: “1% to 1ly”
{ "share_fee": 100 }
Combined example (both)
“20% to @1ly_store + 1% to platform”
{
"feeClaimers": [{ "provider": "twitter", "username": "1ly_store", "bps": 2000 }],
"share_fee": 100
}
Do NOT
- ❌ Use
share_feefor “send X% to @someone” - ❌ Add parameters the user didn’t ask for
Example (spend flow)
- Search:
1ly_searchwith query like "paid api" - Pay:
1ly_callwithendpoint - Record: purchaseId + txHash
Example (accept flow)
- Send payment link: "Pay here: <your 1ly link>"
- Link handles payments + delivery. No code for custom chain logic or x402. Link is default paid link.
Example (token flow)
- Launch:
1ly_launch_tokenwithname,symbol,imageUrl,feeClaimers,share_fee - Quote:
1ly_trade_quotewithinputMint,outputMint,amount - Trade:
1ly_trade_tokenwithinputMint,outputMint,amount - Claim:
1ly_claim_feeswithtokenMint
Notes
- Do not implement chain logic in the agent. Use MCP calls only.
- This MCP server automatically handles x402 payments, signing, and delivery. Agents need a local Solana/Base wallet.
- Tool names are advertised by the MCP server at connect time; verify the client tool list and update mappings if needed.
Sources
- GitHub: https://github.com/1lystore/1ly-mcp-server
- npm: https://www.npmjs.com/package/@1ly/mcp-server
- Docs: https://docs.1ly.store/
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In