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
Metadata
Release files for codecrawler 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codecrawler-0.1.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codecrawler-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / codecrawler-0.1.0.tar.gz
| Download URL | codecrawler-0.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b09564386091471620392c2350993a437edfaf81d1e3228a8eaa9c46bc19324
|
|
BLAKE2b-256 checksum How to use checksums |
0df3b41d25c3e1083fade19c89464929e339cae8e1bd738c8a1780e8532ad8c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / codecrawler-0.1.0-py3-none-any.whl
| Download URL | codecrawler-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8237c404d4a069c76f96dbebd8697b62c32fc22d51250a1817b6f9db06b851a7
|
|
BLAKE2b-256 checksum How to use checksums |
3fde089d315fbeebcfe422fb30a8470f18fe43bf768ecb847c9b29d86aae3534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|