cchpcli

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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.

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>.

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.
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