Setting Up Claude Code for a Company: Permissions, Sandboxing, Rollout
Short answer
To set up Claude Code for a company, define managed settings that users cannot override, start with conservative permission allowlists and deny rules, run the agent sandboxed, and keep shared conventions in a version-controlled CLAUDE.md. Add MCP servers deliberately, monitor usage and cost from day one, and roll out in stages with a trained pilot group.
Start with the settings hierarchy
Claude Code reads configuration from several layers. Understanding them is the basis of any company setup:
- Managed settings: a
managed-settings.jsondeployed to a system-level location by IT. These take precedence and cannot be overridden by users or projects. - Project settings:
.claude/settings.jsonin the repository, shared with the team through version control. - Local project settings:
.claude/settings.local.json, personal and not committed. - User settings:
~/.claude/settings.jsonfor individual preferences across projects.
Put security-relevant rules into managed settings, team conventions into project settings and leave the rest to individuals. Distribute managed settings with your existing device management tooling so every machine gets the same baseline.
Permissions: allowlists and deny rules
Permission rules decide which tools Claude Code may use without asking. They are grouped into allow, ask and deny, and deny rules win. A sensible starting point:
- Allow read-only and routine commands your team runs constantly, such as
Bash(npm run test:*)orBash(git diff:*). - Deny reading secrets, for example
Read(./.env)andRead(./secrets/**). - Keep network fetches, package installs and deployment commands on ask, or deny them outright.
- Disable the bypass-permissions mode in managed settings so nobody can switch off prompts on a production repository.
Expand the allowlist from real usage: when developers approve the same harmless command repeatedly, move it into project settings. Hooks add a second layer, since a pre-tool-use hook can inspect and block commands, for instance anything touching production credentials.
Sandboxing and isolation
Permission prompts depend on human attention, which fades after the fiftieth approval. Isolation does not. Claude Code offers a sandbox for shell commands that restricts file system writes and network access at operating system level. For stronger separation, run agents in development containers or cloud workspaces that hold no production credentials. Two rules hold regardless of the tooling: agents should never run with access to production secrets, and autonomous runs belong in environments you can throw away.
CLAUDE.md conventions and MCP servers
A CLAUDE.md at the repository root gives the agent project context at the start of every session: build and test commands, architecture notes, code style, things never to touch. Keep it short and factual, review changes to it like code and import longer documents by reference instead of pasting them in. A company-wide file can carry rules that apply everywhere, such as how to handle personal data. Our guide to AGENTS.md and CLAUDE.md covers structure and pitfalls.
MCP servers connect the agent to issue trackers, databases, documentation or internal APIs. Each server is a new data path and a new place where untrusted content can enter the prompt. Approve servers centrally, prefer read-only scopes, give them their own service credentials and restrict which servers may be used through managed configuration.
Cost control and rollout
You can authenticate Claude Code through a Claude Team or Enterprise plan, through API keys from the Claude Console, or through cloud providers such as Amazon Bedrock and Google Cloud Vertex AI. Each route has its own billing and limits, so pick one per organisation unit and set spend limits where the platform offers them. Claude Code can export usage metrics via OpenTelemetry, which lets you see usage per team before the invoice arrives. Habits matter as much as limits: starting fresh sessions for new tasks, choosing the model per task and keeping CLAUDE.md lean all reduce token usage.
A rollout that works in practice:
- Pilot with one or two teams for a few weeks, with managed settings already in place.
- Collect permission rules, CLAUDE.md patterns and failure cases from the pilot.
- Train every team before access, not after the first incident.
- Define review rules: agent-written code goes through the same pull request process as human code.
How jocapps can help
Our training brand neooutput runs hands-on Claude Code workshops and 1:1 consulting for engineering teams, in English or German, on-site or remote, including setting up permissions, CLAUDE.md files and review workflows on your own repositories. If you need a delivery team for custom apps, AI integration or production hardening, OnlineAppCreator is our ISO-certified B2B and B2G team in Germany. See our agentic coding workshops or book a free 30-minute intro call via the meeting planner.
Frequently asked questions
Can users override company-wide Claude Code settings?
Not settings defined in managed settings. They take precedence over user and project settings, which makes them the right place for security rules.
Should the bypass-permissions mode ever be allowed?
Only in isolated, disposable environments without access to secrets or production systems. On developer machines with real credentials it should be disabled centrally.
How do we keep Claude Code costs predictable?
Choose one authentication route per team, set spend limits where available, monitor usage through telemetry and train people on habits like fresh sessions per task and lean context files.
Do we need a CLAUDE.md in every repository?
It is strongly recommended. A short file with build commands, conventions and no-go areas improves results more than most other settings.
Guides on this topic
Related solutions
- Agentic coding in teamsAgentic Coding for Data and Analytics Engineering Teams
- Agentic coding in teamsAgentic Coding for Java and Spring Teams
- Agentic coding in teamsAgentic Coding for PHP Teams: Laravel, Symfony and WordPress
- Agentic coding in teamsAgentic Coding Workshops for Universities, Lecturers and Students
Talk to us about your project
Honest advice on your idea, prototype or app.
- 30 minutes
- Free
- No obligation
