installing an offline coding assistant.


installing olamma

https://dev.to/anita_ihuman/best-offline-ai-coding-assistant-how-to-run-llms-locally-without-internet-2bah

curl -fsSL https://ollama.com/install.sh | sh

installing open code

docker run -it --rm ghcr.io/anomalyco/opencode

Pull the model

ollama pull dolphin3:latest

run a model in opencode

ollama launch opencode --model deepseek-r1:latest

Configure for offline only

https://docs.ollama.com/faq#how-do-i-disable-ollama-cloud:~:text=in-,local

Control the system control service for ollama

systemctl start ollama.service 

launch

ollama launch opencode

Models

ollama pull gemma4:12b
ollama pull llama3.1:8b
ollama pull qwen2.5-coder:14b
ollama pull granite4.1:8b
ollama pull qwen3.5:9b

Hermes

change ollama context size to 64

hermes auth add openai-codex hermes auth add openai-codex --browser hermes config set terminal.backend docker hermes config set terminal.docker_volumes '["/home/danaukes/repos/django/django_sinkside/flow:/workspace/django_sinkside_flow"]'

enable gdrive:

hermes setup # config for local

hermes then run python ${HERMES_HOME:-$HOME/.hermes}/skills/productivity/google-workspace/scripts/setup.py --client-secret ~/Downloads/client_secret_617158765371-k25oums4ogrf69bkoo8n034ch6l0u61i.apps.googleusercontent.com.json

python ${HERMES_HOME:-$HOME/.hermes}/skills/productivity/google-workspace/scripts/setup.py --auth-url

folow directions

reconfigure for sandbox

hermes config set terminal.backend docker

hermes config set terminal.docker_volumes '[ "/home/danaukes/repos/django/django_sinkside_flow:/project/django_sinkside_flow", "/home/danaukes/.hermes/google_token.json:/root/.hermes/google_token.json:rw", "/home/danaukes/.hermes/skills/productivity/google-workspace:/root/.hermes/skills/productivity/google-workspace:ro" ]'

then run hermes again and check:

hermes chat -q 'Run: test -r /root/.hermes/google_token.json && python -c "import json; print(json.load(open(\"/root/.hermes/google_token.json\"))[\"scopes\"])"'

https://docs.ollama.com/context-length

external resources