Skip to main content

Chub: high-performance curated docs for AI coding agents with team sharing

Project description

Chub

The missing context layer for AI-assisted development teams.

Chub is a high-performance CLI + MCP server that serves curated, versioned API documentation to AI coding agents. It is a Rust rewrite of Context Hub with team-first features: shared doc pinning, git-tracked annotations, context profiles, and agent config sync.

Installation

pip install chub

Pre-built wheels are available for:

  • Linux x86_64, ARM64
  • macOS x86_64, Apple Silicon
  • Windows x86_64

Quick Start

# Search for docs
chub search "stripe payments"

# Fetch a doc
chub get openai/chat --lang python

# List all available docs
chub list

# Initialize project for team sharing
chub init

You can also invoke Chub as a Python module:

python -m chub search "stripe"
python -m chub get openai/chat --lang python

Usage

Search and fetch

chub search "stripe"                    # BM25 search
chub search "auth" --limit 5            # limit results
chub get stripe/api --lang python       # fetch a doc
chub get openai/chat --version 4.0      # specific version
chub list                               # list all docs
chub list --json                        # JSON output

Team features

chub init                               # create .chub/ project directory
chub init --from-deps                   # auto-detect dependencies
chub pin openai/chat --lang python      # pin a doc version
chub pins                               # list pinned docs
chub profile use backend                # activate a profile
chub annotate openai/chat "note" --team # team annotation
chub detect --pin                       # auto-pin from deps
chub agent-config generate              # generate CLAUDE.md, .cursorrules

Cache management

chub update                             # refresh cached registry
chub cache status                       # show cache state
chub cache clear                        # clear local cache

MCP Integration

Add to your MCP config (.mcp.json for Claude Code, .cursor/mcp.json for Cursor):

{
  "mcpServers": {
    "chub": {
      "command": "chub",
      "args": ["mcp"]
    }
  }
}

MCP tools: chub_search, chub_get, chub_list, chub_annotate, chub_feedback.

How It Works

This Python package is a thin wrapper around the native Rust binary. When you run chub or python -m chub, it delegates to the platform-specific compiled binary bundled in the wheel. No Python runtime dependencies are required.

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

chub-0.1.12-py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 3Windows x86-64

chub-0.1.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

chub-0.1.12-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

chub-0.1.12-py3-none-macosx_11_0_arm64.whl (4.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

chub-0.1.12-py3-none-macosx_10_12_x86_64.whl (4.6 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file chub-0.1.12-py3-none-win_amd64.whl.

File metadata

  • Download URL: chub-0.1.12-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chub-0.1.12-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1c3b40983ef23b7cae23bbe281fa72126f63c74065ac4204faf1f5eec229162c
MD5 b276dd0a61dfe869cd4220e0801ca469
BLAKE2b-256 b4c3a270d96f7ab41de0d3db059ced1ef539f5f0cd835abd335822ae9ed21273

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.12-py3-none-win_amd64.whl:

Publisher: release.yml on nrl-ai/chub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chub-0.1.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chub-0.1.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 29196a5be07678ffdeeb5506f56386ac5977bf412146230d1cfc9b81a0c07ba5
MD5 211ba52d041d451fc8e9cf85dd460d45
BLAKE2b-256 40c3ddcc24099dd318ab3534596ba10965c944f6e6d0e2706284c4fb947ff3aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on nrl-ai/chub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chub-0.1.12-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chub-0.1.12-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 02639b387a4e3d261ce1f5802032bfef337841fc78aed5e72696fb7bb8da5a5e
MD5 19648454dedffdba112ec5790b4af93b
BLAKE2b-256 b119cdf68fd55f56aefd3c7962f2e91a13116926326d2759722ae9703ce3d65f

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.12-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on nrl-ai/chub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chub-0.1.12-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: chub-0.1.12-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 4.4 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chub-0.1.12-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3232556e593d90311ca06433c636a9872eca1297e093cfd02272070d377ca6ec
MD5 ec688970beb30f048dafcae50c3e4411
BLAKE2b-256 7de0312b9652ecff197b684ee90c39d84ab5cb107d3ce87963d04f61ac9f3889

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.12-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on nrl-ai/chub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chub-0.1.12-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chub-0.1.12-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 99cdb667ec6f022d390930e904db949caece837516f4a618d98345a5aa43453f
MD5 a4657442bbd6061b97ecc079bbe75aaf
BLAKE2b-256 9f9fa0931c8e5ef270dc655571eb5e0c48a3d68ebfc9730ee0d2ab8442a97e6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.12-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on nrl-ai/chub

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page