[Artificial Intelligence (AI) general discussion] jenneh:
Hello Friends,

I made a script to help install Devika, the open-source AI Software Engineer, locally on your Windows machine.

Devika has a lot of bugs and problems right now, it's still very early. Keep that in mind.

EDIT- You can use models downloaded from Ollama and use duckduckgo search now, these are free!

See this comment for adding free models in ollama

This post is not sponsored nor am I the creator of Devika, so use at your own risk.

I am mainly just making this thread because it took me 2 days to figure this out and maybe it will help someone else.

Share anything cool you make! The pong game it made me was really whack but this agent so far seems to have potential.

Spoiler content hidden.

DEPENDENCIES:

POWERSHELL:

All code shared below should be run in Powershell as Admin.

PYTHON:

Type the word 'python' in Powershell and it will automatically open the Microsoft Store to the latest version and will quickly install and set itself as path.

OLLAMA:

Download Ollama on Windows

Download Ollama on Windows

ollama.com

GIT:

Git for Windows

We bring the awesome Git VCS to Windows

gitforwindows.org

BUN (You Must Close and Reopen Powershell before running the INSTALL CODE for bun to work):

powershell -c "irm bun.sh/install.ps1|iex"

NODEJS (You Must Close and Reopen Powershell before running the INSTALL CODE for npm to work):

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); choco install nodejs -y

INSTALL CODE:

cd C:\; git clone https://github.com/stitionai/devika.git; cd C:\devika; python -m venv env; env\Scripts\activate; pip install -r requirements.txt; playwright install; python -m playwright install-deps; cd C:\devika\ui; npm install; bun install; $WScriptShell = New-Object -ComObject WScript.Shell; $Shortcut = $WScriptShell.CreateShortcut([System.IO.Path]::Combine([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory), "Backend.lnk")); $Shortcut.TargetPath = "powershell.exe"; $Shortcut.Arguments = "-NoExit -Command `"`& {cd C:\devika; env\Scripts\activate; python devika.py}`""; $Shortcut.Save(); $WScriptShell = New-Object -ComObject WScript.Shell; $Shortcut = $WScriptShell.CreateShortcut([System.IO.Path]::Combine([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory), "Frontend.lnk")); $Shortcut.TargetPath = "powershell.exe"; $Shortcut.Arguments = "-NoExit -Command `"`& {cd C:\devika; env\Scripts\activate; cd ui; bun run dev}`""; $Shortcut.Save()

ADD KEYS (this will open the config in notepad so you can add your keys and then save):

Start-Process notepad C:\devika\sample.config.toml -Verb runAs

You only need to add keys if you want to use chatgpt, claude, bing, etc. Else skip this step and use a free model downloaded from ollama and duckduckgo search.

Now run the Backend and Frontend shortcuts on your desktop then open localhost:3000 in your browser.

If the shortcuts dont work you may need to run this command in Powershell as admin then try again:

Set-ExecutionPolicy RemoteSigned

Check C:\devika\data\projects to find your files and for best results right now, specify a programming language like python

To run python projects, navigate to C:\devika\data\projects\yourprojectname:

python -m venv env
pip install -r requirements.txt
then run python yourprogramname.py

See the sources below to learn more about Devika and to see other tests performed on her!

Spoiler content hidden.

Again this is really buggy atm, if it doesn't work well or right for you, delete the folder and try running the install code again in a week or so. The devs are actively working on this project, it's just super early