> ## 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 CLI with environment variables. Reference supported variables for authentication, project scope, API endpoints, and runtime behavior.

The CLI reads the following environment variables. All are optional, and each can be overridden by a root-level flag, which takes precedence over its environment variable.

## Configuration

| Variable | Description | Default | Override flag |
| - | - | - | - |
| `HH_PROJECT_API_KEY` | Classic project API key for commands that still require it, such as `metrics`, `metric-versions`, and commands run without `--project-id`. Also used for ingestion when `HH_INGESTION_API_KEY` is unset. | None | `--project-api-key <key>` |
| `HH_INGESTION_API_KEY` | [Ingestion API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md#ingestion-keys) (`hh_ingst_`) for commands that create sessions and create or update events. Other commands never use it. | None | `--ingestion-api-key <key>` |
| `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 commands](https://docs.honeyhive.ai/v2/workspace/api-keys.md#what-a-data-plane-key-can-call). Pass `--project-id`. | None | `--data-plane-api-key <key>` |
| `HH_CONTROL_PLANE_API_KEY` | [Control plane fine-grained API key](https://docs.honeyhive.ai/v2/workspace/api-keys.md) (`hh_fgcp_`) for [control plane commands](https://docs.honeyhive.ai/v2/cli-reference/getting-started.md#control-plane-commands), such as `projects` and `workspaces`. Data plane commands never use it. | None (required for those commands) | `--control-plane-api-key <key>` |
| `HH_DATA_PLANE_URL` | Base URL for the Data Plane API. | `https://api.dp1.us.honeyhive.ai` | `--data-plane-url <url>` |
| `HH_CONTROL_PLANE_URL` | Base URL for the Control Plane API, used by the control plane commands. | `https://api.cp.us.honeyhive.ai` | `--control-plane-url <url>` |
| `HH_VERBOSE` | Set to `"true"` (case-insensitive) to log the resolved URL for the command's plane, its masked API keys, and the CLI version on startup. | `false` | `--verbose` |

An empty string is treated the same as unset, so `HH_PROJECT_API_KEY= honeyhive ...` falls back to the default (or errors when the command has no API key of a kind it accepts).

Typed key variables require a complete key of the matching type. A missing credential fails before the command sends a request. A project key cannot substitute for a data plane key; see [Authorization](https://docs.honeyhive.ai/v2/cli-reference/getting-started.md#authorization).

## Deprecated aliases

These names are still accepted but will be removed in the next major version. Using any of them logs a deprecation warning to stderr.

| Deprecated | Replacement |
| - | - |
| `HH_API_KEY` | `HH_PROJECT_API_KEY` |
| `HH_API_URL` | `HH_DATA_PLANE_URL` |
| `--api-key <key>` | `--project-api-key <key>` |
| `--base-url <url>` | `--data-plane-url <url>` |

Resolution runs new flag → deprecated flag → new environment variable → deprecated environment variable, so a deprecated name only takes effect when no current one resolved. A deprecated **flag** warns whenever you pass it, even when its replacement wins resolution, so a script passing both is still told to drop the old one.

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


## Related topics

- [Environment Variables](https://docs.honeyhive.ai/v2/sdk-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.