-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
80 lines (73 loc) · 1.88 KB
/
Copy pathinstall.bat
File metadata and controls
80 lines (73 loc) · 1.88 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@echo off
echo ============================================
echo CodeAgent Installer
echo Offline Coding Agent powered by Local LLMs
echo ============================================
echo.
:: Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Python is not installed or not in PATH.
echo Please install Python 3.10+ from https://python.org
pause
exit /b 1
)
echo [OK] Python found
python --version
:: Check Ollama
ollama --version >nul 2>&1
if errorlevel 1 (
echo.
echo [WARNING] Ollama is not installed.
echo Please install Ollama from https://ollama.com
echo CodeAgent requires Ollama to run local LLMs.
echo.
set /p CONTINUE="Continue anyway? (y/N): "
if /i not "%CONTINUE%"=="y" exit /b 1
) else (
echo [OK] Ollama found
ollama --version
)
:: Install CodeAgent
echo.
echo Installing CodeAgent...
pip install -e . 2>nul
if errorlevel 1 (
echo [WARNING] pip install failed, trying alternative...
python -m pip install -e .
)
echo.
echo [OK] CodeAgent installed!
echo.
:: Pull the coding model
echo Checking for coding LLM model...
ollama list 2>nul | findstr /i "qwen2.5-coder" >nul 2>&1
if errorlevel 1 (
echo.
echo Downloading qwen2.5-coder:7b-instruct model...
echo This may take a few minutes depending on your connection.
echo.
ollama pull qwen2.5-coder:7b-instruct-q4_K_M
) else (
echo [OK] Coding model already available
)
echo.
echo ============================================
echo Installation Complete!
echo ============================================
echo.
echo To start CodeAgent:
echo codeagent
echo.
echo Or with a specific directory:
echo codeagent --dir C:\your\project
echo.
echo Or with a one-shot prompt:
echo codeagent "explain this codebase"
echo.
echo For fully offline mode:
echo codeagent --no-web
echo.
echo Type /help inside CodeAgent for all commands.
echo.
pause