CT-AI Configuration
Navigate to Settings → AI Settings to connect an LLM provider, select a default model and effort level, govern approved models, and configure optional usage caps and PII redaction for your organization.
Requires Organization Administrator permissions and a Premium or Demo license. You can stage provider credentials, discover models, and run Test Connection before toggling AI Assistant to Enabled.

Supported Providers
Providers appear in Settings → AI Settings in the following order:
| Provider | Authentication & Endpoint | Deployment Boundary | Discovery & Capabilities |
|---|---|---|---|
| OpenAI | API key; optional custom endpoint URL | Cloud API | Live /v1/models discovery for context windows, output sizing, and effort levels (GPT-6.2, GPT-6.1, GPT-5.6, GPT-5.4 — up to 1,050,000-token context). |
| OpenAI Compatible | Endpoint URL (required); API key and custom headers optional | Cloud gateway or self-hosted | Queries /models and enriches discovered models with context windows, output sizing, and capability metadata. See OpenAI Compatible Gateways. |
| Anthropic | API key; optional custom endpoint URL | Cloud API | Live /v1/models discovery (Claude 5.5, Fable 5.2, Opus 4.7/4.8, Sonnet 4.6 — 1,000,000-token context) with effort-level support. |
| Google Gemini | API key (required); optional custom endpoint URL (https://generativelanguage.googleapis.com) | Cloud API | Live /v1beta/models discovery (Gemini 4, Gemini 3.8 Flash — 1,048,576-token context). |
| DeepSeek | API key (required); optional custom endpoint URL (https://api.deepseek.com/chat/completions) | Cloud API | Live /models discovery (1,048,576-token context on DeepSeek V4 / V4.1). |
| xAI (Grok) | API key (required); optional custom endpoint URL (https://api.x.ai/v1/chat/completions) | Cloud API | Live /v1/models discovery with per-model context windows (500,000–2,000,000 tokens). |
| Neuralwatt | API key (required); optional base URL | Cloud API | Live /v1/models discovery prioritized by managed tiers (nw-flash-flex, 1,048,560-token context). See Neuralwatt. |
| OpenRouter | API key | Cloud API | Live /api/v1/models discovery with per-model context windows, capabilities, and pricing metadata. |
| Ollama (Self-Hosted) | Endpoint URL (required) | Self-hosted / on-premises | Queries /api/tags on your Ollama server; keeps inference inside your network. See Ollama (Self-Hosted). |
| Azure OpenAI | API key, resource endpoint, and deployment name (required) | Cloud (your Azure tenant) | Scopes requests and deployment discovery to your Azure resource (GPT-6.2, GPT-5.4, Claude 5.5, DeepSeek V4.1). See Azure OpenAI. |
CT-AI automatically discovers live model lists, context windows, output sizing, and supported effort levels from your configured provider, and falls back to the built-in model catalog in air-gapped deployments. Click Refresh next to Default Model to fetch updated models on demand, click Test Connection to verify reachability and tool calling, and click Save Settings.
OpenAI Compatible Gateways
Select OpenAI Compatible to connect Call Telemetry to an internal model router, self-hosted inference engine, or external API gateway.
Gateway Quick-Fill Presets
Four presets in Settings → AI Settings populate the expected base URL and required header rows:
- LiteLLM (
http://litellm.internal:4000/v1) - vLLM / SGLang (
http://localhost:8000/v1) - Cloudflare AI Gateway (
https://gateway.ai.cloudflare.com/v1/<account-id>/<gateway>/compatwithcf-aig-authorization) - LM Studio (
http://localhost:1234/v1)
Endpoint Resolution and Authentication
- URL normalization: Provide an
http://orhttps://URL. Bare origins (https://litellm.example.com) resolve to/v1/chat/completionsand/v1/models; path-prefixed URLs (https://litellm.example.com/v1or/compat) append/chat/completionsand/models; full/chat/completionsURLs are used verbatim. - Keyless gateways: Leave API Key blank when connecting to unauthenticated local servers or gateways secured solely by custom HTTP headers. Call Telemetry omits the
Authorizationheader instead of sending an empty bearer token. - Custom HTTP headers: Click Add Header to attach up to 20 request headers per organization (such as
cf-aig-authorization, Cloudflare Access service tokens, or gateway routing headers). Header values are encrypted at rest with AES-256-GCM, masked in saved UI views and API responses, and redacted from audit logs. Hop-by-hop headers (Host,Content-Length,Transfer-Encoding,Connection) and newline characters are rejected. If you define a customAuthorizationheader, it takes precedence over the API Key field. - Draft model discovery and verification: Click Refresh next to Default Model to query your gateway's
/modelsendpoint using unsaved URL or header edits, then click Test Connection before saving.
Provider-Specific Setup
Neuralwatt
Configure Neuralwatt with a required API key and an optional base URL:
- Base URL: Defaults to
https://api.neuralwatt.com/v1and also supports a Cloudflare AI Gatewaycustom-neuralwatt/v1endpoint. - Live catalog and managed tiers: CT-AI queries
https://api.neuralwatt.com/v1/modelsand prioritizes managed tiers ahead of discovered open-weight models (1,048,560-token and262,128-token context windows):- Neuralwatt managed tiers:
nw-flash-flex(default),nw-flash,nw-large-flex,nw-large,nw-small-flex,nw-small - Open-weight models:
kimi-k3.1-pro,kimi-k3.1-pro-flex,glm-5.3,glm-5.3-flash-flex,deepseek-v4.1-flash,mimo-v2.6-pro,qwen-3.8-27b,qwen3.6-35b,gemma-4-31b
- Neuralwatt managed tiers:
- Effort support: Neuralwatt managed tiers support configurable reasoning levels in Model Effort Level.

Azure OpenAI
Configure Azure OpenAI with your API Key, Azure Resource Endpoint (or resource name), Deployment Name, and optional API Version. Requests and deployment lookups remain scoped to your configured Azure resource.
Ollama (Self-Hosted)
Configure Ollama (Self-Hosted) with your server's Endpoint URL (for example http://ollama.internal:11434). CT-AI queries /api/tags to list locally installed models and keeps all inference traffic inside your network perimeter.
Model Effort Level
When the selected Default Model supports configurable reasoning, Settings → AI Settings dynamically displays the Model Effort Level selector with the levels supported by that model:
- None
- Minimal
- Low
- Medium
- High
- Extra High
- Max
Only the effort levels supported by the active model appear in the selector. Users can override Effort per turn from the AI chat composer when a query needs faster lookup or deeper analysis.
CT-AI discovers model context windows and output capabilities automatically and defers response token sizing to upstream provider defaults unless the upstream API requires an explicit bound (such as Anthropic). Long-conversation context compaction is managed automatically based on the active model's discovered context window.
Usage and Optional Caps
By default, CT-AI usage is Unlimited — Requests Today and Tokens Today display Unlimited with no daily ceiling enforced.
To apply organization-wide daily limits under Usage & Optional Caps:
- Toggle Enforce Daily Usage Caps on.
- Set Daily Cost Limit (USD) to cap daily spend where provider pricing metadata is available.
- Set Daily Token Limit to enforce a hard daily token ceiling across all organization users.
Approved Models
Use Approved Models in Settings → AI Settings to define an optional organization allowlist restricting which models users can select in the AI chat composer. When Approved Models is empty, users can switch among any model discovered for the configured provider; when populated, both the composer picker and backend turn execution enforce the allowlist.
Privacy and PII Protection
PII masking is off by default under Privacy & PII Protection in Settings → AI Settings. Enable PII Redaction when you want Call Telemetry to scrub matching fields inside the application boundary before payloads reach an LLM endpoint:
- PII Redaction: Master toggle for per-organization data masking before outbound LLM calls.
- Mask Phone Numbers: Masks middle digits while keeping leading country/area digits and the final four digits.
- Mask Caller Names: Replaces caller and callee names with deterministic conversation aliases (
Caller A,Caller B). - Mask Contact Info: Strips email addresses, departments, companies, and street addresses from directory lookups.
- PII Retention (days): Controls how many days historical turn previews and tool-call previews are retained before automated scrubbing (default
30days).
See Security & PII for redaction examples, AES-256-GCM encryption details, and audit ledger schemas.
Advanced Connection and Proxy Options
Expand Advanced Connection & Proxy Options in Settings → AI Settings when tuning proxy compatibility or multi-step tool execution:
- Real-Time Response Streaming (SSE): Enabled by default to stream tokens over Server-Sent Events. Disable this option if an HTTP or SSL inspection proxy buffers SSE responses.
- Max Data Lookups Per Question: Caps the number of capability invocations CT-AI can execute while answering a single turn (default
10, range1–50).