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
  • Shell command debugging
  • Easy model switching

Installation

pip install Vertex-CLI

Gemini works out of the box. OpenAI and Anthropic are optional extras, so their packages are only downloaded if you ask for them:

pip install "Vertex-CLI[openai]"     # OpenAI models
pip install "Vertex-CLI[anthropic]"  # Anthropic Claude models

To work on Vertex-CLI itself, install from a clone instead:

git clone https://github.com/prathamhole14/Vertex-CLI.git
cd Vertex-CLI
pip install -e ".[openai,anthropic]"

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 shell 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 — installed by default
  • OpenAI: openai — needs pip install 'Vertex-CLI[openai]'
  • Anthropic: anthropic or claude — needs pip install 'Vertex-CLI[anthropic]'

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-1.0.0.tar.gz (22.2 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-1.0.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vertex_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a8fb0e9f7308790e604c193574e78f4740c28860cff40f997f720a6b2da34626
MD5 03b6f55c28fee9bc753054d7b0d65fc3
BLAKE2b-256 250e4299c3675a5f127e080cced4ffc3b9f5b2bffeb15ca7b2f4d3413fa907bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vertex_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0920cf4004ef1b3c8c20a1d36b58b63ba33e6227e3e03d0daba73d226811dc2
MD5 dc79fa4ab7bac68c821a497dcd886e46
BLAKE2b-256 ca38b1dfc95770401e8c0eceff8dd2f5a5169f2b724dbace43ca7701bd5b77bd

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

This release

1.0.0 This release

2 files

0.1.43

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