stripe-link-cli
Fungsinya
Skill ini menghubungkan AI Anda ke Stripe Link agar dapat menyelesaikan pembelian atas nama Anda. Skill ini ditujukan untuk orang yang ingin AI mereka membeli barang, dengan setiap pembayaran disetujui oleh mereka.
Kapan dipakai
- βSaat Anda meminta AI membeli sesuatu atau menyelesaikan checkout untuk Anda.
- βSaat sebuah layanan meminta pembayaran lewat respons HTTP 402 yang menyebut Stripe.
- βSaat Anda ingin AI menghubungkan dompet Stripe Link Anda untuk pembelian berikutnya.
Link skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/payments/stripe-link-cli/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda membeli barang ini untuk saya menggunakan kartu Stripe Link saya dan menunggu persetujuan saya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjalankan alat baris perintah Stripe Link. Setiap pembayaran harus disetujui di aplikasi Link di ponsel atau web, sehingga AI tidak dapat menyetujui pengeluaran sendiri.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Stripe Link CLI Skill
Wraps @stripe/link-cli so Hermes can complete purchases on the user's behalf using one-time-use virtual cards or Shared Payment Tokens (SPT). Every spend is gated by an in-app approval in the Link mobile/web app β Hermes cannot self-approve.
US-only at the moment (Link account requirement). Windows is not supported by the upstream CLI β this skill is gated [linux, macos].
When to Use
Trigger phrases:
- "buy X", "pay for X", "make a purchase", "complete checkout"
- "get me a card", "I need a payment method"
- "log in to Link", "connect my Link wallet"
- HTTP 402 response from a merchant API with
www-authenticate: ... method="stripe"
If the user wants a paid API call (HTTP 402, no checkout form), the card path is wrong β use SPT via this same skill, or hand off to the mpp-agent skill.
Prerequisites
- Node.js 20+ available on
PATH(node --version) - US-based (Link account requirement)
The Link account, payment method, and spend-approval app do NOT need to be set up before Hermes attempts to pay β the CLI walks the user through them on first run:
- A Link account at https://app.link.com β created/linked during first
link-cliauth - At least one payment method β added during first run at https://app.link.com/wallet
- The Link mobile/web app β opened to approve the first spend request when it's made
No env vars required β auth state is stored locally by the CLI under its own config directory.
Install
Install once, globally:
npm install -g @stripe/link-cli
Or invoke ad-hoc via npx @stripe/link-cli. The skill below uses the installed link-cli form.
How to Run
All commands run through the terminal tool. The CLI auto-detects non-TTY callers and emits compact toon output by default β fine for the model. Pass --format json if a step needs structured fields.
Discover commands: link-cli --llms-full.
Get a command's schema before invoking: link-cli <command> --schema.
Procedure
1. Check / establish auth
link-cli auth status
If not authenticated, log in with a clear client name (this label shows in the user's Link app):
link-cli auth login --client-name "Hermes" --interval 5 --timeout 300
The --interval/--timeout form polls inline so the agent doesn't need to manage a _next step. Print the verification URL + phrase to the user and wait for the CLI to return.
Do not proceed past this step until auth status confirms login.
2. Evaluate the merchant before creating a spend request
Decide the credential type:
| Merchant surface | --credential-type |
|---|---|
| Standard web checkout form / Stripe Elements | card (default) |
Returns HTTP 402 with method="stripe" in www-authenticate |
shared_payment_token |
Returns HTTP 402 without method="stripe" |
unsupported β stop |
For 402 responses, do NOT decode the challenge manually. Pass the raw header:
link-cli mpp decode --challenge '<full WWW-Authenticate header>'
This validates the challenge and extracts the network ID + decoded request body.
3. List payment methods + shipping
link-cli payment-methods list
link-cli shipping-address list
Use the first entry unless the user specifies otherwise. The id from payment-methods list is the --payment-method-id in the next step.
4. Create the spend request
Confirm the final total with the user before issuing this command. Amounts are in cents.
link-cli spend-request create \
--payment-method-id <pm_id> \
--merchant-name "<name>" \
--merchant-url "<url>" \
--context "<one sentence: what is being purchased and why>" \
--amount <cents> \
--line-item "name:<item>,unit_amount:<cents>,quantity:1" \
--total "type:total,display_text:Total,amount:<cents>" \
--request-approval
For MPP merchants add --credential-type shared_payment_token.
--request-approval pings the user's Link app and polls until they approve or deny. The CLI exits non-zero on deny / timeout.
5. Retrieve the credential β SECURELY
Do not print card details to stdout. Use --output-file so the PAN never enters the agent's transcript or logs:
link-cli spend-request retrieve <lsrq_id> \
--include card \
--output-file ~/.hermes/cache/scratch/link-card.json \
--format json
The file is written with 0600 perms; stdout shows only redacted fields (brand, last4, expiry) plus a card_output_file path.
6. Use the cr
Pertanyaan umum
Apakah AI saya bisa membelanjakan uang tanpa persetujuan saya?
Tidak. Skill menyatakan setiap pengeluaran memerlukan persetujuan di aplikasi Link, dan AI tidak dapat menyetujuinya sendiri.
Apa yang perlu saya siapkan sebelum memulai?
Anda memerlukan Node.js 20 atau yang lebih baru, akun Stripe Link yang berbasis di AS, dan aplikasi Link untuk menyetujui pembelian.
Apakah ini berfungsi di Windows?
Skill terbatas pada Linux dan macOS karena alat baris perintah hulunya tidak mendukung Windows.
Detail
Deskripsi asli dari pembuat
Agent payments via Stripe Link β cards, SPT, approvals.
Popularitas
- Bintang GitHub
- 260k
- Peringkat
- #532
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-merge-conflict-arbiter
260kMenyelesaikan konflik merge git antara cabang dua agent sebagai pihak ketiga yang netral, menghasilkan satu hasil gabungan untuk repo.
antigravity-cli
260kMemandu Anda memasang, memperbarui, dan memecahkan masalah alat baris perintah Antigravity, termasuk plugin, login, dan sandbox-nya.
blackbox
260kMemungkinkan agent Anda menyerahkan tugas pemrograman ke alat baris perintah Blackbox AI, yang menjalankan beberapa model AI dan memilih hasil terbaik.
dynamic-workflow
260kMengajari agent Anda menjalankan pekerjaan sejenis dalam jumlah besar sebagai skrip tersimpan, sehingga hanya hasil terverifikasi yang kembali ke percakapan utama.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.