Browser Extension
Chrome & Chromium
Load the preview extension and grant each site access before it can make requests.
- MV3 preview
- Per-origin permission
- User-selected providers
One browser API. User-selected providers. An open protocol under test.
Apps ask for AI. Users decide how it runs.
The protocol gives websites one consistent interface while the user controls the available provider and model. The preview API can still change as the implementation is tested.
Apps request AI. The protocol delivers it.
A request, end to end
One interface separates application code from inference infrastructure.
navigator.llm@webinfer/clientA page calls one browser API for text, images, audio, speech, streaming, and tools.
@webinfer/serverPermissions, provider selection, fallback, storage, and usage tracking happen here.
local, cloud, or federatedThe request reaches the best source for the task, preferences, and availability.
Streaming response: results return through the same path to the page.
@webinfer/clientA lightweight SDK that auto-connects to available AI sources. Call generateText(), generateImage(), or generateSpeech().
@webinfer/serverThe brain that handles requests. It routes to the best local or cloud provider based on task, preferences, and availability.
What it does
Where it runs
Import the client, call a function, and connect through an available extension, daemon, or configured gateway transport.
Import @webinfer/client. It routes through an available configured transport; provider availability, credentials, permissions, and billing remain explicit.
import { generateText } from '@webinfer/client'
const result = await generateText({ prompt: 'Hello!' })Want to move even faster? Try AI Blocks, pre-built React components for chat, speech, images, and more.
Users connect their AI sources. The protocol routes each request to appropriate models and providers.
Someone browsing the web on Chrome desktop
Chrome's built-in AI. Free, on-device, private.
Ollama, LM Studio, or other local runners.
OpenAI, Anthropic, Google—your own API keys.
One subscription, 200+ models.
Company-provided AI. Paid by employer.
Free credits from app developers. Rate-limited.
Self-hosted gateway. Access from anywhere.
Casual User has access to 2 inference sources. The server automatically picks the best one for each request.
The server runs wherever you need it. Same protocol, different packaging.
Chrome & Chromium
Load the preview extension and grant each site access before it can make requests.
Local Node.js runtime
Run the repository daemon locally for development and browser integration testing.
Your infrastructure
Deploy on your servers. Issue tokens, enforce quotas, monitor usage.
Connect existing providers or discover new ones. Mix local with cloud. Switch without changing code.
Bring your own API keys
Run models on your hardware
On-device when the browser API is available and enabled
Access multiple providers
Chrome's built-in Prompt API can run on-device. WebInfer can route to it when the browser exposes the API and the user has enabled it; Chrome controls model availability and runtime requirements.
Combine an extension, local daemon, and self-hosted gateways through explicit routing and fallback configuration.
Like MCP servers, a configured WebInfer server can expose a machine-readable discovery endpoint that advertises its capabilities.
/.well-known/webinfer.jsonEvery server exposes its capabilities, models, and authentication methods in a machine-readable format.
Enter URL
Paste a server URL to fetch its advertised capabilities.
Authenticate
Add your access token or API key if required.
Ready
Review the discovered models, then set provider priority.
{
"$schema": "webinfer.com/schemas/...",
"version": "1.0",
"protocol": "webinfer",
"provider": {
"id": "my-gateway",
"name": "My Gateway",
"type": "gateway"
},
"server": { "baseUrl": "..." },
"config": {
"fields": [
{ "key": "apiKey", "type": "password" }
]
},
"auth": { "methods": ["bearer"] },
"capabilities": ["chat", "image"],
"models": [{ "id": "gpt-4o" }],
"federation": { "supported": true }
}Inspired by Model Context Protocol (MCP) server discovery patterns.
A shared protocol boundary makes provider and runtime choices more portable across compatible applications.
Compatible applications can route through a provider or gateway the user has already configured.
Local execution can keep a request on-device; remote execution sends it to the selected provider or gateway.
Applications can use the extension or a user-selected endpoint without operating their own AI relay.
Switch from OpenAI to Anthropic to local models without changing code. Your choice, not the app's.
Use Chrome's built-in AI when available, or configure local runtimes such as Ollama and LM Studio.
Applications can retain the WebInfer API while provider and runtime integrations are updated.
Compare a custom provider integration with the protocol approach.
| Concern | Custom AI implementation | With the Protocol |
|---|---|---|
| API keys | Developer manages every key | Selected provider or gateway owns credentials |
| Provider choice | Provider locked by developer | User chooses their provider |
| Data path | Data flows through app servers | Local, extension, or configured gateway path |
| Cost | Developer pays or passes on the cost | Depends on the selected runtime or provider |
| Coverage | 1-2 providers, hardcoded | 25+ registered provider integrations |
| Local models | Separate implementation required | The same API works locally |
Experimental preview. The core protocol and SDK request path is implemented, but APIs, packages, provider compatibility, and extension distribution may change.
Your application uses one WebInfer API while routing through an available local, extension, or gateway provider. The registry contains 25+ provider integrations, but availability and credentials remain provider-specific.
WebInfer integrates with Chrome's Gemini Nano when available. It provides a unified API whether AI runs locally or in the cloud.
The data path depends on the selected runtime. Local execution can stay on-device; remote providers and gateways receive the request they execute. Applications should disclose and secure the path they enable.
Evaluate it as an experimental preview. Pin versions, test the exact extension/provider path you deploy, and expect breaking changes before a stable release.
Install the extension to experience the protocol, or read the docs to integrate it into your app.