erikbuild

ClaudeSwitchProvider — DevOps skill for Claude Code

DevOps community

Simple utility to allow easy switching between AWS Bedrock (or similar) and Claude Subscription.

How to install ClaudeSwitchProvider

This entry records only its repository, not the path inside it, so there is no exact command to give. Open erikbuild/ClaudeSwitchProvider and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What ClaudeSwitchProvider does

Simple utility to allow easy switching between AWS Bedrock (or similar) and Claude Subscription.

Alternatives in DevOps

  • AWS Skills Pack — AWS cloud services skills 1.6k ★
  • Proxy — route Claude Code requests through multiple upstream providers (OpenCode Go, OpenCode Zen, and AWS Bedrock) wi 957 ★
  • Cheetahclaws — CheetahClaws: A Fast and Easy-to-Use Agent Harness Infrastructure for Long-Horizon, Multi-Model, and Tool-Usin 768 ★

README

ClaudeSwitchProvider

Swap Claude Code between any of the provider backends it supports — Claude subscription, Anthropic Console, AWS Bedrock, Microsoft Foundry, Google Vertex AI — by flipping `~/.claude/settings.json` between named profiles.

Why

Claude Code picks its backend at startup from the `env` block in `~/.claude/settings.json` (flags like `CLAUDE_CODE_USE_BEDROCK`, `CLAUDE_CODE_USE_VERTEX`, default model IDs, etc.) plus whatever credentials are in your shell environment. Changing providers means editing that file. This script keeps a separate JSON profile per provider in `~/.claude/profiles/` and copies the one you want into place.

The five profiles correspond to the options in Claude Code's `/login` menu:

Profile Provider Auth source
subscription Pro / Max / Team / Enterprise OAuth via /login
console Anthropic Console (API usage billing) ANTHROPIC_API_KEY in your shell env
bedrock AWS Bedrock AWS_BEARER_TOKEN_BEDROCK or standard AWS creds
foundry Microsoft Foundry Azure auth configured in your shell env
vertex Google Vertex AI gcloud Application Default Credentials

You can add your own profiles too — any `~/.claude/profiles/settings..json` becomes `claude-switch `.

Requirements

  • bash and jq (macOS ships a compatible jq at /usr/bin/jq; on Linux: apt install jq or equivalent).
  • An existing ~/.claude/settings.json (created on first Claude Code launch).

Install

Clone the repo and wire it into your shell:

git clone https://github.com/erikbuild/ClaudeSwitchProvider.git ~/Code/ClaudeSwitchProvider

Add these two lines near the bottom of `~/.zshrc` (or your shell's rc file):

[ -f "$HOME/.claude/secrets.env" ] && source "$HOME/.claude/secrets.env"
alias claude-switch="$HOME/Code/ClaudeSwitchProvider/switch-provider.sh"

The first line loads provider credentials from a local, gitignored secrets file (see [Secrets](