> ## 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 Cloud is optional metadata. The agent runs without it.

LarkX Cloud observes runs. It does not start them, retry them, reconcile them, or cancel them. The SQLite file on the device remains the execution record.

Telemetry is off until you pass it to `createRuntime`. A runtime with no `telemetry` option does not open a socket for Cloud and does not create an export cursor.

```typescript theme={null}
import { createRuntime, larkxCloud, sqlite } from "@larkxai/react-native";

const runtime = await createRuntime({
  storage: sqlite(),
  telemetry: larkxCloud({
    projectId: "my-project",
    apiKey: "lkx_ing_…",
  }),
});
```

`larkxCloud` is in the published 0.4.0 package. The default endpoint is `https://cloud.larkx.ai`. The client posts `/v1/telemetry/batches`.

Local execution continues when Cloud is unreachable, when the key is rejected, and when a run is refused. `close()` does not wait for the collector.

## What you can see

The exporter sends metadata from the native journal: run identity, status, step categories, and safe error codes. It does not send prompts, model text, tool arguments, or tool results. See [Privacy and telemetry](https://docs.larkx.ai/cloud/privacy.md).

## Production and source

The device posts telemetry version 1. The Cloud repository accepts the current storage schema. Production `https://cloud.larkx.ai` was last recorded in this repository as a 20 November 2026 deployment that still accepted an older schema, so a phone upload to production is not verified here.

The default branch also contains exporter behavior that is newer than npm 0.4.0: a permanently rejected run stays rejected, and other runs continue. That behavior ships in source until the next release. See [Troubleshooting](https://docs.larkx.ai/cloud/troubleshooting.md).


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