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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chub-0.1.15-py3-none-win_amd64.whl.
File metadata
- Download URL: chub-0.1.15-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd07e63403de9afecc2cdd0d4288b62f4c4ac05c031a809a90cbdfbc64f2105f
|
|
| MD5 |
508c35e81da82e216fb7e1ffcbeadbf8
|
|
| BLAKE2b-256 |
37a6ded1024ebd18f0aa6d80c295200dd06e25b4c0abf95b781a9c3cf757bb35
|
Provenance
The following attestation bundles were made for chub-0.1.15-py3-none-win_amd64.whl:
Publisher:
release.yml on nrl-ai/chub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chub-0.1.15-py3-none-win_amd64.whl -
Subject digest:
dd07e63403de9afecc2cdd0d4288b62f4c4ac05c031a809a90cbdfbc64f2105f - Sigstore transparency entry: 1154928278
- Sigstore integration time:
-
Permalink:
nrl-ai/chub@7fdbb88ab69970137e98f6de07b423e13701c185 -
Branch / Tag:
refs/tags/v0.1.15 - Owner: https://github.com/nrl-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7fdbb88ab69970137e98f6de07b423e13701c185 -
Trigger Event:
push
-
Statement type:
File details
Details for the file chub-0.1.15-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: chub-0.1.15-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.8 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33b0d1d3be5c207dc18d055d8b25d3cd062095d2f1ec9342693bc8dce7f43e0f
|
|
| MD5 |
7ef8796033f2b63151e69b73ccb9fd26
|
|
| BLAKE2b-256 |
c7fc81a31752995ea92ea36bc6db6b728c8be2a6ccd313f1b79cb4cc05f71af5
|
Provenance
The following attestation bundles were made for chub-0.1.15-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yml on nrl-ai/chub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chub-0.1.15-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
33b0d1d3be5c207dc18d055d8b25d3cd062095d2f1ec9342693bc8dce7f43e0f - Sigstore transparency entry: 1154928287
- Sigstore integration time:
-
Permalink:
nrl-ai/chub@7fdbb88ab69970137e98f6de07b423e13701c185 -
Branch / Tag:
refs/tags/v0.1.15 - Owner: https://github.com/nrl-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7fdbb88ab69970137e98f6de07b423e13701c185 -
Trigger Event:
push
-
Statement type:
File details
Details for the file chub-0.1.15-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: chub-0.1.15-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 4.7 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c90844d37684f626e073312d987dfba07b20bb247b7322794e3993815ecacfff
|
|
| MD5 |
c76fb91df3432ef2540bf529387e3808
|
|
| BLAKE2b-256 |
3259318a67115ba32ae94ff3a50f4d2377169e159203084d02e21557a32a18d4
|
Provenance
The following attestation bundles were made for chub-0.1.15-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
release.yml on nrl-ai/chub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chub-0.1.15-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
c90844d37684f626e073312d987dfba07b20bb247b7322794e3993815ecacfff - Sigstore transparency entry: 1154928284
- Sigstore integration time:
-
Permalink:
nrl-ai/chub@7fdbb88ab69970137e98f6de07b423e13701c185 -
Branch / Tag:
refs/tags/v0.1.15 - Owner: https://github.com/nrl-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7fdbb88ab69970137e98f6de07b423e13701c185 -
Trigger Event:
push
-
Statement type:
File details
Details for the file chub-0.1.15-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: chub-0.1.15-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da1fc11fcfd279db6d68f9ff113f8d615a137f13b21137892e7f52cec7648b50
|
|
| MD5 |
1f38df867ce29b09d23a2ccd04abfb16
|
|
| BLAKE2b-256 |
34b103ac1247de2a29b5a8b16c61fc6b188cd36e411ac7adba1dd44b22699637
|
Provenance
The following attestation bundles were made for chub-0.1.15-py3-none-macosx_11_0_arm64.whl:
Publisher:
release.yml on nrl-ai/chub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chub-0.1.15-py3-none-macosx_11_0_arm64.whl -
Subject digest:
da1fc11fcfd279db6d68f9ff113f8d615a137f13b21137892e7f52cec7648b50 - Sigstore transparency entry: 1154928289
- Sigstore integration time:
-
Permalink:
nrl-ai/chub@7fdbb88ab69970137e98f6de07b423e13701c185 -
Branch / Tag:
refs/tags/v0.1.15 - Owner: https://github.com/nrl-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7fdbb88ab69970137e98f6de07b423e13701c185 -
Trigger Event:
push
-
Statement type:
File details
Details for the file chub-0.1.15-py3-none-macosx_10_12_x86_64.whl.
File metadata
- Download URL: chub-0.1.15-py3-none-macosx_10_12_x86_64.whl
- Upload date:
- Size: 4.6 MB
- Tags: Python 3, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
069e5376965564769204873a1109a3f212942b1cab7915949392dac12300454e
|
|
| MD5 |
fb10a5af26ff27a3371d8f1aed4e55a7
|
|
| BLAKE2b-256 |
33bc67fad862ff15b311c11d857841caff301fed92b6b32cfe2b0bc41398acda
|
Provenance
The following attestation bundles were made for chub-0.1.15-py3-none-macosx_10_12_x86_64.whl:
Publisher:
release.yml on nrl-ai/chub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chub-0.1.15-py3-none-macosx_10_12_x86_64.whl -
Subject digest:
069e5376965564769204873a1109a3f212942b1cab7915949392dac12300454e - Sigstore transparency entry: 1154928281
- Sigstore integration time:
-
Permalink:
nrl-ai/chub@7fdbb88ab69970137e98f6de07b423e13701c185 -
Branch / Tag:
refs/tags/v0.1.15 - Owner: https://github.com/nrl-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7fdbb88ab69970137e98f6de07b423e13701c185 -
Trigger Event:
push
-
Statement type: