promptfoo with Helicone prompts

Pull versioned prompts from Helicone into promptfoo evals using the helicone:// prefix, with the key handling and proxy trade-offs your team needs to decide before wiring it into pipelines.

On this page

How promptfoo with Helicone prompts keeps prompt tests tied to the managed prompt

promptfoo reads a versioned Helicone prompt through the helicone:// prefix followed by the prompt ID and version. A team whose prompts live in Helicone and whose evals run against hand-copied text will see those evals drift from production within a few edits. Referencing the prompt by ID and version in the promptfoo config means the eval runs against the exact text Helicone holds for that version, and a change to the prompt shows up as a change to the reference that reviewers can read in a diff. Before relying on this, confirm in your own environment that the prompt ID and version you reference are the ones your application actually calls, because the eval is only as tied to production as the reference is.

Helicone is an open-source observability platform that proxies LLM requests and reports usage, spend and latency. That proxy role is separate from the prompt reference. Routing model calls through Helicone affects what gets logged and where traffic flows, while the helicone:// reference only tells promptfoo where to fetch the prompt text. A team can use the prompt reference without changing its application traffic, and it can route traffic through Helicone without ever using the reference. Decide which of the two you need before you change any production endpoint, and document which role Helicone plays in your setup so security and platform reviewers do not assume one implies the other.

The key question for the team is ownership of the prompt. If prompt edits happen in Helicone, the eval config should pin a version and a change to the pinned version should require a reviewed commit, not a silent edit. Plan for the case where a prompt is updated in Helicone and the eval suite still passes because it pins an old version, and decide who is responsible for moving the reference forward. Check the Helicone integration documentation for how versions are addressed and what happens when a referenced version is missing, since that behavior determines whether a broken reference fails the run or passes it silently.

What you need before referencing Helicone prompts

Referencing a Helicone prompt in a promptfoo config depends on four things being in place: the promptfoo install, a Helicone prompt you can read, a Helicone key, and the provider keys the eval calls. Each card below is one of those pieces, with the check to make before the first run.

promptfoo install and Node.js version

promptfoo is distributed as an MIT-licensed npm package. The supplied release, 0.124.1, requires Node.js 22.22.0 or newer, so confirm the runtime version on the machine or CI runner that will execute the eval before debugging the config. Pin the promptfoo version in your project so a helicone:// reference resolves the same way across runs and teammates.

promptfoo on npm

A Helicone prompt with a known version

The config references a prompt by its ID and version, using the helicone:// prefix. Before writing the config, confirm in Helicone that the prompt exists, that you can read it with the account that owns the key, and which version you intend to test. Record the ID and version in your repository so an eval result can be traced back to the exact prompt text it used.

HELICONE_API_KEY and where it lives

promptfoo reads HELICONE_API_KEY from the shell, from a file passed with --env-file, or from the env block in the config. Choose one source and keep it out of committed config files. In CI, store the key in the pipeline's secret store and inject it at run time. Confirm the key has access to the project that holds the prompt, since a key that cannot read the prompt will fail the reference.

Helicone integration docs

Model provider keys for the eval

The prompt from Helicone is only the template. The eval still calls a model provider, so each provider in the config needs its own credentials, such as the key for the model vendor or gateway the prompt targets. Keep these separate from the Helicone key so you can rotate or scope each one independently, and confirm which provider the prompt version is written for before running the full test set.

Local runs that call the LLM directly

promptfoo runs evals on your machine and talks directly with the LLM, so prompt text, test inputs and model responses pass from your runner to the provider without going through a promptfoo service. Helicone sits in the request path only if your provider calls are routed through it. Confirm which machines and networks may reach the providers, and where eval output is stored, before you run real test data.

promptfoo introduction

Configure the helicone:// prompt reference and key in order

