JahKnow is an OpenAI-compatible API gateway that sits in front of local Ollama inference — with JWT-enforced plans, per-route scope control, rate limiting, and full request telemetry.
JahKnow is the same gateway Gem Coral runs its own products on — hardened through recurring security review and production use, not built for a brochure.
Every endpoint requires a valid JWT. Scopes are enforced per route, not per service — a token scoped for chat:write cannot reach admin or telemetry routes regardless of the caller.
Rate limiting is applied at the gateway layer before any inference request reaches Ollama. Burst and sustained limits are configurable per API plan tier — ensuring that no single consumer can saturate the GPU.
The gateway is OpenAI-API-compatible. Any service that talks to OpenAI can be pointed at JahKnow with a base URL change — no SDK changes, no prompt rewrites.
| Method | Route | Required scope | Description |
|---|---|---|---|
| POST | /v1/chat/completions | chat:write | OpenAI-compatible chat completions. Supports streaming via SSE. Routes to configured Ollama model. |
| GET | /v1/models | models:read | Lists all available models from the local Ollama instance — OpenAI /models format. |
| POST | /v1/embeddings | embeddings:write | Generates text embeddings via local embedding model. OpenAI-compatible response format. |
| GET | /v1/telemetry | telemetry:read | Returns aggregated usage metrics: requests, tokens, latency, model distribution by plan tier. |
Any SDK or service targeting the OpenAI API works with JahKnow unchanged — set base_url to the gateway, swap your API key, and inference routes to local models.
Inference requests enter a lightweight queue before reaching Ollama. This prevents GPU saturation under concurrent load and provides backpressure signals to upstream callers.
Each route can be mapped to a different local model in configuration. Reasoning tasks route to the primary orchestration model; utility tasks route to a faster, lighter model — no code changes needed to update assignments.
Chat completions support server-sent events streaming. Responses are proxied token-by-token from Ollama to the client — compatible with all OpenAI streaming clients.
Every request emits a structured JSON log line with request ID, model, latency, token count, plan tier, and outcome. Ingest into any log aggregator with no parsing required.
All inference runs through the local Ollama instance. No OpenAI tokens, no Anthropic billing, no Azure endpoints. Cost per query: the electricity to run the GPU.
API access is provisioned after a short use-case review. Reach out to discuss your integration and plan requirements.