Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for How to Set Up Goose on Windows 🦢
Lymah
Lymah

Posted on • Edited on

     

How to Set Up Goose on Windows 🦢

Goose 🦢 is a powerful, AI-driven tool designed to assist developers with programming and operational tasks. Setting it up on Windows might not be a straightforward process. In this post, I will walk you through a step-by-step process to get your Goose running on your Windows machines in Visual Studio Code (VS code). This basically involves installingpipx, configuring your environment, and running the Goose.

pipx is a tool to help you install and run end-user applications written in Python. It's roughly similar to macOS'sbrew, JavaScript'snpx, and Linux'sapt.
Learn more...

Step 1: Install Python

Goose requires Python to run. If Python isn’t already installed on your system:

  1. Download the latest Python version from theofficial Python website and follow the installation steps on the website.
  2. During installation:
    • Check the box for "Add Python to PATH"
    • Click Install Now
  3. Confirm Python is installed by opening PowerShell and running:

python --version

You should see the Python version printed on the screen.

Option One

Step 2: On Windows install via:

  • install viaScoop
  • scoop install pipx
  • pipx ensurepath

Install via Scoop

To installpipx on Windows using Scoop and set up your environment, follow these steps.

Install Scoop

If you don't have Scoop installed already, do this first:

  • Open PowerShell as an administrator.

Run the following command to install Scoop:

 iwr -useb get.scoop.sh | iex
Enter fullscreen modeExit fullscreen mode

This command downloads and installs Scoop, a package manager for Windows.

Close and reopen PowerShell to refresh the environment.

Install pipx Using Scoop

Now that Scoop is installed, you can installpipx.

  • In PowerShell, run:
  scoop install pipx
Enter fullscreen modeExit fullscreen mode
  • Wait for the installation to complete. Scoop will handle downloading and installingpipx

Ensure pipx is in Your PATH

After installation, you need to ensurepipx is in your system PATH so you can use it from anydirectory:

  • Run the following command to add pipx to your PATH:
pipx ensurepath
Enter fullscreen modeExit fullscreen mode
  • Close and reopen PowerShell to apply the changes.

Verify the Installation

  • To confirm thatpipx is set up correctly, run:
pipx --version
Enter fullscreen modeExit fullscreen mode

If you see the version number, pipx is successfully installed and ready to use.

If the aforementioned steps don't work for you, still stay with me. Because it didn't work on my end as well. Let's try another way around it. I hope you are still following me. Relax, don't be frustrated. I got you on this, I mean it! 😃

Option Two

Step 2: Manually Download and Run the Scoop Script

If PowerShell 7 isn't resolving the issue, you can try manually downloading the installation script outside of PowerShell:

  • Open a web browser and go to thisURL
  • Download and save this file asinstall.ps1 in a directory of your choice, likeC:\Users\user\scoop.
  • Open PowerShell as an administrator and navigate to the directory where you saved the file. For example:
cd C:\Users\user\scoop
Enter fullscreen modeExit fullscreen mode
  • Run the script directly with:
.\install.ps1
Enter fullscreen modeExit fullscreen mode

Guess what, this option didn't work on my end. No, don't give up. Let us look for another way that can work for us if you are still stuck at this point like I did.

Option Three

install via pip (requires pip 19.0 or later)

# If you installed python using Microsoft Store, replace `py` with `python3` in the next line.py -m pip install --user pipx
Enter fullscreen modeExit fullscreen mode

Screeshot of goose pipx installation on window

This particular option works on my Dell Window PC

Screeshot

PowerShell is giving a warning that the installation directory(C:\Users\user\AppData\Roaming\Python\Python312\Scripts) is not in my system PATH. Adding this directory to my PATH will allow me to runpipx from any command prompt.

Here's how to add it to your PATH:

Open Environment Variables

  • PressWin + R, typesysdm.cpl, and pressEnter to open the System Properties window.
  • Go to the Advanced tab and click on Environment Variables.Edit the PATH Variable
  • In the User variables section, look for a variable namedPath and select it. Then click Edit.
  • Click New and add the following path:
