Skip to main content

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 tap satyam12singh/tap
brew install repolens-cli

uv / pipx / pip — any platform with Python

uv tool install 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

repolens_cli-0.2.1.tar.gz (61.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

repolens_cli-0.2.1-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file repolens_cli-0.2.1.tar.gz.

File metadata

  • Download URL: repolens_cli-0.2.1.tar.gz
  • Upload date:
  • Size: 61.9 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

Hashes for repolens_cli-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e3f443bd7362372cf3a808ca2727d6d3514621e63484015510bd7bdb1fd422e5
MD5 bd161f30465bfa6c33a250c1e06dad23
BLAKE2b-256 24c907b495143cabcb190f1c7cd1df870f21a4cb48a630942aef1c7f83e68728

See more details on using hashes here.

File details

Details for the file repolens_cli-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: repolens_cli-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 25.4 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

Hashes for repolens_cli-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcd0db5f94f28a716aac3f3c67215afcdb35ef22324ff17a7188b963093ea6f0
MD5 24aa0637aac68549120f0e5673a787fd
BLAKE2b-256 56f5640f519a6cc4f9558aa4641640fc897a04ef00168e3347044aaa8e5cc910

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page