← Claude Docs

Legal and compliance - Claude Code Docs

Claude Docs · April 28, 2026
Claude Code usage is governed by existing commercial agreements for API, AWS Bedrock, or Google Vertex customers, and Healthcare Business Associate Agreements automatically extend to Claude Code if Zero Data Retention is activated. Authentication is handled through OAuth tokens for individual subscription plan users and API keys for developers, with Anthropic prohibiting third-party developers from offering Claude.ai login on behalf of users. Usage must comply with Anthropic's Usage Policy, and security vulnerabilities can be reported through HackerOne.

Detailed Analysis

Anthropic's official Claude Code documentation establishes a layered legal framework governing the use of its AI-powered coding assistant, distinguishing between consumer and commercial users while aligning Claude Code's terms with existing Anthropic agreements. Users on Free, Pro, and Max subscription plans are subject to Anthropic's Consumer Terms of Service, while Team, Enterprise, and direct API users fall under Commercial Terms. Notably, Anthropic clarifies that whether developers access Claude Code through the Claude API directly or through cloud provider integrations such as AWS Bedrock or Google Vertex AI, their pre-existing commercial agreements automatically extend to cover Claude Code usage, eliminating the need for separate contractual arrangements in most cases.

The documentation addresses healthcare compliance through a specific provision for Business Associate Agreements (BAAs), a regulatory requirement under HIPAA for entities handling protected health information. Anthropic specifies that a BAA will automatically extend to Claude Code only when two conditions are simultaneously met: the customer must have an executed BAA and must have Zero Data Retention (ZDR) activated. ZDR, which prevents Anthropic from storing user inputs and model outputs, operates on a per-organization basis, meaning each organizational unit must independently enable it to receive coverage. This granular approach to compliance reflects the increasing pressure AI companies face to meet enterprise-grade regulatory standards, particularly as AI coding tools expand into healthcare, finance, and other regulated industries.

A particularly significant aspect of the compliance documentation concerns authentication and credential use, where Anthropic draws a firm line between consumer and developer contexts. OAuth authentication is explicitly restricted to individual subscribers of Claude plans (Free, Pro, Max, Team, Enterprise) for personal use of Anthropic's native applications. Developers building third-party products or services — including those leveraging the Agent SDK — are required to use API key authentication through the Claude Console or a supported cloud provider. Anthropic explicitly prohibits third-party developers from offering "Claude.ai login" as an authentication option or routing requests through consumer-tier credentials on behalf of their own users. The company reserves the right to enforce these restrictions without prior notice, signaling that enforcement, not merely policy disclosure, is an active concern.

This documentation reflects a broader trend across the AI industry: the formalization of legal and compliance infrastructure as AI tools move from developer-facing experiments into enterprise and regulated-sector deployments. Anthropic's approach mirrors what has emerged from competitors like OpenAI and Google DeepMind, where API terms, data retention policies, and authentication controls have become battlegrounds for trust, liability, and competitive differentiation. The explicit separation of consumer OAuth flows from API-key-based developer access suggests Anthropic is actively working to prevent credential misuse and cost arbitrage, where third-party developers could theoretically exploit cheaper consumer plans to power commercial applications at scale — a pattern that has plagued other API-driven platforms.

The publication of this legal framework within Claude Code's technical documentation, rather than solely within Anthropic's standard legal pages, also represents a deliberate product strategy. By embedding compliance guidance directly into the developer-facing documentation, Anthropic reduces friction for enterprise buyers conducting due diligence while simultaneously setting clear expectations for developers building on the platform. The inclusion of trust and safety resources through the Anthropic Trust Center and Transparency Hub, alongside a formal HackerOne-managed security vulnerability reporting program, indicates that Anthropic is positioning Claude Code not merely as a productivity tool but as an enterprise-grade product accountable to the security and compliance standards that large organizational customers demand.

Read original article →