Query GitHub repository wikis via DeepWiki — without MCP overhead.
Homebrew (macOS/Linux)
brew tap hamsurang/deepwiki-cli
brew install deepwiki-cliCargo
cargo install deepwiki-cliBuild and run the CLI locally from source:
git clone https://github.com/hamsurang/deepwiki-cli.git
cd deepwiki-cliVerify your Rust toolchain:
rustc --version
cargo --versionThe Rust channel is pinned via rust-toolchain.toml.
Convenient cargo aliases are defined in .cargo/config.toml:
cargo ck
cargo fmt-check
cargo lintBuild the project:
cargo build
cargo build --releaseRun locally with Cargo:
cargo run -- ask facebook/react "How does useEffect work?"
cargo run -- structure facebook/react
cargo run -- read facebook/reactRun tests:
cargo testLocal lint/format checks:
cargo fmt-check
cargo lint
cargo testApply formatting locally:
cargo fmt --allInstall typo and naming lint tools (once):
cargo install typos-cli
npm install --global @ls-lint/ls-lintRun typo and naming checks:
typos
ls-lint -config .ls-lint.jsonTroubleshooting:
- This CLI calls DeepWiki over network (
https://mcp.deepwiki.com/mcp), so internet access is required. - If
cargois not found, ensure$HOME/.cargo/binis in yourPATH.
deepwiki-cli ask facebook/react "How does useEffect work?"
deepwiki-cli structure facebook/react
deepwiki-cli read facebook/reactUse with hamkit's deepwiki plugin instead of MCP connection:
| Method | Overhead |
|---|---|
| MCP server connection | initialize + tool listing per session |
| deepwiki CLI (this tool) | result text only |
The CLI calls DeepWiki's HTTP API directly via Bash tool — only the result text enters Claude's context.