System requirements
Before installing GitNexus, ensure your system meets these requirements:| Requirement | Version |
|---|---|
| Node.js | >= 18.0.0 |
| Git | Any recent version |
| Operating System | Linux, macOS, or Windows |
GitNexus uses native bindings for Tree-sitter and KuzuDB. These are pre-compiled for most platforms and installed automatically.
Installation methods
Use without installing (recommended)
The fastest way to use GitNexus is withnpx — no installation required:
Global installation
For regular use, install GitNexus globally:gitnexus commands from anywhere:
Local installation
You can also install GitNexus as a dev dependency in a specific project:package.json
Verify installation
Check that GitNexus is installed correctly:1.3.6).
Supported languages
GitNexus supports parsing and indexing for these languages:TypeScript
Full support for TS syntax, imports, and type resolution.
JavaScript
ES6+, CommonJS, and ESM.
Python
Classes, functions, imports.
Java
Classes, methods, inheritance.
C
Functions, headers.
C++
Classes, templates, inheritance.
C#
Classes, methods, namespaces.
Go
Packages, functions, interfaces.
Rust
Modules, functions, traits, impls.
PHP
Classes, functions, namespaces.
Swift
Classes, protocols, extensions.
Post-install setup
1. Index your first repository
Navigate to any git repository and run:.gitnexus/ directory with the knowledge graph. The directory is automatically added to .gitignore.
2. Configure MCP for your editor
Run the auto-setup:- Claude Code: Full support (MCP + skills + hooks)
- Cursor: MCP + skills
- Windsurf: MCP only
- OpenCode: MCP + skills
3. Verify MCP connection
Restart your editor, then ask your AI agent:CLI commands reference
Here are all the commands you’ll use:Core commands
Management commands
Advanced commands
Storage and privacy
Where data is stored
GitNexus stores data in two places:-
Per-repo index:
.gitnexus/inside each indexed repository- Knowledge graph database (KuzuDB)
- Search indexes (BM25 + embeddings)
- Metadata (last commit, indexed date)
- Automatically added to
.gitignore
-
Global registry:
~/.gitnexus/registry.json- List of all indexed repos
- Paths and metadata only (no code)
- Used by MCP server to discover repos
Privacy guarantees
No network calls
GitNexus CLI runs 100% locally. No telemetry, no analytics, no phone-home.
No cloud uploads
Your code stays on your machine. Nothing is uploaded to any server.
Gitignored by default
The
.gitnexus/ directory is automatically added to .gitignore.Open source
Audit the code yourself: github.com/abhigyanpatwari/GitNexus
Troubleshooting
”Not inside a git repository”
GitNexus only indexes git repositories. If you see this error:“Module did not self-register”
This error means native bindings (Tree-sitter or KuzuDB) failed to load. Usually caused by Node version mismatch. Fix:- Check Node version:
node --version(must be >= 18) - Reinstall GitNexus:
npm install -g gitnexus - If still failing, open an issue with your Node version and OS
Large repos / out of memory
GitNexus automatically increases heap size to 8GB for large repos. If you still hit memory limits:Stale index warning
If you see “Index is stale” warnings from MCP resources:Next steps
Quickstart
Get up and running in under 2 minutes.
MCP integration
Learn about tools, resources, and prompts.
Web UI
Try the browser-based graph explorer.
CLI reference
Full CLI command documentation.