Skip to content

feat(llm): add Runcrate backend preset - #21

Open
heydryft wants to merge 1 commit into
PentesterFlow:mainfrom
heydryft:feat/runcrate-backend
Open

heydryft wants to merge 1 commit into
PentesterFlow:mainfrom
heydryft:feat/runcrate-backend

Conversation

@heydryft

@heydryft heydryft commented Nov 8, 2026

Copy link
Copy Markdown

Thanks for building PentesterFlow, the provider registry made this a small, clean addition.

Summary

Adds runcrate as an OpenAI-scheme backend preset. Runcrate is an AI cloud with an OpenAI-compatible API at https://api.runcrate.ai/v1, so it reuses the existing OpenAIClient path with a fixed base URL and the RUNCRATE_API_KEY env var, the same as the other presets. /provider lists it, --backend runcrate selects it, and nothing changes for anyone who does not use it.

Changes

  • src/llm/providerRegistry.ts: runcrate preset (base URL, env key, default model deepseek-ai/DeepSeek-V3.2, and a short list of open-weight chat models that exist on GET /v1/models).
  • src/config/config.ts: runcrate added to the Backend enum and to BACKENDS.
  • src/llm/modelWarnings.ts: included in the hosted open-weight list, like the other presets.
  • src/cli/index.ts: backend list in --help. CHANGELOG.md: entry under Unreleased.
  • src/llm/providerRegistry.test.ts: a test that checks the preset's scheme, base URL, env key, default model and that it is a valid config backend.

How I tested

With Bun, after bun install:

  • bun run typecheck: clean.
  • bunx biome check src/llm src/config src/cli/index.ts: no fixes needed.
  • bunx vitest run src/llm/providerRegistry.test.ts: 4 passed.
  • bunx vitest run (full suite): 86 files, 915 tests passed.

I did not run a session against a live Runcrate key; the model ids were checked against GET https://api.runcrate.ai/v1/models. I did not run test:opentui or build.

Disclosure: I work on Runcrate.

This PR was prepared with AI assistance (omp with Claude): the code, test, changelog entry and this description were written with it, and the commands above were run as part of preparing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant