• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialproductivity

credits-quotas-plans

プラグイン
clay
ソース
GitHub で見る ↗
説明

次のような場合に使用: ユーザーがクレジット(利用料金)、クォータ(利用上限)、プラン制限について尋ねたとき、または検証済みの使用状況が大幅な支出警告が必要であったり上限に達していることが判明したとき 対象範囲: - データクレジット(処理量の利用可能額)残高 - アクション実行(処理実行)可能回数の残高 - 検索結果の上限 - 期間ごとの利用上限 - 作業開始前のアップグレード方法 作業が途中で完了しなくなるような状況が想定される場合に、事前にこれらの情報を提供します。

原文を表示

Use when the user asks about credits, quotas, or plan limits, or verified usage requires a significant-spend warning or reveals a limit. Covers data-credit balance, action-execution balance, search result caps, period quotas, and upgrade paths before starting work that would only partially complete.

ユースケース
  • クレジットや利用上限について尋ねられた
  • 検証済みの使用状況で支出警告が必要なとき
  • 利用上限に達していることが判明した
  • 作業途中で完了しなくなる状況が想定される
本文(日本語訳)

クレジット、利用枠、プラン

workflows-discover-actions/cost-and-budget.md の共有コスト方針に従ってください。有料作業の前に社内で残高を確認してください。ツールが請求データを返したからといって、残高を公開したり購入を勧めたりしないでください。

確認された残高不足の場合は、部分実行を開始する前に停止して説明してください。未確定のコストでは残高不足を判定したり、コストのみの承認を求めたりしないでください。

優先順位の判定

残高を確認(下記参照)した後、不足している内容に応じてルートを選択してください。

  • balance(データクレジット)が不足している場合 — CLI でのトップアップまたは請求画面(addCredits)を使用。自動トップアップを推奨します。

  • actionExecutionBalance(処理実行クレジット)が不足している場合(このフィールドが表示されている場合のみ) — プラン選択画面のみ。処理実行クレジットには自動チャージ機能がありません。once、auto、addCredits は提供しないでください。

  • 検索の利用枠超過または期間上限に達した場合 — プラン選択画面を使用するか、エラーメッセージに記載されたリセット日時まで待機してください。結果上限に関する削減・再試行ルールは search スキルに任せ、独自のトップアップ方法を提案しないでください。

プラン選択画面の URL(アップグレードまたはプラン変更):

clay whoami | jq -r '.workspace.id'

https://app.clay.com/workspaces/<workspaceId>/billing/plan-selector

残高を確認する

clay credits balance | jq '{ balance, actionExecutionBalance }'

balance はデータクレジット残高、actionExecutionBalance は処理実行クレジット残高です。後者はアクション実行課金プランにのみ表示されます。フィールドが null または存在しない場合(従来の課金体系)は無視してください。一方の残高が豊富でも、もう一方で枯渇している場合があります。

定期実行の場合、clay routines get <id> に項目ごとのコスト見積もりが含まれます。見積もりが実行設定に適用でき、処理数が判明している場合、各コストを項目数で乗じて、対応する残高と比較してください。見積もりの制限と「部分実行を避ける」ルールについては routines スキルを参照してください。

フィールドの詳細は clay credits balance --help で確認できます。

CLI でのトップアップ

データクレジットの balance にのみ適用されます。actionExecutionBalance には使用できません。

自動トップアップを推奨します。 まず自動トップアップを有効にして(または有効を確認して)、ワークスペースが別の割り込みなしに資金を保つようにしてください。ユーザーが自動トップアップを拒否した場合、または自動トップアップが利用できない場合にのみ、1 回限りの購入を提案してください。

正確な JSON 出力形式、フラグ、例については clay credits top-up <subcommand> --help を参照してください。

clay credits top-up auto get
clay credits top-up auto enable --threshold <n> --credits <n> [--daily-spend-limit-cents <n|none>]
clay credits top-up auto disable
clay credits top-up once --credits <n> [--open]   # ユーザーが自動を拒否した場合、または自動が利用できない場合のみ

自動トップアップの有効化時の制限:

  • --credits: 最低 250 クレジット以上。上限は現在の $1000 に相当するクレジット数です。
  • --daily-spend-limit-cents: オプションの 24 時間ローリング上限。3000~500000、または none で削除。1 回のトップアップ価格をカバーする必要があります。
  • --threshold: トップアップをトリガーするクレジット残高。ワークスペースの月間クレジット割り当ての最低 15% 以上である必要があります(下限を下回る場合、サーバーエラーに正確な最小値が含まれます)。

自動トップアップ有効化時に現在の balance が既に --threshold 以下の場合、トップアップは直ちに実行され、次の課金を待ちません。自動有効化は、既に下限に達している場合、すぐにクレジットを購入できることをユーザーに伝えてください。

自動トップアップの取得・無効化は有効化と同じポリシー形式を返します。

1 回限り(代替手段): --credits は最低 250 以上である必要があります。チェックアウト URL を返します。--open はブラウザで起動します。クレジットはチェックアウト完了後にのみ反映されるため、コマンド終了を残高補充と見なさないでください。

注意すべきエラー(credits balance / credits top-up から発生):

  • auth_forbidden(終了コード 3)— 請求管理アクセスが必要です。
  • not_found(終了コード 6)— このワークスペースでは自動トップアップが利用できない、または現在有効でない自動トップアップを無効化しようとしています。once または請求画面にフォールバックしてください。

ユーザーの明示的な確認なしでトップアップを実行しないでください。 credits top-up コマンドはプラグイン内で自動承認から除外されています。オプションを提示し、auto enable、once、または --open チェックアウトの前にユーザーの確認を待ってください。

請求画面

