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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vertex_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for vertex_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ed02c84ef59ec44e7593b5cacf50cc447364f84de67e76cf2d5a4845d8c37688
MD5 5b5e59c0bacc623e58c7fdfd9722fb42
BLAKE2b-256 b5ac9cd21acac7920930a8bb2006971ff8ebdaf14a8070c41e616dde36bef76c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vertex_cli-1.0.1.tar.gz:

Publisher: release.yml on prathamhole14/Vertex-CLI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: vertex_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for vertex_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3844f46d960286b2a89cf85ed6800cba3d5d20e49472ce980dd8e8aadd58462
MD5 69a0ab7606a8b8dca9e60b5e1200420a
BLAKE2b-256 38a0cc758f0ac30684ffd6e32e60645d4b51b54ae57e92e98f59c0a2f91aefd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for vertex_cli-1.0.1-py3-none-any.whl:

Publisher: release.yml on prathamhole14/Vertex-CLI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

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