> ## Documentation Index
> Fetch the complete documentation index at: https://docs.larkx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> LarkX is a durable execution runtime for on-device AI agents. The public SDK is the npm package @larkxai/react-native.
> Do not import @larkxai/node, @larkxai/host, @larkxai/protocol, @larkxai/telemetry, or @larkxai/cactus in an application. Those packages are private workspace modules.
> Swift and Kotlin SDKs are planned and are not published.
> Prefer the published npm version. The GitHub default branch can contain behavior that is not in that release yet.
> Expo Go cannot load the native module. Use a development build.
> Do not describe external tool or remote effects as exactly-once.

# Introduction

> LarkX is the durable execution runtime for on-device AI agents.

LarkX keeps one execution record for an on-device agent. The model and the tools stay in your application. The runtime decides the next model call, tool call, or remote delegation, and it can resume that same run after the process starts again.

Inference engines run models. LarkX brings durable agent execution to the device.

## What you install

The public SDK is [`@larkxai/react-native`](https://www.npmjs.com/package/@larkxai/react-native). The published version is **0.4.0**. It includes the C++ runtime, SQLite, local agents, native tools, optional Cactus, crash recovery, HTTP remote delegation, A2A 1.0, and optional Cloud telemetry.

> [!NOTE]
>
> Swift and Kotlin packages are planned. They are not published. `@larkxai/node` is the private test
> host in this repository. Do not install it in an application.

Expo Go cannot load the native module. Use a [development build](https://docs.larkx.ai/getting-started/installation.md).

## What a run survives

A model call and a tool call are separate effects. The operating system can suspend or kill the process after a tool has changed local data and before that result is stored. Starting the prompt over can repeat that effect.

LarkX stores the run in SQLite on the device. A committed step is not executed again. A `pure` or `idempotent` step that was still running may retry. A `non-idempotent` step that was interrupted becomes an unknown outcome and the run stays blocked until the application reconciles it.

An external effect is not exactly-once. The process can die after the effect and before the commit.

## Where to go next

> [card] [Install the SDK](https://docs.larkx.ai/getting-started/installation.md)
>
> Add the React Native package and create a development build.

> [card] [Quickstart](https://docs.larkx.ai/getting-started/quickstart.md)
>
> Run a scripted agent against a local SQLite file.

> [card] [Durable execution](https://docs.larkx.ai/concepts/durable-execution.md)
>
> Committed steps, retries, and unknown outcomes.

> [card] [LarkX Cloud](https://docs.larkx.ai/cloud/introduction.md)
>
> Optional metadata. Local execution does not depend on it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.