Knowledge Base Sections ▾

Navigation

▸ Start here By roles

Categories

Tools 52
Glossary 12

Tools

LibreChat + Gonka AI — open-source ChatGPT

LibreChat is an open-source ChatGPT clone with support for multiple LLM providers simultaneously. Switch between models in one interface: Gonka, OpenAI, Anthropic, local models. Plus: plugins, preset prompts, multi-user support, Docker deploy.

LibreChat supports both OpenAI-compatible APIs and the Anthropic API. JoinGonka Gateway provides both formats — /v1/chat/completions (OpenAI) and /v1/messages (Anthropic) — with a single key. Connection is one line in .env.

The result: a powerful ChatGPT alternative for the team for $0.0069/1M tokens, with support for both API formats.

Step 1: Deploy LibreChat

Docker Compose — the recommended installation method:

# Clone the repository
git clone https://github.com/danny-avila/LibreChat.git
cd LibreChat

# Copy the env file
cp .env.example .env

JoinGonka API key: sign up at gate.joingonka.ai/register, get 3M free tokens, create a jg-xxx key.

Step 2: Configure Gonka as a provider

Edit the .env file in the root of LibreChat:

# .env
OPENAI_API_KEY=jg-your-key
OPENAI_REVERSE_PROXY=https://gate.joingonka.ai/v1/chat/completions
OPENAI_MODELS=MiniMaxAI/MiniMax-M2.7

Run:

docker compose up -d

Open http://localhost:3080 — LibreChat is ready.

Multi-model support: LibreChat lets you connect multiple providers. You can keep the native OpenAI API for specific tasks, add a local model via Ollama, and use Gonka as your main low-cost provider — all in one interface.

For advanced configuration, use librechat.yaml:

# librechat.yaml
endpoints:
  custom:
    - name: "Gonka"
      apiKey: "jg-your-key"
      baseURL: "https://gate.joingonka.ai/v1"
      models:
        default:
          - "MiniMaxAI/MiniMax-M2.7"
      titleConvo: true
      titleModel: "MiniMaxAI/MiniMax-M2.7"

LibreChat vs Open WebUI

Two of the best self-hosted ChatGPT interfaces — let's compare:

ParameterLibreChatOpen WebUI
MultimodalityBuilt-in (UI toggle)Built-in
PluginsYes (ecosystem)Yes (extensions)
RAGVia pluginsBuilt-in
Dockerdocker composeSingle container
InterfaceMaximum ChatGPT-likeCustom style
Community30K+ GitHub stars40K+ GitHub stars
Configuration.env + librechat.yamlUI + env

Both work perfectly with JoinGonka Gateway. LibreChat is closer to ChatGPT in terms of UX and is better for teams with multiple providers. Open WebUI is easier to deploy (single container) and features built-in RAG. The choice is a matter of preference.

Model parameters via JoinGonka: context window — 200K tokens for MiniMax M2.7 (380K for DeepSeek V4 Flash, 390K for GLM-5.3 Flash), max response length — up to 8192 tokens (for DeepSeek V4 Flash — up to 32768). For longer responses, choose DeepSeek V4 Flash or connect additional providers in LibreChat.

LibreChat + Gonka = ChatGPT-clone with multimodality for $0.0069/1M tokens. Open-source, Docker deploy, plugins. One line in .env — and your team has its own ChatGPT.

Want to learn more?

Explore other sections or start earning GNK right now.

Get free tokens →