← 返回
未分类 Key 中文

Stripe Full Read Access

Access Stripe directly with a Stripe secret or restricted API key for broad read-only platform queries, especially Connect accounts, application fees, balanc...
通过 Stripe 密钥或受限 API 密钥直接访问 Stripe,执行广泛的只读平台查询,尤其是 Connect 账户、应用费用、余额...
georgelewi5
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 356
下载
💾 0
安装
1
版本
#latest

概述

Stripe Full Read Access

Use direct Stripe API access with a locally stored Stripe API key.

Requirements

  • Stripe API key stored locally, outside git
  • Prefer a platform-level key when querying Connect accounts or application fees
  • Use this skill for read-oriented Stripe analysis and reporting

Local key path used in this workspace:

  • /home/clawd/.config/stripe/api_key

Authentication

Authorization: Bearer $STRIPE_API_KEY

Example shell setup:

export STRIPE_API_KEY="$(cat /home/clawd/.config/stripe/api_key)"

Base URL

https://api.stripe.com/v1/

Quick checks

Get platform account

curl -sS https://api.stripe.com/v1/account \
  -H "Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)"

List connected accounts

curl -sS 'https://api.stripe.com/v1/accounts?limit=10' \
  -H "Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)"

Get balance

curl -sS https://api.stripe.com/v1/balance \
  -H "Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)"

Common endpoints

  • Account: /v1/account
  • Balance: /v1/balance
  • Connected accounts: /v1/accounts
  • Charges: /v1/charges
  • Customers: /v1/customers
  • Payment intents: /v1/payment_intents
  • Payouts: /v1/payouts
  • Invoices: /v1/invoices
  • Subscriptions: /v1/subscriptions
  • Balance transactions: /v1/balance_transactions
  • Application fees: /v1/application_fees
  • Transfers: /v1/transfers

Useful patterns

Count connected accounts

Use pagination until has_more is false.

python3 - <<'PY'
import json, urllib.request, urllib.parse
from pathlib import Path
key = Path('/home/clawd/.config/stripe/api_key').read_text().strip()
count = 0
starting_after = None
while True:
    params = {'limit': 100}
    if starting_after:
        params['starting_after'] = starting_after
    req = urllib.request.Request('https://api.stripe.com/v1/accounts?' + urllib.parse.urlencode(params))
    req.add_header('Authorization', f'Bearer {key}')
    with urllib.request.urlopen(req, timeout=60) as r:
        data = json.load(r)
    items = data.get('data', [])
    count += len(items)
    if not data.get('has_more') or not items:
        print(count)
        break
    starting_after = items[-1]['id']
PY

List recent application fees

curl -sS 'https://api.stripe.com/v1/application_fees?limit=10' \
  -H "Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)"

List recent payouts

curl -sS 'https://api.stripe.com/v1/payouts?limit=10' \
  -H "Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)"

List recent charges

curl -sS 'https://api.stripe.com/v1/charges?limit=10' \
  -H "Authorization: Bearer $(cat /home/clawd/.config/stripe/api_key)"

Connect notes

  • Use direct Stripe auth for platform-level Connect reporting.
  • This setup can access /v1/accounts, which confirms platform visibility.
  • For fee-revenue questions, inspect application_fees, balance_transactions, and transfers together.
  • Some money fields are integer minor units. For GBP, divide by 100.
  • Be explicit about whether figures are gross charges, application fees, net balance movement, pending, or available.

Safety

  • Never commit Stripe API keys.
  • Never write Stripe API keys into memory files.
  • Prefer read-only analysis unless the user explicitly asks for writes.
  • Be careful with endpoints that can create refunds, payouts, transfers, or account changes.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 13:35 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,948
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,223 📥 267,329
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,072 📥 804,859