Skip to main content

Fetch docs, embed locally, expose to AI agents via skills.

Project description

docmancer logo docmancer

Stop your AI from hallucinating APIs. Ground your agents in version-specific docs, locally, for free.

PyPI version License: MIT Python 3.11 | 3.12 | 3.13 CI


docmancer demo

✔ Up-to-date, version-specific documentation straight from the source
✔ Only the chunks your agent needs, not the whole doc site
✔ 100% local. Embeddings, storage, retrieval all on your machine.
✔ Completely free. No rate limits, no quotas, no API keys.
✔ Works offline once ingested. Private and internal docs supported.
✔ No MCP server. Installs as a skill, runs as a CLI.

pipx install docmancer --python python3.13

Quickstart · The Problem · Agents · Why Local? · Commands · Install · Wiki


Quickstart

# 1. Install pipx
brew install pipx
pipx ensurepath

# 2. Open a new shell, then install docmancer
pipx install docmancer --python python3.13

# 3. Ingest a docs source
docmancer ingest https://docs.example.com

# 4. Install the skill into your agents
docmancer install claude-code
docmancer install cursor
docmancer install codex

# 5. Query from the CLI
docmancer query "How do I authenticate?"

No server to start. Config and the default vector store are created under ~/.docmancer/ on first use.


The Problem

AI agents hallucinate APIs. They invent CLI flags, fabricate method signatures, and confidently cite documentation from versions that no longer exist. The root cause is simple: their training data has a cutoff, and they fill gaps by guessing.

The obvious fix, dumping entire doc sites into context, makes it worse. You burn thousands of tokens on irrelevant text and bury the one paragraph that actually matters.

Cloud-based documentation tools add rate limits, usage tiers, and route your queries through third-party servers. Docmancer takes a different approach: you ingest docs once, they are chunked and indexed locally, and the agent retrieves only the matching sections when it needs them.


Works With Every Agent

Docmancer installs a skill file into each agent that teaches it to call the CLI directly. One local index, one ingest step, every agent covered.

Agent Install command
Claude Code docmancer install claude-code
Cline docmancer install cline
Codex docmancer install codex
Cursor docmancer install cursor
Gemini CLI docmancer install gemini
OpenCode docmancer install opencode
Claude Desktop docmancer install claude-desktop

Skills are plain markdown files. No background daemon, no MCP server, no ports. Use --project with claude-code, gemini, or cline to install into the current working directory instead of globally.


Why Local?

DocMancer
Cost Free, always. No tiers, no quotas.
Rate limits None. Query as much as you want.
Private docs Supported free. No paid plan required.
Data privacy Nothing leaves your machine.
Infrastructure No server. CLI + local storage.
Offline use Yes, after ingestion.
Embedding Local FastEmbed. No API key needed.

Commands

Command What it does
docmancer ingest <url-or-path> Fetch, chunk, embed, and index docs locally
docmancer query <text> Retrieve relevant chunks from the local index
docmancer install <agent> Install skill file for a supported agent
docmancer list List ingested sources with timestamps
docmancer fetch <url> Download GitBook docs as markdown (no embedding)
docmancer remove <source> Remove an ingested source from the index
docmancer inspect Show collection stats and config
docmancer doctor Health check: PATH, config, Qdrant, installed skills
docmancer init Create a project-local docmancer.yaml

Use --full with docmancer query to return the entire chunk body (default truncates at 1500 characters). Use --limit N to change how many chunks are returned.

For large ingests, tune ingestion.workers, ingestion.embed_queue_size, web_fetch.workers, embedding.batch_size, and embedding.parallel in docmancer.yaml.


Install

brew install pipx
pipx ensurepath
# open a new shell, then:
pipx install docmancer --python python3.13

Supports Python 3.11-3.13. On Apple Silicon, prefer the native Homebrew Python:

pipx install docmancer --python /opt/homebrew/bin/python3.13

Upgrade with pipx upgrade docmancer.


Documentation

For configuration, troubleshooting, architecture details, and more, see the GitHub Wiki.


Contributing

See CONTRIBUTING.md.

License

MIT License. See LICENSE.


Your agents are guessing. Fix that in two commands.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docmancer-0.1.11.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docmancer-0.1.11-py3-none-any.whl (69.7 kB view details)

Uploaded Python 3

File details

Details for the file docmancer-0.1.11.tar.gz.

File metadata

  • Download URL: docmancer-0.1.11.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docmancer-0.1.11.tar.gz
Algorithm Hash digest
SHA256 e6b115a02acb71d0d1ab02db28c4f3d618c5694b7f1219affe2cb85b0830a629
MD5 058d1d5cc0aa9c029a05f82049eefd20
BLAKE2b-256 9d2ea0efc35174f23b696848fbc7c9ba66d6bec0844206544b3d98b6fc88d245

See more details on using hashes here.

Provenance

The following attestation bundles were made for docmancer-0.1.11.tar.gz:

Publisher: publish.yml on docmancer/docmancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docmancer-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: docmancer-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 69.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for docmancer-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a24127aad436bb678fe741730c84ee8cccb1659849824ecc3b008a2696047108
MD5 39dfb3fceb71a88caeedb7ce68202a6d
BLAKE2b-256 1ef15ecf3f5c07852be1fa27c2501ade60390b45852d19f86ece6c07d290d5e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for docmancer-0.1.11-py3-none-any.whl:

Publisher: publish.yml on docmancer/docmancer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page