Logo di 1ly Payments

1ly Payments

Community
modbender
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, key management, and token launch, trade and fee-claim on Bags.fm.

Panoramica

Autoremodbender
Repositoryskill-library-mcp
Nome della skill1ly-payments
Stelle
21
Fork
6
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da modbender su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA 1ly Payments in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/modbender/skill-library-mcp/tree/main/data/1ly-payments
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/modbender/skill-library-mcp.git /tmp/skill-library-mcp
mkdir -p .claude/skills
cp -r /tmp/skill-library-mcp/data/1ly-payments .claude/skills/1ly-payments
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva 1ly Payments in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente 1ly Payments non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi 1ly Payments non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

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.00 per call, 50.00 daily). Always override them explicitly (or set ONELY_BUDGET_PER_CALL=0 to disable auto-spend).

Setup (minimal)

  1. Install mcporter and add 1ly MCP server:
bash
npm install -g mcporter
mcporter config add 1ly --command "npx @1ly/mcp-server@0.1.6"

Verify package integrity: npm view @1ly/mcp-server dist.integrity

  1. 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 after 1ly_create_store)
  1. Verify setup:
bash
mcporter list 1ly

Environment variables

VariableRequired?Description
ONELY_WALLET_SOLANA_KEYNo (conditional)Path to Solana keypair JSON file, or inline JSON array
ONELY_WALLET_EVM_KEYNo (conditional)Path to EVM private key file, or inline hex key (with or without 0x)
ONELY_API_KEYNo (conditional)API key for seller tools. Auto-loaded after 1ly_create_store
ONELY_BUDGET_PER_CALLNo (conditional)Max USD per API call (default: 1.00)
ONELY_BUDGET_DAILYNo (conditional)Daily USD spending limit (default: 50.00)
ONELY_BUDGET_STATE_FILENoPath to local budget state file (default: ~/.1ly-mcp-budget.json)
ONELY_NETWORKNoPreferred network: solana or base (default: solana)
ONELY_SOLANA_RPC_URLNoSolana RPC URL (default: https://api.mainnet-beta.solana.com)
ONELY_API_BASENoAPI base URL (default: https://1ly.store)
ONELY_WALLET_PROVIDERNo (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.

MCP tools to use

Buyer tools (spend):

  • 1ly_search: find paid APIs/services on 1ly.store
  • 1ly_get_details: fetch price and payment info for a specific link
  • 1ly_call: pay and call a paid API (x402 handled by server)
  • 1ly_review: leave a review after a successful purchase

Seller tools (accept):

  • 1ly_create_store: create a store and save API key locally
  • 1ly_create_link: create a paid or free link for an API/service
  • 1ly_list_links: list existing links
  • 1ly_update_link: update price/URL/visibility
  • 1ly_delete_link: delete a link
  • 1ly_get_stats: view store or link stats
  • 1ly_list_keys: list API keys
  • 1ly_create_key: create a new API key
  • 1ly_revoke_key: revoke an API key
  • 1ly_withdraw: request a withdrawal
  • 1ly_list_withdrawals: list recent withdrawals
  • 1ly_update_profile: update store profile
  • 1ly_update_socials: update store socials
  • 1ly_update_avatar: update store avatar

Token tools (Bags.fm, Solana):

  • 1ly_launch_token: launch a token on Bags.fm
  • 1ly_list_tokens: list tokens launched by a wallet
  • 1ly_trade_quote: get a trade quote
  • 1ly_trade_token: trade tokens using the quote+swap flow
  • 1ly_claim_fees: claim Bags fee share for a token
    • Requires Solana wallet and a reliable RPC. Recommended: set ONELY_SOLANA_RPC_URL to your own provider. Default is Solana public mainnet RPC.

Tool requirements by category

  • Free tools (no wallet required): 1ly_search, 1ly_get_details
  • Paid buyer tools: 1ly_call (Solana or Base wallet required)
  • Seller tools: require ONELY_API_KEY
  • Token tools (Bags.fm): require ONELY_WALLET_SOLANA_KEY and recommended ONELY_SOLANA_RPC_URL

Tool inputs (current schema)

Use mcporter list 1ly --schema if tool names or parameters differ.

  • 1ly_search: { "query": "...", "limit": 5 }
  • 1ly_get_details: { "endpoint": "seller/slug" }
  • 1ly_call: { "endpoint": "seller/slug", "method": "GET", "body": {...} }
  • 1ly_create_store: { "username": "...", "displayName": "..." }
  • 1ly_create_link: { "title": "...", "url": "https://...", "price": "1.00", "currency": "USDC", "isPublic": true }
  • 1ly_withdraw: { "amount": "1.25", "walletAddress": "..." }
  • 1ly_update_profile: { "username": "...", "displayName": "...", "bio": "..." }
  • 1ly_update_socials: { "socials": { "twitter": "...", "website": "..." } }
  • 1ly_update_avatar: { "avatarUrl": "https://..." } or { "imageBase64": "...", "mimeType": "image/png", "filename": "avatar.png" }
  • 1ly_launch_token: { "name": "GOLDEN", "symbol": "GOLDEN", "imageUrl": "https://...", "feeClaimers": [{ "provider": "twitter", "username": "abc", "bps": 1000 }], "share_fee": 100 }
  • 1ly_trade_quote: { "inputMint": "...", "outputMint": "...", "amount": "1000000", "slippageMode": "auto" }
  • 1ly_trade_token: { "inputMint": "...", "outputMint": "...", "amount": "1000000", "slippageMode": "auto" }

Accepting payments (agent sells a service)

  1. Create a store once via 1ly_create_store (this saves ONELY_API_KEY).
  2. Create or share a paid link via 1ly_create_link.
  3. Share the link; the buyer's call handles payment and access automatically via x402.
  4. Deliver results as part of the paid endpoint response (no manual confirmation needed).

Spending (agent buys an API)

  1. Use 1ly_search to find the API that meets requirements.
  2. Ensure price is within budget limits.
  3. Call 1ly_call with the required endpoint and payload.
  4. if you want to know detail of an endpoint, call 1ly_get_details tool

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.

Token tool constraints (Bags.fm)

  • name max 32 chars, symbol max 10 chars, description max 1000 chars.
  • imageBase64 must be raw base64 and <= 15MB decoded.
  • slippageBps range 0-10000 when slippageMode=manual.

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”

json
{ "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_fee is in bps (1% = 100)
  • Default: if omitted, it’s 0

Example: “1% to 1ly”

json
{ "share_fee": 100 }

Combined example (both)

“20% to @1ly_store + 1% to platform”

json
{
  "feeClaimers": [{ "provider": "twitter", "username": "1ly_store", "bps": 2000 }],
  "share_fee": 100
}

Do NOT

  • ❌ Use share_fee for “send X% to @someone”
  • ❌ Add parameters the user didn’t ask for

Example (spend flow)

  • Search: 1ly_search with query like "paid api"
  • Pay: 1ly_call with endpoint
  • 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_token with name, symbol, imageUrl, feeClaimers, share_fee
  • Quote: 1ly_trade_quote with inputMint, outputMint, amount
  • Trade: 1ly_trade_token with inputMint, outputMint, amount
  • Claim: 1ly_claim_fees with tokenMint

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

Secret storage (seller 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_KEY explicitly.

Domande frequenti

Cosa fa la skill IA 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, key management, and token launch, trade and fee-claim on Bags.fm.

Perché usare 1ly Payments su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. 1ly Payments è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo 1ly Payments in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/modbender/skill-library-mcp/tree/main/data/1ly-payments. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare 1ly Payments?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con 1ly Payments?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con 1ly Payments: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA 1ly Payments è gratuita?

Sì. È pubblicata su GitHub da modbender con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