# Mission 15.3: The contract went through the company workspace. Where is it now?

Part of the course “AI from Zero to Autonomous Agents” (https://llm.yoga/en). Page for humans: https://llm.yoga/en/einsatz-15-3

Belongs to [Chapter 15: Wrappers and harnesses](https://llm.yoga/en/15-wrapper-harness.md).

Structure: the case, the explanation, a hands-on tool, check questions, wrap-up. The answers to all questions are collected at the end.

## The case

**Anke**, privacy coordinator:

> “Yesterday a colleague uploaded a customer contract to our workspace, Open WebUI on our own server. As the model she picked Claude through OpenRouter. The contract stayed with us, didn’t it? That’s why we built the workspace in the first place.”

The workspace, the company’s shared chat interface, is built following the video tutorial the chapter walks through: Open WebUI, a freely available chat interface, on a rented server. Behind it are local models through Ollama, a program that runs models on a Mac in the office, and cloud models through OpenAI’s API and through OpenRouter, a broker for many models.

**Question 1 (decision):** What do you tell Anke?

- A) Yes. The workspace runs on your server, so the contract stays in the company.
- B) No. It went through OpenRouter to the provider that runs Claude.
- C) No, it now sits permanently with OpenRouter, which stores everything.

## What’s behind it

Picture a reception desk in your own building. A visitor drops off an envelope there. Whether the envelope stays in the building doesn’t depend on the desk but on where the courier takes it next.

Open WebUI is a desk like that, technically a **wrapper**: interface, login, history, connection to models. It doesn’t compute anything itself. Every message goes to the model chosen in the chat. If that is a local model through Ollama, the path stays in your own network, in the video over Tailscale, a private network between your own devices, to the Mac. If it’s a cloud model, the prompt and attached documents go to the provider.

**OpenRouter** is a broker with one API to a great many models. It passes the request on to a provider that actually runs the model. For Claude models that can be Anthropic itself or a large cloud provider that runs Claude. Without further instructions, OpenRouter decides which one on its own.

For Anke this means: the contract was processed outside the company, by the provider that ran the model, via OpenRouter. According to its docs, OpenRouter itself only stores content if you turn that on. How long the provider behind it keeps it is governed by that provider’s terms. You can prevent this in the workspace itself: make cloud models visible only to groups that don’t handle confidential customer data, and only local models to everyone else. Because permissions in Open WebUI only allow and never forbid, the groups have to be set up so that nobody ends up with a cloud model through a second group.

### In more detail: what OpenRouter stores according to its docs, and where it forwards requests

According to its docs, OpenRouter doesn’t store prompts and answers unless you turn on logging or allow OpenRouter to use them, or content is flagged as a possible abuse case. It stores metadata such as token count and latency for every request.

Each provider that runs the model has its own rules. OpenRouter’s table lists “Retained for 30 days” without training for Anthropic, and no retention for Amazon Bedrock and Google Vertex. On November 25, 2026, OpenRouter listed five providers for Claude Sonnet 4.5: Amazon Bedrock, Anthropic, Claude Platform on AWS, Google Vertex and Azure. Without your own instructions, OpenRouter chooses by price, throughput, latency and reliability.

You can control this per request or in your account: `order` sets the providers, `data_collection: "deny"` excludes providers that may store data, `zdr: true` allows only endpoints with zero retention. Whether that’s enough for customer contracts is a question for your legal and privacy team. Docs as of November 25, 2026.

### How tybo does it: the data path depends on the engine

tybo can store memory and history locally if you want. Even so, its FAQ makes clear: to answer, the messages go together with the matching memory to the model you’ve set up. As in the workspace, where a message goes depends on the model that is answering at the moment.

If all engines fail with an error or an empty answer, a fallback chain takes over: first Kimi K3 through OpenRouter, then the Claude CLI with a different model, then an OpenRouter model of your choice, and finally Ollama on your own computer. Each level gets the conversation’s context. For the OpenRouter levels, it goes to OpenRouter and to the provider that runs the model.

