Fix Claude Code "Unable to read managed policy settings (allowedProviders)" & Cached Policy Timeout

Wokey Team · 2026-12-06

Short answer: API Error: Unable to read managed policy settings, which may restrict the API providers this machine may use (allowedProviders) means Claude Code tried to load the machine's enterprise managed-settings.json (or MDM/Registry policy) and failed closed because the file was unreadable, malformed, or blocked by a path/permission error. The closely related startup notice Remote managed settings failed to load (request timed out) · using cached policy (proxy/ca/provider env withheld) means Claude Code could not reach Anthropic's remote policy endpoint on startup, fell back to its cached enterprise policy, and withheld user-configured proxy, CA, and provider overrides for security. Run claude doctor and /status first to see which policy layer is active.

What the two errors look like

Both messages come from Claude Code's managed-policy layer, which sits above user (~/.claude/settings.json) and project (.claude/settings.json) settings:

Message What failed
API Error: Unable to read managed policy settings, which may restrict the API providers this machine may use (allowedProviders). Contact your administrator. Local managed policy (managed-settings.json / MDM / Windows policy) could not be read or parsed, so Claude Code refused to guess whether your API provider is allowed
Remote managed settings failed to load (request timed out) · using cached policy (proxy/ca/provider env withheld) Startup fetch of server-managed organization settings timed out; Claude Code fell back to cached policy and withheld proxy, CA, and provider env overrides from lower settings layers

Why Claude Code fails closed here

Enterprise admins use managed settings—especially allowedProviders (for example ["anthropic", "bedrock", "vertex", "foundry", "customEndpoint", "gateway"])—to control which model backends a workstation is permitted to call. If Claude Code cannot read the policy file or cannot refresh remote managed settings cleanly, it will not silently fall back to unrestricted user settings:

  • When the local managed file fails to read or parse, Claude Code blocks API requests with the allowedProviders error.
  • When server-managed settings time out on startup, Claude Code keeps the last cached policy active and withholds lower-precedence proxy, custom CA (NODE_EXTRA_CA_CERTS), and provider (ANTHROPIC_BASE_URL / Bedrock / Vertex) overrides until a fresh policy fetch succeeds.

Where managed settings live

Check whether a managed policy file or OS profile exists on your machine:

OS Managed settings location
macOS /Library/Application Support/ClaudeCode/managed-settings.json (or MDM plist com.anthropic.claudecode)
Linux / WSL /etc/claude-code/managed-settings.json
Windows C:\Program Files\ClaudeCode\managed-settings.json (or Registry HKLM\SOFTWARE\Policies\ClaudeCode)

Run claude doctor in your terminal and /status inside Claude Code to see which managed settings source is failing and whether the failure is local (file/JSON/permissions) or remote (network timeout).

Fixes by scenario

1. Personal or unmanaged machine seeing Unable to read managed policy settings (allowedProviders)

If no IT team manages your computer, this is usually a CLI version bug, a Windows non-C: system drive / WSL mount permission issue, or a leftover unreadable file:

  1. Update Claude Code first. Run claude update (or reinstall the latest release). Recent versions patched path-handling bugs where missing or non-C: Windows paths triggered a false read failure.
  2. Check permissions and syntax if a file exists. On macOS/Linux/WSL, run:
ls -la "/Library/Application Support/ClaudeCode/managed-settings.json" /etc/claude-code/managed-settings.json 2>/dev/null

If you created a local managed-settings.json yourself, validate that it is valid JSON (no trailing commas or comments) and readable by your user (chmod 644). If you do not need machine-wide policy on a personal device, remove the broken file and put your own config in ~/.claude/settings.json instead.

  1. Windows non-C: drive or WSL /mnt/c permissions. If Windows is installed on a drive other than C:, update Claude Code first; if an older build still fails trying to stat C:\Program Files\ClaudeCode\managed-settings.json, verify the directory permissions or upgrade past the affected build.

2. Corporate network / SSL proxy seeing Remote managed settings failed to load (request timed out)

This happens when Claude Code cannot reach Anthropic's management endpoints (api.anthropic.com / claude.ai) during startup—commonly behind an HTTPS corporate proxy, VPN, or TLS-inspecting firewall.

Because proxy/ca/provider env withheld strips proxy and CA settings defined only inside lower-precedence settings.json files during fallback, export your corporate proxy and Root CA directly in your OS shell environment before starting claude:

export HTTPS_PROXY="http://your-proxy-host:port"
export HTTP_PROXY="http://your-proxy-host:port"
export NO_PROXY="localhost,127.0.0.1,.corp.example.com"
export NODE_EXTRA_CA_CERTS="/path/to/corporate-root-ca.pem"

Then verify:

  1. Your firewall or egress allowlist permits outbound HTTPS to api.anthropic.com and claude.ai.
  2. Restart the terminal completely (so the shell env vars are inherited), run claude doctor, and check /status to confirm remote managed settings loaded without timing out.
  3. Do not disable TLS certificate verification (NODE_TLS_REJECT_UNAUTHORIZED=0); trust your corporate CA via NODE_EXTRA_CA_CERTS instead.

3. Enterprise admin deploying allowedProviders

If you manage managed-settings.json for a fleet:

  • Ensure the file has read permissions for standard workstation users (e.g., 0644 on macOS/Linux, Users: Read on Windows).
  • Validate the JSON schema before rolling it out via MDM or Group Policy. For example:
{
  "allowedProviders": ["anthropic", "bedrock"]
}
  • If your organization uses an internal or third-party Anthropic-compatible gateway, include "customEndpoint" or "gateway" in allowedProviders as required by your policy, and make sure the policy JSON contains no syntax errors that would force Claude Code to fail closed.

4. Company-managed device vs. personal device with a custom gateway

If your employer intentionally locks allowedProviders via MDM, Registry, or server-managed settings, local user settings (~/.claude/settings.json) cannot override it—that is an enforced company policy, not a bug. Ask your IT administrator before changing providers on company machines or code.

On a personal, unmanaged machine, once claude doctor is clean and no broken managed policy blocks startup, you can point ~/.claude/settings.json at any Anthropic-compatible API gateway such as Wokey (ANTHROPIC_BASE_URL: https://api.wokey.ai, ANTHROPIC_AUTH_TOKEN). See the Claude Code base URL guide, Claude Code setup docs, and Wokey Claude API pricing.

FAQ

Why am I seeing "Unable to read managed policy settings (allowedProviders)" on a personal, unmanaged computer?

Three causes are common on personal machines: a Claude Code CLI bug on Windows non-C: system drives, WSL /mnt/c read-permission errors, or a leftover malformed/unreadable managed-settings.json at the system path. Run claude update and claude doctor first, and remove any broken local managed-settings.json if you do not need machine-wide policy.

What does "(proxy/ca/provider env withheld)" mean when remote managed settings fail to load?

When the startup fetch for server-managed settings times out, Claude Code falls back to the cached policy and withholds proxy, custom CA (NODE_EXTRA_CA_CERTS), and provider (ANTHROPIC_BASE_URL) overrides from lower-precedence settings until a fresh policy fetch succeeds. Export your corporate proxy and NODE_EXTRA_CA_CERTS in the OS shell environment and allow HTTPS to api.anthropic.com and claude.ai.

What values can an admin put in allowedProviders inside managed-settings.json?

allowedProviders takes an array of strings naming the permitted model backends—such as "anthropic", "bedrock", "vertex", "foundry", "customEndpoint", and "gateway". Validate the JSON syntax before deployment and ensure standard users have read permissions (0644 on macOS/Linux, Users: Read on Windows).