Skip to main content
Open your app’s Cloud panel, then Keys and secrets, to manage values its server reads at runtime. Each app has its own keys. Keep credentials out of source files and chat messages.
Stripe keys have their own More > Payments page. Set up Stripe creates and connects a test account in one click without an existing account or pasted key. Stripe test keys work in the preview; live Stripe keys never reach it. See Payments.

Add a service key

1

Open Keys and secrets

Open Cloud, then Keys and secrets in the app you are building.
2

Enter the name and value

Use the exact name your app reads, such as OPENWEATHER_API_KEY. Paste the credential under its value, not its name. Keep sensitive values hidden.
3

Choose what the preview uses

Choose the same value as the live app, a separate preview value or no value in the preview. Use a provider’s test credentials when available. Live Stripe keys are excluded from previews regardless of the variable name.
4

Save and read the status

The page shows which values the preview and live app use. Newer published apps receive supported key changes when you save; if the page says a change waits for your next publish, publish again. An unpublished app receives its live keys when you first publish it.

How your app uses keys

Your app’s server reads keys at runtime. Saving a key does not write its value into generated source. The builder can work with key names and connection status without seeing hidden values. A preview feature that needs a key only works when you have chosen a usable preview value. A missing key, misspelled name or invalid provider credential can cause that feature to fail. Check the key’s status and generated server code before changing the integration.

Keep credentials private

  • Keep keys out of components, API responses, chat and source control.
  • Use separate test credentials where your provider supports them.
  • Revoke and replace a credential if it is exposed.
  • When handing an app to a developer, document required variable names, not their values. Configure credentials separately on the destination host.

Frequently asked questions

No. Saved keys are separate from source code and are not included in a code download or GitHub push. A key you manually pasted into a source file is part of that file, so remove it and rotate it before sharing the code.
Yes. Choose a separate preview value in the key editor. You can also exclude a key from the preview. Stripe test and live keys are managed separately on Payments.
Follow the status on Keys and secrets or Payments. Supported live apps receive saved changes immediately; older apps may need another publish.
Under More > Payments, which validates and saves them. You can use Set up Stripe without pasting any key to begin testing.