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
1
Open your project
Navigate to the project you want to configure.
2
Click Settings
Click the Settings button (gear icon) in the project view.
3
Select Secrets
In the settings sidebar, click Secrets. The tab loads your existing secrets in a table with columns for Name, Value, Updated, and Actions.
Adding a secret
1
Click the Add button
In the Secrets tab, click the + Add button in the top-right area of the tab. A dialog opens.
2
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.3
Enter the value
Type or paste the secret’s value in the Value field. This is the actual API key or password.
4
Save
Click the save button in the dialog. The secret is encrypted and added to your project’s secrets list immediately.
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
1
Click the edit icon
In the secrets table, click the pencil icon next to the secret you want to change.
2
Update the name or value
The edit dialog opens with the current name and value pre-filled. You can change either or both fields.
3
Save
Click the confirm button. The secret is updated immediately. The Updated column in the table reflects the new timestamp.
Deleting a secret
1
Click the delete icon
Click the trash icon next to the secret you want to remove.
2
Confirm deletion
A confirmation dialog appears with the secret’s name. Click Delete to confirm.
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:
Never put sensitive values — API keys, passwords, or tokens — in the Name or Description fields in General settings. Those values are stored in plain text and may be visible to anyone who can view your project details.
