{"name":"--no-session-persistence","slug":"no-session-persistence","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Disable session persistence so sessions are not saved to disk and cannot be resumed. Print mode only. The [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](\/docs\/en\/env-vars) environment variable does the same in any mode","description_source":"docs","described_by":{"doc":"claude-code\/cli-reference","title":"CLI reference"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":{"version":"2.1.281","released_at":"2026-09-23 17:01:17","spans":1}},"aliases":[],"entries":[{"version":"2.1.296","anchor":"stream-json-startup-failure-is-reported-as-a-synthetic-assis","heading":"Programs driving Claude Code over stream-json get a message when startup fails","line":"When Claude Code fails to start under `--input-format` stream-json, it can answer with a \"Claude Code didn't start\" message and a result","released_at":"2026-10-09 16:58:10","reason":"found in this entry's text"},{"version":"2.1.281","anchor":"no-session-persistence-check-moved-earlier-and-now-applied","heading":"--no-session-persistence check moved earlier and now applied immediately","line":"`--no-session-persistence` is checked earlier and takes effect at once, and `--managed-settings` and setting sources are passed to child processes","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.116","anchor":"session-retention-cleanup","heading":"Session Retention Cleanup","line":null,"released_at":"2026-04-20 19:24:52","reason":"found in this entry's text"}],"entries_total":3,"docs":[{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":true},{"source":"claude-code","path":"best-practices","title":"Best practices for Claude Code","documented":false},{"source":"claude-code","path":"claude-directory","title":"Explore the .claude directory","documented":false},{"source":"claude-code","path":"glossary","title":"Glossary","documented":false},{"source":"claude-code","path":"mcp","title":"Connect Claude Code to tools via MCP","documented":false},{"source":"claude-code","path":"sessions","title":"Manage sessions","documented":false}],"docs_total":6,"gates":[],"related":[{"name":"--no-browser","slug":"no-browser","description":"Option of `claude mcp login <name>`, which authenticates with an MCP server (HTTP, SSE or claude.ai connector). With it no browser is opened, so you use the printed authorization URL yourself. For HTTP and SSE servers you then paste the redirect URL back at the prompt (stdin must be a terminal); for a claude.ai connector you authorize on claude.ai and it appears in the next session. Meant for SSH or headless use."},{"name":"--no-check-expiry","slug":"no-check-expiry","description":"decode-token prints a session token's claims, verifying signature and expiry by default."},{"name":"--no-chrome","slug":"no-chrome","description":"Disable [Chrome browser integration](\/docs\/en\/chrome) for this session"},{"name":"--no-ext-diff","slug":"no-ext-diff","description":"Many more git commands now run with a scrubbed environment so stray variables can't redirect them."},{"name":"--no-home-settings","slug":"no-home-settings","description":"You now decide separately whether cloud sessions may use your plugins and your local settings."},{"name":"--no-post","slug":"no-post","description":"Ultra review adds --post and --no-post, so findings go to the PR as a comment from you."},{"name":"--no-publish","slug":"no-publish","description":"Plugin eval now writes report.html and publishes it to claude.ai unless you pass --no-publish."},{"name":"--no-scaffold","slug":"no-scaffold","description":"Option of `claude plugin eval`. Skips each case's `scaffold_script`, which is also the default when neither `--scaffold` nor `--no-scaffold` is passed; `--scaffold` turns it on and prints a note that the script runs as you."},{"name":"--no-textconv","slug":"no-textconv","description":"Many more git commands now run with a scrubbed environment so stray variables can't redirect them."},{"name":"--no-verify","slug":"no-verify","description":"decode-token prints a session token's claims, verifying signature and expiry by default."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/no-session-persistence","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}