Skip to content

How-ToGPU

How to Use goose with Ollama: Run a Free AI Agent on Your Own PC

How to run the free, open-source goose AI agent on a local model: install goose Desktop or the CLI, pull a tool-calling model in Ollama, raise Ollama's context length to at least 64,000 tokens as Ollama recommends for agents, then select Ollama as the provider and check the setup with ollama ps.

By , Systems & Technical Editor

5 min read

How to Use goose with Ollama: Run a Free AI Agent on Your Own PC

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.

Step 2: Pull a tool-calling model in Ollama

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 app: move the context length slider in Settings.

  • Command line: start the server with OLLAMA_CONTEXT_LENGTH=64000 ollama serve.

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.

The bottom line

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.

Sources

  1. 01goose GitHub repository
  2. 02goose documentation: Installation
  3. 03goose documentation: Supported LLM providers
  4. 04Ollama documentation: Context length

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Choose a Gaming Monitor: A Step-by-Step Guide for 2026

How-To

How to Choose a Gaming Monitor: A Step-by-Step Guide for 2026

Choose a gaming monitor in order: match resolution to your graphics card, pick a size for sensible pixel density (24in 1080p, 27in 1440p, 27-32in 4K), a refresh rate your PC can reach, then panel type. Look for a real VESA DisplayHDR tier, adaptive sync and ports that support full refresh rate.

Marcus Thorne7 min

Best Free File Sync Software for Windows PCs in 2026

Best Picks

Best Free File Sync Software for Windows PCs in 2026

The best free file sync software for Windows PCs in 2026: FreeFileSync for most people, Syncthing for continuous PC-to-PC sync, rclone for cloud storage and Robocopy built into Windows, with each tool's sync modes, safety features and catches.

Hannah Vance6 min