Prerequisites
- Chrome browser
- Python 3.8 or higher
- Qwen-Agent installed
- API access to DashScope or a self-hosted model service
Step 1: Deploy Local Database Service
The local database service manages your browsing history and conversation history. This service must be running on the same machine where you use Chrome.Using DashScope Model Service
If you’re using Alibaba Cloud’s DashScope:Set up API Key
Obtain your DashScope API key from DashScope Console
Start the Database Service
Run the following command:Replace
YOUR_DASHSCOPE_API_KEY with your actual API key.Using Self-Hosted Model Service
If you’re using your own model service (e.g., vLLM, Ollama):Deploy Your Model
Deploy your model using vLLM or another OpenAI-compatible service. For example, with vLLM:
Verify Service is Running
Once the service is running, you can access the Workstation interface at:- Editor mode for long-form content creation
- Chat mode for multi-document QA
Step 2: Install Browser Extension
Now install the BrowserQwen Chrome extension:Open Chrome Extensions Page
Navigate to Chrome’s extensions page:Or use the menu: More tools → Extensions
Load Extension
Click Load unpacked and select the
browser_qwen directory from your Qwen-Agent installationThe
browser_qwen directory is located in the root of the Qwen-Agent repository.Using BrowserQwen
Once both the service and extension are installed:Add Page to Reading List
On any webpage or PDF, click the Add to Qwen’s Reading List button that appears on the screen. This authorizes Qwen to analyze the page in the background.
Troubleshooting
Extension not appearing after installation
Extension not appearing after installation
- Make sure Developer mode is enabled
- Verify you selected the correct
browser_qwendirectory - Try restarting Chrome
Can't connect to database service
Can't connect to database service
- Ensure the
run_server.pyprocess is still running - Check that port 7864 is not blocked by firewall
- Verify the service is accessible at http://127.0.0.1:7864/
Extension doesn't work on current page
Extension doesn't work on current page
- Refresh the page after installing the extension
- Some pages (like chrome:// URLs) don’t allow extensions
- Check browser console for errors
Next Steps
Explore Features
Learn about all the features and capabilities of BrowserQwen