Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
829 changes: 418 additions & 411 deletions content/.metadata.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/blog/engineering/claude-code-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Claude performs dramatically better when it can verify its own work, like run te

| Strategy | Before | After |
| --- | --- | --- |
| **Provide verification criteria** | _”implement a function that validates email addresses"_ | _"write a validateEmail function. example test cases: [[email protected]](https://www.anthropic.com/cdn-cgi/l/email-protection#126761776052776a737f627e773c717d7f) is true, invalid is false, [[email protected]](https://www.anthropic.com/cdn-cgi/l/email-protection#2e5b5d4b5c6e004d4143) is false. run the tests after implementing”_ |
| **Provide verification criteria** | _”implement a function that validates email addresses"_ | _"write a validateEmail function. example test cases: [[email protected]](https://www.anthropic.com/cdn-cgi/l/email-protection#c2b7b1a7b082a7baa3afb2aea7eca1adaf) is true, invalid is false, [[email protected]](https://www.anthropic.com/cdn-cgi/l/email-protection#2b5e584e596b05484446) is false. run the tests after implementing”_ |
| **Verify UI changes visually** | _”make the dashboard look better"_ | _"[paste screenshot] implement this design. take a screenshot of the result and compare it to the original. list differences and fix them”_ |
| **Address root causes, not symptoms** | _”the build is failing"_ | _"the build fails with this error: [paste error]. fix it and verify the build succeeds. address the root cause, don’t suppress the error”_ |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ If you’re interested in joining Anthropic’s engineering team, visit our [car

## Related content

### Anthropic’s Long-Term Benefit Trust appoints Vas Narasimhan to Board of Directors

[Read more](https://www.anthropic.com/news/narasimhan-board)

### Anthropic expands partnership with Google and Broadcom for multiple gigawatts of next-generation compute

[Read more](https://www.anthropic.com/news/google-broadcom-partnership-compute)

### Australian government and Anthropic sign MOU for AI safety and research

[Read more](https://www.anthropic.com/news/australia-MOU)

### Anthropic invests $100 million into the Claude Partner Network

We’re launching the Claude Partner Network, a program for partner organizations helping enterprises adopt Claude.

[Read more](https://www.anthropic.com/news/claude-partner-network)
10 changes: 4 additions & 6 deletions content/blog/news/claude-code-on-team-and-enterprise.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,14 @@ To explore how Claude for Enterprise can transform your organization's productiv

## Related content

### Anthropic’s Long-Term Benefit Trust appoints Vas Narasimhan to Board of Directors

[Read more](https://www.anthropic.com/news/narasimhan-board)

### Anthropic expands partnership with Google and Broadcom for multiple gigawatts of next-generation compute

[Read more](https://www.anthropic.com/news/google-broadcom-partnership-compute)

### Australian government and Anthropic sign MOU for AI safety and research

[Read more](https://www.anthropic.com/news/australia-MOU)

### Anthropic invests $100 million into the Claude Partner Network

We’re launching the Claude Partner Network, a program for partner organizations helping enterprises adopt Claude.

[Read more](https://www.anthropic.com/news/claude-partner-network)
10 changes: 4 additions & 6 deletions content/blog/news/claude-code-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,14 @@ To learn more, visit [claude.com/solutions/claude-code-security](http://claude.c

## Related content

### Anthropic’s Long-Term Benefit Trust appoints Vas Narasimhan to Board of Directors

[Read more](https://www.anthropic.com/news/narasimhan-board)

### Anthropic expands partnership with Google and Broadcom for multiple gigawatts of next-generation compute

[Read more](https://www.anthropic.com/news/google-broadcom-partnership-compute)

### Australian government and Anthropic sign MOU for AI safety and research

[Read more](https://www.anthropic.com/news/australia-MOU)

### Anthropic invests $100 million into the Claude Partner Network

We’re launching the Claude Partner Network, a program for partner organizations helping enterprises adopt Claude.

[Read more](https://www.anthropic.com/news/claude-partner-network)
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,14 @@ These updates are available now for Claude Code users.

## Related content

### Anthropic’s Long-Term Benefit Trust appoints Vas Narasimhan to Board of Directors

[Read more](https://www.anthropic.com/news/narasimhan-board)

### Anthropic expands partnership with Google and Broadcom for multiple gigawatts of next-generation compute

[Read more](https://www.anthropic.com/news/google-broadcom-partnership-compute)

### Australian government and Anthropic sign MOU for AI safety and research

[Read more](https://www.anthropic.com/news/australia-MOU)

### Anthropic invests $100 million into the Claude Partner Network

We’re launching the Claude Partner Network, a program for partner organizations helping enterprises adopt Claude.

[Read more](https://www.anthropic.com/news/claude-partner-network)
163 changes: 163 additions & 0 deletions content/en/api/claude-code/routines-fire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# Trigger a routine via API

Start a Claude Code routine session on demand by sending an authenticated POST request.

---

<Warning>
This is an experimental API. Request and response shapes, rate limits, and token semantics may change. Breaking changes ship behind new dated beta header versions, and the two previous header versions continue to work so that callers have time to migrate.
</Warning>

[Claude Code](https://code.claude.com/docs) is Anthropic's agentic coding tool. [Claude Code on the web](https://code.claude.com/docs/en/claude-code-on-the-web) runs Claude Code sessions on Anthropic-managed cloud infrastructure at claude.ai/code, and a [routine](https://code.claude.com/docs/en/routines) is a saved configuration there: a prompt, one or more repositories, and connectors, packaged so it can run unattended on a schedule, in response to GitHub events, or when called over HTTP.

This endpoint is the HTTP entry point. POSTing to it starts a new run of an existing routine and returns the resulting session ID and URL. Typical callers are alerting systems, CI pipelines, and internal tools that need to start a Claude Code session programmatically.

Calling this endpoint requires a claude.ai account on a Pro, Max, Team, or Enterprise plan with [Claude Code on the web](https://code.claude.com/docs/en/claude-code-on-the-web) enabled. Authenticate with a per-routine bearer token created in the Claude Code web UI rather than an Anthropic API key.

## Differences from the Claude Platform

The routine fire endpoint belongs to the Claude Code product surface, which differs from the Claude Platform APIs and SDKs in a few ways:

| Aspect | This endpoint | Other Anthropic APIs |
| :--- | :--- | :--- |
| Authentication | `Authorization: Bearer` with a per-routine token (`sk-ant-oat01-...`) created at [claude.ai/code/routines](https://claude.ai/code/routines) | `x-api-key` with an Anthropic API key from Claude Console |
| Token scope | One routine only; no read access | Workspace-level |
| SDK support | None | Available in all [client SDKs](/docs/en/api/client-sdks) |
| Billing | Claude Code subscription usage on claude.ai | Claude Platform usage |
| Path namespace | `/v1/claude_code/...` | `/v1/...` |
| Stability | Experimental; requires `anthropic-beta: experimental-cc-routine-2026-04-01` | Stable or standard beta |

## Before you begin

To call this endpoint, you need:

1. A routine created at [claude.ai/code/routines](https://claude.ai/code/routines)
2. A bearer token generated for that routine: open the routine for editing, click **Add another trigger** under **Select a trigger**, choose **API**, then click **Generate token** in the modal. The token is shown once and cannot be retrieved later.

See [Add an API trigger](https://code.claude.com/docs/en/routines#add-an-api-trigger) in the Claude Code documentation for the full setup walkthrough.

## Trigger a routine

```http
POST https://api.anthropic.com/v1/claude_code/routines/{routine_id}/fire
```

Every request must include the `anthropic-beta: experimental-cc-routine-2026-04-01` header. Requests without it return `400 invalid_request_error`.

The Claude Code web UI provides the full URL alongside the token when you add an API trigger, so most integrations store both as secrets and call the endpoint directly. The examples below show a shell call and a GitHub Actions step that triggers the routine on CI failure.

```bash Shell
curl -X POST https://api.anthropic.com/v1/claude_code/routines/$ROUTINE_ID/fire \
-H "Authorization: Bearer $ROUTINE_TOKEN" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: experimental-cc-routine-2026-04-01" \
-H "Content-Type: application/json" \
-d '{"text": "Sentry alert SEN-4521 fired in prod. Stack trace attached."}'
```

```yaml GitHub Actions
- if: failure()
env:
ROUTINE_FIRE_URL: ${{ secrets.ROUTINE_FIRE_URL }}
ROUTINE_FIRE_TOKEN: ${{ secrets.ROUTINE_FIRE_TOKEN }}
run: |
curl -X POST "$ROUTINE_FIRE_URL" \
-H "Authorization: Bearer $ROUTINE_FIRE_TOKEN" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: experimental-cc-routine-2026-04-01" \
-H "Content-Type: application/json" \
-d "{\"text\": \"CI failed: $GITHUB_WORKFLOW run $GITHUB_RUN_ID on $GITHUB_REF\"}"
```

The request returns once the session is created. It does not stream session output or wait for the session to complete.

### Headers

| Name | Required | Description |
| :--- | :--- | :--- |
| `Authorization` | Yes | `Bearer <token>`. The per-routine token created in the Claude Code web UI, prefixed `sk-ant-oat01-`. |
| `anthropic-beta` | Yes | Must include `experimental-cc-routine-2026-04-01`. |
| `anthropic-version` | Yes | The [API version](/docs/en/api/versioning), for example `2023-06-01`. |
| `Content-Type` | When body is present | `application/json`. |

### Path parameters

| Name | Type | Description |
| :--- | :--- | :--- |
| `routine_id` | string | The routine's identifier. Despite the parameter name, the value is prefixed `trig_` rather than `routine_`. Included in the URL the modal shows when you add an API trigger. |

### Request body

| Field | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| `text` | string | No | Initial context for this run, such as an alert body, a failing log line, or a git diff. The value is freeform text and is not parsed; if you send JSON or another structured payload, the routine receives it as a literal string. Passed to the routine alongside its saved prompt. Maximum 65,536 characters. |

The body is optional. Unknown fields in the body are ignored.

### Response

A successful request returns `200 OK` with the new session details:

```json
{
"type": "routine_fire",
"claude_code_session_id": "session_01HJKLMNOPQRSTUVWXYZ",
"claude_code_session_url": "https://claude.ai/code/session_01HJKLMNOPQRSTUVWXYZ"
}
```

| Field | Type | Description |
| :--- | :--- | :--- |
| `type` | string | Always `routine_fire`. |
| `claude_code_session_id` | string | The ID of the Claude Code session created for this run. |
| `claude_code_session_url` | string | A link to the session on claude.ai. Open it in a browser to watch the run, review changes, or continue the conversation. |

### Errors

Errors use the standard Anthropic [error envelope](/docs/en/api/errors):

```json
{
"type": "error",
"error": {
"type": "not_found_error",
"message": "<string>"
}
}
```

| HTTP status | Error type | Cause |
| :--- | :--- | :--- |
| 400 | `invalid_request_error` | Missing or invalid `anthropic-beta` header, `text` exceeds 65,536 characters, or the routine is [paused](https://code.claude.com/docs/en/routines#edit-and-control-routines). |
| 401 | `authentication_error` | No bearer token in the `Authorization` header, or the token does not match this routine. |
| 403 | `permission_error` | The account or organization does not have access to this endpoint. |
| 404 | `not_found_error` | The routine does not exist. |
| 429 | `rate_limit_error` | The account's routine run limit or usage limit has been reached. The response includes a `Retry-After` header indicating when the window resets. |
| 500 | `api_error` | An unexpected server error. |
| 503 | `overloaded_error` | The service is temporarily overloaded. Retry after a short delay. The Claude Platform returns 529 for this error type; this endpoint returns 503. |

## Authentication

The bearer token is scoped to a single routine. A compromised token can only trigger that routine; it grants no read access, no access to other routines, and no access to account data.

Generate and revoke tokens from the routine's API trigger settings at [claude.ai/code/routines](https://claude.ai/code/routines). There is no public API for token management. Generating a new token revokes the previous one.

## Idempotency

Each successful request creates a new session. There is no idempotency key. If a webhook caller retries, the endpoint creates multiple sessions.

## Rate limits

Routine runs count against a per-account daily allowance that varies by plan, and the resulting sessions draw down the same Claude Code subscription usage as interactive sessions. When either limit is reached, the endpoint returns `429 rate_limit_error` with a `Retry-After` header. Organizations with extra usage enabled continue past the included allowance on metered overage.

Your remaining daily runs are shown at [claude.ai/code/routines](https://claude.ai/code/routines). For how routine usage interacts with subscription limits and extra usage billing, see [Usage and limits](https://code.claude.com/docs/en/routines#usage-and-limits) in the Claude Code documentation.

## SDK support

This endpoint is not in the Anthropic SDKs. Its token model differs from API key authentication, and typical callers such as CI jobs and alerting webhooks send the request directly.

## See also

- [Automate work with routines](https://code.claude.com/docs/en/routines) in the Claude Code documentation
- [Beta headers](/docs/en/api/beta-headers)
- [Errors](/docs/en/api/errors)
2 changes: 1 addition & 1 deletion content/en/api/php/beta.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/agents.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/agents/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/agents/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/agents/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/agents/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/agents/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/agents/versions.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/agents/versions/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/environments.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/environments/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/environments/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/environments/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/environments/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/environments/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/environments/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/files.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/files/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/files/download.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/files/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/files/retrieve_metadata.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/files/upload.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/batches.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/batches/cancel.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/batches/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/batches/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/batches/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/batches/results.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/batches/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/count_tokens.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/messages/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/models.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/models/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/models/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/events.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/events/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/events/send.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/events/stream.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/resources.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/resources/add.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/resources/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/resources/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/resources/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/resources/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/sessions/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/versions.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/versions/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/versions/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/versions/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/skills/versions/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/credentials.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/credentials/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/credentials/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/credentials/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/credentials/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/credentials/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/credentials/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/beta/vaults/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/completions.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/completions/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/batches.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/batches/cancel.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/batches/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/batches/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/batches/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/batches/results.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/batches/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/count_tokens.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/messages/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/models.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/models/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/php/models/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/agents.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/agents/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/agents/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/agents/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/agents/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/agents/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/agents/versions.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/agents/versions/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/environments.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/environments/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/environments/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/environments/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/environments/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/environments/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/environments/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/files.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/files/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/files/download.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/files/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/files/retrieve_metadata.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/files/upload.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/batches.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/batches/cancel.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/batches/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/batches/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/batches/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/batches/results.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/batches/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/count_tokens.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/messages/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/models.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/models/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/models/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/events.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/events/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/events/send.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/events/stream.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/resources.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/resources/add.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/resources/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/resources/list.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/resources/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/sessions/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/versions.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/versions/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/versions/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/versions/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/skills/versions/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/archive.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/credentials.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/credentials/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/credentials/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/credentials/list.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/credentials/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/beta/vaults/update.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/completions.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/completions/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/batches.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/batches/cancel.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/batches/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/batches/delete.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/batches/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/batches/results.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/batches/retrieve.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/count_tokens.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/messages/create.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/models.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/models/list.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion content/en/api/terraform/models/retrieve.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions content/en/docs/claude-code/claude-code-on-the-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Cloud sessions need access to your GitHub repositories to clone code and push br
| **GitHub App** | Install the Claude GitHub App on specific repositories during [web onboarding](/en/web-quickstart). Access is scoped per repository. | Teams that want explicit per-repo authorization |
| **`/web-setup`** | Run `/web-setup` in your terminal to sync your local `gh` CLI token to your Claude account. Access matches whatever your `gh` token can see. | Individual developers who already use `gh` |

Either method works. [`/schedule`](/en/web-scheduled-tasks) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](/en/web-quickstart#connect-from-your-terminal) for the `/web-setup` walkthrough.
Either method works. [`/schedule`](/en/routines) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](/en/web-quickstart#connect-from-your-terminal) for the `/web-setup` walkthrough.

The GitHub App is required for [Auto-fix](#auto-fix-pull-requests), which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories.

Expand Down Expand Up @@ -744,7 +744,7 @@ Before relying on cloud sessions for a workflow, account for these constraints:

## Related resources

* [Schedule tasks on the web](/en/web-scheduled-tasks): automate recurring work like daily PR reviews and dependency audits
* [Routines](/en/routines): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](/en/hooks): run scripts at session lifecycle events
* [Settings reference](/en/settings): all configuration options
* [Security](/en/security): isolation guarantees and data handling
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/claude-code/claude-directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ The following paths are not covered by automatic cleanup and persist indefinitel
Transcripts and history are not encrypted at rest. OS file permissions are the only protection. If a tool reads a `.env` file or a command prints a credential, that value is written to `projects/<project>/<session>.jsonl`. To reduce exposure:

* Lower `cleanupPeriodDays` to shorten how long transcripts are kept
* In non-interactive mode, pass `--no-session-persistence` alongside `-p` to skip writing transcripts entirely. In the Agent SDK, set `persistSession: false`. There is no interactive-mode equivalent.
* Set the [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](/en/env-vars) environment variable to skip writing transcripts and prompt history in any mode. In non-interactive mode, you can instead pass `--no-session-persistence` alongside `-p`, or set `persistSession: false` in the Agent SDK.
* Use [permission rules](/en/permissions) to deny reads of credential files

### Clear local data
Expand Down
Loading
Loading