Privacy-First AI Keyboard

Open Keyboard

An open-source iOS AI writing assistant delivered through a custom keyboard and paired with a self-hosted gateway.

Open Keyboard is the user-facing AI product: a custom iOS keyboard intended to provide normal typing plus high-quality writing assistance.

The goal is a Grammarly-class writing assistant for iOS with suggestions, grammar fixes, rewrites, tone changes, summaries, and smart replies while keeping the user's gateway, keys, logs, and model backend under their control.

What this demonstrates: iOS keyboard extension architecture, SwiftUI-first product development, test-first core logic, privacy-aware AI workflows, and integration with a self-hosted LLM backend.

iOS
App
Host Target
Onboarding and settings shell
Ext
Keyboard
Extension Target
Custom typing surface
Core
48+
Core Tests
Config, prompts, gateway logic
CI
Buildable
iOS Shell
App and extension build path

Technical Highlights

Keyboard

Custom iOS Keyboard

Buildable keyboard extension shell with core typing behavior including letters, shift, globe, delete, space, and return.

Writing

AI Writing Actions

Core prompt generation for grammar, rewrite, summarize, continue writing, tone transforms, and custom templates.

Privacy

User-Controlled Backend

Pairs with a self-hosted gateway instead of embedding provider secrets or sending typed text directly to third-party keyboard services.

Testing

Test-First Core

OpenKeyboardCore validates gateway config, model parsing, chat requests, error mapping, keyboard reducer behavior, and replacement strategies.

Technology Stack

iOS App

Swift SwiftUI Keyboard Extension App Groups Xcode

AI Core

OpenKeyboardCore Swift Package OpenAI-compatible API LLM Gateway XCTest

Repository Entry Points

The project separates user-facing iOS surfaces from testable core logic and the gateway-backed AI writing flow.

Review the iOS keyboard project, then follow the gateway detail page to see the backend layer used for authentication, rate limits, and local model routing.