This sequence takes a team from a clean install to a single eval that pulls a pinned Helicone prompt version, with the API key read from a source the team controls. Each step ends with a check so problems surface before the eval is trusted.

  1. Install promptfoo on a supported Node.js version

    The engineer installs the promptfoo npm package on a workstation or CI runner that meets the Node.js requirement. The package is published on npm, and the current release requires Node.js 22.22.0 or newer. Confirm the install by running the promptfoo version command and checking that it reports the release you intended to pin, so later results can be traced to one version of the tool.

  2. Create a Helicone API key for the project

    The engineer signs in to Helicone and creates an API key scoped to the project that owns the prompt. Record which Helicone project and prompt ID the key can read, because a key that cannot see the prompt will fail later in a confusing way. Confirm the key works by checking that the prompt appears in the Helicone dashboard under the same account that issued the key. Store the key in your team's secret manager, not in the repository.

  3. Choose where HELICONE_API_KEY is read

    The engineer decides which of three sources promptfoo will read HELICONE_API_KEY from: the shell environment, a file passed with --env-file, or the env block in the config file. Shell variables suit a developer laptop, an env file suits a repeatable local run, and a secret injected by the CI system usually suits pipelines. Confirm the choice by running a command that prints whether the variable is set without printing its value, so the key never lands in terminal history or logs.

  4. Write the helicone:// prompt reference in the config

    The engineer adds a prompt entry to the promptfoo config that uses the helicone:// prefix, followed by the Helicone prompt ID and the version to pin. Pinning a version keeps the eval reproducible when someone edits the prompt later in Helicone. Confirm the reference by checking that the prompt ID and version match exactly what the Helicone dashboard shows, since a mismatch in either part is the most common reason the prompt does not load.

  5. Confirm the prompt text loads from Helicone

    Before running the full eval, the engineer runs promptfoo in a mode that lists or previews the prompts it resolved, and compares the text with the version in Helicone. This shows whether the reference, the key and the Helicone project line up. Confirm that the resolved text matches the pinned version word for word, and that it is not an error message or an empty value. Do not proceed until this check passes.

  6. Run a single eval against the pinned version

    The engineer runs one eval with a small set of test cases against the model provider the team uses. This confirms that promptfoo calls the model with the Helicone prompt and that assertions run. Confirm the result by opening the output, checking that the run reports the prompt version you pinned, and that the test results show the expected pass or fail status. Keep this run as the baseline for later comparisons.

  7. Record the setup for the next engineer

    The engineer writes down the Helicone project, the prompt ID and version, the key source chosen, the promptfoo release and the command used to run the eval. Store this note alongside the config so a second engineer or a pipeline can reproduce the run. Confirm the record is complete by having someone who did not do the setup run the same command and reach the same prompt text and result.

Where the prompt comes from and where the request goes

Two separate roles are easy to blur here. The helicone:// reference is about the prompt: promptfoo reads a prompt template from Helicone by its prompt ID and version, and uses that text as the input to your eval. Helicone's proxy role is about traffic: if your model calls are routed through Helicone, each request is recorded so you can see usage, spend and latency. You can use the first without the second, and the second does not change which prompt text promptfoo loads. Decide which of the two you need before you write the config, because they involve different settings and different questions for your platform team.

Pinning the version is what keeps an eval reproducible. A reference without a version pulls whatever the current prompt is, so a change made in Helicone can alter results on the next run with no change in your repository. Put the exact prompt ID and version in the config, commit that file, and treat a version bump as a reviewed change, the same way you would treat a code change. Store HELICONE_API_KEY where your pipeline or shell provides it, such as the shell, an --env-file or the config env block, and keep it out of committed files.

Before you assume logs are captured, confirm which call path your setup uses. Pulling a prompt through the helicone:// reference does not by itself send your model requests through Helicone, so the eval traffic may never appear in Helicone's usage, spend or latency views. Check this in your own environment by running one eval and looking for the request in Helicone, and document which base URL and provider settings your config uses. Confirm with the Helicone and promptfoo documentation for your versions, since the exact behavior depends on how the provider is configured. The promptfoo Helicone integration docs describe the reference format and key handling.

Where HELICONE_API_KEY should be set for each environment

