Co-authored-by: Michael Neale <michael.neale@gmail.com> Co-authored-by: Wendy Tang <wendytang@squareup.com> Co-authored-by: Jarrod Sibbison <72240382+jsibbison-square@users.noreply.github.com> Co-authored-by: Alex Hancock <alex.hancock@example.com> Co-authored-by: Alex Hancock <alexhancock@block.xyz> Co-authored-by: Lifei Zhou <lifei@squareup.com> Co-authored-by: Wes <141185334+wesrblock@users.noreply.github.com> Co-authored-by: Max Novich <maksymstepanenko1990@gmail.com> Co-authored-by: Zaki Ali <zaki@squareup.com> Co-authored-by: Salman Mohammed <smohammed@squareup.com> Co-authored-by: Kalvin C <kalvinnchau@users.noreply.github.com> Co-authored-by: Alec Thomas <alec@swapoff.org> Co-authored-by: lily-de <119957291+lily-de@users.noreply.github.com> Co-authored-by: kalvinnchau <kalvin@block.xyz> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Rizel Scarlett <rizel@squareup.com> Co-authored-by: bwrage <bwrage@squareup.com> Co-authored-by: Kalvin Chau <kalvin@squareup.com> Co-authored-by: Alice Hau <110418948+ahau-square@users.noreply.github.com> Co-authored-by: Alistair Gray <ajgray@stripe.com> Co-authored-by: Nahiyan Khan <nahiyan.khan@gmail.com> Co-authored-by: Alex Hancock <alexhancock@squareup.com> Co-authored-by: Nahiyan Khan <nahiyan@squareup.com> Co-authored-by: marcelle <1852848+laanak08@users.noreply.github.com> Co-authored-by: Yingjie He <yingjiehe@block.xyz> Co-authored-by: Yingjie He <yingjiehe@squareup.com> Co-authored-by: Lily Delalande <ldelalande@block.xyz> Co-authored-by: Adewale Abati <acekyd01@gmail.com> Co-authored-by: Ebony Louis <ebony774@gmail.com> Co-authored-by: Angie Jones <jones.angie@gmail.com> Co-authored-by: Ebony Louis <55366651+EbonyLouis@users.noreply.github.com>
6.1 KiB
sidebar_position, title
| sidebar_position | title |
|---|---|
| 2 | Quickstart |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
Goose in 5 minutes
:::info Supported Environments Goose currently works only on OSX and Linux systems, and supports both ARM and x86 architectures. If you'd like to request support for additional operating systems, please open an issue on GitHub to let us know. :::
Quickstart
Goose is a developer AI agent that supercharges your software development by automating coding tasks. This Quickstart will guide you through getting started with Goose and covers using both the CLI and Desktop UI.
Installation
#### Installing the Goose CLI To install Goose, run the following script on macOS or Linux.```sh
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | sh
```
This script will fetch the latest version of Goose and set it up on your system.
#### Installing the Goose Desktop Application
To install Goose, click the **button** below:
Running Goose
Set up a provider
Goose works with supported LLM providers. When you first run Goose, you'll be prompted to supply an API key from your preferred LLM provider.
The process will look similar to the example below:
 :::info Billing You will need to have credits in your LLM Provider account (when necessary) to be able to successfully make requests. Some providers also have rate limits on API usage, which can affect your experience. Check out our Handling Rate Limits guide to learn how to efficiently manage these limits while using Goose. :::
Start a session
From your terminal, navigate to the directory from which you'd like to start, and run: ```sh goose session ``` After choosing an LLM provider, you’ll see the session interface ready for use. Type your questions, tasks, or instructions directly into the input field, and Goose will immediately get to work.

</TabItem>
Make Goose do the work for you
You will see the Goose prompt ( O)>. From here, you can interact with Goose in conversational sessions. Think of it as you're giving directions to a junior developer.
( O)> type your instructions here exactly as you would speak to a developer.
Here's an example:
( O)> Create a JavaScript project that fetches and displays weather for a user specified city using a public API
You can interrupt Goose with CTRL+C while it is running to help redirect its efforts.
Exit the session
To end a session, use CTRL+D or enter /exit.
Resume a session
When you exit a session, it will save the history in the ~/.config/goose/sessions directory. You can later resume your last saved session by using:
goose session --resume
Check out Managing Goose sessions to learn more about working with sessions in Goose.
Be sure to check out the available CLI commands. If you’d like to develop your own CLI commands for Goose, check out the Contributing guide.
Running a Goose task
As an alternative to the chat interface, you can also provide instructions to Goose via files. In this example, Goose will execute the commands that are specified in instructions.md:
goose run -t "Create a new Python file that prints hello world" instructions.md
You can also pass in a file full of instructions, or use process substitution to chain more complex commands:
goose run -t instructions.md
goose run -t <(echo "Create a new Python file that prints hello world")
This will run until completion as best it can. If you'd like to take the run and turn it into an interactive session,
you can use goose session --resume to pick up where it left off.
Extending Goose Functionality
Goose Extensions are add-ons built on the Model Context Protocol(MCP). They enhance Goose's functionality by integrating with the applications and tools you already use in your workflow. Extensions can be used to add new features, access data, and integrate with other systems.
For more information on how to add or remove extensions, see Managing Extensions.
Additional tips
You can provide Goose with a set of hints that it will automatically use in every session with you. To do so, create a file named .goosehints and save it in ~/.config/goose/.goosehints. For additional tips to enhance your experience, check out Quick Tips.