> ## Documentation Index
> Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment Variables

> Configure the HoneyHive TypeScript API client with environment variables for API keys, data plane URLs, and request timeouts in Node or browser apps.

The SDK reads the following environment variables. All are optional, and each can be overridden by the equivalent `Client` constructor option, which takes precedence over its environment variable.

## Configuration

| Variable | Description | Default | Override option |
| - | - | - | - |
| `HH_PROJECT_API_KEY` | Classic project API key for operations that still require it, such as metrics, metric versions, and methods called without `project_id`. Also used for ingestion when `HH_INGESTION_API_KEY` is unset. | None | `projectApiKey` |
| `HH_INGESTION_API_KEY` | [Ingestion API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#ingestion-keys) (`hh_ingst_`) for the methods that create sessions and create or update events. When unset, those methods use the project key. Any value that is not an ingestion key throws on construction. | None | `ingestionApiKey` |
| `HH_DATA_PLANE_API_KEY` | [Data plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#using-a-data-plane-key) (`hh_fgdp_`) for [project-scoped methods](https://docs.honeyhive.ai/v2/workspace/api-keys.md#what-a-data-plane-key-can-call). Pass `project_id` in the request. A wrong key type or incomplete value throws on construction. | None | `dataPlaneApiKey` |
| `HH_DATA_PLANE_URL` | Base URL for the Data Plane API. | `https://api.dp1.us.honeyhive.ai` | `dataPlaneUrl` |
| `HH_VERBOSE` | Set to `"true"` (case-insensitive) to log the resolved data plane URL, its masked API keys, and the SDK version on construction. | `false` | `verbose` |

An empty string is treated the same as unset. A client can be constructed with no key; without custom authentication, each method checks for the credential it needs before sending a request. A project key cannot substitute for a data plane key. See [Authorization](https://docs.honeyhive.ai/v2/sdk-reference/typescript.md#authorization).

## Deprecated aliases

These names are still accepted but will be removed in the next major version. Using either logs a deprecation warning to stderr on client construction.

| Variable | Replacement |
| - | - |
| `HH_API_KEY` | `HH_PROJECT_API_KEY` |
| `HH_API_URL` | `HH_DATA_PLANE_URL` |

Resolution runs new option → deprecated option → new environment variable → deprecated environment variable, so a deprecated name only takes effect when no current one resolved.

> [!NOTE]
>
> There is no `HONEYHIVE_*` prefix in the TypeScript SDK. Unlike the Python SDK, only the `HH_*` names above are recognized.


## Related topics

- [Environment Variables](https://docs.honeyhive.ai/v2/cli-reference/environment-variables.md)
- [How to integrate HoneyHive with Databricks Agent Bricks](https://docs.honeyhive.ai/v2/integrations/databricks-agent-bricks.md)
- [Troubleshooting & FAQs](https://docs.honeyhive.ai/v2/introduction/troubleshooting.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.