Skip to main content

A production-grade, local-first AI CLI

Project description

LocalAgentCLI

LocalAgentCLI is a local-first AI command-line assistant with a persistent shell, chat and agent modes, remote and local model backends, tool execution, session restore, and a centralized safety layer.

Features

  • Interactive localagentcli shell with slash commands, history, tab completion, and streaming output
  • Remote provider support for OpenAI-compatible, Anthropic, and generic REST APIs
  • Local model support for MLX, GGUF, and safetensors backends
  • Chat mode with context compaction, pinned instructions, and automatic repository-root AGENTS.md loading
  • Agent mode with planning, tool execution, approvals, rollback, and undo support
  • Persistent config, model registry, sessions, logs, and cache under ~/.localagent/

Installation

Recommended:

pipx install localagentcli

Development install:

git clone https://github.com/rainzhang05/LocalAgentCLI.git
cd LocalAgentCLI
pip install -e ".[dev]"

Optional backend extras can be installed manually:

pip install "localagentcli[mlx]"
pip install "localagentcli[gguf]"
pip install "localagentcli[torch]"
pip install "localagentcli[all]"

LocalAgentCLI also prompts to install missing backend dependencies automatically the first time you load a local model that needs them.

Quick Start

Launch the shell:

localagentcli

localagent remains available as a compatibility alias.

On first launch the setup wizard creates ~/.localagent/config.toml.

Common commands:

/help
/status
/setup
/mode chat
/mode agent
/set
/models
/providers list
/session save my-work
/session load my-work

Local and Remote Models

Remote providers:

  • /providers add
  • /providers list
  • /providers test <name>

Local models:

  • /set to choose the active local model or provider model interactively
  • /models for the interactive Hugging Face picker (backend → family → live Hub-discovered model) with continuously refreshed download progress
  • /models install hf <repo>
  • /models install url <url>
  • /models list
  • /models inspect <name[@version]>

Development

Run the required checks locally:

python -m pytest --cov=localagentcli --cov-fail-under=80
ruff check .
ruff format --check .
mypy localagentcli/
python -m build
python -m twine check dist/*

Documentation

Project documentation lives in the repository:

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

localagentcli-0.1.0.tar.gz (146.8 kB view details)

Uploaded Source

Built Distribution

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

localagentcli-0.1.0-py3-none-any.whl (131.6 kB view details)

Uploaded Python 3

File details

Details for the file localagentcli-0.1.0.tar.gz.

File metadata

  • Download URL: localagentcli-0.1.0.tar.gz
  • Upload date:
  • Size: 146.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for localagentcli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc8d5b4a6a7a906ece941b1a0c4a9cad7211da45e622ef995981a56bf964d8f1
MD5 6f6223d9f9e1d82d0155a17754729e34
BLAKE2b-256 c74707c7e691ee576133e8583f8b8b9bd17bef801451ac4a236e317cbdf792a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for localagentcli-0.1.0.tar.gz:

Publisher: publish.yml on rainzhang05/LocalAgentCLI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file localagentcli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: localagentcli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 131.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for localagentcli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6de89b651daac98325bcb743c604124290f5cc9d48b08f680b9175683c0cf8c3
MD5 855f3171a29021fca32c7e285f9139ec
BLAKE2b-256 890f5e2682daa4afe67d2f35c4f7a7bfa83a4886408dc61433574431bf0a4de6

See more details on using hashes here.

Provenance

The following attestation bundles were made for localagentcli-0.1.0-py3-none-any.whl:

Publisher: publish.yml on rainzhang05/LocalAgentCLI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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