Back to Home
Jakedismo icon

codegraph-rust

Verified Safe

by Jakedismo

Overview

Transforms codebases into a semantically searchable knowledge graph, enabling AI agents to reason about code relationships, architecture, and impact rather than just performing text-based searches.

Installation

Run Command
codegraph start stdio

Environment Variables

  • CODEGRAPH_SURREALDB_URL
  • CODEGRAPH_SURREALDB_NAMESPACE
  • CODEGRAPH_SURREALDB_DATABASE
  • CODEGRAPH_SURREALDB_USERNAME
  • CODEGRAPH_SURREALDB_PASSWORD
  • CODEGRAPH_EMBEDDING_PROVIDER
  • CODEGRAPH_EMBEDDING_MODEL
  • CODEGRAPH_LLM_PROVIDER
  • CODEGRAPH_MODEL
  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • JINA_API_KEY
  • XAI_API_KEY
  • CODEGRAPH_CONTEXT_WINDOW
  • CODEGRAPH_DEBUG
  • CODEGRAPH_AGENT_ARCHITECTURE

Security Notes

The project extensively uses environment variables and configuration files for API keys, avoiding hardcoded secrets. It integrates with various trusted LSP servers and LLM/embedding providers, relying on their security. The use of 'unsafe' for SIMD and memory-mapped files is noted, but this is a common practice for performance in Rust. Debug logging, when enabled via `CODEGRAPH_DEBUG=1`, can write sensitive query and result data to local files; users should be aware of this for security. Default SurrealDB credentials (`root`/`root`) are used in local development setups and should be changed for production deployments.

Similar Servers

Stats

Interest Score46
Security Score9
Cost ClassMedium
Avg Tokens8000
Stars114
Forks16
Last Update2025-12-20

Tags

AICode AnalysisKnowledge GraphLLMDeveloper ToolsSemantic SearchAgentic