It detects the clients you already have — Cursor, Claude Desktop, Claude Code,
Codex, Windsurf, and VS Code — installs uv if it is
missing, writes the config for each one, and pre-warms the server package so your
first session is not a cold start. On Claude Code it also installs a memory skill
that teaches the agent when to reach for memory.
Your Dashboard → Agents page shows this
command with your API key already filled in.
Re-running it is safe — it replaces its own entry and leaves the rest of your
config alone. --uninstall removes it again. See the
MCP Setup guide for every flag and the full tool list.
Keep the --refresh flag. Without it uvx reuses the build it cached the
first time it ran the server, so you stay on that version even after we ship a
fix.
amfs-mcp-server-pro is the right package whenever you have an API key. The
plain amfs-mcp-server also talks to the API, but it only exposes the
SenseLab Open Source tool surface — no rooms, no negotiations, no documents.
Restart your IDE, then ask the agent to run amfs_stats(). If it returns a
response, you’re connected.
Connect via SDK
Both SDKs talk to local storage unless you hand them an HTTP adapter. Pass one
explicitly — setting the environment variables alone will not connect you to the
hosted service.
import { AgentMemory, HttpAdapter } from "@senselab-ai/amfs";const mem = new AgentMemory("my-agent", { adapter: new HttpAdapter({ url: "https://amfs-login.sense-lab.ai", apiKey: process.env.AMFS_API_KEY, }),});await mem.write("checkout-service", "retry-pattern", { maxRetries: 3 });
Without the adapter, AgentMemory writes to local storage — the filesystem in
Python, memory in TypeScript. Everything appears to work, but nothing reaches
your account and the dashboard stays empty.
Account isolation — SenseLab Security enforces hard isolation at the storage layer, so one account cannot see another’s data even if there’s a bug in application code.Scoped keys — Restrict keys to specific entity paths and permissions:
Audit logging — Every state-changing operation is recorded. View in Dashboard → Audit Log.
Never hardcode API keys in files committed to git. Use environment variables or a secrets manager.
Troubleshooting
Problem
Fix
401 Unauthorized
Check your API key in Dashboard → Settings → API Keys
403 Scope Denied
Key doesn’t have permission for that entity path — check scopes
uvx: command not found
Install uv, or re-run the install script, which does it for you
Dashboard stays empty
The SDK is writing locally — pass an HttpAdapter, as shown above
A fixed bug still reproduces
Your client is launching a cached build. Check --refresh is in the args
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SenseLab","description":"AI Trust Layer for the SDLC","colors":{"primary":"#3b82f6","light":"#93c5fd","dark":"#2563eb"},"logo":{"light":"https://mintcdn.com/senselab/twk6eZlWUKel21yU/logo/senselab-logo.png?fit=max\u0026auto=format\u0026n=twk6eZlWUKel21yU\u0026q=85\u0026s=02b7c40e8619140a0dadb46b451ee7d4","dark":"https://mintcdn.com/senselab/twk6eZlWUKel21yU/logo/senselab-logo.png?fit=max\u0026auto=format\u0026n=twk6eZlWUKel21yU\u0026q=85\u0026s=02b7c40e8619140a0dadb46b451ee7d4","href":"https://docs.sense-lab.ai"},"favicon":"https://mintcdn.com/senselab/dqGrhQxRDvU3sAsd/logo/senselab-icon.png?fit=max\u0026auto=format\u0026n=dqGrhQxRDvU3sAsd\u0026q=85\u0026s=7d13cd2e0168ee8c7df79d21f86818b2","navbar":{"links":[{"href":"https://www.sense-lab.ai","label":"Website"}],"primary":{"type":"button","label":"Get Started","href":"https://amfs.sense-lab.ai"}},"footer":{"socials":{"x":"https://x.com/senselab","github":"https://github.com/senselab","linkedin":"https://linkedin.com/company/sense-lab"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"senselab","hasAudioNarration":false,"actualSubdomain":"senselab","customDomains":["docs.sense-lab.ai"],"gitSource":{"type":"github","owner":"raia-live","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6acdb41eabf1ee91b1545be8","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"Guides","count":60},{"language":"default","tag":"SenseLab","count":50},{"language":"default","tag":"Pro Features","count":11},{"language":"default","tag":"Core Concepts","count":8},{"language":"default","tag":"Self-Hosting","count":7},{"language":"default","tag":"Product","count":5},{"language":"default","tag":"Adapters","count":4},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Agent Control","count":3},{"language":"default","tag":"API Reference","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"nav img[alt=\"SenseLab\"],header img[alt=\"SenseLab\"],a[href=\"/\"] img,.navbar-logo img,img[alt=\"SenseLab\"]{height:48px!important;width:auto!important;max-width:none!important}"}],"page":{"pagePath":"amfs/getting-started/saas-connection","slug":"/amfs/getting-started/saas-connection","pageMetadata":{"title":"Connect to SenseLab","icon":"cloud","description":null,"href":"/amfs/getting-started/saas-connection"},"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`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Note,OptimizedImage,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Getting started with SenseLab only takes a few seconds`}),`\n`,_jsx(Heading,{level:`2`,id:`get-your-credentials`,children:`Get Your Credentials`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/senselab/3XNRyYeyag8jPqsf/images/Screenshot-2026-04-14-at-12.43.20-PM.png?fit=max\u0026auto=format\u0026n=3XNRyYeyag8jPqsf\u0026q=85\u0026s=9f4d91079c887afec7f3a2ea7f5e342a`,alt:`Screenshot 2026 04 14 At 12 43 20 PM`,\"data-og-width\":`1647`,width:`1647`,\"data-og-height\":`857`,height:`857`,\"data-path\":`images/Screenshot-2026-04-14-at-12.43.20-PM.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/senselab/3XNRyYeyag8jPqsf/images/Screenshot-2026-04-14-at-12.43.20-PM.png?w=280\u0026fit=max\u0026auto=format\u0026n=3XNRyYeyag8jPqsf\u0026q=85\u0026s=72ca43a18d645d04ed65344f43e21b20 280w, https://mintcdn.com/senselab/3XNRyYeyag8jPqsf/images/Screenshot-2026-04-14-at-12.43.20-PM.png?w=560\u0026fit=max\u0026auto=format\u0026n=3XNRyYeyag8jPqsf\u0026q=85\u0026s=f8d8e47eaccae95bb2b4107cae40ad8e 560w, https://mintcdn.com/senselab/3XNRyYeyag8jPqsf/images/Screenshot-2026-04-14-at-12.43.20-PM.png?w=840\u0026fit=max\u0026auto=format\u0026n=3XNRyYeyag8jPqsf\u0026q=85\u0026s=a22bcac78e91a2f19d10ab3ee093dca5 840w, https://mintcdn.com/senselab/3XNRyYeyag8jPqsf/images/Screenshot-2026-04-14-at-12.43.20-PM.png?w=1100\u0026fit=max\u0026auto=format\u0026n=3XNRyYeyag8jPqsf\u0026q=85\u0026s=ed45970c33f37d94e3e470242923bdfa 1100w, https://mintcdn.com/senselab/3XNRyYeyag8jPqsf/images/Screenshot-2026-04-14-at-12.43.20-PM.png?w=1650\u0026fit=max\u0026auto=format\u0026n=3XNRyYeyag8jPqsf\u0026q=85\u0026s=cc0eaf3eb953d86f6e3e7cbc3b3cfe1a 1650w, https://mintcdn.com/senselab/3XNRyYeyag8jPqsf/images/Screenshot-2026-04-14-at-12.43.20-PM.png?w=2500\u0026fit=max\u0026auto=format\u0026n=3XNRyYeyag8jPqsf\u0026q=85\u0026s=e878d06458d312b5aaa319a2668bcc72 2500w`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create a `,_jsx(_components.a,{href:`https://amfs.sense-lab.ai`,children:_jsx(_components.strong,{children:`SenseLab`})}),` account`]}),`\n`,_jsxs(_components.li,{children:[`Go to `,_jsx(_components.strong,{children:`Settings → API Keys`}),` to create a scoped key`]}),`\n`,_jsxs(_components.li,{children:[`Go to the `,_jsx(_components.a,{href:`https://amfs.sense-lab.ai/agents`,children:`SenseLab Dashboard → Agents`}),` page`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.strong,{children:`MCP Connection Card`}),` shows your `,_jsx(_components.strong,{children:`Server URL`}),` and a one-line install command with your key already in it`]}),`\n`,_jsx(_components.li,{children:`Run that command, or copy the ready-made JSON snippet into your IDE config`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Need more keys? Go to `,_jsx(_components.strong,{children:`Settings → API Keys`}),` to create scoped keys per agent or service.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`connect-your-ide`,children:`Connect Your IDE`}),`\n`,_jsx(Heading,{level:`3`,id:`the-fast-way-one-command`,children:`The fast way: one command`}),`\n`,_jsx(_components.p,{children:`This configures every MCP client on your machine at once, so most people never\nneed to edit a config file:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sSL`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://raw.githubusercontent.com/raia-live/amfs/main/install-mcp.sh`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` bash`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -s`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --api-key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your-api-ke`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`y`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`It detects the clients you already have — Cursor, Claude Desktop, Claude Code,\nCodex, Windsurf, and VS Code — installs `,_jsx(_components.a,{href:`https://docs.astral.sh/uv/`,children:`uv`}),` if it is\nmissing, writes the config for each one, and pre-warms the server package so your\nfirst session is not a cold start. On Claude Code it also installs a memory skill\nthat teaches the agent when to reach for memory.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Your `,_jsx(_components.a,{href:`https://amfs.sense-lab.ai/agents`,children:`Dashboard → Agents`}),` page shows this\ncommand with your API key already filled in.`]})}),`\n`,_jsxs(_components.p,{children:[`Re-running it is safe — it replaces its own entry and leaves the rest of your\nconfig alone. `,_jsx(_components.code,{children:`--uninstall`}),` removes it again. See the\n`,_jsx(_components.a,{href:`/amfs/guides/mcp`,children:`MCP Setup guide`}),` for every flag and the full tool list.`]}),`\n`,_jsx(Heading,{level:`3`,id:`manual-setup`,children:`Manual setup`}),`\n`,_jsx(_components.p,{children:`If you would rather not run a script.`}),`\n`,_jsx(Heading,{level:`4`,id:`cursor`,children:`Cursor`}),`\n`,_jsxs(_components.p,{children:[`Add to `,_jsx(_components.code,{children:`.cursor/mcp.json`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,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:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mcpServers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"senselab\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"command\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"uvx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"args\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"--refresh\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"amfs-mcp-server-pro\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"env\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"AMFS_HTTP_URL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://amfs-login.sense-lab.ai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"AMFS_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cyour-api-key>\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`,children:_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:`4`,id:`claude-code`,children:`Claude Code`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`claude`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mcp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` senselab`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AMFS_HTTP_URL=https://amfs-login.sense-lab.ai`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -e`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AMFS_API_KEY=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your-api-ke`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`y`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` uvx`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --refresh`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` amfs-mcp-server-pro`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Keep the `,_jsx(_components.code,{children:`--refresh`}),` flag. Without it `,_jsx(_components.code,{children:`uvx`}),` reuses the build it cached the\nfirst time it ran the server, so you stay on that version even after we ship a\nfix.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`amfs-mcp-server-pro`}),` is the right package whenever you have an API key. The\nplain `,_jsx(_components.code,{children:`amfs-mcp-server`}),` also talks to the API, but it only exposes the\nSenseLab Open Source tool surface — no rooms, no negotiations, no documents.`]})}),`\n`,_jsxs(_components.p,{children:[`Restart your IDE, then ask the agent to run `,_jsx(_components.code,{children:`amfs_stats()`}),`. If it returns a\nresponse, you’re connected.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`connect-via-sdk`,children:`Connect via SDK`}),`\n`,_jsx(_components.p,{children:`Both SDKs talk to local storage unless you hand them an HTTP adapter. Pass one\nexplicitly — setting the environment variables alone will not connect you to the\nhosted service.`}),`\n`,_jsx(Heading,{level:`3`,id:`python`,children:`Python`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` amfs`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` amfs-adapter-http`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` amfs `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AgentMemory`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` amfs_adapter_http `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` HttpAdapter`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mem `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AgentMemory(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"my-agent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` adapter`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`HttpAdapter(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` base_url`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://amfs-login.sense-lab.ai\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"AMFS_API_KEY\"`}),_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`,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:`mem.write(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"checkout-service\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"retry-pattern\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"max_retries\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`typescript`,children:`TypeScript`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @senselab-ai/amfs`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AgentMemory`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`HttpAdapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@senselab-ai/amfs\"`}),_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:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` mem`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` AgentMemory`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my-agent\"`}),_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\":`#9CDCFE`},children:` adapter:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` HttpAdapter`}),_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\":`#9CDCFE`},children:` url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://amfs-login.sense-lab.ai\"`}),_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\":`#9CDCFE`},children:` apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`AMFS_API_KEY`}),_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`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`write`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"checkout-service\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"retry-pattern\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`maxRetries:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Without the adapter, `,_jsx(_components.code,{children:`AgentMemory`}),` writes to local storage — the filesystem in\nPython, memory in TypeScript. Everything appears to work, but nothing reaches\nyour account and the dashboard stays empty.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`connect-via-rest-api`,children:`Connect via REST API`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://amfs-login.sense-lab.ai/api/v1/entries`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-AMFS-API-Key: \u003cyour-api-key>\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"entity_path\": \"checkout-service\", \"key\": \"retry-pattern\", \"value\": {\"max_retries\": 3}}'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/amfs/reference/api`,children:`API Reference`}),` for the full endpoint list.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`security`,children:`Security`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Account isolation`}),` — SenseLab Security enforces hard isolation at the storage layer, so one account cannot see another’s data even if there’s a bug in application code.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Scoped keys`}),` — Restrict keys to specific entity paths and permissions:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`amfs_sk_live_abc123 → checkout-service/** [READ_WRITE]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` shared/patterns/* [READ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Audit logging`}),` — Every state-changing operation is recorded. View in Dashboard → Audit Log.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Never hardcode API keys in files committed to git. Use environment variables or a secrets manager.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Problem`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`401 Unauthorized`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Check your API key in Dashboard → Settings → API Keys`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`403 Scope Denied`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Key doesn’t have permission for that entity path — check scopes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`uvx: command not found`})}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Install `,_jsx(_components.a,{href:`https://docs.astral.sh/uv/`,children:`uv`}),`, or re-run the install script, which does it for you`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`Dashboard stays empty`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`The SDK is writing locally — pass an `,_jsx(_components.code,{children:`HttpAdapter`}),`, as shown above`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:`A fixed bug still reproduces`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Your client is launching a cached build. Check `,_jsx(_components.code,{children:`--refresh`}),` is in the `,_jsx(_components.code,{children:`args`})]})]})]})]})]})}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":{"config":{},"pageMetadata":{"title":"Connect to SenseLab","icon":"cloud","description":null,"href":"/amfs/getting-started/saas-connection"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Get Your Credentials","slug":"get-your-credentials","depth":2,"children":[]},{"title":"Connect Your IDE","slug":"connect-your-ide","depth":2,"children":[{"title":"The fast way: one command","slug":"the-fast-way-one-command","depth":3,"children":[]},{"title":"Manual setup","slug":"manual-setup","depth":3,"children":[]},{"title":"Cursor","slug":"cursor","depth":4,"children":[]},{"title":"Claude Code","slug":"claude-code","depth":4,"children":[]}]},{"title":"Connect via SDK","slug":"connect-via-sdk","depth":2,"children":[{"title":"Python","slug":"python","depth":3,"children":[]},{"title":"TypeScript","slug":"typescript","depth":3,"children":[]}]},{"title":"Connect via REST API","slug":"connect-via-rest-api","depth":2,"children":[]},{"title":"Security","slug":"security","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"senselab","siteName":"SenseLab","title":"Connect to SenseLab - SenseLab","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-13T04:19:30.693Z","originalFileLocation":"amfs/getting-started/saas-connection.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=\"application-name\" content=\"SenseLab\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/senselab/sm4ODNUF3FeIkPE9/_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/senselab/sm4ODNUF3FeIkPE9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/senselab/sm4ODNUF3FeIkPE9/_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/senselab/sm4ODNUF3FeIkPE9/_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/senselab/sm4ODNUF3FeIkPE9/_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/senselab/sm4ODNUF3FeIkPE9/_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/senselab/sm4ODNUF3FeIkPE9/_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/senselab/sm4ODNUF3FeIkPE9/_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/senselab/sm4ODNUF3FeIkPE9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Connect to SenseLab - SenseLab\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SenseLab\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://senselab.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Connect+to+SenseLab\u0026amp;theme=0f6ce7693517f296ccfe2e96\u0026amp;signature=b128d039e094efe8c0554d2a12113d2c404da4a4f5d5f82d024ce87860451bbc\">\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=\"Connect to SenseLab - SenseLab\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://senselab.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Connect+to+SenseLab\u0026amp;theme=0f6ce7693517f296ccfe2e96\u0026amp;signature=b128d039e094efe8c0554d2a12113d2c404da4a4f5d5f82d024ce87860451bbc\">\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/senselab/sm4ODNUF3FeIkPE9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SenseLab\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/amfs/getting-started/saas-connection.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sense-lab.ai/#organization\",\"name\":\"SenseLab\",\"url\":\"https://docs.sense-lab.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/senselab/twk6eZlWUKel21yU/logo/senselab-logo.png?fit=max\u0026auto=format\u0026n=twk6eZlWUKel21yU\u0026q=85\u0026s=02b7c40e8619140a0dadb46b451ee7d4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sense-lab.ai#website\",\"name\":\"SenseLab\",\"url\":\"https://docs.sense-lab.ai\",\"publisher\":{\"@id\":\"https://docs.sense-lab.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection#webpage\",\"url\":\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection\",\"name\":\"Connect to SenseLab\",\"dateModified\":\"2026-10-13T04:19:30.693Z\",\"isPartOf\":{\"@id\":\"https://docs.sense-lab.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SenseLab\",\"item\":\"https://docs.sense-lab.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connect to SenseLab\",\"item\":\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection#article\",\"headline\":\"Connect to SenseLab\",\"name\":\"Connect to SenseLab\",\"url\":\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sense-lab.ai/amfs/getting-started/saas-connection#webpage\"},\"dateModified\":\"2026-10-13T04:19:30.693Z\",\"publisher\":{\"@id\":\"https://docs.sense-lab.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sense-lab.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SenseLab\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SenseLab\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/amfs/getting-started/saas-connection.md","siteName":"SenseLab","nav":{"global":null,"products":[{"product":"SenseLab","description":"Continuous Learning for Agents","tabs":[{"tab":"Guides","groups":[{"group":"Product","pages":[{"title":"Introduction","icon":"brain","href":"/amfs/introduction"},{"title":"Editions","icon":"scale-balanced","href":"/amfs/editions"},{"group":"Competitor Analysis","icon":"scale-balanced","expanded":false,"pages":[{"title":"SenseLab vs Memory","icon":"chart-bar","href":"/amfs/vs-memory"},{"title":"SenseLab vs Observability","icon":"microscope","href":"/amfs/vs-observability"},{"title":"SenseLab vs Vector Databases","description":"Why a vector database is not agent memory, what it cannot do after a bad run, and what it costs to build the difference yourself.","icon":"database","href":"/amfs/vs-vector-databases"}]}]},{"group":"Getting Started","pages":[{"title":"Connect to SenseLab","icon":"cloud","href":"/amfs/getting-started/saas-connection"},{"title":"Quick Start","description":"Give your agent a persistent brain in 5 minutes.","icon":"rocket","href":"/amfs/getting-started/quickstart"},{"title":"Configuration","icon":"gear","href":"/amfs/getting-started/configuration"}]},{"group":"Guides","icon":"book","pages":[{"title":"MCP Setup","icon":"plug","href":"/amfs/guides/mcp"},{"title":"Claude and ChatGPT","icon":"link","href":"/amfs/guides/claude-and-chatgpt"},{"title":"Browser Extension","icon":"chrome","href":"/amfs/guides/browser-extension"},{"title":"Python SDK","icon":"python","href":"/amfs/guides/python"},{"title":"TypeScript SDK","icon":"js","href":"/amfs/guides/typescript"},{"title":"Connectors","icon":"plug","href":"/amfs/guides/connectors"},{"title":"Framework Integrations","icon":"puzzle-piece","href":"/amfs/guides/integrations"},{"group":"Agent Control","icon":"sliders","pages":[{"title":"Instrument your agent","icon":"gauge-high","href":"/amfs/guides/instrument-your-agent"},{"title":"Behavior","icon":"scale-balanced","href":"/amfs/guides/behavior"},{"title":"Learning as Git","icon":"code-branch","href":"/amfs/guides/learning-as-git"}]},{"group":"Rooms","icon":"users","root":{"title":"Rooms","icon":"users","href":"/amfs/concepts/rooms"},"expanded":false,"pages":[{"title":"Room Members and Permissions","icon":"user-lock","href":"/amfs/concepts/room-members"},{"title":"Working in a Room","icon":"comments","href":"/amfs/concepts/room-collaboration"}]},{"title":"Managed Models","icon":"microchip","href":"/amfs/guides/managed-models"}]},{"group":"Self-Hosting","icon":"server","pages":[{"title":"Self-Hosted Installation","icon":"download","href":"/amfs/getting-started/installation"},{"title":"Docker \u0026 Kubernetes","icon":"docker","href":"/amfs/guides/docker"},{"title":"CLI","icon":"terminal","href":"/amfs/guides/cli"},{"group":"Adapters","icon":"database","root":{"title":"Storage Adapters","icon":"database","href":"/amfs/adapters/overview"},"pages":[{"title":"Filesystem Adapter","icon":"folder","href":"/amfs/adapters/filesystem"},{"title":"Postgres Adapter","icon":"elephant","href":"/amfs/adapters/postgres"},{"title":"S3 Adapter","icon":"cloud","href":"/amfs/adapters/s3"},{"title":"Custom Adapters","icon":"wrench","href":"/amfs/adapters/custom"}]}]},{"group":"Core Concepts","icon":"brain","pages":[{"title":"Core Concepts","icon":"brain","href":"/amfs/concepts/overview"},{"title":"Learning Entries","icon":"file-lines","href":"/amfs/concepts/learning-entries"},{"title":"Briefings and Guidance","icon":"clipboard-list","href":"/amfs/concepts/briefings"},{"title":"Copy-on-Write","icon":"copy","href":"/amfs/concepts/copy-on-write"},{"title":"Confidence \u0026 Evidence","icon":"chart-line","href":"/amfs/concepts/confidence"},{"title":"Provenance","icon":"fingerprint","href":"/amfs/concepts/provenance"},{"title":"Context Graphs","icon":"diagram-project","href":"/amfs/concepts/context-graphs"},{"title":"Git-like Timeline","icon":"code-branch","href":"/amfs/concepts/git-timeline"}]},{"group":"Pro Features","icon":"gem","pages":[{"title":"Pro Features","icon":"gem","href":"/amfs/pro/overview"},{"title":"Learning Branching","icon":"code-branch","href":"/amfs/pro/branching"},{"title":"Accounts and Access","icon":"building","href":"/amfs/pro/multi-tenant"},{"title":"Immutable Decision Traces","icon":"shield-check","href":"/amfs/pro/immutable-traces"},{"title":"Pattern Detection","icon":"magnifying-glass-chart","href":"/amfs/pro/pattern-detection"},{"title":"Intelligence Layer","icon":"brain","href":"/amfs/pro/intelligence"},{"title":"Learning Consolidation","icon":"layer-group","href":"/amfs/pro/consolidation"},{"title":"Knowledge Graph and Expertise","icon":"share-nodes","href":"/amfs/pro/knowledge-graph"},{"title":"Learning Security","icon":"shield-halved","href":"/amfs/pro/security"},{"title":"ML Layer","icon":"chart-line","href":"/amfs/pro/ml-layer"},{"title":"Billing \u0026 Metering","icon":"credit-card","href":"/amfs/pro/billing"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/amfs/guides/http-server"}]}]}]},"basePath":"","title":"Connect to SenseLab - SenseLab","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DevImLcx.js","DynamicMarkdown-BGHukeRM.js","zoom-image-lightbox-DQG3o8Eu.js","lightbox-handle-r17bVUz3.js"]}