promptfoo red teaming data sent to hosted API

Security and privacy teams need to know which red teaming data leaves their network during promptfoo generation and grading, and which data stays on the machine running the scan. This page gives a data-flow review checklist and the points to confirm before sign-off.

On this page

Which promptfoo red teaming data goes to the hosted API

Before any promptfoo red team scan runs, a security or privacy reviewer needs a clear answer to one question: which stages send data to the hosted API at api.promptfoo.app? For this topic, the hosted stages are generation and grading, so attack prompts are produced and model responses are judged through that endpoint. The documented local model is different: the promptfoo CLI runs on the operator's machine and talks directly to the model under test. The exact request payloads are not confirmed in this section, so check them in the current promptfoo red teaming documentation and by capturing traffic from a test scan against your own endpoint.

This matters most in banking, healthcare and public sector reviews, where the content of a scan can be as sensitive as the system it tests. Depending on which stages run remotely, the purpose text, the descriptions of tools and users and the target's responses may be included in requests to the hosted endpoint, so a reviewer should not assume those details stay inside the network. Illustrative example: a bank writes a purpose that names its account-servicing tools and includes a sample of the data they return. If generation or grading runs on the hosted endpoint, that description leaves the bank's network, so the purpose text needs the same review as any other outbound document. The same logic applies to credentials: API keys and tokens never belong in setup forms or purpose fields.

Turn this into a decision before the scan is scheduled. First, list every stage in the planned run and mark whether it uses the hosted endpoint or the local CLI path. Second, confirm that the machine running the CLI can reach api.promptfoo.app, and record whether an outbound proxy such as the one set through HTTPS_PROXY is required. Third, set the data rule: which classes of information may appear in the purpose, the sample responses and the target's replies, and who approves an exception. Fourth, check telemetry separately in the documentation and in your network logs, because a reviewer should not assume it follows the generation and grading path. If the answers are not acceptable, plan the scan around the local path and record the coverage that gives up.

How a red team run moves data between your network and the hosted API

The run starts on the operator machine, where the promptfoo CLI sends probes to your application under test. That application calls its own model provider, which is the target's model and sits outside the CLI's path. Generation and grading requests go from the CLI to the hosted API at api.promptfoo.app, and grading can go to a local or self-chosen model if you configure one. The contents of the hosted requests are not confirmed on this page, so check them against the vendor documentation and a captured trace before sign-off.

Data paths for a red team run, with unverified hosted payloads marked.

Which red team settings decide whether data leaves your network

This table compares the settings that decide whether red team data reaches the promptfoo hosted API, the model you host or only your own machines. Read each row as a switch: the default path sends generation and grading requests out, while the provider, endpoint location and edition choices can keep them inside your network. The main takeaway is that the target endpoint's location alone does not settle the question, so sign-off should cover generation and grading settings too.

SettingWhat it changes about data flowWhen it fits a sign-off
Default remote generation pathPlugin and strategy generation and grading requests go to the promptfoo hosted API by defaultFits only after the hosted API and the prompts and responses it receives are approved for this target's data
redteam.provider pointing to a model you hostGeneration and grading requests go to the model endpoint you name, so attack prompts and target responses stay on your sideFits when security wants grading inside its boundary; confirm the hosted model can follow grading instructions
Plugins and strategies that need hosted generationSome plugins and strategies need hosted inference, so enabling them sends that work outside your networkConfirm the exact list for your version in current documentation; approve each as external processing or leave it out of the scan
Target endpoint inside your networkAttack payloads travel from the CLI to your application without leaving your networkFits when the application must stay in its boundary, but it does not change what generation and grading send
Community editionFree, runs on the machine running the CLI, with red teaming up to 10k probes per monthFits a scoped pilot within the monthly probe allowance, with the same generation settings applied
Self-hosted serverAn Express app with a local SQLite database, deployable with Docker, Docker Compose or HelmFits non-production evaluation only; the self-hosting documentation lists missing RBAC, SSO and shared replicas
Enterprise On-PremiseEnterprise functions run on your infrastructure with complete data isolation and a dedicated deployment engineerFits team use at scale; confirm with the vendor which generation and grading calls still reach the hosted API

What stays local and what leaves at each stage

