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.2.0.tar.gz (1.4 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.2.0-py3-none-any.whl (152.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for docmancer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c7545dc8f11dd82fd4e1e9feed5a4d1a42a71a69002b11fdcece13203f3917e0
MD5 6468f368b294480ad9f67ef0d7c9b1cb
BLAKE2b-256 73bf93c88ee73010e3521f2cb604a142c9876cb0ebb23bbcd3e96763adb2eea4

See more details on using hashes here.

Provenance

The following attestation bundles were made for docmancer-0.2.0.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.2.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for docmancer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4548f4edbf07c48a7f8200dec4275b118df5b8032c456c7fff7c43f6e73cc297
MD5 afec870c1def39453a69cb99bac912ae
BLAKE2b-256 2ba892c32b9016eeabb7b5b33611f2b5b44b036b28d055113d5f7766cc869468

See more details on using hashes here.

Provenance

The following attestation bundles were made for docmancer-0.2.0-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