- Go to https://console.anthropic.com
- Create account or sign in
- Copy your API key
# In the ai-code-reviewer folder
cd c:\Users\acer\OneDrive\Desktop\WEBINT\ai-code-reviewerEdit .env file:
VITE_ANTHROPIC_API_KEY=your_api_key_here
npm run devVisit: http://localhost:5173
-
Paste Code into the left panel
- Or click 📁 Upload File to select a
.py,.js,.ts,.java,.cpp, or.gofile
- Or click 📁 Upload File to select a
-
Select Language (if not auto-detected)
- Use the language dropdown
-
Click "🔍 Review Code"
- Wait 3-8 seconds for analysis
-
View Results on the right
- See all issues grouped by category
- Click to expand each category
- Read descriptions and suggested fixes
-
Save or Export
- Click 📋 Copy to clipboard
- Click 📥 Export to save as
.mdfile
-
Browse History
- Scroll down to see past reviews
- Click "📚 Review History" to expand
- Python (.py)
- JavaScript (.js)
- TypeScript (.ts)
- Java (.java)
- C++ (.cpp)
- Go (.go)
Each review includes feedback in these areas:
| Icon | Category | What It Covers |
|---|---|---|
| 🐛 | Bugs | Crashes, logical errors, null pointer issues |
| ✨ | Quality | Readability, naming, complexity |
| ⚡ | Performance | Speed, memory, inefficient loops |
| 🔒 | Security | Vulnerabilities, injection, auth issues |
| 📋 | Best Practices | Standards, conventions, style guides |
- 🔴 Critical: Fix immediately (security/crash risk)
- 🟡 Warning: Should fix (quality/performance)
- 🔵 Info: Nice to fix (suggestions)
- Keep code snippets < 1000 lines (faster analysis)
- Use actual file names for better context
- Upload complete functions/modules
- Try reviewing your own code first!
- Private/Incognito mode won't save history
- Reviews stored locally (not synced to cloud)
- API rate limits apply (check console if slow)
- Very large files may timeout
- Learning: See what experts think about your code
- Before Submission: Catch issues before PRs
- Code Review Practice: Review code without a team
- Style Guide Enforcement: Check consistency
- Security Audit: Find vulnerabilities
- Performance Analysis: Optimize bottlenecks
These are planned:
Ctrl + Enter: Submit reviewCtrl + E: Export markdownCtrl + C: Copy reviewCtrl + K: Clear code
Solution:
- Check
.envfile exists in project root - Verify format:
VITE_ANTHROPIC_API_KEY=sk-ant-... - Save file
- Restart dev server with
npm run dev
Solution:
- Check console for error message
- Try smaller code snippet
- Verify Claude API is responding
- Check Anthropic status page
Solution:
- Check you're not in Private/Incognito mode
- Check browser localStorage is enabled
- Clear browser data once and retry
- Try different browser
Solution:
- Hard refresh browser (Ctrl+Shift+R)
- Clear browser cache
- Reinstall npm packages:
npm install - Restart dev server
- Click 📁 Upload File button
- Select file from your computer
- Wait for upload to complete
- Language auto-detected ✅
- Code appears in editor
.py→ Python.js→ JavaScript.ts→ TypeScript.java→ Java.cpp→ C++.go→ Go
- Submit code for review
- Wait for results
- Click 📋 Copy button
- Paste anywhere (email, chat, doc)
- Submit code for review
- Wait for results
- Click 📥 Export button
- File
code-review-TIMESTAMP.mddownloads - Open in any text editor
# Code Review Report
**Overall Score:** 78/100
**Summary:** ...
## Issue Summary
- Critical: 1
- Warning: 2
- Info: 3
## Bugs
### [Critical] Missing null check (Line 12)
...- Every review automatically saves
- Up to 20 most recent kept
- Oldest removed when limit reached
- Scroll to bottom left
- Click "📚 Review History" to expand
- See list of past reviews
- Click "📂 Load" to re-open
- Click "✕" next to review to delete
- Click "🗑️ Clear All History" to delete everything
- Paste smaller code snippets
- Remove unnecessary comments
- Break large files into functions
- Upload instead of paste (slightly faster)
- Include function/class context
- Add relevant comments
- Show all dependencies
- Include error messages
✅ Your code is private:
- Only sent to Anthropic's API
- Never stored on our servers
- Reviews only in your browser
- Can delete history anytime
✅ API Key Security:
- Keep
.envsecret (never commit) - Don't share your API key
- Use separate key for sharing
- Regenerate if compromised
Q: Is my code stored anywhere? A: No. Code is only in your browser and sent to Claude. Not stored anywhere.
Q: Can multiple people use same API key? A: Yes, but usage is shared. Get separate keys for team.
Q: What if I exceed rate limits? A: Wait a few minutes and try again. Contact Anthropic for limits increase.
Q: Can I use OpenAI instead of Claude? A: Not yet, but planned for future versions.
Q: Does this work offline? A: No, requires Claude API connection. Local storage works offline for history.
Q: Can I host this myself?
A: Yes! The frontend is open source. Run npm run build and deploy to any static host.
Q: How long does a review take? A: Usually 3-8 seconds depending on code size and API load.
Q: What's the maximum file size? A: About 50KB of code. Larger files may timeout.
- Check Console: Press F12, look at Console tab for errors
- Read README: Full docs in
README.md - Check Design Docs: See
DESIGN_DECISIONS.md - Verify Setup: Ensure
.envhas correct API key - Try Again: Restart dev server and browser
- ✅ Set up API key in
.env - ✅ Run
npm run dev - ✅ Paste code and click Review
- ✅ Explore the results
- ✅ Try different languages
- ✅ Test export features
- ✅ Build your own features!
cd c:\Users\acer\OneDrive\Desktop\WEBINT\ai-code-reviewer
npm run devOpen http://localhost:5173 and start reviewing! 🚀
Version: 1.0.0 Last Updated: April 22, 2026 Status: Production Ready ✅