codesearch-cli
Local-first code search with semantic embeddings. Search by meaning, not just keywords.
A lightweight CLI tool that searches your codebase. Two modes:
- Keyword search (default): Fast regex-based search like
ripgrep - Semantic search (
--semantic): Finds conceptually similar code using local embeddings
Why codesearch-cli?
- ✅ Local-first: Runs entirely on your machine, no API calls
- ✅ No API costs: No OpenAI/Anthropic dependency
- ✅ Fast: Built in Python with smart skipping of irrelevant files
- ✅ Privacy: Your code never leaves your machine
- ✅ Open source: MIT license, code on GitHub
Installation
pipx install codesearch-cli
Or with pip:
pip install --user codesearch-cli
Usage
Keyword search (default)
# Find all TODO comments in Python files
codesearch "TODO|FIXME"
# Case-sensitive search
codesearch "MyClass" --case-sensitive
# Search specific file types
codesearch "import requests" --glob "*.py"
# Substring search (no regex)
codesearch "my_function" --type substring
Semantic search (coming soon)
# Find code that "validates email addresses" (concept, not exact match)
codesearch "function that validates email format" --semantic
What it detects
| Mode | Best for | Speed |
|---|---|---|
| Keyword | Exact matches, regex patterns, function names | Very fast |
| Semantic | Concept-based search ("find me auth code") | Slower (model download) |
Pricing
| Tier | Price | Features |
|---|---|---|
| Free | $0/mes | 1 repo, keyword search, basic filters |
| Pro | $5/mes | Unlimited repos, semantic search, custom rules, multi-repo sync |
| Team | $15/mes | Team analytics, shared rules, priority support |
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
codecrawler-0.1.0.tar.gz
(7.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codecrawler-0.1.0.tar.gz.
File metadata
- Download URL: codecrawler-0.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b09564386091471620392c2350993a437edfaf81d1e3228a8eaa9c46bc19324
|
|
| MD5 |
3f6abbfc9daa1dc0d62028a216e3cdd7
|
|
| BLAKE2b-256 |
0df3b41d25c3e1083fade19c89464929e339cae8e1bd738c8a1780e8532ad8c1
|
File details
Details for the file codecrawler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: codecrawler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8237c404d4a069c76f96dbebd8697b62c32fc22d51250a1817b6f9db06b851a7
|
|
| MD5 |
4061589b44b3e848c5e0fefb92576a2b
|
|
| BLAKE2b-256 |
3fde089d315fbeebcfe422fb30a8470f18fe43bf768ecb847c9b29d86aae3534
|