# Get Started

Install the CLI, give your agent the skills, and render your first scene in a minute.

Motion SDK is an agent-native alternative to Three.js, written in Rust on WebGPU. Your agent writes a scene as JSON, or streams it as small patches. Motion SDK checks every step, answers mistakes with a fix, and renders the same pixels every time: live in the browser, or headless to MP4, GIF and PNG.

New here? The [Introduction](/docs/concepts) explains why it exists and how it fits together.

## Quick Start

Install the CLI from the repo. You need Rust and any GPU, or a software Vulkan driver like Mesa lavapipe.

```bash
git clone https://github.com/brainfish-ai/motion && cd motion
cargo install --locked --path crates/motion-sdk-cli
```

Give your agent the skills:

```bash
npx skills@latest add brainfish-ai/motion
```

Then ask it for a scene:

```text
Use motion-sdk to make a 6 second seamless loop for X: a neon torus knot
spinning inside a ring of chrome spheres, with the hook "Made by an agent".
Validate it, render a frame to check it, then export it with the x_1x1 preset.
```

Or render one of the examples yourself:

```bash
motion-sdk render examples/viral-x-loop.json --export x_square
```

## Learn the Basics

  - [Introduction](/docs/concepts): Why Motion SDK exists, and how the spec, renderer and exports fit together.
  - [Your First Scene](/docs/concepts/first-scene): Build a scene step by step, validate it and render it.
  - [The Scene Document](/docs/concepts/scene-document): Id-keyed maps, single-key variants, defaults and units.
  - [Streaming Patches](/docs/concepts/streaming): Send a scene as RFC 6902 patches that render as they arrive.

## Find a Feature

  - [Materials](/docs/features/materials): PBR presets, flat and toon shading, outlines and surfaces.
  - [Camera and Shots](/docs/features/shots): A shot list with hard cuts, waypoints and follow cams.
  - [Particles](/docs/features/particles): Sparks, snow, smoke, spray, trails and streaks.
  - [Export](/docs/features/export): MP4, GIF and PNG with social presets and captions.

Or [see every feature](/docs/features).

## Work with Agents

  - [Skills](/docs/agents/skills): The Agent Skills that teach your agent to use Motion SDK.
  - [llms.txt](/docs/agents/llms-txt): These docs as Markdown, sized for an agent's context.
  - [Error Codes](/docs/reference/errors): Every validation code and the fix that goes with it.
  - [Recreate a Reference Video](/docs/guides/recreate-a-reference-video): How we rebuild viral animations shot by shot.
