惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Cisco Blogs
Cyberwarzone
Cyberwarzone
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Martin Fowler
Martin Fowler
T
Tor Project blog
N
Netflix TechBlog - Medium
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
V
Visual Studio Blog
GbyAI
GbyAI
PCI Perspectives
PCI Perspectives
D
DataBreaches.Net
Jina AI
Jina AI
H
Heimdal Security Blog
云风的 BLOG
云风的 BLOG
P
Privacy International News Feed
A
About on SuperTechFans
J
Java Code Geeks
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
News | PayPal Newsroom
有赞技术团队
有赞技术团队
MyScale Blog
MyScale Blog
博客园 - 司徒正美
C
Check Point Blog
T
Threat Research - Cisco Blogs
Attack and Defense Labs
Attack and Defense Labs
宝玉的分享
宝玉的分享
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Vercel News
Vercel News
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
Cisco Talos Blog
Cisco Talos Blog
W
WeLiveSecurity
Hacker News: Ask HN
Hacker News: Ask HN
Recent Commits to openclaw:main
Recent Commits to openclaw:main
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
博客园 - Franky
Security Archives - TechRepublic
Security Archives - TechRepublic

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Running Claude Code and Claude Desktop on Amazon Bedrock
Haowen Huang · 2026-05-04 · via DEV Community

Abstract: This article walks through configuring both Claude Code (terminal CLI) and Claude Desktop (Cowork) to use Amazon Bedrock as the inference backend — no Anthropic API key or subscription required. Claude Code needs two environment variables in ~/.claude/settings.json. Claude Desktop needs a few fields in the built-in Setup UI. Both share the same AWS credentials and Bedrock model access. The entire setup, including troubleshooting, was done through AI-assisted development with Kiro.

In a previous post, we covered how to run the Claude Agent SDK (Python) on Amazon Bedrock with just two environment variables. This post continues the series, covering the other two main ways developers interact with Claude daily: the terminal CLI and the desktop app.

If you're already in the AWS ecosystem, routing Claude through Amazon Bedrock keeps your data in your own account, bills through your existing AWS agreement, and eliminates the need for a separate Anthropic subscription. This post covers two scenarios:

  • Scenario A: Claude Code CLI — the terminal-based coding tool
  • Scenario B: Claude Desktop (Cowork 3P) — the GUI desktop app

Both use the same AWS IAM user and Bedrock model access.

Prerequisites (Shared)

Before either scenario, make sure you have:

  1. AWS CLI installed and credentials configured
aws --version
aws sts get-caller-identity

Enter fullscreen mode Exit fullscreen mode

  1. Bedrock model access enabled — Serverless foundation models on Amazon Bedrock are now automatically enabled when first invoked. However, for Anthropic models, first-time users may need to submit use case details before access is granted. Simply select a model from the Model catalog and try invoking it — you'll be prompted if any additional steps are needed.

  2. IAM permissions — Your IAM user or role needs:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "bedrock:InvokeModel",
        "bedrock:InvokeModelWithResponseStream",
        "bedrock:ListInferenceProfiles",
        "bedrock:GetInferenceProfile"
      ],
      "Resource": [
        "arn:aws:bedrock:*:*:inference-profile/*",
        "arn:aws:bedrock:*:*:application-inference-profile/*",
        "arn:aws:bedrock:*:*:foundation-model/*"
      ]
    }
  ]
}

Enter fullscreen mode Exit fullscreen mode

  1. Know your inference profile IDs — Bedrock requires cross-region inference profile IDs (with a region prefix like us.), not bare model IDs. The ones used in this post:
Model Inference Profile ID
Claude Opus 4.7 us.anthropic.claude-opus-4-7
Claude Opus 4.6 us.anthropic.claude-opus-4-6-v1

Scenario A: Claude Code CLI

Claude Code is Anthropic's terminal-based AI coding tool. Install it via npm:

npm install -g @anthropic-ai/claude-code

Enter fullscreen mode Exit fullscreen mode

Step 1: Edit settings.json

The cleanest approach is writing the Bedrock configuration into Claude Code's settings file, so you don't need to export environment variables every time.

Edit ~/.claude/settings.json:

{
  "model": "us.anthropic.claude-opus-4-6-v1",
  "env": {
    "CLAUDE_CODE_USE_BEDROCK": "1",
    "AWS_REGION": "us-east-1"
  }
}

