# Universal ingress proxy Blekline provides OpenAI- and Anthropic-compatible ingress routes that **mask user messages** before forwarding to upstream model APIs. See [Model providers hub](/docs/integrations/model-providers) for Azure OpenAI, AWS Bedrock, OpenRouter, and more. ## Routes | Provider | Blekline route | Upstream | |----------|----------------|----------| | OpenAI | `POST /api/ingress/v1/chat/completions` | `OPENAI_API_BASE` (default `https://api.openai.com/v1`) | | Anthropic | `POST /api/ingress/v1/messages` | `https://api.anthropic.com/v1/messages` | Configure server env: ```bash OPENAI_API_KEY=sk-... ANTHROPIC_API_KEY=sk-ant-... # optional — point at Azure, OpenRouter, Together, Fireworks, Mistral, etc. OPENAI_API_BASE=https://api.openai.com/v1 BLEKLINE_INGRESS_BLOCK_HIGH_RISK=true ``` ### Azure OpenAI example ```bash OPENAI_API_BASE=https://{your-resource}.openai.azure.com/openai/deployments/{deployment} ``` See [Azure OpenAI stack](/docs/integrations/azure-openai-stack). ## SDK base URL swap Point your OpenAI SDK at Blekline: ```python from openai import OpenAI client = OpenAI( base_url="https://app.blekline.com/api/ingress/v1", api_key=os.environ["BLEKLINE_WORKSPACE_TOKEN"], default_headers={ "x-blekline-workspace-token": os.environ["BLEKLINE_WORKSPACE_TOKEN"], "x-blekline-client-surface": "sdk", }, ) ``` ## Docker sidecar For on-prem or VPC deploys, run the sidecar next to your agent runtime: ```bash docker build -t blekline-ingress packages/ingress-proxy docker run -e BLEKLINE_INGRESS_TARGET=https://app.blekline.com \ -e LISTEN_PORT=8787 -p 8787:8787 blekline-ingress ``` Point SDKs at `http://localhost:8787/v1`. See [Deployment](/docs/enterprise/deployment). ## Enforcement - User/system message text is scanned and masked inline. - High-risk secrets (AWS keys, OpenAI keys, JWT, SSN, etc.) can **block** the request (`403`) when `BLEKLINE_INGRESS_BLOCK_HIGH_RISK` is not `false`. - Each proxied call emits an `ingress_proxy` event with model metadata for the dashboard. --- **Next steps:** [Model providers](/docs/integrations/model-providers) · [AI Enablement Stack](/docs/introduction/ai-enablement-stack) · [Multi-region ingress](/docs/enterprise/multi-region) · [Latency SLO](/docs/reference/latency-slo) · [Open workspace](https://app.blekline.com)