Skip to main content

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
Without visibility, you have no idea if sensitive data like passwords, API keys, or personal information is being sent to AI providers.

What AI Gateway Shows You

Personal Dashboard

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

  1. Go to ship.leanmcp.com
  2. Create an account
  3. 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

  1. Navigate to Settings > API Keys
  2. Create a new API key
  3. Copy and save it securely

Step 3: Configure Your IDE

  1. Open Windsurf Settings
  2. Navigate to AI Configuration
  3. Set Base URL: https://aigateway.leanmcp.com/v1/openai
  4. 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:
Request Log View
Each log entry shows:
  • 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:
  1. Go to AI Gateway > Logs
  2. Select date range
  3. Click Export to download as JSON or CSV
This gives you a complete record of all data that has been sent to AI providers.

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:
  1. Review the log - see exactly what was sent
  2. Rotate credentials - if API keys or passwords were exposed
  3. Update .gitignore - prevent sensitive files from being included
  4. Set up blocking rules - prevent future exposure (see Security)

Cost Tracking

Cost Tracking
Track your AI spending:
  • Daily/weekly/monthly usage graphs
  • Cost per model breakdown
  • Token usage statistics
  • Credit balance monitoring

Best Practices

Check your logs weekly to ensure no sensitive data is being exposed.
Configure notifications for when sensitive data patterns are detected.
Keep secrets in .env files and ensure they’re in .gitignore.
AI assistants send surrounding code as context - be aware of what’s nearby.

Next Steps