Enter fullscreen mode Exit fullscreen mode

Two key fields:

  • CLAUDE_CODE_USE_BEDROCK: Tells Claude Code to use Bedrock instead of the Anthropic API.
  • AWS_REGION: Required. Claude Code does not read this from ~/.aws/config.

The model field uses the Bedrock inference profile ID. Without it, Claude Code picks its own default.

Step 2: Run and Verify

claude

Enter fullscreen mode Exit fullscreen mode

Inside Claude Code, run /status. You should see:

API provider: Amazon Bedrock
AWS region: us-east-1
Model: us.anthropic.claude-opus-4-6-v1

Enter fullscreen mode Exit fullscreen mode

That's it. Claude Code picks up your AWS credentials through the standard SDK credential chain (~/.aws/credentials, environment variables, IAM role, SSO profile).

Switching Models

There are two ways to switch models:

At runtime — Inside Claude Code, use the /model command:

/model us.anthropic.claude-opus-4-7

Enter fullscreen mode Exit fullscreen mode

This switches immediately without restarting. Use /model us.anthropic.claude-opus-4-6-v1 to switch back.

Permanently — Change the model field in ~/.claude/settings.json:

{
  "model": "us.anthropic.claude-opus-4-7",
  "env": {
    "CLAUDE_CODE_USE_BEDROCK": "1",
    "AWS_REGION": "us-east-1"
  }
}

Enter fullscreen mode Exit fullscreen mode

Restart Claude Code (/exit, then claude) for the change to take effect.

Optional: Install Skills

Claude Code supports Skills — packaged instructions that extend Claude's capabilities. Anthropic publishes an official set at github.com/anthropics/skills.

To install them, run inside Claude Code:

/plugin marketplace add anthropics/skills
/plugin install document-skills@anthropic-agent-skills
/plugin install example-skills@anthropic-agent-skills
/reload-plugins

Enter fullscreen mode Exit fullscreen mode

This gives you skills like mcp-builder, webapp-testing, claude-api, document generation (docx/pdf/pptx/xlsx), and more.

After installation, your ~/.claude/settings.json will be updated automatically with the new plugin entries:

