Claude Code reads configuration from five scopes with a defined precedence order: Managed (highest), CLI flags, Local Project, Project, and User (lowest). Managed settings are deployed by IT/DevOps and cannot be overridden. CLI flags are temporary per-session. Local project settings (.claude/settings.local.json) are gitignored personal overrides. Project settings (.claude/settings.json) are committed to Git and shared across the team. User settings (~/.claude/settings.json) apply globally across all projects. Each scope also supports a corresponding CLAUDE.md instruction file. A practical TypeScript team setup uses user scope for universal MCP servers, project scope for framework-specific tools like Playwright, and local project scope for credentials tied to personal accounts.

4m read timeFrom typescript.tv
Post cover image
Table of contents
ContentsThe ScopesManaged ScopeCLI FlagsLocal Project ScopeProject ScopeUser ScopeA Practical Setup for TypeScript Projects

Sort: