본문으로 건너뛰기
Skillpedia
에이전트260k · #532

stripe-link-cli

하는 일

이 스킬은 AI를 Stripe Link에 연결해 사용자를 대신해 구매를 완료하게 합니다. 모든 결제를 사용자가 승인하는 방식으로 AI에게 물건을 사게 하려는 사람을 위한 것입니다.

사용하는 경우

  • ✓AI에게 무언가를 사 달라고 하거나 결제를 대신 완료하도록 할 때.
  • ✓Stripe를 언급하는 HTTP 402 응답으로 결제를 요구받을 때.
  • ✓앞으로의 구매를 위해 AI가 Stripe Link 지갑을 연결하기를 원할 때.

스킬 링크

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/payments/stripe-link-cli/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/payments/stripe-link-cli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Stripe Link 카드로 이 물건을 대신 사 주시고, 제 승인을 기다려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 Stripe Link 명령줄 도구를 실행합니다. 모든 결제는 Link 모바일이나 웹 앱에서 승인되어야 하므로, AI는 스스로 지출을 승인할 수 없습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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-cli auth
  • 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

자주 묻는 질문

AI가 제 승인 없이 돈을 쓸 수 있나요?

아니요. 스킬에 따르면 모든 지출은 Link 앱에서 승인되어야 하며, AI가 스스로 승인할 수 없습니다.

시작하기 전에 무엇이 필요한가요?

Node.js 20 이상, 미국 기반 Stripe Link 계정, 그리고 결제를 승인할 Link 앱입니다.

Windows에서 작동하나요?

스킬은 상위 명령줄 도구가 Windows를 지원하지 않으므로 Linux와 macOS로 제한됩니다.

상세 정보

작성자의 원본 설명

Agent payments via Stripe Link — cards, SPT, approvals.

repo: NousResearch/hermes-agent

인기도

GitHub 스타
260k
순위
#532
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