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

# Hybrid agent

> On-device run, one remote specialist. The runnable server is the LangGraph A2A example.

The device can inspect local data and still ask a specialist that already lives somewhere else. Replacing that specialist, or moving the whole live run off the device, is a different product. LarkX keeps the parent run locally and records the delegation.

## Capabilities

On-device execution, remote specialization, A2A, and a LangGraph service that already speaks A2A. HTTP is the same registration with a different transport.

## What you can run

`examples/langgraph-a2a-agent` is the remote process. It is not imported by the React Native app. The device registers `procurement-agent` and continues locally after the task completes. Automated tests on a computer delegate, answer `provideInput`, and resume a client that was killed while the server was still in the graph. A phone has not run that sequence.

The catalog is fictional. Every recommendation is marked simulated.

Follow [Your first hybrid agent](https://docs.larkx.ai/getting-started/hybrid-agent.md) for the copyable client and the server command. The protocol details stay in [A2A](https://docs.larkx.ai/integrations/a2a.md) and [LangGraph](https://docs.larkx.ai/integrations/langgraph.md).


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