Hunt AI for websites
A site that Hunt has approved can ask to use Hunt AI, the model that runs on the person’s own computer. The person decides in Hunt’s own window. What your site sends never leaves their device: no server, no cloud fallback, free for you and for them.
Where it works today
| Platform | Hunt AI for websites |
|---|---|
| Hunt Browser for Windows | Yes, on computers with WebGPU |
| Hunt Browser for Mac | Yes, on computers with WebGPU |
| Hunt Browser for Android | Not yet |
| Hunt for iPhone and iPad | Not yet |
| Other browsers, and the Hunt extension in them | No |
Everywhere else, window.huntAI does not exist, so check for it and keep your own path.
Who can use it
Only origins on Hunt’s list (signed configuration, so a site can be added without a browser update). On every other page, window.huntAI is not defined at all, so Hunt can’t be used to fingerprint visitors. It exists only in the top-level page, never in frames. To ask for your site to be added, write to hello@huntbrowser.com with your origin and what you’ll use it for.
The permission
- Your page calls
requestAccess({ purpose })from a click or key press. - Hunt opens its own small window, which your page can’t draw on: “Let your site use Hunt AI on this computer?”, your purpose in your words (up to 140 characters), and “Your text stays on this device.” Allow or Don’t allow.
- Allow: Hunt AI basic (352 MB) downloads at once on Wi-Fi or a wired connection. On mobile data it waits for Wi-Fi (
waitingFor: 'wifi'). Hunt offers Hunt AI plus (1.1 GB) as an upgrade; it never downloads by itself. - Don’t allow: your site gets
denied, and asking again doesn’t reopen the window. Closing the window leaves it atprompt. - People can see every site and take the permission back any time: Hunt button → Sites using Hunt AI.
The API (version 1)
interface HuntAI extends EventTarget {
readonly version: 1;
readonly limits: { maxTextChars: 6000; maxInstructionsChars: 1000; maxSchemaChars: 4000; maxItems: 50; timeoutMs: 90000 };
status(): Promise<HuntAIStatus>;
requestAccess(options: { purpose: string }): Promise<HuntAIStatus>;
extract(options: {
text: string;
instructions: string;
schema: ItemSchema; // JSON Schema of ONE item
quoteField?: string; // a string property that must be copied exactly from text
tier?: 'basic' | 'plus'; // default: the best model on this device
signal?: AbortSignal;
timeoutMs?: number; // at most 90000
}): Promise<{ items: object[]; dropped: number; model: 'hunt-ai-basic' | 'hunt-ai-plus'; engine: 'device' }>;
}
interface HuntAIStatus {
permission: 'prompt' | 'granted' | 'denied';
model: {
tier: 'basic' | 'plus' | null;
state: 'absent' | 'downloading' | 'ready' | 'unsupported';
progress: number; // 0 to 1
waitingFor?: 'wifi'; // will download on Wi-Fi
reason?: 'no-webgpu' | 'no-space' | 'off';
};
}
Schema. Describe one item as { type: 'object', properties, required } with up to 12 properties, each a string (optionally with enum), number, integer, boolean, or array of strings. Hunt asks the model for { "items": [...] } in exactly that shape and drops anything that doesn’t match; dropped says how many.
Events. statuschange (detail: the status) while the model downloads or when the permission changes; progress (detail: { phase: 'load' | 'run', fraction }) during extract().
Example
const hunt = window.huntAI;
if (!hunt || hunt.version !== 1) return useYourOwnPath();
button.onclick = async () => {
const s = await hunt.requestAccess({ purpose: 'suggest breakdown tags for your script' });
if (s.permission !== 'granted' || s.model.state === 'unsupported') return useYourOwnPath();
};
hunt.addEventListener('statuschange', (e) => showModel(e.detail.model));
const { items, dropped } = await hunt.extract({
text: sceneText, // one scene: at most 6,000 characters
instructions: 'List every prop, cast member, location and special effect named in this scene.',
schema: {
type: 'object',
properties: {
category: { type: 'string', enum: ['prop', 'cast', 'location', 'effect'] },
name: { type: 'string' },
quote: { type: 'string', description: 'the exact words from the scene' },
},
required: ['category', 'name', 'quote'],
},
quoteField: 'quote', // items whose quote isn't in the text are dropped
});
Limits
- Text up to 6,000 characters a call (the model reads about 4,000 tokens at a time). Longer text is refused, never cut: send a section at a time.
- Instructions up to 1,000 characters; schema up to 4,000; up to 50 items an answer.
- One call runs at a time; 30 calls a minute per site; 90 seconds at most a call. The first call after a while also loads the model (a few seconds).
Errors
Calls reject with an Error whose name is HuntAIError and whose code is one of:
| code | Meaning |
|---|---|
not-allowed | The person has not allowed your site, or took it back in Hunt’s settings. |
needs-user-gesture | requestAccess() was not called from a click or key press. |
unsupported | This device can’t run the model (no WebGPU). |
model-not-ready | The model is still downloading, or waits for Wi-Fi. |
too-large | The text, instructions or schema is over the limit. Nothing is cut: send less. |
invalid-input | A missing or malformed option, or a schema outside the supported subset. |
rate-limited | More than 30 calls in a minute from your site. |
busy | One call runs at a time and four may wait; more are refused. |
timeout | No answer within the time limit. |
aborted | Your AbortSignal cancelled the call. |
failed | Anything else, including an answer that wasn’t valid JSON. |
Privacy
- The text runs through the model on the person’s device and is not saved, logged or sent anywhere, by Hunt or anyone.
- Hunt counts how often Hunt AI is used, as a number, with the person’s usage-statistics setting. Never the text, the answer or your site’s purpose.
- Treat the model as a helper: it is small and can be wrong. Show its suggestions for the person to accept or reject, and check quotes against the text yourself.