Skip to main content

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

Release files for chub 0.1.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for chub 0.1.22
File
chub-0.1.22-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
chub-0.1.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
chub-0.1.22-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
chub-0.1.22-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
chub-0.1.22-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 25.2 MB

Release files / chub-0.1.22-py3-none-win_amd64.whl

Download URL chub-0.1.22-py3-none-win_amd64.whl
Size 4.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
0b0c81561b113ff209418d177521e24c2e52b62ac986c97f5a8ec252d54e3885
BLAKE2b-256 checksum
How to use checksums
ec52f2aebc313d2af242f50135252b23cef5fa0287aa8aa5f72913a74f1b9057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.

Transparency log

Release files / chub-0.1.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL chub-0.1.22-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 5.4 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
18528c6dc96538cfc74e5dbef0b54b278a6cc6ab8580a001c2ca54d2d49eca41
BLAKE2b-256 checksum
How to use checksums
7514e2fd716b4ac63f271a4adc26fbcd9c94c6bad2c18a3f6a9242831ee3fe4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.

Transparency log

Release files / chub-0.1.22-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL chub-0.1.22-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 5.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
dfc5bf34d8bf44f81981e4f1af6d2f24e80cd2d73632efb5d82753b5a33e3530
BLAKE2b-256 checksum
How to use checksums
68b8ba14a0d2cc042705eeb535d8947f3b8ff9140ac93b2308103291c0674676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.

Transparency log

Release files / chub-0.1.22-py3-none-macosx_11_0_arm64.whl

Download URL chub-0.1.22-py3-none-macosx_11_0_arm64.whl
Size 4.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fc79f01a028c5497489ca584aa5ed599956843e879a752d1b97db6cd66d8d3aa
BLAKE2b-256 checksum
How to use checksums
78bab9603e5f0827c0934b3378bc4c0e0fff83ac062a83b825aadcbedb2c3aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.

Transparency log

Release files / chub-0.1.22-py3-none-macosx_10_12_x86_64.whl

Download URL chub-0.1.22-py3-none-macosx_10_12_x86_64.whl
Size 5.2 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
33704906427a909e49f5fb9fcea83243996e5122fc2935523e9eeb4b4840b46f
BLAKE2b-256 checksum
How to use checksums
7731c6e6d336fce7e2b26522242506e1bb64d5af439cb522fc0d7845bcfe7d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.22 This release

5 release files

0.1.21

5 release files

0.1.20

5 release files

0.1.19

5 release files

0.1.15

5 release files

0.1.13

5 release files

0.1.12

5 release files

0.1.11

5 release files

0.1.10

5 release files

0.1.7

5 release files

0.1.6

5 release files

0.1.3

5 release files

0.1.1

5 release files

0.1.0

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page