# Llama Chat Trace Sharing: How to Keep Local Chats Private

See what llama.cpp sends to Hugging Face, why a new dataset can be public, and how to leave sharing out of a local build.

By Paras Madan | 2026-11-27


The **Share** button in Llama Chat uploads a conversation trace to Hugging Face. It doesn't turn a local chat into a public page on its own. The easy mistake is inside the share dialog: if you make a new dataset there, the dataset is public unless you select the private option.

The feature shipped in the [November 27 llama.cpp b12811 pre-release](https://github.com/ggml-org/llama.cpp/releases/tag/b12811), which includes Llama Chat 0.4.0. It matters for anyone who chose a local model because their prompts or documents weren't supposed to leave the machine.

## What leaves the browser when you share

The conversation menu exports the selected branch as a JSONL file. Sharing from a message exports that branch up to the message, including earlier turns. If a bad answer appears after a sensitive prompt, sharing only from that answer still carries the prompt before it. The [implementation notes](https://github.com/ggml-org/llama.cpp/pull/32608) say other branches, the working directory and the sidebar group are excluded, and attachments are left out unless you include them. Text pasted into a prompt is still text in the trace.

The [Hugging Face trace viewer](https://huggingface.co/docs/hub/en/agent-traces) is useful when someone needs to inspect how an answer came together. It can also expose more than a screenshot: a trace can contain prompts, tool inputs and outputs. Read the file you intend to send. The first few lines visible in a preview cannot establish what is in the rest.

## Share a reproducible example, not the original chat

If you're filing a bug, start a clean session with a fixture you can distribute. For example, replace a customer invoice with a fake invoice that still has the duplicated subtotal that triggers the error. Check that the bug reproduces, then choose the smallest useful branch. You get a trace the maintainer can inspect without asking them to handle your customer's original document.

Use the in-app **Sign in with Hugging Face** flow on localhost or HTTPS if uploading is allowed. The app's sign-in is scoped to the repositories it creates; it may not offer the datasets you saw in a different browser. If the destination is missing, don't switch to a broad write token just for convenience. Use an approved dataset and upload path, or keep the JSONL local. If you do create a dataset in the dialog, select **Private** before sending and confirm the destination and visibility on the Hub afterwards. A private dataset still stores the trace outside your machine.

## Keep the Share button out of a team build

The official prebuilt UI bundles the feature. In a custom build, explicitly build the UI from source with `-DLLAMA_BUILD_UI=ON` and leave `-DLLAMA_UI_HUGGING_FACE` off. Changing the latter option while still downloading the prebuilt UI does not remove anything from that bundle. The same [pull request](https://github.com/ggml-org/llama.cpp/pull/32608) documents the separate frontend build setting if you package Llama Chat yourself.

After rebuilding, open the client you actually distribute and check both the conversation menu and the actions on individual messages. If your rule is that no user data leaves the environment, enforce it with network policy too. Removing one upload control doesn't prove that the browser, plugins or other features cannot make outbound requests.

For internal work, I'd keep local JSONL as the default and use the Hub for clean fixtures that someone else actually needs to read. You still get useful bug reports without turning every rough debugging session into a dataset.

I'm Paras. I work with AI infrastructure and developer-tool teams.

I help explain what changes when a local AI feature starts talking to an external service.

[Book a 30-minute call](https://cal.com/paras-madan/30min).
