User GuideAPI ReferenceAI Applications

Cline

Cline is an open-source autonomous coding agent running in VS Code. It not only deeply understands project structures, but also autonomously creates/edits multiple files, executes tests and commands in the integrated terminal, and extends toolchains via the MCP protocol. Connect to the OpenRely API to enjoy a fully automated pair programming experience in VS Code.

🔑 Prerequisites


🚀 Steps

Install the Cline Extension

  1. Open VS Code (or compatible editors like Cursor, VSCodium, etc.);
  2. Go to the Extensions marketplace on the left sidebar using the shortcut Cmd + Shift + X (Windows: Ctrl + Shift + X);
  3. Search for Cline in the search bar, locate the extension officially published by Cline (formerly Claude Dev), and click Install.

Open the Cline Settings Panel

  1. Once installed, click the Cline robot icon in the VS Code Activity Bar on the left;
  2. At the top of the opened Cline sidebar, click the Settings gear icon ⚙️.

Configure OpenRely Provider Settings

Cline natively supports multiple model protocols. We recommend selecting the OpenAI Compatible mode to connect to OpenRely:

ConfigurationRecommended ValueDescription
API ProviderOpenAI CompatibleProvides maximum model flexibility and compatibility
Base URLhttps://api.openrely.ai/v1Must include /v1, do not add trailing slashes
API Keysk-...Dedicated access token created in the OpenRely Console
Model IDclaude or gptEnter the desired model identifier (e.g., claude, deepseek, etc.)

[!TIP] Anthropic Native Protocol Alternative: You can also set API Provider to Anthropic, expand advanced settings, enable custom endpoints, and set the Base URL to https://api.openrely.ai/v1. It will work completely seamlessly.

  1. Once configured, click Done at the bottom of the panel to save your settings.

Start Autonomous Programming Tasks

Return to the Cline chat sidebar and enter a challenging engineering prompt, for example:

请为当前项目编写一套完整的单元测试,并自动运行测试确保全部通过

Cline will execute through the following autonomous closed loop:

  1. Analyze Project: Traverse and read code directories;
  2. Generate Code: Create test files and write assertions;
  3. Run Terminal: Execute test commands in the integrated terminal and capture console output;
  4. Autonomous Self-healing: If tests fail, analyze the error root cause and automatically fix source code until all tests pass.

💡 Key Features

Feature ModuleDescription
Multi-File Autonomous EditingFully automated file discovery, creation, renaming, and modification, presenting clear side-by-side diffs
Terminal Command ExecutionSupports running compilation, package installation, unit testing, or build scripts directly in the VS Code terminal under user authorization
Self-Correction & Error RecoveryAutomatically reads linters and terminal tracebacks to self-correct whenever command execution or code writing errors occur
MCP Ecosystem ExtensionDeeply integrates the Model Context Protocol, extendable to connect to databases, web scrapers, and external APIs
Fine-Grained Permission ControlOffers auto-approve whitelist toggles to bypass confirmation individually for reading files, writing code, or running terminal commands

❓ Frequently Asked Questions

Encountering other API errors or billing questions? Please refer to the complete FAQ and Troubleshooting Guide.

Was this page helpful?

Cline | OpenRely Docs