cchpcli

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

cchp

The command-line tool for CCHP (Claude Code Hub Plus). People get a home screen with a usage heatmap, wallet and package details, providers, keys, LLM tokens and recent requests. Agents and scripts get every control-plane operation behind one predictable JSON contract, and the CCHP documentation in six languages.

The cchp home screen

Install

With Homebrew (macOS or Linux):

brew install cch-hq/tap/cchp

Or with the install script:

curl -fsSL https://raw.githubusercontent.com/CCH-HQ/cchp-cli/main/install.sh | sh

Or with Go: go install github.com/CCH-HQ/cchp-cli/cmd/cchp@latest. Details and other options: docs/install.md.

Start in 30 seconds: people

  1. In the CCHP console, open Account › Security › Management tokens and create a token.
  2. Run cchp login, enter your server address and paste the token.
  3. Run cchp and pick a task.

Signing in

Start in 30 seconds: agents

export CCHP_BASE_URL=https://hub.example.com
export CCHP_TOKEN_FILE=~/.config/cchp/token        # a file only you can read
cchp commands --search "usage summary" --json       # find the operation
cchp schema getUsageSummary --json                  # its inputs and output
cchp api getUsageSummary --json                     # one JSON result on stdout
cchp skill install --project                        # teach Claude Code the loop

Agent mode reads only; changes need --allow-write, and deletions or one-time secrets also need --confirm <operationId>.

Look things up in the CCHP docs

cchp docs reads the documentation at cch-plus.com through its llms.txt files and full-text search, in zh-CN, zh-TW, en, ja, ru and ko. It needs no sign-in, so an agent can answer a user's question, or find how to configure something before it runs the matching cchp command:

# "How do I deploy CCHP with Docker Compose?"
cchp docs search "docker compose" --lang en --read-top 1 --json

# 「怎么给供应商配置网络代理?」
cchp docs search 网络代理 --lang zh-CN --read-top 1 --json
cchp commands --search "provider network proxies" --json

cchp docs index --lang ja                             # every page by section
cchp docs read installation/docker-compose --lang ko  # one page as Markdown
cchp docs full --lang zh-TW > cchp-docs.md            # every page in one file

The language is --lang, then CCHP_DOCS_LANG, then the system locale, then English. Details: docs/docs-commands.md.

Documentation

In the terminal: cchp guide lists short guides, and every command has --help.

License

MIT

Documentation

Overview

Package cchpcli embeds the documents cchp ships inside its binary: the agent skill and the task guides.

Index

Constants

This section is empty.

Variables

View Source
var Docs embed.FS

Docs holds skills/ (the agent skill and the AGENTS.md snippet) and guides/.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
cchp command
Command cchp is the command-line tool for CCHP (Claude Code Hub Plus).
Command cchp is the command-line tool for CCHP (Claude Code Hub Plus).
cchp-gen command
Command cchp-gen builds everything cchp derives from the pinned CCHP spec:
Command cchp-gen builds everything cchp derives from the pinned CCHP spec:
internal
assets
Package assets embeds the files cmd/cchp-gen generates from the pinned spec.
Package assets embeds the files cmd/cchp-gen generates from the pinned spec.
auth
Package auth stores the management token, binds it to one server and resolves the credential for each run.
Package auth stores the management token, binds it to one server and resolves the credential for each run.
catalog
Package catalog holds the pre-parsed operation index that cchp ships inside the binary.
Package catalog holds the pre-parsed operation index that cchp ships inside the binary.
cli
Package cli is cchp's command tree.
Package cli is cchp's command tree.
contract
Package contract defines cchp's machine output: one JSON result object on stdout per run (or NDJSON lines for streams), stable error kinds and exit codes.
Package contract defines cchp's machine output: one JSON result object on stdout per run (or NDJSON lines for streams), stable error kinds and exit codes.
engine
Package engine runs CCHP operations through embedded Restish v2.
Package engine runs CCHP operations through embedded Restish v2.
redact
Package redact is the one redaction policy for everything cchp prints or saves outside an explicit secret destination: debug traces, dry runs, error messages, diagnostics and saved output.
Package redact is the one redaction policy for everything cchp prints or saves outside an explicit secret destination: debug traces, dry runs, error messages, diagnostics and saved output.
runner
Package runner executes one catalog operation end to end: input checks, policy, credentials, the Restish engine, pagination, secrets and downloads.
Package runner executes one catalog operation end to end: input checks, policy, credentials, the Restish engine, pagination, secrets and downloads.
sitedocs
Package sitedocs reads the CCHP documentation site through the llms.txt protocol: each language's llms.txt index, its pages as Markdown, the whole language in one llms-full.txt, and the site's full-text search.
Package sitedocs reads the CCHP documentation site through the llms.txt protocol: each language's llms.txt index, its pages as Markdown, the whole language in one llms-full.txt, and the site's full-text search.
tui
Package tui is cchp's interactive home screen for people: a short task list, guided sign-in, searchable lists and plain-language errors.
Package tui is cchp's interactive home screen for people: a short task list, guided sign-in, searchable lists and plain-language errors.
ui
Package ui holds cchp's one restrained palette.
Package ui holds cchp's one restrained palette.
test
e2e/bootstrap command
Command bootstrap prepares a fresh CCHP server for the cchp end-to-end tests.
Command bootstrap prepares a fresh CCHP server for the cchp end-to-end tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL