acli-tool
v0.1.3
Published
An AI-powered coding assistant for explaining, reviewing, and improving your code — right from the terminal.
Maintainers
Readme
acli
An AI-powered coding assistant for explaining, reviewing, and improving your code — right from the terminal.
Installation
npm install -g acli-toolQuick Start
First, initialize the CLI tool with your configuration:
acli initThis will prompt you to enter:
- API Key: Your OpenRouter API key
- Provider: AI provider (currently supports
openrouter) - Model: Model name (default:
x-ai/grok-4.1-fast)
Commands
acli init
Initialize the CLI tool and create a configuration file. If a config file already exists, you'll be prompted to update it.
acli initacli explain
Get AI-powered explanations for your code files.
acli explain -f <filePath>
# or
acli explain --file <filePath>Example:
acli explain -f "src/index.ts"
acli explain --file "/components/Button.jsx"acli review
Get AI-powered code review and feedback for your code files.
acli review -f <filePath>
# or
acli review --file <filePath>Example:
acli review -f "src/utils/helpers.ts"
acli review --file "/api/routes.js"acli config
View or update your current configuration.
View current config:
acli config --view
# or
acli config -vUpdate config:
acli config --update
# or
acli config -uConfiguration
Configuration is stored in your home directory under a config folder. The config file contains:
apiKey: Your OpenRouter API keyprovider: AI provider (currently onlyopenrouteris applicable)model: Model name to use for AI requests
You can update your configuration at any time using acli config --update.
Requirements
- Node.js (v18 or higher)
- OpenRouter API key (Get one here) "" only is applicable
License
MIT
Issues & Support
Found a bug or have a feature request? Please open an issue on GitHub.
