{"name":"PREFIX","slug":"prefix","family":"env","title":"Environment variables","noun":"environment variable","description":"On Termux (when `TERMUX_VERSION` is also set), Claude Code puts its daemon directory (`cc-daemon-<uid>`) under `$PREFIX\/tmp` instead of `\/tmp`, along with its fallback SOCKS socket path (`cc-socks-<uid>\/<pid>.sock`, used when the usual path under `XDG_RUNTIME_DIR` would be longer than 103 bytes). Separately, a non-empty value is treated like `NPM_CONFIG_PREFIX`: `<PREFIX>\/etc\/npmrc` joins a list of credential file paths, and a relative value makes that code throw `an npm prefix variable holds a relative path`.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[],"entries_total":0,"docs":[{"source":"api","path":"about-claude\/models\/migration-guide","title":"Or, for the model with the same capabilities and no access approval requirement:","documented":false},{"source":"api","path":"about-claude\/models\/optimizing-for-cost-and-intelligence","title":"optimizing-for-cost-and-intelligence","documented":false},{"source":"api","path":"about-claude\/pricing","title":"pricing","documented":false},{"source":"api","path":"agents-and-tools\/agent-skills\/best-practices","title":"PDF Processing","documented":false},{"source":"api","path":"agents-and-tools\/agent-skills\/claude-api-skill","title":"claude-api-skill","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/concepts","title":"concepts","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/console","title":"console","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/advisor-tool","title":"advisor-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/bash-tool","title":"bash-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/browser-use-sdk","title":"browser-use-sdk","documented":false}],"docs_total":12,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/prefix","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}