AI Provider Support (Anthropic, OpenAI, etc.)
Relevant source files
The following files were used as context for generating this wiki page:
Speakeasy provides a centralized control plane for managing and observing interactions across multiple AI providers. The system supports integration with major Large Language Model (LLM) providers including Anthropic, OpenAI, and Google Gemini. It utilizes OpenRouter as an LLM gateway to provide a unified interface for these services.
The platform enables organizations to track AI usage, enforce security policies, and manage tool-calling capabilities across different models. It treats AI assistants as persistent workers with specific instructions, model configurations, and toolsets.
Sources: README.md:58-62, client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts:2-7
Supported Providers and Models
Speakeasy supports a variety of models categorized by provider. Users can configure specific model IDs when creating or updating assistants.
Model Categories
The following table summarizes the primary models supported across different providers:
| Provider | Recommended Models | Use Case |
|---|---|---|
| Anthropic | claude-opus-5, claude-sonnet-5, claude-haiku-4.5 | General default, agentic tasks, fast/high-volume |
| OpenAI | gpt-6-astra, gpt-6-sol, gpt-5.5-pro, gpt-5.3-codex | Deep reasoning, coding, general purpose |
gemini-3.8-flash, gemini-3.1-pro-preview | Fast performance, preview features | |
| DeepSeek | deepseek-v4-pro, deepseek-v4.1-flash | Cheap/fast/high-volume alternative |
| Meta | llama-4-maverick | Open-weights alternative |
Sources: client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts:63-88
Model Selection Logic
The system provides recommendations based on the intended task:
- General Default:
anthropic/claude-opus-5is suggested as the strongest all-rounder. - Agentic/Tool-Heavy: High-reasoning models like
anthropic/claude-opus-5.5oranthropic/claude-fable-5.1are preferred. - Coding: Specialized models such as
openai/gpt-6-solorqwen/qwen3-coderare recommended. - Efficiency:
anthropic/claude-haiku-4.5oropenai/gpt-6-lunaare suggested for high-volume, low-cost operations.
Sources: client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts:90-97
Integration Architecture
Speakeasy acts as an intermediary between users (human or agentic) and AI providers. It injects security and observability layers into the request-response flow.
The diagram shows how the Speakeasy Control Plane intercepts requests to enforce security and logging before forwarding them to AI providers via a gateway.
Sources: README.md:15-18, README.md:58-62, server/internal/chat/analysis/workunits_prompt.md:1-5
Assistant Configuration and Instructions
AI provider support is configured at the Assistant level. Each assistant is defined by its anatomy, which includes the model selection and system instructions.
System Prompt Structure
Instructions are divided into three managed sections:
- # Personality: Defines voice, tone, and formatting habits.
- # Behavior: Contains operational rules derived from attached tools (Model Context Protocol/MCP).
- # Tasks: Describes what the assistant does on each run, including tool usage and output formatting.
Sources: client/dashboard/src/pages/assistants/onboarding/systemPrompt.ts:24-34
Personality Presets
The system includes defined personality traits that influence how models interact with users. Examples include:
- Nolan: Blunt, opinionated, direct with no filler.
- Daniel: Terse, lowercased, trade-off-first senior engineer persona.
- Quinn: Burst-style, technical, lowercase fragments.
- Walker: Playful, lowercase, utilizes "Howdy" openers.
Sources: client/dashboard/src/pages/assistants/onboarding/personalities.ts:11-300
Observability and Security
Speakeasy provides specific tools for monitoring AI provider interactions, focusing on security findings and usage costs.
Risk and Policy Detection
The platform scans chat messages and tool calls for security issues using several detector families:
- gitleaks: Scans for API keys and tokens.
- presidio: Detects PII such as SSNs and credit cards.
- prompt_injection: Uses LLM judges to detect injection attempts.
- shadow_mcp: Identifies calls to unapproved MCP servers.
Sources: server/internal/assistants/managed_assistant_instructions.txt:41-48
Performance Metrics (Work Units)
The system analyzes assistant sessions to assign work units, which measure the value delivered by the AI provider relative to token usage.
| Category | Units | Description |
|---|---|---|
| Retrieval | 1–2 | Recall or explanation of provided info. |
| Synthesis | 8–15 | Combining sources into new artifacts. |
| Diagnosis & Repair | 16–30 | Finding and fixing technical problems. |
| Construction | 31–60 | Multi-part deliverables with real integration. |
Sources: server/internal/chat/analysis/workunits_prompt.md:1-15, server/internal/chat/analysis/workunits_prompt.md:43-55
Implementation Constraints
When developing or reviewing AI provider integrations, several rules apply:
- 4xx Errors: All 4xx HTTP status codes from providers must be treated as errors (e.g., auth failures or misconfigured requests).
- Redaction: Sensitive data like secret matches or PII must never be echoed or reconstructed; they use opaque fingerprints for deduplication.
- Brand Identity: All user-facing text and error messages must use the name "Speakeasy" rather than "Gram".
Sources: server/internal/assistants/managed_assistant_instructions.txt:6-8, server/internal/assistants/managed_assistant_instructions.txt:54-60, REVIEW.md:12-16
Summary
AI Provider Support in Speakeasy is managed through a centralized gateway that facilitates access to Anthropic, OpenAI, and Google models. By wrapping these providers in an Assistant-based framework, Speakeasy enforces consistent personalities, manages complex tool-calling behaviors via MCP, and provides deep observability into both the cost and security of AI interactions. This architecture allows organizations to scale AI usage while maintaining strict control over data privacy and operational efficiency.