Instant clarity on any codebase. Navigate imports, trace functions, and get AI answers — all in one terminal view.
Project description
RepoLens
Instant clarity on any codebase. Navigate imports, trace functions, and get AI answers — all in one terminal view.
Install
Homebrew — macOS & Linux
brew trust satyam12singh/tap
brew tap satyam12singh/tap
brew install repolens-cli
uv / pipx / pip — any platform with Python
uv add repolens-cli
pipx install repolens-cli
pip install repolens-cli
Direct binary — no Python required
macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/Satyam12singh/repolens/master/scripts/install.sh | sh
Windows — download the latest .exe from GitHub Releases.
Usage
repolens . # scan current directory
repolens ~/my-repo # scan any directory
AI Configuration
RepoLens supports multiple AI providers. Set one of the following in your environment (or in a .env file in the directory you're scanning):
| Provider | Environment Variable | Default Model |
|---|---|---|
| Gemini (Google) | GEMINI_API_KEY |
gemini-2.5-flash |
| OpenAI | OPENAI_API_KEY |
gpt-4o |
| Groq | GROQ_API_KEY |
llama-3.3-70b-versatile |
| Anthropic | ANTHROPIC_API_KEY |
claude-sonnet-4-6 |
| Ollama (local) | REPOLENS_AI_PROVIDER=ollama |
llama3.2 |
Override any default with:
REPOLENS_AI_MODEL=gemini-2.5-pro repolens .
REPOLENS_AI_BASE_URL=http://localhost:11434/v1 repolens .
If no key is set, the file tree and dependency graphs still work — only the AI features (Ask AI, Onboard) are disabled.
Key Bindings
| Key | Action |
|---|---|
1 |
Dependencies tab |
2 |
Call graph tab |
3 |
Full graph tab |
4 |
Functions browser |
g |
Jump to Functions tab (context-aware — shows current file's functions) |
a |
Ask AI a question about the codebase |
o |
Open Codebase Guide (cached after first run, r to regenerate) |
f |
Toggle focus between file tree and content |
[ / ] |
Resize sidebar |
↑ / ↓ |
Navigate function list (Tab 4) |
j / k |
Scroll content / move file tree cursor |
q |
Quit |
Supported Languages
Python, JavaScript, TypeScript, Go, Rust
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 repolens_cli-0.3.0.tar.gz.
File metadata
- Download URL: repolens_cli-0.3.0.tar.gz
- Upload date:
- Size: 67.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
585f38e85ed130b88b08ee7ad19731accc2ea6e452ff1605ee9801df6735f93c
|
|
| MD5 |
1a3f8f14e4d5e578a0a06db413cc88a9
|
|
| BLAKE2b-256 |
c0bb8d34c030af30918b6bd110d6d77f7528590ac58e4d48f3587555328abd96
|
File details
Details for the file repolens_cli-0.3.0-py3-none-any.whl.
File metadata
- Download URL: repolens_cli-0.3.0-py3-none-any.whl
- Upload date:
- Size: 31.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38ecaac0bce3c0357b5f77cd0103f45bcbc3268cb4fe8c12a1a5480dd50fbf58
|
|
| MD5 |
82fb009670041203693b64b1e13919b1
|
|
| BLAKE2b-256 |
dc10206781be3db3a520d067c546008385e252fdb89c16ca10a510a27ce1ee2c
|