Unclear It is not stated which host apps advertise support for this, so it is unclear where a reader will actually get it.
Some apps run Claude Code inside themselves, such as a desktop app. In those sessions, a file being uploaded to Google Drive through the Google Drive connector can now be filled in by that app. The model no longer has to write the whole file out itself. A connector is a link between Claude Code and an outside service such as Google Drive.
This only happens when the app says it supports it and all of these are true:
- The connector runs as an SDK server, meaning a tool server provided by the host app itself.
- The session is not a remote one, so
CLAUDE_CODE_REMOTEis not set. CLAUDE_CODE_ENVIRONMENT_KINDis not set.- The server's advertised
serverIdis the same as its name. - A further internal check passes.
In practice this covers desktop and other host-embedded sessions only. It does not apply in the plain command line or in remote sessions.
Without this, the model has to type out a file's full contents as encoded text before it can upload it, which is slow and uses up a lot of space. Letting the host app supply the file skips that step. It only helps when you use Claude Code through an app that supports it.
The `$CLAUDE_CODE_REMOTE` environment variable is `"true"` in remote web environments and not set in the local CLI. Claude Code v2.1.199 and later sets [`$CLAUDE_CODE_BRIDGE_SESSION_ID`](/docs/en/env-vars) to the [Remote Control](/docs/en/…see the edit
By default, metrics and events from a cloud session carry the [standard attributes](#standard-attributes), including `session.id`, `ccr.session.id`, and `organization.id`, so you can filter by session or organization without extra configur…see the edit
| `ccr:session_id` | string | The session ID in `cse_...` form. Same value as the suffix of `sub`, and the same string as [`CLAUDE_CODE_REMOTE_SESSION_ID`](/docs/en/self-hosted-environments-configuration#wrapper-scripts). To match it to th…see the edit
It is not stated which host apps advertise support for this, so it is unclear where a reader will actually get it.
CLAUDE_CODE_REMOTE on Hooks reference