QZ documentation
QZ uses Node.js 22 or later and connects directly to https://qzpkg.com.
Install
Windows PowerShell
$installer = Join-Path $env:TEMP 'qz-install.ps1' Invoke-WebRequest -UseBasicParsing https://qzpkg.com/cli/install.ps1 -OutFile $installer powershell -NoProfile -ExecutionPolicy Bypass -File $installer
Open a new terminal and run qz --version.
Linux and macOS
curl -fsSLO https://qzpkg.com/cli/install.sh sh install.sh export PATH="$HOME/.local/bin:$PATH" qz --version
Direct download: qz.cjs and its SHA-256 checksum.
Install project dependencies
qz init qz add is-number qz install --frozen
Use qz install --production to skip development dependencies. Use qz install --offline after an online install to reuse verified cached archives with your lockfile. Commit qz.lock with package.json. Use qz install --update to resolve dependencies again. Use qz run followed by a script name to run a project script.
Publish from the CLI
Install QZ 0.6.0 or later. Set name in package.json to @username/package, using your QZ username. Set a version, description, main entry, and files list.
qz login qz publish --preview
Open the sign-in link and enter the code. Use qz login --status if your terminal is non-interactive. Review the tarball and publish from the preview page.
Release limits and prereleases
Regular CLI and MCP releases can include up to 512 files and 8 MiB before compression. Each account can store 128 MiB of active releases. Publish a prerelease such as 1.1.0-beta.1 with qz publish --tag beta. Install it with qz add @my-scope/package@beta.
Preview and manage releases
Use qz publish --preview or qz agent preview to prepare a private release. Approve or discard it in your browser. Previews expire after two days. Open Manage release in Studio to edit release notes, change a tag, or set a deprecation warning. Public package pages include a Health tab with manifest details.
Delete a release
Open Studio and select Delete release beside one of your releases. From an approved agent session, qz agent delete <name> <version> gives you a confirmation link. Deleted versions cannot be reused.
Trusted GitHub publishing
In Trusted GitHub publishing, connect your package to a public GitHub repository and workflow. Copy the generated workflow into your repo. Protect release tags and use a tag matching the package version, such as v1.2.0. QZ verifies the GitHub identity token, repository ID, workflow, runner, and tag. No QZ repository secret is needed. The identity check does not create a Sigstore attestation.
CI tokens
Open CI publishing to create a token for one package and get a GitHub Actions workflow or GitLab CI job. Store the token as an Actions secret or a protected, masked GitLab variable. Each token expires after 30 days and can be revoked from the same screen. QZ does not issue Sigstore provenance for these token-based uploads.
Report a package
Open a package page and use Report this release. You can submit a report without signing in. QZ reviews reports before restricting access.
Compatibility
QZ supports registry dependencies, semver, dist tags, optional platform packages, and project scripts. Add required peer dependencies to your project. QZ skips install scripts. Workspaces, Git or file dependencies, and bundled dependencies are currently unsupported. Install rebuilds the project's node_modules directory. If an install was interrupted, run qz recover before retrying.
Agents and MCP
Paste this into your AI agent:
Fetch and read https://qzpkg.com/AGENTS.md to help publish packages.
The agent runs qz agent login and gives you a link and code. Open the link, sign in if asked, and enter the code. When QZ says Successfully linked, tell the agent to continue. Manage or revoke access in Agent settings.
Connect an MCP client
Use Streamable HTTP at https://qzpkg.com/mcp. qz_package is public. qz_whoami, qz_publish, and qz_delete accept an approved QZ bearer token. The QZ CLI handles the browser approval flow. Clients that accept a bearer token from an environment variable can use QZ_AGENT_TOKEN if you have provisioned it securely. The endpoint supports MCP 2026-07-28 discovery and the 2025 handshake. Publishing uses QZ's browser approval flow.
[mcp_servers.qz] url = "https://qzpkg.com/mcp" bearer_token_env_var = "QZ_AGENT_TOKEN"
After qz agent status succeeds, set QZ_AGENT_TOKEN in the shell you use to start the MCP client. These commands read the saved token without displaying it.
PowerShell
$env:QZ_AGENT_TOKEN = (Get-Content -Raw "$env:USERPROFILE/.qz/agent-token.json" | ConvertFrom-Json).token
Linux and macOS
export QZ_AGENT_TOKEN="$(node -p 'require(process.env.HOME + "/.qz/agent-token.json").token')"