Is it safe to use Claude Code
with client financial data?
Short answer: Not by default. Claude Code runs on your computer but sends prompts and the files it reads to Anthropic. Team, Enterprise and API data isn't used for training by default; on Free, Pro and Max it depends on a setting. Firms that prepare US tax returns also answer to the FTC Safeguards Rule and IRS rules, so check those and your client contracts first.
Claude Code runs on your computer, but it works by sending prompts and the file contents it reads to Anthropic's servers. So "it runs locally" does not mean "the data stays local". Whether that is acceptable depends on your plan settings, your employer's policy and the data itself.
Can you upload confidential client data to Claude?
Not with a personal account, and not before your own checks. The same four conditions apply to Claude chat, Cowork and Claude Code:
- A firm account on commercial terms. On Team and Enterprise, Anthropic doesn't train on your content by default. On Free, Pro and Max, conversations are used for training when the model-improvement setting is on, and are then kept for up to 5 years.
- Your obligations first. If you prepare US tax returns, treat Claude as a service provider under the FTC Safeguards Rule, list it in your Written Information Security Plan, and ask your adviser whether section 7216 requires the client's written consent. The IRS Office of Professional Responsibility says client data belongs only in "secure, enterprise-approved AI." See US rules for accountants and tax preparers.
- Only the data the task needs. Remove Social Security numbers, full account numbers and names the task doesn't use. Most categorization, reconciliation and cash flow work runs fine on an export with those columns removed.
- Clean up on your computer. Claude Code keeps transcripts locally, and Anthropic says local Cowork session data isn't subject to its standard retention and can't be deleted centrally by admins. Delete it when the engagement ends.
Then a person checks every number against the source. For firm-wide setup, see Claude for accounting firms; for a printable version, the client data checklist.
What Claude Code sends
To answer you, Claude Code sends your prompts and whatever file contents it reads to Anthropic's API. If it opens your transactions CSV, those rows are sent. It also sends operational telemetry. According to Anthropic's documentation, metrics "never include your code, prompts, or file paths", and error reports have known patterns of secrets, paths and personal information redacted before they leave your machine.
Training and retention by plan
| Plan | Used to train models? | Kept by Anthropic | Zero data retention |
|---|---|---|---|
| Free, Pro, Max (consumer terms) | Only when the model-improvement setting is on | 5 years with that setting on; 30 days with it off | Not available |
| Team (commercial terms) | No, unless your organization opts in | 30 days | Not offered for Claude Code (Enterprise only) |
| Enterprise (commercial terms) | No, unless your organization opts in | 30 days | For qualified accounts, enabled by Anthropic on request; not part of the standard plan |
| API keys (commercial terms) | No, unless your organization opts in | 30 days | Offered for Claude Code through Claude for Enterprise; teams that already use it with API keys can move there |
- On Free, Pro or Max, check the setting at claude.ai/settings/data-privacy-controls.
- Feedback you send with
/feedback,/bugor/shareis kept for 5 years. - Zero data retention covers Claude Code prompts and responses on Claude for Enterprise. It does not cover chat on claude.ai, Cowork, or data handled by MCP servers and other integrations, and it turns off cloud sessions, Remote Control, Artifacts and the feedback commands.
- Sign in with your firm's account. Commercial terms and zero data retention apply to sessions that sign in to your organization, not to a personal login or another organization's API key.
What stays on your computer
- Claude Code keeps session transcripts in plaintext under
~/.claude/projects/and deletes them after 30 days by default. You can shorten this withcleanupPeriodDays(minimum 1 day). - Anthropic's documentation says transcripts and history "are not encrypted at rest". File permissions on your computer are the only protection, which matters on shared or managed machines.
- Transcripts of sessions you started or last continued in Claude Desktop or Cowork are kept at any age unless you set
desktopSessionCleanupPeriodDays. ~/.claude/history.jsonlkeeps every prompt you typed, and the normal cleanup doesn't remove it.- When a client engagement ends,
claude purgefollowed by the project folder deletes the local data Claude Code holds for that project.
US rules for accountants and tax preparers
If your firm prepares US tax returns, these rules apply before client data goes into any AI tool, Claude included. They are summarized here with links to the source; ask your adviser how they apply to you.
- FTC Safeguards Rule. An "accountant or other tax preparation service that is in the business of completing income tax returns" is a financial institution under the rule (16 CFR 314.2). You must oversee service providers: choose ones able to safeguard customer information, require safeguards by contract and reassess them periodically (16 CFR 314.4(f)). A service provider is anyone that "receives, maintains, processes, or otherwise is permitted access to customer information", which can include an AI tool. Firms with fewer than 5,000 consumers are exempt from some parts of the rule, but not from this one (16 CFR 314.6).
- Written information security plan. The IRS says "Federal law requires tax and accounting professionals to create and maintain a Written Information Security Plan" (IR-2026-92). Publication 5708 is a template. List your AI tools in it like any other vendor.
- Section 7216. Tax return preparers may not disclose or use tax return information without the client's consent, except where the regulations allow. Disclosure means "the act of making tax return information known to any person in any manner whatever" (26 CFR 301.7216-1). The civil penalty is $250 per disclosure or use, up to $10,000 a year (IRC 6713), and knowingly or recklessly disclosing it can also be a crime under section 7216. The regulations don't mention AI tools, so ask your adviser whether your use needs the client's written consent.
- IRS guidance on AI. In Alert 2026-19 (June 24, 2026), the IRS Office of Professional Responsibility wrote that practitioners "must strictly handle all client data using only secure, enterprise-approved AI" and that third-party AI tools "should be vetted".
- AICPA members. The Confidential Client Information Rule (ET 1.700.001) applies, and the AICPA Code covers the use of third-party service providers. Check both before client information goes to an outside tool.
- Your client agreements. Check what your engagement letters say about subcontractors and outside tools.
Claude Code settings for client work
- Use Manual mode. From Claude Code v2.1.283, auto mode is the starting permission mode in the terminal and VS Code, and Anthropic says auto mode "does not guarantee safety". Manual mode asks before most actions and is the mode Anthropic lists for sensitive work. Switch with Shift+Tab, start with
claude --permission-mode manual, or set"defaultMode": "manual"in settings (permission modes). - Explore in plan mode. Plan mode reads files and blocks edits until you approve a plan.
- Never use
bypassPermissionson a machine with client files. Anthropic says to use it only in isolated environments such as containers or VMs. - Shorten local retention with
cleanupPeriodDaysanddesktopSessionCleanupPeriodDays, or setCLAUDE_CODE_SKIP_PROMPT_HISTORYso transcripts and prompt history aren't written at all, and runclaude purgewhen an engagement ends. - Turn off optional traffic if your policy requires it. Anthropic documents environment variables such as
DISABLE_TELEMETRY=1,DISABLE_ERROR_REPORTING=1andCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC.
A practical checklist before using real data
- Learn and build on fictional data. Our sample CSV exists for this reason.
- Check your employer's or client's policy on AI tools. Many firms require an approved commercial plan.
- Review your training setting on consumer plans.
- Minimize the data. Remove account numbers, names and anything the dashboard does not need.
- Separate building from running. Once the app works, you can run it on new files without asking the AI to read them. The AI builds the tool; the tool processes the data.
- Remember local transcripts in
~/.claude/projects/on shared or managed machines.
Frequently asked questions
Can I upload confidential client data to Claude?
Not with a personal account and not before your own checks. Use a firm account on Team or Enterprise, where Anthropic does not train on your content by default; meet your obligations (FTC Safeguards Rule, your security plan, section 7216 for tax return information); send only the data the task needs; and delete local session data when the engagement ends. Then check every number.
Does Claude Code upload my files?
It sends the contents of files it reads, along with your prompts, to Anthropic to generate responses. Files it never opens are not sent.
Does Anthropic train on my Claude Code data?
On Free, Pro and Max plans, only when the model-improvement setting is on. Under commercial terms (Team, Enterprise, API), Anthropic states it does not train on Claude Code prompts or code unless the customer opts in. Checked October 21, 2026.
Can I use Claude Code with client data as a bookkeeper or accountant?
Only after checking your engagement terms, professional rules and firm policy. If you prepare US tax returns, the FTC Safeguards Rule requires you to oversee service providers, and section 7216 limits how tax return information is disclosed. Use your firm's commercial account, Manual mode and the minimum data, and test on fictional data first.
Is zero data retention available for Claude Code?
Only for qualified Claude for Enterprise accounts, enabled by Anthropic on request; it is not part of the standard plan. It covers Claude Code prompts and responses, not chat on claude.ai or Cowork.
Which permission mode should I use with client data?
Manual mode, which asks before most actions, or plan mode to explore without edits. Recent versions start in auto mode, which Anthropic says does not guarantee safety.
Turn a CSV into a working cash flow dashboard.
A self-paced Claude Code workshop for bookkeepers, accountants and FP&A: six lessons, one project, sample data with expected totals. Taught by CFO Leo Godnik.
See the six lessons — $69 → Or start with the free lesson ↗