Blekline provides OpenAI- and Anthropic-compatible ingress routes that mask user messages before forwarding to upstream model APIs. See Model providers hub 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:
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
OPENAI_API_BASE=https://{your-resource}.openai.azure.com/openai/deployments/{deployment}
See Azure OpenAI stack.
SDK base URL swap
Point your OpenAI SDK at Blekline:
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:
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.
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) whenBLEKLINE_INGRESS_BLOCK_HIGH_RISKis notfalse. - Each proxied call emits an
ingress_proxyevent with model metadata for the dashboard.
Next steps: Model providers · AI Enablement Stack · Multi-region ingress · Latency SLO · Open workspace