> ## 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_.

# Contributing

> How to work in the larkx repository without publishing private packages.

LarkX is Apache-2.0. The repository is [github.com/larkxai/larkx](https://github.com/larkxai/larkx).

```bash theme={"dark"}
pnpm install
pnpm build
pnpm typecheck
pnpm lint
pnpm format:check
pnpm test
```

Node.js 22.13 or newer. The lockfile is pinned to pnpm 10.33.4.

`pnpm test` builds `dist` and runs Vitest. Package exports point at `dist`. Crash tests spawn an example and send `SIGKILL`. Do not replace them with a thrown exception.

## Public docs

A change to the public SDK updates the matching page under `docs/` in the same pull request. The published version is `0.4.0`, stored once in `docs/docs.json`. Do not type the version into a page. Connecting the GitHub repository to Mintlify is documented in [Documentation site](https://docs.larkx.ai/resources/documentation-site.md).

## What not to publish

`@larkxai/react-native` is the public npm SDK. Do not publish `@larkxai/node`, `@larkxai/host`, `@larkxai/protocol`, `@larkxai/telemetry`, or `@larkxai/cactus`. Do not publish anything under `examples/`.

Do not add an empty package and describe it as available. Do not restore the TypeScript workflow engine.

## Native checks

```bash theme={"dark"}
cmake -S native -B native/build -DCMAKE_BUILD_TYPE=Release
cmake --build native/build
ctest --test-dir native/build --output-on-failure
```

A green Node suite is not a mobile device run. Say so when you describe what you tested.

The longer contributor notes are [CONTRIBUTING.md](https://github.com/larkxai/larkx/blob/main/CONTRIBUTING.md).


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