devika
devika copied to clipboard
[feature request] Implement Windows .bat Launcher for Devika
Feature Description I am suggesting the creation of a Windows batch file (.bat) launcher to facilitate an easier start-up process for Devika on Windows operating systems. This launcher would enable users to start Devika with just a double click, bypassing the need for command-line interactions or manual configuration.
Rationale Many users and contributors of Devika may be operating on Windows. Providing a .bat launcher could significantly simplify the initial setup and daily usage for this large user base. This addition aims to lower the technical barrier to entry, making Devika more accessible to a broader range of users and developers, especially those less familiar with command-line operations.
Proposed Solution The proposed solution involves developing a .bat file that automates the setup and launch process for Devika on Windows systems. This script should handle tasks like setting up the correct environment variables, activating any necessary virtual environments, and launching the Devika software. The objective is to streamline the user's start-up process to a single action.
Additional Context Improving user experience by simplifying the start-up process can lead to increased adoption and a more vibrant community around Devika. A .bat launcher is a standard practice in many open-source projects targeting Windows users, contributing significantly to user retention and satisfaction.
I hope this feature will be considered for future updates, and I am open to contributing to its implementation or testing.
Thank you for considering this request.
just a simple sudo code I had chatgpt make based on the installation instructions
`@echo off SETLOCAL EnableDelayedExpansion
:: Check if script is run as administrator net session >nul 2>&1 if %errorlevel% == 1 ( echo This script requires administrator privileges. echo Right-click the batch file and select 'Run as administrator'. exit /b )
:: Install uv - Python Package Manager echo Installing uv - Python Package Manager... REM Substitute the placeholder below with actual command for installing 'uv', if available. REM Example: pip install uv
:: Install bun - JavaScript Runtime echo Installing bun - JavaScript Runtime... REM Assuming bun can be installed via a direct download/install command. Replace with actual command. REM Example for installation could be a script provided by bun for Windows, not just opening a browser. powershell -Command "iwr -useb get.bun.sh | iex"
:: Install and setup Ollama echo Installing and setting up Ollama... REM Substitute the placeholder below with actual command for installing 'Ollama', if available. REM This could involve downloading a setup file or executing a specific installer script. REM Example: Install-Ollama-Command
:: Continue with the rest of your script echo Reminder: Make sure to set the API Keys in the config.toml file before proceeding. pause
echo Cloning Devika repository... git clone https://github.com/stitionai/devika.git cd devika
echo Setting up Python virtual environment and installing dependencies... uv venv call venv\Scripts\activate.bat uv pip install -r requirements.txt playwright install --with-deps
cd ui echo Installing UI dependencies... bun install echo Running UI server... start cmd /k bun run dev cd ..
echo Starting Devika server... start cmd /k python devika.py
echo Opening Devika web interface... start http://127.0.0.1:3000
echo Setup complete! ENDLOCAL `
There cannot be a simple BAT installation for Windows users because BUN (JS front end) is not compatible with Windows. Devika can only currently be run on Linux, Mac and WSL (Windows Subsystem for Linux).
I suppose it's possible that you could switch out the front end with something like Node, but that would take some effort.
if you tested and it work perfectly and you may create a PR for this.
currently, there is no plan for this so closing it.