Claude Code in the Enterprise: Rollout, Security and Value
Claude Code is Anthropic's coding agent. It runs in the terminal, in VS Code and JetBrains IDEs, as a desktop app and on the web, and it reads code, runs commands and edits files on its own. For engineering and IT leaders the real questions are about access, permissions, data and spend rather than code quality. This guide covers those questions as of November 2026.
What is Claude Code and what do companies use it for?
Claude Code is an agentic tool. You describe a task in plain language; it plans the steps, explores the repository, edits files and runs tests or build commands. Teams use it for bug fixes, refactoring, writing tests, documentation and code review, both interactively and inside CI pipelines.
The key difference from autocomplete is scope. An autocomplete plugin suggests the next line. Claude Code works across many files and, depending on what you allow, executes commands on the developer's machine. That makes it more useful, and it also turns it into a security and governance topic.
According to the documentation overview, the available surfaces are:
- Terminal (CLI): the original and most complete option, installed via script, Homebrew, WinGet or Linux package managers (apt, dnf, apk).
- IDE extensions for VS Code and JetBrains.
- Desktop app and web: graphical interfaces; the documentation states that the desktop app requires a paid subscription.
For the bigger picture of how coding agents change team workflows, regardless of vendor, see Agentic Software Development in Teams. That guide covers working practices across tools. This one is about rolling out one specific tool from an IT leadership perspective.
How does Claude Code work under the hood?
Claude Code is a local client. It sends requests to a Claude model and turns the responses into tool calls: read a file, write a file, run a shell command, fetch a web page. Every call passes a permission check. Behaviour is shaped by settings files, CLAUDE.md files, hooks and MCP servers.
The building blocks that matter for governance:
- Layered settings. The settings documentation lists the order of precedence: managed settings, command line, local project settings, shared project settings (
.claude/settings.json, committed to git) and user settings. Lists such as allowed commands are merged; the managed layer wins on conflicts. - Permission rules. Rules like
Bash(npm run test *)orRead(./.env)go intoallow,askordeny. The permissions page states that deny rules are checked first, then ask, then allow. - Permission modes. Documented modes include
default(asks before edits and commands),acceptEdits,plan(explore and plan without editing),auto(a classifier reviews actions) andbypassPermissions, which the documentation says to use only in isolated environments such as containers or VMs. - CLAUDE.md. Plain-text files holding project knowledge and conventions. The memory documentation is explicit that Claude treats them as context, not enforced configuration.
- Hooks. Scripts attached to lifecycle events such as
PreToolUseandPostToolUse. According to the hooks reference, aPreToolUsehook can block a tool call whatever the model decides. - MCP servers. Through the Model Context Protocol (MCP), Claude Code connects to external systems such as issue trackers or databases.
A useful rule of thumb: what the agent should do belongs in CLAUDE.md; what it may do belongs in permission rules, the sandbox and hooks. Keep that split from day one.
Which licensing options and deployment patterns exist?
The identity and access documentation describes three main routes: Claude for Teams or Enterprise with per-seat licences (which Anthropic recommends for most teams), the Claude Console with API billing, and cloud providers, namely Amazon Bedrock, Google Cloud and Microsoft Foundry. Personal Pro or Max subscriptions are not a sound basis for company use.
Teams/Enterprise. Per-seat billing, sign-in through claude.ai and central administration. The costs page explains that each seat has an allowance over rolling five-hour and weekly windows; beyond that, admins can enable usage credits and set spend limits per organisation, group or member. These plans also offer server-managed settings, pushed centrally without device management.
Claude Console (API). Pay per token, with spend limits per workspace. A good fit for automation, CI pipelines and teams that need to charge costs back to individual projects.
Cloud providers. If you already have an agreement with AWS, Google Cloud or Microsoft, Claude Code can run through that platform, switched on with environment variables such as CLAUDE_CODE_USE_BEDROCK. Billing, region and data processing stay with your existing provider. The documentation also describes a self-hosted gateway that signs developers in through your identity provider.
Whatever the licensing route, three deployment patterns come up repeatedly:
- Developer seats: engineers work locally in the terminal or IDE. The work here is licensing, central policies and onboarding.
- Hardened setups: permission design, sandboxing and hooks for teams handling sensitive repositories or regulated data.
- CI automation: the GitHub Action
anthropics/claude-code-actionresponds to@claudementions in issues and pull requests, or runs a fixed prompt without a mention. Only users with write access to the repository can trigger it.
Whether another coding agent such as OpenAI Codex, or an editor such as Cursor, suits you better usually depends less on the model and more on whether your developers live in the terminal or the editor, and which cloud agreements you already have.
What do you need in place before rolling out?
You need three things: centrally managed access rather than personal accounts, a permission policy delivered through managed settings, and repositories with working tests and build commands. Without tests the agent cannot verify its own changes, and your engineers end up doing the clean-up.
Technical prerequisites:
- Device management. According to the managed settings documentation, the policy file lives at
/Library/Application Support/ClaudeCode/managed-settings.jsonon macOS,/etc/claude-code/managed-settings.jsonon Linux andC:\Program Files\ClaudeCode\managed-settings.jsonon Windows. It can also be delivered via a macOS configuration profile, the Windows registry or, on Teams/Enterprise, from the server. Anthropic publishes starter templates for Jamf, Intune and Group Policy. - Healthy repositories. A reproducible build, tests that run locally, linters. Whatever a new hire needs on day one, the agent needs too.
- Network. Decide whether proxy rules are needed for the Anthropic API or your cloud provider, and which external domains agents may reach.
Organisational prerequisites:
- Humans stay accountable. Every change goes through a pull request and a human review, including PRs the agent opens itself.
- Employee representation. Analytics and OpenTelemetry produce per-person usage data. In countries with works councils, such as Germany, or with strong employee consultation rules, involve those bodies before rollout. This is guidance, not legal advice.
- Data classification. Decide which repositories may be processed. The data usage page states that Anthropic does not train generative models on code or prompts sent under commercial terms unless the customer opts in, and that standard retention is 30 days. Zero data retention is available to eligible Enterprise organisations after Anthropic confirms eligibility. Whether that meets your requirements is for your data protection team to decide; with the right contract, the tool can be operated in line with the GDPR.
How do you roll it out step by step?
In our own operations a five-step sequence has worked well: choose the licensing route, run a pilot with a few experienced engineers, turn pilot findings into central policy, roll out with training, then keep measuring. Each step ends with something you can check.
- Choose the licensing route. Teams/Enterprise for interactive use with central administration; the Console or a cloud provider for automation or where a cloud agreement already exists. Mixed setups are common.
- Pilot with three to five people. Pick engineers who know the codebase and will be critical. Give them real backlog items, not toy projects. Outcome: a list of tasks that went well and situations where the agent got things wrong.
- Write the policy. The pilot should produce a
managed-settings.jsonwith deny rules (for example.envfiles andgit push), bypass mode disabled viadisableBypassPermissionsMode, an approved list of MCP servers and, where needed, mandatory sandboxing. Add a CLAUDE.md template per repository with build commands, conventions and no-go areas. - Roll out with training. A short session on permission modes, prompts and what to do when the agent goes wrong. Make sure people understand the point in the security documentation: an approved shell command without the sandbox can write anywhere the user account can. A structured format for this is the workshop.
- Measure. See below.
How do you measure value?
Track usage, cost and quality separately. On Teams/Enterprise, the analytics dashboard shows active users, sessions, accepted lines of code and pull requests with Claude Code involvement. Anthropic itself describes these figures as deliberately conservative.
For your own dashboards, Claude Code exports OpenTelemetry data once CLAUDE_CODE_ENABLE_TELEMETRY=1 is set. The monitoring documentation lists metrics including claude_code.session.count, claude_code.cost.usage, claude_code.token.usage, claude_code.commit.count and claude_code.pull_request.count. Prompt text is not logged by default.
For budgeting, the costs page gives averages from enterprise deployments: around 13 US dollars per developer per active day and 150 to 250 US dollars per developer per month, with 90% of users staying below 30 US dollars per active day. These are vendor figures; yours will depend heavily on repository size and working style.
Useful internal measures are ticket cycle time, the share of pull requests that are rejected or need rework, and test coverage. Lines of code alone are a poor signal. For setting budgets, caps and alerts for agents in general, see cost control for AI agents.
What are the limits and risks?
The main risks are overly broad permissions, prompt injection through untrusted content, and treating CLAUDE.md instructions as if they were security controls. Add uncapped spend and plausible-looking code that is simply wrong. Each risk can be contained; none disappears.
- Permissions and the shell. Bash rules match text patterns and are no substitute for real isolation. For real isolation, enable the sandbox. It uses Seatbelt on macOS and bubblewrap on Linux and WSL2, limits writes by default to the working directory, a temporary directory and explicitly added folders and routes network traffic through a proxy with a domain allowlist. It does not run on native Windows, and unless
failIfUnavailableis set, commands run unsandboxed when the sandbox cannot start. - What runs outside the sandbox. The file read and edit tools, web fetches, hooks and local MCP servers run outside it, according to the documentation. You still need permission rules for those.
- Prompt injection. Web pages, tickets or dependencies can contain instructions. The security page lists several safeguards but states plainly that no system is completely immune.
- MCP sprawl. With a central
managed-mcp.json, Claude Code loads only the servers listed there, as described in the managed MCP documentation. The same page warns that allowlisting by server name alone is not a security control; match on URL or launch command instead. - Local transcripts. Session transcripts are stored in plain text under
~/.claude/projects/, by default for 30 days. On shared or poorly encrypted machines that matters. - Quality. The agent writes confident code that can be wrong. Tests and review remain mandatory.
When is Claude Code a poor fit? In repositories without tests, in teams without a review culture, and where code must never leave the corporate network and no cloud agreement with a suitable region exists. A self-hosted model is the alternative there, at considerably higher effort.
How do you get started?
Start small and specific: one licensing route, one pilot team, one repository with good tests and a first managed-settings.json that blocks .env files and disables bypass mode. After four to six weeks, decide on a wider rollout based on what you measured.
A minimal starter policy distributed through device management could look like this (keys as documented in the managed settings page, checked November 2026):
{
"permissions": {
"deny": ["Read(./.env)", "Read(./.env.*)", "Bash(git push *)"],
"disableBypassPermissionsMode": "disable"
}
}
After distribution, run /status to confirm that Claude Code picks up the managed source.
The follow-up questions are more detailed: how to set up seats and policies for a team, how to combine permissions, sandboxing and hooks, and whether an editor-based tool suits your developers better. If the rollout is part of a broader AI strategy, a fractional Head of AI can help keep tooling, policy and measurement aligned.
Frequently asked questions
Does Anthropic train models on code processed by Claude Code?
Not under commercial terms, according to Anthropic's documentation, unless the customer opts in. Standard retention is 30 days, and zero data retention is available to eligible Enterprise organisations.
Can developers override company policy locally?
No. Managed settings sit at the top of the settings hierarchy, so project and user files cannot weaken them. You can also disable the mode that skips permission prompts.
Should we use Claude Code through our existing cloud provider?
If you already run workloads on AWS, Google Cloud or Microsoft Azure, using Amazon Bedrock, Google Cloud or Microsoft Foundry keeps billing, region choice and data processing with that provider.
Is the sandbox available on Windows?
Only inside WSL2. On native Windows, Claude Code runs shell commands without the sandbox, so plan Windows rollouts around WSL2 or tighter permission rules.
Sources
- Claude Code Docs: Overview code.claude.com
- Claude Code Docs: Identity and Access Management code.claude.com
- Claude Code Docs: Settings code.claude.com
- Claude Code Docs: Managed settings code.claude.com
- Claude Code Docs: Permissions code.claude.com
- Claude Code Docs: Security code.claude.com
- Claude Code Docs: Sandboxing code.claude.com
- Claude Code Docs: Hooks reference code.claude.com
- Claude Code Docs: Managed MCP configuration code.claude.com
- Claude Code Docs: Memory (CLAUDE.md) code.claude.com
- Claude Code Docs: Data usage code.claude.com
- Claude Code Docs: Monitoring code.claude.com
- Claude Code Docs: Analytics code.claude.com
- Claude Code Docs: Manage costs effectively code.claude.com
- Claude Code Docs: GitHub Actions code.claude.com