> ## Documentation Index
> Fetch the complete documentation index at: https://srk-e37e8aa3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome

> Real-time AI execution runtime for embodied systems.

# Welcome

This site documents two npm packages that work together.

| Package                                 | What it is                                                         | Start here                                |
| --------------------------------------- | ------------------------------------------------------------------ | ----------------------------------------- |
| [`scp-protocol`](/scp/introduction)     | One body, one LLM. The body class, pattern store, adaptive memory. | [SCP introduction](/scp/introduction)     |
| [`@srk0102/plexa`](/plexa/introduction) | One brain, many bodies. Built on scp-protocol.                     | [Plexa introduction](/plexa/introduction) |

## Install

```bash theme={null}
# one body
npm install scp-protocol

# many bodies under one brain
npm install @srk0102/plexa
```

## In one paragraph

In MCP the brain asks. In SCP the muscle asks. A body runs at 60Hz, holds its own decision cache, and only consults an LLM when the cache cannot answer. Plexa stacks several of those bodies under a single brain and adds cross-session memory, safety gates, and lateral body-to-body events.

## Walk through a working example

The fastest way to understand the stack is to run one. See [Cart pole](/examples/cart-pole) for an end-to-end walkthrough that goes from `npm install` to a balanced inverted pendulum.

## Source

* SCP: [github.com/srk0102/SCP](https://github.com/srk0102/SCP)
* Plexa: [github.com/srk0102/plexa](https://github.com/srk0102/plexa)
