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
localagentclishell 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.mdloading - 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:
/setto choose the active local model or provider model interactively/modelsfor 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:
Metadata
Release files for localagentcli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| localagentcli-0.2.0.tar.gz | 248.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| localagentcli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 455.3 kB
Release files / localagentcli-0.2.0.tar.gz
| Download URL | localagentcli-0.2.0.tar.gz |
|---|---|
| Size | 248.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0ad2b86b9a819108698caf742fb78d79b18ad32dffb4560ca4b0cae4d94c916
|
|
BLAKE2b-256 checksum How to use checksums |
02d40010cbbc3ba63e98805d0203a007ecff196fe39aa311908391feaafeeef0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency logRelease files / localagentcli-0.2.0-py3-none-any.whl
| Download URL | localagentcli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 207.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3922747377ca2e381c24d07f3f72f5287fbe7c77f7ba0aa0579d0e4f6459190d
|
|
BLAKE2b-256 checksum How to use checksums |
bc16b2c2e316866f965f8b78544084face88e72c33dfcae8b1abf57166ac323d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency logSecurity for localagentcli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for localagentcli-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.