Build AI agents that install, run, and test code directly
You can build a system where AI modifies files, executes commands, and verifies results on your machine. This repository contains oi-kit, the reusable components for building agents, and goose, a complete agent built from those components. You can use it directly in a desktop app or terminal, or connect it as the backend for your own application.
Assembling agent structures with oi-kit
oi-kit provides the Rust components needed to build agents. It structures agents using state machines, tasks, tools, model providers, and context management, while your application owns the interface, policies, and storage. You can directly control how the agent operates, including tool execution, approval, and compression. When resuming from a saved state, the state machine determines the next action based on the saved conversation. The core runtime can run in various environments, such as native apps, servers, and WebAssembly hosts. You can load local models directly within the process without Ollama or a separate inference server, controlling model loading and inference.
Handling daily tasks with goose
You can use a native desktop app on macOS, Linux, and Windows, or work via the CLI in the terminal. It connects tools and data through the Model Context Protocol (MCP). You can load local models directly into goose without a separate model server, or connect to more than 85 providers, including Anthropic, OpenAI, Gemini, OpenRouter, and Amazon Bedrock. The desktop app is available for download on macOS, Linux, and Windows. For the CLI, you install it by running a script, then follow the quickstart to set up a model and start a session.
Using it as your app's backend with ACP
You can use the finished goose binary as an agent in your application through the Agent Client Protocol (ACP). goose provides the agent, model connection, tools, and saved conversations, while your app owns the interface and workflows. The goose desktop app also communicates with the backend this way. You can review the guide for building apps with ACP to see working client examples and check the ACP extension reference for goose-specific features.
Checking status and scope before use
oi-kit is currently in alpha, so you must use the documentation version that matches your dependencies. Rust exposes the full agent runtime, while Python and Kotlin bindings support only model providers, streaming, and conversation compression. goose is part of the Agentic AI Foundation (AAIF) under the Linux Foundation. If you create a custom distribution, you can build a goose distribution with preconfigured providers, extensions, and branding. You can troubleshoot issues using the diagnostics and reporting, and known issues documentation.