installing an offline coding assistant.
installing olamma
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
- https://github.com/NousResearch/hermes-agent
- https://hermes-agent.nousresearch.com/docs/getting-started/quickstart
- https://hermes-ai.net/docs/installation/
- https://docs.ollama.com/context-length
- https://portal.nousresearch.com/
- https://hermes-agent.nousresearch.com/docs/guides/local-ollama-setup
- https://localaimaster.com/blog/best-ollama-models-tool-calling
external resources
- https://dev.to/anita_ihuman/best-offline-ai-coding-assistant-how-to-run-llms-locally-without-internet-2bah
- https://github.com/anomalyco/opencode
- https://github.com/Chetic/opencode-offline
- https://opencode.ai/docs
- https://medium.com/@hannsflip/from-zero-to-local-ai-running-opencode-with-ollama-on-your-machine-8a12cc4f551e
- https://collabnix.com/ollama-the-complete-guide-to-running-large-language-models-locally-in-2025/
- https://markaicode.com/ollama-offline-installation-guide/