Network secrets for Claude Code

You can now store API keys as network secrets in Claude Code cloud environments, so Claude can use a key without seeing it.

Related links
Share
Claude Code Network secrets dialog with two saved host secrets, over the Code sidebar of its session

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.

Earlier updates

Oct 14, 2026
Oct 9, 2026
Oct 8, 2026
All updates