How to share promptfoo CLI eval results to a self-hosted server
Sharing CLI results to a server you operate suits teams that want eval output stored on infrastructure they control, while the runs stay on their own machines or CI runners. Evals run locally. The CLI calls the model provider directly, so the model traffic leaves from the host that ran the eval. Sharing is a separate upload step that happens after the run. Its destination comes from configuration, so the same eval can send its results to your self-hosted server instead of the promptfoo cloud. The upload does not change how the eval runs or which models it calls, which means you can plan the network path for model calls and the network path for uploads as two separate decisions.
This approach fits when data residency is the deciding factor, meaning prompts, test data and model responses must be stored inside your organization's infrastructure. It also fits when security or compliance reviewers need to read results from several pipelines in one place before a release. Before you commit, confirm three things: that every host running the CLI can reach your server, that your CI runners are permitted to upload results to it, and who owns retention and backups for the server's data. Those answers determine whether the shared server becomes a review tool that your team trusts or an unmanaged copy of sensitive output.
It does not fit when the team needs identity-based access, such as SSO, role-based access control, or more than one server replica. The self-hosted server stores data in a local SQLite database that cannot be shared across replicas, and it has no RBAC, horizontal scaling, built-in authentication or SSO. The promptfoo self-hosting documentation notes that it is not recommended for production use. Teams with those requirements should ask promptfoo about Enterprise or On-Premise editions, and confirm in writing what each includes. If you proceed without them, plan a reverse proxy or network controls in front of the server, since the server cannot enforce who sees which results.
Config file settings versus environment variables for sharing
This table compares the three ways to set the sharing target for promptfoo eval uploads, plus the fallback that applies when none is set. Read the rows in the order promptfoo resolves them, because the first setting found decides where results go. Use the middle column to choose a method and the right column to see the mistake that method invites.
| Option | When it fits | What goes wrong if left in place |
|---|---|---|
| Sharing settings in the config file | One project always uploads to the same team server, and every developer and CI run should follow it. | Every clone and CI run inherits it, and it overrides the variables below, so a runner override is ignored. |
| PROMPTFOO_REMOTE_API_BASE_URL and PROMPTFOO_REMOTE_APP_BASE_URL | A per-machine or per-CI-job override, such as pointing one runner at a staging server, without editing the config. | A variable left in a shell profile or CI group keeps sending results to the old server, and it outranks a developer's cloud login. |
| Cloud configuration from promptfoo auth login | A developer already logged into promptfoo cloud who runs evals with no self-hosted target configured. | Results can reach the cloud account without the developer noticing, so confirm the target before a first share on internal eval data. |
| Default promptfoo cloud URLs | Nothing self-hosted. This is the fallback when no other setting is present. | A missing or misspelled setting in a pipeline sends eval data to promptfoo cloud instead of your server. |
| Shared CI runners | Shared runners where the target is set per job, from the pipeline's own variables. | A login or variable from one job can carry over to another if runner state is shared; confirm isolation with your CI provider. |
| Checking the target before a first share | A new machine, runner or pipeline, before any results are uploaded. | Assuming the most recent change wins. Run a test eval and confirm which server received it. |
How promptfoo picks the sharing target
The chain starts at the sharing settings in your config file and stops at the first source that is set. If the config file has no sharing target, promptfoo reads PROMPTFOO_REMOTE_API_BASE_URL and PROMPTFOO_REMOTE_APP_BASE_URL, then the cloud configuration saved by promptfoo auth login. If all three are empty, promptfoo falls back to the default promptfoo cloud URLs, so results would go to the promptfoo cloud. Before you trust the chain, run a test upload and confirm the result appears on your own server.
Resolution order for the sharing target, ending at the promptfoo cloud default.
Set up the CLI to upload to your own server
This sequence moves eval uploads from the promptfoo cloud to a server you run. It checks each stage in order, so a misconfigured laptop or CI job is caught with one small test before full evals are shared. The outcome is a verified sharing target on every machine and CI job that runs evals, plus a rollback path for cloud settings left behind.
Confirm the server is reachable
Run this on every machine that runs evals, including developer laptops and CI runners. From each one, open the server's base address in a browser and request it with curl, using the same proxy and network path the evals will take. Ask the server owner for the address and any firewall or ingress rules that apply to these machines. Done when the web UI loads from each eval machine and no connection errors appear.
Set the sharing target in config
Add the sharing settings to the promptfoo config file for the project that runs evals, with the base address of your server. On developer machines, you can instead export PROMPTFOO_REMOTE_API_BASE_URL and PROMPTFOO_REMOTE_APP_BASE_URL in the shell. The CLI resolves the target in this order: config file settings, those two variables, cloud login from promptfoo auth login, then the default promptfoo cloud URLs. Set the config file or both variables on every machine, and record which layer owns the target in version control or the CI job definition.
Run a small test eval
Create a small config in an empty scratch directory with one provider your team already has access to and one simple test case with a predictable answer. Run the eval with sharing enabled using eval --share, so the result is easy to recognize later. Keep sensitive data out of the test prompt and expected output. Done when the command finishes without errors and prints a share result that you keep for the next two checks.
Check the target the CLI reports
Read the target the CLI prints in the output from the test eval and compare it with your server's base address, character for character. Run promptfoo share on the same eval as well, if your version supports it, so you see both upload paths. If the output shows a promptfoo cloud address, a cloud login or variable is taking precedence, so go to the rollback step before running more evals. Done when the reported target matches your server on every machine that will run evals.
Find the result on your server
Open your server's web UI in a browser and locate the test eval by its name or the time of the run. Compare the number of test cases and the pass or fail results with the terminal output. Check that the link the CLI printed points at your server's host. Done when the eval appears on your server with the same results, and the link from the CLI opens that eval.
Confirm nothing reaches promptfoo cloud
If your team had a promptfoo cloud account before, sign in and check that no eval from this run appears there. If you test in a pipeline, review the CI job log for the upload address as well. Keep this check short, because its goal is to confirm that uploads have stopped going to the cloud. Done when the test run is absent from the cloud account and every upload from the test goes to your server.
Remove stale cloud configuration
On each developer machine, clear the cloud login with promptfoo auth logout if your version supports it, and remove any exported PROMPTFOO_REMOTE_* variables that point at the cloud from shell profiles. In CI, delete cloud-pointing variables and stored secrets from the job or project settings, and make sure no cached config is reused between runs. Rerun the test eval from the earlier step in a fresh shell or job. Done when the target shown matches your server and a new machine or job resolves to your server without manual edits.
Security risks when eval results leave the laptop
Sharing eval results moves prompts, model outputs and test data from the machine that produced them to a server your team operates. The risks below connect at two points: where results are sent and who can reach them once they arrive. Each card names one control to put in place before the first upload.
Eval results hold sensitive content
An eval result is more than a pass or fail. It can include full prompts, model outputs, system instructions and any test records loaded from a file, and customer-like data often appears in those fixtures. Once uploaded, that material sits on your server and is visible to everyone who can open it. Keep only synthetic or approved test data in eval inputs. Before sharing, open the config and test files and confirm that no production records, personal identifiers or credentials appear in prompts or variables. Ask the data owner to sign off on any dataset that will be shared.
Wrong target receives results
The upload destination is resolved from the sharing settings in the config file, then from the PROMPTFOO_REMOTE_API_BASE_URL and PROMPTFOO_REMOTE_APP_BASE_URL variables, then from cloud login, then from the default promptfoo cloud URLs. A config copied from another project or a stale variable can point a run at a server you did not intend. Set the sharing target in the config file of each project. Then run one upload against a test instance and confirm in the server UI that the result landed where you expect.
Self-hosting docsCloud login overrides intent
Developer laptops often hold promptfoo cloud configuration left over from an earlier promptfoo auth login. That setting ranks below the config file and environment variables, but it still outranks the default cloud URLs, so a run without a self-hosted target can send results to a cloud account. Cloud credentials may also be copied to laptops from shell profiles or CI secrets. Check which target is active on each machine before the first upload. Remove stored cloud login from machines that should reach only your server, and keep API keys out of committed config files.
No built-in authentication
The self-hosted promptfoo server has no built-in authentication, SSO or role-based access control, so anyone who can reach its address can view uploaded results. Treat the server as an internal tool with no login of its own. Place the server behind a network boundary your team already controls, such as a VPN, a private subnet or a reverse proxy that enforces single sign-on for people who need the UI. Restrict inbound access to developer networks and CI runners, and test the boundary from outside the network before the team relies on it.
Encrypt uploads in transit
Eval results travel from a laptop or runner to the server, and the payload includes prompts and outputs. Publish the server through an HTTPS endpoint and set both PROMPTFOO_REMOTE_API_BASE_URL and PROMPTFOO_REMOTE_APP_BASE_URL to that ` address. Require TLS on every hop between developer machines and the server. Confirm that the certificate is issued by an authority your developers already trust, and check that plain HTTP requests are redirected or refused at the proxy.
Owner sets retention
Uploaded results stay on the server until someone removes them. The self-hosted app keeps its data in a local SQLite database, so results accumulate in that file and in any stored media until deletion happens. The owner must decide how long results are kept, who may delete them and how deletions reach backups. Write a retention rule before the first upload. Ask the promptfoo team to confirm the deletion method for the version you run, and test it on a sample result before you depend on it.
What teams ask before sharing eval results to their own server
How much effort does pointing the promptfoo CLI at a self-hosted server take?
The effort is driven by how many places need the new target. Each machine, CI pipeline and shared script that uploads results must point at your server, so those counts set the work. If the server is already deployed and reachable, the change is mostly configuration. If it is not, deploying it becomes the larger task. promptfoo checks sharing settings in the config file first, then the PROMPTFOO_REMOTE_API_BASE_URL and PROMPTFOO_REMOTE_APP_BASE_URL variables, then cloud configuration from promptfoo auth login, then the default promptfoo cloud URLs. Pick one method and apply it everywhere, so no machine quietly sends results to the cloud or to an old address. Review the promptfoo self-hosting documentation and confirm the exact behavior in your installed version before rollout.
Can our team set up promptfoo result sharing without outside help?
Yes, a team with Node.js, container or Kubernetes experience and access to its own infrastructure can usually handle the CLI side alone, and the official documentation covers the settings. The harder parts are the server and the decisions around it. Self-hosted promptfoo runs as a single instance with a local SQLite database, no RBAC, no built-in authentication and no SSO, and its documentation says it is not recommended for production use. Teams that need access control for shared results will need additional controls in front of the server, or the Enterprise and On-Premise editions. Outside help is most useful for designing those controls, checking the data path and writing down the operating steps that auditors will ask about.
What does our team need to provide for a self-hosted promptfoo share setup?
Expect to provide four things: access to the server host or cluster, network rules that let CLI machines and CI runners reach the server, a test dataset that represents the application under test, and a written decision on who owns retained results. Server access covers the account that deploys the container or chart and the storage volume that holds promptfoo.db. Network rules cover the path from developer laptops and runners to the server address, including any proxy or firewall on that path. The dataset determines what the first upload proves. Ownership decides who can view, export and delete evals, and it should be settled before results accumulate, because the self-hosted server has no roles to enforce that decision.
How long does it take to verify that results reach our own server?
Verification is a short, repeatable check, and its length depends on how many pipelines you must test and how large your evals are. Ask the team doing the setup for a timeline tied to your machine count and pipelines. A basic check runs one small eval with the sharing command, then confirms the result appears in the server UI. Repeat it from each machine type and each CI runner, because a single laptop passing does not prove that a pipeline with different environment variables will pass. Large evals add upload time and may need a tuned upload setting, so confirm that option in your version's documentation and test with a realistic result size. Record the target address and the variable source used in each run so an engineer or auditor can trace where results went.
Can a self-hosted promptfoo server handle sharing across the whole team?
For a small group that trusts one shared instance, it can store and display results, but it is not a team-wide system for larger or regulated use. The documented limits are a single replica, a local SQLite database that cannot be shared across replicas, no RBAC, no horizontal scaling, no built-in authentication or SSO, and a recommendation against production use. Those limits mean one instance is the ceiling, anyone who can reach the address sees the same data, and identity has to come from a reverse proxy or network control that you run. If you need team sharing with access control and SSO, the Enterprise edition lists teams-based access control and SSO, and the On-Premise edition runs that functionality on your infrastructure. Check the fit against your user count and governance needs before standardizing on the server.
What drives the cost of setting up promptfoo sharing on our own server?
The cost comes from people time and infrastructure, while the open-source software itself is licensed under MIT. The recurring items are the host or cluster you run, the storage that holds the database and blobs, the staff who upgrade and back up the instance, and the time spent keeping each machine's settings current. One-time items are the initial deployment, the network and access changes, and the written ownership and retention decision. Costs rise with the number of machines and pipelines, the number of separate server instances you must run, and any access controls you build in front of an instance that has no login. Ask for a quote built from a written scope that lists these items separately, so you can see which parts your team already covers.
Limits of sharing to a self-hosted promptfoo server to confirm
Five limits shape what a self-hosted promptfoo server can hold for a team. Each card names one limit, explains why it changes how you share CLI eval results, and lists what to check with the vendor documentation or in a pilot before you depend on it.
Results live on one instance
The self-hosted app stores data in a local SQLite database that cannot be shared across replicas, so every shared result lives on the one instance that received it. If that instance is rebuilt, moved or loses its data volume, the shared eval history goes with it unless you back it up. Before you point a pipeline at the server, confirm where the database sits and how backups should be taken, then test a restore during the pilot.
Self-hosting docsNo login, roles or SSO
The server has no built-in authentication, RBAC or SSO, so the app itself does not tell one user from another. Access control has to come from the network or a reverse proxy you run in front of it. Ask the vendor which endpoints the server exposes without credentials and whether it records who uploaded what. In a pilot, confirm that your proxy refuses unauthenticated requests before any team data is sent.
Scaling out is unsupported
Horizontal scaling is not supported, so a second replica behind a load balancer is not a safe way to handle more users or heavier uploads. Because results sit in a local database that replicas cannot share, parallel copies can end up holding different parts of the same team's history. Confirm the supported replica count in the vendor documentation, and size the server around one instance. In a pilot, run several uploads at once from different CLI machines and check that every result appears in the web UI.
Not recommended for production
The project does not recommend the self-hosted server for production use. Treat it as a pilot or internal evaluation tool unless the vendor's current guidance changes. Put the question to the vendor in writing: what they support for production, which limits they expect you to accept, and whether a commercial option fits your requirements. promptfoo describes On-Premise as the Enterprise functionality on your own infrastructure. Record the answer in your risk file before a team relies on shared results for release decisions.
Pricing and editionsUpload behavior with large evals
Uploads from promptfoo share or eval --share send the full result set to the server, so large evals put the most load on it. Confirm with the vendor whether uploads are split into chunks, what size limits apply and how a failed upload is retried. Then test in your own environment: upload your largest expected eval from the machine and network path your CI runners use, and check the time taken, any failures and whether the web UI shows every row.
How DeployOpen scopes and delivers self-hosted promptfoo sharing
DeployOpen starts Sharing CLI eval results to a self-hosted promptfoo server with a written scope that names the server, the CLI commands that upload results, and the config and environment settings that choose the target. We build and test the sharing path in your environment, then document it for the engineers who run evals. Engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts.
How we scope
- The written scope names the promptfoo version, Node.js runtime and the server host that receives shared results.
- It records which target settings apply: config file, environment variables, or promptfoo auth login.
- Fixed-scope deliverables list the sharing configuration, test uploads and documentation, agreed in writing before work starts.
How we build
- We set the target in config or environment variables, then confirm which setting takes effect in your pipeline.
- We test that promptfoo share and eval --share upload to your server and to no default cloud URL.
- Self-hosted promptfoo stores data in SQLite on one instance, so we document that limit in the design.
How we hand over
- Handover includes a written sharing configuration, with the environment variables and config keys used in each pipeline.
- Engineers get a short runbook for upload checks, the resolution order and what to do when a share fails.
- Documentation covers the sharing settings, the owner of each setting, and the steps to confirm a shared run.
How we support
- Retainers are available for promptfoo upgrades, ongoing support and continuous testing after handover.
- Upgrade work can rerun the runbook's upload checks to confirm sharing still reaches your server.
- Limits such as no SSO, no RBAC and one replica are raised with you before scope is signed.

