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.

Metadata

Release files for Vertex-CLI 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Vertex-CLI 1.0.1
File Size Uploaded Provenance Actions
vertex_cli-1.0.1.tar.gz 21.9 kB With provenance Details for vertex_cli-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Vertex-CLI 1.0.1
File Interpreter ABI Platform Actions
vertex_cli-1.0.1-py3-none-any.whl Python 3 none any Details for vertex_cli-1.0.1-py3-none-any.whl

Total release size: 37.6 kB

Release files / vertex_cli-1.0.1.tar.gz

Download URL vertex_cli-1.0.1.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ed02c84ef59ec44e7593b5cacf50cc447364f84de67e76cf2d5a4845d8c37688
BLAKE2b-256 checksum
How to use checksums
b5ac9cd21acac7920930a8bb2006971ff8ebdaf14a8070c41e616dde36bef76c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Release files / vertex_cli-1.0.1-py3-none-any.whl

Download URL vertex_cli-1.0.1-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3844f46d960286b2a89cf85ed6800cba3d5d20e49472ce980dd8e8aadd58462
BLAKE2b-256 checksum
How to use checksums
38a0cc758f0ac30684ffd6e32e60645d4b51b54ae57e92e98f59c0a2f91aefd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Security for Vertex-CLI 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vertex_cli-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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