Generation is the stage where promptfoo creates attack prompts for the plugins you select. Hosted generation is a separate step from the local run, so this is the first point where prompt-related data can leave your environment. Map it as its own data flow and do not assume it follows the local path.

  • Operator controls: the plugins and strategies you enable, the purpose text you write, and whether redteam.provider points to a model you run yourself instead of the hosted service.
  • What may be received: the purpose and plugin configuration you supply, which the hosted API uses to shape attack prompts. Confirm the exact request fields for your version in the red teaming documentation.
  • Which coverage depends on it: some plugins and strategies need hosted generation, so turning it off can remove coverage. Record the list of plugins that depend on it before you approve the scope.
  • Ask the vendor in writing: the complete list of fields sent to api.promptfoo.app during generation, whether any target responses are copied into generation requests, and how long those requests are kept.

Before approving the purpose field, confirm that it contains no customer records, credentials or full system prompts.

Why the target endpoint is the data path you control most

The target endpoint is the part of the data path your team controls most, and it receives every attack prompt. Before you look at what promptfoo sends to its hosted API, decide what your application does with each prompt it is handed: which logs capture the full request body, how long its conversation store keeps those messages, and which model provider it forwards them to. Those settings define much of the exposure, because attack prompts are built to draw out content you would not want stored. Model responses travel back to the scanner over the same connection, so each output is captured alongside the prompt that produced it. Treat the endpoint's logging and retention as part of the scan plan.

Transcripts and reports are written to disk on the machine that runs the scan, or on the CI runner that runs it, and they stay there until someone removes them. Confirm the output directory for your installed version, whether your pipeline uploads it as a build artifact, and who can read that location. Reports are the higher-risk file. A report summarizes successful attacks, so it collects the prompts and outputs most likely to expose a weakness. That can include fragments of a system prompt, personal data the model echoed back, or a secret the model repeated from its context. Handle reports with the same care as the application's own logs, and do not share them outside the security review group without a redaction check.

Make four decisions before the first scan. First, choose where the endpoint runs: a staging copy wired to synthetic data is easier to justify to reviewers than production, and any production test should be agreed in writing with the owners of the logs. Second, pick the model provider and API key the endpoint uses during the scan, and confirm that its data terms cover adversarial traffic. Third, create dedicated test accounts with the roles a real user would hold, no access to real customer records and no administrative rights, so an injected instruction can reach only test data. Fourth, decide who may read the output directory and how long your team keeps it. Ask promptfoo to state in writing how long it retains data sent to the hosted service for generation and grading, because that figure must come from the vendor before sign-off.

Secrets and data that must never go into setup forms

The cards below cover the material reviewers most often find in setup forms and configuration files during a data-flow review. Each one names a kind of secret or data, the risk it creates once it leaves your environment, and the safer alternative to use instead.

Model provider API keys

Provider keys should be read from environment variables at runtime. A key typed into a setup form can be saved into configuration files, copied into shared reports or left in shell history, and it grants billing and model access to anyone who obtains it. Export the key on the machine that runs the scan and refer to it by variable name. Before sign-off, confirm which files and reports your setup writes to disk and whether any of them could contain a key value.

Production customer data or PII

Synthetic records should stand in for production customer data. Red team inputs are sent to the target and may pass through the hosted service for generation and grading, so a real customer record used as a seed places personal data into a data flow it was never approved for. Build test accounts and invented profiles that match the shape of your data, such as the same field types and account states, without identifying details. Ask your privacy team to confirm that no production extract was copied into a purpose description, custom policy or example file.

Session cookies and bearer tokens

A pasted session cookie or bearer token works as a login for whoever holds it. A token stored in a form or configuration file can be replayed by anyone with access to that file, and it may stay valid long after the scan ends. Use a dedicated test account with minimal permissions, and supply its credentials through the runtime environment so the scan obtains a fresh session. Confirm with the team that owns the target how long tokens live and how they are revoked when the engagement closes.

Confidential system prompts and policy text

Describe the behavior under test and leave out the text that defines it. System prompts and internal policy wording reveal how your controls work to anyone who reads them, and a pasted copy can travel further than the application itself. Write the purpose as observable behavior, such as the assistant must not disclose internal pricing rules, without quoting those rules. Check whether any generated probe, grader note or exported report would repeat internal wording back to a wider audience.

Signing and cloud credentials

Signing keys and cloud credentials should never reach a red team configuration. Code signing keys, cloud access keys and service account secrets control infrastructure far beyond the chat application under test. Keep them in your secrets manager and out of anything the scan reads. If the target needs cloud access during testing, provide a scoped identity limited to the test environment, and confirm with your security team how that identity is rotated and revoked.

Run a data-flow review before the first red team scan

