# Install gptscript with Homebrew, Nix, scoop, winget

Develop LLM Apps in Natural Language. Version 0.9.9 via Homebrew; verified 2026-04-10.

## Install

```sh
sudo av install brew:gptscript
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gptscript
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gptscript
```

  Evidence: nixpkgs package indexes: pkgs/by-name/gp/gptscript/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install extras/gptscript
```

  Evidence: Scoop official bucket manifest trees: bucket/gptscript.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id gptscript-ai.gptscript -e
```

  Evidence: Windows Package Manager source index: gptscript-ai.gptscript from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:gptscript
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gptscript>
- **Version:** 0.9.9
- **Source summary:** Develop LLM Apps in Natural Language
- **Homepage:** <https://docs.gptscript.ai/>
- **Repository:** <https://github.com/gptscript-ai/gptscript>
- **Upstream docs:** <https://docs.gptscript.ai/>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/gptscript-ai/gptscript/archive/refs/tags/v0.9.9.tar.gz>
- **Last updated:** 2026-04-10T17:43:09Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gptscript (cli)
- gptscript (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.9.9
- Package-manager updated: 2026-04-10
- Local data: ok
- Upstream repository: https://github.com/gptscript-ai/gptscript
- Upstream latest detected: v0.9.9 (current)
## Project history and usage

GPTScript is an LLM-oriented scripting framework and CLI from the gptscript-ai project. It packages prompts, local commands, OpenAPI-backed tools, SDK libraries, and retrieval workflows into scripts that can be invoked from the command line.

### Project history

The public repository began with an initial commit on 2024-01-29. The README describes GPTScript as a framework for allowing large language models to operate against local executables, remote APIs, and retrieval-backed systems with a small prompt-oriented script surface.

The documentation site presents GPTScript as both a scripting language and a CLI workflow runner, with examples for local CLI chat, OpenAPI endpoints, local files, and automated workflows.

### Adoption history

GPTScript entered package-manager culture quickly because the official installation path includes Homebrew for macOS and Linux and winget for Windows. The Homebrew formula also appears in the supplied package metadata, alongside Nix, Scoop, and winget identifiers.

The project became part of the early wave of LLM command-line automation tools: useful to developers who wanted prompt-authored workflows without writing a full agent application.

### How it is used

Typical use is `gptscript` followed by a local script or a GitHub-hosted script. Official examples include running a chat assistant from `github.com/gptscript-ai/llm-basics-demo` and composing tools that call CLIs, web APIs, or files.

The tool needs model credentials for most real workflows; the existing curation records GPTScript's config JSON as both the config and credential storage location.

### Why package nerds care

For package maintainers, GPTScript is a representative example of post-2023 AI tooling entering ordinary CLI distribution channels. Its packaging spans Homebrew, Nix, Scoop, and winget rather than only an npm, Python, or container ecosystem.

Its command model is also interesting because scripts may reference GitHub-hosted tools directly, making the package itself a launcher and runtime for higher-level LLM workflows.

### Timeline

- 2024-01-29: Public repository history begins with the initial commit.
- 2024: README copyright names Acorn Labs, Inc. and describes the framework for LLM-operated tools.
- 2026-05: Repository history includes work moving parts of the implementation toward a nanobot repository.

### Related projects

- gptscript-ai/llm-basics-demo is used in the official getting-started command as a runnable demo script.
- OpenAPI-backed services, local CLIs, and retrieval tools are first-class integration targets in the official examples.

### Sources

- <https://docs.gptscript.ai/>
- <https://github.com/gptscript-ai/gptscript>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: $XDG_CONFIG_HOME/gptscript/config.json
- macOS: ~/Library/Application Support/gptscript/config.json
- Windows: %APPDATA%\Local\gptscript\config.json

## Credential files

- Linux: $XDG_CONFIG_HOME/gptscript/config.json
- macOS: ~/Library/Application Support/gptscript/config.json
- Windows: %APPDATA%\Local\gptscript\config.json
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gptscript
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - gptscript: normalized package name match | nixpkgs package indexes: pkgs/by-name/gp/gptscript/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - extras/gptscript: normalized package name match | Scoop official bucket manifest trees: bucket/gptscript.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - gptscript-ai.gptscript: normalized package name match | Windows Package Manager source index: gptscript-ai.gptscript from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [context7-mcp](https://www.automicvault.com/pkg/brew/context7-mcp/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [fabric-ai](https://www.automicvault.com/pkg/brew/fabric-ai/) - Shares av.db curated category or tags: ai, automation, cli, developer-tools, llm.
- [clive](https://www.automicvault.com/pkg/brew/clive/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [cmdshelf](https://www.automicvault.com/pkg/brew/cmdshelf/) - Shares av.db curated category or tags: automation, cli, developer-tools, scripting.
- [gollama](https://www.automicvault.com/pkg/brew/gollama/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [gptme](https://www.automicvault.com/pkg/brew/gptme/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [localai](https://www.automicvault.com/pkg/brew/localai/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [mods](https://www.automicvault.com/pkg/brew/mods/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.

## Combined YAML source

View the package source record on GitHub. [combined/gptscript.yml](https://github.com/automic-vault/db/blob/main/combined/gptscript.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
