Unclear It is not clear what Claude Code does differently once a session counts as a hosted worker.
What
Claude Code decides whether it is running as a hosted worker in the cloud. Before, it needed its own remote check to pass and CLAUDE_CODE_REMOTE_SESSION_ID to be set. It now also counts a session as a hosted worker when both of these environment variables (named settings a program reads when it starts) are set:
CLAUDE_CODE_REMOTEset to trueCLAUDE_CODE_ENVIRONMENT_KINDset toanthropic_cloud
Why
More cloud sessions now fall under the hosted worker label than before.
Names in the bundleCLAUDE_CODE_REMOTE_SESSION_ID
Documented inclaude-code/cloud-environments
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear what Claude Code does differently once a session counts as a hosted worker.