Syntax
Description
Starts a local HTTP server that serves the GitNexus API for all indexed repositories. This enables the GitNexus web UI to connect to your local indexes without re-uploading or re-indexing. The server:- Serves all indexed repositories from the global registry
- Exposes a REST API for all GitNexus tools
- Enables the web UI to access your local knowledge graphs
- Supports AI chat with full tool access
Options
Port number to listen on.Default:
4747Bind address.Default:
127.0.0.1 (localhost only)Use 0.0.0.0 to allow remote access from other devices on your network.Usage Examples
Start server on default port
Use custom port
Allow remote access
Custom port and remote access
Output Example
Web UI Integration
Once the server is running:- Open https://gitnexus.vercel.app in your browser
- The web UI auto-detects the local server
- All your indexed repositories appear in the UI
- AI chat has full access to GitNexus tools (Cypher, search, code navigation)
API Endpoints
The server exposes these endpoints:GET /repos— List all indexed repositoriesPOST /tools/query— Hybrid searchPOST /tools/context— Symbol contextPOST /tools/impact— Blast radius analysisPOST /tools/detect_changes— Git diff impactPOST /tools/rename— Multi-file renamePOST /tools/cypher— Raw Cypher queries
Remote Access
By default, the server only accepts connections from127.0.0.1 (localhost). This prevents other devices on your network from accessing your code.
If you want to access the web UI from another device (e.g., tablet, phone), use --host 0.0.0.0:
http://<your-ip>:4747.
Security Note: This exposes your code intelligence to your local network. Only use this on trusted networks.
When to Use
Use the HTTP server when:- You want to browse your knowledge graph in a web UI
- You want to use AI chat with full GitNexus tool access
- You want to share your knowledge graph with teammates on the same network
- You want to access GitNexus from a device that doesn’t have Node.js installed
gitnexus mcp instead (configured automatically by gitnexus setup).
Related Commands
gitnexus mcp— Start MCP server for AI editorsgitnexus list— List all indexed repositories