Cline Integration
Cline is an autonomous coding agent. You can configure it to use the LeanMCP AI Gateway as a custom provider or via its OpenRouter/Anthropic integration points.Configuration
To use LeanMCP with Cline, you need to update your global state configuration file. This allows you to point Cline’s API requests to the LeanMCP AI Gateway.Locate Configuration File
Open your Cline global state file. On Windows, this is typically located at:
C:\Users\<your-username>\.cline\data\globalState.jsonEnsure Cline is closed before editing this file to prevent your changes from being overwritten.
Update Configuration
Add or modify the following fields in your
globalState.json. This configures the API provider to use LeanMCP and sets the necessary authentication details.Replace
leanmcp_your_api_key_here with your actual API key from the LeanMCP Dashboard.Example Configuration
Here is a more complete example of what yourglobalState.json might look like: