langchain-cli
CLI for interacting with LangChain
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-cliuv
uv add langchain-clipoetry
poetry add langchain-cliInstalling 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
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
alita-sdkAlita SDK provides a Python framework for…
permissive · top 15,000 on PyPI
langchain-coreLangChain Core provides the foundational…
permissive · top 1,000 on PyPI
deepagentsDeep Agents is an opinionated agent harness…
permissive · top 5,000 on PyPI
langchain-communityProvides third-party integrations for LangChain…
permissive · top 1,000 on PyPI
langchain-experimentalProvides experimental LangChain components and…
permissive · top 5,000 on PyPI
deepagents-cliCommand-line tool for scaffolding, configuring,…
permissive · top 15,000 on PyPI
langchain-quickjsAdds a persistent, sandboxed JavaScript REPL…
permissive · top 15,000 on PyPI
zenpyreZenpyre provides utility functions and helpers…
permissive · top 15,000 on PyPI
langgraph-cliCommand-line interface for creating,…
permissive · top 5,000 on PyPI