⌨️CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST
Also known as CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST environment variable
An app that runs Claude Code sets it to keep control of routing.
Think of it like
It is like a hotel that books your cab. Your own cab app does not count.
Example
An editor runs Claude Code and pays for the requests. It sets this, so a user's Bedrock setting cannot pull them away.
Why it matters
The app that pays for and routes the requests stays in charge of where they go.
Definition
Example code
bash
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1 claudeCommon mistake
Key takeaways
- 1Set by the host. Not by you.
- 2Ignores settings. Provider, address, keys.
- 3Host stays in charge. Of routing.