For the complete documentation index, see llms.txt. This page is also available as Markdown.

Ollama

Ollama is an excellent open-source tool that lets you easily run and manage various large language models (LLMs) locally. Cherry Studio now supports Ollama integration, allowing you to interact directly with locally deployed LLMs in a familiar interface, without relying on cloud services!

What is Ollama?

Ollama is a tool that simplifies the deployment and use of large language models (LLMs). It has the following features:

  • Local execution: The model runs entirely on your local computer, with no internet connection required, protecting your privacy and data security.

  • Easy to use: You can download, run, and manage various LLMs with simple command-line instructions.

  • Rich model support: Supports many popular open-source models such as Llama 2, Deepseek, Mistral, and Gemma.

  • Cross-platform: Supports macOS, Windows, and Linux.

  • Open API: Supports an OpenAI-compatible interface and can be integrated with other tools.

Why use Ollama in Cherry Studio?

  • No cloud service required: No longer limited by cloud API quotas and costs—enjoy the powerful capabilities of local LLMs.

  • Data privacy: All your conversation data stays local, so you don't have to worry about privacy leaks.

  • Available offline: You can continue interacting with the LLM even without an internet connection.

  • Customization: Choose and configure the LLM that best suits your needs.

Configure Ollama in Cherry Studio

1. Install and run Ollama

First, you need to install and run Ollama on your computer. Please follow these steps:

  • Download Ollama: Visit the official Ollama website (https://ollama.com/), and download the corresponding installer for your operating system. On Linux, you can install ollama directly with the following command:

  • Install Ollama: Follow the installer's instructions to complete the installation.

  • Download a model: Open a terminal (or command prompt) and use ollama run command to download the model you want to use. For example, to download the Llama 2 model, you can run:

    Ollama will automatically download and run the model.

  • Keep Ollama running: While you are using Cherry Studio to interact with the Ollama model, make sure Ollama stays running.

2. Add Ollama as a provider in Cherry Studio

Next, add Ollama in Cherry Studio as a custom AI provider:

  • Open Settings: In the left navigation bar of the Cherry Studio interface, click "Settings" (gear icon).

  • Go to Model Services: On the Settings page, select the "Model Services" tab.

  • Add provider: Click Ollama in the list.

3. Configure the Ollama provider

Find the newly added Ollama in the provider list and configure it in detail:

  1. Enabled status:

    • Make sure the switch on the far right of the Ollama provider is turned on, indicating it is enabled.

  2. API key:

    • Ollama by default does not require an API key. You can leave this field blank or fill in any content.

  3. API address:

    • Enter the local API address provided by Ollama. Usually, the address is:

      If you changed the port, please modify it accordingly.

  4. Keep-alive time: This option sets how long the session is kept alive, in minutes. If there is no new conversation within the set time, Cherry Studio will automatically disconnect from Ollama and free up resources.

  5. Model management:

    • Click the "+ Add" button to manually add the names of the models you have already downloaded in Ollama.

    • For example, if you have already used ollama run llama3.2 downloaded llama3.2 model, then you can enter llama3.2

    • Click the "Manage" button to edit or delete the added models.

Get started

After completing the above configuration, you can select the Ollama provider and your downloaded model in Cherry Studio's chat interface and start chatting with the local LLM!

Tips and Notes

  • First time running a model: The first time you run a model, Ollama needs to download the model files, which may take a long time. Please be patient.

  • View available models: Run ollama list command in the terminal to view the list of Ollama models you have downloaded.

  • Hardware requirements: Running large language models requires certain computing resources (CPU, memory, GPU). Please make sure your computer configuration meets the model’s requirements.

  • Ollama documentation: You can click View Ollama documentation and models link on the configuration page to quickly jump to Ollama's official documentation.


Get help and submit feedback

If you encounter any questions, bugs, or have suggestions for feature improvements during configuration or use, please refer to Feedback and Suggestions for the official channels provided.

Last updated

Was this helpful?