[FEATURE] Allow `apiKeyHelper` to set the `ANTHROPIC_BASE_URL` used
Resolved 💬 4 comments Opened Feb 26, 2026 by tonglil Closed Mar 27, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
When developing apiKeyHelper in an enterprise, it's necessary to point ANTHROPIC_BASE_URL to the non-production environment.
However, these settings (apiKeyHelper and ANTHROPIC_BASE_URL) are set in managed-settings.json.
This means even though I can change the key returned by the helper to the dev environment, I can't test this and configure claude to use the dev ANTHROPIC_BASE_URL.
Proposed Solution
- Allow the
apiKeyHelperto set the environment environment variables for claude
or
- Allow these other fields to use helpers
or
- Something like: https://github.com/anthropics/claude-code/issues/4276
Alternative Solutions
I have to uninstall the managed settings (which is a hassle since it's MDM managed) just to test the changes in dev.
Priority
High - Significant impact on productivity
Feature Category
Configuration and settings
Use Case Example
_No response_
Additional Context
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