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 -p                                # Skip permission prompts
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": 30
}

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

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.3.1.tar.gz (123.6 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.3.1-py3-none-any.whl (172.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langchain_agentx_cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 784c157f15243d742fe6c8f72d663cad5f0edf8e684785ec91f5f02e3f1925c0
MD5 3f04b917fa187d1c5b86d1b786dae8d2
BLAKE2b-256 9e2628eb2e2e161fa04c66cc96eeaf809d9e48fe2f9e3a45f30d569472099ee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_agentx_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a940d40e0e89f7265180b48a5075fba2f2f6c0e998e1c4f74f63f51b96d49a2e
MD5 9c26958a7273344cee7092c606d98e51
BLAKE2b-256 fe02853b8d71e9cbe57c2805c0b70f7aad5fab3e0999c08cb7ba8c1848345fb1

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