Getting Started

Get started with Lens

Getting Started with Lens

Install the Lens App

Lens is available as an application for GitHub, GitLab, and Bitbucket. Install it on your repository:

  1. Visit the Lens app marketplace for your Git provider
  2. Click Install and authorize Lens
  3. Select which repositories Lens should monitor
  4. Confirm the installation

Lens will start analyzing pull requests immediately.

Your first AI code review

Open a pull request in one of your connected repositories. Lens analyzes the code and leaves comments on:

  • Logic bugs or edge cases
  • Anti-patterns or code smells
  • Complexity hot spots
  • Missing test coverage

These appear as PR comments before human reviewers see the diff.

Enable security scanning

Lens scans every PR against OWASP Top 10, known CVEs, and secret-leakage rules. To enable:

  1. Go to your Lens dashboard
  2. Click Security settings
  3. Toggle Scan for vulnerabilities and Scan dependencies
  4. Save

Now every PR will show security findings as blocking checks.

Set up the merge queue

The merge queue ensures main stays green:

  1. Go to Merge queue settings
  2. Toggle Enable merge queue
  3. Configure batch size (how many PRs to test together)

Now when you queue a PR to merge, Lens runs CI tests before merging.

Next steps

  • Read about Lens's Features to learn more
  • Check the Roadmap to see what's coming
  • Create custom rules to enforce your team's coding standards