A security team often asks whether GBrain can run inside the company's own
cloud, such as its own AWS account, so sensitive data stays behind the
company's own guardrails. A hosted workspace can't run there today. Part of
the work can stay in your own infrastructure, and the open source GBrain
runs anywhere you put it. This page says which part is which.

## What can stay in your own infrastructure today

**The AI model.** A workspace with an AI of its own can think on a model
server your organization runs, for example one in your own cloud account.
The server needs a public HTTPS address that GBrain can reach: a server
reachable only on a private network or over a VPN is refused. Personal has
no AI of its own, so this is for a workspace that has one, as
[Which AI does what](/docs/workspace/what-runs-where) explains.

1. **Add the endpoint.** The person who pays for the organization opens the
   organization's **AI models** and, under **Your own endpoints**, adds a
   model server that speaks the OpenAI format, with its address, its key and
   the region you declare for it, which GBrain does not verify. Its models
   then show in each workspace's model picker, and your endpoint bills you
   for them directly. An organization can add two endpoints, with up to five
   models each. An organization whose workspace is still on its free start
   can't add one.
2. **Hold the workspace to it.** On the workspace's **Settings**, then
   **Data protection**, an admin opens **AI routing**, chooses **Only
   approved** and approves only that endpoint. From then on GBrain refuses
   every AI call from the workspace to anywhere else, before it leaves
   GBrain's servers.
3. **Check where calls went.** The same Data protection page lists recent AI
   calls with the endpoint that ran each one and the region declared for
   it, and a download of the last 30 days.

**Your own provider account.** If the team only needs a direct contract
with Anthropic or OpenAI, the person who pays adds the organization's own
key under **AI models**, and that provider bills the organization directly.
[Which AI does what](/docs/workspace/what-runs-where) has the details.

## What GBrain still holds

- **The memory, the chats and the files** are stored on Fly.io in Chicago,
  in the United States. Neither a hosted workspace nor its memory can be
  placed in another company's cloud today.
- **Every AI call passes through GBrain's servers** on its way to your
  endpoint. GBrain adds the key and records the call there; it does not keep
  the prompt or the reply.
- **Your own endpoint carries chat only.** Memory search by meaning, the
  notes taken from messages and the facts pulled out of documents use
  GBrain's providers. Under Only approved those calls are refused unless you
  approve them too, and memory search by meaning stops with them.
- **Connected accounts**, such as Google or Microsoft, are read and written
  through GBrain's servers.

GBrain is not end to end encrypted: the workspace reads its material in
cleartext so a model can work on it. [Security](/trust/security) describes
how the service is built and the certifications it does and does not hold,
and [Subprocessors](/trust/subprocessors) lists every company that processes
data for it.

## Everything in your own cloud: the open source GBrain

GBrain is open source. A team that needs the memory, the machine and the
model all inside its own cloud can run [the open source
GBrain](https://github.com/garrytan/gbrain#install) on its own servers, with
its own database and its own model. That team runs it, upgrades it and
secures it. A hosted workspace's chats, Slack and Telegram, Schedule page,
connected accounts, team members and Data protection page are part of the
hosted service, and do not come with it.

A team can start hosted and leave later. [Move your GBrain out of a
workspace](/docs/workspace/export) takes a copy of every note and the
database underneath, from a terminal on a paid workspace or through
support, and loads it into a GBrain you run yourself.

## Talk to us

A hosted workspace inside a customer's own cloud isn't offered today. If a
security review needs more than this page, write to
[support@gbrain.io](mailto:support@gbrain.io) with what the review requires.
For the settings to use on a sensitive team's workspace today, read [A
workspace for a sensitive team](/docs/workspace/sensitive-teams).