Add a key from the sidebar
Secrets sits under Advanced in your app's sidebar. Each secret's name is the one your code reads, written in capitals with underscores, such as TWILIO_API_KEY.

Secrets is where your Hercules app keeps API keys, passwords and connection strings. Save a key once, such as the Twilio key your appointment texts use. Hercules uses it to build the feature and never sees the value. You decide whether each secret reaches your live app, your test backends or both.
Secrets sits under Advanced in your app's sidebar. Each secret's name is the one your code reads, written in capitals with underscores, such as TWILIO_API_KEY.


Ask Hercules to "send SMS with Twilio" and it writes the feature to read your TWILIO_API_KEY. Hercules sees each secret's name, which is enough to write that code, and never its value.

Add the same key twice, once scoped to Production and once to Development, each with its own value. Your live app texts customers on the live Twilio key while every branch uses the test one.

Check Sensitive when you add a secret, and Hercules encrypts and hides the value once you save. Nobody can reveal a Sensitive value again, you included.
Backend functions can call any domain over HTTP, with no allowlist to configure. Keep the connection string for an outside Postgres database in Secrets and reach it through an HTTP driver, because the default backend runtime doesn't offer raw TCP connections.
Create an API key in Twilio's dashboard and copy its value.
Add TWILIO_API_KEY under Advanced, then Secrets, with the live value scoped to Production and marked Sensitive. Add a test value scoped to Development.
Text each customer a reminder the day before their appointment, using Twilio.
Hercules writes the scheduled job that reads TWILIO_API_KEY. Try it on a branch, which gets the Development value, then merge and publish.
In this hypothetical example, a commercial HVAC contractor with 90 technicians replaces their Twilio key without rewriting the text alerts that tell building managers a technician is on the way. The live key sits in Production, marked Sensitive, so nobody in the office can copy it out of Hercules. Then the dispatcher who set up Twilio leaves. The office manager deletes the old key in Twilio and in Secrets and saves a new one under the same name. The app still reads TWILIO_API_KEY, and a test text confirms the new key works.
To change a Sensitive secret, edit it and enter the new value. Leave the value field blank to keep the current one. Secrets
Your app's backend calls from the public IP addresses listed on the Backend docs page. An outside database or service that only accepts known addresses needs them.
Your app's code reads a secret as process.env followed by the secret's name, such as process.env.TWILIO_API_KEY. Secrets
When your app says every secret is missing, it usually resolves within 30 seconds, and if it doesn't, contact support. When one secret is missing, check that it exists and is scoped to the environment that needs it.
Open Advanced, then Secrets, in your app's sidebar and save the key your next feature needs. Start building.