---
title: "Building an Easy Private AI Assistant with Goose and Docker Model Runner"
description: "Goose, a CLI AI assistant, can run entirely on a local model by pointing its OpenAI provider at Docker Model Runner's OpenAI-compatible endpoint."
url: "https://swe.quest/articles/building-an-easy-private-ai-assistant-with-goose-and-docker-model-runner-6cdc8d1a08ce794b"
canonical: "https://www.docker.com/blog/building-an-ai-assistant-with-goose-and-docker-model-runner/"
source: "Docker"
published: "2025-06-27"
difficulty: "medium"
kind: "How-to"
reading_minutes: 4
tags: ["ai-agents","llms","inference","developer-tools"]
---

# Building an Easy Private AI Assistant with Goose and Docker Model Runner

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-06-27, 4 min read, How-to. Original: [https://www.docker.com/blog/building-an-ai-assistant-with-goose-and-docker-model-runner/](https://www.docker.com/blog/building-an-ai-assistant-with-goose-and-docker-model-runner/)

## Summary

Goose, a CLI AI assistant, can run entirely on a local model by pointing its OpenAI provider at Docker Model Runner's OpenAI-compatible endpoint. The steps are: enable Model Runner and host TCP access on port 12434 in Docker Desktop, pull ai/qwen3:30B-A3B-Q4\_K\_M, then set OPENAI\_HOST and OPENAI\_BASE\_PATH (/engines/llama.cpp/v1/chat/completions) in Goose's config.yaml with the Developer extension enabled. Goose can then be scripted with \`goose run -i instructions.md\` and scheduled via crontab for recurring automations, with no data leaving the machine.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Docker Desktop ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- command line basics

## Keywords

Goose, Docker Model Runner, Docker Desktop, Qwen3, llama.cpp, OpenAI API

## Related posts

- [Building AI agents made easy with Goose and Docker](https://swe.quest/articles/building-ai-agents-made-easy-with-goose-and-docker-05962e3d4c772056.md): Docker · 2025-08-12 · Medium · 7 min read · AI agents, Containers, LLMs, Inference & serving
  A local, containerized AI agent can be assembled from Goose as the agent, Docker Model Runner serving a Qwen3 30B GGUF model through an OpenAI-compatible endpoint, and Docker MCP Gateway exposing a YouTube transcript tool over SSE, all wired together with Docker Compose.
- [How to Build, Run, and Package AI Models Locally with Docker Model Runner](https://swe.quest/articles/how-to-build-run-and-package-ai-models-locally-with-docker-model-runner-acbc6d65548e5373.md): Docker · 2025-06-12 · Medium · 6 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, enabled as a beta feature in Docker Desktop 4.40+, pulls GGUF-format LLMs from Docker Hub or Hugging Face and runs them locally via the \`docker model\` CLI or an OpenAI-compatible HTTP endpoint on localhost.
- [Build a Recipe AI Agent with Koog and Docker](https://swe.quest/articles/build-a-recipe-ai-agent-with-koog-and-docker-5af82c75d41ec7f4.md): Docker · 2025-08-08 · Medium · 12 min read · AI agents, Java & JVM, Containers, LLMs
  A small Kotlin AI agent built with JetBrains' Koog framework can run entirely on a local model served by Docker Model Runner, wired up through Docker Compose's agentic models feature.
- [How to Make an AI Chatbot from Scratch using Docker Model Runner](https://swe.quest/articles/how-to-make-an-ai-chatbot-from-scratch-using-docker-model-runner-48eab58e2814218f.md): Docker · 2025-06-03 · Medium · 17 min read · Inference & serving, Observability, LLMs, Go, Containers
  A local GenAI chatbot built on Docker Model Runner, which runs llama.cpp models natively on the host and exposes an OpenAI-compatible API to containers.
- [Breaking Free From AI Vendor Lock-in: Integrating GitHub Models with Docker cagent](https://swe.quest/articles/breaking-free-from-ai-vendor-lock-in-integrating-github-models-with-docker-8fc971be1201fa24.md): Docker · 2025-12-11 · Medium · 7 min read · AI agents, LLMs, Containers
  Docker cagent, an open-source multi-agent runtime driven by declarative YAML, can use GitHub Models as a custom OpenAI-compatible provider.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
