{"repo":"centminmod/or-cli","free":true,"listed":false,"github":"https://github.com/centminmod/or-cli","clone":"git clone https://github.com/centminmod/or-cli.git","description":"Python command-line tool for interacting with AI models through the OpenRouter API/Cloudflare AI Gateway, or local self-hosted Ollama. Optionally support Microsoft LLMLingua prompt token compression","language":null,"stars":21,"topics":["cloudflare-ai","cloudflare-ai-gateway","llm-inference","llms","ollama","ollama-api","openai-api","openrouter","openrouter-api","openai"],"license":null,"category":"ai-agents","readme_excerpt":"I've been a paying user of ChatGPT Plus, Claude Pro, and Google Gemini Advanced since the beginning. However, for tasks involving automated text processing (summarization, transformation) of large datasets, I needed a non-GUI solution. I was using the OpenAI API, but then I discovered OpenRouter AI on February 16, 2025. OpenRouter AI offers a generous free tier, so I created or-cli.py to leverage it for my text processing needs. I've also added Ollama integration to use self-hosted models from Hugging Face. On February 24, 2025 added Cloudflare Workers AI support as well to or-cli.py . This repository serves as my adventures in learning more about AI through coding and extending or-cli.py :sunglasses: or-cli.py - OpenRouter AI Command-Line Interface A versatile Python command-line tool for interacting with AI models through the OpenRouter API, supporting direct API calls, request caching via Cloudflare AI Gateway, or via Cloudflare Workers AI or local model inference with Ollama which can optionally leverage Microsoft LLMLingua prompt token compression techniques to reduce prompt token sizes. Also supports RAG Integrations for txtAI and Cloudflare AutoRAG. For OpenRouter AI API and Cloudflare Workers AI pricing, you can see the below LLM Moddel Pricing Tables. Table of Contents - Overview - Architecture - Key Features - Configuration - Cloudflare Workers AI Integration - Setting Up Cloudflare Workers AI - Requirements - Usage - Command-Line Arguments - List Models - Example U","default_branch":null,"files":null,"tree":[],"storefront":"/r/centminmod","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/centminmod/or-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}