cursor-tool
v2.1.0
Published
CLI tools for Cursor IDE
Readme
Cursor Tool
Command-line tools for Cursor IDE.
Features
- Token Extraction: Extract authentication tokens and checksums from local Cursor installation
Installation
Global Installation
npm install -g cursor-toolLocal Installation
npm install cursor-toolUsage
Token Extraction
# If installed globally
cursor-tool token
# If installed locally
npx cursor-tool tokenProgrammatic Usage
import { getCursorTokenInfo } from 'cursor-tool'
const tokenInfo = getCursorTokenInfo()
console.log(tokenInfo.token)
console.log(tokenInfo.checksum)What It Does
The token extraction tool:
- Locates the Cursor data directory based on your operating system
- Extracts the access token from the SQLite database
- Retrieves machine IDs from the storage.json file
- Generates the proper checksum required for API authentication
Supported Platforms
- Windows
- macOS
- Linux
Output
The token tool outputs:
- Access Token
- Checksum
- Machine ID
- MAC Machine ID
License
MIT
