openclaw/Tachikoma
One interface, every AI model. A Swift SDK to interface with AI providers.
What it solves
Swift developers often need to integrate multiple AI providers for text generation, streaming, vision, tools, and voice. Each provider has its own SDK and API, making it tedious to switch or maintain. Tachikoma solves this by providing a single, typed, concurrency-safe interface that works across hosted and local AI providers, so apps can mix and match models without rewriting code.
How it works
Tachikoma is a Swift package that you add via Swift Package Manager. It uses a model catalog that covers OpenAI, Anthropic, Google Gemini, and others, plus local servers like Ollama and LM Studio. You pick a provider and model, provide the API key (or use its credential manager), and then call functions like generate, stream, or generateText with tools. For streaming, it returns an AsyncThrowingStream of text deltas. For tools, you define typed tools and Tachikoma loops for up to maxSteps to let the model call them. It also has optional modules: TachikomaAgent for conversations and agent workflows, TachikomaAudio for transcription and voice, and TachikomaMCP for Model Context Protocol integration.
Who it’s for
Swift developers building apps on Apple platforms (macOS, iOS, etc.) or Linux that need to integrate AI capabilities like text generation, chatbots, tool use, or voice interactions. It's for those who want a single consistent API across many providers rather than learning and maintaining multiple SDKs.
Highlights
- One Swift API for text generation, streaming, vision, tools, and voice across many AI providers.
- Built-in catalog for OpenAI, Anthropic, Google Gemini, xAI, MiniMax, Kimi, Mistral, Groq, Ollama, and LM Studio, plus custom endpoints.
- Concurrency-safe and typed, using Swift 6.2 features like async/await.
- Optional modular packages (Agent, Audio, MCP) so apps only link what they use.
- Credential management via environment variables or TKAuthManager stored profiles.
Related
- Project
- Project
- Project
- Project