# 使用 npm 安装 chatgpt

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

## 安装

```sh
sudo av install npm:chatgpt
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g chatgpt
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:chatgpt
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/chatgpt>
- **版本:** 5.2.5
- **来源摘要:** Node.js client for the official ChatGPT API.
- **主页:** <https://github.com/transitive-bullshit/chatgpt-api#readme>
- **仓库:** <https://github.com/transitive-bullshit/chatgpt-api>
- **上游文档:** <https://github.com/transitive-bullshit/chatgpt-api#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/chatgpt/-/chatgpt-5.2.5.tgz>
- **问题跟踪器:** <https://github.com/transitive-bullshit/chatgpt-api/issues>
- **发布时间:** 2023-05-31T02:42:18.048Z
- **最后更新:** 2023-05-31T02:42:18.048Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- chatgpt (cli)
- chatgpt (别名)

## 依赖

- cac
- conf
- eventsource-parser
- js-tiktoken
- keyv
- p-timeout
- quick-lru
- read-pkg-up
- uuid

## 构建依赖

- @keyv/redis
- @trivago/prettier-plugin-sort-imports
- @types/node
- @types/uuid
- del-cli
- dotenv-safe
- husky
- lint-staged
- npm-run-all
- ora
- prettier
- tsup
- tsx
- typedoc
- typedoc-plugin-markdown
- typescript

## 安装行为

- post-install 钩子: 未定义
- npm 生命周期脚本: prepare
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 5.2.5
- 管理器更新时间: 2023-05-31
- 本地数据: OK
- 上游仓库: https://github.com/transitive-bullshit/chatgpt-api
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 chatgpt 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 5.2.5
- **Version Count:** 115
- **Maintainers:** fisch0920
- **Author:** Travis Fischer
- **Publisher:** fisch0920
- **Engines:** Node: >=14
- **Integrity:** sha512-DNhBzPb2zTDjJADY44XfngMvsvrvHRq1md2VPXLmnKeP1UCeA1B6pV3s9ZRwlcgjVT0RyM77fRj1xj5V11Vctg==
- **Shasum:** 6a9f951fd58d8501ff0384a338eacdc0e3d8544f
- **Unpacked Size:** 130,754
- **File Count:** 0
- **Created At:** 2022-12-03T00:06:50.270Z
- **Latest Published At:** 2023-05-31T02:42:18.048Z
- **Modified At:** 2023-05-31T02:42:18.159Z

## 其他软件包管理器记录

- Nix - chatgpt: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/chatgpt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Chocolatey - chatgpt: normalized package name match | Chocolatey community package catalog: chatgpt from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.9919996','gmkvextractgui'
- Scoop - extras/chatgpt: normalized package name match | Scoop official bucket manifest trees: bucket/chatgpt.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - j178.ChatGPT: normalized package name match | Windows Package Manager source index: j178.ChatGPT from https://cdn.winget.microsoft.com/cache/source.msix
- winget - lencx.ChatGPT: normalized package name match | Windows Package Manager source index: lencx.ChatGPT from https://cdn.winget.microsoft.com/cache/source.msix
- winget - sonnylab.chatgpt: normalized package name match | Windows Package Manager source index: sonnylab.chatgpt from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [msw-auto-mock](https://www.automicvault.com/zh-hans/pkg/npm/msw-auto-mock/) - Local package facts share a topical domain. Shared terms: ai, api, cac, cli, developer.
- [prismic-ts-codegen](https://www.automicvault.com/zh-hans/pkg/npm/prismic-ts-codegen/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, client, developer, developer-tools, lru.
- [reasonix](https://www.automicvault.com/zh-hans/pkg/npm/reasonix/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai, cli, developer, developer-tools, eventsource.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
