Langcli is an interactive terminal-based AI coding assistant compatible with Claude Code, featuring integrated LangRouter support for seamless switching between multiple LLM providers during a single session. It enables developers to access models from Claude, GPT, Deepseek, and others without losing context or interrupting workflow.
Building agentic coding assistant in public
README
Langcli
Langcli is an interactive AI coding assistant in the terminal, built upon the best practices of Claude Code. It features:
- Langcli is 100% compatible with Claude Code. Therefore, the way to use Langcli is exactly the same as that of standard Claude Code and your existing projects' .claude or skills are all applicable to Langcli.
- Even more exciting is that Langcli is deeply integrated with LangRouter, allowing you to friendly use and switch between mainstream LLM models (including Claude OPUS 4.8, GLM 5.2, GPT 5.6 sol, Deepseek v4 pro, Deepseek v4 flash, Kimi K2.7 code, Minimax M3, Mimo 2.5 pro, etc.) within an ongoing session as needed, without interrupting your context.
Sponsors
Installation
Quick Install (Recommended)
Linux / macOS
bash -c "$(curl -fsSL https://assets.langcli.com/installation/install-langcli.sh)"
Windows (Run as Administrator CMD)
cmd /c "curl -fsSL -o %TEMP%\install-langcli.bat https://assets.langcli.com/installation/install-langcli.bat && %TEMP%\install-langcli.bat"
Note: It's recommended to restart your terminal after installation to ensure environment variables take effect.
Manual Installation
Prerequisites
Make sure you have Node.js 20 or later installed. Download it from nodejs.org.
NPM installation
npm i -g langcli-com
Quick Start
LangRouter API Key Preparation
Go to LangRouter, register an account, save your API key.
Running
# Start Langcli (interactive)
langcli
# Then, in the session:
/help
Compile from source code yourself (optional)
Environmental requirements
- Bun >= 1.3.11
Install dependencies
bun install
Running
# Development mode
bun run dev
# Build and run
bun run build && bun dist/cli.js
The built version can be started with both bun and node. You can publish to a private registry and start directly.
If you encounter any bugs, please open an issue and we will prioritize fixing them.
Acknowledgement
This project is a secondary development based on CCB, and we pay tribute to the contributors of the CCB project.
License
This project is for educational and research purposes only. All rights to Claude Code belong to Anthropic.
Comments (0)
Sign in to join the discussion.
No comments yet
Be the first to share your take.