Status: [UNTESTED] Endpoints found: http://localhost:8765/v1/chat/completions http://localhost:8765/v1/health http://localhost:8765/v1/models http://localhost:8765/v1/health` Source: https://github.com/marwangpt237/puter-llm-openminis # Puter LLM Server for OpenMinis OpenAI-compatible local API server that proxies requests to Puter's backend. Provides free access to multiple LLMs including **GLM-4.5-Flash (zero cost, 128K context)**, Gemini 2.5 Flash, DeepSeek V4, Claude Haiku, and more. ## How it works ``` OpenMinis → http://localhost:8765/v1 → puter-server.py → api.puter.com → [Zhipu AI / Google / DeepSeek / Anthropic] ``` The server translates standard OpenAI API calls into Puter's driver format. No external dependencies beyond Python 3 stdlib. ## Files | File | Purpose | |------|---------| | `puter-server.py` | The API server — run this | | `puter-llm-client.py` | Direct CLI client — call models without server | | `puter_env.sh` | Stores your Puter auth token | ## Setup ### 1. Get a Puter token - Go to https://puter.com and sign up (free, no credit card) - Open browser DevTools → Application → Cookies → find `puter_auth_token` - Or use the JS SDK in browser console: `puter.authToken` - Copy the token into `puter_env.sh`: ```bash export PUTER_TOKEN="eyJ..." ``` ### 2. Install Python 3 ```bash # Alpine Linux (OpenMinis sandbox) apk add python3 # Other systems # Already installed on most Linux/Mac ``` No pip packages needed — uses only stdlib (`json`, `urllib`, `http.server`). ### 3. Start the server ```bash cd /path/to/puter-llm-openminis python3 puter-server.py ``` You'll see: ``` Puter API Server — OpenMinis LLM Backend Endpoint: http://localhost:8765/v1 Default model: glm-4.5-flash [FREE] ``` Keep this terminal window open. The server runs as long as the process lives. ### 4. Configure OpenMinis In Minis Settings → Providers → Add Custom OpenAI provider: - **Base URL:** `http://localhost:8765/v1` - **API Key:** `puter-local` (any value works, auth is via the env file) - **Default model:** `glm-4.5-flash` ## Available Models ### Zero-cost (Puter charges $0) | Key | Model | Context | Notes | |-----|-------|---------|-------| | `glm-4.5-flash