Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

499 pages for force.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Debug your configuration Claude Code CLI · in the page debug-your-config …ermissions](/docs/en/permissions.md) and [hooks](/docs/en/hooks.md) enforce limits regardless of what Claude decides. Use CLAUDE.md for "we do it this way here." Use permissions or hooks for security… Launch sessions from links Claude Code CLI · in the page deep-links …#disabledeeplinkregistration) to `"disable"` in `settings.json`. To enforce this across an organization so users cannot re-enable it, set it in [managed settings](/docs/en/server-managed-settings.md)… Desktop application Claude Code CLI · in the page desktop …uses computer use. The [per-app access tiers](#app-permissions) reinforce this: browsers are capped at view-only, and terminals and IDEs at click-only, steering Claude toward the dedicated tool even… Development containers Claude Code CLI · in the page devcontainer …er by default. To pin the CLI version or disable auto-update, see [Enforce organization policy](#enforce-organization-policy). ```json .devcontainer/devcontainer.json theme={null} { "image": "mcr.… Environment variables Claude Code CLI · in the page env-vars …RIMARY_MODELS` * `IS_DEMO` One other variable has its own rule: `FORCE_HYPERLINK` reads a number, so only `0` turns it off. Each variable's row also states its own rule. </Note> | Variable… Error reference Claude Code CLI · in the page errors …| `CLAUDE_CODE_DISABLE_1M_CONTEXT is set, but the 200K limit isn't enforced` | [Configuration warnings](#the-200k-limit-isnt-enforced) | | `CLAUDE_CODE_AUTO_COMPACT_WINDOW="<value>" reads as <N> toke… Extend Claude Code Claude Code CLI · in the page features-overview …style you pick. Claude follows both as instructions, so neither is enforced. For anything that has to happen every time, use a [hook](/docs/en/hooks-guide.md). **CLAUDE.md vs Rules vs Skills** All… Fullscreen rendering Claude Code CLI · in the page fullscreen …ft`, or `Option` on macOS with the `terminal.integrated.macOptionClickForcesSelection` setting enabled * **Most other terminals**: `Shift` Hold that key while you click and drag. Your terminal handle… Run Claude Code through a gateway Claude Code CLI · in the page gateways …with your corporate identity provider through `/login`, the gateway enforces model access and [managed settings](/docs/en/managed-settings.md) by IdP group, and it emits [OpenTelemetry Protocol (OTLP)… Claude Code GitLab CI/CD Claude Code CLI · in the page gitlab-ci-cd …n a container with strict network and filesystem rules. Claude Code enforces workspace-scoped permissions to constrain writes. Every change flows through an MR so reviewers see the diff and approvals… Glossary Claude Code CLI · in the page glossary …reference](/docs/en/hooks.md) ## M ### Managed settings Settings enforced org-wide by IT or DevOps, delivered from Anthropic's servers through the admin console or deployed to devices at an OS-leve… Claude Code on Google Cloud's Agent Platform Claude Code CLI · in the page google-vertex-ai …L_ACCESS_MEMORY=1`](/docs/en/env-vars). ### When your organization enforces a model allowlist If you set [`enforceAvailableModels`](/docs/en/model-config#enforce-the-allowlist-for-the-default-model)… Run Claude Code programmatically Claude Code CLI · in the page headless …format": "email"`, but treats `format` as an annotation and doesn't enforce it. If a run ends without valid structured output, for example because Claude declined the request, the response has no `st… Set up Claude Code (local mode) for a HIPAA-ready organization Claude Code CLI · in the page hipaa-setup …very-mechanism) your organization deploys: ```json theme={null} { "forceLoginMethod": "claudeai", "forceLoginOrgUUID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "allowedProviders": ["anthropic"],… Hooks reference Claude Code CLI · in the page hooks …ser, project, local, and plugin hooks are blocked. Hooks from plugins force-enabled in managed settings `enabledPlugins` are exempt * Claude Code also narrows your [`statusLine`](/docs/en/statusline),… Automate actions with hooks Claude Code CLI · in the page hooks-guide …eeds input. Format code, send notifications, validate commands, and enforce project rules. Hooks are user-defined shell commands. Claude Code runs them at specific points in its lifecycle, which give… Interactive mode Claude Code CLI · in the page interactive-mode …ps the comment block when you save | | `Ctrl+L` | Redraw the screen | Forces a full terminal redraw, keeping input and conversation history. Use this to recover if the display becomes garbled or parti… Customize keyboard shortcuts Claude Code CLI · in the page keybindings …e. Press twice within 800ms to confirm | | `app:redraw` | (unbound) | Force terminal redraw | | `app:toggleTodos` | Ctrl+T | Toggle visibility of Claude's to-do checklist. This is not the [`/tasks`](/… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …e a newer model handles the case on its own. For example, a rule that forces single-file refactors can be deleted once the limitation is gone * **Add a Stop hook that proposes updates**: a [`Stop` hoo… Legal and compliance Claude Code CLI · in the page legal-and-compliance …products?* above. Anthropic reserves the right to take measures to enforce these restrictions and may do so without prior notice. For questions about permitted authentication methods for your use ca… Other LLM gateways Claude Code CLI · in the page llm-gateway …egardless of which provider serves the request * **Cost controls**: enforce budgets and rate limits in one place * **Audit logging**: log every model request for compliance * **Provider switching**: c… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …` or `prompt token count of N exceeds the limit of M` | The gateway enforces a smaller context than the model's native window and rewrites the upstream error, so Claude Code doesn't recognize it as a… Roll out an LLM gateway for your organization Claude Code CLI · in the page llm-gateway-rollout …he table to the same `env` block. A managed `ANTHROPIC_BASE_URL` is enforced and cannot be overridden by a developer's shell export, since Claude Code applies it over the process environment and lower… Control MCP server access for your organization Claude Code CLI · in the page managed-mcp …l and how to evaluate a server before approving it. [Decide what to enforce](/docs/en/admin-setup.md#decide-what-to-enforce) covers MCP restrictions alongside the other administrative controls. ## Ch… Deploy managed settings Claude Code CLI · in the page managed-settings …per OS, how Claude Code combines managed sources, and how to verify enforcement. Managed settings are the settings your organization deploys to every developer's machine. Claude Code applies them abo… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …r next message would re-read the conversation, run `/reload-plugins --force`. **2. Run the build skill** ``` /mcp-server-dev:build-mcp-server ``` Claude asks about your use case and scaffolds a rem… How Claude remembers your project Claude Code CLI · in the page memory …the start of every conversation. Claude treats them as context, not enforced configuration. To block an action regardless of what Claude decides, use a [PreToolUse hook](/docs/en/hooks-guide.md) inste… Model configuration Claude Code CLI · in the page model-config …model settings, while a managed `availableModels` allowlist stays in force unless the host supplies its own; [Exceptions to managed settings precedence](/docs/en/settings.md#exceptions-to-managed-set… Monitoring Claude Code CLI · in the page monitoring-usage …ied read, so Claude Code can't check organization login or provider enforcement * `"provider_not_allowed"`: the session would use an API provider, or send a provider's traffic to a host, that the ma… Enterprise network configuration Claude Code CLI · in the page network-config …edrock with `CLAUDE_ENABLE_BYTE_WATCHDOG_BEDROCK=1` set, unless [`API_FORCE_IDLE_TIMEOUT`](/docs/en/env-vars) changes that | 5 minutes | If you set `CLAUDE_ENABLE_BYTE_WATCHDOG_BEDROCK=1`, the byte-l… Output styles Claude Code CLI · in the page output-styles …w output styles work](#how-output-styles-work). Default: `false` | | `force-for-plugin` | No | Plugin output styles only. Set to `true` to apply this style automatically whenever the plugin is enabled… Choose a permission mode Claude Code CLI · in the page permission-modes …mmand runs in the [sandbox](/docs/en/sandboxing.md) and the sandbox enforces the block. ## Common setups Permission modes decide whether Claude asks before an action, and the [Bash sandbox](/docs/en… Configure permissions Claude Code CLI · in the page permissions …ask rule never prompts for it. > [!NOTE] > > Permission rules are enforced by Claude Code, not by the model. Instructions in your prompt or `CLAUDE.md` shape what Claude tries to do, but they don't… Test plugins with evals Claude Code CLI · in the page plugin-evals …ing in a [two-arm run](#compare-against-a-no-plugin-baseline); `both` forces a grader Claude Code would otherwise exclude to be scored in both arms | #### What a grader can look at `regex` graders t… Plugin commands reference Claude Code CLI · in the page plugins/cli-reference …ents`, `hooks`, `mcp`, `lsp`, `output-style`, or `channel` | | `-f, --force` | Overwrite an existing `.claude-plugin/` at the target | Scaffold a plugin with starter skill and hook files: ```bash th… Plugin dependencies Claude Code CLI · in the page plugins/dependencies …ugin.json`, even if `plugin.json` at that commit lags behind. If you force-move a tag to a different commit, the next install fetches that commit's content instead of reusing a stale cached copy. See… Host and maintain a marketplace Claude Code CLI · in the page plugins/host-marketplace …ed plugin from users' machines rather than leave a copy behind, set `"forceRemoveDeletedPlugins": true` at the top level of `marketplace.json`. Without the field, a removed plugin stays installed and… Install and manage plugins Claude Code CLI · in the page plugins/install …t warns and leaves the plugin pending instead. Run `/reload-plugins --force` to activate it anyway, which costs one uncached request. * **Load failed**: `The plugin couldn't be loaded`. Open the **Err… Plugin loading reference Claude Code CLI · in the page plugins/loading …(/docs/en/managed-settings.md) | Every user the policy covers. `true` force-enables and `false` blocks, and no other source overrides them | These sources merge key by key. For each plugin id, the va… Marketplace reference Claude Code CLI · in the page plugins/marketplace-reference …tive-path-plugin-source). Requires Claude Code v2.1.239 or later | | `forceRemoveDeletedPlugins` | boolean | When `true`, a plugin you remove from `plugins` is uninstalled on users' machines. See [Hos… Manage mods for your organization Claude Code CLI · in the page plugins/mods/admin …-installed mods, allow only your own, review what a mod can do, and enforce policy with your own mod. A [mod](/docs/en/plugins/mods/overview.md) is a plugin that runs code inside Claude Code with the… Create a mod Claude Code CLI · in the page plugins/mods/create …owerShell** ```powershell theme={null} New-Item -ItemType Directory -Force first-mod\.claude-plugin, first-mod\hooks ``` **2. Write the manifest** A mod is a plugin, and a mod needs a [manifest](/d… React to events with a mod Claude Code CLI · in the page plugins/mods/events …ssion check and then the tool. This hook refuses a Bash command that force-pushes, and tells Claude why: ```javascript theme={null} // The matcher limits the hook to Bash calls, so e.command is the… Interface gallery for mods Claude Code CLI · in the page plugins/mods/gallery …protocol images with Unicode placeholders, they can set [`CLAUDE_CODE_FORCE_TERMINAL_IMAGES`](/docs/en/env-vars) to `1`. Inside tmux or screen that doesn't help: the `alt` text goes away, and Claude C… Mods overview Claude Code CLI · in the page plugins/mods/overview …ods/blast-radius): holds a risky shell command, such as `rm -rf` or a force push, and shows what it would change, with buttons to proceed or cancel * [`replay-theater`](https://github.com/anthropics/c… Mods reference Claude Code CLI · in the page plugins/mods/reference …| :- | :- | :- | | [`plugin.register`](/docs/en/plugins/mods/admin#enforce-a-policy-with-a-mod-of-your-own) | A hooks module is about to load. `e.uses` lists its events, mods API calls, environment v… Test a mod Claude Code CLI · in the page plugins/mods/test …the [policy mod from the admin page](/docs/en/plugins/mods/admin.md#enforce-a-policy-with-a-mod-of-your-own) first. It checks that the policy mod refuses a mod that starts a process and allows one tha… Manage Claude Code plugins for your organization Claude Code CLI · in the page plugins/org …is managed settings example registers an organization marketplace and force-enables two plugins from it: ```json theme={null} { "extraKnownMarketplaces": { "your-marketplace": { "source":… Plugins overview Claude Code CLI · in the page plugins/overview …settings-files), an organization can allowlist or block marketplaces, force-install plugins, and turn off session-only loading. Read [Manage plugins for your organization](/docs/en/plugins/org.md) for… Plugin security and trust Claude Code CLI · in the page plugins/security …og's commit SHA pin, which selects the git commit to check out. ## Enforce plugin controls for your organization With [managed settings](/docs/en/plugins/org.md), an administrator can enforce these…
Feedback