This sequence shows what the reviewer must confirm before the first red team scan, because some stages may send data to a hosted API. Each step produces a record: an inventory, version evidence, an egress log, a stage map, a provider decision and a signed sign-off. Repeat it after any upgrade so the approved data flow stays matched to what runs.

  1. Inventory the target and every model

    The application owner lists the endpoint promptfoo will attack, every model or service that endpoint calls (including guardrails, embedding services and tool APIs), and each model named for red team generation and grading. Write the host name and model for each line. The list is done when an engineer who did not write it compares it with the target's configuration and finds no missing service.

  2. Pin promptfoo and Node.js versions

    The platform engineer chooses the promptfoo release for the review and records it as 0.124.1, published on npm on 8 October 2026. Confirm that the scanning host runs Node.js 22.22.0 or newer, since that is the minimum for this release. Save the lockfile or install record with the review so the same versions can be reproduced later. Done when promptfoo --version and node --version output on the scanning host matches the record.

  3. Capture outbound calls from a test run

    Run a small test scan from the scanning host with traffic routed through an egress proxy or host-level egress logging, and keep the log with the review. Use placeholder data in the purpose and a non-production target, because the scan itself transmits content. Set HTTPS_PROXY so proxy logs capture promptfoo traffic. Check: every destination in the log must appear on the inventory from the first step, with api.promptfoo.app as the only promptfoo hostname you expect. Explain any other destination before continuing.

  4. Confirm which stages reach the hosted API

    Map each stage of the run to its sender and destination: plugin and strategy generation, grading, and calls to your target. The hosted path sends generation and grading to api.promptfoo.app, and calls to the target go to the endpoint you configured. Ask promptfoo to confirm which strategies need hosted inference in this release, because that list decides what local models can cover. Check: the map has one row per stage, and each row matches a destination seen in the step 3 log.

  5. Decide remote or local generation and grading

    The security owner chooses whether generation and grading stay on the hosted path or move to a model you host, set through redteam.provider. Local models keep those prompts inside your network, but some plugins and strategies lose coverage without remote generation, so compare the planned plugin list against what the local model can run. Record the provider for each stage. Check: rerun the step 3 capture with the chosen setup and confirm no request reaches api.promptfoo.app for stages you moved local.

  6. Record the sign-off in writing

    Write a single review record that holds the versions, the inventory, the egress log location, the stage map, the provider decision and the data allowed in the purpose and target responses. Name the approver and the date, and have the approver sign it. Include the rule that API keys, passwords, customer records and tokens stay out of setup forms and the purpose field. Check: a second reviewer searches the saved configuration for key-like strings and finds none, and the signed record is filed where the next reviewer can read it.

  7. Rerun the check after any upgrade

    Repeat the version check, the egress capture and the stage map whenever promptfoo, Node.js, the target application, its models or the provider settings change. Compare the new destinations with the signed record, and treat any new host or new stage as a reason to reopen the review before the next scan. Update the record and obtain a new signature when the approved flow changes. Check: the new egress log matches the approved destination list line for line, and the record shows the new version and date.

Security and operational controls for the review

Each control below closes a gap that the data flow creates on the operator side. Work through them before sign-off and record who owns each one. Where a control depends on vendor behavior, the card names the question to put to promptfoo.

Egress allowlisting for the hosted API

Generation and grading requests leave the scanning host for api.promptfoo.app, so that hostname is the main outbound destination to approve. Allow it only from the host or runner that performs scans, and block it elsewhere. Your target application needs its own allowlist entry, because the scan sends attack traffic there too. Test the rule from the exact host that runs the CLI, since a browser check does not exercise the same network path. Ask promptfoo for every hostname a red team run contacts, including any update or telemetry endpoints, and whether that list changes between releases.

Red team docs

Secret storage on the operator machine

Provider keys and any hosted service credentials should reach the scanning process only at run time, from your secret manager or an injected environment. Keep them out of config files that enter version control, and out of shell history and CI logs. Search generated reports and console output for accidental echoes before anything is shared. Ask promptfoo which values, if any, its hosted service receives from a local configuration, and whether any setting could send a key to a remote endpoint without an explicit action from the operator.

Report handling and red team output

Red team output files quote attack prompts and model responses, and those responses can expose customer records, system prompt text or tool results. Store outputs in a restricted location classified like the application's own test data, and grant read access only to named reviewers. Redact findings before they leave the review group, including in tickets and chat messages. Ask promptfoo where each output file is written, whether run results are stored on its hosted service, and how long those stored results remain available.

Log retention on the CLI host

