# CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST

> An app that runs Claude Code sets it to keep control of routing.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST environment variable

## Think of it like

It is like a hotel that books your cab. Your own cab app does not count.

## 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

An editor runs Claude Code and pays for the requests. It sets this, so a user's Bedrock setting cannot pull them away.

## Example code

```bash
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1 claude
```

How a host app might start Claude Code.

## Why it matters

The app that pays for and routes the requests stays in charge of where they go.

## Common mistake

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

## Three principles

- **Set by the host.** Not by you.
- **Ignores settings.** Provider, address, keys.
- **Host stays in charge.** Of routing.

## Related terms

- [CLAUDE_CODE_USE_BEDROCK](https://learn.benibix.com/term/ai/claude-code-use-provider-variables)
- [ANTHROPIC_BASE_URL](https://learn.benibix.com/term/ai/anthropic-base-url-variable)

---

Source: https://learn.benibix.com/term/ai/claude-code-provider-managed-by-host-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
