Answer: To isolate tenants in a shared container, pass `settingSources: []` (TypeScript) or `setting_sources=[]` (Python) to skip user, project, and local settings, set `CLAUDE_CODE_DISABLE_AUTO_MEMORY=1` in `env`, point `CLAUDE_CONFIG_DIR` at a per-tenant directory, use a per-tenant working directory passed as `cwd` on every `query()` call, and apply per-tenant egress rules at your proxy. Status: Confirmed Entry: tool/claude-code/admin-and-enterprise/multi-tenant-isolation Revision: 1 Digest: sha256:2719202ea252fc07 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:45Z Last changed: 2026-11-13T03:02:45Z Last verified: 2026-11-20T12:16:42Z Next check: 2026-11-21T12:16:42Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Skip settings option (TypeScript) | settingSources: [] | [1] | 2026-11-20 Skip settings option (Python) | setting_sources=[] | [1] | 2026-11-20 Disable auto memory env var | CLAUDE_CODE_DISABLE_AUTO_MEMORY=1 | [1] | 2026-11-20 Per-tenant config directory env var | CLAUDE_CONFIG_DIR | [1] | 2026-11-20 Per-tenant working directory | cwd | [1] | 2026-11-20 Minimum TypeScript Agent SDK version for CLAUDE_CODE_PROJECT | v0.3.234 | [1] | 2026-11-20 Minimum Python Agent SDK version for CLAUDE_CODE_PROJECT_DIR | v0.2.140 | [1] | 2026-11-20 Sources: [1] Anthropic. "Hosting the Agent SDK". https://code.claude.com/docs/en/agent-sdk/hosting.md Role: primary. Accessed: 2026-11-20T12:16:42Z Quote: "Pass `settingSources: []` in TypeScript or `setting_sources=[]` in Python to skip user, project, and local settings." (Supports: Skip settings option (TypeScript), Skip settings option (Python)) Quote: "Set `CLAUDE_CODE_DISABLE_AUTO_MEMORY=1` in `env`." (Supports: Disable auto memory env var) Quote: "Point `CLAUDE_CONFIG_DIR` at a per-tenant directory so tenants do not share the `~/.claude.json` global config." (Supports: Per-tenant config directory env var) Quote: "Use a per-tenant working directory. Pass `cwd` explicitly on every `query()` call." (Supports: Per-tenant working directory) Quote: "Requires TypeScript Agent SDK v0.3.234 or later, or Python Agent SDK v0.2.140 or later." (Supports: Minimum TypeScript Agent SDK version for CLAUDE_CODE_PROJECT, Minimum Python Agent SDK version for CLAUDE_CODE_PROJECT_DIR) Published: 2026-11-20T02:56:31Z Snapshot SHA-256: 4a2e1e5cdc750b9c5e12273bcb5bf181e6ce36f5aaa930e61455e52b50b36153 (captured 2026-11-20T12:16:40Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:16:42Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:42Z Last attempt: 2026-11-20T12:16:42Z Notes and limitations: Extracted automatically from a single official source (section "Multi-tenant isolation"). Related: https://latestn.com/tool/claude-code/admin-and-enterprise/network-access-hipaa What network access does Claude Code need in a HIPAA configuration? https://latestn.com/tool/claude-code/admin-and-enterprise/network-settings-background-agents How do I apply proxy and network settings to Claude Code background agents? https://latestn.com/tool/claude-code/admin-and-enterprise/offer-claude-code-in-products Can I offer or preinstall Claude Code in my own product or hosted sandbox? https://latestn.com/tool/claude-code/admin-and-enterprise/managed-settings-delivery-mechanisms Which delivery mechanisms can I use to distribute Claude Code managed settings per OS? https://latestn.com/tool/claude-code/admin-and-enterprise/managed-settings-example What does an organization's managed-settings.json for Claude Code look like? https://latestn.com/tool/claude-code/admin-and-enterprise/metrics-cardinality-control How do I control metrics cardinality in Claude Code OpenTelemetry? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:02:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/admin-and-enterprise/multi-tenant-isolation/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/multi-tenant-isolation POST: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/multi-tenant-isolation with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/multi-tenant-isolation?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I isolate tenants when hosting the Claude Code Agent SDK for multiple customers? Revision 1, last verified 2026-11-20T12:16:42Z. https://latestn.com/tool/claude-code/admin-and-enterprise/multi-tenant-isolation (accessed 2026-11-21T09:57:48Z). @misc{LatestN_tool_claude_code_admin_and_enterprise_multi_tenant_isolation_r1, title = {How do I isolate tenants when hosting the Claude Code Agent SDK for multiple customers?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/admin-and-enterprise/multi-tenant-isolation}}, note = {Revision 1; digest sha256:2719202ea252fc07; last verified 2026-11-20T12:16:42Z; accessed 2026-11-21T09:57:48Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/admin-and-enterprise/multi-tenant-isolation