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.11-py3-none-win_amd64.whl (4.1 MB view details)

Uploaded Python 3Windows x86-64

chub-0.1.11-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.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

chub-0.1.11-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.11-py3-none-win_amd64.whl.

File metadata

  • Download URL: chub-0.1.11-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.11-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7f19a127470288691d5ba3d7704fe8ba3baa9b08432e1f1c1fadfdcf2bca7646
MD5 baf0b22ea5d9499b98eec45ccce8fe88
BLAKE2b-256 0d432656b96d9861acf64e6cd752365746880f55dc81069bae61fec15ebe0e86

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.11-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.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for chub-0.1.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6dfe2e9298e78414b8c1595d898028aa4a697ce87486e249f23c80adf1bc7b62
MD5 166fffc4f339664a5a2501dda22cbdd8
BLAKE2b-256 bf5c69cf224252e3f482b091211d70d8883a29221ae9f88e8190887d92743e00

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.11-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.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for chub-0.1.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 05ea63958dd97d588ae1fedd63842213c82b45850984e818431556679bda6726
MD5 f52243dbff3bc730898eb94199ab6866
BLAKE2b-256 e0ad9efb775c2fe18194b183f4d2d30e54dfabc9c22814ec94258fde6146f1ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.11-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.11-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: chub-0.1.11-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.11-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0b33bb58e4bf778f8b0352b81d138b74b58eb31909af9ca1d573621b2d13f82b
MD5 c1ae1ca948f6b69398ea127484122b4c
BLAKE2b-256 9bff00e82ede48fca98ef5378cc462084409294a8361d484cb889136ca718d44

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.11-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.11-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for chub-0.1.11-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 119ce4f3e9c82197c98f888454e75f3a314eece32c208e61b909916d4d60d2ca
MD5 6501e20ade19f37aef7a5a50c5b9a9e9
BLAKE2b-256 db2d6a35f0b5c7cee21702f33586b0b460c967ffc36141724d99ef8bbf74ef0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for chub-0.1.11-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