> For the complete documentation index, see [llms.txt](https://docs.healthuniverse.com/overview/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.healthuniverse.com/overview/building-apps-in-health-universe/deploying-your-app-to-health-universe/secret-management.md).

# Secret Management

If you have API keys or database passwords that you cannot store in your public GitHub repository, you should create a secret and access it in your code using the following approach. For example, if you want to access a private database, or use an LLM like ChatGPT, you'll need to have API keys to manage access.

**1)** First click **Deployments** on the top right of the navigation bar.

<figure><img src="/files/N4AsxRDdINeegmM0IiyS" alt=""><figcaption></figcaption></figure>

**2)** Click the **production box**

<figure><img src="/files/U84FJheyE2QWKsu98qJR" alt=""><figcaption></figcaption></figure>

**3)** Click the **secrets dropdown box**

<figure><img src="/files/oehqngN7coOTtHIMbIu5" alt=""><figcaption></figcaption></figure>

**4)** Click the **secrets dropdown box**

* Here you can create a secret using this form
* Important: Secrets can contain letters, numbers or the "-" and "\_" characters only. They must start with a letter or number. Access your secret using UPPERCASE from your code.

  ```
  import os
  foo = os.environ.get("FOO")
  ```
* Note, when you access a secret using os.environ.get() you access the secret using UPPERCASE variable names. If you do not use uppercase, you will not be able to access your secret.

<figure><img src="/files/YPDiOUPkHpQdbO2pQoqy" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.healthuniverse.com/overview/building-apps-in-health-universe/deploying-your-app-to-health-universe/secret-management.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
