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.0.tar.gz (61.6 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.0-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: repolens_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 61.6 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.0.tar.gz
Algorithm Hash digest
SHA256 723cba65b564cf565db60f43f814b7d35a83921b63727f76073e4a62fd141f28
MD5 5d6aad25fd7b0f80202116c2917c5263
BLAKE2b-256 83b37d8e13d36072da095df9e42bfca7a1ecc2245390b8b29bf4503a845fef88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: repolens_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 601cd0798453430dd944707299ba30b682d657c60a816abb57e5132d76ccbe65
MD5 58163b1ff908b59f68ccb4b81c7a0fab
BLAKE2b-256 87baac73ceff809df0527578dfe7d983a539baa1ffb4995a51982c7c5989b2e4

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