Claude/Code/How To/Bootstrap Claude Code with Mise + UV-Powered Okta Role Assumption
Properties
- tags
- Claude/Code, Mise, AWS/Bedrock, Okta, Diataxis/How To
How To Bootstrap Claude/Code with mise + uv -Powered #Okta AWS/IAM/Role Assumption
Overview
Time Estimate
Prerequisites
- mise v2024.10+ on
PATH - Okta-backed IAM role with
bedrock:InvokeModel - AWS CLI v2
- Bedrock access to Claude 3.7 Sonnet in your target Region
- mise v2024.10+ on
Steps
1 Edit the global mise config
- Append to ~/.config/mise/config.toml (keep
[settings] experimental = true):- toml
[tools] # language & CLI pinning node = "lts" uv = "latest" # UV installer/runtime "pipx:aws-okta-keyman" = "latest" # pipx uses UV under the hood [tasks.claude] # run mise install && mise reshim before running this. description = "Run Claude Code CLI" run = "npx @anthropic-ai/claude-code $@" [tasks.claude.env] # vars ONLY for Claude CLAUDE_CODE_USE_BEDROCK = "true" AWS_PROFILE = "bedrock" AWS_REGION = "us-east-1" ANTHROPIC_MODEL = "us.anthropic.claude-3-7-sonnet-20250219-v1:0" ANTHROPIC_SMALL_FAST_MODEL = "us.anthropic.claude-3-5-haiku-20241022-v1:0"
- Why UV not pipx? With
experimental = true, mise installs Python packages using UV and exposes them viauvx-fast, isolated, and no extra venvs.
- Append to ~/.config/mise/config.toml (keep
2 Install & reshim the toolchain
bashmise install mise reshim mise run claude -- --version # sanity-check shim3 Obtain STS credentials
bashmise run bedrock-login # runs uvx aws_okta_keyman …4 Launch Claude Code
bashcd /path/to/monorepo mise run claude # or: mise r claude /init # one-time scan /status # should show "provider: Bedrock"5 Verify & tidy
bashaws sts get-caller-identity --profile bedrock aws bedrock list-foundation-models --region us-east-1 | grep claude /cost- Keep a large or irrelevant directory out of reach with a
Read(...)rule underpermissions.denyin.claude/settings.json— Claude/Code/Settings:json{ "permissions": { "deny": [ "Read(./libs/legacy/**)" ] } }
Troubleshooting
Related
- A less opinionated guide is available at Claude/Code/How To/Get Started with AWS Bedrock
- Claude Code Bedrock settings docs