Knowledge Base Sections ▾
Navigation
▸ Start here By rolesCategories
- OpenCode: free models, providers and API key
- Cursor + Gonka AI - cheap LLM for coding
- Claude Code + Gonka AI - LLM for the terminal
- DeepSeek Harness: Your Own Provider via JoinGonka Gateway
- Codex CLI: your own key instead of a subscription
- Pi + JoinGonka Gateway — terminal agent on cheap inference
- omp (Oh My Pi) + JoinGonka Gateway: an agent with model roles
- Zoo Code + JoinGonka Gateway: Migrating from Roo Code to Gonka models
- Kilo Code + Gonka AI — AI-Agent in VS Code
- ZCode: GLM Coding Plan tiers, prices and limits
- Hermes Agent + DeepSeek on the Gonka network — an autonomous agent for pennies
- OpenClaw + Gonka AI - affordable AI agents
- Continue.dev + Gonka AI - AI for VS Code/JetBrains
- Cline + Gonka AI - AI agent in VS Code
- Aider + Gonka AI - pair programming with AI
- LangChain + Gonka AI - AI applications for pennies
- n8n + Gonka AI - automation with cheap AI
- Open WebUI + Gonka AI - your own ChatGPT
- LibreChat + Gonka AI — open-source ChatGPT
- Roo Code + Gonka AI — Autonomous AI Agent in VS Code
- LlamaIndex + Gonka AI — RAG applications for pennies
- PydanticAI + Gonka — typed AI agents for pennies
- Vercel AI SDK + Gonka AI — AI applications in TypeScript for pennies
- TanStack AI + Gonka — AI applications in TypeScript for pennies
- API quick start — curl, Python, TypeScript
- JoinGonka Gateway — a full overview
- Management Keys — SaaS on Gonka
- Cheapest AI API: Provider Comparison 2026
- How to buy AI tokens and an API key: 3 methods in 2026
- Free AI API: tokens on sign-up and for referrals
- Cursor Pro request limit reached — breakdown and cheaper alternative
- Cheaper Claude Code: GLM and DeepSeek instead of Claude
- Claude Code + DeepSeek V4 Flash: How to Connect It and What a Task Costs
- Cline is burning money — why the agent spends so much
- OpenClaw is expensive — why the agent burns through tokens and how to save
- OpenRouter alternative: the same models, many times cheaper
- Best AI model for coding in 2026: comparison and prices
- Cheap alternative to GitHub Copilot without limits
- A cheap Windsurf alternative without credits or limits
- The cheapest API for AI agents in 2026
- JetBrains IDE + JoinGonka Gateway — your own endpoint instead of credits
- GitHub Copilot BYOK — own models instead of quotas
- Zed + JoinGonka Gateway — cheap inference in your editor
- MiniMax Code: MiniMax agent with your own key via Gonka
- Warp + JoinGonka Gateway — terminal agent on your own endpoint
- Trae + JoinGonka Gateway — Gonka network models in AI-IDE
- Cherry Studio + JoinGonka Gateway — desktop AI client
- OpenHands + JoinGonka Gateway: agent on your own endpoint
- Qwen Code after the closure of qwen-oauth: working via JoinGonka Gateway
- Goose + JoinGonka Gateway: your own provider and key in the keyring
- Crush + JoinGonka Gateway: Charm agent on Gonka network models
- Kimi Code CLI: Moonshot AI agent on your key via Gonka
- Factory Droid + JoinGonka Gateway: BYOK on Gonka network models
- MiMo Code + JoinGonka Gateway: Xiaomi agent on Gonka network models
Tools
LibreChat + Gonka AI — open-source ChatGPT
LibreChat is an open-source ChatGPT clone that supports multiple LLM providers at once. Switch between models in a single interface: Gonka, OpenAI, Anthropic, local models. Plus: plugins, preset prompts, multi-user support, Docker deployment.
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. Connecting it takes one block in librechat.yaml.
The result: a powerful ChatGPT equivalent for your team at $0.0062/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 .envJoinGonka 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
LibreChat defines its OpenAI-compatible endpoint in the librechat.yaml file, using the endpoints.custom block. The OPENAI_REVERSE_PROXY variable from older guides is marked as deprecated in LibreChat's documentation.
1. Key — in the .env file at the root of LibreChat:
# .env
JOINGONKA_API_KEY=jg-your-key2. Provider — in librechat.yaml at the project root (create the file if it doesn't exist):
# librechat.yaml
version: 1.3.17
cache: true
endpoints:
custom:
- name: "Gonka"
apiKey: "${JOINGONKA_API_KEY}"
baseURL: "https://gate.joingonka.ai/v1"
models:
default:
- "MiniMaxAI/MiniMax-M2.7"
- "deepseek-ai/DeepSeek-V4-Flash-0731"
- "zai-org/GLM-5.3-Flash"
fetch: true
titleConvo: true
titleModel: "MiniMaxAI/MiniMax-M2.7"
modelDisplayLabel: "Gonka"The number in the version line is the config format version: take it from the example in LibreChat's documentation for your build. With fetch: true, LibreChat pulls the current model list from the gateway itself.
3. Launch. In Docker, you need to mount the file into the container: copy the example and make sure the librechat.yaml mount in it is uncommented.
cp docker-compose.override.yml.example docker-compose.override.yml
docker compose up -dOpen http://localhost:3080 — the Gonka provider will appear in the list.
Multi-model support: LibreChat lets you connect several 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.
LibreChat vs Open WebUI
Two of the best self-hosted ChatGPT interfaces — let's compare:
| Parameter | LibreChat | Open WebUI |
|---|---|---|
| Multimodality | Built-in (UI toggle) | Built-in |
| Plugins | Yes (ecosystem) | Yes (extensions) |
| RAG | Via plugins | Built-in |
| Docker | docker compose | Single container |
| Interface | Maximum ChatGPT-like | Custom style |
| Community | 30K+ GitHub stars | 40K+ GitHub stars |
| Configuration | .env + librechat.yaml | UI + 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 — 180K 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.