← Catalog

pi-cline

Cline provider extension for pi

Package

Install

Install with PiG

pig install npm:pi-cline

Install with Pi

pi install npm:pi-cline
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.2 (README.md). PiG does not review it.

pi-cline

npm cline

Cline provider extension for pi.

Use Cline's models directly from pi through Cline's authenticated API flow. pi-cline works as a compatibility layer between pi and Cline:

  • Builds Cline-style prompts and requests
  • Parses Cline XML tool calls
  • Maps them back into pi's runtime
  • Currently exposes free models only

Installation

pi install npm:pi-cline

Authentication

  1. Open pi and enter /login.
  2. Select Cline from the provider list.
  3. A browser window will open to the Cline login page — sign in with your Cline account.

Prompt construction

Pi messages are repackaged into the structure Cline models expect.

  • Injects Cline-style operating rules and runtime/system information
  • Wraps user input into task or resumption form
  • Appends environment details such as cwd, workspace snapshot, time, CLI tools, and context usage
  • Feeds tool results back as the next-turn context
  • Preserves turn state so later turns can continue with consistent tool semantics

Tool mapping

Cline toolPi runtimeHandling
read_filereadDirect mapping
write_to_filewriteDirect mapping
replace_in_fileedit, writeSingle SEARCH/REPLACE block → edit, Otherwise apply diff and write
execute_commandbashDirect mapping
list_filesbashConverted into a find command
search_filesbashConverted into an rg command
list_code_definition_namesbashConverted into an rg-based definition scan
attempt_completionfinal assistant textCompletion-only; no local tool call
act_mode_respond, plan_mode_respond, ask_followup_questiondisplay-onlyPreserved as prompt/display semantics

Optional tools

Cline toolIf pi provides the same runtime toolIf pi does not provide it
use_mcp_toolForward to runtime toolSynthetic, no-op compatibility handling
access_mcp_resourceForward to runtime toolSynthetic, no-op compatibility handling
browser_actionForward to runtime toolSynthetic, no-op compatibility handling
web_fetch, web_searchForward to runtime toolSynthetic, no-op compatibility handling
new_task, load_mcp_documentationForward if availableSynthetic, no-op compatibility handling

Requirements

  • pi >= 0.49.0
  • A Cline account
  • Network access to https://api.cline.bot

License

MIT