Setting HELICONE_API_KEY in your shell keeps the key in memory for one terminal session, so it is the narrowest option for personal work. promptfoo reads it from the environment when you run an eval, and nothing is written to the project directory. The main exposure is the operating system account on your machine, plus any shell history or dotfiles where you might have pasted the value.

  • Who can read it: Only the user account running the shell, and any process that account starts.
  • Rotation effort: Low. Export the new value in each open terminal, or restart the shell, after you rotate the key in Helicone.
  • Commit risk: Low if you never place the export in a tracked file, but a line such as export HELICONE_API_KEY=... typed into a committed script or .bashrc copied into a repo is a common leak path.
  • Shell history: Inline assignments on the command line can remain in history files. Prefer exporting from a secret manager or prompt.
  • Scope: Suited to individual evaluation and prompt iteration, not to a shared pipeline.

Before relying on this setup, confirm with your security team whether developer machines are managed, encrypted and covered by endpoint controls.

Mapping Helicone prompt references to promptfoo config fields

This table maps each value an eval needs from Helicone, and from the model provider under test, to the config field or environment variable that holds it. Use it to decide which values go in the committed config and which must stay in the shell, an env file or the CI secret store.

ValueWhere it goesSecret or safe to commitNotes
Helicone prompt IDPrompt reference in the promptfoo config, written as helicone:// followed by the prompt IDSafe to commitIdentifies the prompt only. It grants no access to Helicone on its own.
Prompt versionPart of the helicone:// reference, after the prompt IDSafe to commitPin a version so eval results stay comparable. Confirm the version format in the Helicone integration docs.
HELICONE_API_KEYShell environment, an --env-file, or the env block of the configSecretKeep it out of committed files. Inject it from your CI secret store or a local env file that is git-ignored.
Model provider API keyProvider-specific environment variable or provider config, read at eval timeSecretUsed for the model calls under test. Store it with the Helicone key and never place it in prompt text or test output.
Model provider selection and model nameProviders block of the promptfoo configSafe to commitChanging the model here changes eval results, so record it alongside the prompt version.
Eval settings such as test cases and assertionsTests and assertions in the promptfoo configSafe to commitReview these with the prompt. Test data that contains real customer content should not be committed.
Proxy base URL, if you route calls through HeliconeProvider config or environment variable, as your Helicone setup requiresSafe to commitConfirm with Helicone whether your deployment uses a custom endpoint before setting it.

Protecting the Helicone key and the prompts it exposes

Pulling prompts from Helicone means a Helicone credential sits in your shell, env file or CI configuration, and your LLM traffic may pass through Helicone's proxy. The cards below cover the key, the logs and reports it can leak into, the project access it grants, and where prompt content actually travels.

Scope and rotate the key

Treat HELICONE_API_KEY as a credential that reads your stored prompts. Use a key created for the promptfoo workflow rather than a personal key, record who owns it, and plan a rotation date that you can carry out without editing every config. Confirm with Helicone whether keys can be scoped to a project or to read-only access, and how revocation takes effect across active sessions.

Helicone integration docs

Keep the key out of CI logs

Pipelines often echo environment variables when a job fails, and promptfoo output can include the request configuration. Store HELICONE_API_KEY in your CI secret store, mark it masked where the platform supports it, and avoid printing the resolved config. Check that eval result files, JSON exports and shared reports do not carry the key before you publish them as build artifacts.

Load the key without committing it

promptfoo reads HELICONE_API_KEY from the shell, an --env-file or the config env block. Prefer the shell or your secret manager in pipelines, and keep any local env file out of version control. Putting the value directly in a config file that is committed to the repository exposes it to everyone with read access and to every clone that follows.

Limit access to the Helicone project

A key that reaches the whole Helicone organization exposes prompts from every project, not only the one under test. Map which prompts the eval needs, restrict membership of the Helicone organization to people who maintain those prompts, and review who can create or edit prompt versions. Ask Helicone which roles and project boundaries it supports.

Trace where prompt content travels

Helicone is described as an observability proxy that sits in the request path and reports usage, spend and latency. Map whether your eval traffic passes through Helicone or only the prompt fetch does, and which prompt text, user data and model responses Helicone stores. Confirm its data retention, region, hosting and self-hosting options directly with the vendor before sending regulated data.

