Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

56 pages for lasts.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

optimizing-for-cost-and-intelligence Claude Developer Platform · in the page about-claude/models/optimizing-for-cost-and-intelligence …h-claude/message-threads), in beta, stop the resending while a thread lasts. They lower time to first token, not cost: the model still reads the whole conversation, so keep `cache_control` on every re… message-threads Claude Developer Platform · in the page build-with-claude/message-threads …s to outlive your process, keep your own copy. ### How long a thread lasts A thread is best-effort and short-lived. Each time the API stores a response, it sets how long to keep the thread. You can’… working-with-messages Claude Developer Platform · in the page build-with-claude/working-with-messages …thread no more than 1 hour after its last use (see [How long a thread lasts](https://platform.claude.com/docs/en/build-with-claude/message-threads#lifetime)). ### System role in messages To add a ne… get-api-key Claude Developer Platform · in the page get-api-key …the key and choose its settings: * **Expires:** how long the key lasts. You can’t change it later (see [Key expiration](https://platform.claude.com/docs/en/manage-claude/api-keys#key-expiration)… api-keys Claude Developer Platform · in the page manage-claude/api-keys …custom dates to that maximum and doesn’t offer **Never**. If the key lasts at least 3 days, Anthropic emails the key’s creator before it expires. After a key expires, requests made with it return a… credential-for-each-customer Claude Developer Platform · in the page manage-claude/oauth-apps/linked-billing/credential-for-each-customer …ling/errors). ## Refresh the OAuth tokens A customer’s access token lasts at most 1 hour. Before it expires, send the customer’s refresh token to the token endpoint for a new pair of tokens. Each re… errors Claude Developer Platform · in the page manage-claude/oauth-apps/linked-billing/errors …ange the same code again. This refusal doesn’t use up the code, which lasts 5 minutes. | Check | `error_description` | Fix | | ----- | ----- | ----- | | The app has an operator service account | `the… self-hosted-sandboxes-per-session Claude Developer Platform · in the page managed-agents/self-hosted-sandboxes-per-session …l after an automatic upgrade to the next minor version. The exclusion lasts at most until the end of support for the cluster’s minor version. Before it ends, upgrade the cluster yourself with the step… Track cost and usage Claude Code CLI · in the page agent-sdk/cost-tracking …ing at the end of the final turn before emitting the result. The wait lasts up to the cap described in [background tasks at exit](https://code.claude.com/docs/en/headless.md#background-tasks-at-exit).… Share session output as artifacts Claude Code CLI · in the page artifacts …load the page. * **The viewer declined the permission ask**: a denial lasts for the rest of that page load. Reloading the page brings the permission ask back. * **Connector calls are turned off for th… Best practices for Claude Code Claude Code CLI · in the page best-practices …The [prompt cache](https://code.claude.com/docs/en/prompt-caching.md) lasts about an hour on a subscription and five minutes on an API key, cloud provider, or usage credits. Subagents get five minutes… Claude Code changelog Claude Code CLI · in the page changelog …`unload`, when the mod's plugin is turned off or uninstalled * Added `lasts: "transcript"` to `$.state.set`, so a mod's value comes back on resume and fork, follows a rewind and survives compaction *… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …rver-managed-settings.md#approval-memory) covers how long an approval lasts and when the dialog appears again. Claude Code applies some delivered `env` variables without showing the developer the app… Let Claude coordinate ongoing work with Projects Claude Code CLI · in the page claude-projects …project A project is worth creating when the work has a goal that outlasts one session and keeps producing tasks. These kinds of work suit a project well: * **One goal across many repositories**: "B… Environment variables Claude Code CLI · in the page env-vars …g off ## Set environment variables A variable you set in your shell lasts for that terminal session, while a variable in a settings file applies every time `claude` runs. ### In your shell Set the… Error reference Claude Code CLI · in the page errors …ly this rule and sends the token request over plain HTTP. That choice lasts until you exit and applies to every server. The v1 runtime also skips the [issuer check](#issuer-mismatch-in-authorization-r… Speed up responses with fast mode Claude Code CLI · in the page fast-mode …ve set [per-session opt-in](#require-per-session-opt-in), that choice lasts across sessions on the Anthropic API until you turn fast mode off or turn it on with another model. Whenever a model switch… Fullscreen rendering Claude Code CLI · in the page fullscreen …ect it. Long sessions may pause for a moment while this happens. This lasts until you exit transcript mode with `Esc` or `q`, which returns you to fullscreen rendering. The next `Ctrl+o` starts fresh.… Run Claude Code programmatically Claude Code CLI · in the page headless …ng else resolves. > [!NOTE] > > The `--permission-prompts none` flag lasts for one run. To deny calls that would wait on a permission prompt in later runs too, set [`permissions.denyInsteadOfPromptin… Set up Claude Code (local mode) for a HIPAA-ready organization Claude Code CLI · in the page hipaa-setup …remain after `/login` to a different organization | The HIPAA status lasts until Claude Code restarts | ### Anthropic credentials in commands, hooks, and MCP servers With the HIPAA configuration ap… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …set them [in your shell](#set-as-shell-environment-variables), which lasts for one terminal session, or [in a Claude Code settings file](#set-in-a-settings-file), which persists everywhere Claude Cod… Deploy managed settings Claude Code CLI · in the page managed-settings …ttings come from Anthropic's servers, and an edit to the local cache [lasts only until the next successful fetch](https://code.claude.com/docs/en/server-managed-settings.md#security-considerations). *… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …e connector is connected. To check right away, press Enter. The wait lasts up to 10 minutes. If you need longer, finish on claude.ai and run the command again. **4. Load the connector's tools** In… Model configuration Claude Code CLI · in the page model-config …an also answer the mid-session prompt on your device, and that answer lasts for that session. Answering on your device requires Claude Code v2.1.323 or later. The mid-session prompt waits until you a… Configure permissions Claude Code CLI · in the page permissions …modification approval isn't saved to the file: as the table shows, it lasts until the session ends. In some cases, such as outside a git repository or on Windows, Claude Code doesn't use the repositor… Use the mods API Claude Code CLI · in the page plugins/mods/api …he number of breakpoints have these limits: * **TTL**: a cache entry lasts five minutes after its last use. The TTL comes from the user's Claude Code settings, not from the call. For one hour, set [`… Create a mod Claude Code CLI · in the page plugins/mods/create …d reload at the end of each turn that changes their code. Your answer lasts for the session, including after you resume it. * **Not now**: nothing loads for now. The files stay where Claude wrote them… Draw in the interface with a mod Claude Code CLI · in the page plugins/mods/interface …ount')`. [Keep state](#keep-state) covers how long each kind of value lasts. ## Pick where to draw To choose the render site a `ui.render` hook draws in, pass a filter, called a [matcher](https://co… Configure the sandboxed Bash tool Claude Code CLI · in the page sandboxing …=0`, which lifts the restriction for every program on the machine and lasts until you reboot Then restart Claude Code and [confirm the sandbox works](#confirm-commands-run-inside-the-sandbox). Until… Customize sessions in self-hosted environments Claude Code CLI · in the page self-hosted-environments-configuration …n waits here, the first reply is slower. To change how long this wait lasts, set [`CLAUDE_CODE_MCP_STARTUP_WAIT_MS`](https://code.claude.com/docs/en/env-vars) in the runner's environment. It doesn't c… Configure server-managed settings Claude Code CLI · in the page server-managed-settings …ng-behavior), such as `model` or a variable added to the `env` block, lasts until relaunch | | User deletes the cached settings file | [First-launch behavior](#fetch-and-caching-behavior) occurs | | U… Create custom subagents Claude Code CLI · in the page sub-agents …main session. When you answer one of those prompts with a choice that lasts beyond that one tool call, such as a grant that lasts for the rest of the session, Claude Code applies your answer to the wh… Tools reference Claude Code CLI · in the page tools-reference …sdk/overview.md), the limit applies per turn, not per session. A turn lasts from a message you send until Claude finishes responding. The limit resets when you send the next message after that or star… Orchestrate subagents at scale with dynamic workflows Claude Code CLI · in the page workflows …rkflow launch](#approve-the-plan-before-it-runs) `/effort ultracode` lasts for the current session; to have every session start with it, set the [`ultracode`](https://code.claude.com/docs/en/settings… Cloud storage in the Claude Science desktop app Claude Documentation · in the page claude-science/cloud-storage …ou approve a **Credentials** card that names it. By default, approval lasts for the conversation, but Claude Science can still ask about code that uses the credential. See [What auto mode checks](http… Claude Science desktop app Claude Documentation · in the page claude-science/overview …el: * **Continue with usage credits** sends the message. Your answer lasts five hours in that session, or until Claude Science restarts. Then Claude Science asks again, and the session waits. If nobo… Run the Claude Science desktop app on a remote Linux server Claude Documentation · in the page claude-science/run-on-remote-linux-server …8001 [email protected] ``` Leave that terminal open; the tunnel lasts as long as the SSH connection. If you work on the server through VS Code's Remote-SSH extension, it forwards ports automatic… Tools and environments in the Claude Science desktop app Claude Documentation · in the page claude-science/tools-and-environments …stalled inline in a code cell (`pip install` or `install.packages()`) lasts only until the kernel restarts. To keep a package, ask Claude to install it into the environment. For a Python package Claud… Troubleshoot the Claude Science desktop app Claude Documentation · in the page claude-science/troubleshooting …ain." instead, sign out and sign in again the same way. Your sign-in lasts a limited time. In the last three days before it expires, Claude Science shows a notice that says when it expires. Select **… Federated agent access Claude Documentation · in the page claude-tag/admins/federated-access/overview …ion in the console. These lifetimes then apply: | What | How long it lasts | | :- | :- | | A removed connection | Claude stops using a removed gateway at once, and a removed cloud role or authorizati… Troubleshoot Claude Tag in channels and DMs Claude Documentation · in the page claude-tag/users/troubleshooting …ganization runs Claude's sessions on its own infrastructure, the wait lasts until that infrastructure starts the session. The second message means the session didn't start at all. The failure is usua… Changelog Claude Documentation · in the page cowork/changelog …tentionDays` and Free up space: an idle chat or Cowork task no longer lasts one more period each time a person turns a connector or tool on or off. Renaming, pinning or moving it to a project no longe… Connect Claude Code to Claude for Government Claude Documentation · in the page government/deploy-claude-code/configure …such as `claude -p` apply the settings without prompting. A sign-in lasts until the organization's [Session idle timeout](https://claude.com/docs/government/config/settings.md#session-idle-timeout)… Data storage and retention Claude Documentation · in the page office-agents/data-storage …ime and the document's file path or URL if it has one. A copy that outlasts the batch stays, with no time limit, until the pane opens in a document that holds the same identifier or a later such batch… Manage Claude Code in the terminal from the Enterprise Admin Console Claude Documentation · in the page third-party/claude-desktop/admin-console-claude-code …e settings apply only while the developer is signed in, and a sign-in lasts up to about a month. Without a file, a developer can sign in to another organization, or not sign in at all. See [Require th… Deploy Claude Desktop on 3P with Amazon Bedrock Claude Documentation · in the page third-party/claude-desktop/bedrock …hours. This value sets how long each set of temporary AWS credentials lasts before the app requests a new set from IAM Identity Center. It does not control how often users sign in. Sign-in frequency f… Configuration reference Claude Documentation · in the page third-party/claude-desktop/configuration …that Claude makes needs approval; the prompt offers no approval that lasts for the session or longer. A plugin's [hook](https://claude.com/docs/third-party/claude-desktop/extensions.md#plugin-hooks)… Configuration changelog Claude Documentation · in the page third-party/claude-desktop/configuration-changelog …cheduled Cowork task's approval to delete files in one of its folders lasts, and `0` turns that approval off. Where it is unset, that approval lasts 30 days, and a task's other approvals still have no… Deploy Claude Desktop on 3P with an LLM gateway Claude Documentation · in the page third-party/claude-desktop/gateway …docs/en/claude-apps-gateway) configures. The setting is temporary. It lasts until Claude Code removes its built-in safety check, so use it only until your gateway meets [the requirements](#gateway-req… Scheduled tasks in Claude Desktop on 3P Claude Documentation · in the page third-party/claude-desktop/scheduled-tasks …sh unattended, the user answers each prompt once with the option that lasts: * **Connector tools**: the user chooses **Allow for all scheduled runs** in Cowork or **Always allow** in Code, or **Allow…
Feedback