whereismyai
PiDurableKit
PiDurableKit is a Swift library for durable AI agents on Apple platforms with crash recovery and state persistence.
PiDurableKit provides durable AI agents for iPhone, iPad, Mac, and Vision Pro by running pi-durable inside JavaScriptCore with a native Swift API. It commits conversations, model turns, tool calls, and state to storage before displaying them, allowing apps to resume interrupted work after crashes. The library supports SQLite, JSONL, and in-memory persistence, along with Swift-based tools, subagents, atomic transactions, and durable tasks. Developers can use any pi-ai provider or compatible server, and handle authentication via explicit keys or subscription OAuth. It integrates with SwiftUI through views and streaming events.
PiDurableKit at a glance
Key features
- Crash recovery and state persistence
- SQLite and JSONL storage
- Swift tools and closures
- Subagents and durable tasks
- Atomic transactions
- OAuth sign-in support
- SwiftUI streaming views
Use it for
- Building AI agents on Apple platforms
- Handling interrupted tasks after crashes
- Executing atomic database transactions
- Managing subagents and child tasks
Alternatives to PiDurableKit
- Agent Squad — Runs multi-agent orchestration in Python, TypeScript, and locally on Apple devices.
- Composio — Equips AI agents with tools, managed user auth, and sandboxes across 1,500+ apps
- Alook — Connects existing local coding agents to team communication channels.
- Golem — Provides type-safe agent abstractions and zero-dependency Go implementation.
- LiveKit Agents — Connects AI models to WebRTC rooms with reliable turn detection and streaming pipelines.
- Playground — Persists agent memory across sessions and searches by meaning.
- APIStack — Connect AI agents to over 100 tools using one API key or a single MCP endpoint.
- Letta — Provides agents with advanced memory and continual learning capabilities.
- Beeuni — Agents retain context and improve skills over time through a controlled review process.
- Trigora — It uses Transparent Continuation Checkpointing instead of replaying prior history.
- Durable Actors — No vendor lock-in, memory limits, and observability built in.
- PhoneClaw — It executes AI agent tasks and system tool calls entirely on-device.
All PiDurableKit alternatives