{
  "model": "us.anthropic.claude-opus-4-6-v1",
  "env": {
    "CLAUDE_CODE_USE_BEDROCK": "1",
    "AWS_REGION": "us-east-1"
  },
  "enabledPlugins": {
    "document-skills@anthropic-agent-skills": true,
    "example-skills@anthropic-agent-skills": true
  },
  "extraKnownMarketplaces": {
    "anthropic-agent-skills": {
      "source": {
        "source": "github",
        "repo": "anthropics/skills"
      }
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

Compared to the base configuration in Step 1, two new sections are added:

  • enabledPlugins: Tracks which Skills are active.
  • extraKnownMarketplaces: Records the GitHub source for the Skills marketplace.

Example: Turning a Blog Post into a Slide Deck

Once Skills are installed, you can use them directly in Claude Code. For example, I previously wrote a blog post "Deploying OpenClaw on Amazon EC2 - A Developer's Perspective", covering one-click CloudFormation deployment, VPC Endpoints security architecture, and multi-region inference profile configuration. It's a detailed post. If I needed to present this topic at a developer conference the next day, building slides manually would take too long. With the pptx skill, it takes one command:

❯ /example-skills:pptx
⏺ PPTX skill loaded. What presentation would you like me to create?

❯ Turn the following blog post into a slide deck:
  https://builder.aws.com/content/3CQFzc91nM9sGkfHRbpjo4eXojf/deploying-openclaw-on-amazon-ec2-a-developers-perspective

Enter fullscreen mode Exit fullscreen mode

Claude Code reads the blog, extracts the architecture descriptions, deployment steps, and key configurations, organizes them into well-structured slides, and generates a .pptx file — all within the terminal, powered by Amazon Bedrock. From blog post to presentation-ready slides in a single command.

Scenario B: Claude Desktop (Cowork 3P)

Claude Desktop can run in "third-party platform" mode, using Bedrock for inference instead of Anthropic's own servers. This is called Cowork 3P.

Step 1: Open the Setup UI

  1. Open Claude Desktop (you don't need to log in)
  2. Go to Help → Troubleshooting → Enable Developer mode
  3. Go to Developer → Configure third-party inference

This opens the built-in configuration UI.

Step 2: Configure Bedrock

Fill in the following fields:

Field Value
Inference provider Bedrock (select the radio button)
AWS region us-east-1
AWS bearer token Leave empty
Bedrock base URL Leave empty
AWS profile name default
AWS config directory Leave empty (uses ~/.aws by default)

Under IDENTITY & MODELS:

Field Value
Model list us.anthropic.claude-opus-4-6-v1

The model list uses Bedrock inference profile IDs. You can add multiple models — click + Add for each one. The first entry becomes the default.

Step 3: Apply and Relaunch

  1. Click Apply locally at the bottom of the Setup UI
  2. Fully quit Claude Desktop (Cmd+Q on macOS)
  3. Reopen Claude Desktop

After relaunch, Claude Desktop shows the Bedrock login screen — no Anthropic account needed, just your AWS credentials:

Step 4: Verify

After relaunch, you should see:

  • Bottom-left corner shows Cowork 3P | Bedrock
  • The model picker shows us.anthropic.claude-opus-4-6-v1
  • Claude responds and identifies itself as running on the Bedrock model

Send a test message like "What version of the model are you currently using?" — Claude should confirm it's powered by claude-opus-4-6-v1 in Cowork mode.

Adding More Models Later

To add models (e.g., Opus 4.7) after initial setup:

  1. In the macOS menu bar, go to Help → Troubleshooting → Enable Developer mode
  2. A Developer menu appears in the menu bar — click Developer → Configure third-party inference
  3. Under Model list, click + Add and enter us.anthropic.claude-opus-4-7
  4. Click Apply locally, then Cmd+Q and reopen Claude Desktop

The model picker at the bottom of the chat window will now show all configured models.

How It Works Under the Hood

When you set AWS profile name to default, Claude Desktop reads your ~/.aws/credentials and ~/.aws/config files to authenticate with Bedrock. The three authentication methods are:

Method When to use
AWS bearer token If you have a Bedrock API key
AWS profile name If you have standard AWS credentials (this is what we used)
Credential helper For enterprise SSO setups with rotating credentials

You only need one of the three. The Setup UI validates the configuration and writes it to ~/Library/Application Support/Claude-3p/claude_desktop_config.json on macOS.

Important: Use the Setup UI

During this setup, I first tried manually editing the claude_desktop_config.json file. This resulted in a persistent "Your provider setup needs a fix" error. The Setup UI handles the correct format and field validation automatically — use it instead of hand-editing the JSON.

Troubleshooting

"on-demand throughput isn't supported" — You're using a bare model ID instead of an inference profile ID. Use the us. prefixed IDs (e.g., us.anthropic.claude-opus-4-6-v1).

"Your provider setup needs a fix" in Claude Desktop — Don't hand-edit the config JSON. Use the Setup UI (Developer → Configure third-party inference) and click Apply locally.

Claude Code /status doesn't show Bedrock — Make sure CLAUDE_CODE_USE_BEDROCK is set to "1" in ~/.claude/settings.json under the env key. Restart Claude Code after changing settings.

AWS credentials not found — Claude Code uses the standard AWS SDK credential chain. Verify with aws sts get-caller-identity. For Claude Desktop, make sure the AWS profile name matches a profile in ~/.aws/credentials.

Summary

Claude Code CLI Claude Desktop (Cowork 3P)
Config location ~/.claude/settings.json Setup UI → Apply locally
Key setting CLAUDE_CODE_USE_BEDROCK=1 inferenceProvider: bedrock
Auth method AWS SDK credential chain AWS profile name
Model format Inference profile ID Inference profile ID
Verify /status in Claude Code Bottom-left shows "Cowork 3P | Bedrock"

Both scenarios use the same AWS credentials and Bedrock model access. Once you have one working, the other is straightforward.

A Note on the Setup Process

This entire configuration — both scenarios, including troubleshooting the Claude Desktop JSON format issue — was completed through conversation with Kiro, an AI-powered IDE. Kiro checked the AWS environment, verified IAM permissions, wrote the settings files, researched the official documentation, and diagnosed the Setup UI requirement for Claude Desktop — all without leaving the IDE.


Tested with Claude Code 2.1.123, Claude Desktop (Cowork 3P), Claude Opus 4.6 & 4.7 on Amazon Bedrock, us-east-1