writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
proxy-serverOperate OptiLLM as an OpenAI-compatible proxy server, including provider selection, API routes, CLI flags, SSL, auth, batching, streaming, and Docker deployment.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to start, call, configure, secure, deploy, or debug the OptiLLM OpenAI-compatible HTTP proxy.
/v1/chat/completions, /v1/models, or /health.n, or provider pass-through behavior.Route approach selection and algorithm tuning to ../optimization-approaches/SKILL.md. Route plugin-specific setup to ../plugins-and-tools/SKILL.md. Route built-in HuggingFace/LoRA/decoding backends to ../local-inference-decoding/SKILL.md.
OPTILLM_API_KEY activates local inference; OPENAI_API_KEY, CEREBRAS_API_KEY, or AZURE_* route to external clients.127.0.0.1 unless the user intentionally exposes the service. Add server auth before binding to external interfaces.--approach auto when callers will use model prefixes, request body optillm_approach, or prompt tags./v1 for the OpenAI SDK.none, OptiLLM passes through provider responses; for approaches it wraps text into OpenAI-compatible choices and usage metadata.External OpenAI-compatible endpoint:
export OPENAI_API_KEY="sk-or-placeholder"
optillm --approach auto --model gpt-4o-mini --base-url http://localhost:8080/v1
Default OpenAI provider:
export OPENAI_API_KEY="sk-..."
optillm --approach auto --model gpt-4o-mini
Local inference path:
export OPTILLM_API_KEY=optillm
optillm --model meta-llama/Llama-3.2-1B-Instruct
Client call:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="anything")
response = client.chat.completions.create(
model="moa-gpt-4o-mini",
messages=[{"role": "user", "content": "Solve this."}],
)
python scripts/proxy_smoke_client.py --help to build dry-run request payloads or send an explicit opt-in smoke request.n? If not, avoid methods that depend on multiple completions or use approaches that make sequential calls themselves.--optillm-api-key; remember /health remains unauthenticated by design.--ssl-cert-path over --no-ssl-verify.optillm --version prints a package version.GET /health returns {"status": "ok"}./v1.