Search the documentation
6 pages for localsettings.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…names the key each source accepts and the version floors. * Pass `"localSettings"` to write the project's local settings file, as in `await session.updateSettings("localSettings", { outputStyle: "E…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…suggestions from the CLI. Bash prompts include a suggestion with the `localSettings` destination, so returning it in `updated_permissions` writes the rule to `.claude/settings.local.json` and persists…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…ttings[K] | null; }): Promise<void>; updateSettings( source: 'localSettings' | 'userSettings', settings: Record<string, unknown>, ): Promise<void>; initializationResult(): Promise<SDKC…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…one back in `updatedPermissions` to apply it. A suggestion with the `localSettings` destination writes the rule to `.claude/settings.local.json` so future sessions skip the prompt for matching calls.…
Hooks reference
Claude Code CLI · in the page
hooks
…rf node_modules" }], "behavior": "allow", "destination": "localSettings" } ] } ``` #### PermissionRequest decision control `PermissionRequest` hooks can allow or deny permission re…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…: where the hook is defined: `"userSettings"`, `"projectSettings"`, `"localSettings"`, `"flagSettings"`, `"policySettings"`, or `"pluginHook"` * `safe_mode`: `"true"` when the session was started with…