Skip to main content

Vertex CLI

A modern CLI tool for interacting with multiple LLMs using LangChain.

Features

  • 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

Installation

git clone https://github.com/prathamhole14/Vertex-CLI.git
cd Vertex-CLI
pip install -e .

Quick Start

# Initialize configuration
tex --setup

# Configure a model (provider auto-detected from model name)
tex config gemini-3.6-flash YOUR_API_KEY
tex config gpt-4 YOUR_OPENAI_KEY
tex config claude-opus-5 YOUR_ANTHROPIC_KEY

# Or specify provider explicitly
tex config my-model YOUR_KEY --provider google

# Select active model
tex select gemini-3.6-flash

# Use it
tex "explain quantum computing"

Commands

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

Supported Providers

  • Google Gemini: google or gemini
  • OpenAI: openai
  • Anthropic: anthropic or claude

Configuration

Models are configured in ~/.config/ai_model_manager/models_config.json

Example configuration:

{
  "selected_model": "gemini-flash-latest",
  "models": {
    "gemini-flash-latest": {
      "provider": "google",
      "api_key": "your-api-key",
      "temperature": 0.7
    }
  }
}

Documentation

Requirements

  • Python 3.10+
  • LangChain and provider packages

Usage

Once installed and configured, you can start chatting or debugging commands:

Chat with the LLM

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.

alt text

🔗 Complete CLI Documentation: CLI Commands


Debugging Mode (Beta Feature)

Debugging is currently in beta but can analyze recent shell commands to identify issues.

Debug the Last 3 Commands (default)

tex debug

Specify the Number of Commands to Debug

tex debug -n 5

Add a Custom Debugging Message

tex debug -n 5 -p "Explain why \`git commit\` failed"

Contributing

Contributions are welcome! Follow these steps to contribute:

  1. Fork the repository

  2. Create a new branch:

    git checkout -b feature/your-feature-name
    
  3. Commit your changes:

    git commit -m "Add your feature description"
    
  4. Push your branch:

    git push origin feature/your-feature-name
    
  5. Open a pull request

🔗 Contributor Guide: How to Contribute


License

This project is licensed under the MIT License. See the LICENSE file for more details.


Support

If you encounter any issues, open an issue on the GitHub repository.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vertex_cli-0.1.43.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vertex_cli-0.1.43-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file vertex_cli-0.1.43.tar.gz.

File metadata

  • Download URL: vertex_cli-0.1.43.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.15

File hashes

Hashes for vertex_cli-0.1.43.tar.gz
Algorithm Hash digest
SHA256 d3075146eba8bb4c0cc91bbfdaae3fba8a0216db36f541163600358f2a8251d5
MD5 cef912b0aa8e46e0e7eda9ea9829eff8
BLAKE2b-256 dd7cb048525cfeae91149933f526d23053887dd6d9608064847da5c21b5d71b0

See more details on using hashes here.

File details

Details for the file vertex_cli-0.1.43-py3-none-any.whl.

File metadata

  • Download URL: vertex_cli-0.1.43-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.15

File hashes

Hashes for vertex_cli-0.1.43-py3-none-any.whl
Algorithm Hash digest
SHA256 c81f46d40944967f81442b9873961f7eee19e96a86d7476c9029c7bc88a9aadb
MD5 502714c3c492a501e83155ef97286325
BLAKE2b-256 e9de3b7e51d43d79ad90acd0fa10e8e4d01dbe6897f166c617044ca5322fce23

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

1.0.0

2 files

This release

0.1.43 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page