Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.
Overview
Secrets let you store sensitive credentials — API keys, bearer tokens, database passwords — that the agent can access as environment variables during conversations. Values are encrypted at rest and never displayed in plain text after creation.
Secrets belong to a team. A private secret is available only to your own agent runs in the team it belongs to, and each secret is available as process.env.SECRET_NAME inside the agent sandbox.
The Secrets page
The Secrets page shows all your stored credentials as cards with masked values. Each card displays the secret name, description, and creation date.
The Secrets page showing saved API keys and tokens
Secrets per team
Every secret belongs to one team, and nothing crosses teams. Your existing secrets are in your personal team.
Private secrets — only you can see them, and only your own agent runs in that team receive them, under the name you gave them.
Team secrets — shared with every member of the team, whose agent runs receive them under a name with a team prefix, so they never collide with your private secrets. The creator and team owners and admins can change or delete them. Add them from the team’s Secrets page.
Copy from another team — copies one of your private secrets from another team into the one you’re in. The value is copied securely and never shown.
When the agent asks you to save a credential in chat, it is saved as your private secret in the team you’re working in.
From chat
When the agent needs an API key for a service that is not connected as a built-in integration, it may ask you to save a credential with an in-chat secure field. Use that field instead of pasting the key in the main message box — the value is stored the same way as secrets you add on this page (encrypted, available as process.env.YOUR_NAME in the sandbox). You can still manage everything from Secrets in the sidebar or account settings.
Adding a secret
1
Open the Secrets page
Click Secrets in the sidebar navigation to open the secret management page.
2
Click Add secret
Click the Add secret button in the top right corner.
3
Fill in the details
Enter the secret details:
Name — an uppercase identifier like X_BEARER_TOKEN or NOTION_API_KEY. This becomes the environment variable name (process.env.X_BEARER_TOKEN). Only uppercase letters, digits, and underscores are allowed.
Value — the actual secret value (API key, token, password). Hidden by default — click the eye icon to reveal it while typing.
Description (optional) — a note to help you remember what this secret is for.
4
Save
Click Save secret. The secret is encrypted and stored securely.
Example: Adding an X (Twitter) Bearer Token
Let’s walk through a real example — adding an X API bearer token so the agent can search tweets and find mentions.
1
Get your X Bearer Token
Go to the X Developer Portal and copy your app’s Bearer Token from the Keys and tokens section.
2
Add the secret
Open Secrets → Add secret and fill in:
Name: X_BEARER_TOKEN
Value: paste your bearer token (e.g., AAAAAAAAAAAAAAAAAAAAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)
Description: X/Twitter API Bearer Token for search and mentions
Adding the X Bearer Token as a secret
3
Verify the secret was saved
After saving, the secret appears as a card on the Secrets page. The value is masked for security.
The Secrets page showing your saved secrets with masked values
4
Use it in chat
Now ask the agent to use the token. For example:
Search X for recent mentions of @CreaoAI using my X_BEARER_TOKEN secret
Asking the agent to use the X_BEARER_TOKEN secret to search for mentions
The agent will access process.env.X_BEARER_TOKEN in the sandbox and use the X API to fetch results.
How secrets work in the agent sandbox
When the agent runs code in its sandbox environment, all your secrets are injected as environment variables:
import os# Access your secret in Pythonbearer_token = os.environ["X_BEARER_TOKEN"]# Use it in an API callimport requestsheaders = {"Authorization": f"Bearer {bearer_token}"}response = requests.get( "https://api.x.com/2/tweets/search/recent", params={"query": "@CreaoAI"}, headers=headers,)
// Access your secret in Node.jsconst bearerToken = process.env.X_BEARER_TOKEN;// Use it in an API callconst response = await fetch( "https://api.x.com/2/tweets/search/recent?query=@CreaoAI", { headers: { Authorization: `Bearer ${bearerToken}` } });
Secrets are injected into every agent sandbox session. Only store credentials you are comfortable the agent having access to.
Managing secrets
Editing a secret
Click the pencil icon on any secret card to update its value or description. You can change the value without re-entering the current one — leave the value field blank to keep the existing value.
Deleting a secret
Click the trash icon on the secret card and confirm the deletion. Any agent conversations that reference the deleted secret will no longer have access to it.
Naming conventions
Pattern
Example
Use for
SERVICE_API_KEY
OPENAI_API_KEY
API keys for third-party services
SERVICE_BEARER_TOKEN
X_BEARER_TOKEN
OAuth bearer tokens
SERVICE_SECRET
STRIPE_SECRET
General secrets and passwords
DB_PASSWORD
POSTGRES_PASSWORD
Database credentials
Use descriptive names that make it clear which service the secret belongs to. The agent can see the environment variable names and will choose the right one based on context.
Security
Encrypted at rest — secret values are encrypted before being stored in the database
Never displayed — after creation, the full value is never shown in the UI (displayed as ••••••••)
Sandbox isolation — secrets are only accessible inside the ephemeral agent sandbox, not in the browser
Team scope — a private secret is only available to your own agent sessions in its team; a team secret is shared only with that team’s members
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CREAO Documentation","colors":{"primary":"#000000","light":"#666666","dark":"#333333"},"logo":{"light":"https://mintcdn.com/creaoagent/qsO6D45JE0FrSrZO/logo/light.svg?fit=max\u0026auto=format\u0026n=qsO6D45JE0FrSrZO\u0026q=85\u0026s=c85112c81c4c08190781587305b2c952","dark":"https://mintcdn.com/creaoagent/qsO6D45JE0FrSrZO/logo/dark.svg?fit=max\u0026auto=format\u0026n=qsO6D45JE0FrSrZO\u0026q=85\u0026s=569d79e8794145f8bb87aa5a5dde7cc7"},"favicon":"https://mintcdn.com/creaoagent/qsO6D45JE0FrSrZO/favicon.svg?fit=max\u0026auto=format\u0026n=qsO6D45JE0FrSrZO\u0026q=85\u0026s=1a8f63e36d68f08b47fab42c4fe0e7e2","api":{"playground":{"display":"simple"},"examples":{"defaults":"required","languages":["bash","node","python"],"prefill":true}},"navbar":{"links":[],"primary":{"type":"button","label":"Try CREAO","href":"https://agent.creao.ai"}},"footer":{"socials":{"x":"https://x.com/CreaoAI","linkedin":"https://www.linkedin.com/company/creaoai","discord":"https://discord.gg/VPNExXcP9W"}},"contextual":{"options":["copy","view","download-spec","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"CREAO","icon":"rocket","href":"https://agent.creao.ai"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/VPNExXcP9W"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"creaoagent","hasAudioNarration":false,"actualSubdomain":"creaoagent","customDomains":["docs.creao.ai"],"gitSource":{"type":"github","owner":"creaoai","repo":"creao-monorepo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af79f43cebdf0dbb1970a4e","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"default","tag":"CREAO CLI","count":66},{"language":"default","tag":"Using CREAO","count":26},{"language":"default","tag":"Concepts","count":14},{"language":"default","tag":"Features","count":11},{"language":"default","tag":"Get Started","count":7},{"language":"default","tag":"Agents","count":7},{"language":"default","tag":"Rooms","count":6},{"language":"default","tag":"Skills","count":6},{"language":"default","tag":"Agent Brain","count":5},{"language":"default","tag":"Workspaces","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"features/secrets","slug":"/features/secrets","pageMetadata":{"title":"Secret Key Management","description":"Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.","href":"/features/secrets"},"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: \"Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,Note,OptimizedImage,Step,Steps,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(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Secrets let you store sensitive credentials — API keys, bearer tokens, database passwords — that the agent can access as environment variables during conversations. Values are encrypted at rest and never displayed in plain text after creation.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Secrets belong to a team. A private secret is available only to your own agent runs in the team it belongs to, and each secret is available as `,_jsx(_components.code,{children:`process.env.SECRET_NAME`}),` inside the agent sandbox.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`the-secrets-page`,children:`The Secrets page`}),`\n`,_jsx(_components.p,{children:`The Secrets page shows all your stored credentials as cards with masked values. Each card displays the secret name, description, and creation date.`}),`\n`,_jsx(Frame,{caption:`The Secrets page showing saved API keys and tokens`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=f854eaec5beb18a4e568c305281210c2`,alt:`Secrets page with multiple secret cards showing masked values`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`800`,height:`800`,\"data-path\":`images/secrets-page.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=280\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=6dbd2befe766520177672587bcbb6199 280w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=560\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=97b60da0f97df0b8565f1486e454e604 560w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=840\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=99c78f4967f8c263cb67dda650656d1f 840w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=1100\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=dbce8896dbcf2aba3097049eea8035ce 1100w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=1650\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=255477ea22d72f4df375cec27f72c9e3 1650w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=2500\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=b213ab0fc609ff366477dcf9deed4b0b 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`secrets-per-team`,children:`Secrets per team`}),`\n`,_jsx(_components.p,{children:`Every secret belongs to one team, and nothing crosses teams. Your existing secrets are in your personal team.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Private secrets`}),` — only you can see them, and only your own agent runs in that team receive them, under the name you gave them.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Team secrets`}),` — shared with every member of the team, whose agent runs receive them under a name with a team prefix, so they never collide with your private secrets. The creator and team owners and admins can change or delete them. Add them from the team’s `,_jsx(_components.strong,{children:`Secrets`}),` page.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Copy from another team`}),` — copies one of your private secrets from another team into the one you’re in. The value is copied securely and never shown.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`When the agent asks you to save a credential in chat, it is saved as your private secret in the team you’re working in.`}),`\n`,_jsx(Heading,{level:`2`,id:`from-chat`,children:`From chat`}),`\n`,_jsxs(_components.p,{children:[`When the agent needs an API key for a service that is not connected as a `,_jsx(_components.a,{href:`/integrations`,children:`built-in integration`}),`, it may ask you to save a credential with an `,_jsx(_components.strong,{children:`in-chat secure field`}),`. Use that field instead of pasting the key in the main message box — the value is stored the same way as secrets you add on this page (encrypted, available as `,_jsx(_components.code,{children:`process.env.YOUR_NAME`}),` in the sandbox). You can still manage everything from `,_jsx(_components.strong,{children:`Secrets`}),` in the sidebar or account settings.`]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-a-secret`,children:`Adding a secret`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open the Secrets page`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Secrets`}),` in the sidebar navigation to open the secret management page.`]})}),_jsx(Step,{title:`Click Add secret`,children:_jsxs(_components.p,{children:[`Click the `,_jsx(_components.strong,{children:`Add secret`}),` button in the top right corner.`]})}),_jsxs(Step,{title:`Fill in the details`,children:[_jsx(_components.p,{children:`Enter the secret details:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name`}),` — an uppercase identifier like `,_jsx(_components.code,{children:`X_BEARER_TOKEN`}),` or `,_jsx(_components.code,{children:`NOTION_API_KEY`}),`. This becomes the environment variable name (`,_jsx(_components.code,{children:`process.env.X_BEARER_TOKEN`}),`). Only uppercase letters, digits, and underscores are allowed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Value`}),` — the actual secret value (API key, token, password). Hidden by default — click the eye icon to reveal it while typing.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Description`}),` (optional) — a note to help you remember what this secret is for.`]}),`\n`]})]}),_jsx(Step,{title:`Save`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save secret`}),`. The secret is encrypted and stored securely.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`example-adding-an-x-twitter-bearer-token`,children:`Example: Adding an X (Twitter) Bearer Token`}),`\n`,_jsx(_components.p,{children:`Let’s walk through a real example — adding an X API bearer token so the agent can search tweets and find mentions.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Get your X Bearer Token`,children:_jsxs(_components.p,{children:[`Go to the `,_jsx(_components.a,{href:`https://developer.x.com`,children:`X Developer Portal`}),` and copy your app’s Bearer Token from the `,_jsx(_components.strong,{children:`Keys and tokens`}),` section.`]})}),_jsxs(Step,{title:`Add the secret`,children:[_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`Secrets`}),` → `,_jsx(_components.strong,{children:`Add secret`}),` and fill in:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Name`}),`: `,_jsx(_components.code,{children:`X_BEARER_TOKEN`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Value`}),`: paste your bearer token (e.g., `,_jsx(_components.code,{children:`AAAAAAAAAAAAAAAAAAAAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Description`}),`: `,_jsx(_components.code,{children:`X/Twitter API Bearer Token for search and mentions`})]}),`\n`]}),_jsx(Frame,{caption:`Adding the X Bearer Token as a secret`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-add-dialog.png?fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=fe2513ada70d328f05902df198a25484`,alt:`Add secret dialog filled with X_BEARER_TOKEN`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`800`,height:`800`,\"data-path\":`images/secrets-add-dialog.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-add-dialog.png?w=280\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=608eeaed5aed0bf23f696789b5f3b7c8 280w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-add-dialog.png?w=560\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=8197e858ea1f8b7f572f584c3531ace9 560w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-add-dialog.png?w=840\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=6b0bd62c46af3a3f342fc5a7763a03d9 840w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-add-dialog.png?w=1100\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=c7311c3efac7c63f62837ab1d62bafda 1100w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-add-dialog.png?w=1650\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=532e301e3d244c12b86f2ffe64e28c15 1650w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-add-dialog.png?w=2500\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=d6bfc4abbfd8c99f82a5ff57c9f954fe 2500w`})})]}),_jsxs(Step,{title:`Verify the secret was saved`,children:[_jsx(_components.p,{children:`After saving, the secret appears as a card on the Secrets page. The value is masked for security.`}),_jsx(Frame,{caption:`The Secrets page showing your saved secrets with masked values`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=f854eaec5beb18a4e568c305281210c2`,alt:`Secrets page with secret cards`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`800`,height:`800`,\"data-path\":`images/secrets-page.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=280\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=6dbd2befe766520177672587bcbb6199 280w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=560\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=97b60da0f97df0b8565f1486e454e604 560w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=840\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=99c78f4967f8c263cb67dda650656d1f 840w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=1100\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=dbce8896dbcf2aba3097049eea8035ce 1100w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=1650\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=255477ea22d72f4df375cec27f72c9e3 1650w, https://mintcdn.com/creaoagent/L7jvWhXluKR0aaCS/images/secrets-page.png?w=2500\u0026fit=max\u0026auto=format\u0026n=L7jvWhXluKR0aaCS\u0026q=85\u0026s=b213ab0fc609ff366477dcf9deed4b0b 2500w`})})]}),_jsxs(Step,{title:`Use it in chat`,children:[_jsx(_components.p,{children:`Now ask the agent to use the token. For example:`}),_jsx(CodeBlock,{numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Search X for recent mentions of @CreaoAI using my X_BEARER_TOKEN secret`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(Frame,{caption:`Asking the agent to use the X_BEARER_TOKEN secret to search for mentions`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/creaoagent/Qe1AeD0g4oCCFKCZ/images/secrets-use-in-chat.png?fit=max\u0026auto=format\u0026n=Qe1AeD0g4oCCFKCZ\u0026q=85\u0026s=44123e4c49611924cef553ece642761f`,alt:`Chat input with a prompt referencing the X_BEARER_TOKEN secret`,\"data-og-width\":`1280`,width:`1280`,\"data-og-height\":`800`,height:`800`,\"data-path\":`images/secrets-use-in-chat.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/creaoagent/Qe1AeD0g4oCCFKCZ/images/secrets-use-in-chat.png?w=280\u0026fit=max\u0026auto=format\u0026n=Qe1AeD0g4oCCFKCZ\u0026q=85\u0026s=782f56fe3212172d320a60149cb49510 280w, https://mintcdn.com/creaoagent/Qe1AeD0g4oCCFKCZ/images/secrets-use-in-chat.png?w=560\u0026fit=max\u0026auto=format\u0026n=Qe1AeD0g4oCCFKCZ\u0026q=85\u0026s=ba618648236955b1545160df99e3de74 560w, https://mintcdn.com/creaoagent/Qe1AeD0g4oCCFKCZ/images/secrets-use-in-chat.png?w=840\u0026fit=max\u0026auto=format\u0026n=Qe1AeD0g4oCCFKCZ\u0026q=85\u0026s=36f4b9a039ddecbfa4f86b361e2fa153 840w, https://mintcdn.com/creaoagent/Qe1AeD0g4oCCFKCZ/images/secrets-use-in-chat.png?w=1100\u0026fit=max\u0026auto=format\u0026n=Qe1AeD0g4oCCFKCZ\u0026q=85\u0026s=871f6a45edd291aba5af0bd084861a24 1100w, https://mintcdn.com/creaoagent/Qe1AeD0g4oCCFKCZ/images/secrets-use-in-chat.png?w=1650\u0026fit=max\u0026auto=format\u0026n=Qe1AeD0g4oCCFKCZ\u0026q=85\u0026s=0b3b84b1028b54154630f0c6d7b583de 1650w, https://mintcdn.com/creaoagent/Qe1AeD0g4oCCFKCZ/images/secrets-use-in-chat.png?w=2500\u0026fit=max\u0026auto=format\u0026n=Qe1AeD0g4oCCFKCZ\u0026q=85\u0026s=aa58e82a2c604bceb40a73c9a5eef3f0 2500w`})}),_jsxs(_components.p,{children:[`The agent will access `,_jsx(_components.code,{children:`process.env.X_BEARER_TOKEN`}),` in the sandbox and use the X API to fetch results.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-secrets-work-in-the-agent-sandbox`,children:`How secrets work in the agent sandbox`}),`\n`,_jsx(_components.p,{children:`When the agent runs code in its sandbox environment, all your secrets are injected as environment variables:`}),`\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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Access your secret in Python`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`bearer_token `}),_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:`\"X_BEARER_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Use it in an API call`})}),`\n`,_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:` requests`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_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:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`bearer_token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.x.com/2/tweets/search/recent\"`}),_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:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@CreaoAI\"`}),_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:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Access your secret in Node.js`})}),`\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:` bearerToken`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_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:`X_BEARER_TOKEN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Use it in an API call`})}),`\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:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_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:` \"https://api.x.com/2/tweets/search/recent?query=@CreaoAI\"`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bearerToken`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},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(Warning,{children:_jsx(_components.p,{children:`Secrets are injected into every agent sandbox session. Only store credentials you are comfortable the agent having access to.`})}),`\n`,_jsx(Heading,{level:`2`,id:`managing-secrets`,children:`Managing secrets`}),`\n`,_jsx(Heading,{level:`3`,id:`editing-a-secret`,children:`Editing a secret`}),`\n`,_jsx(_components.p,{children:`Click the pencil icon on any secret card to update its value or description. You can change the value without re-entering the current one — leave the value field blank to keep the existing value.`}),`\n`,_jsx(Heading,{level:`3`,id:`deleting-a-secret`,children:`Deleting a secret`}),`\n`,_jsx(_components.p,{children:`Click the trash icon on the secret card and confirm the deletion. Any agent conversations that reference the deleted secret will no longer have access to it.`}),`\n`,_jsx(Heading,{level:`3`,id:`naming-conventions`,children:`Naming conventions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Pattern`}),_jsx(_components.th,{children:`Example`}),_jsx(_components.th,{children:`Use for`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SERVICE_API_KEY`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`OPENAI_API_KEY`})}),_jsx(_components.td,{children:`API keys for third-party services`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SERVICE_BEARER_TOKEN`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`X_BEARER_TOKEN`})}),_jsx(_components.td,{children:`OAuth bearer tokens`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SERVICE_SECRET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`STRIPE_SECRET`})}),_jsx(_components.td,{children:`General secrets and passwords`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DB_PASSWORD`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`POSTGRES_PASSWORD`})}),_jsx(_components.td,{children:`Database credentials`})]})]})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Use descriptive names that make it clear which service the secret belongs to. The agent can see the environment variable names and will choose the right one based on context.`})}),`\n`,_jsx(Heading,{level:`2`,id:`security`,children:`Security`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Encrypted at rest`}),` — secret values are encrypted before being stored in the database`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Never displayed`}),` — after creation, the full value is never shown in the UI (displayed as `,_jsx(_components.code,{children:`••••••••`}),`)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sandbox isolation`}),` — secrets are only accessible inside the ephemeral agent sandbox, not in the browser`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Team scope`}),` — a private secret is only available to your own agent sessions in its team; a team secret is shared only with that team’s members`]}),`\n`]})]})}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":"Secret Key Management","description":"Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.","href":"/features/secrets"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"The Secrets page","slug":"the-secrets-page","depth":2,"children":[]},{"title":"Secrets per team","slug":"secrets-per-team","depth":2,"children":[]},{"title":"From chat","slug":"from-chat","depth":2,"children":[]},{"title":"Adding a secret","slug":"adding-a-secret","depth":2,"children":[]},{"title":"Example: Adding an X (Twitter) Bearer Token","slug":"example-adding-an-x-twitter-bearer-token","depth":2,"children":[]},{"title":"How secrets work in the agent sandbox","slug":"how-secrets-work-in-the-agent-sandbox","depth":2,"children":[]},{"title":"Managing secrets","slug":"managing-secrets","depth":2,"children":[{"title":"Editing a secret","slug":"editing-a-secret","depth":3,"children":[]},{"title":"Deleting a secret","slug":"deleting-a-secret","depth":3,"children":[]},{"title":"Naming conventions","slug":"naming-conventions","depth":3,"children":[]}]},{"title":"Security","slug":"security","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"creaoagent","siteName":"CREAO Documentation","title":"Secret Key Management - CREAO Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T23:57:14.164Z","originalFileLocation":"features/secrets.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=\"Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CREAO 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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_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/creaoagent/tUWWd22AgUwL896o/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Secret Key Management - CREAO Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CREAO Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.creao.ai/features/secrets\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://creaoagent.mintlify.site/_mintlify/api/og/v2?division=Agent+Brain\u0026amp;title=Secret+Key+Management\u0026amp;description=Securely+store+API+keys%2C+tokens%2C+and+credentials+so+the+agent+can+use+them+in+conversations+without+exposing+sensitive+values.\u0026amp;theme=517419ff71a0ccc56d7c2a68\u0026amp;signature=d6beceb50362179a7a84438c8f5d67c79bd3b29412c7865f62d4e52edfabd78e\">\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=\"Secret Key Management - CREAO Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://creaoagent.mintlify.site/_mintlify/api/og/v2?division=Agent+Brain\u0026amp;title=Secret+Key+Management\u0026amp;description=Securely+store+API+keys%2C+tokens%2C+and+credentials+so+the+agent+can+use+them+in+conversations+without+exposing+sensitive+values.\u0026amp;theme=517419ff71a0ccc56d7c2a68\u0026amp;signature=d6beceb50362179a7a84438c8f5d67c79bd3b29412c7865f62d4e52edfabd78e\">\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/creaoagent/tUWWd22AgUwL896o/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CREAO Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.creao.ai/features/secrets\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/secrets.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.creao.ai/#organization\",\"name\":\"CREAO Documentation\",\"url\":\"https://docs.creao.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/creaoagent/qsO6D45JE0FrSrZO/logo/light.svg?fit=max\u0026auto=format\u0026n=qsO6D45JE0FrSrZO\u0026q=85\u0026s=c85112c81c4c08190781587305b2c952\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.creao.ai#website\",\"name\":\"CREAO Documentation\",\"url\":\"https://docs.creao.ai\",\"publisher\":{\"@id\":\"https://docs.creao.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.creao.ai/features/secrets#webpage\",\"url\":\"https://docs.creao.ai/features/secrets\",\"name\":\"Secret Key Management\",\"description\":\"Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.\",\"dateModified\":\"2026-11-11T23:57:14.164Z\",\"isPartOf\":{\"@id\":\"https://docs.creao.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.creao.ai/features/secrets#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.creao.ai/features/secrets#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent Brain\",\"item\":\"https://docs.creao.ai/features/memory\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Secret Key Management\",\"item\":\"https://docs.creao.ai/features/secrets\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.creao.ai/features/secrets#article\",\"headline\":\"Secret Key Management\",\"name\":\"Secret Key Management\",\"description\":\"Securely store API keys, tokens, and credentials so the agent can use them in conversations without exposing sensitive values.\",\"url\":\"https://docs.creao.ai/features/secrets\",\"mainEntityOfPage\":{\"@id\":\"https://docs.creao.ai/features/secrets#webpage\"},\"dateModified\":\"2026-11-11T23:57:14.164Z\",\"publisher\":{\"@id\":\"https://docs.creao.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.creao.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CREAO Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CREAO Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/features/secrets.md","siteName":"CREAO Documentation","nav":{"global":{"anchors":[{"anchor":"CREAO","icon":"rocket","href":"https://agent.creao.ai"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/VPNExXcP9W"}]},"tabs":[{"tab":"Using CREAO","groups":[{"group":"Get Started","pages":[{"title":"Welcome to CREAO","href":""},{"title":"Quickstart","href":"/getting-started/quickstart"},{"title":"FAQ","href":"/faq"}]},{"group":"Features","pages":[{"title":"Chat","href":"/features/chat"},{"title":"Models","href":"/features/models"},{"title":"Agents","href":"/features/agents"},{"title":"Scheduled Runs","href":"/features/scheduled-runs"},{"title":"Dynamic Workflows","href":"/features/workflows"},{"title":"Slide Decks","href":"/features/slides"},{"title":"Workspaces","href":"/features/workspaces"},{"title":"Files","href":"/features/files"},{"title":"Team Rooms","href":"/features/rooms"},{"group":"CREAO Connect","pages":[{"title":"CREAO Connect","href":"/features/device-connect/index"},{"title":"Terminal and Linux servers","href":"/features/device-connect/terminal"}]}]},{"group":"Agent Brain","pages":[{"title":"Memory","href":"/features/memory"},{"title":"Skills and Connectors","description":"Built-in capabilities and external integrations that power what the agent can do — from web search to Gmail to custom workflows.","href":"/features/skills-and-connectors"},{"title":"Secret Key Management","href":"/features/secrets"},{"title":"Widgets","description":"Browse the visual components that make up dashboards in agent sessions.","href":"/features/widgets"},{"title":"Browser Use","href":"/features/browser-use"}]},{"group":"Advanced","pages":[{"title":"Sandbox Lifecycle","href":"/pro/sandbox-lifecycle"},{"title":"Agent Runtime Environment","href":"/pro/agent-runtime-environment"},{"title":"Agent Reference Files","href":"/pro/agent-reference-files"},{"title":"API Trigger","href":"/pro/api-trigger"}]},{"group":"Trust \u0026 Safety","pages":[{"title":"Privacy","href":"/trust-and-safety/privacy"},{"title":"Security","href":"/trust-and-safety/security"},{"title":"Support","href":"/support"}]}]},{"tab":"CREAO CLI","pages":[{"title":"CREAO CLI","href":"/developer-api/overview"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/community-and-updates/changelog"}]},{"tab":"Community","pages":[{"title":"Community","href":"/community-and-updates/community-hub"}]}]},"basePath":"","title":"Secret Key Management - CREAO Documentation","buildId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","deploymentId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","dynamics":["07c022d89b","a74be98ba7","a9bb46feb3"],"chunks":["Frame-B_503rGq.js","DynamicMarkdown-BfddVCX7.js","zoom-image-lightbox-B3yYlvdS.js","lightbox-handle-r17bVUz3.js","Markdown-DsWjhwJ4.js","clsx-B2t_mZQG.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CUljsAY7.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Cf70306N.js"]}