CLI Authentication
Authenticate the LeanMCP CLI with your API key to access your projects and deployments.Get Your API Key
- Go to LeanMCP Dashboard
- Navigate to Settings → API Keys
- Create a new API key with appropriate permissions
- Copy the API key (starts with
airtrain_)
Login Command
Verify Authentication
Check if you’re logged in:Logout
Remove stored credentials:Credential Storage
The CLI stores your credentials securely in:- macOS/Linux:
~/.leanmcp/config.json
Troubleshooting
Not Authenticated
- Run
leanmcp loginand enter your API key - Verify your API key is correct
API Key Invalid
- Verify your API key is correct
- Check if the API key has expired
- Create a new API key in the dashboard
Next Steps
Project Management
Start creating and managing MCP projects