
# Guanaco 🦙
[](https://pypi.org/project/guanaco/)
[](https://pypi.org/project/guanaco/)
[](LICENSE)
[](https://www.python.org/downloads/)
**Maximize your Ollama Cloud subscription.**
Guanaco is a self-hosted FastAPI proxy that sits between your applications and Ollama Cloud. It provides an OpenAI-compatible `/v1/chat/completions` endpoint, emulates 8 major search and scrape APIs, tracks token usage, supports transparent fallback to external providers, and ships with a real-time management dashboard — all on a single port.
```bash
curl -sSL https://raw.githubusercontent.com/evangit2/guanaco/main/install.sh | bash
```
---
## Features
- **LLM Router** — OpenAI-compatible `/v1/chat/completions` and Anthropic-compatible `/v1/messages` proxy with streaming, token tracking, and analytics
- **8 Search/Scrape Emulators** — Drop-in replacements for Tavily, Exa, SearXNG, Firecrawl, Serper, Jina, Cohere, and Brave Search
- **Fallback Provider** — Automatically route to a secondary OpenAI-compatible provider when Ollama Cloud is slow, rate-limited, or unavailable; also kicks in when your Ollama Cloud usage quota is exhausted
- **Usage Tracking** — Monitor Ollama Cloud session and weekly quota usage in real time
- **Smart Caching** — Optional exact-match and session-aware prefix caching (BETA) to reduce redundant API calls
- **Web Dashboard** — Real-time analytics, model configuration, API key management, and service status at `http://localhost:8080/dashboard`
- **Docker & systemd** — Production-ready deployment with included service unit files
---
## Quick Start
### 1. Install
```bash
curl -sSL https://raw.githubusercontent.com/evangit2/guanaco/main/install.sh | bash
```
The installer will check for prerequisites (git, Python 3.10+, venv) and auto-install them if missing, then prompt you for your Ollama API key and preferred port.
For platform-specific instructions, see [WSL Installation](#wsl-installation) and [macOS Installation](#macos-installation).
### 2. Reload your shell
The installer adds `guanaco` to your PATH, but you need to reload for it to take effect:
```bash
source ~/.bashrc # or ~/.zshrc on macOS
```
After this, `guanaco` is available as a system command from anywhere.
The installer starts Guanaco automatically (as a systemd service or in the foreground).
---
## CLI Commands
| Command | Description |
|---------|-------------|
| `guanaco start` | Start the proxy server (router + search APIs + dashboard) |
| `guanaco setup` | Interactive configuration wizard |
| `guanaco status` | Show service status and Ollama Cloud connectivity |
| `guanaco models` | List available Ollama Cloud models |
| `guanaco models --refresh` | Force-refresh model list from Ollama API |
| `guanaco models --capabilities` | Show model capabilities and sizes |
| `guanaco usage` | Check current Ollama Cloud session/weekly quota |
| `guanaco key generate` | Generate a new API key |
| `guanaco key list` | List all API keys |
| `guanaco key revoke` | Revoke an API key |
| `guanaco analytics` | View request analytics summary |
| `guanaco analytics --errors` | Show recent errors |
| `guanaco analytics --model