# Setup

Discover the functions that wire the SDK into your Hydrogen server.

> **Looking for something specific?**
>
> Use the search bar at the top of the page or press `/` to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

- [createCroctMiddleware](/reference/sdk/hydrogen/api/setup/create-croct-middleware): Learn how to expose the Croct visitor context to your loaders and actions.
- [createCroctContext](/reference/sdk/hydrogen/api/setup/create-croct-context): Learn how to resolve the Croct visitor context in Remix Hydrogen apps.
- [writeCroctCookies](/reference/sdk/hydrogen/api/setup/write-croct-cookies): Learn how to persist the visitor cookies on the response.
- [croct](/reference/sdk/hydrogen/api/setup/vite-plugin): Learn how to configure the Croct Vite plugin.
