Where it runs
Hosted UI and Cloudflare
Serving the workbench UI from somewhere other than loopback, without weakening the default.
The UI is a static build, so it can be served from any static host — Cloudflare Pages, S3, a company web server. That does not move your repositories anywhere: the UI still talks to a service running on your machine (or on a machine you control), and the service still refuses origins it was not told about.
Deploying the UI
pnpm deploy:web
Or use the Deploy to Cloudflare button in the repository README. A deployment belongs to your own Cloudflare account.
Allowing a hosted origin
A hosted UI is opt-in and explicit on the service side:
REFYARD_HOSTED_PASSWORD='…' refyard serve --repo ~/code/app \
--allow-origin https://refyard.example.com \
--ui-origin https://refyard.example.com \
--api-origin https://machine.example.com
--allow-originis an exact origin, never a wildcard.- The hosted password is environment-only: never an argument, never in a URL, never logged.
- The browser exchanges the password for a session; the password itself is not stored.
- Without
--allow-origin, the loopback checks are unchanged and a hosted page cannot call the service at all.