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.2.0.tar.gz (248.1 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.2.0-py3-none-any.whl (207.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for localagentcli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d0ad2b86b9a819108698caf742fb78d79b18ad32dffb4560ca4b0cae4d94c916
MD5 648ff99daef38246c92d2a3228078f73
BLAKE2b-256 02d40010cbbc3ba63e98805d0203a007ecff196fe39aa311908391feaafeeef0

See more details on using hashes here.

Provenance

The following attestation bundles were made for localagentcli-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: localagentcli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 207.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3922747377ca2e381c24d07f3f72f5287fbe7c77f7ba0aa0579d0e4f6459190d
MD5 729bd795d3a9d1af1bf377cfb0d4df1d
BLAKE2b-256 bc16b2c2e316866f965f8b78544084face88e72c33dfcae8b1abf57166ac323d

See more details on using hashes here.

Provenance

The following attestation bundles were made for localagentcli-0.2.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