Skip to main content

25 docs tagged with "ai-gateway"

View all tags

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.

AI Gateway Overview

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.

AI Gateway Ports, Files and Tables

Every socket, port, directory, file, systemd unit, environment variable, ClickHouse table, generated Envoy resource name and metadata key of Elchi AI Gateway.

AI Gateway Providers

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.

AI Gateway Request Log

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.

AI Gateway REST API

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.

AI Gateway Security Model

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.

AI Gateway Troubleshooting

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.

AI Gateway Usage, Costs and Provider Health

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.

AI Listeners

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.

Calling the Gateway

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.

Connecting Agents to MCP

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 and Keys

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.

Gateways and Models

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.

Get Started with the AI Gateway

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.

Install the AI Gateway on an Edge

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.

MCP Call Log

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.

MCP Grants and Call Quotas

Serve MCP servers on a gateway, grant consumers a server's tools, set MCP call quotas, and read what a refused call returns.

MCP Servers

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.

MCP Through the AI Gateway

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.

Operating the AI Gateway

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.

Personal Tokens for MCP Servers

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.

Quotas, Limits and Costs

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.

Sensitive Data in LLM Requests

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.

Sensitive Data on MCP

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.