🔌 OpenRouter, LiteLLM Proxy, Cline & Broker Integration Guide 109 Ready GPUs
Route standard OpenAI /v1/chat/completions traffic from LiteLLM Proxy, OpenRouter-style brokers, Cline / Roo Code / Continue.dev, and OpenWebUI onto cryptographically verified BF16 GPUs on FLOP Testnet — either through the official FLOP Testnet Gateway / Public API or directly over sovereign on-chain state channels via joachimber/flop-openai-router + FLOP_INDEXER_URL=https://flopmesh.com.
1. Live OpenRouter-Compatible Model Catalog (Fixed Network G_n Pricing)
The official FLOP Testnet catalog (GET https://gateway.testnet.flop.network/v1/models) emits native OpenRouter provider metadata (architecture, pricing, supported_parameters, top_provider, and fixed x_flop.gflops_per_token):
| Model ID (OpenRouter Slug) | Precision | Context | Fixed G_n / tok | Tool Calling | Best Broker / Agent Workload |
|---|---|---|---|---|---|
qwen/qwen3-14b | BF16 | 40,960 | 30 | Native Hermes (tools, tool_choice) | Flagship reasoning, agentic tool-use, 32k+ spec & code audits |
qwen/qwen2.5-14b-instruct | BF16 | 32,768 | 30 | Native Hermes (tools, tool_choice) | Deterministic instruction-following, JSON extraction, multilingual chat |
qwen/qwen2.5-coder-7b-instruct | BF16 | 32,768 | 16 | Native Hermes (tools, tool_choice) | Dedicated low-latency IDE autocomplete, Cline / Roo Code / Continue edits |
qwen/qwen3-8b | BF16 | 40,960 | 17 | Native Hermes (tools, tool_choice) | General fast chat & high-concurrency batch summarization |
2. LiteLLM Proxy Multi-Model Broker Setup (config.yaml)
Run flop-openai-router locally on 127.0.0.1:8787 (with multi-wallet --keystore-dir round-robin and automatic FLOP_INDEXER_URL=https://flopmesh.com least-loaded discovery) behind LiteLLM Proxy for unified API keys, rate-limiting, Prometheus metrics, and automatic upstream failover:
# 1) Start sovereign on-chain router (rotates across funded keystores & verifies every turn)
git clone https://github.com/joachimber/flop-openai-router.git && cd flop-openai-router && npm install
FLOP_KEY_PASSWORD="..." FLOP_INDEXER_URL=https://flopmesh.com \
npx flop-openai-router --keystore-dir ./wallets --max-flop 9.5 --via auto --port 8787
# 2) litellm_config.yaml — expose a single OpenAI/OpenRouter-compatible broker endpoint on :4000
model_list:
- model_name: qwen/qwen3-14b
litellm_params:
model: openai/qwen/qwen3-14b
api_base: http://127.0.0.1:8787/v1
api_key: flop-local
timeout: 300
- model_name: qwen/qwen2.5-14b-instruct
litellm_params:
model: openai/qwen/qwen2.5-14b-instruct
api_base: http://127.0.0.1:8787/v1
api_key: flop-local
timeout: 300
- model_name: qwen/qwen2.5-coder-7b-instruct
litellm_params:
model: openai/qwen/qwen2.5-coder-7b-instruct
api_base: http://127.0.0.1:8787/v1
api_key: flop-local
timeout: 180
router_settings:
routing_strategy: least-busy
num_retries: 2
general_settings:
master_key: sk-flop-broker-change-me
# Launch LiteLLM Proxy
pip install 'litellm[proxy]'
litellm --config litellm_config.yaml --port 4000
3. Cline, Roo Code, Continue.dev & Cursor Setup
Point your IDE coding agent directly at http://127.0.0.1:8787/v1 (or your LiteLLM broker on :4000/v1):
- API Provider:
OpenAI Compatible - Base URL:
http://127.0.0.1:8787/v1 - API Key:
flop-local(or your LiteLLMmaster_key) - Model ID (Coding / Fast Edits):
qwen/qwen2.5-coder-7b-instruct(32,768ctx) - Model ID (Architect / Deep Planning):
qwen/qwen3-14b(40,960ctx) orqwen/qwen2.5-14b-instruct
Example ~/.continue/config.yaml for Continue.dev:
name: FLOP Verifiable Coding Config
version: 0.0.1
schema: v1
models:
- name: FLOP Qwen3-14B (Architect)
provider: openai
model: qwen/qwen3-14b
apiBase: http://127.0.0.1:8787/v1
apiKey: flop-local
roles: [chat, edit, apply]
- name: FLOP Qwen2.5-Coder-7B (Fast Edit)
provider: openai
model: qwen/qwen2.5-coder-7b-instruct
apiBase: http://127.0.0.1:8787/v1
apiKey: flop-local
roles: [chat, edit, autocomplete]
4. OpenWebUI Self-Hosted Team Chat
docker run -d --network host \
-e OPENAI_API_BASE_URLS="http://127.0.0.1:8787/v1" \
-e OPENAI_API_KEYS="flop-local" \
-v open-webui:/app/backend/data \
--name open-webui ghcr.io/open-webui/open-webui:main
5. Direct Signed Miner Admission & Broker Discovery APIs
Custom broker relays building directly on @flop-labs/sdk can query signed standing offers, verified flop-miner-endpoint-v1 advertisements, and dynamic gas quotes in real time:
- Least-Loaded Multi-Operator Queue:
GET https://flopmesh.com/live&GET https://flopmesh.com/api/miners?model=qwen/qwen2.5-coder-7b-instruct - SDK Standing Offers:
GET https://flopmesh.com/api/session-offers?model=qwen/qwen2.5-14b-instruct - Signed
flop-miner-endpoint-v1Proofs:GET https://flopmesh.com/api/miner-endpoints&GET https://flopmesh.com/miner-endpoints/m07.json - Live Dynamic Escrow Quote:
GET https://flopmesh.com/api/open-quote?miner=m07&turns=1