A modern CLI tool for interacting with multiple LLMs using LangChain.
- Unified interface for multiple LLM providers (Google Gemini, OpenAI, Anthropic Claude)
- Clean architecture following SOLID principles
- Conversation history management
- Bash command debugging
- Easy model switching
git clone https://github.com/Prtm2110/Vertex-CLI.git
cd Vertex-CLI
pip install -e .# Initialize configuration
tex --setup
# Configure a model (provider auto-detected from model name)
tex config gemini-2.5-flash YOUR_API_KEY
tex config gpt-4 YOUR_OPENAI_KEY
tex config claude-3-opus YOUR_ANTHROPIC_KEY
# Or specify provider explicitly
tex config my-model YOUR_KEY --provider google
# Select active model
tex select gemini-2.5-flash
# Use it
tex "explain quantum computing"tex "your question" # Ask a question
tex chat <text> # Chat mode
tex debug # Debug bash commands
tex config <model> <api_key> # Configure model (auto-detects provider)
tex config <model> <key> --provider <provider> # Specify provider explicitly
tex list # List models
tex select <model> # Select active model
tex remove <model> # Remove model- Google Gemini:
googleorgemini - OpenAI:
openai - Anthropic:
anthropicorclaude
Models are configured in ~/.config/ai_model_manager/models_config.json
Example configuration:
{
"selected_model": "gemini-2.5-flash",
"models": {
"gemini-2.5-flash": {
"provider": "google",
"api_key": "your-api-key",
"temperature": 0.7
}
}
}- Architecture - Technical architecture
- Python 3.8+
- LangChain and provider packages
See LICENSE file. tex-init
---
## Configuration
You can configure the CLI to use a specific LLM model by adding or updating your API key:
```bash
tex config gemini-1.5-flash YOUR_MODEL_API_KEY
Replace gemini-1.5-flash with your preferred model name and YOUR_MODEL_API_KEY with your API key.
To list all configured models:
tex listTo remove a model:
tex remove gemini-1.5-creativeTo select a model as the default:
tex select gemini-1.5-flashOnce installed and configured, you can start chatting or debugging commands:
You can either use the chat subcommand or omit it entirely:
# Explicit subcommand
tex chat "Tell me about the solar system"
# Shortcut form (no subcommand)
tex "Tell me about the solar system"Replace the quoted string with any query you'd like.
🔗 Complete CLI Documentation: CLI Commands
Debugging is currently in beta but can analyze recent shell commands to identify issues.
tex debugtex debug -n 5tex debug -n 5 -p "Explain why \`git commit\` failed"Contributions are welcome! Follow these steps to contribute:
-
Fork the repository
-
Create a new branch:
git checkout -b feature/your-feature-name
-
Commit your changes:
git commit -m "Add your feature description" -
Push your branch:
git push origin feature/your-feature-name
-
Open a pull request
🔗 Contributor Guide: How to Contribute
This project is licensed under the MIT License. See the LICENSE file for more details.
If you encounter any issues, open an issue on the GitHub repository.
