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

# Getting started

> Pick a package, install, run an example.

# Getting started

Three steps to a running body.

## 1. Pick a package

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

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

If you are not sure which to use, start with `@srk0102/plexa`. It includes everything in `scp-protocol` plus orchestration.

## 2. Get a brain (optional)

The bundled examples fall back to a stub brain that rotates through sensible actions, so you can run them without any LLM. To use a real brain locally:

```bash theme={null}
# install ollama from https://ollama.ai
ollama pull llama3.2
ollama serve   # starts on http://localhost:11434
```

For hosted brains, set credentials:

* `ANTHROPIC_API_KEY` for `AnthropicBrain`.
* AWS credentials in the standard chain for `BedrockBrain`.

## 3. Run an example

```bash theme={null}
git clone https://github.com/srk0102/plexa.git
cd plexa
npm install
node examples/inprocess-demo/index.js
```

Walkthrough version of the same example: [Cart pole](/examples/cart-pole).

## Where to go next

| You want                      | Page                                         |
| ----------------------------- | -------------------------------------------- |
| Understand the three layers   | [SCP: How it works](/scp/how-it-works)       |
| Write your own body           | [SCP: Adapter guide](/scp/adapter-guide)     |
| Coordinate several bodies     | [Plexa: How it works](/plexa/how-it-works)   |
| Add safety rules and approval | [Plexa: Safety](/plexa/safety)               |
| Make memory survive restarts  | [Plexa: Memory](/plexa/memory)               |
| API surface                   | [SCP API](/scp/api), [Plexa API](/plexa/api) |
