Dashboard for Cursor.sh IDE
Top 79.9% on sourcepulse
Cursor Lens is an open-source dashboard for Cursor.sh IDE, designed to log AI code generation interactions, track token usage, and estimate costs. It targets developers using AI for coding assistance, providing insights to optimize AI model usage and manage expenses.
How It Works
Cursor Lens acts as a proxy between the Cursor IDE and various AI providers (OpenAI, Anthropic, Mistral, Cohere, Groq, Ollama). It intercepts and logs all requests and responses, storing them in a PostgreSQL database via Prisma. The system leverages Next.js and React for its dashboard, with Tailwind CSS and shadcn/ui for styling, offering analytics on token consumption, request patterns, and estimated costs.
Quick Start & Requirements
pnpm
.npx prisma migrate dev
), and ngrok setup to proxy Cursor's API calls.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is currently in alpha, with known issues including limited error handling for edge cases, incomplete test coverage, and potential performance issues under heavy load. Cost calculations for cached messages are noted as incorrect.
9 months ago
1 week