AI assistant in your browser sidebar β powered by OpenClaw Gateway
Chat with your AI assistant while browsing any webpage. The sidebar automatically captures page context, selected text, and images β making your AI truly context-aware.
| Feature | Description |
|---|---|
| π¬ Sidebar Chat | Chat with AI without leaving your current page |
| π Context-Aware | Automatically captures current page URL, title, and content |
| βοΈ Text Selection | Select text on any page β AI sees what you selected |
| π Page Content | Extracts page body text for AI reference |
| πΌοΈ Image Support | Paste or drag-and-drop images into chat |
| β‘ Streaming | Real-time streaming output with smooth typing effect |
| π Markdown | Full Markdown rendering with code highlighting, tables, lists |
| π SPA Support | Auto-updates context when navigating single-page apps |
git clone https://github.com/r266-tech/openclaw-sidebar.git
cd openclaw-sidebar
npm install
npm run build| Browser | Steps |
|---|---|
| Edge | edge://extensions/ β Enable Developer mode β Load unpacked β Select dist/ |
| Chrome | chrome://extensions/ β Enable Developer mode β Load unpacked β Select dist/ |
Note: Manifest V3 extension, compatible with Chromium-based browsers.
Right-click the extension icon β Options, then configure:
| Setting | Example |
|---|---|
| Gateway URL | http://127.0.0.1:18789 |
| Gateway Token | Your OpenClaw gateway token |
# Method 1: Read config directly
cat ~/.openclaw/openclaw.json | grep -A2 '"auth"'
# Method 2: Use OpenClaw CLI
openclaw config get gateway.auth.tokenEnable AI image recognition with a one-time setup:
./native-host/install-file-bridge.shImages are saved to ~/clawd/screenshots/sidebar/. To uninstall:
launchctl unload ~/Library/LaunchAgents/com.openclaw.file-bridge.plist- Click the extension icon or press
Cmd+Shift+B(Mac) /Ctrl+Shift+B(Windows) - Type your message in the sidebar
- Pro tip: Select text on the page before sending β AI will see your selection as context
# Development mode with hot reload
npm run dev
# Production build
npm run build- UI: Preact + TypeScript
- Styling: Tailwind CSS
- Build: Vite + @crxjs/vite-plugin
- Markdown: marked
src/
βββ background/ # Service worker (extension lifecycle)
βββ content/ # Content script (page interaction)
βββ sidebar/ # Main sidebar UI (Preact components)
βββ options/ # Extension options page
βββ styles/ # Tailwind CSS configuration
Contributions are welcome! See CONTRIBUTING.md for guidelines.
MIT Β© 2026 r266-tech
Built with π for the OpenClaw ecosystem