Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.
Most useful apps need a key: a weather API, an email sender, a payment provider, a model provider. Those keys belong in your project’s Secrets, not in your code and not in a chat message.
Where secrets live
Open More → Secrets in a project.
The Secrets editor. Values are hidden until you press the eye, and the label under each key says how far it travels.
1
Press Add Variable
A new row appears with a Key and a Value.
2
Type the name in capitals with underscores
RESEND_API_KEY, STRIPE_SECRET_KEY, OPENWEATHER_API_KEY. Use the exact name the provider’s documentation uses.
3
Paste the value
Rork hides it straight away. The eye button reveals it when you need to check it.
4
Press Save
Rork stores the variable and rebuilds the parts of your app that need it.
Adding several at once is faster with Bulk Edit. Paste one variable per line as KEY=value.
How far a variable travels
The label under each key is the important part of this page. It tells you who can read that value.
Label
Where the value goes
Server-side only
Stays on the server. Your users can never read it
Available at build time
Baked into the app when it is built
Available to all users
Shipped inside the app, readable by anyone who installs it
The rule that decides this is the name. A variable whose name starts with EXPO_PUBLIC_ is sent to the app itself, and everything else stays server-side. The editor repeats the rule at the bottom: “Prefix with EXPO_PUBLIC_ to make a variable available on the client-side”.
Never give a secret key an EXPO_PUBLIC_ name, and never paste one into your app’s code. Anything shipped inside an app can be extracted from it, which means a leaked key on your account, used by strangers, billed to you. A private key belongs in a Server-side only variable, used by a server function.
Two examples make the split clear:
EXPO_PUBLIC_SUPABASE_URL is fine as a public value. It is an address, and it is protected by database rules.
STRIPE_SECRET_KEY must be Server-side only. It can move money.
If your feature needs a private key, ask Rork for a server function and it will build one:
Send the confirmation email from a server function so the Resend key stays private
Some rows are marked Managed by Rork or Managed by the Supabase integration. Rork wrote those values, and you can still replace or remove them: type a new value, or delete the row, then choose Save. Rork may write its own value again later, for example when you reconnect Supabase. To replace a leaked Rork AI Cloud key, use Rotate under Project settings > Danger Zone instead: it registers a new key and revokes the old one, which typing a value does not.
When Rork asks you for a key
You usually do not open the Secrets editor at all. When a build needs a key, Rork stops and asks in chat, with one field per key and a short description of what each one is for. Paste the values and press Save & Continue, and the build carries on where it stopped.When Rork already knows the values, for example after an integration, the card asks you to confirm instead: Yes, set them.
Who can see your keys
Role
Secrets
Owner
Can read and edit
Editor
Can read and edit
Viewer
Sees the panel, cannot edit
So an editor on your project can read your keys. Invite editors accordingly. See Share a project and work together.A cloned project carries your variables over, except the keys Rork manages itself, which it mints fresh for the copy.
Rotate a key you leaked
If a key ends up somewhere public, changing it in Rork is not enough. Do it in this order:
1
Revoke the key at the provider
Delete or rotate it in the provider’s own dashboard. That is what actually stops the key from working.
2
Create a new key
Copy the new value.
3
Update the variable in Rork
Same key name, new value, then Save.
4
Check where it was exposed
If it was in your code, ask Rork to remove it and to read the value from the variable instead.
FAQ
Should I paste my API key into the chat?
Prefer the Secrets editor, or the card Rork shows when it needs a key. Both keep the value out of the conversation.
Do secrets go to GitHub?
No. They live with the project, not in your code, so they are not committed. Set them again in any environment you run the code yourself. See How to sync your project with GitHub.
Are secrets per project or per account?
Per project. A project with an iPhone app and a web app shares one set of variables.
I added a variable and the app still cannot see it.
Reload the preview first. If it is a native app, the value is baked in at build time, so it needs a new build. If the name is missing the EXPO_PUBLIC_ prefix, the app cannot read it by design, and the call belongs on the server.
Do I need my own OpenAI key to use AI in my app?
Not necessarily. Rork Cloud gives your app models without your own provider keys. See What is Rork Cloud.
A backend inside Rork, with server-side keys handled for you.
Share the project
Who can read your secrets, and who cannot.
Add payments
Set up in-app purchases with RevenueCat.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Rork","colors":{"primary":"#171717","light":"#E7E7E7","dark":"#171717"},"logo":{"light":"https://mintcdn.com/rork/eYyf6ge21iySMGg9/logo/light.svg?fit=max\u0026auto=format\u0026n=eYyf6ge21iySMGg9\u0026q=85\u0026s=0c489dc21f64b4a7cdac60383bfffe89","dark":"https://mintcdn.com/rork/eYyf6ge21iySMGg9/logo/dark.svg?fit=max\u0026auto=format\u0026n=eYyf6ge21iySMGg9\u0026q=85\u0026s=e8ccb0a4228b0e3ab2cd46fe90d0aa44"},"favicon":"https://mintcdn.com/rork/S1ERT70sj05hgVrd/favicon.svg?fit=max\u0026auto=format\u0026n=S1ERT70sj05hgVrd\u0026q=85\u0026s=8d03d78f6f5f3d36d3740dfae42b57a5","appearance":{"default":"dark","strict":true},"navbar":{"links":[{"href":"mailto:team@rorkai.com","label":"Support"}],"primary":{"type":"button","label":"Go to App","href":"https://rorkai.com?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs-cta\u0026utm_content=navbar"}},"footer":{"socials":{"x":"https://x.com/rork_app","discord":"https://discord.gg/rxBHytVKaT"}},"seo":{"metatags":{"msvalidate.01":"670B347F489FB0E01541E84B795B596E"},"indexing":"all"},"contextual":{"options":[{"title":"Build with Rork","description":"Turn this guide into an app idea and start building","icon":"/logo/mark.svg","href":{"base":"https://rork.com","query":[{"key":"q","value":"I want to build the next big app inspired by https://docs.rork.com$path"},{"key":"plan","value":"true"},{"key":"utm_source","value":"docs"},{"key":"utm_medium","value":"referral"},{"key":"utm_campaign","value":"docs-cta"},{"key":"utm_content","value":"contextual-menu"}]}},"copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Discord Community","icon":"discord","href":"https://discord.gg/rxBHytVKaT"},{"anchor":"Blog","icon":"newspaper","href":"https://rork.com/blog"},{"anchor":"Guides","icon":"compass","href":"https://rork.com/guides"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rork","hasAudioNarration":false,"actualSubdomain":"rork","customDomains":["docs.rork.com"],"gitSource":{"type":"github","owner":"rorkai","repo":"rorkai","deployBranch":"main","contentDirectory":"frontend/docs","isPrivate":true,"mountPath":"","label":"","_id":"6af3807f48a61271e87f3fb7"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0dd5ff11ab0c755ddafd7f","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Build","count":19},{"language":"default","tag":"Publishing","count":17},{"language":"default","tag":"App Store","count":12},{"language":"default","tag":"Frequently Asked Questions","count":9},{"language":"default","tag":"Marketing","count":8},{"language":"default","tag":"Backend","count":6},{"language":"default","tag":"Choosing a platform","count":5},{"language":"default","tag":"Project tools","count":5},{"language":"default","tag":"APIs and integrations","count":5},{"language":"default","tag":"Edit your app","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".rork-max-hero{display:grid!important;grid-template-columns:repeat(3, minmax(0, 1fr));gap:20px;align-items:start;margin:8px 0 32px;width:100%}.rork-max-hero-item{min-width:0!important;max-width:none!important;width:auto!important;flex:unset!important;text-align:center}.rork-max-phone{background:#0a0a0a;border:8px solid #0a0a0a;border-radius:36px;box-shadow:0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 45px rgba(0, 0, 0, 0.45);line-height:0;overflow:hidden;width:100%;box-sizing:border-box}.rork-max-duo{display:grid!important;grid-template-columns:repeat(2, minmax(0, 280px));gap:28px;align-items:start;justify-content:center;margin:20px 0 36px;width:100%}.rork-max-solo{display:grid!important;grid-template-columns:minmax(0, 280px);justify-content:center;margin:20px 0 32px;width:100%}.rork-max-phone img,.rork-max-phone video,.rork-max-hero video,.rork-max-duo video,.rork-max-duo img,.rork-max-solo video,.rork-max-solo img{width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;aspect-ratio:660 / 1434!important;object-fit:cover!important;object-position:center top!important;border-radius:0!important;display:block!important;margin:0!important;border:0!important;vertical-align:top}.rork-max-ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:28px 0 36px}.rork-max-ctas a{display:inline-block;padding:12px 28px;font-size:15px;font-weight:600;border-radius:100px;text-decoration:none;text-align:center;box-sizing:border-box;max-width:100%}@media (max-width: 720px){.rork-max-hero,.rork-max-duo{grid-template-columns:minmax(0, 280px)!important;justify-content:center;gap:28px}.rork-max-solo{grid-template-columns:minmax(0, 280px)!important}.rork-max-phone{border-width:7px;border-radius:32px}.rork-max-ctas{flex-direction:column;align-items:stretch}.rork-max-ctas a{width:100%;white-space:normal}}.reviewer-frame{animation:reviewer-rise 700ms ease-out both}.reviewer-area{--reviewer-stagger: 60ms;animation:reviewer-rise 600ms ease-out both;transition:background-color 200ms ease}.reviewer-area:hover{background-color:color-mix(in srgb, currentColor 5%, transparent)}@supports (animation-delay: calc(sibling-index() * 1ms)){.reviewer-area{animation-delay:calc(sibling-index() * var(--reviewer-stagger))}}@supports not (animation-delay: calc(sibling-index() * 1ms)){.reviewer-area:nth-child(1){animation-delay:60ms}.reviewer-area:nth-child(2){animation-delay:120ms}.reviewer-area:nth-child(3){animation-delay:180ms}.reviewer-area:nth-child(4){animation-delay:240ms}.reviewer-area:nth-child(5){animation-delay:300ms}}@keyframes reviewer-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion: reduce){.reviewer-frame,.reviewer-area{animation:none}.reviewer-area{transition:none}}figure:has(img[src*=\"/images/rork-max-app/\"]){max-width:min(100%, 420px);margin-left:auto;margin-right:auto}figure:has(img[src*=\"/images/rork-max-app/\"]) figcaption{max-width:100%}"}]}
{"page":{"pagePath":"features/secrets","slug":"/features/secrets","pageMetadata":{"title":"API keys and environment variables","sidebarTitle":"Keys and secrets","description":"Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.","keywords":["rork secrets","environment variables","api key in app","expo public prefix","server side only key","store api key safely","rork env editor"],"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: \"Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.\"\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];const __snippet_tagCtaLink_3acd3r=event=>{const link=event.currentTarget;const url=new URL(link.href);url.searchParams.set(`utm_content`,window.location.pathname);link.href=url.toString()};const CtaBanner=()=>_jsxs(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`24px`,flexWrap:`wrap`,margin:`40px 0 8px`,padding:`22px 28px`,borderRadius:`16px`,background:`linear-gradient(135deg,rgba(249,115,22,0.10),rgba(255,255,255,0.03),rgba(249,115,22,0.06))`,border:`1px solid rgba(255,255,255,0.08)`},children:[_jsxs(`div`,{children:[_jsx(`div`,{style:{fontSize:`19px`,fontWeight:700,color:`#fff`,letterSpacing:`-0.3px`,lineHeight:1.3},children:`Build your app with Rork today.`}),_jsx(`div`,{style:{fontSize:`14px`,color:`rgba(255,255,255,0.6)`,marginTop:`4px`,lineHeight:1.5},children:`Ship iOS, Android, and web apps by chatting with AI.`})]}),_jsx(`a`,{href:`https://rork.com?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs-cta\u0026utm_content=cta-banner`,onClick:__snippet_tagCtaLink_3acd3r,style:{flexShrink:0,display:`inline-block`,padding:`10px 24px`,background:`linear-gradient(135deg,#fff,#f0f0f0)`,color:`#000`,fontSize:`14px`,fontWeight:600,borderRadius:`100px`,textDecoration:`none`,whiteSpace:`nowrap`},children:`Try Rork for Free`})]});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},{Accordion,AccordionGroup,Card,CardGroup,CodeBlock,Frame,Heading,OptimizedImage,Step,Steps,Table,Warning,_MdxComponentBoundary}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Most useful apps need a key: a weather API, an email sender, a payment provider, a model provider. Those keys belong in your project’s `,_jsx(_components.strong,{children:`Secrets`}),`, not in your code and not in a chat message.`]}),`\n`,_jsx(Heading,{level:`2`,id:`where-secrets-live`,children:`Where secrets live`}),`\n`,_jsxs(_components.p,{children:[`Open `,_jsx(_components.strong,{children:`More → Secrets`}),` in a project.`]}),`\n`,_jsx(Frame,{caption:`The Secrets editor. Values are hidden until you press the eye, and the label under each key says how far it travels.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/rork/DvKNYT4s6kJH2rkl/images/secrets/env-editor.png?fit=max\u0026auto=format\u0026n=DvKNYT4s6kJH2rkl\u0026q=85\u0026s=3a728590db9503cddedaec82992d68e9`,alt:`The Rork Secrets panel with a RESEND_API_KEY row, a hidden value, a Server-side only label, an Add Variable button, and Bulk Edit and Save buttons`,\"data-og-width\":`2470`,width:`2470`,\"data-og-height\":`501`,height:`501`,\"data-path\":`images/secrets/env-editor.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/rork/DvKNYT4s6kJH2rkl/images/secrets/env-editor.png?w=280\u0026fit=max\u0026auto=format\u0026n=DvKNYT4s6kJH2rkl\u0026q=85\u0026s=3494e8ba0cdd2dd315515cebd3efc41e 280w, https://mintcdn.com/rork/DvKNYT4s6kJH2rkl/images/secrets/env-editor.png?w=560\u0026fit=max\u0026auto=format\u0026n=DvKNYT4s6kJH2rkl\u0026q=85\u0026s=cbd31d43e2744b4703ff3fa72aa553b7 560w, https://mintcdn.com/rork/DvKNYT4s6kJH2rkl/images/secrets/env-editor.png?w=840\u0026fit=max\u0026auto=format\u0026n=DvKNYT4s6kJH2rkl\u0026q=85\u0026s=62de0ed932571a7bf53af5ce80a3559f 840w, https://mintcdn.com/rork/DvKNYT4s6kJH2rkl/images/secrets/env-editor.png?w=1100\u0026fit=max\u0026auto=format\u0026n=DvKNYT4s6kJH2rkl\u0026q=85\u0026s=2b492bed5f33a9a49965a9ef90438365 1100w, https://mintcdn.com/rork/DvKNYT4s6kJH2rkl/images/secrets/env-editor.png?w=1650\u0026fit=max\u0026auto=format\u0026n=DvKNYT4s6kJH2rkl\u0026q=85\u0026s=702bf0e85564863c35c1fce9dc5a44df 1650w, https://mintcdn.com/rork/DvKNYT4s6kJH2rkl/images/secrets/env-editor.png?w=2500\u0026fit=max\u0026auto=format\u0026n=DvKNYT4s6kJH2rkl\u0026q=85\u0026s=c8e4e64f17248a31c3d8e99dccc001df 2500w`})}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Press Add Variable`,children:_jsxs(_components.p,{children:[`A new row appears with a `,_jsx(_components.strong,{children:`Key`}),` and a `,_jsx(_components.strong,{children:`Value`}),`.`]})}),_jsx(Step,{title:`Type the name in capitals with underscores`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`RESEND_API_KEY`}),`, `,_jsx(_components.code,{children:`STRIPE_SECRET_KEY`}),`, `,_jsx(_components.code,{children:`OPENWEATHER_API_KEY`}),`. Use the exact name the provider’s documentation uses.`]})}),_jsx(Step,{title:`Paste the value`,children:_jsx(_components.p,{children:`Rork hides it straight away. The eye button reveals it when you need to check it.`})}),_jsx(Step,{title:`Press Save`,children:_jsx(_components.p,{children:`Rork stores the variable and rebuilds the parts of your app that need it.`})})]}),`\n`,_jsxs(_components.p,{children:[`Adding several at once is faster with `,_jsx(_components.strong,{children:`Bulk Edit`}),`. Paste one variable per line as `,_jsx(_components.code,{children:`KEY=value`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-far-a-variable-travels`,children:`How far a variable travels`}),`\n`,_jsx(_components.p,{children:`The label under each key is the important part of this page. It tells you who can read that value.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Label`}),_jsx(_components.th,{children:`Where the value goes`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Server-side only`})}),_jsx(_components.td,{children:`Stays on the server. Your users can never read it`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Available at build time`})}),_jsx(_components.td,{children:`Baked into the app when it is built`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Available to all users`})}),_jsx(_components.td,{children:`Shipped inside the app, readable by anyone who installs it`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The rule that decides this is the name. A variable whose name starts with `,_jsx(_components.code,{children:`EXPO_PUBLIC_`}),` is sent to the app itself, and everything else stays server-side. The editor repeats the rule at the bottom: “Prefix with `,_jsx(_components.code,{children:`EXPO_PUBLIC_`}),` to make a variable available on the client-side”.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Never give a secret key an `,_jsx(_components.code,{children:`EXPO_PUBLIC_`}),` name, and never paste one into your app’s code. Anything shipped inside an app can be extracted from it, which means a leaked key on your account, used by strangers, billed to you. A private key belongs in a `,_jsx(_components.strong,{children:`Server-side only`}),` variable, used by a server function.`]})}),`\n`,_jsx(_components.p,{children:`Two examples make the split clear:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`EXPO_PUBLIC_SUPABASE_URL`}),` is fine as a public value. It is an address, and it is protected by database rules.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`STRIPE_SECRET_KEY`}),` must be `,_jsx(_components.strong,{children:`Server-side only`}),`. It can move money.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`If your feature needs a private key, ask Rork for a server function and it will build one:`}),`\n`,_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:`Send the confirmation email from a server function so the Resend key stays private`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Some rows are marked `,_jsx(_components.strong,{children:`Managed by Rork`}),` or `,_jsx(_components.strong,{children:`Managed by the Supabase integration`}),`. Rork wrote those values, and you can still replace or remove them: type a new value, or delete the row, then choose `,_jsx(_components.strong,{children:`Save`}),`. Rork may write its own value again later, for example when you reconnect Supabase. To replace a leaked Rork AI Cloud key, use `,_jsx(_components.strong,{children:`Rotate`}),` under Project settings > Danger Zone instead: it registers a new key and revokes the old one, which typing a value does not.`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-rork-asks-you-for-a-key`,children:`When Rork asks you for a key`}),`\n`,_jsxs(_components.p,{children:[`You usually do not open the Secrets editor at all. When a build needs a key, Rork stops and asks in chat, with one field per key and a short description of what each one is for. Paste the values and press `,_jsx(_components.strong,{children:`Save \u0026 Continue`}),`, and the build carries on where it stopped.`]}),`\n`,_jsxs(_components.p,{children:[`When Rork already knows the values, for example after an integration, the card asks you to confirm instead: `,_jsx(_components.strong,{children:`Yes, set them`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`who-can-see-your-keys`,children:`Who can see your keys`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Role`}),_jsx(_components.th,{children:`Secrets`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Owner`}),_jsx(_components.td,{children:`Can read and edit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Editor`}),_jsx(_components.td,{children:`Can read and edit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Viewer`}),_jsx(_components.td,{children:`Sees the panel, cannot edit`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`So an editor on your project can read your keys. Invite editors accordingly. See `,_jsx(_components.a,{href:`/collaborate/share-a-project`,children:`Share a project and work together`}),`.`]}),`\n`,_jsx(_components.p,{children:`A cloned project carries your variables over, except the keys Rork manages itself, which it mints fresh for the copy.`}),`\n`,_jsx(Heading,{level:`2`,id:`rotate-a-key-you-leaked`,children:`Rotate a key you leaked`}),`\n`,_jsx(_components.p,{children:`If a key ends up somewhere public, changing it in Rork is not enough. Do it in this order:`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Revoke the key at the provider`,children:_jsx(_components.p,{children:`Delete or rotate it in the provider’s own dashboard. That is what actually stops the key from working.`})}),_jsx(Step,{title:`Create a new key`,children:_jsx(_components.p,{children:`Copy the new value.`})}),_jsx(Step,{title:`Update the variable in Rork`,children:_jsxs(_components.p,{children:[`Same key name, new value, then `,_jsx(_components.strong,{children:`Save`}),`.`]})}),_jsx(Step,{title:`Check where it was exposed`,children:_jsx(_components.p,{children:`If it was in your code, ask Rork to remove it and to read the value from the variable instead.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`faq`,children:`FAQ`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Should I paste my API key into the chat?`,id:`should-i-paste-my-api-key-into-the-chat`,children:_jsx(_components.p,{children:`Prefer the Secrets editor, or the card Rork shows when it needs a key. Both keep the value out of the conversation.`})}),_jsx(Accordion,{title:`Do secrets go to GitHub?`,id:`do-secrets-go-to-github`,children:_jsxs(_components.p,{children:[`No. They live with the project, not in your code, so they are not committed. Set them again in any environment you run the code yourself. See `,_jsx(_components.a,{href:`/tutorials/how-to-connect-github`,children:`How to sync your project with GitHub`}),`.`]})}),_jsx(Accordion,{title:`Are secrets per project or per account?`,id:`are-secrets-per-project-or-per-account`,children:_jsx(_components.p,{children:`Per project. A project with an iPhone app and a web app shares one set of variables.`})}),_jsx(Accordion,{title:`I added a variable and the app still cannot see it.`,id:`i-added-a-variable-and-the-app-still-cannot-see-it`,children:_jsxs(_components.p,{children:[`Reload the preview first. If it is a native app, the value is baked in at build time, so it needs a new build. If the name is missing the `,_jsx(_components.code,{children:`EXPO_PUBLIC_`}),` prefix, the app cannot read it by design, and the call belongs on the server.`]})}),_jsx(Accordion,{title:`Do I need my own OpenAI key to use AI in my app?`,id:`do-i-need-my-own-openai-key-to-use-ai-in-my-app`,children:_jsxs(_components.p,{children:[`Not necessarily. Rork Cloud gives your app models without your own provider keys. See `,_jsx(_components.a,{href:`/backend/rork-cloud`,children:`What is Rork Cloud`}),`.`]})}),_jsx(Accordion,{title:`Where do Supabase keys go?`,id:`where-do-supabase-keys-go`,children:_jsxs(_components.p,{children:[`Connecting Supabase sets them for you and marks them as managed. See `,_jsx(_components.a,{href:`/backend/supabase`,children:`How to add a Supabase backend to Rork`}),`.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next steps`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{icon:`plug`,href:`/features-apis/apis/how-to-connect-an-api-to-your-project`,title:`Connect an API`,children:_jsx(_components.p,{children:`Use a third party API with your new key.`})}),_jsx(Card,{icon:`database`,href:`/backend/rork-cloud`,title:`Rork Cloud`,children:_jsx(_components.p,{children:`A backend inside Rork, with server-side keys handled for you.`})}),_jsx(Card,{icon:`users`,href:`/collaborate/share-a-project`,title:`Share the project`,children:_jsx(_components.p,{children:`Who can read your secrets, and who cannot.`})}),_jsx(Card,{icon:`credit-card`,href:`/payment-guides/revenuecat-copied-1`,title:`Add payments`,children:_jsx(_components.p,{children:`Set up in-app purchases with RevenueCat.`})})]}),`\n`,_jsx(_MdxComponentBoundary,{name:`CtaBanner`,children:_jsx(CtaBanner,{})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{__snippet_tagCtaLink_3acd3r,CtaBanner,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":"API keys and environment variables","sidebarTitle":"Keys and secrets","description":"Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.","keywords":["rork secrets","environment variables","api key in app","expo public prefix","server side only key","store api key safely","rork env editor"],"href":"/features/secrets"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[162,1415,"()=>null;const CtaBanner=()=>null;functi"]]},"mdxExtracts":{"tableOfContents":[{"title":"Where secrets live","slug":"where-secrets-live","depth":2,"children":[]},{"title":"How far a variable travels","slug":"how-far-a-variable-travels","depth":2,"children":[]},{"title":"When Rork asks you for a key","slug":"when-rork-asks-you-for-a-key","depth":2,"children":[]},{"title":"Who can see your keys","slug":"who-can-see-your-keys","depth":2,"children":[]},{"title":"Rotate a key you leaked","slug":"rotate-a-key-you-leaked","depth":2,"children":[]},{"title":"FAQ","slug":"faq","depth":2,"children":[]},{"title":"Next steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"rork","siteName":"Rork","title":"API keys and environment variables - Rork","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-14T20:24:44.084Z","originalFileLocation":"features/secrets.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";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=\"dark\"}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=\"Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Rork\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_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/rork/mIOWX398EqCekUzV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rork/mIOWX398EqCekUzV/_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/rork/mIOWX398EqCekUzV/_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/rork/mIOWX398EqCekUzV/_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/rork/mIOWX398EqCekUzV/_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/rork/mIOWX398EqCekUzV/_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/rork/mIOWX398EqCekUzV/_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/rork/mIOWX398EqCekUzV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API keys and environment variables - Rork\">\u003cmeta data-mint-head property=\"og:description\" content=\"Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Rork\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.rork.com/features/secrets\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rork.mintlify.site/_mintlify/api/og/v2?division=APIs+and+integrations\u0026amp;title=API+keys+and+environment+variables\u0026amp;description=Store+API+keys+in+your+Rork+project+instead+of+pasting+them+into+code.+This+page+explains+the+Secrets+editor%2C+which+variables+reach+the+phone%2C+and+how+to+keep+a\u0026amp;theme=f68352a07940af373749b751\u0026amp;signature=9101a715a0a0e5ec585e05c28c3ba049fc872c5ba19b73ed63c12e27d51977fd\">\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=\"API keys and environment variables - Rork\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rork.mintlify.site/_mintlify/api/og/v2?division=APIs+and+integrations\u0026amp;title=API+keys+and+environment+variables\u0026amp;description=Store+API+keys+in+your+Rork+project+instead+of+pasting+them+into+code.+This+page+explains+the+Secrets+editor%2C+which+variables+reach+the+phone%2C+and+how+to+keep+a\u0026amp;theme=f68352a07940af373749b751\u0026amp;signature=9101a715a0a0e5ec585e05c28c3ba049fc872c5ba19b73ed63c12e27d51977fd\">\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/rork/mIOWX398EqCekUzV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Rork\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#171717\">\u003cmeta data-mint-head name=\"msvalidate.01\" content=\"670B347F489FB0E01541E84B795B596E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.rork.com/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.rork.com/#organization\",\"name\":\"Rork\",\"url\":\"https://docs.rork.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rork/eYyf6ge21iySMGg9/logo/light.svg?fit=max\u0026auto=format\u0026n=eYyf6ge21iySMGg9\u0026q=85\u0026s=0c489dc21f64b4a7cdac60383bfffe89\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.rork.com#website\",\"name\":\"Rork\",\"url\":\"https://docs.rork.com\",\"publisher\":{\"@id\":\"https://docs.rork.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.rork.com/features/secrets#webpage\",\"url\":\"https://docs.rork.com/features/secrets\",\"name\":\"API keys and environment variables\",\"description\":\"Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.\",\"dateModified\":\"2026-11-14T20:24:44.084Z\",\"isPartOf\":{\"@id\":\"https://docs.rork.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.rork.com/features/secrets#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.rork.com/features/secrets#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Build\",\"item\":\"https://docs.rork.com/features/agent-modes\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"APIs and integrations\",\"item\":\"https://docs.rork.com/features\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"API keys and environment variables\",\"item\":\"https://docs.rork.com/features/secrets\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.rork.com/features/secrets#article\",\"headline\":\"API keys and environment variables\",\"name\":\"API keys and environment variables\",\"description\":\"Store API keys in your Rork project instead of pasting them into code. This page explains the Secrets editor, which variables reach the phone, and how to keep a private key private.\",\"url\":\"https://docs.rork.com/features/secrets\",\"mainEntityOfPage\":{\"@id\":\"https://docs.rork.com/features/secrets#webpage\"},\"dateModified\":\"2026-11-14T20:24:44.084Z\",\"keywords\":\"rork secrets, environment variables, api key in app, expo public prefix, server side only key, store api key safely, rork env editor\",\"publisher\":{\"@id\":\"https://docs.rork.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.rork.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Rork\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Rork\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/features/secrets.md","siteName":"Rork","nav":{"global":{"anchors":[{"anchor":"Discord Community","icon":"discord","href":"https://discord.gg/rxBHytVKaT"},{"anchor":"Blog","icon":"newspaper","href":"https://rork.com/blog"},{"anchor":"Guides","icon":"compass","href":"https://rork.com/guides"}]},"pages":[{"group":"Getting started","icon":"rocket","pages":[{"title":"Welcome","href":"/index"},{"title":"How to tell if your app idea is good","href":"/elements-of-a-good-idea/how-to-tell-if-your-idea-is-good"},{"title":"How to build your first app","href":"/introduction/build-your-first-app"},{"title":"How to prompt succesfully","href":"/introduction/introduction/prompting-strategy"}]},{"group":"Choosing a platform","icon":"compass","pages":[{"title":"Swift vs React Native: iPhone, Android, or web","sidebarTitle":"iPhone, Android, or web: what's the difference","href":"/swift-vs-react-native/whats-the-difference"},{"title":"Build a native iPhone app with Rork","sidebarTitle":"iPhone apps","href":"/iphone/rork-iphone"},{"title":"Build a native Android app with Rork","sidebarTitle":"Android apps","href":"/android/rork-android"},{"title":"Rork Web: build and publish a web app","sidebarTitle":"Web apps","href":"/web/rork-web"},{"title":"What happened to Expo?","href":"/expo"}]},{"group":"Import your project","icon":"download","pages":[{"title":"Convert your Lovable app to a mobile app","href":"/import/lovable-to-mobile-app"},{"title":"Import a GitHub repository into Rork","href":"/import/import-from-github"},{"title":"Move your project from any app builder to Rork","href":"/import/import-from-any-app-builder"},{"title":"Turn your website into a mobile app","href":"/import/website-to-mobile-app"},{"title":"Convert your app between iOS, Android, and web","href":"/import/convert-between-platforms"}]},{"group":"Build","icon":"sparkles","pages":[{"group":"Edit your app","pages":[{"title":"How the Rork agent works: Build, Plan, and Design modes","sidebarTitle":"How the agent works","href":"/features/agent-modes"},{"title":"Plan mode: see the whole app before you build","sidebarTitle":"Plan mode","href":"/features/plan-mode"},{"title":"Design mode: design a mobile app with AI","sidebarTitle":"Design mode","href":"/features/design-mode"},{"title":"Element Selection","sidebarTitle":"Element Selection","href":"/features/element-selection"},{"title":"Undo a change and go back a version","sidebarTitle":"Undo and history","href":"/features/undo-and-history"}]},{"group":"Media","pages":[{"title":"Images, video, audio, and 3D models","sidebarTitle":"Assets and AI media","href":"/features/assets"},{"title":"Image Generation","href":"/features/imagegeneration"}]},{"group":"APIs and integrations","pages":[{"title":"What is an API?","href":"/features/index"},{"title":"Connecting an API to Rork","description":"API's are great because they essentially allow your apps to do anything without you needing to do it.","href":"/features-apis/apis/how-to-connect-an-api-to-your-project"},{"title":"API keys and environment variables","sidebarTitle":"Keys and secrets","href":"/features/secrets"},{"title":"Plugins: connect your tools to Rork","sidebarTitle":"Plugins","description":"Connect Notion, Linear, GitHub, PostHog, Supabase, RevenueCat and more to Rork once. The agent can then read and act in them while it builds your app, and asks you before actions that change things.","href":"/features/plugins"},{"title":"Connect MCP servers to Rork","sidebarTitle":"MCP servers","href":"/features/mcp"}]},{"group":"Project tools","pages":[{"title":"Share a project and work together","sidebarTitle":"Share and collaborate","href":"/collaborate/share-a-project"},{"title":"Automations: let Rork work on a schedule","sidebarTitle":"Automations","href":"/features/automations"},{"title":"How to sync your project with Github","href":"/tutorials/how-to-connect-github"},{"title":"Open your project in Xcode","sidebarTitle":"Xcode (optional)","href":"/how-to-set-up-xcode/how-to-set-up-xcoe"},{"title":"Project analytics and revenue","sidebarTitle":"Analytics","href":"/features/analytics"}]},{"group":"Examples and tutorials","pages":[{"title":"Build a game with Rork","sidebarTitle":"Games","href":"/games/build-a-game"},{"title":"NanoBanana AI Image App Tutorial","href":"/quick-start-examples/nano-banana-image-app"}]}]},{"group":"Backend","icon":"database","pages":[{"title":"Do You Need a Backend for Your App?","href":"/backend/index"},{"title":"What is Rork Cloud","href":"/backend/rork-cloud"},{"title":"Add accounts and sign-in to your app","sidebarTitle":"Accounts and sign-in","href":"/integrations/backend/how-to-set-up-oauth"},{"title":"What is Rork's Backend Capabilities?","href":"/building-complex-apps/backend/what-is-rork-toolkit"},{"title":"How to add a Supabase backend to Rork","href":"/backend/supabase"},{"title":"How to add a Firebase backend to Rork","href":"/backend/firebase"}]},{"group":"Preview and test","icon":"play","pages":[{"title":"Rork simulator","sidebarTitle":"Rork simulator","href":"/features/simulator"},{"group":"On your device","pages":[{"title":"Rork Max app for iPhone","href":"/rork-max/rork-max-app"},{"title":"Rork Companion for Windows and Mac","sidebarTitle":"Rork Companion","href":"/rork-max-swift"}]},{"group":"Fix problems","pages":[{"title":"Read the code and read the logs","sidebarTitle":"Code and logs","href":"/features/code-and-logs"},{"title":"How to get out of an error loop","href":"/introduction/introduction/agent-loops"}]}]},{"group":"Publishing","icon":"upload","pages":[{"title":"Publish your app","sidebarTitle":"Publishing overview","href":"/introduction/deploy-your-app"},{"group":"App Store","pages":[{"title":"Create your Apple Developer Account to publish to App Store","href":"/store-guides/apple-developer-account"},{"title":"Publish Your App to the Apple App Store","href":"/store-guides/publish-app-store"},{"title":"Publishing","href":"/publishing"},{"title":"TestFlight: put your app on real phones","sidebarTitle":"TestFlight and testers","href":"/store-guides/testflight-beta-testers"},{"title":"Submission errors","href":"/submitting-to-app-store/apple/submission-errors"},{"title":"App Store Checklist","href":"/submitting-to-app-store/apple/app-store-checklist"},{"title":"App Store screenshots","href":"/appstore-screenshots/app-store-screenshots"},{"title":"Screenshot Studio: App Store screenshots in a minute","sidebarTitle":"Screenshot Studio","href":"/store-guides/screenshot-studio"},{"title":"AI App Store Reviewer","href":"/ai-app-store-reviewer"},{"title":"App Review guide","href":"/appstore-submission-checklist/app-review-guide"},{"title":"Main App Store rejection reasons","href":"/appstore-submission-checklist/whats-next-after-the-apps-finished"},{"title":"Reply to App Store reviews","sidebarTitle":"Customer reviews","href":"/store-guides/app-store-reviews"}]},{"group":"Play Store","pages":[{"title":"Create your Google Play developer account","sidebarTitle":"Google Play account","href":"/store-guides/google-play-developer-account"},{"title":"How to test Android apps on your Android device","href":"/submitting-to-play-store/apk-file"},{"title":"How to publish your Rork app to Google Play Store","href":"/submitting-to-play-store/creating-the-aab-file"}]},{"group":"Web","pages":[{"title":"Custom domains: put your Rork web app on your own domain","sidebarTitle":"Custom domains","href":"/web/custom-domains"}]}]},{"group":"Monetization","icon":"dollar-sign","pages":[{"title":"How to add a paywall to your Rork app with RevenueCat","href":"/payment-guides/revenuecat-copied-1"},{"title":"How to add a Free Trial","href":"/make-your-app-profitable/paywalls/how-to-add-a-free-trial"},{"title":"How To Create a privacy policy, Terms and conditions, and EULA","href":"/make-your-app-profitable/paywalls/how-to-set-up-your-policies"}]},{"group":"Marketing","icon":"megaphone","pages":[{"title":"Ideation","href":"/rork-playbook/playbook"},{"title":"Posting Organic Content","href":"/rork-playbook/untitled-page"},{"title":"Winning influencer creatives","href":"/rork-playbook/untitled-page-1"},{"title":"Finding Influencers and negotiating with them","href":"/rork-playbook/untitled-page-2"},{"title":"Onboarding and Monetization","href":"/rork-playbook/untitled-page-3"},{"title":"Helpful Resources","href":"/rork-playbook/untitled-page-4"},{"title":"How to Scale Your Mobile App to $50k+/Month (The Complete Guide)","sidebarTitle":"Scale to $50k+/month","href":"/rork-playbook/scale-to-50k-month"},{"title":"The 7 Ways to Scale Your App","sidebarTitle":"7 ways to scale","href":"/rork-playbook/seven-ways-to-scale-your-app"}]},{"group":"Billing","icon":"credit-card","pages":[{"title":"Rork pricing and plans: is Rork free?","sidebarTitle":"Plans \u0026 Subscriptions","href":"/introduction/subscriptions"},{"title":"How credits work","href":"/billing/credits"}]},{"group":"Frequently Asked Questions","icon":"circle-help","pages":[{"title":"Overview","href":"/faq/index"},{"title":"General","href":"/faq/general"},{"title":"Technical","href":"/faq/technical"},{"title":"Integrations","href":"/faq/integrations"},{"title":"Publishing","href":"/faq/publishing"},{"title":"Code Export","href":"/faq/code-export"},{"title":"Collaboration","href":"/faq/collaboration"},{"title":"Billing","href":"/faq/billing"},{"title":"Support","href":"/faq/support"}]},{"title":"Request Documentation","sidebarTitle":"Request more Information","href":"/request-documentation"}]},"basePath":"","title":"API keys and environment variables - Rork","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-NFVxKeb_.js","DynamicMarkdown-DOefW1_8.js","zoom-image-lightbox-DHIkV4p4.js","lightbox-handle-r17bVUz3.js"]}