Many apps need to call external services — payment processors, mapping APIs, email providers, and others — and those services require an API key to authenticate your requests. Hardcoding a key directly into your app is risky because anyone who views the source could read it. Genie’s Secrets feature gives you a secure place to store these keys: they are encrypted, never exposed in your chat history or generated code, and injected as environment variables when your app runs.Documentation Index
Fetch the complete documentation index at: https://docs.genie-app.de/llms.txt
Use this file to discover all available pages before exploring further.
Secrets require Genie Cloud to be connected to your project. If Genie Cloud is not connected, the Secrets tab will show a message asking you to set it up first. See Genie Cloud to get started.
How secrets work
A secret has two parts:- Name — the key your app uses to read the value (for example,
STRIPE_SECRET_KEY). Use uppercase letters and underscores, following standard environment variable naming conventions. - Value — the actual sensitive string (the API key, token, or password).
••••••••), and the date the secret was last updated.
When Genie runs your app, all of your project’s secrets are automatically available as environment variables. Your generated app code can read them with the appropriate method for the language or framework in use.
Opening the Secrets tab
Adding a secret
Click the Add button
In the Secrets tab, click the + Add button in the top-right area of the tab. A dialog opens.
Enter the name
Type the secret’s name in the Name field. This is the environment variable key your app will use — for example,
OPENAI_API_KEY.Enter the value
Type or paste the secret’s value in the Value field. This is the actual API key or password.
Viewing a secret
The Value column always shows•••••••• to protect the stored value. To see the actual value, click the eye icon (view action) next to the secret. A read-only dialog opens showing the name and value in plain text.
Editing a secret
Click the edit icon
In the secrets table, click the pencil icon next to the secret you want to change.
Update the name or value
The edit dialog opens with the current name and value pre-filled. You can change either or both fields.
Deleting a secret
Searching and paginating secrets
If you have many secrets, use the search bar at the top of the tab to filter by name. Results update as you type. The table shows up to 10 secrets per page; use the Previous and Next buttons at the bottom to navigate between pages.Secrets vs. general settings
It is worth understanding the difference between secrets and the other fields in Settings > General:| Secrets | General settings | |
|---|---|---|
| Stored encrypted | Yes | No |
| Visible after saving | Masked (••••••••) | Fully visible |
| Available to your app at runtime | Yes, as environment variables | No |
| Requires Genie Cloud | Yes | No |
| Example use | API keys, passwords, tokens | Project name, description, visibility |