@allternit/gizzi-code

中文文档
2.2.16发布于 2026/11/02Apache-2.0ES Module零依赖近 30 天下载 2726

AI-powered terminal interface for the Allternit ecosystem

原始使用文档
文档目录9 节
  1. Install
  2. Platform support
  3. Quick start
  4. Configuration
  5. Development
  6. Repository layout
  7. Security
  8. Telemetry
  9. License

Gizzi Code

AI-powered terminal coding agent for the Allternit ecosystem. Gizzi Code runs locally, speaks to the LLM provider you configure, and integrates with the Allternit platform (cloud auth, cowork runs, rails mail, the alt_ API-key ecosystem) when you connect it.

Install

macOS / Linux:

curl -fsSL https://install.gizziio.com/install | bash

Windows (PowerShell):

irm https://install.gizziio.com/install.ps1 | iex

PE32+ x64 zip with checksums.txt verification. Credentials are stored via Windows DPAPI (CurrentUser). ARM64 Windows runs the x64 build under emulation.

Homebrew (macOS / Linux):

brew tap allternit/tap
brew trust --formula allternit/tap/gizzi-code   # newer Homebrew asks you to trust a third-party tap first
brew install allternit/tap/gizzi-code           # installs gizzi and the Allternit Factory engine

Scoop / winget (Windows):

scoop bucket add allternit https://github.com/Allternit/scoop-bucket
scoop install gizzi-code
winget install Allternit.GizziCode

npm (canonical, all platforms):

npm install -g @allternit/gizzi-code

Or grab a prebuilt binary from the releases page (assets gizzi-code-v<version>-<target>.tar.gz / .zip; tags gizzi-code/v<version>). The repo installer also works without waiting for install.gizziio.com:

curl -fsSL https://raw.githubusercontent.com/Allternit/allternit-platform/main/cmd/gizzi-code/install | bash

Platform support

PlatformStatus
macOSPrimary target; signed & notarized builds planned
LinuxSupported
WindowsSupported — PE32+ x64 zip; credentials stored with DPAPI (CurrentUser). ARM64 uses the x64 build under emulation

Quick start

gizzi                    # interactive session
gizzi exec "fix the failing tests"   # one-shot, non-interactive
gizzi serve              # local HTTP/WebSocket server (opt-in)
gizzi api-keys list      # manage Allternit platform tokens
gizzi doctor             # updater + environment health
gizzi --help             # everything else

Configuration

  • Provider keys: ALLTERNIT_API_KEY for first-party Allternit, plus standard provider env vars (OPENAI_API_KEY, …) or an auth profile in ~/.config/gizzi-code/config.toml.
  • Platform token: gizzi api-keys set allternit alt_... (durable scoped keys) or run the login flow (gizzi org status will point you at it when missing).
  • Env overrides: ALLTERNIT_API_URL, GIZZI_PLATFORM_API_URL, GIZZI_CLERK_ISSUER — defaults live in src/shared/constants/cloudUrls.ts and allternitGateway.ts.

Development

pnpm install                 # from the repo root (pnpm monorepo)
cd cmd/gizzi-code
bun run dev                  # run from source
bun run typecheck            # tsc --noEmit (builds packages/sdk dist first)
bash script/ci-smoke-test.sh # empirically-green test subset
bun run build                # production binary -> dist/gizzi-code

Repository layout

This package lives at cmd/gizzi-code inside the Allternit/allternit-platform monorepo. Platform services it talks to: cmd/allternit-cloud-api (public cloud API, api.allternit.com) and cmd/allternit-api (local gateway backend, loopback-only today — see reports/2026-09-04-backend-b-deploy-decision.md).

Security

See SECURITY.md. Server mode is opt-in and unauthenticated without GIZZI_SERVER_PASSWORD; the permission system is a UX feature, not a sandbox.

Telemetry

Usage telemetry is on by default, anonymous, and never includes prompts, file contents, or credentials. Disable it with gizzi config telemetry off or GIZZI_TELEMETRY=off. Full field-level inventory: docs/telemetry.md.

License

Apache License 2.0. See LICENSE and NOTICE.

版本与发布记录

@allternit/gizzi-code 共发布 39 个版本,首次发布于 2026/04/13;过去 12 个月发布了 39 个版本。

版本发布日期距今
2.2.16latest2026/11/025 天前
2.2.152026/10/2811 天前
2.2.142026/10/2711 天前
2.2.132026/10/2415 天前
2.2.122026/10/2415 天前
2.2.112026/10/2315 天前

关于 @allternit/gizzi-code 的常见问题

@allternit/gizzi-code 是什么?

AI-powered terminal interface for the Allternit ecosystem

如何安装 @allternit/gizzi-code?

在项目目录运行 npm install @allternit/gizzi-code,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 gizzi、gizzi-code,可以用 npx gizzi 直接运行。

@allternit/gizzi-code 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/allternit__gizzi-code 是否存在。

@allternit/gizzi-code 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@allternit/gizzi-code 可以商用吗?

@allternit/gizzi-code 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@allternit/gizzi-code 的下载量有多少?

根据 npm 官方下载统计,@allternit/gizzi-code 在 2026/10/06 – 2026/11/04 这 30 天内被下载 2,726 次,日均约 91 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@allternit/gizzi-code 还在维护吗?

最新版本 2.2.16 发布于 2026/11/02(5 天前);至今共发布 39 个版本,其中过去 12 个月发布了 39 个;首次发布于 2026/04/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。