509 pages for limits.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Give Claude custom tools
Claude Code CLI · in the page
agent-sdk/custom-tools
…[as written](https://code.claude.com/docs/en/permissions.md#bash-rule-limits). | To remove a built-in from Claude's context, omit it from `tools` or list its bare name in `disallowedTools` (TypeScrip…
Intercept and control agent behavior with hooks
Claude Code CLI · in the page
agent-sdk/hooks
…call to `C:\project\.env`. > [!WARNING] > > The `Write|Edit` matcher limits this hook to the Write and Edit tools. If Claude writes `.env` with a Bash command, the hook doesn't run. To block Bash wri…
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…the SDK inside a sandboxed container for process isolation, resource limits, network control, and an ephemeral filesystem. Questions to answer when choosing a provider: * **Who runs the sandbox**:…
Connect to external tools with MCP
Claude Code CLI · in the page
agent-sdk/mcp
…t exceeds maximum allowed tokens The SDK applies the same MCP output limits as Claude Code. When a successful tool result with no image content is larger than 25,000 tokens, Claude Code saves the out…
Agent SDK overview
Claude Code CLI · in the page
agent-sdk/overview
…oes not allow third party developers to offer claude.ai login or rate limits for their products, including agents built on the Claude Agent SDK. Use the API key authentication methods described in the…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…[as written](https://code.claude.com/docs/en/permissions.md#bash-rule-limits) are denied in every permission mode, including `bypassPermissions`. Other `Bash` calls, including `/bin/rm`, fall through…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…[as written](https://code.claude.com/docs/en/permissions.md#bash-rule-limits). See [Permissions](https://code.claude.com/docs/en/agent-sdk/permissions.md#allow-and-deny-rules) | | `enable_file_checkpo…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…oes not allow third party developers to offer claude.ai login or rate limits for their products, including agents built on the Claude Agent SDK. Use the API key authentication methods described in thi…
Securely deploying AI agents
Claude Code CLI · in the page
agent-sdk/secure-deployment
…esn't match](https://code.claude.com/docs/en/permissions.md#bash-rule-limits) and [Configure permissions](https://code.claude.com/docs/en/agent-sdk/permissions.md). Administrators can also set rules i…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…dle Claude Code v2.1.219 or later. On earlier releases, some of these limits are missing or default differently, so upgrade before you rely on them to bound a run. The [environment variable reference]…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…//code.claude.com/docs/en/agent-sdk/modifying-system-prompts.md). ## Limits * **Maximum tools:** 10,000 tools in your catalog * **Search results:** returns up to five most relevant tools per search…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…[as written](https://code.claude.com/docs/en/permissions.md#bash-rule-limits). See [Permissions](https://code.claude.com/docs/en/agent-sdk/permissions.md#allow-and-deny-rules) | | `effort` | `'low' \|…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…rently available in subagents spawned via the Agent tool * **Question limits**: each `AskUserQuestion` call supports 1-4 questions with 2-4 options each ## Other ways to get user input The `canUseTo…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…hoose-a-display-mode), the entry says so: * **`tools`**: Claude Code limits the teammate to the tools in the definition's `tools` list. For an in-process teammate, Claude Code adds `SendMessage` to t…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…view is in research preview with the following limitations: * **Rate limits apply**: background sessions consume your subscription usage the same as interactive sessions, so running ten agents in par…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…ache token counts stay at zero, check [supported models, regions, and limits](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html#prompt-caching-models) in the Amazon Bedrock docu…
Track team usage with analytics
Claude Code CLI · in the page
analytics
…sts effectively](https://code.claude.com/docs/en/costs.md): set spend limits and optimize token usage * [Permissions](https://code.claude.com/docs/en/permissions.md): configure roles and permissions
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…nstead. See [Page constraints](#page-constraints) for the full set of limits. ## Create an artifact Claude may publish an artifact on its own when the output suits a page, or you can ask for one dir…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…ch the rule](https://code.claude.com/docs/en/permissions.md#bash-rule-limits), so it isn't checkpointed. For a checkpoint that inspects the full command text, add a [PreToolUse hook](https://code.clau…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…ions about the parts you haven't pinned down: per-user versus per-key limits, what happens to requests over the limit, what's out of scope. It keeps asking until the answers add up to a spec. Once `S…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ed `claude -p` started by a session's script or hook waiting out rate limits, because it inherited the session's own retry setting * Fixed the spend limit menu reporting a changed limit when the serve…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…aude.com/docs/en/claude-apps-gateway-deploy.md#postgres). With [spend limits](https://code.claude.com/docs/en/claude-apps-gateway-spend-limits.md), it also holds durable spend, audit, and identity tab…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…y sign in * [`admin`](#admin): Admin API auth and retention for spend limits * [`enforcement`](#enforcement): spend-limit fail-open or fail-closed behavior * [`pricing`](#pricing): contracted rates an…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…uest appears to come from the proxy's IP, which collapses per-IP rate limits into one shared bucket and records the proxy's IP in audit events. Don't redirect requests bound for the gateway's device-…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…list, then walks the chain past trusted hops, so per-IP sign-in rate limits and audit events record developer IPs instead of the load balancer's. On both tracks the front end is an internal ALB, whe…
Deploy Claude apps gateway on Google Cloud
Claude Code CLI · in the page
claude-apps-gateway-on-gcp
…list, then walks the chain past trusted hops, so per-IP sign-in rate limits and audit events record developer IPs instead of the load balancer's. Set `trusted_proxies` to match your front end. An ex…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…on it or steer it from any device. It counts toward your plan's usage limits alongside the rest of your Claude and Claude Code usage, and there's no separate charge for the cloud VM. To let cloud ses…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…, shown by `/release-notes`. Refreshed in the background. | | `policy-limits.json` | Cached feature policy settings for your organization. Only present for some account types. Refreshed automatically.…
Let Claude coordinate ongoing work with Projects
Claude Code CLI · in the page
claude-projects
…run a few at a time](#tune-how-claude-runs-a-project), and drop those limits once a few threads come back the way you want. ### Send work and read results Claude decides where each message you send…
claude-tag
Claude Code CLI · in the page
claude-tag
…="flex whitespace-pre-wrap group font-semibold" id="billing-and-spend-limits" aria-labelledby="_R_p9deehkd74t9_"><a href="#billing-and-spend-limits" class="anchor-link" aria-label="Navigate to header:…
CLI reference
Claude Code CLI · in the page
cli-reference
…[as written](https://code.claude.com/docs/en/permissions.md#bash-rule-limits). A rule naming [`EndConversation`](https://code.claude.com/docs/en/tools-reference#endconversation-tool-behavior) can't re…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…services](#run-tests-start-services-and-add-packages), the [resource limits](#resource-limits) each VM gets, and the [time limits](#time-limits) on long-running work. > [!NOTE] > > Sessions your org…
Run tool calls from code with Code Mode
Claude Code CLI · in the page
code-mode
…ations Before you turn on Code Mode, check that you can accept these limits: * **Resuming**: you can resume a Code Mode session only in the terminal, with Code Mode on * **Auto mode**: auto mode's c…
Customize Code Review
Claude Code CLI · in the page
code-review-customize
…ill-file)), and a Markdown link to another file isn't an include. * **Limits**: include at most eight different files, and keep `REVIEW.md` and the files it includes under 150,000 bytes combined. A fi…
Review locally with /code-review
Claude Code CLI · in the page
code-review-local
…[Ultrareview](https://code.claude.com/docs/en/ultrareview.md): setup, limits, and cost of the deeper cloud review * [Commands](https://code.claude.com/docs/en/commands.md): the one-line reference for…
Troubleshoot Code Review
Claude Code CLI · in the page
code-review-troubleshooting
…age](https://code.claude.com/docs/en/code-review-costs.md): the spend limits behind a budget message * [Customize Code Review](https://code.claude.com/docs/en/code-review-customize.md): which copy of…
Commands
Claude Code CLI · in the page
commands
…| Show session cost, plan usage limits, and activity stats. On a Pro, Max, Team, or Enterprise plan, includes a [breakdown of what counts against your plan limits…
Manage costs effectively
Claude Code CLI · in the page
costs
# Manage costs effectively > Track token usage, set team spend limits, and reduce Claude Code costs with context management, model selection, extended thinking settings, and preprocessing hooks. Cla…
Message your other Claude Code sessions
Claude Code CLI · in the page
cross-session-messaging
…session is idle, Claude Code starts a new turn with the notice. #### Limits If no notice arrives within 12 hours, Claude Code drops the subscription and tells Claude, so it doesn't keep waiting. Ea…
Debug your configuration
Claude Code CLI · in the page
debug-your-config
…ons.md) and [hooks](https://code.claude.com/docs/en/hooks.md) enforce limits regardless of what Claude decides. Use CLAUDE.md for "we do it this way here." Use permissions or hooks for security bounda…
Desktop application
Claude Code CLI · in the page
desktop
…with a short background request that counts toward your plan's usage limits or your API costs. * **Use the suggestion**: press **Tab** or **Right arrow** to place it in the prompt box, edit it if yo…
Development containers
Claude Code CLI · in the page
devcontainer
…ics/claude-code/blob/main/.devcontainer/init-firewall.sh) script that limits outbound traffic to the destinations the script allows. Running a firewall inside a container requires extra permissions, s…
Environment variables
Claude Code CLI · in the page
env-vars
…tputmaxchars) setting, Claude Code ignores this variable. See [Output limits](/docs/en/tools-reference#output-limits)…
Error reference
Claude Code CLI · in the page
errors
…You've hit your Opus limit` / `You've hit your Sonnet limit` | [Usage limits](#youve-hit-your-session-limit) | | `Usage credits required for 1M context` | [Usage limits](#usage-credits-required-for-1m…
Speed up responses with fast mode
Claude Code CLI · in the page
fast-mode
…able via usage credits only and not included in the subscription rate limits. ## Toggle fast mode On Agent Platform, `/fast` and the `fastMode` setting work differently, so follow [Use fast mode on…
Feature availability
Claude Code CLI · in the page
feature-availability
…e [availability table](#availability-by-subscription-plan). For usage limits and pricing, see the [Claude pricing page](https://claude.com/pricing). ## Model availability For which Claude models and…
Run Claude Code through a gateway
Claude Code CLI · in the page
gateways
…ude.ai login stays the active credential, so the subscription's usage limits and billing apply. [Other LLM gateways](https://code.claude.com/docs/en/llm-gateway#subscriptions-and-gateways) covers that…
Claude Code GitHub Actions
Claude Code CLI · in the page
github-actions
…e the official app. For details on how the Claude Code GitHub Action limits what Claude can do with these permissions, see the [security documentation](https://github.com/anthropics/claude-code-actio…
Use Claude Code GitHub Actions with cloud providers
Claude Code CLI · in the page
github-actions-cloud-providers
…n.actions.githubusercontent.com`, and add an attribute condition that limits the pool to your repository > * Create a dedicated service account with only the `Vertex AI User` role, which is `roles/aip…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…cs/en/prompt-caching.md#choose-the-ttl-yourself). To raise your rate limits, contact Google Cloud support. When using Google Cloud's Agent Platform, the `/logout` command is unavailable since authent…