> For the complete documentation index, see [llms.txt](https://jembi.gitbook.io/openhim-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jembi.gitbook.io/openhim-platform/packages/interoperability-layer-openhim/environment-variables.md).

# Environment Variables

Listed in this page are all environment variables needed to run the interoperability layer Openhim.

<table><thead><tr><th width="213">Variable Name</th><th width="96">Type</th><th width="208">Relevance</th><th width="102">Required</th><th>Default</th></tr></thead><tbody><tr><td>OPENHIM_CORE_MEDIATOR_HOSTNAME</td><td>String</td><td>Hostname of the Openhim mediator</td><td>Yes</td><td>localhost</td></tr><tr><td>OPENHIM_MEDIATOR_API_PORT</td><td>Number</td><td>Port of the Openhim mediator</td><td>Yes</td><td>8080</td></tr><tr><td>OPENHIM_CORE_INSTANCES</td><td>Number</td><td>Number of openhim-core instances</td><td>No</td><td>1</td></tr><tr><td>OPENHIM_CONSOLE_INSTANCES</td><td>String</td><td>Number of openhim-console instances</td><td>No</td><td>1</td></tr><tr><td>OPENHIM_MONGO_URL</td><td>String</td><td>MongoDB connection string</td><td>Yes</td><td>mongodb://mongo-1:27017/openhim</td></tr><tr><td>OPENHIM_MONGO_ATNAURL</td><td>String</td><td>???????????</td><td>Yes</td><td>mongodb://mongo-1:27017/openhim</td></tr><tr><td>OPENHIM_CPU_LIMIT</td><td>Number</td><td>CPU limit usage for openhim-core</td><td>No</td><td>0</td></tr><tr><td>OPENHIM_CPU_RESERVE</td><td>Number</td><td>Reserverd CPU usage for openhim-core</td><td>No</td><td>0.05</td></tr><tr><td>OPENHIM_MEMORY_LIMIT</td><td>String</td><td>RAM usage limit for openhim-core</td><td>No</td><td>3G</td></tr><tr><td>OPENHIM_MEMORY_RESERVE</td><td>String</td><td>Reserved RAM for openhim-core</td><td>No</td><td>500M</td></tr><tr><td>OPENHIM_CONSOLE_CPU_LIMIT</td><td>Number</td><td>CPU limit usage for openhim-console</td><td>No</td><td>0</td></tr><tr><td>OPENHIM_CONSOLE_CPU_RESERVE</td><td>Number</td><td>Reserverd CPU usage for openhim-console</td><td>No</td><td>0.05</td></tr><tr><td>OPENHIM_CONSOLE_MEMORY_LIMIT</td><td>String</td><td>RAM usage limit for openhim-console</td><td>No</td><td>2G</td></tr><tr><td>OPENHIM_CONSOLE_MEMORY_RESERVE</td><td>String</td><td>Reserved RAM for openhim-console</td><td>No</td><td>500M</td></tr><tr><td>OPENHIM_MONGO_CPU_LIMIT</td><td>Number</td><td>CPU limit usage for mongo</td><td>No</td><td>0</td></tr><tr><td>OPENHIM_MONGO_CPU_RESERVE</td><td>Number</td><td>Reserverd CPU usage for mongo</td><td>No</td><td>0.05</td></tr><tr><td>OPENHIM_MONGO_MEMORY_LIMIT</td><td>String</td><td>RAM usage limit for mongo</td><td>No</td><td>3G</td></tr><tr><td>OPENHIM_MONGO_MEMORY_RESERVE</td><td>String</td><td>Reserved RAM for mongo</td><td>No</td><td>500M</td></tr><tr><td>MONGO_SET_COUNT</td><td>Number</td><td>Number of instances of Mongo</td><td>YES</td><td>1</td></tr></tbody></table>


---

# 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://jembi.gitbook.io/openhim-platform/packages/interoperability-layer-openhim/environment-variables.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.
