Security model

How the Quin Local API is protected — loopback binding, Host and Origin checks, scoped tokens, limits, audit — and what it does not protect against.

Local APIApplies to Quin Camoufox 0.7Updated 2 November 2026

The Local API gives scripts real control over your browser profiles, so it is built to be reachable only by programs on your own computer that hold a token you created. This page lists each defence and its limits.

Off unless you turn it on

The API is off by default. Turned off, there is no listening socket at all. Turned on, it runs inside Quin's engine: it starts and stops with Quin Camoufox, so nothing listens while Quin is closed. Every call also needs a signed-in Quin account.

Loopback only

  • The listener binds 127.0.0.1 on the configured port (default 50380), never 0.0.0.0, the IPv6 loopback ::1 or the computer's LAN address. On Windows the port is opened with exclusive use, so another program cannot share it.
  • If the port is taken, the API stays off and reports it; it never moves to another port silently.
  • It is not part of Quin Cloud and is not reachable through it.

Web pages cannot use it

A malicious web page — including one open in a Quin browser — knows the port is 50380. These checks stop it:

CheckResult
Host must be 127.0.0.1:<port> or localhost:<port> (DNS-rebinding defence)otherwise 421 bad_host
Any Origin header403 origin_forbidden
Sec-Fetch-Site: cross-site, same-site or same-origin403 origin_forbidden
OPTIONS (CORS preflight)403 origin_forbidden
CORS response headersnever sent
WebSocket upgraderefused (there is no WebSocket endpoint)

These checks run before authentication, on every request including /api/v1/openapi.json.

Tokens

  • 256-bit random secrets, shown once, stored only as SHA-256 hashes.
  • Sent only as Authorization: Bearer; tokens in URLs or cookies are ignored.
  • Scoped (14 scopes), optionally expiring, revocable one by one or all at once.
  • Bound to the Quin account that created them: refused after sign-out, when another account signs in, when the account is suspended, banned, deleted or expired, when the device is revoked, or when an administrator turns the Local API off (local_api_enabled). Quin re-reads the account status at most once a minute.
  • An open event stream re-checks its token every 30 seconds.
  • Tokens cannot be created through the API.

See Authentication and scopes.

Limits

LimitValue
Requests per token30 per second, burst 60 → 429 rate_limited
Failed authentications10 per minute → 429 too_many_failures for 60 s
Request body1 MB → 413 body_too_large
Transfer encodingsany Transfer-Encoding header → 411 length_required (bodies must use Content-Length)
Concurrent requests64
Keep-alive timeout15 s

Since 0.7.0-rc.3 every Transfer-Encoding value is refused. Earlier builds matched only the exact value chunked, so a value such as gzip, chunked could get past the body limit.

Same rules as the app

The API cannot do anything the app would refuse:

  • Opening a browser goes through Quin's normal launch path: account modes, required proxy, pinned and verified runtime, Network Guard, and for Quin Cloud profiles the lease, download and save on close. A profile is never opened twice.
  • Profile, group and proxy changes use the app's own rules (Trash, quotas, proxy validation).
  • Proxy passwords are never returned; cookies and browser storage are never exposed.

Automation boundaries

  • No CDP, WebDriver, Selenium, Puppeteer or Playwright endpoint. The browser's control channel is a private pipe owned by Quin's engine; scripts use Quin's actions.
  • No code execution. There is no "evaluate JavaScript" action and no endpoint that runs programs.
  • Addresses: navigate accepts http(s):, data: and about:blank; new tabs and start URLs http(s): and about:blank. file:, javascript:, browser settings pages and internal schemes are refused, so automation cannot read local files through the browser or change the profile's settings, proxy or extensions.
  • Files: uploads, downloads and screenshots stay inside the automation workspace or folders you approved; absolute paths, .., network shares, alternate data streams and reserved names are refused.
  • RPA HTTP blocks refuse loopback, private, link-local, CGNAT, multicast and cloud-metadata destinations unless you approved the host; the address is checked at every redirect and again at the moment of connecting, so a DNS name cannot be switched to a local address in between (DNS rebinding).

Audit and logging

State-changing calls and refused requests (bad host, web origin, failed authentication, errors) are recorded in Settings → Local API → Recent API events with time, token id, method, path and status. Logs and audit never contain tokens (only token ids), proxy passwords, cookie values or typed values of secret fields. Event-stream data is redacted the same way.

What localhost does not protect against

The API trusts the token, not the fact that a request comes from this computer.

  • Any program running under your Windows account can read what you can read — including a token saved in a plain file, a script or an environment variable — and use it.
  • Other Windows users on the same computer can reach the port; without a token they get 401. A token stored with quin auth set-token is protected with DPAPI and readable only by your Windows user.

Good practice:

  1. One token per script or tool, with only the scopes it needs and an expiry.
  2. Store tokens with quin auth set-token or an encrypted credential store, not in scripts.
  3. Revoke tokens you no longer use; use Revoke all if a token may have leaked.
  4. Turn the Local API off when you do not use it.