Communityコーディング&開発github.com

alexaiarchitect/agentcore-skills

Amazon Bedrock AgentCoreの月間コストを使用プロファイルから明細ごとに計算し、予算と使用量アラームを設定します。

agentcore-skills とは?

このスキルは、Amazon Bedrock AgentCoreの月間料金を見積もるためのツールです。ユーザーが入力した使用プロファイル(1日あたりのリクエスト数、ツール呼び出し数、Runtimeセッション時間、Memoryイベント数など)に基づき、AgentCoreの公開レートカードに沿って明細ごとに料金を計算します。Gateway呼び出し、検索・ツールインデックス、Identityトークンリクエスト(Runtime/Gateway経由は無料)、Runtime vCPU時間、Memory短期イベント(2026年10月5日までは1,000イベントあたり、以降はGBあたり)、長期レコードと取得、評価トークンといった各ディメンションを個別に価格設定し、モデルトークンはユーザー自身のレートを適用します。また、Lambda、API Gateway、CloudWatch、X-Ray、DynamoDBなどAgentCoreに含まれないサービスを明示的にリストアップし、見積もり合計が実際の請求額と混同されないようにします。さらに、ドライラン後にAgentCoreにフィルタリングされたAWS BudgetとCloudWatchアラーム(Gateway呼び出し用)をTerraformとして生成し、結果は「CST0xx」バンドのコードで報告します。ユーザーが「AgentCoreのコストは?」「ゲートウェイの請求を見積もって」「無料利用枠はある?」「メモリ価格変更は?」などと尋ねたときに使用します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alexaiarchitect/agentcore-skills/tree/HEAD/skills/agentcore-cost

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

AgentCoreの費用はいくらかかるのか?

AgentCoreは各サービスを独自のディメンションで課金し、ゲートウェイ経由のLambdaが最もよく使うサービス(Lambda、API Gateway、CloudWatch、X-Ray)はAgentCoreの対象外です。そのため、誠実な見積もりは、AgentCoreのレートカードがカバーする範囲を正確に価格設定し、その計算式を表示し、除外されるものをリストアップします。

${CLAUDE_SKILL_DIR} はスキルランタイムによってこのスキル自身のディレクトリに設定されます。以下のすべてのコマンドでそのまま使用してください。兄弟スキルのスクリプトは ${CLAUDE_SKILL_DIR}/../<skill>/scripts/ にあります。

フロー

  1. プロファイルを作成する ユーザーと一緒に。例から始めて、コストに影響する数値(1日あたりのリクエスト数、リクエストあたりのツール呼び出し数、Runtimeセッションとその長さ、Memoryイベントとレコード)を尋ねます。フィールド:usage-profile.md。

    cp ${CLAUDE_SKILL_DIR}/assets/profile.example.json ./agentcore-profile.json
    

    プロファイルの書き込みはファイル書き込みです。事前に確認してください。

  2. 見積もり

    python3 ${CLAUDE_SKILL_DIR}/scripts/cost_estimate.py agentcore-profile.json
    

    --as-of 2026-10-06 で新しいMemoryレートカードを適用します。--json で明細を出力します。

  3. レポート 合計を「AgentCoreラインのみ」、サービスごとの内訳、最大のラインとその計算式、および価格設定対象外リストとして報告します。料金の情報源と確認日を引用し、すべての数値はリスト価格ベースの見積もりです。

  4. オプション: 予算とアラームモジュール(無料で生成可能)、最大ラインに対するより安価な設計(例:セマンティック検索なし、Memory戦略の削減)、なし。AskUserQuestion で確認してから:

    python3 ${CLAUDE_SKILL_DIR}/scripts/gen_budget.py <project> --monthly-usd 20 --email [email protected] --profile agentcore-profile.json --dry-run
    
  5. 検証 プロジェクトに review.py を実行して確認します。

CST0xx バンド

ID重大度トリガー
CST001warnプロファイルのリージョンでGatewayが利用できない
CST002info価格設定対象外のもの(常にリスト)
CST003infoMemoryが2026年10月5日までの1イベントあたりのカードで価格設定されている
CST004warnレートカードが --as-of より90日以上古い
CST005infoページに1つのレートカードのみ公開されており、リージョン別の価格はない
CST010infoプロジェクトにすでに予算が存在する

判断ルール

  • 合計を「請求額」と呼んではいけません。 これはリスト価格でのAgentCoreラインです。
  • モデルトークンはユーザーの数値です。 Bedrockのモデル価格はモデルとリージョンによって異なります。プロファイルで提供されるか、省略されます。
  • RuntimeまたはGateway経由のIdentityは無料です。 それ以外では1,000リクエストあたり0.010米ドルです。
  • アラームは予算よりも暴走対策に優れています。 予算は数時間遅れますが、呼び出しアラームは1時間以内に発動します。

リファレンス

質問ファイル
すべての価格ディメンション(レートと日付を含む)pricing-dimensions.md
プロファイルの形式(フィールドごと)usage-profile.md
予算とアラームモジュールbudget-alarms.md