The CLI host keeps its own logs and any local results, independent of what the hosted service receives. Set retention on the scanning host to match your logging policy, and rotate or forward those logs the same way you handle other security tooling. Run a short test scan, then inspect the log location to confirm it holds no keys and no full prompts you would not keep. Ask promptfoo what the CLI logs at default verbosity, what extra detail debug output adds, and where each log file is written.

Controls for the shared self-hosted server

The self-hosted server stores data in a local SQLite database that cannot be shared across replicas, and it has no built-in authentication or SSO. The vendor does not recommend it for production use, so treat it as a review tool. Run one instance, restrict network access to the review group, and place an authenticating gateway that you operate in front of it. Back up the database file on a schedule and test a restore. Ask promptfoo whether a future release adds built-in authentication or SSO, and whether Enterprise On-Premise, which includes SSO and teams-based access control, fits your access model.

Self-hosting docs

Version pinning and upgrade review

Pin the promptfoo version and the Node.js runtime in your scanning image, since release 0.124.1 requires Node.js 22.22.0 or newer. Read the release notes and dependency changes before each upgrade, then rerun the egress test and the log check against the new version. Treat any upgrade that changes outbound behavior as a new review item. Ask promptfoo how it announces changes to hosted endpoints, data handling and default logging, and how much notice you receive before a change takes effect.

Release notes

What buyers ask before a promptfoo data-flow sign-off

Does promptfoo send our prompts and responses to its hosted API?

Evaluation runs do not leave your network. promptfoo runs locally and talks directly with the model under test. Red team generation and grading are the exception. Those steps call promptfoo's hosted API at api.promptfoo.app, so attack content and target responses used in grading can leave your network. The application purpose you write and the responses your target returns may be part of those calls. Close this question with captured evidence from a representative run and a written record of what each call contains. The red teaming documentation is the natural starting point for the reviewer's checklist, and the reviewer should verify the fields against your own traffic before sign-off.

Can we keep all promptfoo red team data inside our network?

Partly, and the answer depends on which models you use for generation and grading. Evals, calls to your target and the work of running the CLI stay on hardware you control. Red team generation and grading can be pointed at a model you run yourself through the redteam provider setting. Some plugins and strategies need hosted generation, so the reviewer should check each one in your scan plan against what it requires. Anything that still reaches api.promptfoo.app must be allowed through your egress controls, or generation may fail during the scan. Confirm telemetry settings in your environment as well, and record the result in the sign-off pack.

What does a promptfoo data-flow sign-off cost, and what drives it?

The exact cost depends on the written scope, and DeployOpen does not publish a price list, so a quote follows from that document. The work has two parts: tracing where data flows and collecting evidence from your environment. Scope drivers include the number of targets, the number of stages reviewed (such as generation, attack delivery, grading and reporting), the identity and application setups involved, and network constraints such as proxies, egress allow-lists and segmented networks. Ask for the quote to separate one-time work, such as the initial review, from recurring work, such as retests after model, prompt or plugin changes. promptfoo's own Enterprise and On-Premise editions are priced on request, which is a separate decision from this review.

How long does a promptfoo data-flow review usually take?

Duration depends on the same factors as cost: how many targets and stages are in scope, how much of the network path must be traced, and how quickly your team can answer questions and provide evidence. A review of one application with a clean egress path usually moves faster than a review that spans several targets, proxies and segmented networks. Waiting time often comes from access approvals, change windows and security team reviews of captured traffic. Any duration should come from the written scope, not from a generic estimate. Ask for a timeline that lists each dependency on your side, with dates agreed before the work starts.

What does the reviewer need from our team to start?

Four inputs carry most of the review, and delays usually come from the ones that are missing.

  • Architecture: diagrams showing where the promptfoo CLI or server runs, which models and applications it calls, and where results are stored.
  • Endpoint access: test accounts or a staging instance for each target, with rate limits and session rules written down.
  • Network logs: egress records or a captured trace from a representative run, listing every destination the tool contacts.
  • Secrets inventory: the API keys, tokens and certificates the setup uses, where each is stored and who can read it.

Keep production secrets out of setup forms, test files and the review pack itself.

Can our own security team run a promptfoo data-flow sign-off alone?

Yes, if the team has network engineers who can trace egress, an owner for each target application, and reviewers who can judge the evidence against your own control set. Internal teams often handle the architecture and secrets inventory well, and the network trace is frequently the hardest part, because promptfoo's traffic passes through proxies and firewalls the team already manages. A partner adds capacity and a second reviewer. DeployOpen can plan, test and document the setup and prepare the evidence, but independent auditors and certification bodies issue any formal opinion. Compare the two options by listing the skills, people and calendar time each needs, then request a written scope before deciding.

