Page Assist Documentation
repository·main·Indexed 27 days ago
https://github.com/n4ze3m/page-assistAn open-source browser extension that provides a sidebar and Web UI to interact with local AI models (such as Ollama) or OpenAI-compatible endpoints from any webpage. It includes support for Model Context Protocol (MCP) tools via the Page Action extension to perform browser actions like clicking, typing, and navigating. Compatible with Chrome, Firefox, Edge, and other Chromium-based browsers.
What's inside Page Assist
- Page Assist is designed for local-first privacy. It does not collect, store, or transmit user data to external servers. All operations, chat histories, and settings are stored locally within your browser. No third-party analytics or tracking services are integrated into the application.
Understand Page Share Feature Data Handling
mainWhen using the Page Share feature, data handling follows these principles:
- Data sharing only occurs when you explicitly connect to external sources.
- A self-hosting option is available for complete data control.
- Shared chats can be permanently deleted from the server at any time.
- No data is retained by the service after deletion.
Manage System Settings and Data
mainHandle core application behavior, data synchronization, and backups:
- Data Management:
Export All Data: Exports chat history, knowledge base, prompts, MCP servers, model configs, and settings to a JSON file. You can select specific sections.Import All Data: Imports data from a Page Assist export file (Open WebUI exports are also supported).System Reset: Clears all data (irreversible).
- Sync & Integration:
Enable Browser Storage Sync (Sync settings across devices): Uses browser storage to sync settings.Sync Custom Models, Prompts for Firefox Private Windows🧪: (Firefox only) Syncs settings into private windows.
- Interface & Shortcuts:
Set Default Action for Extension Icon Clicks🧪: Choose between opening the Web UI or SidePanel.Set Default action for Context Menu🧪: Choose between opening the Web UI or SidePanel.Show Web UI Button in Side Panel: Adds a button to open the Web UI from the SidePanel.
- Data Management:
Configure Page Assist keyboard shortcuts
mainThe default keyboard shortcut to open the sidebar isCtrl+Shift+Y. You can customize this shortcut by navigating to the Chrome Extension Management page and adjusting the settings for Page Assist.Authenticate MCP servers with Bearer Tokens
mainIf your MCP server requires an API key or bearer token, follow these steps:
- Go to MCP Settings.
- Click Add Custom Server.
- Select
Bearer Tokenas the auth type. - Enter your token.
- Click Save.
The token will be sent as
Authorization: Bearer <token>with every request.Implement screenshot support in page-assist-2 consumer
mainTo support screenshots, the
page-assist-2consumer must be updated to handle image content returned by MCP tools. Instead of collapsing image blocks into text strings, the consumer should:- Detect image content in the tool result.
- Convert the image block into a
HumanMessagecontaining animage_urlpart (matching the shape used byhumanMessageFormatter). - Push this message into the
lcConversationto allow vision models to process the pixels. - Ensure a capability gate is in place so screenshots are only processed if the selected model is vision-capable.
Change keyboard shortcuts in Firefox or Firefox-based browsers
mainTo customize Page Assist shortcuts in Firefox, Zen, Librewolf, or other Firefox-based browsers:
- Navigate to
about:addons. - Click on the Settings icon.
- Click the Manage Extension Shortcuts button.
- Locate the Page Assist extension.
- Update the shortcut keys for your preferred actions.
- Navigate to
Use the Sidebar and Web UI
mainPage Assist provides two primary ways to interact with your local AI model:
- Sidebar: Opens on any webpage to allow interaction with your model and view results. Access it via the context menu or the default keyboard shortcut
Ctrl+Shift+Y. - Web UI: A full-page interface similar to ChatGPT. Access it by clicking the extension icon or using the default keyboard shortcut
Ctrl+Shift+L.
- Sidebar: Opens on any webpage to allow interaction with your model and view results. Access it via the context menu or the default keyboard shortcut
Fix Ollama 403 Errors by setting OLLAMA_ORIGIN
mainIf you disable the automatic CORS fix in Page Assist, Ollama may return403errors. To resolve this, you must configure Ollama to allow connections from any origin by setting theOLLAMA_ORIGINenvironment variable to*.Resume the last chat in the Web UI
mainTo continue a conversation exactly where you left off, enable the option to automatically resume the last active chat whenever you open the Web UI.
1. Go to settings 2. Under the `General Settings` section 3. Enable `Resume the last chat when opening the Web UI` optionChat with the current website using the Sidebar
mainYou can interact with your AI model about the content of your current webpage using the Page Assist Sidebar.
- Open the Sidebar.
- Enable the
Chat with Websiteoption. - Start chatting with the current website.
Configure embedding models for Knowledge Base
mainTo use the Knowledge Base feature, you must configure an embedding model in the RAG Settings.
Requirements:
- Use an embedding model that supports text (e.g.,
nomic-embed-text). - Do not use a text-to-text model for this purpose.
Warning: Data is processed and embeddings are stored in browser storage because there is no server-side storage. This may lead to performance issues depending on the volume of data.
- Use an embedding model that supports text (e.g.,