Claude Code usage

CursorLens

An open-source dashboard for Cursor.sh IDE. Log AI code generations, track usage, and control AI models (including local ones). Run locally or use upcoming hosted version.

402 stars 45 forksUsage & cost trackers Source

Install

From source
git clone https://github.com/HamedMP/CursorLens.git

From the 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.

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

For full details on each step, please see the Installation Guide.

Usage

1. Configure Cursor to use Cursor Lens as its API…
Read the full README on GitHub

Details

Language
TypeScript
License
AGPL-3.0
Last updated
2 November 2024
Topics
analyticsclaudecodingcursor

FAQ

What is CursorLens?

An open-source dashboard for Cursor.sh IDE. Log AI code generations, track usage, and control AI models (including local ones). Run locally or use upcoming hosted version. It is a usage for Claude Code, from HamedMP/CursorLens on GitHub.

How do I install CursorLens?

Clone HamedMP/CursorLens from GitHub and follow the setup steps in its README.

Is CursorLens popular?

HamedMP/CursorLens has 402 GitHub stars and 45 forks. It was last updated on 2 November 2024.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.