Skip to main content

Kilo Proxy

PyPI GitHub

A fully OpenAI-compatible API proxy for Kilo.

GitHub • PyPI

Features

  • Full OpenAI API compatibility - chat completions, completions, embeddings, models
  • All OpenAI parameters supported - max_tokens, temperature, tools, stream, response_format, etc.
  • Streaming SSE support - real-time streaming responses
  • Background server mode - run as a daemon process
  • Token authentication management - easy auth configuration
  • Cross-platform - Windows, macOS, Linux

Installation

pip install kilo-proxy

Or install from source:

pip install -e .

CLI Commands

Authentication

Set your Kilo authentication token:

kilo-proxy auth [token]

If no token is provided, anonymous access is used by default.

Start Server (Background)

Start the server in background mode:

kilo-proxy start [--host HOST] [--port PORT]

Options:

  • --host - Host to bind to (default: 127.0.0.1)
  • --port - Port to listen on (default: 5380)

Stop Server

Stop the background server:

kilo-proxy stop

Run Server (Foreground)

Run the server in foreground mode:

kilo-proxy proxy [--host HOST] [--port PORT]

Options:

  • --host - Host to bind to (default: 127.0.0.1)
  • --port - Port to listen on (default: 5380)

Server Status

Check the current server status:

kilo-proxy status

List Models

List all available models:

kilo-proxy models

Broke Mode (Toggle Free Models)

Toggle broke mode (only show free models):

kilo-proxy broke          # Toggle broke mode
kilo-proxy broke on       # Enable broke mode
kilo-proxy broke off      # Disable broke mode
kilo-proxy broke --list   # List all free models

Restart Server

Restart the proxy server:

kilo-proxy restart

Generate New Session

Generate a new session ID to bypass rate limits:

kilo-proxy new-session

View Logs

View server logs:

kilo-proxy logs                    # Show last 100 lines
kilo-proxy logs --lines 50        # Show last 50 lines
kilo-proxy logs --errors          # Show errors only
kilo-proxy logs --follow          # Follow log output

Start Proxy and OpenCode

Start the proxy and launch OpenCode:

kilo-proxy opencode

IP Shuffler

Rotate your IP address to bypass rate limits! Load proxies from a URL or file, and the shuffler will automatically rotate your IP at a set interval.

# Enable/disable IP shuffling
kilo-proxy shuffle on
kilo-proxy shuffle off

# Add proxies manually
kilo-proxy shuffle add http://ip:port
kilo-proxy shuffle add socks5://ip:port

# Load proxies from URL or file (one per line, # for comments)
kilo-proxy shuffle load https://example.com/proxies.txt
kilo-proxy shuffle load ./proxies.txt

# List configured proxies
kilo-proxy shuffle list

# Set shuffle interval (minimum 60 seconds)
kilo-proxy shuffle interval 300

# Force immediate shuffle
kilo-proxy shuffle now

# Check all proxies (mark working/broken)
kilo-proxy shuffle check
kilo-proxy shuffle check --remove  # Auto-remove broken proxies

# Fix/normalize proxy URLs
kilo-proxy shuffle fix

# View shuffler status
kilo-proxy shuffle status

Configuration Wizard

Interactive configuration:

kilo-proxy config         # Run configuration wizard
kilo-proxy config --show  # Show current config

Install OpenCode Integration

Install and configure OpenCode to use Kilo models:

kilo-proxy install opencode

This interactive wizard will:

  1. Find or create your OpenCode config
  2. Ask if you're broke (free models only)
  3. Let you select models for all or per agent/category
  4. Optionally install Oh My OpenCode support
  5. Map Oh My OpenCode models to Kilo models
  6. Write the configuration files

Show Configuration

Display the current configuration:

kilo-proxy config-show

Autolaunch (Run on Boot)

Install the proxy to start automatically on system boot:

kilo-proxy autolaunch

Remove the proxy from boot:

kilo-proxy unautolaunch

Works on Windows (Task Scheduler), macOS (LaunchAgents), and Linux (systemd user services).

API Endpoints

Method Endpoint Description
GET /v1/models List all available models
GET /v1/models/{model_id} Get a specific model
POST /v1/chat/completions Create a chat completion
POST /v1/completions Create a text completion
POST /v1/embeddings Create embeddings
GET /v1/engines List engines (legacy)
GET /health Health check endpoint

Usage Examples

List Models

curl http://localhost:5380/v1/models

Chat Completion (Non-streaming)

curl http://localhost:5380/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5:free",
    "messages": [
      {"role": "user", "content": "Hello, how are you?"}
    ],
    "max_tokens": 100,
    "temperature": 0.7
  }'

Chat Completion (Streaming)

curl http://localhost:5380/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5:free",
    "messages": [
      {"role": "user", "content": "Tell me a short story"}
    ],
    "stream": true,
    "max_tokens": 500
  }'

Configuration

File Location
Config file ~/.kilo-proxy/config.json
PID file ~/.kilo-proxy/server.pid

Supported Models

Popular free models available through Kilo:

  • z-ai/glm-5:free
  • minimax/minimax-m2.5:free
  • deepseek/deepseek-chat:free
  • meta-llama/llama-3-8b-instruct:free
  • qwen/qwen-2-7b-instruct:free

Run kilo-proxy models to see all available models.

Requirements

  • Python 3.9+

License

MIT

Author

Metadata

Release files for kilo-proxy 1.1.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 kilo-proxy 1.1.1
File Size Uploaded Provenance
kilo_proxy-1.1.1.tar.gz 25.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kilo-proxy 1.1.1
File Interpreter ABI Platform
kilo_proxy-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 50.4 kB

Release files / kilo_proxy-1.1.1.tar.gz

Download URL kilo_proxy-1.1.1.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8d7f3827aa7e4f3b42e71001594ae12a2292efb30e51375dd3934950392087fc
BLAKE2b-256 checksum
How to use checksums
79b5d365b440367610e5b238553a106beff8b1468557182481067ed4acf7652e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / kilo_proxy-1.1.1-py3-none-any.whl

Download URL kilo_proxy-1.1.1-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
633953a7c7eb3da60fe8e2c734ce8631e3af8b14566ae8cbf0d627dfa3ec5c13
BLAKE2b-256 checksum
How to use checksums
545370f6d90658037aa94bc5c6b5c07e788448a9b0930a7802352c8127adaf5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for kilo-proxy 1.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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