100% Open-Source (MIT License)Sub-5ms AI Gateway LatencyOpenAI-Compatible REST API ProxyZero-Trust Access Control & PoliciesInline PII Redaction & GuardrailsDeploy Docker Container in 30 SecondsMulti-Model Provider Failover RoutingOpenTelemetry Native Tracing SpecMCP Tools & Agent Governance100% Open-Source (MIT License)Sub-5ms AI Gateway LatencyOpenAI-Compatible REST API ProxyZero-Trust Access Control & PoliciesInline PII Redaction & GuardrailsDeploy Docker Container in 30 SecondsMulti-Model Provider Failover RoutingOpenTelemetry Native Tracing SpecMCP Tools & Agent Governance100% Open-Source (MIT License)Sub-5ms AI Gateway LatencyOpenAI-Compatible REST API ProxyZero-Trust Access Control & PoliciesInline PII Redaction & GuardrailsDeploy Docker Container in 30 SecondsMulti-Model Provider Failover RoutingOpenTelemetry Native Tracing SpecMCP Tools & Agent Governance

ControlEvery AI Request

Secure your AI applications with a unified gateway for LLM routing, access control, and security policies.

$pip install tuenel-gateway
from openai import OpenAI

# Secure OpenAI traffic via Tuenel AI Gateway control plane
client = OpenAI(
    api_key="tu_live_98a72b3c4d...",
    base_url="https://api.tuenel.com/v1"
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Process secure customer payload"}]
)
Python
PyPI / pip SDK
TypeScript
npm / yarn SDK
Go (Golang)
go get sdk
Node.js
CommonJS & ESM
Rust
cargo crate
cURL / REST
OpenAI Spec HTTP

Secure Every LLM Request. One Gateway

A unified AI gateway for routing, access control, security policies, and usage management.

Unified Security Gatewayapi.tuenel.com/v1
OpenAI
Anthropic
Gemini
Open-Source
client.chat.completions.create(model="...")200 OK (Policy Enforced)

Unified Provider Gateway

Connect OpenAI, Anthropic, Gemini, and open models through one API

Primary ProviderRate Limited 429
Auto-Failover RouteActive in 8ms

Smart Routing & Reliability

Automatically route traffic and recover from provider failures

Zero-Trust PII & Security Shield
Active

Input: "Customer [REDACTED_SSN] requesting refund"

AI Security Layer

Detect threats, redact sensitive data, and enforce policies

Token Spend$0.0012 / req

Usage Controls

Set limits, budgets, and visibility across teams

MCP ToolsScoped

Agent Governance

Secure MCP tools and agent permissions

The Control Layer for AI Infrastructure

Route, secure, and govern LLM requests across every provider

STEP 01
Client Layer

Applications

SDK / Proxy Client

Your apps send LLM requests through one OpenAI-compatible API

STEP 02
Ingestion Gateway

Security Gateway

Rust Gateway Engine

Validate access, protect sensitive data, and block unsafe requests

STEP 03
Control Layer

Smart Routing

Model Load Balancer

Choose providers, manage fallbacks, and control AI spending

STEP 04
Governance Core

Observability

Governance Control Plane

Track usage, audit requests, and understand AI traffic

Why useTuenel?

Tuenel is an open-source AI security gateway and LLM control layer. Engineering teams build secure, enterprise-grade AI applications with complete traffic control.

Tuenel sits between your applications and LLM providers, providing authentication, access control, model routing, and security policy enforcement.