Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

claude-platform-on-aws

Skill by aws-samples

Converts Anthropic direct API (1P) code samples to Claude Platform on AWS (CPOA). It covers endpoint and auth changes, workspace headers and self-hosted worker updates. It is aimed at developers migrating from api.anthropic.com to AWS.

  • Score 78
  • 445 stars
  • MIT-0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install claude-platform-on-aws

Built from the published package, never by AI.

git clone --depth 1 https://github.com/aws-samples/anthropic-on-aws /tmp/anthropic-on-aws && mkdir -p ~/.claude/skills && cp -r /tmp/anthropic-on-aws/.claude/skills/claude-platform-on-aws ~/.claude/skills/claude-platform-on-aws

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install claude-platform-on-aws in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an assistant through migrating Anthropic 1P (direct API) code to Claude Platform on AWS (CPOA). It explains the differences in base URL, authentication, required headers, SDK client names and billing. It also notes that inference still runs on Anthropic infrastructure and that CPOA changes only the auth and billing layer.

The skill walks through choosing IAM SigV4 or a CPOA API key, installing the platform SDK, and setting AWS_REGION and ANTHROPIC_AWS_WORKSPACE_ID. It lists the IAM managed policies needed for inference and for self-hosted workers, along with common pitfalls. It is intended for developers who need to move existing Anthropic API code to AWS.

Written from the project's SKILL.md and checked against it.

What it can do

  • Endpoint and auth mappingShows how the base URL, auth method and required headers change from 1P to CPOA.
  • Client initialization conversionConverts client setup for Python, Node.js and curl using the code patterns reference.
  • Auth mode selectionHelps choose between IAM SigV4 and a CPOA API key.
  • Self-hosted worker updatesExplains how sandbox workers authenticate on CPOA instead of using Console environment keys.
  • IAM policy guidanceIdentifies which managed policy is needed for inference and which for self-hosted workers.
  • Pitfall checksCovers missing workspace headers, disabled federation and missing region settings.
  • Security comparisonSummarizes CPOA benefits such as STS credential rotation, condition keys and CloudTrail logging.

What you need

  • An AWS account that has completed Claude Platform on AWS sign-up
  • Python or TypeScript with the anthropic[aws] or @anthropic-ai/aws-sdk package
  • AWS region set through AWS_REGION
  • Outbound web identity federation enabled on the AWS account

Try asking

  • Convert this api.anthropic.com Python script to use Claude Platform on AWS
  • Switch my Node.js client from x-api-key auth to IAM SigV4 for CPOA
  • Why does my self-hosted worker get 403 on /v1/messages after moving to CPOA?

Good to know

  • CPOA changes only the auth and billing layer; inference still runs on Anthropic infrastructure.
  • Short-term API key tokens default to 12 hours at most.
  • The platform client raises an error if no region is set.
  • Claude Console environment keys do not work on the CPOA endpoint.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/claude-platform-on-aws/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • references/code-patterns.md9 KB

Alternatives to claude-platform-on-aws

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

claude-platform-on-aws: common questions

Does CPOA change where Claude models run?

No. The source says inference is still on Anthropic infrastructure and CPOA only changes the auth and billing layer.

Why does a self-hosted worker get a 403 on /v1/messages?

The AnthropicSelfHostedEnvironmentAccess policy does not grant CreateInference. The source says to attach AnthropicInferenceAccess as well if the worker makes inference calls.

How is billing handled on CPOA?

According to the source's comparison table, CPOA billing goes through AWS Marketplace instead of Anthropic billing.

How do I install claude-platform-on-aws?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is claude-platform-on-aws free?

The code is published under the MIT-0 licence. The service it connects to may have its own pricing.

Is claude-platform-on-aws safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to claude-platform-on-aws?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

claude-platform-on-aws Install

Add to stack

Loading.