# Switch Between Local and Company Mode

> How to connect a Local endpoint to a Continuo hub, and how to return it to Local (an admin release is required).

## Local → Company (connect to a hub)
1. In Continuo, open **Downloads** and copy a **provision token** for the endpoint.
2. Run `.\setup.ps1` (or Coda's connect flow) and paste the token.
3. Coda registers; the hub's governance policy, project, model, and codebase take
   over (and are **locked** to the hub).

## Company → Local (return to standalone)
Governed endpoints are intentionally **one-way** — an endpoint cannot free itself
from its organization. To return one to Local:
1. An **org admin** deactivates/releases the endpoint in **Company → Endpoints**.
2. On the machine, delete `%LOCALAPPDATA%\NewMedley\Coda\provision.json` and
   `coda-hub.json`, then restart Coda.
3. Coda is standalone/self-governed again — set your local provider in
   **Settings → AI**.

> A one-click "Return to Local" toggle is planned. The admin-release step is what
> keeps governance meaningful, so it will remain part of the flow.
