Getting Started
GZOO Cortex is a local-first knowledge graph for developers. It monitors your project files, extracts meaningful entities using LLMs, and lets you query your codebase knowledge with natural language.
Quick Start
The cortex init command will walk you through configuring your LLM provider and routing mode interactively.
Installation
Prerequisites
- • Node.js 18 or later
- • npm, yarn, or pnpm
- • An LLM API key (Anthropic, Google, or OpenAI) — or Ollama for local-only mode
Global Install (Recommended)
Using npx
From Source
Configuration
Cortex stores its configuration in ~/.cortex/config.json. Run cortex init to generate it interactively, or create it manually.
Routing Modes
cloud-firstBest quality. All processing via cloud LLMs. Variable costs.hybridCloud for extraction, local for embeddings. Reduced costs.local-firstLocal by default, cloud only when needed. Minimal costs.local-onlyEverything runs on Ollama. Free, fully private.Environment Variables
CLI Reference
Interactive configuration wizard. Sets up LLM provider, routing mode, and storage location.
Add a project to monitor. Use --restricted flag for sensitive projects.
List all registered projects with file counts and status.
Start watching all projects for file changes. Processes updates in real-time.
Manually trigger ingestion for a specific project.
Query the knowledge graph with natural language. Returns answers with source citations.
Show detected contradictions across projects. Use --severity to filter.
Start the web dashboard on port 3710 (configurable with --port).
Start the MCP server for Claude Code integration.
Show overall status: projects, entities, relationships, and storage usage.
MCP Integration
Cortex includes a built-in MCP (Model Context Protocol) server that integrates directly with Claude Code and other MCP-compatible tools. This gives your AI assistant deep knowledge about your codebase.
Setup with Claude Code
Add Cortex to your Claude Code MCP configuration:
Available MCP Tools
cortex_queryQuery the knowledge graph with natural languagecortex_entitiesList entities matching a filtercortex_relationshipsGet relationships for a specific entitycortex_contradictionsShow detected contradictionscortex_statusGet current Cortex status and statisticsWeb Dashboard
Cortex includes a web-based dashboard for visualizing your knowledge graph, exploring queries, and monitoring activity in real-time.
Dashboard Features
- • Interactive D3-powered knowledge graph visualization
- • Real-time activity feed via WebSocket
- • Query explorer with streaming responses
- • Project management (add, remove, configure)
- • Entity and relationship browser
- • Contradiction reports with severity levels