C:\Users\user\AppData\Roaming\Python\Python312\Scripts
Enter fullscreen modeExit fullscreen mode

Click OK to close all dialogs and apply the changes.

Verify the PATH Update
Close and reopen PowerShell or Command Prompt, and then verify the installation by running:

pipx --version
Enter fullscreen modeExit fullscreen mode

If the version appears,pipx is now ready for use. You can also run:

pipx ensurepath
Enter fullscreen modeExit fullscreen mode

This command ensures thatpipx and any tools it installs are available in your PATH.

Screenshot

Now that we havepipx installed, we can now installgoose by running the following command in your PowerShell terminal:

pipx install goose-ai
Enter fullscreen modeExit fullscreen mode

screenshot

It seemspipx installedgoose successfully, but it’s still warning thatC:\Users\user\.local\bin is not in my PATH. The best thing to do at this juncture is to restart my Powershell or PC so the installation can take effect. After that, we can now verify to be sure:

To verify thatC:\Users\user\.local\bin is now in my PATH

$env:PATH -split ";"
Enter fullscreen modeExit fullscreen mode

Screenshot

It seems the installation is now in my PATH!

The next thing is to testgoose

Test goose

After verifying your PATH, try runninggoose --help

goose --help
Enter fullscreen modeExit fullscreen mode

goose-ai
Goose is now successfully installed!
If you followed me to this point, it is good to say;
goose is installed and accessible from your command line. You can now usegoose to manage providers, run sessions, and use its AI-powered functionalities.

Last Step

Install goose in VS code

Go to the extension in VS Code and typegoose-ai in the search bar and get it installed

goose ai

Well done!

goose-ai

You can now start working with Goose!

goose-ai

Thanks for reading!

If you want to get started withgoose,check this out!

Join the goose community today for any questions!

Checkout my post on how to usegoose as a GitHub action

Top comments(8)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
kiran_baliga profile image
Kiran Baliga
Learning, unlearning, and rebuilding while navigating life with resilience and purpose.
  • Location
    India
  • Education
    Bachelor of Engineering (Computer Science)
  • Pronouns
    He/Him
  • Work
    Technical Stuff 🖥️⌨️🖱️
  • Joined

Great work! This post should be on top of the Goose community page for everyone to see! 5 ⭐

CollapseExpand
 
lymah profile image
Lymah
Software Engineer || Technical Writer || Open Source Contributor

Thank you.

CollapseExpand
 
blackgirlbytes profile image
Rizèl Scarlett
Staff Developer Advocate at Block; previously at GitHub.I'm interested in Generative AI, AI Dev Tools, Data Privacy, and Responsible AI
  • Education
    Boston University
  • Work
    Developer Advocate at Block
  • Joined

so helpful!

CollapseExpand
 
lymah profile image
Lymah
Software Engineer || Technical Writer || Open Source Contributor

Thank you so much, Rizel.

CollapseExpand
 
acekyd profile image
Adewale Abati
Web Engineer and Developer Advocate. Passionate about open source, technicalwriting, and sharing what I’ve learned both with my teammates and the global web community.
  • Location
    Lagos, Nigeria
  • Education
    B.Sc. Computer Science
  • Work
    Developer Advocate at CodeSandbox
  • Joined

Awesome. Thanks for sharing.

CollapseExpand
 
lymah profile image
Lymah
Software Engineer || Technical Writer || Open Source Contributor

Thank you for reading.

CollapseExpand
 
dennis_ongaki profile image
Dennis Ongaki
I'm a developer, but a starter, I'm learning
  • Joined

I have managed to install goose

CollapseExpand
 
lymah profile image
Lymah
Software Engineer || Technical Writer || Open Source Contributor

Glad to hear that.

To get started with Goose, check this blog post out and go through the other resources in it.

dev.to/blackgirlbytes/how-to-exten...

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software Engineer || Technical Writer || Open Source Contributor
  • Location
    Lagos State, Nigeria.
  • Pronouns
    She/Her
  • Joined

More fromLymah

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp