
1. Obtain Myrouter Configuration Information
(1) Obtain an API Key
Register and log in to Myrouter. Enter invitation code [YGHNZ0] during registration to receive a $2 sign-up bonus.


(2) Generate and Save the API Key
Note: The key is stored encrypted on the server and cannot be viewed again after creation. Please save your key securely. If lost, you will need to delete it from the console and create a new one.
(3) Obtain the Model ID You Want to Use
Find the desired model in the Myrouter Model Hub and copy the model ID and base URL.
- Gemini-3-pro-preview
- Gemini-2.5-pro
- Claude-sonnet-4-5
- Gpt-5.1
- Gpt-4o
2. Install DeepSearcher
For detailed installation instructions, refer to: https://github.com/zilliztech/deep-searcher (1) Clone the repository3. Modify the Example Code to Connect to Myrouter Models
The example code is located atexamples/basic_example.py. You can use this example to run DeepSearcher.
(1) Configure the API Key
Set the API Key you just obtained as a local environment variable MYROUTER_API_KEY.
config = Configuration() line in the example code:
load_from_local_files is called. You can use the project-provided examples/data/WhatisMilvus.pdf file or your own files. To delete and recreate the collection each time, set force_new_collection to True.