Skip to content

Go Cursor SDKFull-Featured Cursor IDE Data Access

Read and parse all local data from Cursor IDE with ease

Go Cursor SDK

Quick Start โ€‹

Install the SDK:

bash
go get github.com/vibe-coding-labs/go-cursor-sdk

Use it in your code:

go
package main

import (
    "fmt"
    "log"
    "time"
    
    cursor "github.com/vibe-coding-labs/go-cursor-sdk"
)

func main() {
    // Create unified client
    config := &cursor.ClientConfig{
        EnableCache: true,
        CacheTTL:    5 * time.Minute,
        LogLevel:    cursor.LogLevelInfo,
    }
    
    client, err := cursor.NewCursorClient(config)
    if err != nil {
        log.Fatal(err)
    }
    defer client.Close()
    
    // Access session data
    sessions, err := client.Sessions().ListSessions()
    if err != nil {
        log.Fatal(err)
    }
    
    fmt.Printf("Found %d sessions\n", len(sessions))
}

Why Go Cursor SDK? โ€‹

  • ๐Ÿ”’ Secure Access: Read-only mode, does not modify any data
  • ๐ŸŒ Cross-Platform: Supports Windows, macOS, Linux
  • ๐Ÿ“š Well Documented: Comprehensive documentation and examples
  • ๐Ÿงช Well Tested: Extensive test coverage
  • ๐Ÿš€ Production Ready: Used in production environments

Community โ€‹

License โ€‹

MIT License

Released under the MIT License.