Welcome to AI CLI, an open source cli application that allows you to use an AI copilot right inside your terminal, like you would in Cursor or Windsurf
-
Navigate to the directory:
cd cli-ai
-
Install globally:
npm install -g .
Note: If you get a permission error, use:
sudo npm install -g .
-
Test the installation:
ai helloworld
View all available commands:
ai --help
ai ask <question>
- Ask a question to the AIai --model <model> ask <question>
ai -m <model> ask <question>
ai setup
- Configure API keys and preferencesai helloworld
- Test the installation
Before using the CLI, you'll need to:
Note: These are the models supported by default, you can change this by editing models.json
- OpenAI
- GPT 4.1
- GPT 4.1 mini
- GPT 4.1 nano
- GPT 4o
- GPT 4o mini
- o4
- o4 mini
- Anthropic
- Claude 3.7 Sonnet
- Claude 3.5 Sonnet
- Claude 3.5 Haiku
- Claude 3 Haiku
MIT
Enjoy using AI CLI! 😊