スクリプト

コマンド機能終了コード
scripts/cost_estimate.py <profile.json> [--as-of DATE] [--json]明細ごとの見積もり0 見積もり成功、2 不正なプロファイル
scripts/gen_budget.py <project> --monthly-usd N [--email E] [--profile P] [--dry-run] [--force] [--json]予算 + 呼び出しアラームモジュール0 計画/書き込み成功、1 何もなし、2 不正な引数

完了チェックリスト

  • プロファイルの数値はユーザーから取得し、確認後にのみファイルを書き込みました。
  • 見積もりはAgentCoreラインのみとして報告し、価格設定対象外のリストも含めました。
  • 料金の情報源と確認日を引用し、Memoryのレートカード日付を適用しました。
  • 予算モジュールは書き込み計画として表示し、書き込み前に確認しました。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

alexaiarchitect/agentcore-skills

>- Put Amazon Bedrock AgentCore infrastructure behind a plan-only CI gate. Generates a GitHub Actions workflow that, on pull requests touching the infrastructure, runs the static AgentCore review (`ACR0xx`), `terraform fmt -check`, `init`, `validate`, a saved `plan` (Terraform or Terragrunt) with a read-only OIDC role, `show -json`, and the plan policy (`CI0xx`: no delete or replace of memories, gateways, credential providers, workload identities, user pools or tables without an explicit per-address allowance; no `*` on `*`; no gateway with `authorizer_type = NONE`; pinned MCP revisions), then uploads the plan JSON. Nothing in it applies. The plugin's stdlib-only library is vendored into `ci/agentcore/` so the job needs nothing from the plugin, and action pins are reused from the repository's own SHA-pinned workflows. `policy_check.py` also runs locally on any saved plan. Use when asked to "add CI for the AgentCore Terraform", "gate the plan", "block destructive changes", "policy check the plan", "plan on ...

alexaiarchitect/agentcore-skills

>- Scaffold Amazon Bedrock AgentCore resources as infrastructure as code: a Runtime (ECR repository, service role, `aws_bedrockagentcore_agent_runtime` with a JWT authorizer and lifecycle settings), a Gateway (role, JWT authorizer, pinned MCP revisions, one target), Identity (Cognito M2M client plus an OAuth2 credential provider with write-only secrets) or Memory (memory, strategies, customer-managed key). Terraform modules are the default and the recommendation; a TypeScript CDK stack with the `aws-bedrockagentcore` L1 constructs and the AgentCore CLI (`@aws/agentcore`) commands are offered for teams already on them. Every write is shown as a plan first (`--dry-run`), existing files are never overwritten without `--force`, and nothing is planned or applied. Use when asked to "create an AgentCore runtime", "scaffold a gateway", "add AgentCore memory", "write the Terraform for AgentCore", "start a new AgentCore stack", or "give me the CDK for this". Don't use for a gateway in front of an existing Lambda, HT...

alexaiarchitect/agentcore-skills

>- Plan the deployment of Amazon Bedrock AgentCore infrastructure and its rollback, and hand the user the exact commands — never running them. Finds the root module (or Terragrunt stack) that actually reaches the AgentCore resources, orders what comes up (identity and roles, then gateway, runtime and memory, then targets and strategies, then log delivery), flags where a first apply trips (IAM propagation, creation-only semantic search, Transaction Search before TRACES delivery, an old provider lock, no remote backend), checks published quotas (targets per gateway, tools per target), and emits init / validate / plan-to-file / show -json / policy check / apply of that saved plan, the post-apply checks, and the rollback for each kind of change. Findings are the `DPL0xx` band; the cost tier is `aws` because the commands create billable resources. Use when asked to "deploy the gateway", "apply this", "what order do I apply in", "how do I roll back", "will this hit a quota", "give me the terraform commands". Don...

alexaiarchitect/agentcore-skills

>- Inventory a project for Amazon Bedrock AgentCore work and report before advising. Finds existing AgentCore resources and which tool owns them (Terraform `aws_bedrockagentcore_*`/`awscc_*`, CDK constructs, the AgentCore CLI's `agentcore.json`, the deprecated starter toolkit's `.bedrock_agentcore.yaml`, boto3 `bedrock-agentcore` clients, the AgentCore Python SDK and `@requires_access_token`), the agent framework (Strands, LangGraph, LangChain, Claude Agent SDK, CrewAI, OpenAI Agents, ADK, raw), MCP servers and the API Gateway routes and Lambdas behind `/mcp`, Cognito pools, clients and JWT authorizers, the AWS region and per-service availability there, the hashicorp/aws constraint and lock, Terragrunt, and Lambda tracing. Read-only; findings are the `DSC0xx` band. Use when asked "what do I have", "is this on AgentCore", "inventory this repo", "which region are we in", "is AgentCore available in eu-central-1", "what framework is this agent", or before any other AgentCore skill on an unfamiliar project. Don...

関連スキル