AI Gateway Error Codes
Every error a client of Elchi AI Gateway can receive, with its HTTP status, body code, the component that emits it, and the JSON-RPC errors on /mcp.
Every error a client of Elchi AI Gateway can receive, with its HTTP status, body code, the component that emits it, and the JSON-RPC errors on /mcp.
Elchi AI Gateway puts one governed entry point for LLM providers and MCP tools on your edges: provider keys stay in the control plane, consumers get their own keys and quotas, and every request is measured.
Every socket, port, directory, file, systemd unit, environment variable, ClickHouse table, generated Envoy resource name and metadata key of Elchi AI Gateway.
Every provider type the AI gateway accepts, its credential, endpoint and defaults, a client's own provider key, request changes, model lists, checks and provider status.
One row per LLM request — who, what model, which provider, tokens, status and timing — with optional prompt and answer content that is masked and encrypted on the edge and only the control plane can open.
Every /api/v3/ai-gateway endpoint of the Elchi controller, with its parameters, answers, status codes, roles and concurrency rules, and an example per group.
Where provider, consumer and MCP secrets live and travel, how the request path is isolated on the edge, and which headers, ports and logs the AI gateway protects.
Symptom, cause and fix for Elchi AI Gateway problems, from pushes that never reach an edge to 4xx/5xx answers, empty usage and MCP tool calls, with the exact place to check each.
Where the AI gateway's usage, cost, error rate, latency, refusals and provider status come from, how to read them in the UI and the API, and what each ClickHouse table keeps and for how long.
Creating the Envoy listeners that serve the AI gateways — HTTPS and plain HTTP entries, the 308 redirect, binding gateways and a default gateway, deploying, live changes and removal.
How applications and agents call an AI gateway — base URL, endpoints, keys, streaming, OpenAI and Anthropic SDKs, curl, LangChain, Claude Code — and every error a client can get.
Connect Claude Code, Cursor or any MCP client to a gateway's /mcp endpoint with a consumer key, test it with curl, and read the answers.
Consumers of keyed gateways, their elchi virtual keys, the headers a key is accepted in, what each consumer may use, and what a missing, unknown or revoked key gets.
How a gateway is selected by host, which models it serves on which providers, models served by several providers with weights and fallbacks, the model lists, and what clients get for an unknown model.
The shortest complete path to a first LLM request through Elchi AI Gateway: a provider, a gateway, a consumer key and an AI listener, in the UI or through the REST API.
Run elchi-ai-gateway on an edge: built into Elchi OS 0.8.0+, or installed on a plain Linux edge with its own installer, including offline installs, the engine version gate, config.yaml, sinks, upgrades and removal.
The MCP calls tab and the ClickHouse tables behind it: per-tool calls, failures and p95, every request the edges sent to an MCP server, and what is never recorded.
Serve MCP servers on a gateway, grant consumers a server's tools, set MCP call quotas, and read what a refused call returns.
Add, edit and delete the MCP servers a project's gateways may serve: URL, shared credential, users' own tokens, the tool selector and tool discovery.
How Elchi AI Gateway serves MCP servers' tools to agents at /mcp on an AI listener: one connection per agent, per-consumer grants and call quotas, credentials kept in the control plane and the proxy, a call log and a sensitive-data scan.
How an AI gateway change reaches the edges and how to verify it: deploy jobs and their per-edge results, Sync, per-edge status and files, refused pushes and last-good, older edges, loopback endpoints, logs, restarts, upgrades and removal.
Let each user reach an MCP server with their own token through the AI gateway: the x-elchi-mcp-token headers, the server's token header, and what happens when the token is missing.
Consumer quotas on requests, tokens and cost, how and when they count, the price table and how cost is computed, and the gateway and global token limits with CEL.
Find credentials, payment numbers and personal data in LLM requests on the edge, flag or block them before any provider sees them, and record every decision without the values.
How the AI gateway's sensitive-data policy scans MCP tool arguments and tool results, what a blocked argument, result, server request or notification becomes, and what is never scanned.