> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reactor.inc/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To build and serve your own model, start at /deploy/development/quickstart and /deploy/development/overview. Authenticate with reactor auth login, scaffold with reactor init, then run reactor deploy production from the workspace. Deploy builds remotely by default, creates a missing workspace project and its production environment, and waits for rollout. No local Docker or model.version bump is needed. Projects own images and weight sets; environments select the image, weights, GPU, instance count, and variables. Create staging explicitly with reactor environment create staging before deploying to it. Use reactor scale for capacity and reactor rollback for an earlier revision’s image and weights. See /deploy/platform/projects and /deploy/platform/deploy. Client SDK modelName remains account-qualified and selects production by default. Model code imports reactor_runtime; Python client code imports reactor_sdk. Local testing is optional; /deploy/development/local-testing covers reactor run, which needs Docker.
> Reactor hosts multiple models, each with its own connect slug (modelName) and command/event schema. The video model catalog — slug, typed SDK package, and links to its schema — is at /model-api-reference/overview. Robotics policy documentation starts at /robotics/overview; The launch policies are Cosmos Nano DROID (/robotics/cosmos/nano-policy-droid/), DreamZero DROID (/robotics/dreamzero/droid/), and FLUX Action DROID (/robotics/flux-action/droid/), organized by model family and embodiment. Some models expose one slug per experience (e.g. HappyOyster); always take the slug from the model's own pages, never guess it.
> Fastest path to a working app: `npx create-reactor-app my-app --model=<slug>` scaffolds a complete app with secure auth wired up. Typed TypeScript SDKs are published as @reactor-models/<model>; Python uses the base reactor-sdk package.
> Auth: exchange an API key (rk_...) for a JWT via POST https://api.reactor.inc/tokens from your server. Never put the API key in client-side code.
> Append .md to any docs URL for clean Markdown. Search these docs via the MCP server at https://docs.reactor.inc/mcp.

# ABot World Halo

> Play a character through a generated game world with sound, live movement, and actions.

ABot World Halo from AMAP turns a picture and a scene description into a game world you can play.
Give it a first frame, up to five pictures of your character, and a scene prompt. Then walk, look
around, and trigger actions, either from the built-in set or from an action prompt you write. You
can also change the scene while it plays. Video and sound stream together, and a session runs until you reset or leave.

This reference has four pages: this overview, the
[schema](https://docs.reactor.inc/model-api-reference/abot-world-halo/schema.md), the
[prompt guide](https://docs.reactor.inc/model-api-reference/abot-world-halo/prompt-guide.md), and a
[tutorial](https://docs.reactor.inc/model-api-reference/abot-world-halo/tutorial.md).

The [typed SDK](https://docs.reactor.inc/sdk-reference/typed-model-sdk.md), `@reactor-models/abot-world-halo`, gives you
`AbotWorldHaloModel`: a client with a named method for every command and typed messages back.

## At a glance

| Spec | Value |
| - | - |
| **Model name** | `reactor/abot-world-halo` |
| **Pricing** | |
| **Frame rate** | 24 fps |
| **Resolution** | 832 × 480 |
| **Input** | First frame, scene prompt, and up to five character pictures |
| **Audio** | 48 kHz mono |

## Key features

> [card] Play a character
>
> Walk with WASD-style movement and turn the view. Each change applies from the next chunk.

> [card] Hold actions
>
> Sprint, jump, crouch, cast, or describe an action of your own and hold it like a key.

> [card] Change the scene live
>
> Send a new scene prompt while the world plays. Video and its matching sound keep streaming.

## Quick start

Scaffold the example project with `create-reactor-app`. The
[tutorial](https://docs.reactor.inc/model-api-reference/abot-world-halo/tutorial.md) walks through the same steps in your own
app.

> [tab] npm
>
> ```shell theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
> npx create-reactor-app my-abot-app --model=abot-world-halo
> ```

> [tab] pnpm
>
> ```shell theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
> pnpm create reactor-app my-abot-app --model=abot-world-halo
> ```

The [example app](https://github.com/reactor-team/create-reactor-app/tree/main/templates/abot-world-halo)
uses the typed SDK, `@reactor-models/abot-world-halo`. For your own browser code, install that package:

> [tab] npm
>
> ```shell theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
> npm install @reactor-models/abot-world-halo
> ```

> [tab] pnpm
>
> ```shell theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
> pnpm add @reactor-models/abot-world-halo
> ```

Your server issues the session token. See [Authentication](https://docs.reactor.inc/authentication.md). Then connect, set the
inputs, and start:

```typescript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
import { AbotWorldHaloModel } from "@reactor-models/abot-world-halo";
import { fetchToken } from "./token";

const video = document.querySelector<HTMLVideoElement>("#world")!;
const audio = document.querySelector<HTMLAudioElement>("#sound")!;

const halo = new AbotWorldHaloModel();
halo.on("error", console.error);
halo.onMainVideo((_track, stream) => (video.srcObject = stream));
halo.onMainAudio((_track, stream) => (audio.srcObject = stream));
halo.onStateUpdate((state) => console.log(state.state));

await halo.connect(await fetchToken());

const picker = document.querySelector<HTMLInputElement>("#first-frame")!;
const firstFrame = await halo.uploadFile(picker.files![0]); // A PNG or JPEG the user picked.
await halo.setFirstFrame({ image: firstFrame });
await halo.setPrompt({ prompt: "A stone courtyard in a castle at dusk, torches on the walls." });
await halo.start();

await halo.setMove({ forward: 1, right: 0 }); // Walk forward until you send 0.
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
import asyncio
import os
from reactor_sdk import Reactor, ReactorStatus

async def main():
    reactor = Reactor(
        model_name="reactor/abot-world-halo",
        api_key=os.environ["REACTOR_API_KEY"],
    )
    ready = asyncio.Event()

    @reactor.on_status(ReactorStatus.READY)
    async def on_ready(status):
        ready.set()

    await reactor.connect()
    try:
        await asyncio.wait_for(ready.wait(), timeout=30)
        first_frame = await reactor.upload_file("first_frame.png")
        await reactor.send_command("set_first_frame", {"image": first_frame})
        await reactor.send_command("set_prompt", {
            "prompt": "A stone courtyard in a castle at dusk, torches on the walls.",
        })
        await reactor.send_command("start", {})
        await reactor.send_command("set_move", {"forward": 1, "right": 0})
        # Keep the session open while the world plays.
        await asyncio.sleep(30)
        await reactor.send_command("reset", {})
    finally:
        await reactor.disconnect()

asyncio.run(main())
```

## How it works

1. Connect a session and attach `main_video` and `main_audio`.
2. In `idle`, set a first frame and a scene prompt. Character pictures, a seed, and a resolution are
   optional.
3. Call `start`. The state moves to `running`, and `generation_started` arrives with the first
   chunk.
4. Send `set_move`, `set_look`, and `set_action` as the player presses and releases keys. Send
   `set_prompt` to change the scene. Each change applies from the next chunk.
5. Call `reset` to end the session and clear every input. Leaving also ends it.


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