HarrisonCN/aicli
⚡ An open-source AI agent that lives in your terminal. Understands your codebase, runs commands, browses the web, and helps you ship faster.
Platform-specific configuration:
{
"mcpServers": {
"aicli": {
"command": "npx",
"args": [
"-y",
"aicli"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
<div align="center">
An open-source AI agent that lives in your terminal.
Understands your codebase · Runs commands · Browses the web · Ships code
[](LICENSE) [](https://nodejs.org) [](https://www.typescriptlang.org) [](https://www.npmjs.com/package/aicli) [](https://github.com/HarrisonCN/aicli/actions)
English · 中文 · Docs · Examples
</div>
---
aicli is a lightweight, open-source AI coding agent that runs entirely in your terminal. Inspired by tools like Gemini CLI and Claude Code, aicli gives you a model-agnostic, fully hackable alternative that works with any OpenAI-compatible API.
It uses a ReAct (Reasoning + Acting) loop to autonomously:
$ aicli chat "There's a bug in my auth middleware. Find it and fix it."
⚡ list_directory(path=src/middleware)
⚡ read_file(path=src/middleware/auth.ts)
⚡ search_files(pattern="req.headers.authorization", path=src)
I found the issue. In `auth.ts` line 42, the token is split on " " but the
Bearer prefix check is missing. Here's the fix:
⚡ edit_file(path=src/middleware/auth.ts, old_string=..., new_string=...)
✅ Fixed! The middleware now correctly validates Bearer tokens.# npm
npm install -g aiclLoading reviews...