34 pages for claude_config_dir.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Use Claude Code features in the SDK
Claude Code CLI · in the page
agent-sdk/claude-code-features
…SDK | | `~/.claude.json` global config | Always read | Relocate with `CLAUDE_CONFIG_DIR` in `env` | | Auto memory at `~/.claude/projects/<project>/memory/` | Loaded into the system prompt at session s…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…nscripts | `~/.claude/projects/`, or the `projects/` directory under `CLAUDE_CONFIG_DIR` if set | | `CLAUDE.md` memory files | `~/.claude/CLAUDE.md` for the user tier and the session's working directo…
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…NAME`](/docs/en/sessions#name-the-project-directory-yourself) beside `CLAUDE_CONFIG_DIR` in a query's [`env` option](/docs/en/agent-sdk/typescript#options), the SDK keys that query's entries, and its…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…ons under `~/.claude/projects/<encoded-cwd>/*.jsonl`. If you set the `CLAUDE_CONFIG_DIR` environment variable, look under `$CLAUDE_CONFIG_DIR/projects/` instead. > > To find your session's directory,…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…state is stored under your Claude Code config directory. If you set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), the supervisor uses that directory instead of `~/.claude` and runs as a separate instance…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…inned models. The wizard writes to `~/.claude/settings.json`, or to `$CLAUDE_CONFIG_DIR/settings.json` when [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variables) is set. ## Set up manually To configure…
Authentication
Claude Code CLI · in the page
authentication
…t its own configuration directory. When you start `claude`, set the [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variables) environment variable to the directory for the account you want to use. Each direc…
Claude Code changelog
Claude Code CLI · in the page
changelog
…on a mapped network drive added with `--add-dir` * \[VSCode] Changed `CLAUDE_CONFIG_DIR` in the `claudeCode.environmentVariables` setting to apply only when it is an absolute path, and passed it to te…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…eway runs as any user, but minimal images have no writable home. Set `CLAUDE_CONFIG_DIR` to a writable path such as `/tmp/.claude`. * **The container command**: `claude gateway --config /etc/claude/ga…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…indows, `~/.claude` resolves to `%USERPROFILE%\.claude`. If you set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), every `~/.claude` path on this page lives under that directory instead. Most users only e…
Debug your configuration
Claude Code CLI · in the page
debug-your-config
…de with a clean configuration directory** From the same shell, set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars) to a fresh directory in place of `~/.claude`, and pass [`--setting-sources user`](/docs/en/…
Schedule recurring tasks in Claude Code Desktop
Claude Code CLI · in the page
desktop-scheduled-tasks
…led-tasks/<task-name>/`, or at `scheduled-tasks/<task-name>/` under [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars) if you set that variable. To remove that folder, delete it yourself. You can also list, cr…
Development containers
Claude Code CLI · in the page
devcontainer
…directory and the file, mount a named volume at `~/.claude` and set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars) to the same path so Claude Code writes `.claude.json` inside the volume. The following exam…
Environment variables
Claude Code CLI · in the page
env-vars
…ttings. Project and local settings can't set some variables, such as `CLAUDE_CONFIG_DIR` and the OpenTelemetry exporter variables. [Variables Claude Code ignores in `env`](/docs/en/settings-reference#…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…inned models. The wizard writes to `~/.claude/settings.json`, or to `$CLAUDE_CONFIG_DIR/settings.json` when [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variables) is set. ## Region configuration Claude…
JetBrains IDEs
Claude Code CLI · in the page
jetbrains
…nt it as the `X-Claude-Code-Ide-Authorization` header to connect. If `CLAUDE_CONFIG_DIR` is set, the lock file is written to `$CLAUDE_CONFIG_DIR/ide/` instead. **Tools exposed to the model.** The ser…
Claude Code gateway compatibility guide
Claude Code CLI · in the page
llm-gateway-protocol
…-models.json` on Windows, and refreshed on each startup. If you set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), the cache lives under that directory instead. If the request fails or the gateway doesn't…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…: your home directory, or a directory whose `.claude` you've set as [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars). Before v2.1.207, Claude Code applied approvals from an untracked `.claude/settings.local.j…
Connect to MCP servers
Claude Code CLI · in the page
mcp-quickstart
…de.json`, typically `C:\Users\YourName\.claude.json`. If you've set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), Claude Code reads `.claude.json` from inside that directory instead. Run `claude mcp get…
How Claude remembers your project
Claude Code CLI · in the page
memory
…NAME`](/docs/en/sessions#name-the-project-directory-yourself) beside `CLAUDE_CONFIG_DIR`, Claude Code uses that name as the `<project>` directory under `<config dir>/projects/` instead, whichever repo…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…le changes * `~/.claude/dev-mods/`, or `dev-mods/` in the directory [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars) points to, where Claude saves the [mods it writes for you](/docs/en/plugins/mods/create.md#…
Configure permissions
Claude Code CLI · in the page
permissions
…irectory, or a directory whose `.claude` subdirectory you've set as [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variables). If that `CLAUDE_CONFIG_DIR` directory sits inside a git repository and Claude Co…
Host and maintain a marketplace
Claude Code CLI · in the page
plugins/host-marketplace
…g directory is the configuration directory, which is `~/.claude` or [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variables). Give an absolute path or a command on `PATH`, because a relative path resolves a…
Configure the sandboxed Bash tool
Claude Code CLI · in the page
sandboxing
…a sandboxed command is running * **In `~/.claude`, or the directory `CLAUDE_CONFIG_DIR` points to**: most of its contents, plus `~/.claude.json` and the `.credentials.json` credential store If a sym…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…he variable over, or attachment downloads silently stop working. | | `CLAUDE_CONFIG_DIR` | Per-session Claude config directory, written at session start from the snapshot of the runner host's config t…
Self-hosted environments reference
Claude Code CLI · in the page
self-hosted-environments-reference
…ed into the runner's startup snapshot and seeded into each session's `CLAUDE_CONFIG_DIR`; changes on disk apply after a runner restart. Setting the variable also moves where the runner reads `.claude.…
Test self-hosted environments end to end
Claude Code CLI · in the page
self-hosted-environments-testing
…pe": "command", "timeout": 10, "command": "\"$CLAUDE_CONFIG_DIR/hooks/e2e-stop-hook-capture.sh\"" } ] } ] } } ``` ```sh theme={null} #!/bin/sh #…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…and `CLAUDE_CODE_OAUTH_TOKEN` * The configuration-directory selector `CLAUDE_CONFIG_DIR` * Credential-source and configuration-directory selectors, in Claude Code v2.1.223 or later: the Workload Ident…
Manage sessions
Claude Code CLI · in the page
sessions
…| To | Set | Where | | - | - | - | | Move storage off `~/.claude` | [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars) | Environment variable | | [Name the `<project>` directory yourself](#name-the-project-dire…
All settings
Claude Code CLI · in the page
settings-reference
…iables that choose where Claude Code stores or writes its own files: `CLAUDE_CONFIG_DIR`, `CLAUDE_CODE_TMPDIR`, and the operating-system directory variables such as `HOME`, `TMPDIR`, `TMP`, `TEMP`, an…
Troubleshoot installation and login
Claude Code CLI · in the page
troubleshoot-install
…e of `~/.local/share`, `~/.local/state`, and `~/.cache`. If you set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), the global config file lives under that directory instead of your home directory. Check w…
Use Claude Code in VS Code
Claude Code CLI · in the page
vs-code
…aude process. Use Claude Code settings instead for shared config. A [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars) entry applies only when its value is an absolute path; the extension doesn't expand `~` and…
Orchestrate subagents at scale with dynamic workflows
Claude Code CLI · in the page
workflows
…ectory: available in every project, visible only to you. If you set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), this location is the `workflows/` directory under that path. The save dialog shows the re…
Configuration reference
Claude Documentation · in the page
third-party/claude-desktop/configuration
…r Code coverage. Over SSH, keep a Claude Code config folder moved by `CLAUDE_CONFIG_DIR` outside read-only folders. *** #### `blockReadsOutsideWorkingDirectories` booleanSince 1.46388.1 **Block re…