Skip to content
WORKSI AI Control

Developers

Connect in about ten minutes.

Point your OpenAI or Anthropic client at the Worksi gateway. Your code stays the same, and every call becomes a trace.

Name the agent and the workflow
import osfrom openai import OpenAI client = OpenAI(    base_url="https://gateway.worksi.ai/v1",    api_key=os.environ["AIW_API_KEY"],    # name the agent and the workflow behind every call    default_headers={        "X-AIW-Agent": "support-bot",        "X-AIW-Workflow": "customer-chat",    },) reply = client.chat.completions.create(    model="gpt-5-mini",    messages=[        {"role": "user", "content": "Where is my order?"},    ],)print(reply.choices[0].message.content)

Every response includes X-AIW-Trace-Id. Non-streaming calls also include X-AIW-Cost-USD.

Architecture

The path of a request.

Your code talks to the gateway as if it were your provider. Nothing else in your app changes.

Your codeYour appOpenAI or Anthropic SDK, or plain HTTPbase URLaiw_sk_… key
↓ POST /v1/chat/completions
Worksi gatewaygateway.worksi.ai8 checks, then forwards the call0.82 ms p95, load test
↓ your provider key
UpstreamYour providerOpenAI, Anthropic, DeepSeek, Qwen, Ollama, vLLM24 presets
↓ X-AIW-Trace-Id, X-AIW-Cost-USD
↓ response
spans, async
Worksi platform
Telemetry pipelineBuffered at the gateway if it is down
↓
TracesLive activity and Traces in the console
↓
11 detectorsCheck every call
↓
IncidentsCause, evidence and blast radius
Requests go through the gateway and on to your provider with your key. Spans leave the request path; if the telemetry pipeline is down, the gateway buffers them and your requests carry on.

Quickstart

From sign-up to your first trace.

Read the full quickstart
  1. Start the trial3 days of Scale features, no card. Sign‑up creates a workspace with development, staging and production environments.
  2. Connect a providerPick from 24 provider presets, paste your key and test the connection. Or skip it and use the built‑in simulator.
  3. Create an API keyKeys start with aiw_sk_live_ in production and aiw_sk_test_ in development and staging, and are shown once. Keep them in a secret manager.
  4. Point your client at the gatewaySet the base URL and key. The X-AIW-Agent and X-AIW-Workflow headers are optional.
  5. Open your first traceFind it under Operations, then Traces. Traces appear within one to two seconds.
Your environment
# Governance → API keys (the key is shown once)export OPENAI_API_KEY="aiw_sk_live_…"export OPENAI_BASE_URL="https://gateway.worksi.ai/v1"

Then point your client at https://gateway.worksi.ai/v1 with that key, as in the code at the top of this page.

Ways to connect

Start with one. Add the rest when you need them.

GatewayChange the base URLOpenAI SDKsAnthropic SDKcURL
↓ model calls
Python and TypeScript SDKsTrace whole workflowsrunsstepstoolsapprovals
↓ workflow spans
OpenTelemetryUse the tracing you already have
↓ OTel spans
MCPGoverned tool accessClaude DesktopCursorVS Code
↓ tool calls
Your workspaceWorksiEverything lands in one placetracesincidentsAI Graphpoliciesaudit log
Every route lands in the same traces, incidents and AI Graph, so you can start with the gateway and add SDK tracing later.

Integrations and connectivity

Works with the stack you already have.

Bring your own provider keys. Providers bill you directly, and Worksi doesn’t mark up tokens.

All integrations

OpenAI‑compatible gateway

Base URL https://gateway.worksi.ai/v1. Streaming, tool calling, the Responses API and embeddings work where your provider supports them.

  • POST /v1/chat/completions
  • POST /v1/responses
  • POST /v1/embeddings
  • GET /v1/models
The OpenAI‑compatible API

Anthropic Messages API

Point the Anthropic SDK at https://gateway.worksi.ai, with no /v1, and use the same key.

  • POST /v1/messages
Anthropic in the docs

Python and TypeScript SDKs

Trace whole workflows: runs, steps, tools, approvals and outcomes.

The SDKs

MCP

Governed tool access for AI assistants and agents. Tool policies apply at the MCP gateway too.

  • Claude Desktop
  • Cursor
  • VS Code
MCP

OpenTelemetry

Bring the tracing you already have into Worksi.

OpenTelemetry

24 provider presets

OpenAI, Claude, DeepSeek, Qwen, Ollama, vLLM and any OpenAI‑compatible server. Pick a provider per call with a prefix, like deepseek/deepseek-flash.

Providers and routing
Authentication headers
Client styleHow to authenticate
OpenAI SDKsAuthorization: Bearer
Anthropic SDKx-api-key
Azure‑style clientsapi-key

The gateway

Every call passes 8 checks, in order.

If a check fails, the gateway returns a clear status code. Telemetry is off the request path: if the pipeline is down, the gateway buffers spans and your requests continue.

Explore the gateway
  1. Request in
  2. Body sizefails with 413
  3. API keyfails with 401
  4. Modelfails with 403
  5. Pause, stopfails with 423 · 409
  6. Plan & policyfails with 402 · 403 · 429
  7. Rate limitfails with 429
  8. Providerfails with 502 · 504
  9. Forwarded to your provider
Check 8 · in the backgroundPrice & recordNever delays or fails a request.
Checks run in order. A failed check returns the status code shown. Check 8 runs in the background and never delays or fails a request.

Tracing

See every run, not just every request.

Each run becomes one trace with its agents, steps, model calls and tools. Every model call is timed and priced, agent by agent.

Explore observability
runsupport-ticket-resolution1.3 s · demo data
  • Triagetriage-agentmodelgpt-5-mini156 ms · 210 in, 183 out tokens · $0.00042
  • Researchresolver-agentembeddingstoolsearch_kbtoollookup_order
  • Refundrefund-agentmodelgpt-5-nanotoolissue_refund
  • Draft replyresolver-agentmodelgpt-5
  • Notifyresolver-agenttoolsend_email
One run, one trace: every step, model call and tool call. Model calls carry timing, tokens and cost. Demo data from the built-in demo organization.

Policies

Monitor first. Enforce when you’re sure.

Model, spend, token and rate policies and end‑user quotas are included from the Startup plan; tool allowlists, tool approvals and model‑access approvals from Scale. Data capture settings are on every plan.

Policies in the docs
Step 1Write a policyFor example, a production model allowlistPOST /api/v1/policies
↓ real traffic
Step 2MonitorNothing is blocked. Each breach is recorded on the span.aiw.violation
↓ when you are sure
Step 3EnforceBlocked at the gateway and at the MCP gateway
A policy in monitor mode shows what it would block without touching traffic. Switch it to enforce when you are sure.

Example: a production model allowlist in monitor mode. A call to gpt-4o still returns 200 with X-AIW-Model: gpt-4o, and the span records aiw.violation = "model_allowlist".

Controls and responses
ControlSend or setWhat the gateway returns
Per‑end‑user limitsX-AIW-End-User, X-AIW-End-User-Plan429 end_user_quota_exceeded
Pause an agentFrom the console423 agent_paused
Stop a runFrom the console409 run_stopped
Plan quota reachedSet by your plan429 plan_quota_exceeded
No active planSet by your plan402 subscription_inactive

Benchmarks

Tested, with the conditions shown.

Our own load test of the gateway and span ingestion, and our failure benchmark, run on 24 September 2026.

Benchmark results
MetricResultTest conditions
Gateway overhead, p950.82 msNon-streaming chat completions ramped to 200 requests/s; 55,806 requests, 0 failures. How we measured — how we measured gateway overhead, p95
Streaming time to first byte, p951.09 msStreaming chat completions ramped to 100 streams/s; 27,906 streams, 0 failures. How we measured — how we measured streaming time to first byte, p95
Span ingestion on one replica2,000 spans/s360,000 spans in batches of 100; p95 request time 6.9 ms, 0 rejected spans. How we measured — how we measured span ingestion on one replica
Failure scenarios detected8 / 8Tool failure, agent loop, repeated tool call, timeout, provider outage, cost spike, stuck workflow, policy violation. How we measured — how we measured failure scenarios detected
False alarms0 in 6 healthy runsHealthy runs executed in the same benchmark round raised no incident. How we measured — how we measured false alarms
Median time to detect1.1 sFrom the failing call to an open incident; the stuck-workflow case waits for its 60 s threshold. How we measured — how we measured median time to detect

Setup

Single-replica Docker Compose stack on a 12 vCPU / 16 GB Linux host (gateway limited to 1.5 CPU / 512 MiB), load generated with k6. The built‑in simulator provider answered model calls with a pinned 1 ms latency so the gateway’s own overhead could be isolated.

What the test did not cover

  • Real provider latency and errors (simulator only)
  • Multiple replicas
  • Cloud networking, TLS termination and managed data stores
  • Multi-hour soak tests

Start building in about ten minutes.

Follow the quickstart, or talk to us about your stack.