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:
~/.leanmcp/credentials.json
Keep your API key secure. Do not share it or commit it to version control.
Troubleshooting
Authentication Failed
- Verify your API key is correct
- Check if the API key has expired
- Ensure the API key has proper permissions
Access Denied
- Check API key scopes in the dashboard
- Create a new API key with required permissions
Next Steps
Project Management
Start creating and managing MCP projects