Paste any code. Pick how you want it explained. Get an answer in seconds. Free, open source, runs on your desktop.
This function handles user authentication by building a SQL query with the provided username and checking if a matching record exists in the database.
⚠ Critical issue detected — the query is built using string formatting, which makes it vulnerable to SQL injection. An attacker could pass admin' OR '1'='1 as the username and bypass authentication entirely.
Not every situation calls for the same explanation. Pick what you actually need.
After the explanation, you can chat with the AI. It remembers your code and what it just told you — so questions actually make sense.
Ask things like "Why is a dictionary used here instead of a list?" or "What would line 12 look like refactored?" — without pasting anything again.
admin' -- as the username, the query logic breaks and they bypass the password check entirely. Use parameterized queries instead.CodeLens works with three providers. Your API key, stored securely on your machine. Switch anytime.
Or grab the pre-built installer from GitHub Releases →
Free, open source, no account needed.