Easy Setup Guide: Run Goose AI Agent on Ubuntu Linux
Goose is a powerful open-source AI agent that runs directly on your machine. It goes far beyond simple code suggestions — it can autonomously read/write files, execute shell commands, run tests, debug, install dependencies, and handle complex development workflows using any LLM you choose.
Whether you're a developer looking to automate repetitive tasks or want a true agentic teammate in your terminal, Goose (with both CLI and Desktop versions) is quickly gaining popularity in the Linux community.
Quick Installation on Ubuntu (Step-by-Step)
Update your system
sudo apt update && sudo apt upgrade -yInstall the Goose CLI (recommended & easiest)
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bashConfigure your LLM provider
Rungoose configureand connect to your preferred model (OpenAI, Anthropic, Ollama, OpenRouter, Gemini, DeepSeek, Kimi, etc.).Start a new session
goose sessionOr use the Desktop app for a rich GUI experience.
Pro Tips for Ubuntu users:
- Install dependencies like
bzip2if you run into extraction issues during install. - For the Desktop version, download the
.debpackage from the official releases and install withsudo dpkg -i. - Goose supports MCP extensions for added capabilities and works great with local models via Ollama.
Once set up, you can give Goose high-level instructions like “Build a FastAPI app with user authentication” and watch it plan, code, test, and iterate — all while running securely on your local machine.