AnthropicKit

Swift SDK for Claude API - Build intelligent applications with ease

Why AnthropicKit?

🚀

Swift-First Design

Built from the ground up for Swift developers with modern async/await support and type safety.

🔧

Full API Coverage

Complete implementation of Claude's API including messages, streaming, and tool use.

📚

Interactive Tutorials

Learn by doing with step-by-step tutorials that guide you through building real applications.

Cross-Platform Support

🍎 🐧 📱

macOS • Linux • iOS • watchOS • tvOS

import AnthropicKit

let client = AnthropicClient(apiKey: "your-api-key")

let message = try await client.messages.create(
    model: .claude3Opus,
    messages: [
        Message(role: .user, content: "Hello, Claude!")
    ],
    maxTokens: 1024
)

print(message.content.first?.text ?? "")