Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ All notable changes to this project are documented here. The format is based on
concurrently (bounded); permission prompts stay serialized.
- **LLM retry/backoff** — 429/5xx and connection drops with exponential backoff
and `Retry-After` support (OpenAI-compatible clients).
- **Runcrate backend** — `--backend runcrate` (OpenAI-compatible, `RUNCRATE_API_KEY`,
default base URL `https://api.runcrate.ai/v1`) with a curated list of open-weight models.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ API keys (hosted backends) — set via flag, /provider in the TUI, or env var:

Backends: ollama · lmstudio · openai · openai-compat · kimi · groq ·
openrouter · deepseek · gemini · anthropic · naraya · dahl
+ OpenCode presets: xai · mistral · cerebras · togetherai · deepinfra ·
+ OpenCode presets: xai · mistral · cerebras · togetherai · runcrate · deepinfra ·
fireworks · baseten · nvidia · perplexity · cohere · alibaba · venice ·
zenmux · kilo · llmgateway · opencode
Custom gateways: /provider → "Custom OpenAI scheme" or "Custom Anthropic scheme"
Expand Down
2 changes: 2 additions & 0 deletions src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const Backend = z.enum([
'mistral',
'cerebras',
'togetherai',
'runcrate',
'deepinfra',
'fireworks',
'baseten',
Expand Down Expand Up @@ -74,6 +75,7 @@ export const BACKENDS: readonly Exclude<Backend, ''>[] = [
'mistral',
'cerebras',
'togetherai',
'runcrate',
'deepinfra',
'fireworks',
'baseten',
Expand Down
1 change: 1 addition & 0 deletions src/llm/modelWarnings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function modelReliabilityWarning(backend: Backend, model: string): string
'mistral',
'cerebras',
'togetherai',
'runcrate',
'deepinfra',
'fireworks',
'baseten',
Expand Down
10 changes: 10 additions & 0 deletions src/llm/providerRegistry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,14 @@ describe('providerRegistry (OpenCode-aligned)', () => {
expect(ids.has(need), `missing ${need}`).toBe(true);
}
});

it('registers Runcrate with its OpenAI-compatible endpoint and key', () => {
const runcrate = getOpenAISchemeProvider('runcrate');
expect(runcrate).toBeDefined();
expect(runcrate?.scheme).toBe('openai');
expect(runcrate?.baseURL).toBe('https://api.runcrate.ai/v1');
expect(runcrate?.envKeys).toEqual(['RUNCRATE_API_KEY']);
expect(runcrate?.models).toContain(runcrate?.defaultModel);
expect(BACKENDS).toContain('runcrate');
});
});
18 changes: 18 additions & 0 deletions src/llm/providerRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,24 @@ export const OPENAI_SCHEME_PROVIDERS: readonly ProviderDef[] = [
],
description: 'remote — api.together.xyz',
},
{
id: 'runcrate',
name: 'Runcrate',
scheme: 'openai',
baseURL: 'https://api.runcrate.ai/v1',
envKeys: ['RUNCRATE_API_KEY'],
defaultModel: 'deepseek-ai/DeepSeek-V3.2',
models: [
'deepseek-ai/DeepSeek-V3.2',
'deepseek-ai/DeepSeek-R1-0528',
'Qwen/Qwen3-235B-A22B-Instruct-2507',
'moonshotai/Kimi-K2.6',
'zai-org/GLM-5.2',
'openai/gpt-oss-120b',
'meta-llama/Llama-3.3-70B-Instruct-Turbo',
],
description: 'remote — api.runcrate.ai',
},
{
id: 'deepinfra',
name: 'DeepInfra',
Expand Down