LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

cline

Model-agnostic AI coding agent for the terminal

TLDR

Start an interactive session in the current directory
$ cline
copy
Run with a specific prompt
$ cline "[fix the login bug]"
copy
Use a specific model provider
$ cline --provider [openai] "[prompt]"
copy
Run in autonomous mode
$ cline --auto "[refactor auth module]"
copy
Pipe context to cline
$ cat [error.log] | cline "[explain these errors]"
copy

SYNOPSIS

cline [options] [prompt]

DESCRIPTION

cline is an AI coding agent that works in the terminal, supporting multiple AI model providers including OpenAI, Anthropic, Google, AWS Bedrock, Ollama, and any OpenAI-compatible API. It can read and write files, execute terminal commands, and perform multi-step development tasks autonomously.The tool integrates with your development environment to understand project context, navigate codebases, and implement changes across multiple files. It supports both interactive sessions for collaborative work and autonomous mode for hands-off task completion.Cline began as a VS Code extension and expanded to include a CLI interface, making it accessible from any terminal environment. It uses a model-agnostic architecture, allowing users to choose their preferred AI backend.

PARAMETERS

--provider PROVIDER

AI provider to use (openai, anthropic, ollama, etc.).
--model MODEL
Specific model to use with the provider.
--auto
Run in autonomous mode with minimal human intervention.
--api-key KEY
API key for the selected provider.
--max-tokens N
Maximum tokens for model response.
--help
Display help information.
--version
Display version information.

CAVEATS

Requires API keys for cloud-hosted model providers. Local model support via Ollama requires separate installation and model downloads. Token usage and API costs vary by provider and model.

HISTORY

Cline was originally created as a Visual Studio Code extension under the name Claude Dev in 2024, then renamed to Cline to reflect its model-agnostic design. It quickly grew to over 59,000 GitHub stars, becoming one of the most popular open-source AI coding tools. The CLI component extends the tool beyond IDE-only usage.

SEE ALSO

claude(1), aider(1), codex(1), forge(1)

Copied to clipboard
Kai