Logics Ollama Specialist
Quick start
- •Clarify OS, target model, and whether Ollama should run locally or on another host.
- •If installation is needed, ask for explicit permission before running install commands.
- •If the app is a frontend, prefer a same-origin proxy (
/ollama/*) to avoid CORS. - •If LAN URL causes 403, remove
Originin the proxy or setOLLAMA_ORIGINS.
Install Ollama (macOS)
- •Ask for explicit approval before running installs.
- •Use the script for safe/consistent setup:
bash
DRY_RUN=1 logics/skills/logics-ollama-specialist/scripts/ollama_install_macos.sh qwen3
If approved, run again without DRY_RUN=1.
Install and manage CodeLlama
Use any CodeLlama tag (codellama, codellama:7b, codellama:13b, codellama:34b).
- •Pull/install a model:
bash
ollama pull codellama:7b
- •Or with the install script:
bash
DRY_RUN=1 logics/skills/logics-ollama-specialist/scripts/ollama_install_macos.sh codellama:7b
- •List installed CodeLlama models:
bash
ollama list | grep -E '^codellama'
- •Run and test quickly:
bash
ollama run codellama:7b
- •Remove a local model:
bash
ollama rm codellama:7b
Start and stop Ollama server
- •Start in foreground:
bash
ollama serve
- •Start as Homebrew service:
bash
brew services start ollama
- •Stop foreground server:
Ctrl + C - •Stop Homebrew service:
bash
brew services stop ollama
- •If Ollama.app auto-restarts the server, quit the app:
bash
osascript -e 'quit app "Ollama"'
- •Last-resort force stop:
bash
pkill -f 'ollama serve' pkill -x Ollama
- •Verify server status:
bash
lsof -iTCP:11434 -sTCP:LISTEN -n -P
Verify Ollama
Run the check script to validate prerequisites and reachability:
bash
logics/skills/logics-ollama-specialist/scripts/ollama_check.sh qwen3
Integrate with a frontend (Vite/React)
- •Use a proxy to call
/ollama/*from the browser. - •Set
VITE_OLLAMA_HOSTto the local Ollama URL. - •If LAN access returns 403, remove the
Originheader in the proxy or setOLLAMA_ORIGINS.
See references/ollama-integration.md for snippets and common pitfalls.
Add PWA support (Vite)
Use vite-plugin-pwa, register the SW, and add icons/manifest fields.
See references/pwa-vite.md.
Resources
scripts/
- •
ollama_check.sh: Verifyollama, Node, and basic/api/versionreachability. - •
ollama_install_macos.sh: Install/start Ollama with an optional model (supportsDRY_RUN=1).
references/
- •
ollama-integration.md: Proxy/CORS/Origin fixes, env vars, and endpoint notes. - •
pwa-vite.md: PWA steps for Vite/React apps.