Private AI that runs in your browser
Coign is a client-side SDK that embeds a page-aware AI agent into any website. It runs entirely on-device via WebGPU — no cloud calls, no data leaks, no subscription required.
Try Coign right now
Ask the agent anything about this page — or any question at all. The model downloads once and then runs entirely on your device.
<!-- Two lines to add Coign to any page -->
<script>
window.Coign = window.Coign || function() {
(window.Coign.q = window.Coign.q || []).push(arguments);
};
Coign('init', { preset: 'coign-balanced' });
</script>
<script src="https://cdn.example.com/coign-sdk.iife.js"></script>
Why Coign?
Built for developers who want AI without the privacy trade-offs.
Zero-Cloud Privacy
All inference happens locally via WebGPU. Your users' conversations never leave their device. No API keys, no rate limits.
Page-Aware Agent
Coign reads the current page content, headings, and interactive elements. Ask "what's the pricing?" and it answers from the page.
Instant CDN Install
Drop in two lines of HTML. No build step, no npm install, no framework lock-in. Works on plain HTML, React, Vue, or anywhere.
Custom Tools
Register your own JavaScript tools so the agent can interact with your app — click buttons, fill forms, navigate, or call your APIs.
Themable Widget
Style the chat widget to match your brand. Configure colors, radius, and positioning through a simple theme object.
WebGPU Native
Powered by @mlc-ai/web-llm for cutting-edge in-browser LLM performance. Automatic model caching across sessions.
Ready to get started?
Explore the documentation, try the live demo, or grab the source from GitHub.