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 add openai/chat --lang python  # pin a doc version
chub pin list                           # 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_context, chub_pins, 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.21-py3-none-win_amd64.whl (4.5 MB view details)

Uploaded Python 3Windows x86-64

chub-0.1.21-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

chub-0.1.21-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

chub-0.1.21-py3-none-macosx_11_0_arm64.whl (4.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

chub-0.1.21-py3-none-macosx_10_12_x86_64.whl (5.0 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: chub-0.1.21-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.5 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.21-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e0cd883b9421c3f4bea2f576e68efb05a8a05a73dc72b5adfbd86da301c5c768
MD5 6785a994b41e924e8ec002e0cfce46fe
BLAKE2b-256 fe2462f128b59126216a07e430364bda776013942ae6d4e1cf847c66b8fab97a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chub-0.1.21-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7328ff7ca31b9517f797ef3214fff9748d55e0b3ac98c106ce7437ab2488e25f
MD5 ff5f427b4c0448b3c6dc47a447c16971
BLAKE2b-256 42a8a183c311e6a6c079797690e528f718818f6cb5f9de7b253f664573680489

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chub-0.1.21-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bfd351fef8386e6264a9c387073c0a23de484fe51ce1487941ce2e65e3f054cc
MD5 03dc5ed5d779a9020f6f06f674bb9e69
BLAKE2b-256 66a45cec3b02416e9410067856901ede8bf245948d8e1b6ac55d9c8663e67dc2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: chub-0.1.21-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 4.8 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.21-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99c7d42a8579bc070bc582263aa9bc0d3b80e9b880bdd89df180d184ffefaa8e
MD5 587df2649742df468a80380dec260e4a
BLAKE2b-256 52451bcfa55ff8080a66618643a1405f8585443cb47aaf45b15fb6ee0d253a02

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for chub-0.1.21-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0d94e0f251a91015a70e5fb70f1e5573bb8d83010c1a6a3ed731bea6e3522095
MD5 c1b9d0dc1156220aed3d698462881ad7
BLAKE2b-256 d7251b2ba18e633fa09dbb4c2285e35e62acdf10a8669322a50bad287d47bba3

See more details on using hashes here.

Provenance

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