OpenAI, Anthropic & /v1/decide Agent APIs
One unified server supporting the exact streaming, tool-calling, and probability-routing primitives modern coding agents expect.
Which API Protocols Does Infernix Expose?
Both infernix-launcher.exe (port 1234) and infernix-serve.exe (port 8080) serve multiple agent protocols simultaneously:
- OpenAI Chat Completions:
POST /v1/chat/completions(streaming, tools, vision images & PDFs). - OpenAI Responses API:
POST /v1/responses(built for Codex and newer agent harnesses). - Anthropic Messages API:
POST /v1/messages(drop-in compatibility with Claude Code, preserving thinking blocks and prompt caching semantics). - Probability Decision API:
POST /v1/decide(high-priority classifier/router endpoint).
How Does /v1/decide Work for Fast Agent Routing?
Unlike standard chat generation that waits behind long multi-thousand-token completions, /v1/decide computes token probabilities over a small set of candidate labels and is queued ahead of generating requests. This makes it ideal for sub-second guardrail checks, tool-selection routers, or binary verification steps inside an active coding-agent loop.
Tool-Call Recovery & Deferred MCP Catalogs
Local models frequently stumble on two real-world agent bottlenecks: massive MCP tool schemas blowing up prompt prefill time, and occasional syntax errors in streamed JSON tool arguments. Infernix addresses both at the engine layer:
- Broken Tool-Call Recovery (
--tolerant-tool-calls): Repairs minor delimiter, escaping, or trailing-comma defects before returning the tool-call payload to your IDE harness. - Deferred Tools for Large MCP Catalogs: Supports deferred tool loading patterns sent by Claude Code and modern MCP clients so you do not burn thousands of prompt tokens on unused tool definitions every turn.
Runtime LoRA Adapters
Infernix supports loading runtime LoRA adapters without restarting the server or duplicating base weights—useful for harness-specific fine-tunes such as Harness Hub's Pi, OpenCode, and Hermes adapters targeting Qwen3.8-27B.
Constrained Output (JSON Schema, GBNF, Regex, Choice)
Enforce deterministic machine-readable responses using standard response_format JSON Schemas, custom GBNF grammars, regular expressions, or explicit choice lists directly inside OpenAI or Anthropic requests.