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

brew tap satyam12singh/tap
brew install repolens

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 .   # custom endpoint

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
a Ask AI a question about the codebase
o Generate onboarding guide
f Toggle focus between file tree and content
[ / ] Resize sidebar
j / k Scroll
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.1.0.tar.gz (44.5 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.1.0-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: repolens_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 44.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 1f0eb34ebb55c8edfcf884f8bfff9575d1f66b3f926e53c4a6d0280a3bafe202
MD5 a96448ceaf4fd4201b3a00717ad9dd19
BLAKE2b-256 7f36c9cc50e3fef1c5a045ce158dccf72b17abcca3c16f3c59aebc73d576852b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: repolens_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e1a4f30dfd336fc525e38e81f97b446282afb8a18bb4b2e60ef1fba2f2a481b
MD5 5641a20ca85ddbbab8843f5756de13b4
BLAKE2b-256 667560350c2d5db82a22846d0d15fb810c2acf331bffd8106b5b5890ace78410

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