[BUG] No Claude Environment Selector in Claude Code Routines, so cannot access Network APIs.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When running a Claude Code Routine what harnesses an API, there is no Claude Environment selector to select the environment config already setup in the Claude Console - its missing. This is fundamentally required so that the API setup in the Routine can authenticate and reach the environment config's authorised Domain. The Claude Routine therefore will always fail since the API is "unreachable" due to the domain rejection which would be resolved if the Claude Environment selector was not missing and thus available for selection in the Claude Routine editor.
What Should Happen?
Claude Environment Selector in the Claude Routine should exist and attach to the Routine.
As a Feature request Credentials could also attach for env vars.
Error Messages/Logs
Blocker 1: Network allowlist (the actual blocker)
The TLS handshake succeeds, but Anthropic's egress proxy intercepts it and returns:
HTTP 403 x-deny-reason: host_not_allowed
Body: Host not in allowlist
The certificate issuer in the curl output above is CN=Egress Gateway Subordinate CA — that's Anthropic's TLS inspection proxy. It allows the connection but blocks the request because emailmanager.aiassists.me is not on its approved host list.
Steps to Reproduce
- Create any Routine with an API and credentials outside of Claude's allowlist e.g. *.aiassists.me and run the routine.
The Routine will fail to reach the API host saying the API host is unreachable as the domain is not in the allow list, which it is inside a Claude Environment but the environment is not associated with the Routine.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.119
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