Side Quest: Install gh-aw Troubleshooting

August 22, 2026 · View on GitHub

Optional: use this guide if Step 6 install fails, then return to the main path.

If gh extension install github/gh-aw fails, use the matching fix below and retry.

The diagram below shows how to identify your error type and apply the right fix:

Install troubleshooting decision flow: gh extension install fails, then branch by error type — HTTP 401 unauthenticated, HTTP 403 org Codespace token, proxy or network error, or GHES endpoint — each leading to its specific fix, all converging on a successful gh aw --version check.

Local terminal setup quick fixes (Adventure Local)

If you are still in local terminal setup and not yet installing gh-aw, use this table first:

Error messageWhy it happensHow to fix it
command not foundTool is missing or the terminal session has not picked up the install yetInstall or reinstall the tool following the instructions in the step above, then fully close and reopen your terminal. When the install succeeds, the command will run without the command not found error.
permission deniedThe command needs elevated privileges or the file permissions are restrictedRe-run the failed install command with sudo (Linux/macOS) exactly as shown in the step, or open an elevated (Administrator) terminal on Windows and retry. When the fix works, the install command completes without a permission error.
No such file or directory / path-related errorsYour terminal is not in the expected folderRun pwd (macOS/Linux) or cd with no arguments (Windows) to see your current location. Change to the correct directory with cd my-agentic-workflows and retry the command. When you are in the right folder, the path error disappears and the command succeeds.

Not authenticated (HTTP 401)

If you see errors like:

error connecting to api.github.com: HTTP 401: Bad credentials

or:

failed to authenticate to api.github.com

Run:

gh auth login
gh auth status
gh extension install github/gh-aw

Confirm gh auth status shows Logged in to github.com.


Organization Codespace token limitation (HTTP 403)

In an org-owned Codespace, gh is pre-authenticated with an org-scoped token that cannot access the extension marketplace. gh extension install github/gh-aw will fail with HTTP 403 in this environment. The main step now recommends the curl script as the primary install path for this reason.

If you arrived here after a 403, run the install script:

curl -sL https://raw.githubusercontent.com/github/gh-aw/main/install-gh-aw.sh | bash
gh aw --version

You do not need to run gh auth login for this case.


Behind a corporate proxy

Set proxy variables in your current shell, then retry:

export HTTPS_PROXY="http://proxy.company.com:8080"
export HTTP_PROXY="$HTTPS_PROXY"
export NO_PROXY="127.0.0.1,localhost,.company.com"
gh config set git_protocol https
gh auth status
gh extension install github/gh-aw

GitHub Enterprise Server (GHE/GHES) endpoint

Authenticate against your GHES hostname and install with --hostname:

gh config set git_protocol https --host ghes.example.com
gh auth login --hostname ghes.example.com --scopes "repo,read:org,workflow"
gh extension install github/gh-aw --hostname ghes.example.com
gh auth status --hostname ghes.example.com

If your administrator requires different scopes, use the minimum required scopes they provide. When the steps above succeed, gh auth status --hostname ghes.example.com shows "Logged in to ghes.example.com" and gh aw --version prints a version number.


Extension download fails on a locked-down network

If install fails with a network error:

  1. Download the matching release artifact from github/gh-aw releases.
  2. Extract it on a machine that can reach GitHub.
  3. Move the extracted folder to your workshop machine and install from a local path:
gh extension install /path/to/gh-aw
gh extension list

Return to Install the gh-aw CLI Extension.

:white_check_mark: Checkpoint

Use this checklist to confirm the install issue is fully resolved before returning to the main path:

  • gh auth status (or gh auth status --hostname <your-host> for GHES) shows "Logged in to …" with no errors
  • gh extension install github/gh-aw completed without an HTTP 4xx or network error
  • gh aw --version prints a version number (for example, gh-aw 1.x.x)
  • gh extension list shows github/gh-aw in the output
  • I am ready to return to Install the gh-aw CLI Extension and continue