Helicone integration docs

Why a helicone:// prompt fails to load

This table lists the failures most likely to stop a helicone:// prompt from loading in promptfoo, with the cause and fix for each. Work through the rows in order, since the first two checks catch most cases before you touch the config.

FailureLikely causeFix
Wrong prompt ID or versionThe prompt ID in the helicone:// reference does not match the prompt in Helicone, or the version number points to a version that does not exist.Copy the prompt ID and version from the Helicone dashboard and compare them character by character with the reference in your config.
HELICONE_API_KEY not visibleThe key is set in one shell or CI job but the promptfoo process runs in another, or the --env-file path or config env block does not contain it.Confirm the variable reaches the process with a quick check in the same shell or job, then pass it through --env-file or the config env block.
Node.js version too oldThe installed Node.js is older than the version promptfoo requires (22.22.0 or newer, per the npm release notes), so the CLI fails before reading the prompt.Run node --version in the same environment that runs promptfoo and upgrade Node.js before debugging the config.
Provider key missing from the same environmentThe Helicone key loads, but the model provider key used for the eval is absent, so the prompt resolves and the call then fails.Set the provider API key alongside HELICONE_API_KEY using the same shell, env file or env block, and check both before each run.
Prompt edited after the version was pinnedThe prompt was changed in Helicone after your config pinned a version, so results no longer match what you reviewed, or the pinned version was later retired.Pin to the version you tested, record it in the config, and create a new version in Helicone instead of overwriting the old one.

Questions teams ask before connecting promptfoo to Helicone

Is promptfoo free to use with Helicone prompts?

Yes, the promptfoo software is free to use under the MIT license, and the Community edition includes all LLM evaluation features, all model providers and integrations, and red teaming with 10k probes per month, with community support. The helicone:// prefix is part of the open-source CLI, so referencing Helicone prompts does not require an Enterprise license. Your costs are the model calls the evals make, plus whatever your Helicone account charges. Check Helicone's own pricing page for its plan terms, since those are set by Helicone and not by promptfoo.

How much effort does a promptfoo and Helicone setup take?

The setup is a configuration task: you reference a Helicone prompt by its ID and version with the helicone:// prefix, then supply a HELICONE_API_KEY. The effort depends on how many prompts you pull, how your eval suites are structured, and how many people share the configuration. A single prompt in one config is a small change. Multiple prompts across several environments, with keys managed through your secrets process, takes more planning. No duration figure has been published for this, so ask your own engineers or a partner to scope it against your repository layout.

What does your team need before connecting promptfoo to Helicone?

You need Node.js 22.22.0 or newer for the current promptfoo npm release, a Helicone account with the prompts you want to test, and a Helicone API key. Your team should also decide where the key lives: in the shell, in an --env-file, or in the env block of the config. The config approach is convenient but puts the key next to the test definitions, so most teams keep the key in their CI secret store. Someone must also own the prompt versions being tested, because the eval results are only meaningful for the version you named.

Can our own engineers set this up without outside help?

Usually yes, if your engineers already run promptfoo evals and can manage secrets. The integration is documented in promptfoo's Helicone integration docs and follows the same pattern as other config-based prompt sources. Outside help is more useful when the work spans several prompt sources, CI pipelines, access controls for who can read the key, or when you need the results to feed compliance evidence. Confirm your team's experience with promptfoo and your secrets tooling before deciding.

What does Helicone add when it sits between promptfoo and the model?

Helicone is an open-source observability platform that proxies LLM requests and reports usage, spend and latency. When requests pass through it, you gain a record of calls, cost and response times for the runs promptfoo makes. This is observability, not evaluation: promptfoo still decides pass or fail. Adding a proxy also adds a hop and another system that holds your traffic, so check where Helicone is hosted, what it logs, and how long it retains data before routing production-like test data through it.

Does promptfoo store our prompts or eval data outside our machine?

