Is Claude Code safe to use at work? What founders should check first

Is Claude Code safe to use at work? What it does by default, what Anthropic does with your code, and the five settings founders should check first.

Your developer, or your whole team, wants to use Claude Code. It's fast, it ships features, and everyone online says it's changed how they work. You're the one who signs off, and the questions you can't answer are the ones that matter: what can it do on its own, where does your code go, and could it take something down? Getting this wrong is a data question, not a tech one. Code sent to the wrong kind of account, or an agent running with no guardrails on a laptop with live keys, ends up in customer conversations and investor due diligence.

The short answer#

Yes, Claude Code is safe to use at work if it runs on a business account and keeps its default habit of asking before it acts. Anthropic doesn't train models on code or prompts sent under commercial terms (Team, Enterprise and the API). The risks come from setup: personal accounts, "skip all prompts" modes, unvetted plugins, and live keys on the same laptop.

What Claude Code does by default#

Claude Code runs on your developer's machine (or in a cloud sandbox, if they use the web version). By default it reads files in the project without asking, but asks before it runs a shell command or edits a file, the first time it uses each tool. That's the mode Anthropic calls Manual.

Developers can change that. The modes run from careful to hands-off:

Claude Code's permission modes from most cautious to least: Plan reads but doesn't edit; Manual, the default, asks before commands and edits; Accept edits changes files without asking; Auto skips routine prompts with a background check; Bypass skips permission prompts
The mode decides what the agent does without asking.

A useful detail for founders: the two most hands-off modes, Auto and Bypass, can't be switched on from a project's shared settings file. So a repository someone clones can't quietly turn off the prompts. A developer has to choose it for themselves.

What it means for you: the default is reasonable. The question to ask is whether anyone on your team changed it, and on which machines.

Where your code goes#

Claude Code sends your prompts and the code it's working on to Anthropic's servers to get answers. What happens next depends on the account:

Account Trains models on your code? Kept for
Team, Enterprise, API (commercial) No, unless you opt in to a partner programme 30 days by default
Free, Pro, Max (personal) Yes, if the "help improve Claude" setting is on 5 years if on, 30 days if off

That's from Anthropic's data usage page. Separately, Claude Code keeps session transcripts on the developer's own machine, in plain text, for 30 days by default. So anything pasted into a session stays on that laptop.

What it means for you: company code should run through a company account, not someone's personal Pro subscription with training switched on. That's a five-minute decision with real consequences in a security questionnaire.

The five settings to check first#

  1. Account type. Your team uses a Team, Enterprise or API account, not personal plans. If you have a personal plan in the mix, check its privacy setting.

  2. Permission mode. Manual (the default) or Plan for most work. No Bypass on any machine that holds real keys.

  3. No secret files. Add rules that stop it reading .env files. Anthropic's settings docs show the exact rule your developer can commit to the project's .claude/settings.json:

    {
      "permissions": {
        "deny": ["Read(./.env)", "Read(./.env.*)"]
      }
    }
    

    Know its limit: the docs say these rules cover Claude's own file tools and recognised commands, but not a script that opens files itself. For a hard boundary, Claude Code has a sandbox that blocks access at the operating system level. Better still, keep live keys off the laptop.

  4. Plugins (MCP servers). List which ones are connected and who chose them. A plugin can steer the agent. In one case, an agent connected to the GitHub plugin was tricked by a public issue into leaking private repository data.

  5. Team rules in one place. Shared rules go in .claude/settings.json, committed to the repository, so every developer gets them. Organisations can also enforce rules nobody can override through managed settings.

The 10-minute self-check#

Send this to your developer, or answer it together:

  • Everyone using Claude Code on our code is on a Team, Enterprise or API account
  • Nobody runs it in Bypass mode on a machine with real keys
  • Our repository has a committed .claude/settings.json that blocks .env files
  • We know which plugins (MCP servers) are connected, and each was chosen on purpose
  • Live production keys aren't on any laptop where Claude Code runs
  • Claude Code is updated regularly on every machine
  • Changes it makes to login, payments and customer data are reviewed by a person before they ship
  • If a contractor stops working with us, we know how to remove their access and rotate the keys they saw

Every "no" or "I'm not sure" is worth fixing. If you'd like help with the setup, tell me how your team uses it.

Where it can still go wrong#

None of the settings above help if the laptop itself is the problem. A live Stripe key in .env, a fake AI tool installed alongside Claude Code, or a production database reachable from a developer machine are all risks the agent inherits. I cover those in is it safe to let AI coding agents into your startup's code, and how to find and replace exposed keys in the 10-minute API key check.

The other risk is plain mistakes. An agent that can reach production can break production. Replit's agent deleted a founder's production database in 2025, at a time when one database served preview, testing and production. Separate environments make that kind of mistake survivable.

How I use it, and how I set it up for clients#

When I build tools that AI agents call, the agent never decides what it can reach. Access comes from the verified login and every call is logged, as in my guide to building an MCP server for a SaaS. The same thinking applies to a coding agent: decide its reach first, then let it be fast inside it.

Fix it yourself vs bring someone in#

You can do this yourself Bring someone in when…
Move the team to a business account Live keys are on laptops and need moving to the server without downtime
Ask everyone which mode and plugins they use Nobody can tell you which plugins are connected or why
Have your developer commit the .env deny rule You want the sandbox or managed settings rolled out across the team
Ask for human review on login and payment changes Agent-written auth or payment code is already in production unreviewed

Want a second opinion on your setup?#

Tell me how your team uses Claude Code and I'll send back the settings I'd change: account type, permission mode, file access, plugins and team rules, in plain language. Email mhuzaifaa.dev@gmail.com or see the projects I've shipped.

If you work with freelancers, read how to onboard and offboard developers who use AI tools next.

FAQ#

Does Claude Code train on my company's code?#

Not under commercial terms. Anthropic says it doesn't train models on code or prompts sent to Claude Code from Team, Enterprise or API accounts unless the customer opts in. Personal Free, Pro and Max accounts can be used for training when the privacy setting allows it.

Can Claude Code run commands without asking?#

By default it asks before running shell commands and editing files, the first time for each tool. Developers can choose modes that ask less, such as Accept edits, Auto or Bypass. Bypass skips permission prompts, so it belongs only on a throwaway machine with no real keys.

Can Claude Code read my .env file?#

It can read project files by default, so yes, unless you add a deny rule for .env files in its settings. That rule covers its own file tools, not every script it might run. The sandbox gives stronger protection, and the safest setup keeps live keys off the laptop entirely.

Is Claude Code safe for a company with customer data?#

It can be, with a business account, the default permission mode, .env files blocked, vetted plugins and no production access from developer laptops. Customer data shouldn't be on developer machines in the first place; use test data or a staging database.

How do I control Claude Code settings for my whole team?#

Commit shared rules to .claude/settings.json in the repository so every developer gets them. For rules nobody can override, organisations can deploy managed settings, including from the Claude admin console. Each developer can check what's loaded with the /status command.

Muhammad Huzaifa Abdulahad
Written by

Muhammad Huzaifa Abdulahad

Full-Stack Software & DevOps Engineer

I build SaaS platforms with Node.js, NestJS, TypeScript and PostgreSQL, and run them on Linux, Docker, AWS and CI/CD — from the first line of code to production.

Related articles

See all posts →

Have a complex idea? Let's build it together.

From MVPs to scalable products, let's turn your idea into reliable software built for real-world impact.