Context Hub CLI

A command-line tool for AI agents to access verified API documentation

Quick Start for using with AI Agents

1

Install Context Hub CLI globally

npm install -g @context-hub/cli
2

Ask your AI agent to fetch documentation

Example with Claude:

"Please run: chub get openai-chat"

Claude will execute the command and receive the latest OpenAI documentation

3

AI agent uses verified documentation

Your AI agent now has access to accurate, up-to-date API information and can generate correct code without hallucinations.

For AI Agents: Run chub --help to discover all available commands and options. Works with Claude Code, Cursor, ChatGPT, and other AI coding assistants.

Requires Node.js 16+ and npm installed on your system

Common Commands

List all available libraries

$chub list

Get OpenAI documentation (JavaScript)

$chub get openai-chat

Get OpenAI documentation (Python)

$chub get openai-chat --lang python

Search for payment libraries

$chub search payment

Update local cache

$chub update

Open Source

Context Hub is open source and welcomes contributions