Configuration
Pass theai option when creating the Wraith client:
Supported Providers
| Provider | ai.provider | API Key Format |
|---|---|---|
| Google Gemini | "gemini" | Gemini API key |
| OpenAI | "openai" | sk-... |
| Anthropic Claude | "claude" | Anthropic API key |
OpenAI
Claude
Your Own Gemini Key
How It Works
The AI configuration is passed to the TEE server via HTTP headers on every request:| Header | Value |
|---|---|
Authorization | Bearer wraith_... (your Wraith API key) |
X-AI-Provider | openai, claude, or gemini |
X-AI-Key | Your AI provider API key |
- Receives your chat message
- Builds the system prompt with agent identity and tools
- Sends the conversation to your specified AI provider
- Executes any tool calls via the chain connector
- Returns the final response
Default vs. BYOM
| Aspect | Default (Gemini) | Bring Your Own |
|---|---|---|
| Cost | Included in Wraith API usage | You pay your AI provider directly |
| Model | Wraith’s chosen Gemini model | Your choice |
| Configuration | None | Pass ai option |

