Under the hood
Websocket and gateway tokens can be read straight from an inherited file descriptor when there is no IPC channel.
A new helper reads a websocket-auth token or gateway token directly from an inherited file descriptor, bypassing /proc/self/fd, whenever the process is not running under CLAUDE_CODE_REMOTE and has no process.send IPC channel. This serves as a fallback for both the session ingress token and gateway token readers.
Names in the bundleCLAUDE_CODE_REMOTE
Documented inclaude-code/cloud-environments
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Configure cloud environments touched a line naming CLAUDE_CODE_REMOTE after this was published.
* **No cloud-only scoping**: hooks run in both local and cloud sessions. To skip local execution, exit early unless the `CLAUDE_CODE_REMOTE` environment variable is `true`, the way the [dependency install script](#install-dependencies-with…cloud-environments see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Configure cloud environments touched a line naming CLAUDE_CODE_REMOTE after this was published.