Getting Started with AI Gateway
Follow these steps to start routing your AI requests through the LeanMCP AI Gateway.Prerequisites
You need credits on your LeanMCP account to use the AI Gateway. Credits are used to cover the cost of AI provider requests plus a small gateway fee.
Step 1: Create an Account
- Go to ship.leanmcp.com
- Sign up with your email or GitHub account
- Complete the onboarding process

Step 2: Purchase Credits
- Navigate to Settings > Billing in your dashboard
- Select a credit package or set up auto-recharge
- Complete the payment
Credits are used at approximately the same rate as direct API calls, plus a small fee for gateway services (logging, security scanning, etc.).
Step 3: Generate an API Key
- Go to Settings > API Keys
- Click Create New API Key
- Give your key a descriptive name (e.g., “Windsurf Development”)
- Copy and save your API key securely
Step 4: Configure Your Application
Replace your AI provider’s base URL and API key with the gateway endpoint:- OpenAI
- Anthropic
- Cursor / Windsurf
Step 5: Verify It’s Working
Make a test request and check your dashboard:- Go to your LeanMCP Dashboard
- Navigate to AI Gateway > Logs
- You should see your test request logged
