{% extends "base.html" %} {% block title %}AI Copilot · Settings — Tusk{% endblock %} {% block content %}

AI Copilot

Plug in a local model (Ollama) or an API key. Used for SQL generation, query explanations, and homepage suggestions.

Back to settings
Provider
Base URL
API Key
Model
Self-hosted with Ollama

If you're running Tusk in Docker and Ollama on the same host, set the base URL to:

http://host.docker.internal:11434

To bundle Ollama with Tusk's compose stack:

docker compose --profile ai up
docker compose exec ollama ollama pull qwen2.5-coder:3b

Recommended models by size:

{% endblock %} {% block scripts %} {% endblock %}