What is Cline?
Cline is an AI coding assistant that integrates directly into your VS Code environment, providing autonomous coding capabilities. It enhances your development workflow by offering intelligent code assistance, automated file creation, and interactive debugging support.Key Features of Cline
- VS Code Integration: Seamlessly integrates into your VS Code environment as an extension, providing AI-powered coding assistance directly within your familiar development interface
- Autonomous Code Generation: Creates files, functions, and code blocks autonomously based on natural language descriptions, accelerating development with intelligent code synthesis
- Interactive Development Support: Provides real-time assistance for code modifications, explanations, debugging, and error resolution through conversational AI interaction
Prerequisites
Before integrating Cline with TrueFoundry, ensure you have:- TrueFoundry Account: Create a Truefoundry account and follow the instructions in our Gateway Quick Start
- VS Code: Install Cline or in whichever IDE you prefer
- Cline Extension: Install the Cline extension from the VS Code marketplace
Setup Process
1. Configure Cline Settings
Open Cline settings in VS Code:- Open VS Code with Cline installed
- Press
Cmd/Ctrl + Shift + P
to open the command palette - Search for
Cline: Open in new tab
- Click on the settings gear icon ⚙️ in the Cline tab

2. Configure API Settings
In the Cline settings, configure the API connection: Set the following values:- API Provider: Select
OpenAI Compatible
- Base URL:
your-truefoundry-gateway-url
- API Key: ‘your-truefoundry-api-key’
- Model ID:
openai-main/gpt-4o
(or your preferred TrueFoundry model)


- Ask Cline to create a new file: “Create a Python function to calculate Fibonacci numbers”
- Request code modifications: “Add error handling to this function”
- Get explanations: “Explain what this code does”
- Debug assistance: “Help me fix this error”