3,214 prompts from top AI collections
← Back to Market
[LIVE] [itzreqle/openrouter-ollama-proxy] 3 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,202 characters
Status: [LIVE] Endpoints found: https://openrouter.ai/api/v1 https://openrouter.ai/api/v1` https://openrouter.ai/docs/api/reference/limits Source: https://github.com/itzreqle/openrouter-ollama-proxy # orollama — OpenRouter + Ollama proxy A small **Go single binary** that puts **OpenRouter** and **local Ollama** behind one local API: - **Anthropic Messages** (`/v1/messages`) for [Claude Code](https://docs.anthropic.com/en/docs/claude-code) - **OpenAI Chat** (`/v1/chat/completions`, `/v1/models`) - **Ollama native** (`/api/tags`, `/api/chat`, `/api/show`) Only two upstreams. No NVIDIA, Groq, Gemini, LiteLLM, Discord bots, or free-model SQLite failover. ```mermaid flowchart LR subgraph clients [Clients] CC[Claude_Code] OC[Ollama_clients] OA[OpenAI_clients] end subgraph proxy [orollama_on_8082] R[ModelRouter] A["/v1/messages"] C["/v1/chat/completions"] T["/api/tags /api/chat /api/show"] end subgraph upstream [Upstreams] OR[OpenRouter] OL[Local_Ollama_11434] end CC --> A OA --> C OC --> T A --> R C --> R T --> R R -->|openrouter_prefix| OR R -->|ollama_prefix_or_local| OL ``` --- ## Ports ```mermaid flowchart TB subgraph device [your_device] CC[Claude_Code] Apps[Ollama_compatible_apps] Proxy["orollama :8082"] Real["ollama serve :11434"] end OR[(OpenRouter_API)] CC -->|ANTHROPIC_BASE_URL| Proxy Apps -->|OLLAMA_HOST| Proxy Proxy -->|local models| Real Proxy -->|remote models| OR ``` | Service | Default | Role | | --- | --- | --- | | **orollama** | `127.0.0.1:8082` | Unified proxy | | **Ollama** | `127.0.0.1:11434` | Real local models (`ollama run` stays here) | | **OpenRouter** | `https://openrouter.ai/api/v1` | Remote models | --- ## Install Go (first time on macOS) You do **not** need a system-wide Go from the installer. This project uses [mise](https://mise.jdx.dev/) (version manager) via Homebrew. ### 1. Homebrew If you do not have Homebrew yet: ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` On Apple Silicon, ensure Homebrew is on your `PATH` (add to `~/.zshrc` if needed): ```bash eval "$(/
Download .txt