Jump to a page or project

Aniki SDK is a provider-agnostic TypeScript SDK designed to make production AI agent development simpler, safer, and more predictable. It provides a strongly typed API for agent execution, tool calling, structured outputs, streaming, middleware, logging, and lifecycle events without locking applications to a specific AI provider or framework.
The SDK is built around a Runner that owns the complete agent execution lifecycle, including conversation history, middleware, provider calls, tool execution, and output validation. Each layer is defined through replaceable interfaces, making the architecture flexible and easy to extend.
Aniki focuses heavily on type safety and reliability. Structured output schemas flow through TypeScript generics and are validated before reaching application code. Provider integrations use a common IProvider contract, allowing different model providers to be swapped without changing the core agent architecture.
The SDK also includes composable middleware for capabilities such as retries, caching, and logging. Lifecycle events provide visibility into agent runs, LLM calls, and tool executions, making it easier to integrate Aniki with monitoring and observability systems.
Security is another core feature. Credentials are automatically redacted at any nesting depth before being written to logs, while event payloads are designed to avoid exposing secrets.
Aniki is intentionally lightweight, with Zod as its only runtime dependency. It supports strict TypeScript, Node.js 18+, ESM and CommonJS, and includes bundled type declarations