-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclaurst.cmd
More file actions
31 lines (27 loc) · 1.07 KB
/
claurst.cmd
File metadata and controls
31 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
REM Claurst launcher — reads config from .env file or environment variables.
REM
REM Usage:
REM claurst — interactive TUI mode
REM claurst -p "your prompt" — headless mode
REM claurst --model qwen3:8b — use a different model (local Ollama)
REM
REM Config (set in .env or as environment variables):
REM NVIDIA_API_KEY — your NVIDIA NIM API key
REM CLAURST_MODEL — default model (default: mistralai/devstral-2-123b-instruct-2512)
REM
REM Load .env file if it exists (supports KEY=VALUE lines, ignores comments)
if exist "%~dp0.env" (
for /f "usebackq tokens=1,* delims==" %%A in ("%~dp0.env") do (
set "%%A=%%B"
)
)
if not defined NVIDIA_API_KEY (
echo ERROR: NVIDIA_API_KEY is not set.
echo Either create a .env file with NVIDIA_API_KEY=your-key-here
echo or run: set NVIDIA_API_KEY=nvapi-your-key-here
exit /b 1
)
set "MODEL=%CLAURST_MODEL%"
if not defined MODEL set "MODEL=mistralai/devstral-2-123b-instruct-2512"
"%~dp0src-rust\target\release\claurst.exe" --provider nvidia --model "%MODEL%" %*