Inference Bridge — BYOK AI & Web API 的隐私政策
Inference Bridge — BYOK AI & Web API 作者: Sam Samskies
Inference Bridge — BYOK AI & Web API 的隐私政策
Last updated: 2026-11-13
Inference Bridge is a browser extension that implements the experimental Inference Provider API. This policy describes what data the extension handles in Chrome and Firefox.
- API keys and provider settings are stored in the browser's local extension storage. That storage is not encrypted by Inference Bridge. Page scripts cannot read it.
- Inference request content is sent only to the provider the user selects (for example OpenAI, Anthropic, OpenRouter, PayPerQ, Ollama through a local server, direct Ollama Cloud, on-device browser AI, or a user-configured OpenAI-compatible server).
- In Chrome and Firefox, when speech is approved, a bounded recording or complete media container is sent to the selected transcription provider. Synthesis text is sent to the selected provider and generated audio bytes are returned directly to the requesting page.
- Experimental decisions are available by default and require separate per-site approval. Once approved, JSON state and typed questions are sent to OpenAI Decisions, OpenRouter Decisions, PayPerQ Decisions, or local or cloud Ollama System One. Typed answers are returned directly to the page; state, questions, and answers are held in memory for the active request and are not persisted.
- The extension does not operate a backend that collects or sells user data.
- Permission grants are stored per website origin on the user's device.
- Optional first-party side-panel chat saves conversations, reasoning text, attached images, and interrupted responses locally in the extension's IndexedDB. It does not sync history or use an Inference Bridge server. Sending a chat sends its saved message/image context to the selected provider; enabling Search permits the provider's hosted search service. This does not grant any website access.
- Gemini function-call continuation retains complete native responses for
tool-call turns, including thought summaries, opaque signatures, model text,
and any search results, in extension-worker memory for up to 30 minutes.
This cache is bounded to 128 turns and 2 MB of serialized data. Entries are
isolated by website origin, model, and credential. Provider-only state is
never exposed to pages or written to extension storage; ordinary response
text and reasoning summaries still reach the requesting page. Worker shutdown
clears the cache. - The Firefox build is unavailable in private windows.
- Recordings, transcripts, and generated audio are held only in memory for the active request and are never stored in extension storage.
- Recordings can contain biometric voice data and sensitive information about the speaker or bystanders, including location, health information, background conversations, and other ambient sounds.
| Data | Purpose | Where |
| --- | --- | --- |
| Provider API keys (OpenAI, Anthropic, Google Gemini, OpenRouter, PayPerQ, Ollama Cloud, optional Ollama local-server account key for web search, optional keys for custom endpoints) | Authenticate requests to the selected provider | Local extension storage |
| Default provider and model | Pre-fill Options and approval UI | Local extension storage |
| Named OpenAI-compatible endpoint configs (name, base URL) | User-configured OpenAI-compatible servers | Local extension storage |
| Per-origin grants and blocks | Remember Allow / Deny decisions | Local extension storage |
| Per-origin last-used provider and model | Pre-fill the approval UI without skipping permission prompts | Local extension storage |
| Decisions default provider/model and per-origin decisions grants/last-used choices | Keep decisions authorization separate from chat and speech | Local extension storage |
| Per-origin speech grants and provider/model/voice choices | Keep transcription and synthesis authorization separate from chat and from each other | Local extension storage |
| First-party chat messages, reasoning, image attachments, titles, pin status, provider/model/search choices, partial responses, and active-chat preference | Reopen, organize, and continue saved conversations | Extension-origin IndexedDB, confined to this browser profile |
Settings and grants stay on the device unless the user clears extension storage or uninstalls the extension. API keys are sent to their selected provider when needed to authenticate a request. Local extension storage is not encrypted by Inference Bridge or Firefox.
First-party chat history is also unencrypted by Bridge. Delete a chat or all chat history from its history sidebar. Uninstalling removes local history. Browser storage quotas apply; Bridge requests persistent storage when a chat is saved, but the browser may decline. Storage failures are reported, and an abrupt shutdown may lose the latest unsaved response checkpoint. The extension does not save website IPA conversations in chat history.
The provider details below describe website IPA requests. First-party chat uses the same provider endpoints and credentials, sends the saved conversation and attached images when you press Send, and stores its replies locally as described above. It never reads the current webpage. Hosted search can send queries and fetch URLs through the provider/search service and may incur provider charges. Model catalogs and capability discovery use the existing provider configuration.
When the user allows a site to use inference:
- Google Gemini: approved chat messages and images, plus the stored Gemini API key, are sent to
https://generativelanguage.googleapis.com. Model and prebuilt-voice discovery also authenticate to this host. Chat, dedicated transcription, and separately approved synthesis use native Interactions withstore: false, opting out of interaction-resource storage; Google's API tier terms still apply. Approved Google Search runs server-side and may execute multiple billable queries. Separately approved transcription uploads the complete bounded audio file through Google's Files API. Bridge attempts file deletion after success, failure, or cancellation with a separate cleanup timeout. If upload completion is interrupted or cleanup fails, a remote file may remain until Google's documented 48-hour Files API expiry;store: falsedoes not delete files. For synthesis, text is sent with the user-selected model and prebuilt voice, and native WAV bytes are returned to the requesting page. Recordings, transcripts, and generated audio are not stored locally. API billing and data-use terms are separate from consumer Google AI subscriptions. - OpenAI: chat messages (and, when the user allows image input, image bytes from the page) and the stored OpenAI API key are sent to
https://api.openai.comfor the selected model. When the user allows image output, generated image bytes from OpenAI are returned to the page. When the user separately approves speech, the complete bounded audio/media file is uploaded to OpenAI for transcription, or synthesis text is sent to OpenAI and generated MP3 bytes are returned to the page. An MP4/WebM upload can include visual or other container bytes even though only its audio track has transcription semantics. When decisions are separately approved, state is sent as text (JSON-serialized for objects and arrays) with typed questions and the stored OpenAI key to/v1/decisions; typed answers or per-question refusals are returned directly to the page. - Anthropic: chat messages (and, when the user allows image input, image bytes from the page) and the stored Anthropic API key are sent to
https://api.anthropic.com(Messages API) for the selected model. - OpenRouter: chat messages and the stored OpenRouter API key are sent to
https://openrouter.aifor the selected model. The public model catalog (GET /api/v1/models) is fetched without an API key to populate the Options UI. When the user allows image input or output, image bytes may be sent to or returned from OpenRouter for the selected model. When speech is separately approved, the complete bounded audio/media file or synthesis text is sent to OpenRouter’s dedicated speech endpoint; generated MP3 bytes are returned to the page. When decisions are separately approved, JSON state, typed questions, and the stored OpenRouter key are sent to/api/alpha/decisions; typed answers are returned directly to the page. The public decisions model catalog (GET /api/v1/models?output_modalities=decisions) is fetched without an API key; Inference Bridge does not contact TypeSafe directly. - Ollama (local server): chat messages (and, when the user allows image input, image bytes from the page) are sent to the local Ollama endpoint (
http://localhost:11434). If the user approves transcription, and the installed model explicitly reports theaudiocapability, the complete bounded WAV file—or MP3 for a specifically verified model—is sent to that same local endpoint. If the user separately approves synthesis, and the installed model reports thespeechcapability, text is sent to that same local/v1/audio/speechendpoint and generated WAV bytes are returned to the page. If the page passes an imageurl, the page fetches it (same CORS rules as the site) and the extension then sends those bytes to the selected provider. When the user enables hosted{ type: "web_search" }and has saved an Ollama account API key, Inference Bridge also sends search queries (and optional page-fetch URLs) plus that key tohttps://ollama.com(/api/web_search,/api/web_fetch). When decisions are separately approved, JSON state and typed questions are sent to local/v1/systemone, and typed answers are returned to the page. Installed decisions, transcription, and speech model discovery use local/api/tagsand/api/showcapability metadata. Local chat, transcription, synthesis, and decisions do not use that key. A signed-in local daemon may forward cloud-model inference to Ollama Cloud; the local-server label describes the connection rather than guaranteeing local execution. Generated images are not requested from Ollama in the current build. - Ollama Cloud (direct): approved chat messages, function-tool definitions/results, and approved image bytes are sent directly to
https://ollama.com/api/chatwith the separately saved Ollama Cloud API key. Approved hosted search/fetch uses/api/web_searchand/api/web_fetchon the same host. Separately approved decisions send JSON state and typed questions to/v1/systemone. If the cloud catalog and fresh model metadata advertise transcription or synthesis support, separately approved WAV audio or synthesis text is sent to/v1/audio/transcriptionsor/v1/audio/speech, and transcripts or generated WAV bytes are returned to the page. Public/api/tagsdiscovery sends no key; selected-model capability, thinking, and voice probes use/api/showand may authenticate with the cloud key. Cloud inference never requires or contacts the local Ollama server, and Bridge does not automatically switch a local grant to cloud. Keys, defaults, and site routes remain separate from the local-server provider. Inference inputs and outputs are not persisted. Ollama account usage limits, billing, and data-use terms apply. - PayPerQ (ppq.ai): approved chat messages, function-tool definitions/results, and the saved PayPerQ key are sent to
https://api.ppq.ai/chat/completions. Approved image input is sent only when the selected model is verified as vision-capable in the current catalog. The public chat catalog (GET /v1/models) is fetched without a key. When hosted web search is requested and approved, PayPerQ decides whether to search and processes results server-side, which may involve its upstream model and search providers and incur additional charges. Bridge does not set a search engine or Zero Data Retention routing preference; PayPerQ and upstream data-use terms apply. When decisions are separately approved, JSON state, typed questions, and the same saved PayPerQ key are sent tohttps://api.ppq.ai/v1/decisions; typed answers are returned directly to the page. The public decision model catalog (GET /v1/decisions/models) is fetched without a key and is kept separate from the chat catalog. Decisions have independent defaults and site grants; state and answers are held only in memory. When transcription is separately approved, the complete bounded audio/media file and the saved PayPerQ key are sent to/v1/audio/transcriptions. For separately approved synthesis, text, the selected model/voice, and that key are sent to/v1/audio/speech; MP3 bytes are returned directly to the page. The full MP4/WebM container can include visual bytes even though transcription uses only audio. Public/v1/audio/modelsand/v1/audio/voicesdiscovery sends no key; Bridge does not fetch third-party voice preview URLs. Speech has independent defaults and grants and is never persisted locally. PayPerQ may route these operations to its upstream speech providers under their respective terms. Existing custom-server keys and grants are not migrated automatically. An explicit transfer action copies the saved key and chat model into PayPerQ settings, removes the old server and its stored key, and revokes its site approvals. Affected sites must approve again; remembered chat models may prefill the new approval. Unrelated providers and permissions remain unchanged. - On-device (Chrome only): chat messages (and, when the user allows image input, image bytes from the page) are processed by the browser Prompt API (
LanguageModel) on the device. No API key is used. The browser chooses and may download the model when the user clicks Install in Options. Generated images are not requested from the Prompt API. When decisions are separately approved, JSON state and typed questions (at most 16 per request) are processed by Chrome's on-device Decisions API (DecisionModel) on the device, and typed answers are returned directly to the page. Decisions use a separate browser-managed model, installed separately from the chat model via Install decision model in Options, with independent defaults and site grants; no state or answers leave the device or are stored. This provider is unavailable in Firefox. - OpenAI-compatible: chat messages (and, when the user allows image input, image bytes from the page, plus an optional API key, if configured) are sent only to the base URL the user saved. The extension may also call that server’s
/v1/modelsto populate the model picker. Firefox requires HTTPS for non-loopback servers; HTTP is accepted only for localhost/loopback.
If a user chooses Always allow for a website origin, future requests from that origin can reach the saved provider without another per-request popup. The grant can be reviewed and revoked in Options → Site access. The browser's add-on permissions can also be revoked, which prevents affected provider calls.
The extension does not receive or relay responses through any Inference Bridge server. Page-supplied transcription URLs are fetched by the page under that page's CORS rules; the privileged extension does not fetch them. Speech media is passed through without local demuxing, transcoding, visual analysis, or automatic playback.
| Permission / host | Why it is needed |
| --- | --- |
|
storage | Save settings, API keys, and origin grants ||
contextMenus | Manage toolbar menu entries: Firefox adds Open Chat; Chrome clears the earlier duplicate and uses its built-in Open Side Panel ||
sidePanel (Chrome only) | Display optional first-party chat beside the current webpage; Firefox uses sidebar_action ||
declarativeNetRequestWithHostAccess | Strip Origin / Referer on loopback inference requests so local servers do not reject extension origins ||
offscreen (Chrome only) | Host the browser Prompt API for the On-device provider (not available in the service worker) ||
https://api.openai.com/* | Call OpenAI chat, image, transcription, speech-synthesis, and separately approved Decisions APIs selected by the user ||
https://api.anthropic.com/* | Call the Anthropic Messages API ||
https://generativelanguage.googleapis.com/* | Authenticate Gemini discovery, user-approved chat/search, and separately approved file transcription and cleanup ||
https://openrouter.ai/* | Call the OpenRouter models catalog, Chat Completions API, and separately approved transcription, speech-synthesis, or Decisions endpoints ||
https://api.ppq.ai/* | Fetch public PayPerQ chat/decision/audio/voice catalogs and send approved chat/images/tools/search, separately approved typed decisions, and separately approved transcription/synthesis to PayPerQ ||
https://ollama.com/* | Discover Ollama Cloud models and metadata, send approved direct cloud inference and separately approved decisions/speech when supported, and run approved hosted web search/fetch with an Ollama account API key || Chrome:
http://localhost:11434/*; Firefox: portless http://localhost/* | Call built-in Ollama on port 11434. Firefox match patterns cannot include a port; request URLs still use only port 11434. Custom loopback endpoints, including 127.0.0.1, use optional access on save. || Optional hosts | When the user adds an OpenAI-compatible server, the browser prompts for that server host. Chrome declares
http://*/* and https://*/*; Firefox declares only loopback HTTP hosts and https://*/*. Firefox permissions are host-scoped across ports; requests still use only the saved URL and port. |Content scripts inject
window.inference into top-level HTTP(S) pages so web apps can request inference. Injection is limited to secure contexts (https: or loopback http:).- We do not sell personal data.
- We do not use inference content for advertising.
- We do not require an Inference Bridge account.
- We do not collect analytics in the current release.
- We do not persist recordings, transcripts, or generated audio.
- We do not capture the microphone or tab audio, autoplay generated speech, or upload speech media without operation-specific approval.
Material changes to this policy will be reflected in this file and in GitHub Releases.
Open an issue on github.com/SamSamskies/inference-bridge.