Your Harmstack API key authenticates CLI commands and API requests. Pass it as the
HARMSTACK_API_KEY environment variable or with the --harmstack-api-key flag on any command.Set your Harmstack API key
Export your Harmstack API key so the CLI can authenticate automatically:If you prefer not to use an environment variable, pass the key directly with
--harmstack-api-key on any command.(Optional) Set model defaults
To avoid re-entering model settings in the wizard and commands, export:The CLI can use these values as defaults.
Run the setup wizard
Run The wizard prompts you for:
harmstack init to launch the interactive wizard:- Benchmark - the benchmark ID you want to run
- Model endpoint URL - the URL of your model API (for example
https://api.openai.com/v1/responses) - Model provider - the API shape:
openai,openai_responses,gemini, orraw - Model API key - the Bearer token used to call your model endpoint
Run non-interactively
Skip prompts entirely by passing all required flags with
--consentandskip:| Flag | Description |
|---|---|
--haystack | Run in haystack mode |
--target-model-endpoint | URL of the model API to benchmark, or set TARGET_MODEL_ENDPOINT_URL |
--target-model-api-key | Bearer token for your model endpoint, or set TARGET_MODEL_API_KEY |
--provider | API shape: openai, openai_responses, gemini, or raw |
--benchmark-id | Benchmark ID to run |
--unit-count | Number of units to run |
--consentandskip | Consent to the disclaimer and skip prompts |