💬 hippo: This post is part of the Claude Code Official Docs Breakdown series. The topic leans legal and can look dry at first glance, but if you use Claude Code in an enterprise environment, these details directly determine whether your deployment is compliant. Pay close attention to the authentication and credential restrictions—that is where developers most frequently get tripped up.


1. What Does This Cover?

In short, this official doc answers one core question: what legal and compliance rules apply when using Claude Code at work?

It covers four areas:

  1. Licensing terms: What licensing model applies to Claude Code, and which terms govern each plan tier?
  2. Commercial agreements: How do terms differ across access channels (direct Anthropic API, AWS Bedrock, Google Vertex)?
  3. Healthcare compliance: How do healthcare customers extend a BAA (Business Associate Agreement) to cover Claude Code?
  4. Usage policy and security: What restrictions apply to authentication? Can credentials be reused in custom tools? How should security vulnerabilities be reported?

2. Official Docs Breakdown

2.1 Licensing and Commercial Agreements

Claude Code is not open-source software. Its use is governed by two separate sets of terms, depending on your account type:

Account Type Governing Terms How to Obtain
Team, Enterprise, Claude API users Commercial Terms Anthropic Console or enterprise contract
Free, Pro, Max users Consumer Terms of Service claude.ai or Claude Code login

A key concept is the distinction between 1P (First Party) and 3P (Third Party) access:

Access Method Classification Notes
Direct Anthropic API 1P Direct connection to Anthropic; governed by Anthropic’s commercial agreement
Via AWS Bedrock 3P AWS acts as intermediary; governed by your AWS agreement
Via Google Vertex 3P Google acts as intermediary; governed by your GCP agreement

💬 hippo: Note that the official doc specifically lists only AWS Bedrock and Google Vertex as 3P channels. If you access Claude through another cloud provider, verify which terms apply separately.

Core rule: Unless otherwise agreed by both parties, your existing commercial agreement automatically extends to cover Claude Code. You do not need to sign a separate contract just to adopt it.

2.2 Healthcare Compliance (BAA + ZDR)

For healthcare organizations, this is a critical compliance point.

A BAA (Business Associate Agreement) is required under HIPAA (Health Insurance Portability and Accountability Act) to govern how third-party service providers handle healthcare data. Extending a BAA to cover Claude Code requires meeting two conditions simultaneously:

1
2
3
4
5
6
7
8
9
# Conditions for BAA coverage on Claude Code (from official docs)
conditions:
- BAA signed: Executed Business Associate Agreement with Anthropic
- ZDR active: Zero Data Retention enabled
# Note: ZDR is enabled at the organization level; each org must activate it separately

effect:
- BAA automatically extends to cover Claude Code
- Covers API traffic routed through Claude Code

What is ZDR? Zero Data Retention is an enterprise feature offered by Anthropic. Once enabled, Anthropic does not retain your API request data for model training—a standard compliance requirement in regulated sectors like healthcare and finance.

Important detail: ZDR is enabled at the organization level, not per project or per user. If your organization has multiple teams, enabling ZDR at the org level covers all of them.

2.3 Usage Policy: Authentication and Credentials

💬 hippo: This is the most easily overlooked—yet highest-risk—section of the official docs. Many developers instinctively reuse Claude Code credentials in other tools, which is explicitly prohibited under the terms.

Claude Code supports two authentication methods with completely different scopes and restrictions:

Dimension OAuth Token (Free/Pro/Max) API Key
How it’s obtained Issued automatically via claude.ai login Created via Claude Console or cloud provider
Eligible plans Free, Pro, Max plans Team, Enterprise, API plans
Allowed scope Claude Code and Claude.ai only Permitted for building products and services
Allowed with Agent SDK No Yes
Allowed in custom tools No Yes

Key restrictions:

  1. OAuth tokens are strictly limited to Claude Code and Claude.ai. You cannot use OAuth tokens in other products or tools, including Anthropic’s Agent SDK. This is a hard terms-of-service rule, not just a technical limitation.

  2. Third-party developers may not route user traffic through Free/Pro/Max credentials. In short, you cannot build an intermediary proxy service that lets end users access Claude via your Pro/Max account.

  3. Use API key authentication when building products. If you are building a product that interacts with Claude, integrate via API keys rather than repurposing consumer OAuth credentials.

  4. Anthropic reserves the right to enforce these restrictions and may take action against violations without prior notice.


