Skip to main content
LibreChat is joining ClickHouse to power the open-source Agentic Data Stack 🎉 Learn more
LibreChat

Deepseek

Configure Deepseek as a custom endpoint in LibreChat.

Deepseek serves its chat, coder, and reasoner models through an OpenAI-compatible API that you can add to LibreChat as a custom endpoint.

Get an API key

Create a key from the Deepseek platform. Add it to your .env file:

DEEPSEEK_API_KEY=your-api-key

Configuration

Add the endpoint under endpoints.custom in your librechat.yaml:

    - name: "Deepseek"
      apiKey: "${DEEPSEEK_API_KEY}"
      baseURL: "https://api.deepseek.com/v1"
      models:
        default: ["deepseek-chat", "deepseek-coder", "deepseek-reasoner"]
        fetch: false
      titleConvo: true
      titleModel: "deepseek-chat"
      modelDisplayLabel: "Deepseek"

Notes

  • deepseek-chat and deepseek-coder work with Agents and tools.
  • deepseek-reasoner, codenamed "R1," is supported and streams its thought process, but some OpenAI API parameters may not work with it. R1 can also work with Agents when tools are not used.
  • deepseek-chat is the preferred model for title generation.
Deepseek Generation

How is this guide?