# LarkX > Durable execution for on-device AI agents. The public reference for the React Native SDK. > ## 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](https://docs.larkx.ai/index.md): LarkX is the durable execution runtime for on-device AI agents. - [Installation](https://docs.larkx.ai/getting-started/installation.md): Install the published React Native SDK and the peers a development build needs. - [Quickstart](https://docs.larkx.ai/getting-started/quickstart.md): Start a local agent with a scripted model and read the result from SQLite. - [Runtime](https://docs.larkx.ai/concepts/runtime.md): The runtime owns the SQLite file, the registered agents, and the host driver. - [Agent](https://docs.larkx.ai/concepts/agent.md): An agent is a named, versioned definition of instructions, a model, tools, and remote agents. - [Run](https://docs.larkx.ai/concepts/run.md): A run is one stored execution of an agent, addressed by a caller-supplied run id. - [Durable execution](https://docs.larkx.ai/concepts/durable-execution.md): Committed steps are replayed. Interrupted steps follow their effect class. - [Tool side effects](https://docs.larkx.ai/concepts/tool-side-effects.md): Classify every tool as pure, idempotent, or non-idempotent. The class decides what happens after an interruption. - [Crash recovery](https://docs.larkx.ai/concepts/crash-recovery.md): Reopen the same database, register the same agent, and resume the same run id. - [Installation and native setup](https://docs.larkx.ai/react-native/installation.md): Load the C++ runtime in a React Native development build. - [Creating a runtime](https://docs.larkx.ai/react-native/runtime.md): Open SQLite, set an owner, and close the runtime when the app is done with it. - [Defining agents](https://docs.larkx.ai/react-native/agents.md): Register a named agent with a model, instructions, and tools. - [Defining tools](https://docs.larkx.ai/react-native/tools.md): Declare a local tool, its JSON schema, and its effect class. - [Local inference](https://docs.larkx.ai/react-native/local-inference.md): Cactus is optional. Download and init happen before the run. - [Offline execution](https://docs.larkx.ai/react-native/offline.md): Local steps do not wait for the network. Remote steps wait until the device can send them. - [Lifecycle and recovery](https://docs.larkx.ai/react-native/lifecycle.md): Suspend execution when the app is not active, and resume the same run when it opens again. - [Cactus](https://docs.larkx.ai/integrations/cactus.md): Optional on-device inference through cactus-react-native. The root SDK import does not load it. - [HTTP remote agents](https://docs.larkx.ai/integrations/http.md): Delegate one task to an independent HTTP agent. The parent run stays on the device. - [A2A](https://docs.larkx.ai/integrations/a2a.md): Talk to a peer that publishes an A2A 1.0 agent card. A2A is in npm 0.4.0. - [LangGraph](https://docs.larkx.ai/integrations/langgraph.md): Delegate to a LangGraph service that already exposes A2A. LarkX does not embed LangGraph. - [Introduction](https://docs.larkx.ai/cloud/introduction.md): LarkX Cloud is optional metadata. The agent runs without it. - [Connecting the SDK](https://docs.larkx.ai/cloud/connecting.md): Pass larkxCloud to createRuntime. Install expo-crypto when telemetry is on. - [Ingestion keys](https://docs.larkx.ai/cloud/ingestion-keys.md): Cloud authorizes a scoped lkx_ing_ key. Do not embed an administrative credential. - [Execution traces](https://docs.larkx.ai/cloud/traces.md): A Cloud trace is metadata about a run. It is not a copy of the model's transcript. - [Recovery insights](https://docs.larkx.ai/cloud/recovery.md): Cloud can show that a run recovered. The device still performs the recovery. - [Privacy and telemetry](https://docs.larkx.ai/cloud/privacy.md): Prompts, model text, tool arguments, and tool results stay on the device. - [Troubleshooting](https://docs.larkx.ai/cloud/troubleshooting.md): Cloud errors stay in the exporter. They do not fail the agent. - [Runtime](https://docs.larkx.ai/api/runtime.md): createRuntime, sqlite, and the methods on the Runtime object. - [Agent](https://docs.larkx.ai/api/agent.md): createAgent options and agent.start. - [Run](https://docs.larkx.ai/api/run.md): Wait, pause, cancel, reconcile, and answer a remote question. - [Tools](https://docs.larkx.ai/api/tools.md): defineTool, ToolContext, ToolFailure, and the effect class. - [Model providers](https://docs.larkx.ai/api/models.md): The Model interface, scriptedModel, and the Cactus adapter. - [Remote agents](https://docs.larkx.ai/api/remote-agents.md): remoteAgent for HTTP and A2A transports. - [Telemetry](https://docs.larkx.ai/api/telemetry.md): larkxCloud options and TelemetryDeliveryStatus. - [Examples](https://docs.larkx.ai/resources/examples.md): What each example in the repository is, and which ones are not a public SDK. - [Architecture](https://docs.larkx.ai/resources/architecture.md): How the public SDK, the C++ runtime, and optional Cloud fit together. - [Troubleshooting](https://docs.larkx.ai/resources/troubleshooting.md): The failures that show up when the native module, the database, or a tool class is wrong. - [FAQ](https://docs.larkx.ai/resources/faq.md): Short answers about the SDK, Cloud, and what is not shipped. - [Contributing](https://docs.larkx.ai/resources/contributing.md): How to work in the larkx repository without publishing private packages. - [Roadmap](https://docs.larkx.ai/resources/roadmap.md): What is implemented, what is planned, and what is not a commitment. - [Documentation site](https://docs.larkx.ai/resources/documentation-site.md): How this repository connects to Mintlify at docs.larkx.ai. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.