{"version":"2.1.332","anchor":"claude-code-spend-project-and-claude-project-uuid-env-vars-a","canonical_anchor":"claude-code-spend-project-and-claude-project-uuid-env-vars-a","heading":"Remote sessions carry CLAUDE_PROJECT_UUID and new CLAUDE_CODE_SPEND_PROJECT","tier":"use","area":"Sessions","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/claude-code-spend-project-and-claude-project-uuid-env-vars-a","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Remote sessions carry CLAUDE_PROJECT_UUID and new CLAUDE_CODE_SPEND_PROJECT\n\nRemote sessions now pass on `CLAUDE_PROJECT_UUID` and the new `CLAUDE_CODE_SPEND_PROJECT` and use them to pick the project\n\n**What**\n\nEnvironment variables are named settings handed to a program when it starts. A remote session is Claude Code running on another machine. A new variable, `CLAUDE_CODE_SPEND_PROJECT`, has been added, and remote sessions now handle it together with `CLAUDE_PROJECT_UUID`:\n\n- Both variables were added to the lists of environment settings that are passed through or passed on to other processes.\n\n- When a remote session picks its project, it reads `CLAUDE_PROJECT_UUID` first, then `CLAUDE_CODE_SPEND_PROJECT`, then a stored project ID.\n\n- The block that writes environment settings for child processes now writes `CLAUDE_PROJECT_UUID` and `CLAUDE_CODE_SPEND_PROJECT` as well. Before, only `CLAUDE_CODE_ATTRIBUTION_PROJECT` was written there. Each value is left empty unless `CLAUDE_CODE_REMOTE` is set.\n\n**Why**\n\nIn remote and hosted sessions, the project that work and spending count against can now be set from the environment, and it carries over to the programs that session starts.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_SPEND_PROJECT`, `CLAUDE_PROJECT_UUID`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: no"}