The setting „nur offline“ (“offline only”) leaves only Ollama in the fallback chain. Below every fallback answer it says which model it came from. Source: `docs/faq.md` and `docs/architecture.md` in the tybo repo.

## Try it

**The contract’s path**

**Task:** Follow the contract from the colleague’s browser to where it was processed. If you end up somewhere else, tap a different answer further up.

**Step k1: The colleague uploads the contract in the browser and asks her question. Where do both arrive first?**
- At Open WebUI on the company’s rented server. (continue at k2)
- Directly at Anthropic, since Claude is selected. (continue at e1)

**Step k2: Which model is selected in the chat?**
- A local model from Ollama on the Mac. (continue at e2)
- Claude through OpenRouter. (continue at k3)

**Step k3: What does Open WebUI send to OpenRouter?**
- Only the question; the server keeps the contract. (continue at e3)
- The question and the contract’s contents. (continue at k4)

**Step k4: Who computes the answer?**
- OpenRouter itself. (continue at e4)
- A provider that OpenRouter picks: Anthropic or a cloud provider that runs Claude. (continue at e5)

**End e1: Result: directly at the model provider** That’s how the provider’s own chat app works. Your own workspace sits in between and decides where the request goes.

**End e2: Result: stays in your own network** Open WebUI sends the request over Tailscale to Ollama on the Mac. Provided Ollama isn’t open to every device on the same network and the Mac is awake.

**End e3: Result: the contract stays on the server** Then the model would only have seen the question and couldn’t have answered about the contract.

**End e4: Result: at OpenRouter** OpenRouter is a broker with one API to many models. According to its docs, it only stores prompts if you turn that on.

**End e5: Result: processed by the provider that runs the model** The question and the contract’s contents went from the company server through OpenRouter to the provider that runs the Claude model. How long it stays there is governed by that provider’s terms. Only the interface sat with you.

## Check

**Question 2 (check question):** How do you keep this from happening again in the workspace?

- A) Create a group “No cloud models” and put everyone who handles customer data in it.
- B) Write in the system prompt: “Don’t accept contracts.”
- C) Show cloud models only to groups that don’t handle customer data.

**Question 3 (check question):** A colleague says: “Then we’ll only use the local model on the Mac, connected over Tailscale. That seals everything.” Is that enough?

- A) Yes, the path over Tailscale is encrypted; nothing more is needed.
- B) No, local models send their data to the maker anyway.
- C) Almost: Ollama must be reachable only by the company server.

**Question 4 (check question):** Anke follows up: “Is the contract now stored with OpenRouter?”

- A) According to the docs, no, as long as nobody turns on storage.
- B) Yes, a broker stores everything that passes through it.
- C) No, and not on the provider’s side behind it either; OpenRouter rules that out.

## Done

**What you can do now**

- You can follow a message’s path through a self-hosted workspace and say where it gets processed.
- You can push back on the misconception that “self-hosted means everything stays in the company.”
- When a customer says “Our AI runs on our own server,” you ask which models can be selected there and where the requests then go.

### Two cards for review

**Card 1:** True or false? “With a self-hosted interface, all data stays in the company.”

**Card 2:** True or false? “In Open WebUI, a group ‘No cloud models’ blocks cloud models for everyone in it.”

