Providers
OpenMind keeps provider logic isolated behind a unified adapter interface and maps tools to native provider formats.
Supported Providers
| Provider | Key | Tool Mapping |
|---|---|---|
| OpenAI | OPENAI_API_KEY |
Chat Completions tools with function calls. |
| Anthropic | ANTHROPIC_API_KEY |
Claude Messages API tool use and tool results. |
| Gemini | GEMINI_API_KEY |
Function declarations and function responses. |
Switch Provider
openmind provider set openai
openmind provider set anthropic
openmind provider set gemini
Adapter Interface
interface AIProvider {
name: string
sendMessage(input: AgentInput): Promise<AgentOutput>
streamMessage?(input: AgentInput): AsyncIterable<string>
}