Network and API key
By default only this Mac can reach Quail's server, and every request needs its API key.
Reachable from
On the Server page, Network → Reachable from sets who can connect:
| This Mac only | The default. The server listens on 127.0.0.1; nothing else can connect. |
|---|---|
| Local network | The server listens on every network interface (0.0.0.0), so your other computers and phones can use it. |
| Custom | One address you type, such as a VPN address. Press Return to save it. |
The first time you start the server with it reachable from the network, Quail asks once, and offers to keep it to this Mac instead.
The address to use
The Server page shows the addresses that work, each with a Copy button:
- On this Mac:
http://127.0.0.1:8080. - From other devices: your Mac's network address, such as
http://192.168.1.20:8080, when the server is reachable from the network.
Change the port on the same page. The address, port, API key and models loaded at once apply when the server restarts; the page and the menu say when a restart is needed.
The API key
Require API key is on from the start, with a random key kept in your Keychain. Clients send it as Authorization: Bearer <key> or x-api-key: <key>; the Connect page fills it in for you.
- Show reveals it; you can type your own there and press Return.
- New Key… replaces it. Tools set up with the old key stop working until you give them the new one.
Web pages
Quail server refuses requests from other web pages and from pages that pretend to be it (a “DNS rebinding” attack). Its own chat page, opened from the menu, signs in with a one-time ticket, so the key never appears in a URL.