| name | chub |
| description | Fetch authoritative API docs from context-hub registry (Andrew Ng). Use before writing integration code for any third-party API to reduce hallucination. Search, fetch, annotate, and rate documentation. |
Context-Hub (chub)
Fetch curated, LLM-optimized API documentation from the context-hub registry.
Always run chub search before writing integration code for a third-party API.
Commands
Search registry:
chub search "stripe"
chub search "openai" --tags llm
chub search
Fetch documentation:
chub get stripe/api
chub get openai/api --lang py
chub get anthropic/sdk --lang js
chub get stripe/api --full
chub get stripe/api --json
Persist learnings across sessions:
chub annotate stripe/api "webhook events missing from docs"
chub annotate openai/api "rate limit header: x-ratelimit-remaining-requests"
Rate documentation quality:
chub feedback stripe/api accurate
chub feedback openai/api incomplete
Keep registry fresh:
chub update
chub update --force
chub cache status
chub cache clear
When to use
- Before writing code that integrates any third-party API
- When uncertain about API auth patterns, error codes, or request shape
- After discovering a documentation gap โ annotate it for future sessions
Typical agentic workflow
- User asks to integrate an API (e.g. Stripe)
- Run
chub search stripe โ find the registry ID
- Run
chub get stripe/api --lang py โ read authoritative docs
- Write integration code grounded in actual docs
- If gap found:
chub annotate stripe/api "note about gap"
Save docs to vault
chub get stripe/api --lang py > "Sources/chub - stripe-api-py.md"
Notes
- Installed at
/opt/homebrew/bin/chub (v0.1.3)
- Config at
~/.chub/config.yaml
- Registry is community-maintained markdown; all docs are inspectable
- Use
--json flag when piping output to other tools or scripts