ANTHROPIC_API_KEY).
Prerequisites
End-to-end: create, smoke-test, clean up
One script creates an Identity provider, an allowlist forapi.anthropic.com, a Claude runtime, runs a headless prompt, then tears down.
Identity secrets are injected for
run_cmd / run_code. They are not automatically present in an interactive SSH / runtime shell session. Pass env_vars at create time (as above) or export ANTHROPIC_API_KEY=... inside the shell.Interactive shell
After create (keep the runtime alive):ETIMEDOUT.
Extra allowlist hosts (optional)
For a first smoke test only, you can use
egress_mode="allow_all" / --egress-mode allow_all, then tighten. See Network policies.