CLI の自動トップアップを優先します。ユーザーがブラウザを希望する場合、または自動を拒否・利用不可の後の代替手段として請求画面を使用してください。

clay whoami | jq -r '.workspace.id'

https://app.clay.com/workspaces/<workspaceId>/home?addCredits=true

addCredits=true クエリパラメータでクレジット購入モーダルが直接開きます。

検索と結果上限の利用枠

検索結果上限や期間ごとの利用枠をチャージする CLI はありません。自動トップアップはデータクレジット不足のみを補充し、1 回あたりの検索または期間ごとの結果上限を引き上げません。

quota_exceeded(終了コード 1、HTTP 402)はプランの結果上限またはクレジット・利用量制限です。一時的なエラーではないため再試行(指数バックオフ)しないでください。メッセージが明らかにトップアップで対応できるデータクレジット不足でない限り、プラン選択画面を優先してください。既に要求した結果対上限、または名前付きの期間リセットに関するエラーの場合は、ページネーション(複数ページへの分割取得)を停止してください。削減・再試行ルールについては searches スキルの利用枠セクションに従い、結果上限に対する独自のトップアップ方法を提案しないでください。

プラン選択画面:

clay whoami | jq -r '.workspace.id'

https://app.clay.com/workspaces/<workspaceId>/billing/plan-selector

原文(English)を表示

Credits, quotas, and plans

Follow the shared cost policy in workflows-discover-actions/cost-and-budget.md. Check headroom internally before paid work; do not announce balances or suggest purchases just because a tool returned billing data. Stop and explain a verified shortfall rather than knowingly starting a partial run. An unknown cost does not establish a shortfall or require a cost-only approval.

Triage

After checking what remains (below), route by what is short:

  • balance short — CLI top-up or billing UI (addCredits). Prefer auto top-up.
  • actionExecutionBalance short (when the field is present) — plan selector only. There is no top-up for action executions. Do not offer once, auto, or addCredits.
  • Search quota_exceeded or period cap exhausted — plan selector and/or wait for the named reset in the error message. Defer shrink/retry rules to the search skill; do not invent a top-up path for result caps.

Plan selector URL (upgrade or change plan):

clay whoami | jq -r '.workspace.id'

https://app.clay.com/workspaces/<workspaceId>/billing/plan-selector

Check what remains

clay credits balance | jq '{ balance, actionExecutionBalance }'

balance is the data-credit pool. actionExecutionBalance is optional — present only on action-execution pricing plans; omit or ignore it when the field is null or absent (legacy billing). Plenty of one does not cover the other.

For routine runs, clay routines get <id> includes per-item cost estimates. When the estimate applies to the configured execution and its counts are known, multiply each cost by the number of items and compare against the matching balance. See the routines skill for estimate limitations and the stop-before-partial-run rule.

Read clay credits balance --help for field semantics.

CLI top-up

Applies to data-credit balance only — not actionExecutionBalance.

Prefer auto top-up. Lead with enabling (or confirming) auto so the workspace stays funded without another interrupt. Only offer a one-time purchase if the user pushes back against auto, or if auto is unavailable.

Read clay credits top-up <subcommand> --help for the exact JSON output shape, flags, and examples; that help is the contract.

clay credits top-up auto get
clay credits top-up auto enable --threshold <n> --credits <n> [--daily-spend-limit-cents <n|none>]
clay credits top-up auto disable
clay credits top-up once --credits <n> [--open]   # only if user declines auto, or auto unavailable

Auto enable limits:

  • --credits: at least 250 data credits; the plan-specific maximum is the number of credits currently equivalent to $1000
  • --daily-spend-limit-cents: optional rolling 24-hour cap, 3000–500000, or none to clear; must cover the current price of one top-up
  • --threshold: credit balance that triggers a top-up; must be at least 15% of the workspace subscription-cycle credit allowance (the server error includes the exact minimum when too low)

If the current balance is already at or below --threshold when auto is enabled, a top-up runs immediately — it does not wait for the next charge. Tell the user that enabling auto can purchase credits right away when they are already under the threshold.

Auto get/disable return the same policy shape as enable.

Once (fallback): --credits must be at least 250. Returns a checkout url; --open launches it in the browser. Credits land only after checkout completes — do not treat command exit as a topped-up balance.

Errors worth knowing (from credits balance / credits top-up):

  • auth_forbidden (exit 3) — billing-management access required
  • not_found (exit 6) — auto top-up unavailable for this workspace, or disable when not currently enabled; fall back to once or the billing UI

Do not run top-up without explicit user confirmation. credits top-up commands are gated from auto-approval in the plugin — present options and wait for the user before auto enable, once, or checkout --open.

Billing UI

Prefer CLI auto first. Use the billing UI when the user wants the browser, or as the one-time fallback after they decline auto / auto is unavailable:

clay whoami | jq -r '.workspace.id'

https://app.clay.com/workspaces/<workspaceId>/home?addCredits=true

The addCredits=true query opens the buy-credits modal directly.

Search and result-cap quotas

There is no CLI to top up search result caps or period quotas. Auto top-up only replenishes credit shortfalls — it does not raise per-search or per-period result limits.

quota_exceeded (exit 1, HTTP 402) is a plan result cap or credit/usage limit — not a transient failure (do not retry with backoff). Prefer the plan selector over top-up unless the message is clearly a data-credit shortfall that top-up can fix. When the error is about results already requested vs a cap, or a named period reset, stop paging; for shrink/retry rules follow the searches skill's Quotas section — do not invent a top-up path for result caps.

Plan selector:

clay whoami | jq -r '.workspace.id'

https://app.clay.com/workspaces/<workspaceId>/billing/plan-selector

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。