The steps are based on the official goose and Ollama documentation, read on 24 November 2026, when the latest goose release was v1.60.2 (20 November 2026).
goose is an open-source AI agent from the Agentic AI Foundation at the Linux Foundation (it began life at Block). Unlike a chat app, it can carry out tasks: according to its README, it handles coding, research, writing, automation and data analysis, and connects to tools and data through Model Context Protocol (MCP) extensions. It's licensed under Apache-2.0, has a desktop app and a command-line version, and works with more than 85 model providers, including local ones such as Ollama.
Pairing it with Ollama means your prompts and files don't leave your PC and there are no per-token charges. The trade-off is that a local model needs to be capable enough, and configured properly, for agent work. This guide covers both.
What you need
A PC running Windows, macOS or Linux. goose Desktop is available for all three.
Ollama installed and working. If you haven't set it up yet, see our guides to running AI models locally with Ollama and LM Studio or installing Ollama on Linux.
A model that supports tool calling. goose's provider docs say it "relies heavily on tool calling". Models without it can only do plain chat, and you have to disable all goose extensions to use them.
Enough VRAM for a long context window. More on this in step 3.
Step 1: Install goose
goose Desktop is the easiest way in. From the official installation page:
Windows: download the Windows Installer, or the Windows Portable ZIP if you'd rather not install anything. With the ZIP, unzip it and run Goose.exe from the folder. To remove an installed copy later, uninstall it from Installed apps in Windows Settings; the docs say your settings and sessions are kept.
Linux: download the .deb package and install it with sudo dpkg -i (filename).deb, or the .rpm and use sudo dnf install (filename).rpm.
macOS: download the build for Apple silicon or Intel and unzip it.
If you prefer the terminal, the goose README gives a one-line install script for the CLI:
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bash
On Windows, the docs say the native CLI needs Git Bash (recommended, and part of Git for Windows) or PowerShell.
Before connecting goose, make sure Ollama has a model downloaded. goose's docs say that because Ollama runs locally, you must first download and run a model. Choose one whose page in the Ollama library lists tool support, then pull it, for example:
ollama pull <model-name>
Our best local LLM models guide can help you choose, and our tool calling with Ollama guide explains what tool support means and how to check it. Bigger models generally follow multi-step instructions more reliably, but they need more VRAM; see our guide to checking whether your PC can run a local LLM.
Step 3: Raise Ollama's context length
This is the step most people miss. Ollama's documentation says it picks a default context length based on your VRAM:
Your VRAM | Ollama's default context |
|---|
Less than 24GB | 4K tokens |
24GB to 48GB | 32K tokens |
48GB or more | 256K tokens |
The same page says tasks that need a large context, including agents and coding tools, "should be set to at least 64000 tokens". An agent sends its instructions, tool definitions and the work so far with every request, so a small window fills up fast. goose's local-model documentation makes the same point: if goose has trouble using extensions or ignores its .goosehints file, the model's context length is likely too low.
You can raise it in two ways, according to Ollama's docs:
Ollama warns that a larger context increases the memory needed to run a model. Once a model is loaded, run ollama ps and check two columns: CONTEXT should show your new value, and PROCESSOR should ideally read 100% GPU. Ollama advises avoiding offloading to the CPU for best performance, so if part of the model has spilled over, try a smaller model or a shorter context. Our guides to setting Ollama's context length and context length and VRAM go into more detail.
Step 4: Connect goose to Ollama
In goose Desktop: on first launch, choose Ollama as your provider. goose's docs say that for Ollama users, all locally installed models appear automatically in the model selection drop-down, so pick the one you pulled in step 2. You can change provider or model later from the Models tab, or from Settings in the sidebar.
In the CLI: run goose configure, choose Configure Providers, then select Ollama. goose asks for the OLLAMA_HOST value; per its docs, if you leave it blank it uses localhost:11434, which is Ollama's default address, and it adds http:// if you don't type a scheme. Then enter the model name.
If Ollama runs on another machine on your network, enter that PC's address and port instead. Our guide to sharing Ollama on your local network explains how to expose it.
Step 5: Start a session and add extensions
Start a new session and give goose a simple, low-risk task first, such as summarising the files in a test folder. Once you're happy it's using tools correctly, add MCP extensions for the jobs you want it to do. If your model doesn't support tool calling, goose's docs say you'll need to turn extensions off.
Keep in mind that an agent can run commands and change files on your PC. Point it at a test folder while you learn how it behaves, and read what it plans to do before approving anything that deletes or overwrites files.
Troubleshooting
goose chats but never uses tools: your model probably doesn't support tool calling. Switch to one that does.
It ignores instructions or forgets earlier steps: raise the context length (step 3) and confirm it with ollama ps.
Very slow responses: check the PROCESSOR column in ollama ps. If the model isn't 100% on the GPU, use a smaller model, a shorter context or a lower-precision version; see our guide to speeding up Ollama.
goose can't find Ollama: make sure Ollama is running and that the host and port in goose match. Our Ollama logs guide helps if the server is failing.
Our verdict
goose and Ollama make a capable, completely free local AI agent, and goose Desktop makes the setup easy on Windows, macOS and Linux. The two things that decide whether it works well are your model and your context window: choose a model with tool-calling support, set Ollama's context to at least 64,000 tokens as Ollama recommends for agents, and check with ollama ps that everything still fits on your GPU. If coding is your main use, compare it with the dedicated tools in our best local AI coding assistant guide.