Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude
Overview
Formal seals the Claude Desktop chat session cookie (sessionKey on .claude.ai) before Claude Desktop stores it.
For the Code tab, see Seal Claude Code OAuth Tokens.
Intercept Claude Desktop
Enable Transparent Mode on macOS.
Transparent Mode blocks QUIC by default. Keep it blocked so the Endpoint can intercept Claude Desktop chat.
In Network Rules, create an active rule with the following CEL.
Leave Forward to Connector unset to seal on the Endpoint.
In Policies, create an active policy with this Rego policy:
package formal.v2import future.keywords.ifcookie_targets := [ {"kind": "cookie", "name": "sessionKey"}, {"kind": "cookie", "name": "sessionKeyV3"}]response := { "action": "encrypt", "targets": cookie_targets, "reason": "Seal Claude Desktop session cookies"} if { input.resource.hostname == "claude.ai"}request := { "action": "decrypt", "targets": cookie_targets, "reason": "Open Claude Desktop session cookies"} if { input.resource.hostname == "claude.ai"}request := { "action": "decrypt", "targets": [{"kind": "header", "name": "Authorization"}], "reason": "Open Claude Desktop session key sent to Anthropic API"} if { input.resource.hostname == "api.anthropic.com"}
Verify: Sign out of Claude Desktop and sign in again with Transparent Mode running.
Confirm the policy appears for requests to both hosts in Logs.
Send a chat message and confirm it succeeds.
Cookies issued before the policy was active are not sealed retroactively.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Formal Documentation","colors":{"primary":"#254BB0","light":"#8FA9FF","dark":"#21449A"},"logo":{"light":"https://mintcdn.com/formal/sSa8LAaTycTeA9sv/assets/logos/light.svg?fit=max\u0026auto=format\u0026n=sSa8LAaTycTeA9sv\u0026q=85\u0026s=071e123e7f14cf72c82a9ddd8199c976","dark":"https://mintcdn.com/formal/sSa8LAaTycTeA9sv/assets/logos/dark.svg?fit=max\u0026auto=format\u0026n=sSa8LAaTycTeA9sv\u0026q=85\u0026s=6ce53129f9632700ef53029541f2315d"},"favicon":"https://mintcdn.com/formal/sSa8LAaTycTeA9sv/assets/favicon.svg?fit=max\u0026auto=format\u0026n=sSa8LAaTycTeA9sv\u0026q=85\u0026s=130d9f6b9630a091c81b9861be4c35cd","api":{"playground":{"display":"simple","proxy":false}},"background":{"color":{"light":"#FFFFFF","dark":"#0B1020"}},"navbar":{"links":[{"href":"https://www.joinformal.com/blog/","label":"Blog"},{"href":"mailto:support@joinformal.com","label":"Support"}],"primary":{"type":"button","label":"Control Plane","href":"https://app.formal.ai"}},"footer":{"socials":{"x":"https://x.com/joinformal","github":"https://github.com/formalco","linkedin":"https://linkedin.com/company/formalhq"}},"fonts":{"heading":{"family":"JetBrains Mono","weight":600},"body":{"family":"Inter"}},"styling":{"codeblocks":{"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}},"latex":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"formal","hasAudioNarration":false,"actualSubdomain":"formal","customDomains":["docs.formal.ai"],"gitSource":{"type":"github","owner":"formalco","repo":"product-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10c0829ffae5051c404cbe"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b11ed1ca63b6d97b102c1f3","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"Reference","count":433},{"language":"default","tag":"API","count":423},{"language":"default","tag":"Solutions","count":106},{"language":"default","tag":"Products","count":95},{"language":"default","tag":"MCP Gateway","count":82},{"language":"default","tag":"MCP servers","count":75},{"language":"default","tag":"Resource","count":56},{"language":"default","tag":"core.v1.ResourceService","count":56},{"language":"default","tag":"Connectors","count":52},{"language":"default","tag":"core.v1.ConnectorService","count":52}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"690910a1a24419e70db3241a","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"How do I create access policies?","status":"active","generatedBy":"manual","createdAt":"2025-11-03T20:29:21.521Z","updatedAt":"2025-11-03T20:29:21.521Z","__v":0},{"_id":"69091085a24419e70db3227e","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"What resources can I protect?","status":"active","generatedBy":"manual","createdAt":"2025-11-03T20:28:53.869Z","updatedAt":"2025-11-03T20:29:00.423Z","__v":0},{"_id":"6909107ba24419e70db321e2","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"How do I deploy a Connector?","status":"active","generatedBy":"manual","createdAt":"2025-11-03T20:28:43.537Z","updatedAt":"2025-11-03T20:28:43.537Z","__v":0}],"googleFontsInlined":true},"customCss":[{"filePath":"docs/global.css","content":":root{--formal-bg: #ffffff;--formal-band: #f5f6f9;--formal-border: #dfe2e8;--formal-ink: #0b1020;--formal-text-dim: #464c5c;--formal-text-muted: #687083;--formal-accent: #254bb0;--formal-accent-dim: #21449a;--formal-mono: \"JetBrains Mono\", \"SF Mono\", \"Cascadia Code\", \"Fira Code\", monospace}.dark{--formal-bg: #0b1020;--formal-band: #121a30;--formal-border: #26304a;--formal-ink: #e8ebf3;--formal-text-dim: #c3c9d8;--formal-text-muted: #9aa3ba;--formal-accent: #8fa9ff;--formal-accent-dim: #a9bdff}#navbar-transition,#navbar .border-b{border-color:var(--formal-border)}#navbar .navbar-link a,.nav-tabs-item,#topbar-cta-button a{font-family:var(--formal-mono);font-size:12px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}#topbar-cta-button a>span:first-child{border-radius:0;background:#254bb0;border:1px solid #254bb0;box-shadow:3px 3px 0 #0b1020;transition:transform 0.15s ease, box-shadow 0.15s ease}.dark #topbar-cta-button a>span:first-child{box-shadow:3px 3px 0 #000}#topbar-cta-button a:hover>span:first-child{opacity:1;background:#21449a;transform:translate(1px, 1px);box-shadow:2px 2px 0 #0b1020}#topbar-cta-button a{font-weight:600}#search-bar-entry,#search-bar-entry-mobile,#page-context-menu button,#navbar button{border-radius:0}.sidebar-group-header,#table-of-contents nav>h2,#table-of-contents nav>div:first-child{font-family:var(--formal-mono);font-size:11px;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--formal-text-muted)}#sidebar-content li>a,#sidebar-content button{border-radius:0}#sidebar-content li[data-active=\"true\"]>a{box-shadow:inset 2px 0 0 var(--formal-accent)}.eyebrow{font-family:var(--formal-mono);font-size:12px;letter-spacing:0.1em;text-transform:uppercase;color:var(--formal-accent)}#page-title,.prose :is(h1,h2,h3,h4){letter-spacing:-0.03em}#page-title{color:var(--formal-ink)}.card,.callout,.code-block,.code-group,.accordion,[data-component-part=\"accordion-group\"],.tabs,.steps,.prose img,.prose table,#content :is(input,select,textarea),#content [class*=\"rounded-2xl\"],#content [class*=\"rounded-xl\"]{border-radius:0!important}.card{border-color:var(--formal-border)!important;transition:border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease}a.card:hover,.card:has(>a):hover,a:hover>.card{border-color:var(--formal-ink)!important;box-shadow:3px 3px 0 var(--formal-ink)}.callout{border-left-width:3px}.code-block{border-color:var(--formal-border)}.prose :not(pre)>code{border-radius:3px}#footer{border-color:var(--formal-border)}.mcp-server-page span[data-as=\"p\"]{display:block;margin:1rem 0}.mcp-server-page h2{margin-top:3rem}.mcp-server-tabs{border:1px solid rgba(107, 114, 128, 0.18);border-radius:8px;background:rgba(107, 114, 128, 0.025);padding:12px 16px 16px;margin:16px 0 24px}.dark .mcp-server-tabs{border-color:rgba(156, 163, 175, 0.16);background:rgba(156, 163, 175, 0.025)}.mcp-server-meta{display:flex;flex-direction:column;align-items:flex-start;gap:0.5rem;margin:0 0 1.5rem;font-size:0.875rem}.mcp-server-meta a::after{content:\"\\2197\";margin-left:0.15em}#page-title .mcp-title-logo{display:inline-block;width:0.9em;height:0.9em;margin:0 0.3em 0 0;vertical-align:-0.08em}#content:has(>.mcp-server-page){margin-top:0.75rem}.mcp-auth-summary{color:rgb(var(--primary));font-weight:600}.dark .mcp-auth-summary{color:rgb(var(--primary-light))}.mcp-auth-summary::selection,.mcp-auth-summary *::selection{background-color:rgb(var(--primary));color:#fff}.dark .mcp-auth-summary::selection,.dark .mcp-auth-summary *::selection{background-color:rgb(var(--primary-light));color:#fff}.dark img[aria-hidden=\"true\"][src$=\"/client-icons/openai.svg\"],.dark img[aria-hidden=\"true\"][src$=\"/client-icons/cursor.svg\"],.dark img[aria-hidden=\"true\"][src$=\"/client-icons/github-copilot.svg\"]{filter:invert(1)}"}]}
{"page":{"pagePath":"docs/guides/example-use-cases/seal-claude-desktop-session-cookies","slug":"/docs/guides/example-use-cases/seal-claude-desktop-session-cookies","pageMetadata":{"$schema":"schemas/docs.schema.yaml","title":"Seal Claude Desktop session cookies","description":"Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude","icon":"lock","href":"/docs/guides/example-use-cases/seal-claude-desktop-session-cookies"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`Formal seals the Claude Desktop chat session cookie (`,_jsx(_components.code,{children:`sessionKey`}),` on `,_jsx(_components.code,{children:`.claude.ai`}),`) before Claude Desktop stores it.\nFor the Code tab, see `,_jsx(_components.a,{href:`/docs/guides/example-use-cases/seal-claude-code-oauth-tokens`,children:`Seal Claude Code OAuth Tokens`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`intercept-claude-desktop`,children:`Intercept Claude Desktop`}),`\n`,_jsxs(_components.p,{children:[`Enable `,_jsx(_components.a,{href:`/docs/guides/client-apps/transparent-mode`,children:`Transparent Mode`}),` on macOS.\nTransparent Mode `,_jsx(_components.a,{href:`/docs/guides/client-apps/configuration#configuring-transparent-mode-on-startup`,children:`blocks QUIC by default`}),`. Keep it blocked so the Endpoint can intercept Claude Desktop chat.\nIn `,_jsx(_components.a,{href:`https://app.formal.ai/network-rules`,children:`Network Rules`}),`, create an active rule with the following CEL.\nLeave `,_jsx(_components.strong,{children:`Forward to Connector`}),` unset to seal on the Endpoint.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`cel`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`cel`,children:_jsxs(_components.code,{language:`cel`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"condition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pre_tcp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: port `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 443`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pre_tls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: hostname `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"claude.ai\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hostname `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api.anthropic.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"post_tls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"outputs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`seal-the-session-cookies`,children:`Seal the session cookies`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.a,{href:`https://app.formal.ai/policies`,children:`Policies`}),`, create an active policy with this Rego policy:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`32`,language:`rego`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`rego`,children:_jsxs(_components.code,{language:`rego`,numberOfLines:`32`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`package`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` formal.v2`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` future.keywords.if`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`cookie_targets `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cookie\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sessionKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cookie\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sessionKeyV3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"encrypt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"targets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: cookie_targets,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Seal Claude Desktop session cookies\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.resource.hostname `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"claude.ai\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`request `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"decrypt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"targets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: cookie_targets,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Open Claude Desktop session cookies\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.resource.hostname `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"claude.ai\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`request `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"decrypt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"targets\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"header\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Open Claude Desktop session key sent to Anthropic API\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.resource.hostname `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api.anthropic.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Verify:`}),` Sign out of Claude Desktop and sign in again with Transparent Mode running.\nConfirm the policy appears for requests to both hosts in `,_jsx(_components.a,{href:`https://app.formal.ai/logs`,children:`Logs`}),`.\nSend a chat message and confirm it succeeds.\nCookies issued before the policy was active are not sealed retroactively.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}},"config":{},"pageMetadata":{"$schema":"schemas/docs.schema.yaml","title":"Seal Claude Desktop session cookies","description":"Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude","icon":"lock","href":"/docs/guides/example-use-cases/seal-claude-desktop-session-cookies"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Intercept Claude Desktop","slug":"intercept-claude-desktop","depth":2,"children":[]},{"title":"Seal the session cookies","slug":"seal-the-session-cookies","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/formal/95bf6302f158143a/changelog-anchors.js","/_mintlify/custom/formal/1fc14acb665ed213/unify.js","/_mintlify/custom/formal/70b3ea987ce3606f/mcp-title-logo.js"],"subdomain":"formal","siteName":"Formal Documentation","title":"Seal Claude Desktop session cookies - Formal Documentation","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"contextualStarterQuestions":[{"_id":"6b0e35b2f1fd3150e4224df9","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"What is Transparent Mode used for?","status":"active","generatedBy":"contextual","path":"docs/guides/example-use-cases/seal-claude-desktop-session-cookies","createdAt":"2026-12-01T02:49:22.871Z","updatedAt":"2026-12-01T02:49:22.871Z","__v":0},{"_id":"6b0e35b2f1fd3150e4224df8","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"How do I seal session cookies?","status":"active","generatedBy":"contextual","path":"docs/guides/example-use-cases/seal-claude-desktop-session-cookies","createdAt":"2026-12-01T02:49:22.871Z","updatedAt":"2026-12-01T02:49:22.871Z","__v":0},{"_id":"6b0e35b2f1fd3150e4224dfa","deploymentId":"68f143cf25a9e16daec4ddf1","questionText":"Which cookies should I encrypt?","status":"active","generatedBy":"contextual","path":"docs/guides/example-use-cases/seal-claude-desktop-session-cookies","createdAt":"2026-12-01T02:49:22.871Z","updatedAt":"2026-12-01T02:49:22.871Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-29T05:44:27.297Z","originalFileLocation":"docs/guides/example-use-cases/seal-claude-desktop-session-cookies.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude\">\u003cmeta data-mint-head name=\"application-name\" content=\"Formal Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Seal Claude Desktop session cookies - Formal Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Formal Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://formal.mintlify.site/_mintlify/api/og/v2?division=Control\u0026amp;title=Seal+Claude+Desktop+session+cookies\u0026amp;description=Replace+Claude+Desktop+session+cookies+with+sealed+values+that+cannot+be+used+directly+against+Claude\u0026amp;theme=50a5fdefa194af684ea65dc9\u0026amp;signature=732adc2e6e341887d7919c6dec549ba59f79d3c4f7bbec524639ed583eb1fb6c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Seal Claude Desktop session cookies - Formal Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://formal.mintlify.site/_mintlify/api/og/v2?division=Control\u0026amp;title=Seal+Claude+Desktop+session+cookies\u0026amp;description=Replace+Claude+Desktop+session+cookies+with+sealed+values+that+cannot+be+used+directly+against+Claude\u0026amp;theme=50a5fdefa194af684ea65dc9\u0026amp;signature=732adc2e6e341887d7919c6dec549ba59f79d3c4f7bbec524639ed583eb1fb6c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/formal/Y-XXDVPqueY2atD7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Formal Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#254BB0\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/guides/example-use-cases/seal-claude-desktop-session-cookies.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.formal.ai/#organization\",\"name\":\"Formal Documentation\",\"url\":\"https://docs.formal.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/formal/sSa8LAaTycTeA9sv/assets/logos/light.svg?fit=max\u0026auto=format\u0026n=sSa8LAaTycTeA9sv\u0026q=85\u0026s=071e123e7f14cf72c82a9ddd8199c976\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.formal.ai#website\",\"name\":\"Formal Documentation\",\"url\":\"https://docs.formal.ai\",\"publisher\":{\"@id\":\"https://docs.formal.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies#webpage\",\"url\":\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies\",\"name\":\"Seal Claude Desktop session cookies\",\"description\":\"Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude\",\"dateModified\":\"2026-11-29T05:44:27.297Z\",\"isPartOf\":{\"@id\":\"https://docs.formal.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Control\",\"item\":\"https://docs.formal.ai/docs/guides/ai-governance/spend\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Seal Claude Desktop session cookies\",\"item\":\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies#article\",\"headline\":\"Seal Claude Desktop session cookies\",\"name\":\"Seal Claude Desktop session cookies\",\"description\":\"Replace Claude Desktop session cookies with sealed values that cannot be used directly against Claude\",\"url\":\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies\",\"mainEntityOfPage\":{\"@id\":\"https://docs.formal.ai/docs/guides/example-use-cases/seal-claude-desktop-session-cookies#webpage\"},\"dateModified\":\"2026-11-29T05:44:27.297Z\",\"publisher\":{\"@id\":\"https://docs.formal.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.formal.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Formal Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Formal Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/guides/example-use-cases/seal-claude-desktop-session-cookies.md","siteName":"Formal Documentation","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":"/docs/guides/getting-started"}]},{"tab":"Products","menu":[{"item":"Connector","icon":"server","description":"Reverse proxy in front of your resources","pages":[{"title":"Connector","href":"/docs/guides/core-concepts/connectors/introduction"}]},{"item":"Endpoint","icon":"laptop","description":"Egress proxy for devices and workloads","pages":[{"title":"Endpoint","href":"/docs/guides/client-apps/desktop-app"}]},{"item":"Control Plane","icon":"sliders","description":"Policies, logs, identities and integrations","pages":[{"title":"Control Plane","href":"/docs/guides/control-plane/overview"}]}],"pages":[{"title":"Products","href":"/docs/guides/core-concepts/connectors/introduction"}]},{"tab":"Solutions","menu":[{"item":"MCP Gateway","icon":"network-wired","description":"One sign-in and one policy layer for every MCP server","pages":[{"title":"MCP Gateway","href":"/docs/guides/core-concepts/connectors/mcp-gateway"}]},{"item":"LLM Gateway","icon":"brain","description":"Log, control and cap LLM traffic","pages":[{"title":"LLM Gateway","sidebarTitle":"Overview","icon":"brain","href":"/docs/guides/solutions/llm-gateway"},{"group":"AI harnesses","pages":[{"title":"Govern Claude with Formal","icon":"https://mintlify.s3.us-west-1.amazonaws.com/formal/static/client-icons/claude.svg","href":"/docs/guides/ai-governance/tools/claude"},{"title":"Govern ChatGPT and Codex with Formal","icon":"https://mintlify.s3.us-west-1.amazonaws.com/formal/static/client-icons/openai.svg","href":"/docs/guides/ai-governance/tools/chatgpt"},{"title":"Govern Cursor with Formal","icon":"https://mintlify.s3.us-west-1.amazonaws.com/formal/static/client-icons/cursor.svg","href":"/docs/guides/ai-governance/tools/cursor"},{"title":"Govern GitHub Copilot with Formal","icon":"https://mintlify.s3.us-west-1.amazonaws.com/formal/static/client-icons/github-copilot.svg","href":"/docs/guides/ai-governance/tools/copilot"},{"title":"Govern Notion AI prompts with Formal","icon":"https://mintlify.s3.us-west-1.amazonaws.com/formal/static/brands/notion.svg","href":"/docs/guides/ai-governance/tools/notion"}]},{"group":"Monitor","pages":[{"title":"Monitor AI Usage","icon":"chart-line","sidebarTitle":"AI Usage","href":"/docs/guides/ai-governance/usage"},{"title":"Insights","icon":"lightbulb","href":"/docs/guides/observability/insights"},{"title":"Assessments","icon":"brain-circuit","href":"/docs/guides/core-concepts/assessments"}]},{"group":"Control","pages":[{"title":"Control LLM Spend","icon":"dollar-sign","sidebarTitle":"LLM Spend","href":"/docs/guides/ai-governance/spend"},{"title":"Seal Claude Code OAuth Tokens","description":"Let each user sign in to Claude Code with their own account while Formal encrypts the OAuth tokens on the device","icon":"lock","sidebarTitle":"Seal Claude Code OAuth Tokens","href":"/docs/guides/example-use-cases/seal-claude-code-oauth-tokens"},{"title":"Seal Claude Desktop session cookies","icon":"lock","href":"/docs/guides/example-use-cases/seal-claude-desktop-session-cookies"},{"title":"Restrict Anthropic Sign-Ins to One Org","description":"Inject Anthropic tenant restrictions so users can only sign in with your organization ID","icon":"user-lock","sidebarTitle":"Restrict Anthropic Sign-Ins","href":"/docs/guides/example-use-cases/restrict-anthropic-sign-ins"}]}]},{"item":"PAM","icon":"key","description":"Privileged access to databases and infrastructure","pages":[{"title":"PAM","href":"/docs/guides/solutions/pam"}]},{"item":"SASE","icon":"shield-halved","description":"Secure egress for devices and workloads","pages":[{"title":"SASE","href":"/docs/guides/solutions/sase"}]}]},{"tab":"Reference","menu":[{"item":"API","icon":"code","description":"HTTP API for the Control Plane","pages":[{"title":"API","href":"/docs/api/introduction"}]},{"item":"CLI","icon":"terminal","description":"The formal command","pages":[{"title":"CLI","href":"/docs/guides/client-apps/cli"}]},{"item":"Infrastructure as code","icon":"cubes","description":"Terraform, Pulumi and Kubernetes","pages":[{"title":"Infrastructure as code","href":"/docs/guides/configuration/terraform"}]},{"item":"SDKs","icon":"box","description":"Go SDK and raw HTTP","pages":[{"title":"SDKs","href":"/docs/guides/configuration/sdks/http-api"}]}],"pages":[{"title":"Reference","href":"/docs/api/introduction"}]},{"tab":"VPN","hidden":true,"pages":[{"title":"VPN","href":"/docs/guides/vpn/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/changelog"}]}]},"basePath":"","title":"Seal Claude Desktop session cookies - Formal Documentation","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":[],"chunks":[]}