skillfed

langchain-cli

CLI for interacting with LangChain

langchain-cli v0.0.37 110.2K downloads/30d#12,478 on PyPI144,262
Permissive license MIT Active released

What it is and what it does

langchain-cli is a command-line tool for developers working with LangChain, the framework for building LLM-powered applications and agents. It provides terminal-based access to LangChain's core functionality, allowing you to scaffold projects, manage configurations, and interact with LangChain components without leaving the shell. The package depends on typer for CLI argument handling, gitpython for version control integration, langserve for serving applications, uvicorn as an ASGI server, tomlkit for configuration file parsing, and gritql for code querying.

The tool is part of the broader LangChain ecosystem, which includes LangGraph for agent orchestration, Deep Agents for higher-level agent patterns, and LangSmith for observability and deployment. It is actively maintained, has no known security vulnerabilities, and supports current Python versions (3.9+). The permissive MIT license makes it suitable for any project type.

Use it for:

  • Scaffold and initialize new LangChain projects from the command line without manual boilerplate setup.
  • Deploy and manage LangChain agents and LLM applications as services using the integrated uvicorn server.
  • Test and debug LangChain components locally before integrating them into larger applications.
  • Automate LangChain workflows in CI/CD pipelines or shell scripts for batch processing.
  • Quickly prototype and iterate on agent configurations using terminal-based commands.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Command-line interface for building, testing, and deploying LangChain agents and LLM applications from the terminal.

Yes, if you are actively developing LangChain applications and prefer command-line workflows. The package has low install friction, no security issues, and is actively maintained. It is most valuable as part of a broader LangChain development setup; on its own, its utility depends on your CLI-first development style and specific use case within the LangChain ecosystem.

Install

langchain-cli on PyPI

pip

pip install langchain-cli

uv

uv add langchain-cli

poetry

poetry add langchain-cli

Installing langchain-cli

Before you install

Low friction install with a small, stable dependency tree. The package is actively maintained with recent releases and has no known vulnerabilities. Requires Python 3.9 or later.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal legal constraints—suitable for both commercial and open-source projects.

Quickstart

pip install langchain-cli
langchain-cli --help
# or use via: from langchain_cli import main

Requires Python 3.9 or later. Runtime dependencies include typer, gitpython, langserve, uvicorn, tomlkit, and gritql.

Verify before relying

  • Specific CLI commands and workflows supported by this version (0.0.37) are not detailed in the fact sheet.
  • Whether this package is the primary entry point for LangChain CLI or a supplementary tool.
  • Integration scope with LangGraph, Deep Agents, and other ecosystem products via CLI.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 6 — typer, gitpython, langserve, uvicorn, tomlkit, gritql
Maintenance actively maintained — 349 days since the last release
Last repo commit
First released
Downloads 110,205/month — #12,478 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: langchain_cli-0.0.37-py3-none-any.whl

Tags

langchain cli toolbuild llm agents command linelangchain deployment cliai application development clilangchain project managementagent orchestration command linellm app scaffolding tool
llm-developmentcli-toolagent-framework

More Application Frameworks packages

Further reading