Native LLM Router for CodeCrab based on node-llama-cpp.
The router uses a machine-specific configuration file that is deliberately excluded from version control to protect your local paths and settings.
-
Copy the example configuration:
cp src/config/config.example.ts src/config/config.local.ts
-
Update your local paths: Open
src/config/config.local.tsand set the absolute paths to your.ggufmodel files, your default workspace, and your runtime/cache directories.export default { models: { advisor: '/absolute/path/to/qwen-advisor.gguf', backend: '/absolute/path/to/qwen-backend.gguf', frontend: '/absolute/path/to/qwen-frontend.gguf', embedding: '/absolute/path/to/embedding.gguf', }, // ... };
-
Run the server and the VS Code wrapper: From the project root, you can start both components simultaneously using the provided scripts:
Linux / macOS:
./start.sh
Windows:
start.bat
Note: The server will refuse to boot if
config.local.tsis missing, or if any of the configured models do not physically exist on your disk.
You do not need to configure every model path. If a specific model is missing from config.local.ts, the router will fall back to automatic discovery, searching for matching .gguf files in models/base/ and models/adapters/.
- Google Drive: Download Models