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.
Press Add Variable
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.Paste the value
Press Save
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.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”.
Two examples make the split clear:
EXPO_PUBLIC_SUPABASE_URLis fine as a public value. It is an address, and it is protected by database rules.STRIPE_SECRET_KEYmust be Server-side only. It can move money.
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
Rotate a key you leaked
If a key ends up somewhere public, changing it in Rork is not enough. Do it in this order:Revoke the key at the provider
Create a new key
Update the variable in Rork
Check where it was exposed
FAQ
Should I paste my API key into the chat?
Should I paste my API key into the chat?
Do secrets go to GitHub?
Do secrets go to GitHub?
Are secrets per project or per account?
Are secrets per project or per account?
I added a variable and the app still cannot see it.
I added a variable and the app still cannot see it.
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?
Do I need my own OpenAI key to use AI in my app?
Where do Supabase keys go?
Where do Supabase keys go?