CursorLens banner
HamedMP HamedMP

CursorLens

Git community intermediate

Description

Cursor Lens is an open-source tool designed to provide insights into AI-assisted coding sessions using Cursor AI. It acts as a proxy between Cursor and various AI providers, logging interactions and providing detailed analytics to help developers optimize their use of AI in their coding workflow.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Cursor Lens ✨

Cursor Lens is an open-source tool designed to provide insights into AI-assisted coding sessions using Cursor AI. It acts as a proxy between Cursor and various AI providers, logging interactions and providing detailed analytics to help developers optimize their use of AI in their coding workflow.

We are live on ProductHunt today, please upvote us if you find this useful! 🙏

Features

  • AI Provider Integration: Supports multiple AI providers including OpenAI, Anthropic, and more.
  • Request Logging: Captures and logs all requests between Cursor and AI providers.
  • Analytics Dashboard: Provides visual analytics on AI usage, including token consumption and request patterns.
  • Configurable AI Models: Allows users to set up and switch between different AI configurations.
  • Real-time Monitoring: Offers a live view of ongoing AI interactions.
  • Token Usage Tracking: Monitors and reports on token usage across different models.
  • Cost Estimation: Provides estimated costs based on token usage and model pricing.

Technology Stack

  • Frontend/Backend: Next.js with React
  • Database: PostgreSQL with Prisma ORM
  • AI Library: Vercel AI SDK
  • Styling: Tailwind CSS with shadcn/ui components

Getting Started

For detailed installation instructions, please refer to our [Installation Guide](https://www.cursorlens.com/docs/getting-started/installation).

Prerequisites

  • Node.js (v14 or later)
  • pnpm
  • PostgreSQL
  • ngrok

Quick Installation Steps

  1. Clone the repository
  2. Install dependencies with pnpm install
  3. Set up environment variables
  4. Set up the database with pnpm prisma migrate dev
  5. Build the project with pnpm build
  6. Set up ngrok
  7. Configure Cursor to use your ngrok URL as the API endpoint

...