# Install GOAT GOAT runs coding agents on your computer and lets you control them from its desktop, web, or mobile app. Set up the machine where the agents will work first. ## Requirements You need a working provider before starting a thread. You can launch GOAT and configure one afterwards. A machine connected to your OpenCodex Home can use Home's accounts without a provider sign-in on that machine; see [OpenCodex Home](./providers-codex.md#use-opencodex-home). ## Command line ```bash curl -fsSL https://raw.githubusercontent.com/goat-si/goat-releases/main/install.sh | sh ``` On Windows, in PowerShell: ```powershell irm https://raw.githubusercontent.com/goat-si/goat-releases/main/install.ps1 | iex ``` This installs the `goat` binary to `~/.local/bin`. If your shell reports `command not found` afterwards, that directory is not on your `PATH` yet; the installer prints the line to add. The shell and PowerShell scripts default to Nightly. Set `GOAT_CHANNEL=stable` for the stable release, or `GOAT_VERSION` to pin an exact version. | Task | Command | | ------------------------------------------------ | ------------------------------------------------------------------------- | | Start the server and open the web app | `goat` | | Start the server without a browser | `goat serve` | | Keep it running in the background (macOS, Linux) | `goat service install` ([details](./background-service.md)) | | Move to the newest release | `goat update` | | Reclaim database space | `goat doctor` ([details](./background-service.md#reclaim-database-space)) | | Remove it again | `goat uninstall` | Run `goat help` or `goat --help` for the full reference. To start in a new working directory, use an explicit path such as `goat ./my-project`. A bare directory name is accepted only if it already exists. If `goat` or `goat start` reports an already running server, connect to that server instead. Stop it before starting a replacement, or use a different `--base-dir` for an independent server. ### Install with npm GOAT is distributed as an npm-installable tarball in [GOAT Releases](https://github.com/goat-si/goat-releases/releases), rather than through an npm registry package. The unscoped `goat` registry package is an unrelated blockchain toolkit; `t3` is upstream T3 Code. With Node.js 20.11 or newer and npm installed, install the latest stable release: ```bash npm install --global https://github.com/goat-si/goat-releases/releases/latest/download/goat-npm.tgz goat --version goat help ``` For an exact stable or nightly version, copy its tag from GOAT Releases and use that release's `goat-npm.tgz` URL. For example, in a POSIX shell: ```bash # Enter the version from the release tag, without the leading v. read -r GOAT_VERSION npm install --global "https://github.com/goat-si/goat-releases/releases/download/v${GOAT_VERSION}/goat-npm.tgz" ``` This route becomes available with the first release containing `goat-npm.tgz`; older releases require the archive installer above. The tarball has the private identity `@goat-si/goat` and exposes `goat` plus the legacy `t3` command. This does not claim that npm scope is available or published. If you already have a separate `t3` command, use a dedicated npm prefix rather than forcing npm to overwrite it. The first invocation downloads the exact version's CLI archive and checks its SHA-256 against `SHA256SUMS`. Later invocations stay pinned to that npm package's version. To update, install the target release's tarball again with the same npm prefix. For a custom prefix, use `npm --prefix install --global ` and put that prefix's executable directory on `PATH`. Native `goat update` can update the server runtime but does not change an npm-owned launcher pin. For a fresh Linux or cloud machine, use the [server installer](#a-server-only-machine) with `--opencodex`, then join it to your [OpenCodex Home](./providers-codex.md#use-opencodex-home). Home keeps the provider accounts and relays requests; every Child shares Home's quota. Add the environment's [MCP URL](./outside-agents.md#get-the-mcp-url) to your agent and authorize it through the normal sign-in flow. Access to GOAT and provider sign-in are separate: OpenCodex serves the provider; GOAT serves MCP. ### Intel Macs There is no `goat` executable for Intel Macs (the desktop app is available). To run a server there, build it from source with Node.js 26 and `vp` ([Install vp](https://github.com/goat-si/goat#development)): ```bash git clone https://github.com/goat-si/goat cd goat && vp i && vp run build:desktop node apps/server/dist/bin.mjs ``` `goat update` and the background service do not apply to a server run this way; update it with `git pull` and a rebuild. ### A server-only machine For a machine you only reach from other devices, such as a VPS or a spare Mac, install just the server. It needs no desktop app, browser or Node.js: ```bash curl -fsSL https://raw.githubusercontent.com/goat-si/goat-releases/main/install-goat-server.sh | sh -s -- --tailscale ``` This installs the `goat` command, keeps the server running as a [background service](./background-service.md), and prints two pairing links. Paste the first into **Settings → Connections** on your other device, or scan its QR code, to see the machine's threads there. Give the second to an agent in your main GOAT so it can [link the machine](./remote-access.md#link-a-goat-server-for-agents-without-ssh) and start, read and message threads on it. The second link only grants agent access. Each link works once and expires after five minutes; run `goat pair` on the machine for new ones. `--tailscale` publishes the server on your tailnet so other devices can reach it. Leave it out when you reach the machine another way, such as [direct pairing over your LAN](./remote-access.md#pair-over-a-lan-or-private-network). Pass `--no-service` to skip the background service and run `goat serve` yourself. To install a CLI archive you already downloaded, for example on a machine without internet access, pass `--archive goat---.tar.gz`. Add `--opencodex` to also install OpenCodex, without Node or npm, so the machine can become an [OpenCodex Child](./providers-codex.md#use-opencodex-home): ```bash curl -fsSL https://raw.githubusercontent.com/goat-si/goat-releases/main/install-goat-server.sh | sh -s -- --tailscale --opencodex ``` With GOAT already installed, run `goat opencodex install` instead. A supported OpenCodex that is already installed is kept; otherwise GOAT installs a release it has tested. Home and its Children do not need the same version. Installing does not join Home or make the machine **Ready**; continue in [Hub devices](./hub.md#add-repair-or-remove-a-device). If OpenCodex installation fails, GOAT stays installed and the installer stops with the command to retry. If `goat opencodex install` is not a known command, update GOAT first. `--archive` supplies only GOAT's archive, so `--opencodex` still needs network access to download OpenCodex unless a supported one is already installed. ## Desktop app Download a release from [GitHub Releases](https://github.com/goat-si/goat-releases/releases). ### Linux AppImage and `.deb` downloads are available for x86_64 and ARM64. Check your architecture with `uname -m`: choose `x86_64.AppImage` or `amd64.deb` for `x86_64`, and `arm64.AppImage` or `arm64.deb` for `aarch64`. On Debian and Ubuntu, install the `.deb` with `sudo apt install ./.deb`. For an AppImage, open a terminal in the download folder and replace the filename below with the one you downloaded: ```bash chmod +x ./GOAT.AppImage ./GOAT.AppImage ``` The `.deb` updates itself like the other desktop builds. It asks for your password to install each update. If your desktop has no password prompt, the update fails. Download the new `.deb` and install it the same way. Older releases installed the app under an earlier package name. The `goat` package replaces it on the next update and keeps your settings, threads and saved logins. To go back to one of those releases, remove the current package first with `sudo apt remove goat`, then install the older `.deb`. ### The `goat` command The desktop app includes the `goat` command-line tool. To run it from any terminal, open **Settings → General → About** and choose **Install** next to **goat command**. On macOS and Linux it adds a `goat` link to a folder on your `PATH`; on Windows it adds the app's command folder to your `PATH`. Open a new terminal afterwards. **Remove** takes it off again. If you already have `t3` from npm, it stays as it is. With both GOAT and GOAT (Nightly) installed, `goat` runs the app you installed it from. If it runs the other app, choose **Remove** and then **Install** in the app you want. ### GOAT and GOAT (Nightly) side by side GOAT and GOAT (Nightly) keep separate data, so both can run at once without sharing a database, settings, or logs: | App | macOS and Linux | Windows | | -------------- | ------------------------- | ------------------------------------- | | GOAT | `~/.goat/desktop` | `%USERPROFILE%\.goat\desktop` | | GOAT (Nightly) | `~/.goat/desktop-nightly` | `%USERPROFILE%\.goat\desktop-nightly` | Preview builds use the nightly folder. Setting `GOAT_HOME` overrides both. The first time GOAT (Nightly) opens without its own folder, it copies GOAT's threads, projects, settings, saved connections, secrets, attachments, and notes into it. GOAT's folder is only read, never moved or deleted, so GOAT and any older nightly keep working from it. Logs and caches are not copied. Worktrees and project folders are not copied either: both apps keep using the same folders on disk. Neither app's automatic cleanup removes a worktree the other app still uses, but nothing stops both apps from working in the same worktree at once, so continue a copied thread in one app only. A large history can make that first launch take a little longer. If the copy fails, for example because the disk is full, GOAT (Nightly) says why and quits without changing anything; it tries again the next time you open it. On macOS, reading saved connections may ask once for permission to use GOAT's keychain item. Sign in to your GOAT account again in the nightly app. The copy starts with its automation paused, because it would otherwise act as a second copy of the same machine: scheduled tasks, channel bots such as Slack, goals and Fleet work, memory sync, and hub and remote links stay off, and agent work that was in progress when the copy was made does not continue. Your own threads and commands work as usual, but delegated task completions wait to wake their parent threads until automation resumes. A notice at the top of **Settings** explains this; choose **Resume automation on this app** there to turn it on. If both apps run with automation on, each runs it: scheduled tasks and channel replies happen twice. ### Windows Subsystem for Linux Choose a WSL distro in **Settings → Connections** to run agents and projects there. Install the provider CLIs inside that distro. GOAT installs its own server runtime there automatically; the first launch after an app update can take longer. ### Open a project from a terminal With the desktop app already running on the same machine: ```bash goat app ``` This opens a new thread for the current directory, adding the project if needed. Pass a path, such as `goat app ../my-project`, to open another directory. It requires the desktop app, so a standalone server or an SSH session is not enough. If the command cannot reach the app, start or update the desktop app and try again. ### Drop a folder on the sidebar Drag one or more folders from Finder, Explorer, or your file manager onto the sidebar. Each one opens as a project on this computer, the same as `goat app`. Files dropped on a thread still attach to that thread. This needs the desktop app with its local environment on (Settings › Connections); browsers do not share folder paths, so in the web app use **Add project** instead. ## Mobile app GOAT's mobile app for iPhone, iPad and Android is in beta and is not in the App Store or Google Play yet. Anyone can join the beta from [trygoat.ai/mobile](https://trygoat.ai/mobile/): - **iPhone and iPad (iOS 18 or later):** install TestFlight from the App Store, then open the [TestFlight invite](https://testflight.apple.com/join/4PXeSgXv) on the device. - **Android (7.0 or later):** open the [Android beta invite](https://appdistribution.firebase.dev/i/b6f930a2e01c9f53) on the phone, enter your email, and download GOAT from the invitation. Allow your browser to install apps when Android asks. You can also build it from source, following the [mobile app README](../../apps/mobile/README.md). The phone connects to a GOAT server on another machine. Follow [remote access](./remote-access.md) to pair it directly or over Tailscale. The "T3 Code" app in the App Store and Google Play belongs to T3 Code, the project GOAT is forked from. It is not GOAT and cannot connect to a GOAT server, which runs a newer server protocol than that app. If the app crashes during launch, open Settings → Diagnostics on the next launch that succeeds. It lists startup crashes from the last 7 days with the error and component stack that store crash reports leave out. Copy the report and paste it into a GitHub issue. Error messages can quote values from the app, so read it over before sharing. ## Providers Open **Settings → Providers** in the web or desktop app, select the environment, and enable the provider you want. Installation, login, and configuration belong to that environment's machine, even when you connect from a phone or another computer. To add one while you work, open the composer's model picker and select **+** at the bottom of the provider list. The window lists every provider with whether it is installed, then installs it when GOAT can and signs you in with the provider's own flow: a browser page, a device code, an API key, or the provider's login command in a terminal inside the window. When a provider can only sign in from its own terminal, the window shows the command to run on that machine and **Check again** confirms it. The picker adds providers to the environment the composer targets, including an SSH-connected machine. The **+** is disabled when your device cannot manage that environment's providers. An agent can ask you to add or sign in to a provider. Its request appears as a card in the thread; **Review request** opens the same window, and the agent never sees what you enter. An agent in a full-access thread can also change provider settings itself: turn providers on or off, add one (including ACP Registry agents such as Devin), choose which local provider Cursor Cloud, Claude Cloud, or Devin Cloud signs in with, or remove one. With [permission profiles](./hub.md#permission-profiles) on, its profile must allow managing providers; **Owner** does. Any other agent asks first, and approving its card makes the change. Signing in to a provider's account always stays with you. | Provider | Install and authenticate | | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | Codex | [Connect with ChatGPT](./providers-codex.md#connect-with-chatgpt), or install [Codex CLI](https://developers.openai.com/codex/cli) and run `codex login`. | | Claude | Install [Claude Code](https://claude.com/product/claude-code), then sign in from GOAT, which runs `claude auth login` in the app. | | Cursor | Install [Cursor CLI](https://cursor.com/cli), then run `agent login`. | | Grok Build | Install [Grok Build CLI](https://x.ai/cli), then sign in from GOAT with an xAI API key, or run `grok login`. | | OpenCode | Install [OpenCode](https://opencode.ai), then run `opencode auth login`. | | Antigravity | Install and sign in with Google from GOAT's provider settings. | | Pi | Install [Pi](./providers-pi.md#set-up-pi) with Node.js 22.19 or newer, then run `pi` and `/login`. | | OmO | Install [OmO](./providers-pi.md#omo) with `npm install -g omo-ai`, then run `omo` and `/login`. | | Muse Code | Install [Muse Code](https://dev.meta.ai/docs/muse-code) on the server, run `muse login`, then enable it in Settings → Providers. | | fx | Install [fx](https://fx.sh) with `curl -fsSL https://fx.sh/setup.sh \| bash`, then run `fx login`. | Provider CLIs must be on the server's `PATH`. On macOS and Linux GOAT also looks, after your `PATH`, in the folders the usual installers use: `~/.local/bin`, `~/.bun/bin`, Homebrew's default location (`/opt/homebrew/bin` on macOS, `/home/linuxbrew/.linuxbrew/bin` on Linux) and `/usr/local/bin`. If GOAT cannot find a CLI, set its **Binary path** in provider settings, especially when using a version manager or a Homebrew installed somewhere else. The desktop app reads `PATH` from your login shell. When that shell is slow to start, GOAT tries again over the next few minutes, and the status of a missing Claude, Codex, Grok, OpenCode, Pi, OmO, fx or Muse Code CLI says that GOAT may not have your shell's current `PATH` yet. If a provider still reads as not found after your shell has answered, restart GOAT: Claude, OpenCode, Muse Code, and any other provider instance with its own environment variables, keep the `PATH` they started with. Cursor's executable is `cursor-agent`, although its login command is `agent login`. Codex connected through ChatGPT and Antigravity can use their managed runtimes without a `PATH` entry. GOAT warns when a provider version has known compatibility problems with your release. Check **Settings → Providers** on that environment for the recommended version or range. When its package manager supports installing a specific version, you can install the recommendation there. Otherwise use the provider's installer on the environment's machine. An unlisted version is unverified. When a provider CLI is behind its latest release, its provider card shows the available version. **Update now** runs the installer that owns the CLI (Homebrew, or a global npm, pnpm, Yarn, Bun, Volta, or Vite+ install), or the CLI's own update command when GOAT cannot tell. Claude, Codex, and OpenCode installs GOAT cannot identify stay manual: update them through the installer you used. Update a CLI installed with mise through mise, and one installed with Nix through Nix. Cursor and Antigravity update with GOAT. Homebrew and Chocolatey installs compare against the version their package manager offers, which can trail the npm release; update Claude installed with Chocolatey through Chocolatey. The managed Codex runtime for Codex connected through ChatGPT first installs the release GOAT tested. When GOAT finds a newer compatible release, its setup in **Settings → Providers** offers an update. The managed Antigravity runtime works the same way. While provider update checks are on (**Settings → Maintenance**), opening Antigravity setup checks Google's CLI release channel at most once an hour, and setup then shows the new version with **Update Antigravity**. Installing or reinstalling checks the channel too. Nothing installs until you choose it, GOAT offers only releases its compatibility list marks supported, and it installs one only after its download matches the SHA-512 digest Google publishes for it. When the channel is unreachable or offers nothing supported, setup offers the release GOAT tested, or keeps your installed release if it is newer. Add another provider instance for a separate account or configuration. Each instance can have its own environment variables, such as API keys or a custom base URL. Mark secret values as sensitive; after saving, GOAT does not display their original values. For provider-specific setup and accounts, see [Codex](./providers-codex.md), [Claude](./providers-claude.md), [OpenCode](./providers-opencode.md), [Antigravity](./providers-antigravity.md), [Pi](./providers-pi.md), [Muse Code](./providers-muse.md), and [fx](./providers-fx.md). ### Provider check timeouts If a provider works in its CLI but GOAT reports a timeout while checking it, allow more time in the GOAT server's environment. For example, give Codex and Claude readiness checks 60 seconds: ```bash GOAT_CODEX_PROBE_TIMEOUT_MS=60000 GOAT_CLAUDE_PROBE_TIMEOUT_MS=60000 goat serve ``` For a remote environment, set these on the machine running the GOAT server. For the background service, put them in `service.env` (see [Configure the service environment](./background-service.md#configure-the-service-environment)) and restart the service. A provider instance can also set its own values in its **Environment variables** in **Settings → Providers**. Each variable extends that provider's readiness-probe deadlines; a phase whose default is already longer keeps its default. Providers with several phases can take longer than one deadline in total. Values must be whole milliseconds no greater than 2147483647; unset or invalid values keep the defaults. | Provider | Environment variable | | ------------------- | ------------------------------------ | | Codex | `GOAT_CODEX_PROBE_TIMEOUT_MS` | | Claude | `GOAT_CLAUDE_PROBE_TIMEOUT_MS` | | Cursor | `GOAT_CURSOR_PROBE_TIMEOUT_MS` | | Antigravity | `GOAT_ANTIGRAVITY_PROBE_TIMEOUT_MS` | | Grok | `GOAT_GROK_PROBE_TIMEOUT_MS` | | fx | `GOAT_FX_PROBE_TIMEOUT_MS` | | Pi | `GOAT_PI_PROBE_TIMEOUT_MS` | | Muse Code | `GOAT_MUSE_PROBE_TIMEOUT_MS` | | OpenCode | `GOAT_OPENCODE_PROBE_TIMEOUT_MS` | | ACP Registry agents | `GOAT_ACP_REGISTRY_PROBE_TIMEOUT_MS` | Longer deadlines also take longer to report a stalled check. These overrides cover readiness and discovery, including OpenCode server startup. Usage and config enrichment retain their own shorter limits. Turn execution, package installation, update checks, and shutdown limits keep their existing behavior. ## Next steps - [Working with threads](./thread-sidebar.md): start tasks and organize parallel work. - [GOAT Bot](./goat-bot.md): message your agents, add bots, and follow their work. - [Permission modes](./permission-modes.md): choose when agents ask before acting. - [Remote access](./remote-access.md): connect from another device. - [Running in the background](./background-service.md): keep a Linux or macOS host available. - [Updating GOAT](./updating.md): update the app and connected servers.