> For the complete documentation index, see [llms.txt](https://docs.energyweb.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.energyweb.org/legacy-documentation/ew-dos-technology-components-2023/decentralized-data-hub-ddhub/ddhub-client-gateway.md). Agents can also search and read this documentation through its [MCP server](https://docs.energyweb.org/~gitbook/mcp).

# DDHub Client Gateway

The DDHub Client Gateway is an integration gateway SDK that is intended to run on-premises or on the cloud environment of participants. It provides an interface for participant systems to interact with other systems in the shared interacting with a data exchange solution - namely, the DDHub Message Broker.

The Client Gateway is available in Github at <https://github.com/energywebfoundation/ddhub-client-gateway> or in the [Azure Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/energywebdevhubgmbh1670375546257.ewf-data-exchange-client-gateway?tab=Overview).

The gateway application is authenticated, authorized, and encrypted (messages) using self-sovereign identities (DIDs) and verifiable credentials rather than a centrally trusted and managed approaches seen in legacy solutions.

The client container is an integral part of the DDHub in achieving its decentralized characteristics as it assumes the power of the identity that it currently holds/represents.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FBoVVxXNjR76v40Oii4I7%2FEnergyWeb%20Architecture%20-%20Entry%20diagram%20(Latest)%20(2).png?alt=media&amp;token=4e1528df-017b-4b25-9934-296f3f4e6266" alt=""><figcaption></figcaption></figure>

* DDHub Client GW UI: the main interface for admins to manage their DDHub Client GWs
* DDHub Client GW API: exposes RESTful and Web Socket APIs for integration
* DDHub Client GW Scheduler: contains scheduler jobs for caching data including but not limited to channels, topics, and decryption keys
* DDHUB Client Gateway Storage: a postgres DB used to store configuration data.
* Key Vault - store private keys and other secrets
* DDhub Message Broker: The component that routes messages between Client gateways (using API to control NATS messaging).
* SSI Toolkit: Libraries and components that implement identity and access management functionalities.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.energyweb.org/legacy-documentation/ew-dos-technology-components-2023/decentralized-data-hub-ddhub/ddhub-client-gateway.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
