AI Gateway for Personal Users
If you use AI coding assistants like Windsurf, Cursor, or VS Code with Copilot alternatives, the AI Gateway gives you complete visibility into what data is being sent to AI providers.Why Should You Care?
When you use AI coding assistants, your code is sent to AI providers for processing. This includes:- Your source code - potentially proprietary or sensitive
- Environment variables - which might contain API keys or secrets
- Configuration files - database credentials, service endpoints
- Comments and documentation - business logic, internal notes
What AI Gateway Shows You

Every Request Logged
See exactly what is being sent to AI providers:- Full request content - the actual code and context being sent
- Model used - which AI model processed your request
- Token count - how many tokens each request used
- Timestamp - when each request was made
Sensitive Data Detection
The gateway automatically scans for:API Keys & Secrets
AWS keys, GitHub tokens, database passwords
Personal Information
Email addresses, phone numbers, addresses
Financial Data
Credit card numbers, bank account info
Internal URLs
Private endpoints, internal service URLs
Setting Up for Personal Use
Step 1: Get Credits
- Go to ship.leanmcp.com
- Create an account
- Purchase credits (start with a small amount to test)
Credits are required to use the AI Gateway. The cost is similar to direct API usage plus a small gateway fee.
Step 2: Generate Your API Key
- Navigate to Settings > API Keys
- Create a new API key
- Copy and save it securely
Step 3: Configure Your IDE
- Windsurf
- Cursor
- Custom Setup
- Open Windsurf Settings
- Navigate to AI Configuration
- Set Base URL:
https://aigateway.leanmcp.com/v1/openai - Set API Key: Your LeanMCP API key
Step 4: Start Coding
Use your IDE normally. All AI requests will now flow through the gateway.Viewing Your Data
Request Logs
Access your logs at ship.leanmcp.com:
- Full request content (what was sent to AI)
- Response received
- Token usage and cost
- Any sensitive data detected
Download Your Data
You can export all your logged requests:- Go to AI Gateway > Logs
- Select date range
- Click Export to download as JSON or CSV
Security Features
Sensitive Data Alerts
When the gateway detects potentially sensitive data, you’ll see:- Real-time alerts in your dashboard
- Highlighted entries in the log viewer
- Summary reports of detected sensitive data
Taking Action
If you find sensitive data was exposed:- Review the log - see exactly what was sent
- Rotate credentials - if API keys or passwords were exposed
- Update .gitignore - prevent sensitive files from being included
- Set up blocking rules - prevent future exposure (see Security)
Cost Tracking
- Daily/weekly/monthly usage graphs
- Cost per model breakdown
- Token usage statistics
- Credit balance monitoring
Best Practices
Review logs regularly
Review logs regularly
Check your logs weekly to ensure no sensitive data is being exposed.
Set up alerts
Set up alerts
Configure notifications for when sensitive data patterns are detected.
Use .env files properly
Use .env files properly
Keep secrets in .env files and ensure they’re in .gitignore.
Be mindful of context
Be mindful of context
AI assistants send surrounding code as context - be aware of what’s nearby.