# 使用 Homebrew, Nix, scoop, winget 安装 gptscript

查看 gptscript 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gptscript
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:gptscript
- **软件包管理器:** Homebrew
- **版本:** 0.9.9
- **来源摘要:** Develop LLM Apps in Natural Language
- **主页:** <https://docs.gptscript.ai/>
- **仓库:** <https://github.com/gptscript-ai/gptscript>
- **最后更新:** 2026-07-29T16:05:05+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gptscript (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.9.9
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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
## 其他软件包管理器记录

- 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


## Combined YAML source

View the package source record on GitHub. [combined/gptscript.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gptscript.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
