Skip to main content

Terminal CLI/TUI for AgentX: migrate Claude Code Ink UI, backed by langchain-agentx-python SDK.

Project description

langchain-agentx-cli

AgentX Code — Terminal AI coding assistant with Claude Code compatible TUI.

依托 langchain-agentx-python SDK,提供功能完整的终端编码助手。

Installation

pip install langchain-agentx-cli

Requires Python 3.11+ and ANTHROPIC_API_KEY environment variable.

Quick Start

# Navigate to your project directory
cd ~/my-project

# Start AgentX Code
agentx-code

Environment Setup

# Set your Anthropic API key
export ANTHROPIC_API_KEY="sk-ant-..."

Command Options

agentx-code                                    # Start in current directory
agentx-code --workspace-root /path/to/project  # Specify workspace
agentx-code --model claude-sonnet-4-20250514  # Specify model
agentx-code --provider claude | openai        # Choose provider
agentx-code --dangerously-skip-permissions    # Skip permission prompts (CC-aligned)
agentx-code --show-config                     # Print merged config

Input Habits (Claude Code Compatible)

Key Action
Enter Send message
Shift+Enter Insert newline
\ + Enter Insert newline (alternative)
↑ / ↓ Navigate history / move in multiline
Tab Command completion
Ctrl+R History search
Ctrl+Shift+L Clear messages
Ctrl+C Cancel generation / Quit (twice)

Type /help in the REPL for full command list.

Development

# Clone and install in editable mode
git clone https://github.com/GoodMood2008/langchain-agentx-cli.git
cd langchain-agentx-cli
pip install -e ".[dev]"

# Run tests
pytest tests -v

# Run directly (without install)
python -m langchain_agentx_cli

Configuration

Config file location: ~/.config/langchain_agentx/langchain_agentx.json

{
  "llm": {
    "provider": "claude",
    "model": "claude-sonnet-4-20250514",
    "api_key": null,
    "base_url": null
  },
  "theme": "dark",
  "show_suppressed_text": false
}

历史字段 user_message_preview_lines 已随 BriefTool/user_message 移除而废弃,请勿写入新配置。

Architecture

工程约定与开发说明见根目录 CLAUDE.md

Layer Name Description
PyPI Package langchain-agentx-cli pip install langchain-agentx-cli
CLI Command agentx-code User types in terminal
Python Package langchain_agentx_cli import for use as library

Design Docs

历史:D01 user_message(BriefTool 已移除,仅作归档)

License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_agentx_cli-0.7.0.tar.gz (362.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_agentx_cli-0.7.0-py3-none-any.whl (515.2 kB view details)

Uploaded Python 3

File details

Details for the file langchain_agentx_cli-0.7.0.tar.gz.

File metadata

  • Download URL: langchain_agentx_cli-0.7.0.tar.gz
  • Upload date:
  • Size: 362.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for langchain_agentx_cli-0.7.0.tar.gz
Algorithm Hash digest
SHA256 b7c12620718798c7f63a8b4cdc1f86da93828796c305dcaf6f36d5f4d2b44065
MD5 e3aec48640542d6caf0e377fcb5e5d14
BLAKE2b-256 12ceb0116997787929cbab2f4594fbf4d4806c1ca10c2128a07a0db9551d6f77

See more details on using hashes here.

File details

Details for the file langchain_agentx_cli-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_agentx_cli-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5dc12b26638c69bdd00826b963a9da3432959379059b6dbefe4d1b33be30f6ee
MD5 23a0b68178aaf58d0e0c3367bf6bad29
BLAKE2b-256 94095501baaea0bd3eab634b28d9ef005b19652b6663dd024c12a82e90aa3068

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page