Limits and what to confirm in your environment

Several parts of the data flow are not settled by the public material alone, so each item below needs a named owner before sign-off. Some answers come from the vendor's terms, some from your contract, and some only from a test on your own network. Treat an open item as a blocker for every data class it touches until its owner signs off.

Exact payloads per plugin

Generation and grading send plugin and strategy content to the hosted API, but the public material does not list the exact fields sent for each plugin and strategy. Your purpose text, example responses or system details may appear in some payloads but not others. Ask the vendor for a written payload description per plugin and strategy, then capture one run through a proxy in a test environment and compare the exact request bodies with that description before any production target data is used. Confirm this with the vendor and your own network test.

Red teaming docs

Hosted retention and processing terms

Prompts, generated attacks and model responses that pass through the hosted service may be stored or processed under terms that the open-source license does not cover. The license governs the software, while the hosted service runs under its own terms. Confirm how long each data class is kept, where it is processed, whether it is used to train models, who can access it and how deletion requests are handled. Get these answers in writing from the contract or a signed data processing addendum, and keep that copy with your review record. The retention and training use answers decide whether any target data can leave your network.

Telemetry collection and opt-out

Check whether your pinned version sends usage or diagnostic data, separate from the red team requests, and whether any of it carries prompt text, target URLs or file paths. Settings that control telemetry can change between releases, so record the version you tested and the exact setting that disables collection. Verify the opt-out with a network capture on a test machine, because a documented switch is only evidence once you have observed the traffic stop. Use disable and verify as the test for sign-off, and confirm the setting name with the vendor if the documentation is unclear.

Model providers and proxy approval

Red team generation and grading run through models, and your target application may call its own providers, gateways or proxies. Your security policy decides which providers, AI gateways and proxy hosts may receive test content, and the contract decides what the hosted service may do with it. List each provider and gateway that touches a scan, record the approval owner and the data class each may receive, and block anything unlisted at the egress layer. Keep an approved provider list as a controlled document that your security team reviews before each new engagement.

Hosted generation behind a proxy

Hosted generation runs from the machine or CI runner that starts the scan, so corporate egress rules, TLS inspection and proxy variables all apply to it. A proxy that rewrites certificates or strips headers can break the connection in ways that look like model errors. Test from the exact runner image, with the same proxy settings and certificate bundle your pipeline jobs use. Confirm that a generation request completes, and that a refused connection produces a visible error while an empty result is never mistaken for a pass.

Community and Enterprise limits

The Community edition is free and includes red teaming within a monthly probe allowance. Enterprise adds team sharing, SSO, access control and continuous monitoring at custom pricing, and On-Premise runs that functionality on your own infrastructure with a dedicated deployment engineer. Check which of these your data-flow review depends on, such as data isolation or access control, and confirm in writing where generation and grading run under each option. Ask the vendor for the probe counting method, the support terms and the scope of any SLA before you plan scan volumes.

Pricing page

How DeployOpen scopes and delivers a promptfoo data-flow review

DeployOpen treats the outbound data question as a defined scope item with written deliverables. We map each red teaming step to the endpoint it calls, record what stays on your machines, and hand your security team evidence it can review. Engagements are fixed-scope, so the flow map, data handling decisions and deliverables are agreed in writing before any testing starts.

How we scope

  • The written scope lists each outbound call to the hosted promptfoo API, by plugin and strategy.
  • Scope lists which content leaves your network for generation and grading, confirmed against the version you deploy.
  • Secrets handling is in scope: API keys, target credentials and session tokens stay out of setup forms and shared configs.

How we build

  • We run a test scan against a non-sensitive sample target and capture every outbound request for review.
  • Local evals call your model directly, so the build keeps those runs apart from hosted generation and grading.
  • If policy blocks the hosted API, the build plans local models and records which plugins and strategies are lost.

How we hand over

  • A data-flow document maps each step to its destination, data category, storage location and retention setting.
  • Telemetry settings and the command used for each scan are recorded so reviewers can trace every run.
  • Handover includes a short checklist your security team signs off on before the first hosted scan runs.

How we support

  • A retainer can cover ongoing support, upgrades and repeat testing, with the data-flow document kept current.
  • Upgrades of promptfoo are reviewed for changes to outbound calls before they reach your production environment.
  • Any change to the hosted API endpoint, plugin set or telemetry setting triggers a documented re-review.

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.