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
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc8d5b4a6a7a906ece941b1a0c4a9cad7211da45e622ef995981a56bf964d8f1
|
|
| MD5 |
6f6223d9f9e1d82d0155a17754729e34
|
|
| BLAKE2b-256 |
c74707c7e691ee576133e8583f8b8b9bd17bef801451ac4a236e317cbdf792a5
|
Provenance
The following attestation bundles were made for localagentcli-0.1.0.tar.gz:
Publisher:
publish.yml on rainzhang05/LocalAgentCLI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
localagentcli-0.1.0.tar.gz -
Subject digest:
bc8d5b4a6a7a906ece941b1a0c4a9cad7211da45e622ef995981a56bf964d8f1 - Sigstore transparency entry: 1133325434
- Sigstore integration time:
-
Permalink:
rainzhang05/LocalAgentCLI@3b88724e72626028503787b873413c519799869e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rainzhang05
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3b88724e72626028503787b873413c519799869e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6de89b651daac98325bcb743c604124290f5cc9d48b08f680b9175683c0cf8c3
|
|
| MD5 |
855f3171a29021fca32c7e285f9139ec
|
|
| BLAKE2b-256 |
890f5e2682daa4afe67d2f35c4f7a7bfa83a4886408dc61433574431bf0a4de6
|
Provenance
The following attestation bundles were made for localagentcli-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on rainzhang05/LocalAgentCLI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
localagentcli-0.1.0-py3-none-any.whl -
Subject digest:
6de89b651daac98325bcb743c604124290f5cc9d48b08f680b9175683c0cf8c3 - Sigstore transparency entry: 1133325483
- Sigstore integration time:
-
Permalink:
rainzhang05/LocalAgentCLI@3b88724e72626028503787b873413c519799869e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rainzhang05
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3b88724e72626028503787b873413c519799869e -
Trigger Event:
push
-
Statement type: