Documentation

Packages

npm packages

Everything Chest Gate publishes to npm under @chest-gate/*. Pick the package that fits how you integrate.

Last updated May 20, 2026

All packages are scoped under @chest-gate and published from the chesthq/packages monorepo. Aggregated 90-day install totals are surfaced on the home page.

@chest-gate/sdk

Skill / MCP authors

Drop-in fetch() that pays x402 gates from any agent. Use a managed wallet (agent token) or a local keypair; credit a referrer with a publishable referrer key.

@chest-gate/sdkbash
npm i @chest-gate/sdk

@chest-gate/mcp

Skill / MCP authors

MCP server exposing Chest x402-gated APIs as tools. Earn referrer commission on every paid call from any MCP-capable agent (Claude Desktop, Cursor, etc).

@chest-gate/mcpbash
npm i @chest-gate/mcp

@chest-gate/cli

API providers

Chest Gate CLI. One command to monetise any API with x402 on Solana.

@chest-gate/clibash
npm i -g @chest-gate/cli

@chest-gate/install

Skill / MCP authors

One-command installer for Chest Gate apps. Resolves a slug against the chest.sh registry, fetches its source from GitHub, and drops it in the right runtime folder.

@chest-gate/installbash
npx @chest-gate/install <slug>

@chest-gate/proxy

API providers

x402 reverse proxy engine for Chest. Run your own paid API gate, sign deploy/app payloads, generate API keys, compute splits, resolve referrers.

@chest-gate/proxybash
npm i @chest-gate/proxy

@chest-gate/upstream-proxy

API providers

Templated key-holding proxy: publishers wrap an upstream API without exposing keys to Chest Gate.

@chest-gate/upstream-proxybash
npm i @chest-gate/upstream-proxy

@chest-gate/auth-flow

Client / CLI integrators

OAuth 2.0 Device Authorization Grant (RFC 8628) login flow for Chest Gate clients (CLI, install, SDK). Mints a per-device agent token via chest.sh.

@chest-gate/auth-flowbash
npm i @chest-gate/auth-flow