promptfoo's documentation states that it runs completely locally: evals run on your machine and talk directly with the LLM. When you reference a Helicone prompt, the prompt is fetched from Helicone, so Helicone is involved in that step. Confirm with Helicone how it stores prompt content and whether your data residency rules allow it. If you need promptfoo results kept on your own infrastructure with team access controls, the self-hosted server or Enterprise On-Premise options are separate decisions, and the self-hosted server is not recommended for production use.

What goes wrong when promptfoo and Helicone are connected?

Common problems include a missing or misscoped HELICONE_API_KEY, a prompt ID or version that does not exist in the account the key belongs to, and a config that still points at an old version after a prompt was updated. Keys set in one place but not in CI cause runs that pass locally and fail in the pipeline. Pin versions deliberately, check key scope early, and run one prompt end to end before adding the rest.

How the eval, Helicone and the model provider connect

The flow starts on the developer machine or CI runner, where the promptfoo CLI reads the helicone:// reference in the config. promptfoo uses HELICONE_API_KEY to fetch the versioned prompt from Helicone, then runs the eval. Model calls can go directly to the provider or through the Helicone proxy, which reports usage, spend and latency. Check that the key stays inside the runner's environment and that the eval results remain on the runner.

Prompt fetch, model calls and results, with the key kept on the runner.

Keeping prompt versions and eval results in step

Start by deciding which Helicone prompt version each eval run pins, because that pin is what makes a before and after comparison meaningful. In the promptfoo config, the helicone:// reference carries the prompt ID and version, so a prompt change in Helicone does not reach your evals until someone edits that reference. Make the version bump a deliberate, reviewed change to the config file, committed alongside any notes on what changed in the prompt. Before merging, run the eval against the old version and the new version with the same test cases and compare the results. Confirm with Helicone's own documentation how prompt versions are numbered and whether older versions remain retrievable, since a comparison baseline depends on the old version still existing.

Results from promptfoo are written to the output and to the local database of the machine or pipeline that ran them, so each run should record which prompt version it used. Keep the output files from the baseline run and the candidate run, and label them with the prompt version and the promptfoo version. Your own runs can be stored in the promptfoo web viewer on a single workstation, but the self-hosted promptfoo app stores data in a local SQLite database that cannot be shared across replicas, has no RBAC or built-in authentication, and is not recommended for production use according to the promptfoo self-hosting documentation. If several teams need shared history, plan that storage before rollout. Options include exporting result files to storage your organization already governs, or evaluating whether the Enterprise tier with team sharing fits your access model. Ask the vendor which option supports your retention and access requirements.

How DeployOpen scopes and delivers a promptfoo and Helicone integration

DeployOpen approaches promptfoo with Helicone prompts as a written, fixed-scope piece of work inside your own infrastructure. We agree which prompts, Helicone projects and evals are in scope, then build, test, document and hand over the setup so your team can run it.

How we scope

  • Inventory the Helicone prompt IDs and versions your evals should reference, and who owns each prompt
  • Confirm where HELICONE_API_KEY will live: shell environment, an --env-file or the config env block
  • Define which evals run in promptfoo and which application traffic stays routed through Helicone
  • Agree deliverables, timelines and responsibilities in writing before any build work starts

How we build

  • Write promptfoo configs that reference Helicone prompts with the helicone:// prefix, prompt ID and version
  • Test the configs against a non-production Helicone project to confirm prompt versions resolve correctly
  • Check that secrets are read from the agreed source and never committed to repositories or logs
  • Run the evals on the machines or runners you control, so test traffic goes directly to the model

How we hand over

  • Document the prompt references, environment variables, version pinning rules and the run commands
  • Walk your engineers through how Helicone usage, spend and latency data relate to eval runs
  • Provide a runbook for rotating HELICONE_API_KEY and for updating a prompt version safely
  • Deliver the configs, documentation and test results together so your team can maintain them

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover
  • Review promptfoo and Helicone version changes before they reach your evaluation pipeline
  • Adjust prompt references and configs when your prompt library or Helicone projects change
  • Confirm the support terms, response expectations and scope of any retainer in writing

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.