Skip to main content

Local AI model + OpenCode

You can set up capable AI on your own PC. This requires an Nvidia GPU with at least 8GB (ideally 16GB) VRAM and sufficient RAM.

If you are are a member of HKI use our LLM gateway that provides access to more powerful models (information requires login).

Install and start local AI

We provide two models:

Model Requirements
Qwen 3.5 9b <=8GB VRAM, ~8GB RAM
Qwen 3.6 35b a3b >12GB VRAM, ~25GB RAM

Linux

This will build llama-cpp on your system. Additional build tools may be required, including nvidia-cuda-toolkit.

Paste the following command into the terminal:

Small model:

curl -fsSL https://asb-git.hki-jena.de/RGerst/asb-opencode-installers/-/raw/main/local_llm/run-qwen35-9b-linux.sh -o run-qwen35-9b-linux.sh
bash run-qwen35-9b-linux.sh

Large model:

curl -fsSL https://asb-git.hki-jena.de/RGerst/asb-opencode-installers/-/raw/main/local_llm/run-qwen36-35b-a3b-linux.sh -o run-qwen36-35b-a3b-linux.sh
bash run-qwen36-35b-a3b-linux.sh

Windows

Small model:

irm https://asb-git.hki-jena.de/RGerst/asb-opencode-installers/-/raw/main/local_llm/run-qwen35-9b-windows.ps1 -OutFile run-qwen35-9b-windows.ps1
powershell -ExecutionPolicy Bypass -File .\run-qwen35-9b-windows.ps1

Large model:

irm https://asb-git.hki-jena.de/RGerst/asb-opencode-installers/-/raw/main/local_llm/run-qwen36-35b-a3b-windows.ps1 -OutFile run-qwen36-35b-a3b-windows.ps1
powershell -ExecutionPolicy Bypass -File .\run-qwen36-35b-a3b-windows.ps1

OpenCode setup

Our OpenCode setup scripts directly bind against the local LLM. On launching OpenCode you'll be able to directly start coding with the model if it's running.

Web search (daedra), Library documentation (context7), and cross-session memory (deja-vu) are automatically installed.

If you used the HKI-specific OpenCode setup scripts: newer versions provide local model access.

Linux

curl -fsSL https://asb-git.hki-jena.de/RGerst/asb-opencode-installers/-/raw/main/local/install-update-opencode-local-linux.sh | bash

Windows

irm https://asb-git.hki-jena.de/RGerst/asb-opencode-installers/-/raw/main/local/install-update-opencode-local-windows.ps1 | iex