Skip to content
BENIBIX Learn

CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST

AI⌨️ Claude CodeConfiguration

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

CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST is set by an app that runs Claude Code inside it. The app picks where the requests go. When this is set, Claude Code skips the provider, address and key settings in its files. So a user cannot send requests elsewhere. You do not set it.

Example code

bash
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1 claude
How a host app might start Claude Code.

Common mistake

Setting it on your own laptop. Your provider settings then stop working, with no host to take over.

Key takeaways

  1. 1
    Set by the host. Not by you.
  2. 2
    Ignores settings. Provider, address, keys.
  3. 3
    Host stays in charge. Of routing.