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.
| Setting | What it changes about data flow | When it fits a sign-off |
|---|---|---|
| Default remote generation path | Plugin and strategy generation and grading requests go to the promptfoo hosted API by default | Fits 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 host | Generation and grading requests go to the model endpoint you name, so attack prompts and target responses stay on your side | Fits when security wants grading inside its boundary; confirm the hosted model can follow grading instructions |
| Plugins and strategies that need hosted generation | Some plugins and strategies need hosted inference, so enabling them sends that work outside your network | Confirm 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 network | Attack payloads travel from the CLI to your application without leaving your network | Fits when the application must stay in its boundary, but it does not change what generation and grading send |
| Community edition | Free, runs on the machine running the CLI, with red teaming up to 10k probes per month | Fits a scoped pilot within the monthly probe allowance, with the same generation settings applied |
| Self-hosted server | An Express app with a local SQLite database, deployable with Docker, Docker Compose or Helm | Fits non-production evaluation only; the self-hosting documentation lists missing RBAC, SSO and shared replicas |
| Enterprise On-Premise | Enterprise functions run on your infrastructure with complete data isolation and a dedicated deployment engineer | Fits 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.providerpoints 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.appduring 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.
Delivery is the stage where attack prompts reach the application under test. The promptfoo documentation states that the software runs completely locally, that evals run on your machine and talk directly with the LLM. That statement describes the target path, but the reviewer should still verify it for red teaming, because generation and grading are separate steps with their own network calls.
- Operator controls: the target URL or provider configuration, the network route from the machine running the scan, and any proxy settings your organization requires.
- What may be received: the attack prompts themselves, sent to the endpoint you configure. The application owner and the logs of that application receive the payloads, so they belong in the review.
- Where results are held: CLI results stay on the machine that ran the scan. The self-hosted server stores data in a local SQLite database that cannot be shared across replicas, and the self-hosting documentation says it is not recommended for production use.
- Ask the vendor in writing: confirmation that delivery traffic never passes through
api.promptfoo.app, and whether any attack payload is relayed through a hosted service in any mode.
Verify this with egress logs or a packet capture during a scan against a non-production target.
Grading decides whether a target response counts as a finding. In some configurations grading runs as a hosted step, which means the target's reply can leave your environment even when delivery stays local. The grader model and its provider determine who receives that text, so grading needs its own line in the data map.
- Operator controls: the grading model set through
redteam.provideror grader settings, and whether a model you host handles grading. - What may be received: the attack prompt, the target response and the grading criteria. The response can contain personal data, internal documents or secrets that the application returned, so the content may be more sensitive than the prompt.
- Where findings are kept: grader output is saved with the scan results, so retention follows your results policy and any export you make from the report.
- Ask the vendor in writing: whether grading runs on hosted inference, which model and provider serve it, how long requests and responses are retained, and whether customer content is used for model training.
Test this with a synthetic response that contains a fake identifier, then confirm that the identifier does not appear in any vendor-side record you are given access to.
Telemetry and version checks are the quietest transfers in the flow. They can send metadata about installs and runs even when prompts and responses stay local, and the version you install determines which behavior you are approving. Confirm every telemetry field and version check with the vendor before sign-off, because public documentation alone does not settle them.
- Operator controls: the installed version, whether updates are pinned, egress rules for the host running promptfoo, and any environment setting that disables telemetry, with the setting name confirmed in the current docs.
- What may be received: install identifiers, run metadata, version information and any other values the CLI sends during checks. Ask for the list field by field rather than accepting a summary.
- Version source: the promptfoo package on npm is the install path to verify. Release 0.124.1, published on 8 October 2026, requires Node.js 22.22.0 or newer, so pin both versions in your build image.
- Ask the vendor in writing: a full telemetry schema, the endpoints contacted at startup and during scans, the opt-out mechanism, and whether any account identifier is attached to telemetry.
Record a baseline of outbound connections from a clean install, then repeat the check after each upgrade.
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.
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.
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 --versionandnode --versionoutput on the scanning host matches the record.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.
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.
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.
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.
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 docsSecret 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 docsVersion 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 notesWhat 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 docsHosted 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 pageHow 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.

