From a9856e7e9ca1bccf779046829f04f95a657f341b Mon Sep 17 00:00:00 2001 From: crowwdev <136088144+crowwdev@users.noreply.github.com> Date: Sun, 22 Nov 2026 00:33:01 +0300 Subject: [PATCH] feat: add CrowLLM provider --- core/llm/autodetect.ts | 2 + core/llm/llms/CrowLLM.ts | 26 +++++++ core/llm/llms/CrowLLM.vitest.ts | 23 +++++++ core/llm/llms/index.ts | 2 + .../model-providers/more/crowllm.mdx | 69 +++++++++++++++++++ docs/docs.json | 1 + gui/public/logos/crowllm.svg | 7 ++ .../pages/AddNewModel/configs/providers.ts | 41 +++++++++++ 8 files changed, 171 insertions(+) create mode 100644 core/llm/llms/CrowLLM.ts create mode 100644 core/llm/llms/CrowLLM.vitest.ts create mode 100644 docs/customize/model-providers/more/crowllm.mdx create mode 100644 gui/public/logos/crowllm.svg diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index c8511554b8b..a12d7aec844 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -65,6 +65,7 @@ const PROVIDER_HANDLES_TEMPLATING: string[] = [ "relace", "openrouter", "clawrouter", + "crowllm", "deepseek", "xAI", "minimax", @@ -123,6 +124,7 @@ const PROVIDER_SUPPORTS_IMAGES: string[] = [ "sagemaker", "openrouter", "clawrouter", + "crowllm", "venice", "sambanova", "vertexai", diff --git a/core/llm/llms/CrowLLM.ts b/core/llm/llms/CrowLLM.ts new file mode 100644 index 00000000000..125daf6a6cb --- /dev/null +++ b/core/llm/llms/CrowLLM.ts @@ -0,0 +1,26 @@ +import { LLMOptions } from "../../index.js"; + +import OpenAI from "./OpenAI.js"; + +/** + * CrowLLM LLM Provider + * + * OpenAI-compatible gateway: one endpoint and one key for every model, + * with a zero-rated `:free` shelf next to the paid ids. + * + * @see https://crowllm.com/docs + */ +class CrowLLM extends OpenAI { + static providerName = "crowllm"; + + // The gateway relays reasoning models, so reasoning fields stay on the wire + protected supportsReasoningField = true; + + static defaultOptions: Partial = { + apiBase: "https://crowllm.com/v1/", + model: "deepseek-v4-flash", + useLegacyCompletionsEndpoint: false, + }; +} + +export default CrowLLM; diff --git a/core/llm/llms/CrowLLM.vitest.ts b/core/llm/llms/CrowLLM.vitest.ts new file mode 100644 index 00000000000..e4162b23e21 --- /dev/null +++ b/core/llm/llms/CrowLLM.vitest.ts @@ -0,0 +1,23 @@ +import { describe, expect, it } from "vitest"; + +import CrowLLM from "./CrowLLM"; + +describe("CrowLLM", () => { + it("should have correct provider name", () => { + expect(CrowLLM.providerName).toBe("crowllm"); + }); + + it("should have correct default options", () => { + expect(CrowLLM.defaultOptions.apiBase).toBe("https://crowllm.com/v1/"); + expect(CrowLLM.defaultOptions.model).toBe("deepseek-v4-flash"); + expect(CrowLLM.defaultOptions.useLegacyCompletionsEndpoint).toBe(false); + }); + + it("should keep reasoning fields on the wire", () => { + const crowllm = new CrowLLM({ + model: "glm-5.3", + }); + + expect(crowllm["supportsReasoningField"]).toBe(true); + }); +}); diff --git a/core/llm/llms/index.ts b/core/llm/llms/index.ts index 4978f0617f2..bb6e0c2e69a 100644 --- a/core/llm/llms/index.ts +++ b/core/llm/llms/index.ts @@ -18,6 +18,7 @@ import Cerebras from "./Cerebras"; import Cloudflare from "./Cloudflare"; import Cohere from "./Cohere"; import CometAPI from "./CometAPI"; +import CrowLLM from "./CrowLLM"; import DeepInfra from "./DeepInfra"; import Deepseek from "./Deepseek"; import Docker from "./Docker"; @@ -74,6 +75,7 @@ export const LLMClasses = [ Anthropic, Cohere, CometAPI, + CrowLLM, FunctionNetwork, Gemini, Llamafile, diff --git a/docs/customize/model-providers/more/crowllm.mdx b/docs/customize/model-providers/more/crowllm.mdx new file mode 100644 index 00000000000..d15e4c135c5 --- /dev/null +++ b/docs/customize/model-providers/more/crowllm.mdx @@ -0,0 +1,69 @@ +--- +title: "How to Configure CrowLLM with Continue" +sidebarTitle: "CrowLLM" +--- + + + CrowLLM is an OpenAI-compatible gateway: one endpoint and one key for every model, with a zero-rated `:free` shelf next to the paid ids. + + + + Create an API key at [crowllm.com](https://crowllm.com) and browse the served catalog at [crowllm.com/docs](https://crowllm.com/docs). + + +## Configuration + + + + ```yaml title="config.yaml" + name: My Config + version: 0.0.1 + schema: v1 + + models: + - name: CrowLLM DeepSeek V4 Flash + provider: crowllm + model: deepseek-v4-flash + apiKey: ${{ secrets.CROWLLM_API_KEY }} + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "CrowLLM DeepSeek V4 Flash", + "provider": "crowllm", + "model": "deepseek-v4-flash", + "apiKey": "" + } + ] + } + ``` + + + +The `provider: crowllm` defaults to `https://crowllm.com/v1/`; set `apiBase` only when you route through a different host. + +## Available Models + +Any id served by the gateway works; pass it as `model`. A few commonly used ids: + +| Model | Id | Notes | +|-------|-----|-------| +| DeepSeek V4 Flash | `deepseek-v4-flash` | Default, fast and cheap | +| GLM 5.3 | `glm-5.3` | Reasoning effort via `reasoning_effort` | +| Kimi K3 | `kimi-k3` | Long-context coding | +| GPT 5.6 Sol | `gpt-5.6-sol` | Frontier general model | +| Claude Opus 4.7 | `claude-opus-4-7` | Frontier reasoning | +| Qwen 3.8 27B (free) | `qwen-3.8-27b:free` | Zero-rated shelf | + +Query the full list with: + +```bash +curl https://crowllm.com/v1/models +``` + +## Free Models + +Ids ending in `:free` bill at zero and need no credit. They are rate-limited, so use them for exploration rather than long agent loops. diff --git a/docs/docs.json b/docs/docs.json index b7a1d83f13a..0d24bbfcc86 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -107,6 +107,7 @@ "pages": [ "customize/model-providers/more/asksage", "customize/model-providers/more/clawrouter", + "customize/model-providers/more/crowllm", "customize/model-providers/more/deepseek", "customize/model-providers/more/deepinfra", "customize/model-providers/more/groq", diff --git a/gui/public/logos/crowllm.svg b/gui/public/logos/crowllm.svg new file mode 100644 index 00000000000..925ebbd8ac8 --- /dev/null +++ b/gui/public/logos/crowllm.svg @@ -0,0 +1,7 @@ + + CrowLLM + + + + + diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index 9e2aba08c5c..b240210d218 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -1314,6 +1314,47 @@ To get started, [register](https://dataplatform.cloud.ibm.com/registration/stepo ], apiKeyUrl: "https://api.router.tetrate.ai/", }, + crowllm: { + title: "CrowLLM", + provider: "crowllm", + refPage: "crowllm", + description: + "OpenAI-compatible gateway with one key for every model and a zero-rated free shelf", + longDescription: `[CrowLLM](https://crowllm.com) is an OpenAI-compatible gateway: one endpoint (\`https://crowllm.com/v1\`) and one key for every model, with a \`:free\` shelf next to the paid ids. + +To get started: +1. Create an API key at [crowllm.com](https://crowllm.com) +2. Paste it below +3. Pick a model id, or use autodetect to list what the gateway serves + +Ids ending in \`:free\` bill at zero and need no credit.`, + icon: "crowllm.svg", + tags: [ModelProviderTags.RequiresApiKey], + packages: [ + { + ...models.AUTODETECT, + params: { + ...models.AUTODETECT.params, + title: "CrowLLM", + }, + }, + ], + collectInputFor: [ + { + inputType: "text", + key: "apiKey", + label: "API Key", + placeholder: "Enter your CrowLLM API key", + required: true, + }, + { + ...apiBaseInput, + defaultValue: "https://crowllm.com/v1/", + }, + ...completionParamsInputsConfigs, + ], + apiKeyUrl: "https://crowllm.com", + }, clawrouter: { title: "ClawRouter", provider: "clawrouter",