OCTOCODE(1)

NAME

octocodeSemantic code searcher and codebase utility

SYNOPSIS

$cargo install --git

INFO

302 stars
30 forks
0 views

DESCRIPTION

Semantic code searcher and codebase utility

README

Octocode - Intelligent Code Indexer and Graph Builder

© 2025 Muvon Un Limited (Hong Kong) | Website | Product Page

License Rust

🚀 Overview

Octocode is a powerful code indexer and semantic search engine that builds intelligent knowledge graphs of your codebase. It combines advanced AI capabilities with local-first design to provide deep code understanding, relationship mapping, and intelligent assistance for developers.

✨ Key Features

  • 🔍 Semantic Code Search - Natural language queries with multi-query support
  • 🕸️ Knowledge Graph (GraphRAG) - Automatic relationship discovery between files
  • 🌐 Multi-Language Support - Rust, Python, JavaScript, TypeScript, Go, PHP, C++, Ruby, and more
  • 🧠 AI-Powered Features - Smart commits, code review, memory system with semantic search
  • 🔌 MCP Server Integration - Built-in Model Context Protocol server with LSP support
  • ⚡ Performance & Flexibility - Intelligent LanceDB optimization, local/cloud embedding models

📦 Quick Installation

# Universal install script (Linux, macOS, Windows)
curl -fsSL https://raw.githubusercontent.com/Muvon/octocode/master/install.sh | sh

Alternative methods:

  • Download from GitHub Releases
  • Install with Cargo: cargo install --git https://github.com/Muvon/octocode

For detailed installation instructions, see Installation Guide.

🔑 API Keys Setup

⚠️ Required for functionality:

# Required: Voyage AI (embeddings) - 200M free tokens/month
export VOYAGE_API_KEY="your-voyage-api-key"

Optional: OpenRouter (LLM features)

export OPENROUTER_API_KEY="your-openrouter-api-key"

Get your free API keys:

🚀 Quick Start

# 1. Index your codebase
octocode index

2. Search with natural language

octocode search "HTTP request handling"

3. Multi-query search for comprehensive results

octocode search "authentication" "middleware"

4. AI-powered git workflow

octocode commit --all

5. Start MCP server for AI assistants

octocode mcp --path /path/to/your/project

📚 Complete Documentation

📖 Quick Navigation

🌐 Supported Languages

LanguageExtensionsFeatures
Rust.rsFull AST parsing, pub/use detection, module structure
Python.pyImport/class/function extraction, docstring parsing
JavaScript.js, .jsxES6 imports/exports, function declarations
TypeScript.ts, .tsxType definitions, interface extraction
Go.goPackage/import analysis, struct/interface parsing
PHP.phpClass/function extraction, namespace support
C++.cpp, .hpp, .hInclude analysis, class/function extraction
Ruby.rbClass/module extraction, method definitions
JSON.jsonStructure analysis, key extraction
Bash.sh, .bashFunction and variable extraction
Markdown.mdDocument section indexing, header extraction

🔒 Privacy & Security

  • 🏠 Local-first option: FastEmbed and SentenceTransformer run entirely offline (macOS only)
  • 🔑 Secure storage: API keys stored locally, environment variables supported
  • 📁 Respects .gitignore: Never indexes sensitive files or directories
  • 🛡️ MCP security: Server runs locally with no external network access for search
  • 🌐 Cloud embeddings: Voyage AI and other providers process only file metadata, not source code

🤝 Support & Community

⚖️ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


Built with ❤️ by the Muvon team in Hong Kong

SEE ALSO

clihub3/4/2026OCTOCODE(1)