Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

1,054 pages for script.

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

Anthropic's marketplaces Claude Code CLI · in the page plugins/anthropic-marketplaces …-to-anthropics-directory). To install from the desktop app or from a script, or to see what a cloud session loads, see [Install plugins](/docs/en/plugins/install.md). ### Add the community or demo m… Recommend your plugin from your CLI Claude Code CLI · in the page plugins/cli-hints …for a plugin named `example-cli` in the official marketplace: ```javascript Node.js theme={null} if (process.env.CLAUDECODE) { process.stderr.write( '<claude-code-hint v="1" type="plugin" value… Plugin commands reference Claude Code CLI · in the page plugins/cli-reference …ou run plugin commands either as `claude plugin` from your shell or a script, or as `/plugin` and `/reload-plugins` inside a Claude Code session. This reference gives each command's flags, defaults, o… Code intelligence plugins Claude Code CLI · in the page plugins/code-intelligence …ugins-official/tree/main/plugins/swift-lsp) | `sourcekit-lsp` | | TypeScript and JavaScript | [`typescript-lsp`](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/typescript-lsp)… Add components to a plugin Claude Code CLI · in the page plugins/components …ubagent * A hook that formats files after Claude edits them, and the `scripts/` folder it calls * A log monitor * An output style and a color theme * A route-audit workflow * A `hello-plugin` executab… Create a Claude Code plugin Claude Code CLI · in the page plugins/create …e-plugin/plugin.json theme={null} { "name": "my-first-plugin", "description": "A greeting plugin to learn the basics", "version": "1.0.0", "author": { "name": "Your Name" } } ``` The fo… Create a marketplace Claude Code CLI · in the page plugins/create-marketplace …ugin/marketplace.json theme={null} { "name": "my-marketplace", "description": "Plugins for my team", "owner": { "name": "Your Name" }, "plugins": [ { "name": "my-first-plugin",… Plugin dependencies Claude Code CLI · in the page plugins/dependencies …straint, use an object with these fields, each a string: | Field | Description | | :- | :- | | `name` | The dependency's plugin name, as it appears in its marketplace entry. Claude Code looks it up i… Host and maintain a marketplace Claude Code CLI · in the page plugins/host-marketplace …evel bin/ directory`. Keep executables in another directory, such as `scripts/`, and reference them as `${CLAUDE_PLUGIN_ROOT}/scripts/<name>` from your hooks or MCP server configs [Sync your organiza… Install and manage plugins Claude Code CLI · in the page plugins/install …Review what the plugin adds** The details pane shows the plugin's description. It can also show: * **Will install**: the commands, agents, skills, hooks, and MCP and LSP servers the plugin adds. *… Plugin loading reference Claude Code CLI · in the page plugins/loading …NTHROPIC_AUTH_TOKEN`, `CLAUDE_CODE_OAUTH_TOKEN`, or an `apiKeyHelper` script supplies the credential in place of that sign-in * A session that doesn't [fetch feature flags from Anthropic](/docs/en/env… Plugin manifest reference Claude Code CLI · in the page plugins/manifest-reference …y-tools", "displayName": "Deploy Tools", "version": "1.2.0", "description": "Deployment commands, a review agent, and a status monitor", "author": { "name": "Example Team", "email": "d… Marketplace reference Claude Code CLI · in the page plugins/marketplace-reference …quires Claude Code v2.1.275 or later. * **Member names that every JavaScript object has**: `constructor`, `hasOwnProperty`, `isPrototypeOf`, `propertyIsEnumerable`, `toLocaleString`, `toString`, and `… Measure plugin cost and usage Claude Code CLI · in the page plugins/measure …ns. Every session where a plugin is enabled includes the names and descriptions of its skills, agents, and commands in Claude's context, and those tokens count against the user's usage whether or not… Manage mods for your organization Claude Code CLI · in the page plugins/mods/admin …ude --plugin-dir ./first-mod`. The mod's hooks don't run, and the transcript and the debug log have the [guard's message](/docs/en/plugins/mods/troubleshoot.md#messages-from-the-built-in-guard), which… Use the mods API Claude Code CLI · in the page plugins/mods/api …s a `/standup` command that takes an optional number of days: ```javascript theme={null} on('session.start', async ($, e, next) => { // Add /standup to the command list, with the description the us… Create a mod Claude Code CLI · in the page plugins/mods/create # Create a mod > Have Claude write a Claude Code mod from a description, or write one yourself that counts tool calls and adds a command. Learn the reload and validate loop. A mod is a Claude Code [… React to events with a mod Claude Code CLI · in the page plugins/mods/events …n `next(e)`. This hook logs each tool Claude is about to use: ```javascript theme={null} on('tool.call', async ($, e, next) => { // Runs before the tool does $.ui.log('Claude is about to use ' +… Interface gallery for mods Claude Code CLI · in the page plugins/mods/gallery …ins/mods/interface.md#pick-where-to-draw) is a sidebar beside the transcript in a wide fullscreen terminal, or a framed region above the prompt otherwise. **1. Create the mod** Create a directory na… Draw in the interface with a mod Claude Code CLI · in the page plugins/mods/interface …a pane as a sidebar on the right, a toast at the top right of the transcript, a log line in the transcript, a band above the prompt, and a status line under the prompt. A mod can redraw messages, tool… Mods overview Claude Code CLI · in the page plugins/mods/overview ….md) that changes how Claude Code looks and behaves. It's made of JavaScript or TypeScript event handlers: Claude Code calls one when an event happens, such as a tool call, a submitted prompt, or a pa… Mods reference Claude Code CLI · in the page plugins/mods/reference …extension as of v2.1.299. Each entry gives the name and a one-line description, and links to the guide section that explains it where there is one. > [!NOTE] > > The complete reference is Claude Cod… Test a mod Claude Code CLI · in the page plugins/mods/test …Code's place. Save it as `first-mod/tests/first-mod.test.ts`: ```typescript first-mod/tests/first-mod.test.ts theme={null} import { expect, test } from 'claude-code/testing' test('/tally reports the… Troubleshoot a mod Claude Code CLI · in the page plugins/mods/troubleshoot …session that hot-reloads a plugin directory**: a dim line in the transcript. That's an interactive session you started with `--plugin-dir`, or one where you [enabled hot reloading](/docs/en/plugins/m… Manage Claude Code plugins for your organization Claude Code CLI · in the page plugins/org …gins/mods/admin.md): turn off or limit mods, the plugins that run JavaScript inside Claude Code * [Server-managed settings](/docs/en/server-managed-settings.md): deliver these keys from the claude.ai… Plugins overview Claude Code CLI · in the page plugins/overview …in/plugin.json`, gives the plugin its name and can add a version, a description, and other [metadata](/docs/en/plugins/manifest-reference.md). The components are what the plugin adds to Claude Code, s… Publish and distribute a plugin Claude Code CLI · in the page plugins/publish …e-and-copied-plugins). **5. Fill in the metadata users see** Set `description`, `author`, `homepage`, and `repository` in `plugin.json`, and add a `README.md` at the plugin root. `homepage` must par… Recommend plugins for your org Claude Code CLI · in the page plugins/relevance …orm-helpers", "source": "./plugins/terraform-helpers", "description": "Your organization's Terraform conventions and helpers", "relevance": { "topic": "Terraform", "s… Plugin security and trust Claude Code CLI · in the page plugins/security …*Mods**: a plugin's [mod](/docs/en/plugins/mods/overview.md) runs JavaScript inside Claude Code with your permissions. To list what a mod does before you install it, see [Decide whether to trust a mod… Troubleshoot plugins Claude Code CLI · in the page plugins/troubleshooting …) in its `marketplace.json` is one of the member names that every JavaScript object has, such as `constructor`, `toString`, or `valueOf`. Claude Code reserves those names, so it refuses the add and re… How Claude Code uses prompt caching Claude Code CLI · in the page prompt-caching …, Sonnet 5.5, Haiku 5.5, and Fable 5.1 with an API key or a Claude subscription, the cache stays intact by default. See [Changing effort level](#changing-effort-level) below. > [!TIP] > > Pick your m… Prompt library Claude Code CLI · in the page prompt-library …docs'], prompt: 'create a {tool} using HTML, CSS, and vanilla JavaScript, then open it in my browser', slots: { tool: 'drag-and-drop Kanban board with three columns' }, src: 'tea… Quickstart Claude Code CLI · in the page quickstart …l or command prompt open * A code project to work with * A [Claude subscription](https://claude.com/pricing?utm_source=claude_code\&utm_medium=docs\&utm_content=quickstart_prereq) (Pro, Max, Team, or… Continue local sessions from any device with Remote Control Claude Code CLI · in the page remote-control …ontrol, confirm that your environment meets these conditions: * **Subscription**: available on Pro, Max, Team, and Enterprise plans. API keys are not supported. On Team and Enterprise, an Owner must… Automate work with scheduled tasks Claude Code CLI · in the page routines …For example, a PR review task can run nightly, trigger from a deploy script, and also react to every new PR. A scheduled task doesn't need a schedule: * A task with only an API trigger runs when yo… Choose a sandbox environment Claude Code CLI · in the page sandbox-environments …erating system, hosted by Anthropic | No | None; requires a Claude subscription, and a connected GitHub account unless you launch with `claude --cloud` | The [sandboxed Bash tool](/docs/en/sandboxing… Configure the sandboxed Bash tool Claude Code CLI · in the page sandboxing …try covers `npm ci` * **Claude Code matches the text of the call**: a script or `make` target that calls `docker` internally doesn't match, and neither does `/usr/local/bin/docker` * **Some calls stay… Run prompts on a schedule Claude Code CLI · in the page scheduled-tasks …hen you ask for a dynamic `/loop` schedule. Monitor runs a background script and streams each output line back, which avoids polling altogether and is often more token-efficient and responsive than re… Security Claude Code CLI · in the page security …oposed changes to critical files 4. Use virtual machines (VMs) to run scripts and make tool calls, especially when interacting with external web services 5. Report suspicious behavior with `/feedback`… Catch security issues as Claude writes code Claude Code CLI · in the page security-guidance …r: "Multi-tenant code must filter by org_id." ``` | Field | Type | Description | | :- | :- | :- | | `rule_name` | string | Identifier shown in the warning | | `reminder` | string | Warning text appen… Self-hosted environments Claude Code CLI · in the page self-hosted-environments …ts, goes to `api.anthropic.com`, and Anthropic stores the session transcript so you can resume the session from another [supported surface](#availability-and-limitations). When a runner [sends model r… Customize sessions in self-hosted environments Claude Code CLI · in the page self-hosted-environments-configuration …vironments > Customize self-hosted environment sessions with wrapper scripts for per-session credentials, lifecycle hooks, and on-demand runner spawning. > [!NOTE] > > Self-hosted environments are i… Deploy self-hosted environments to production Claude Code CLI · in the page self-hosted-environments-deploy …a session, such as push or API tokens, per session from your [wrapper script](/docs/en/self-hosted-environments-configuration.md#wrapper-scripts). The initial clone happens before the wrapper runs, so… Verify session identity in self-hosted environments Claude Code CLI · in the page self-hosted-environments-identity …session presents the token like any bearer credential; for example, a script Claude runs can call your service with `curl -H "Authorization: Bearer $CLAUDE_CODE_SESSION_ACCESS_TOKEN"`. Anthropic signs… Self-hosted environments quickstart Claude Code CLI · in the page self-hosted-environments-quickstart …essions](/docs/en/self-hosted-environments-configuration.md): wrapper scripts, lifecycle hooks, on-demand runners, MCP servers, and permissions * [Test end to end](/docs/en/self-hosted-environments-te… Self-hosted environments reference Claude Code CLI · in the page self-hosted-environments-reference …liseconds, not the 15-minute default. | Flag | Env var | Default | Description | | :- | :- | :- | :- | | `--api-url <url>` | none | `https://api.anthropic.com` | API base URL. Override only for testi… Test self-hosted environments end to end Claude Code CLI · in the page self-hosted-environments-testing …session with the CLI, read Claude's replies through a Stop hook, and script the full loop. > [!NOTE] > > Self-hosted environments are in public beta on Team and Enterprise plans; [Availability and l… Configure server-managed settings Claude Code CLI · in the page server-managed-settings …se the same format as in `settings.json`. This example runs an audit script after every file edit across the organization: ```json theme={null} { "hooks": { "PostToolUse": [ { "m… Manage sessions Claude Code CLI · in the page sessions …me`, `--from-pr`, the `/resume` picker, session naming, exporting transcripts, and where transcripts are stored. A [session](/docs/en/glossary.md#session) is a saved conversation tied to a project di… Claude Code settings Claude Code CLI · in the page settings …pports a number of options: | Key | Description…
Feedback