3. Hippo’s Field Notes

💬 hippo: Here are a few observations and lessons from using Claude Code in enterprise environments.

3.1 Confirm the API Path Early in Procurement

On one project I worked on, the team had to confirm which route Claude Code’s API traffic would take during procurement review. That decision directly determines which commercial agreement applies—if your company already has an enterprise agreement with AWS, using Claude Code through Bedrock removes the need to negotiate a separate agreement with Anthropic.

Recommendation: Early in procurement, confirm whether API access will be direct (1P) or via a cloud provider (3P), then verify the corresponding commercial agreement version. Engineering and procurement usually need to align on this together.

3.2 Real-World Risks of Credential Misuse

I’ve seen cases where someone extracted an OAuth token from a Pro account, integrated it into an internal automation tool, and let the whole team share that token to call Claude. It looks “clever,” but it violates the Consumer Terms of Service—OAuth tokens are strictly limited to Claude Code and Claude.ai.

Consequence: Anthropic has the right to ban offending accounts without prior notice. For Pro/Max users, that means losing both your subscription access and all conversation history.

Right approach: Team usage belongs on a Team or Enterprise plan authenticated with API keys. Keep personal accounts strictly for personal use.

3.3 Pre-Deployment Compliance Checklist for Regulated Industries

If you work in healthcare or finance, review each item below before deploying Claude Code:

1
2
3
4
5
6
7
8
9
10
11
12
13
## Claude Code Compliance Summary (Ready to Share with Legal/Compliance)

**Service Provider**: Anthropic PBC
**Licensing Model**: Commercial terms (not open source)
- Team/Enterprise/API users → Anthropic Commercial Terms
- Free/Pro/Max users → Anthropic Consumer Terms of Service
**Data Retention**: Zero Data Retention supported (Enterprise account, enabled per organization)
**Security Certifications**: SOC 2 Type II and more (see trust.anthropic.com)
**Vulnerability Reporting**: HackerOne bug bounty program
**Usage Restrictions**:
- OAuth tokens are restricted to Claude Code and Claude.ai only
- Building products requires API key authentication
- Routing requests on behalf of users via Pro/Max credentials is prohibited

4. FAQ

Q: I’m an individual developer—do I need to care about any of this?

A: The terms still apply, though the main rule to watch is the OAuth token restriction. Do not reuse your login credentials in custom tools or other projects—even if it works technically, it violates the Consumer Terms of Service.

Q: How do I enable ZDR?

A: ZDR (Zero Data Retention) is an enterprise feature that requires contacting Anthropic’s sales team to activate. It is enabled at the organization level and is not available on standard individual accounts by default.

Q: Can I use my Claude Code OAuth token in a custom tool?

A: No. OAuth tokens are strictly limited to Claude Code and Claude.ai. Using them in other tools (including the Agent SDK) is a clear terms violation. Build products with API keys instead.

Q: When using AWS Bedrock or Google Vertex, does traffic still go to Anthropic?

A: Yes, Claude Code’s API requests still ultimately reach Anthropic’s services. However, your commercial terms are governed by your agreement with the cloud provider rather than a direct agreement with Anthropic.

Q: How do I report a security vulnerability?

A: Submit it via Anthropic’s HackerOne page. Do not disclose vulnerabilities publicly—using the official bug bounty channel keeps disclosure coordinated and makes you eligible for a bounty.


5. Summary

Claude Code’s legal and compliance framework boils down to three points: two sets of terms for two account tiers, automatic coverage under existing commercial agreements with no extra contract required, and the BAA + ZDR pairing for healthcare compliance. Yet the easiest rule to overlook—that OAuth tokens are strictly confined to Claude Code and Claude.ai and nowhere else—is also the one that carries the highest risk of violation.


Series Navigation


Based on the official Legal and Compliance - Claude Code Docs.

Last updated: 2026-03-31