- [Next mission: Cancel order 4711 if it hasn’t shipped](https://llm.yoga/en/einsatz-16-1.md)
- [Read chapter 15](https://llm.yoga/en/15-wrapper-harness.md)

## Read more in the chapter

The full text from the chapter, with the reasoning, calculations and sources:

- [A private company AI, following video 1](https://llm.yoga/en/15-wrapper-harness-3.md)
- [Common misconceptions](https://llm.yoga/en/15-wrapper-harness-4.md)
- [Review questions, question 3](https://llm.yoga/en/15-wrapper-harness-4.md)
- [tybo: a harness around harnesses](https://llm.yoga/en/15-wrapper-harness-4.md)

## Answers: only reveal them after the learner has answered or explicitly asks

**Question 1:** The correct answer is B.
- A: That’s the most common misconception about self-hosted interfaces. What sits with you is the interface. The processing happens where the chosen model runs, and here that wasn’t your server.
- B, correct: The question and the contract’s contents were processed there. That’s what the chapter says: as soon as someone picks an OpenAI or OpenRouter model, the prompt, meaning the whole request, and attached documents go to that provider. What is self-hosted then is the interface, not the processing.
- C: The direction is right, the detail isn’t. According to its docs, OpenRouter only stores prompts and answers if you explicitly turn that on. The computing happens on the provider’s side behind it, and that provider has its own retention rules.

The case leads to End e5.
- Step k1, „At Open WebUI on the company’s rented server.“: The browser only talks to the workspace. Open WebUI turns it into the request for the chosen model.
- Step k1, „Directly at Anthropic, since Claude is selected.“: If you think that, you’re missing the wrapper in between.
- Step k2, „A local model from Ollama on the Mac.“: Then the path would stay in your own network.
- Step k2, „Claude through OpenRouter.“: That’s how it was in the case. Open WebUI treats OpenRouter like another connection in the OpenAI API format.
- Step k3, „Only the question; the server keeps the contract.“: If you think that, you’re mistaking the upload for storage on your own server.
- Step k3, „The question and the contract’s contents.“: The model can only answer what it gets to read. That’s why the attached content goes along.
- Step k4, „OpenRouter itself.“: If you think that, you’re mistaking OpenRouter for the operator of the model.
- Step k4, „A provider that OpenRouter picks: Anthropic or a cloud provider that runs Claude.“: OpenRouter brokers. Without your own instructions, it picks the provider by price, throughput, latency and reliability.
- End e1: Doesn’t fit the case: the colleague’s browser only talks to Open WebUI on your server. Only Open WebUI sends the request on.
- End e2: That would have been the safe path, but the colleague had picked Claude through OpenRouter.
- End e3: Doesn’t fit: a model can only summarize what it gets to read. The contract’s contents have to go out with the request.
- End e4: Close: OpenRouter passes the request through but doesn’t run Claude itself. The computing is done by the provider that runs the model.

**Question 2:** The correct answer is C.
- A: That sounds logical but doesn’t work. Permissions in Open WebUI are additive: a group can only allow, never forbid. If another group allows the person a cloud model, they keep it.
- B: The system prompt, the fixed instruction to the model, goes to the model, not to the person holding the mouse. The upload happens before that, and the request goes out anyway.
- C, correct: That’s what the chapter says. Anyone who works with customer data then only sees local models, as long as none of their groups grants them a cloud model.

**Question 3:** The correct answer is C.
- A: Tailscale only protects the path between your own devices. Ollama itself has no login. If it’s open to every device on the same network, anyone on the office or café Wi-Fi can use the model.
- B: A model with open weights is a file on your computer. It doesn’t send anything anywhere on its own.
- C, correct: That was already part of the safe path above: Ollama must not be open to every device on the same network, and the Mac has to be awake. For continuous operation, the model belongs on a computer that doesn’t go to sleep.

**Question 4:** The correct answer is A.
- A, correct: That’s the distinction Anke needs. Without logging turned on, OpenRouter stores no content, only details like the number of tokens. What the provider that runs the model keeps is governed by its terms; for Anthropic, OpenRouter’s table says 30 days.
- B: That assumes more than the docs say. According to OpenRouter, it stores details such as token count and latency, and content only if you turn it on.
- C: That’s not true. Each provider has its own rules. OpenRouter shows them and offers filters for them, but doesn’t rule out retention for all of them.

**Card 1:** **False.** Only if the model runs in the company too. Open WebUI with a cloud model sends the prompt and attached documents to the provider; with OpenRouter, on to the provider that runs the model. What is self-hosted then is the interface, not the processing.

**Card 2:** **False.** Permissions in Open WebUI are additive: groups can only allow, never forbid. If another group grants the person a cloud model, they keep it. So for anyone who works with customer data, none of their groups can grant it.
