Search and query local documentation knowledge bases using docmancer CLI. Use when the user asks about third-party library docs, API references, vendor documentation, version-specific API behavior, GitBook or Mintlify public docs, offline or local doc search, or needs to ground agent responses in up-to-date external documentation.
Compress documentation context so coding agents spend tokens on code, not docs. Fetch from public sites (GitBook, Mintlify, GitHub, generic web), index locally with SQLite FTS5, and retrieve compact context packs with source attribution. No API keys, no vector database, no background daemons.
The PyPI package is MIT open source; local indexing and query stay the core free product. The hosted registry at www.docmancer.dev is optional, with paid or team offerings (for example organization registry use and priority support) attached to that service, not to removing open source access to the CLI.
docmancer listdocmancer search <library>docmancer pull <pack> (or docmancer pull <pack>@<version>)docmancer add <url-or-path>docmancer query "<question>"docmancer add <url-or-path>
Fetch and index docs from a URL or local path. Auto-detects the docs platform.
| Flag | Purpose |
|---|---|
--provider <auto|gitbook|mintlify|web|github> | Force a specific provider (default: auto) |
--strategy <strategy> | Force discovery strategy (llms-full.txt, sitemap.xml, nav-crawl) |
--max-pages <n> | Cap pages fetched (default: 500) |
--browser | Playwright fallback for JS-heavy sites |
--recreate | Drop and rebuild the index for this source |
docmancer query "<question>"
Returns a compact markdown context pack with source attribution and token savings. This is the primary command agents should call.
| Flag | Purpose |
|---|---|
--budget <n> | Max estimated output tokens (default: 2400) |
--limit <n> | Max sections to return |
--expand | Include adjacent sections around matches |
--expand page | Include full page content within budget |
--format <markdown|json> | Output format (default: markdown) |
docmancer search <query> # search the public registry
docmancer pull <pack> # install latest trusted version
docmancer pull <pack>@<version> # pin to a specific version
docmancer pull # install all packs from docmancer.yaml
docmancer packs # list installed registry packs
docmancer packs sync # sync with manifest (--prune to drop extras)
docmancer publish <url> # submit a docs URL for community indexing
docmancer audit <path> # scan a local pack archive for suspicious patterns
docmancer update [source]
Re-fetch and re-index all sources, or a specific one. Use when docs may have changed upstream.
| Command | Purpose |
|---|---|
docmancer list | Show indexed documentation sources |
docmancer list --all | Show every stored page/file |
docmancer inspect | Show index stats and extract locations |
docmancer remove <source> | Remove a source or installed pack |
docmancer remove --all | Clear the entire index |
| Command | Purpose |
|---|---|
docmancer setup | Create config/database and install detected agent skills |
docmancer setup --all | Install all agent integrations non-interactively |
docmancer doctor | Check config, index health, registry connectivity, and agent skill installs |
docmancer init | Create project-local docmancer.yaml |
docmancer install <agent>
Supported agents: claude-code, claude-desktop, cline, cursor, codex, codex-app, codex-desktop, gemini, opencode. Add --project for project-local installation instead of global.
| Command | Purpose |
|---|---|
docmancer auth login | Authenticate with the registry (OAuth device code flow) |
docmancer auth logout | Remove stored credentials |
docmancer auth status | Show authentication status and subscription tier |
| Command | Purpose |
|---|---|
docmancer dataset generate --source <dir> | Generate eval dataset scaffold (default: 50 entries) |
docmancer eval --dataset <path> | Run retrieval evaluation (MRR, hit rate, latency) |
docmancer eval --dataset <path> --judge | Add LLM-as-judge scoring (requires API key) |
docmancer ingest; it is deprecated. Use docmancer add instead.docmancer query before adding a source with docmancer add or pulling a pack with docmancer pull. Check docmancer list first.docmancer list before querying.docmancer search and docmancer pull for well-known libraries before falling back to docmancer add.