> ## 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 open-source execution infrastructure for on-device AI agents. It is not an inference engine, an LLM wrapper, a cloud-only agent framework, or a replacement for LangGraph or Cactus.
> Install the public SDK with npm install @larkxai/react-native. The published version is the sdkVersion variable on the Installation page. Import createRuntime, defineTool, scriptedModel, sqlite, remoteAgent, and larkxCloud from @larkxai/react-native. Import cactusModel from @larkxai/react-native/cactus only when the app uses local inference.
> Do not import @larkxai/node, @larkxai/host, @larkxai/protocol, @larkxai/telemetry, or @larkxai/cactus. Those packages are private. Swift and Kotlin SDKs are not published.
> Hello World uses scriptedModel and does not download a model or need Cloud. A Cactus agent needs cactus-react-native 1.13.1, react-native-nitro-modules 0.33.9 or newer, download(), and init() before start. Expo Go cannot load the native module.
> Recovery opens a new createRuntime on the same SQLite file, registers the same agent name and version, then calls resume. Do not call resume on a runtime that has already been closed. Do not describe external effects as exactly-once. A killed process does not keep running.
> Cloud telemetry is optional. Pass larkxCloud({ projectId, apiKey }) only after a local run already works. The key must start with lkx_ing_.

# FAQ

> Short answers about the SDK, Cloud, and what is not shipped.

## Which package do I install?

`@larkxai/react-native` 0.4.0. Do not install `@larkxai/node` or the private workspace packages.

## Does it work in Expo Go?

No. The C++ runtime is a native module. Use a development build.

## Does the SDK include a model?

No. Use `scriptedModel` when you want a fixed response, or [Cactus](https://docs.larkx.ai/integrations/cactus.md) for on-device inference. Other providers are not shipped.

## Is a remote effect exactly-once?

No. The runtime records the attempt and can avoid a second send when the peer's declared capabilities allow it. It cannot promise the peer never saw the first send.

## Does Cloud run my agent?

No. Cloud, when you enable it, receives metadata. The agent runs from the local database. See [Privacy and telemetry](https://docs.larkx.ai/cloud/privacy.md).

## Are Swift and Kotlin available?

They are planned. They are not packages you can add today. `examples/swift-agent` calls the C ABI and is not a Swift SDK.

## Is the phone demo finished?

The field-inspection example exists. Physical-device validation, including real Cactus inference and force-quit recovery, is still open. Node `SIGKILL` tests are not that phone run.

## Where are the internal design docs?

They stay in the git repository under `docs/architecture/` and `docs/validation/`. This site links to them from [Architecture](https://docs.larkx.ai/resources/architecture.md) and does not list them in the public navigation.


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