
You can now store an API key or token as a network secret on a Claude Code cloud environment. From any session there, Claude can call the API and use the key without seeing it.
After a request leaves the session's virtual machine (VM), Anthropic's agent proxy adds the key if the request goes to a host you listed, so the key stays outside the VM.
Environment variables still work, and anyone who uses the environment can read its variables. Network secrets are a second option that keeps a key out of the VM.
Network secrets are generally available on Pro, Max, Ultra, and Team plans in Anthropic-hosted Claude Code cloud environments. On the Enterprise plan, Owners can add them.
