Skip to main content

1. Get an API Key

Open the AnyFast console and sign up (or log in if you already have an account). After signing up, go to API Keys, create a new API Key, and copy it for later use.

2. Deploy MindSearch

Clone MindSearch and install dependencies (see the MindSearch README). Edit /path/to/MindSearch/mindsearch/models.py and add the AnyFast API configuration:
Start the backend:
Start the frontend (Gradio example):

3. Deploy to HuggingFace Space

You can also deploy to HuggingFace Spaces:
  • Create a new Space at huggingface.co/new-space with Gradio template and Blank configuration.
  • Go to Settings and add your AnyFast API Key as a secret.
  • Upload the MindSearch directory, requirements.txt, and an app.py file.
For a complete example, refer to the MindSearch + AnyFast HuggingFace Space.