如何在 Cherry Studio 使用联网模式
This document was translated from Chinese by AI and has not yet been reviewed.
In the Cherry Studio question window, click the [Little Globe] icon to enable web search.
Mode 1: The model provider's large model has a built-in web search function
In this case, after enabling web search, you can use the service directly. It's very simple.
You can quickly determine if a model supports web search by checking for a small globe icon next to the model's name at the top of the chat interface.
On the model management page, this method also allows you to quickly distinguish which models support web search and which do not.
Cherry Studio currently supports the following model providers with web search capabilities:
Google Gemini
OpenRouter (all models support web search)
Tencent Hunyuan
Zhipu AI
Alibaba Cloud Bailian, etc.
Special Note:
There is a special case where a model can access the web even without the small globe icon, as explained in the tutorial below.
Mode 2: The model does not have a built-in web search function; use the Tavily service to enable it
When we use a large model without a built-in web search function (no small globe icon next to its name), but we need it to retrieve real-time information for processing, we need to use the Tavily web search service.
When using the Tavily service for the first time, a pop-up will prompt you to configure some settings. Please follow the instructions—it's very simple!
After clicking to get the API key, you will be automatically redirected to the official Tavily website's login/registration page. After registering and logging in, create an API key, then copy the key and paste it into Cherry Studio.
If you don't know how to register, refer to the Tavily web search login and registration tutorial in the same directory as this document.
Tavily registration reference document:
Tavily Login and Registration TutorialThe interface below indicates that the registration was successful.
Let's try again to see the effect. The result shows that the web search is now working correctly, and the number of search results is our default setting: 5.
Note: Tavily has a monthly free usage limit. You will need to pay if you exceed it~~
PS: If you find any errors, please feel free to contact us.
This document was translated from Chinese by AI and has not yet been reviewed.
Cherry Studio supports configuring the blacklist manually or by adding subscription sources. For configuration rules, please refer to ublacklist.
You can add rules for search results or click the toolbar icon to block specified websites. Rules can be specified using either: match patterns (example: *://*.example.com/*
) or regular expressions (example: /example\.(net|org)/
).
You can also subscribe to public rule sets. This website lists some subscriptions: https://iorate.github.io/ublacklist/subscriptions
Here are some recommended subscription source links:
https://raw.githubusercontent.com/laylavish/uBlockOrigin-HUGE-AI-Blocklist/main/list_uBlacklist.txt
AI-generated
如何注册tavily?
This document was translated from Chinese by AI and has not yet been reviewed.
Visit the official website mentioned above, or go to Cherry Studio -> Settings -> Web Search and click "Get API Key". This will redirect you to the Tavily login/registration page.
If this is your first time, you need to Sign up for an account before you can Log in. Note that the page defaults to the login page.
Click to sign up for an account to enter the following interface. Enter your commonly used email address, or use your Google/GitHub account. Then, enter your password in the next step. This is a standard procedure.
🚨🚨🚨[Crucial Step] After successful registration, there will be a dynamic verification code step. You need to scan a QR code to generate a one-time code to continue.
It's very simple. You have two options at this point.
Download an authenticator app, like Microsoft Authenticator. [Slightly more complicated]
Use the WeChat Mini Program: 腾讯身份验证器. [Simple, anyone can do it, recommended]
Open the WeChat Mini Program and search for: 腾讯身份验证器
After completing the steps above, you will see the interface below, which means your registration was successful. Copy the key to Cherry Studio, and you can start using it happily.
This document was translated from Chinese by AI and has not yet been reviewed.
CherryStudio supports web searches through SearXNG. SearXNG is an open-source project that can be deployed locally or on a server, so its configuration is slightly different from other methods that require an API provider.
SearXNG Project Link: SearXNG
Open-source and free, no API required
Relatively high privacy
Highly customizable
Since SearXNG does not require a complex environment setup, you can deploy it without using docker compose. Simply providing an available port is sufficient. Therefore, the quickest method is to directly pull the image and deploy it using Docker.
1. Download, install, and configure docker
After installation, select a path to store images:
2. Search for and pull the SearXNG image
Enter searxng in the search bar:
Pull the image:
3. Run the image
After the pull is successful, go to the images page:
Select the pulled image and click Run:
Open the settings to configure:
Using port 8085
as an example:
After it starts successfully, click the link to open the SearXNG frontend interface:
This page indicates a successful deployment:
Given that installing Docker on Windows can be quite troublesome, users can deploy SearXNG on a server, which also allows sharing it with others. Unfortunately, SearXNG itself does not currently support authentication, meaning others could scan for and abuse your deployed instance through technical means.
To address this, Cherry Studio now supports configuring HTTP Basic Authentication (RFC7617). If you plan to expose your self-deployed SearXNG to the public internet, you must configure HTTP Basic Authentication using a reverse proxy software like Nginx. The following is a brief tutorial that requires basic Linux system administration knowledge.
Similarly, we will still use Docker for deployment. Assuming you have already installed the latest version of Docker CE on your server following the official tutorial, here is a one-stop command for a fresh installation on a Debian system:
If you need to change the local listening port or reuse an existing local nginx, you can edit the docker-compose.yaml
file. Refer to the following example:
Run docker compose up -d
to start. Run docker compose logs -f searxng
to view the logs.
If you are using a server control panel like Baota Panel or 1Panel, please refer to their documentation to add a website and configure the nginx reverse proxy. Then, find where to modify the nginx configuration file and make changes based on the example below:
Assuming the Nginx configuration file is saved in /etc/nginx/conf.d
, we will save the password file in the same directory.
Execute the command (replace example_name
and example_password
with the username and password you intend to set):
Restart Nginx (reloading the configuration also works).
Now, try opening the webpage. You should be prompted to enter a username and password. Enter the credentials you set earlier to see if you can successfully access the SearXNG search page, thereby checking if the configuration is correct.
After successfully deploying SearXNG locally or on a server, the next step is to configure it in CherryStudio.
Go to the Web Search settings page and select Searxng:
If you enter the link for the local deployment directly and validation fails, don't worry:
This is because a direct deployment does not have the json return type configured by default, so data cannot be retrieved. You need to modify the configuration file.
Go back to Docker, and in the Files tab, find the tagged folder within the image:
After expanding it, scroll down further, and you will find another tagged folder:
Expand it again and find the settings.yml configuration file:
Click to open the file editor:
Find line 78. You will see that the only type is html
Add the json type, save, and restart the image
Return to Cherry Studio to validate again. Validation successful:
The address can be either local: http://localhost:<port_number>
or the Docker address: http://host.docker.internal:<port_number>
If you followed the previous example to deploy on a server and correctly configured the reverse proxy, the json return type will already be enabled. After entering the address and validating, since HTTP Basic Authentication has been configured for the reverse proxy, the validation should now return a 401 error code:
Configure HTTP Basic Authentication in the client, entering the username and password you just set:
Validate, and it should succeed.
At this point, SearXNG has default web search capabilities. If you need to customize the search engines, you need to configure it yourself.
Note that the preferences here do not affect the configuration when called by the large model.
To configure the search engines that the large model will use, you need to set them in the configuration file:
Language configuration reference:
If the content is too long and inconvenient to edit directly, you can copy it to a local IDE, modify it, and then paste it back into the configuration file.
Add json to the return formats in the configuration file:
Cherry Studio defaults to selecting engines whose categories include both "web" and "general" for searching. By default, engines like Google are selected, which fails in mainland China due to access restrictions. Adding the following configuration to force searxng to use the Baidu engine can solve the problem:
The limiter setting in searxng is blocking API access. Please try setting it to false in the settings: