> For the complete documentation index, see [llms.txt](https://clarity-7.gitbook.io/clarity-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clarity-7.gitbook.io/clarity-docs/clarity-developer-docs/readme.md).

# SWARM Agent Node Hub

Consumer walkthrough for hosting autonomous agent nodes on **Cherry bare-metal** with **Spark** settlement on **clrty-1 / chain 1202**. **NO Docker.**

## Live preview

* **GitBook:** [app.gitbook.com preview](https://app.gitbook.com/o/6MCNfiz1cpjlR5LX4kWw/sites/site_vzd1R/preview)
* **Monitor mirror:** [monitor.clarity-fintech.com/docs/swarm-agent-node/](https://monitor.clarity-fintech.com/docs/swarm-agent-node/)
* **SWARM host funnel:** [uiquio/swarms/host](https://monitor.clarity-fintech.com/uiquio/swarms/host)

## The funnel

```
Spark checkout → JWT → Clarity Wallet → GitBook unlock → Cherry deploy → Register & run agents
```

| Step    | Surface                                                                                             |
| ------- | --------------------------------------------------------------------------------------------------- |
| Pay     | [Spark checkout](/clarity-docs/clarity-developer-docs/consumer-walkthrough/02-pay-gate-checkout.md) |
| Session | `POST /v1/swarm/paygate/activate`                                                                   |
| JWT     | `POST /v1/auth/issue-token`                                                                         |
| Wallet  | [exchange.clarity-fintech.com/login](https://exchange.clarity-fintech.com/login)                    |
| Docs    | GitBook Audience + tier gating                                                                      |
| Node    | `/opt/clrty/swarm-node` on Cherry — **NO Docker**                                                   |

## Start the walkthrough

→ [**Consumer walkthrough hub**](/clarity-docs/clarity-developer-docs/consumer-walkthrough/consumer-walkthrough.md)

| # | Step                                                                                                             |
| - | ---------------------------------------------------------------------------------------------------------------- |
| 1 | [Prerequisites](/clarity-docs/clarity-developer-docs/consumer-walkthrough/01-prerequisites.md)                   |
| 2 | [Pay Gate Checkout](/clarity-docs/clarity-developer-docs/consumer-walkthrough/02-pay-gate-checkout.md)           |
| 3 | [Activate Pay Gate Session](/clarity-docs/clarity-developer-docs/consumer-walkthrough/03-activate-session.md)    |
| 4 | [Private JWT + Wallet Login](/clarity-docs/clarity-developer-docs/consumer-walkthrough/04-private-jwt-wallet.md) |
| 5 | [GitBook Authenticated Access](/clarity-docs/clarity-developer-docs/consumer-walkthrough/05-gitbook-gate.md)     |
| 6 | [Install on Cherry (NO Docker)](/clarity-docs/clarity-developer-docs/consumer-walkthrough/06-install-cherry.md)  |
| 7 | [Register Agents & Execute](/clarity-docs/clarity-developer-docs/consumer-walkthrough/07-register-execute.md)    |

### After unlock — upload agents

| Phase | Step                                                                                                              |
| ----- | ----------------------------------------------------------------------------------------------------------------- |
| 1     | [Auth + JWT Issue](/clarity-docs/clarity-developer-docs/agent-upload-after-unlock/upload-phase1-auth.md)          |
| 2     | [Prepare .mis + .py Agents](/clarity-docs/clarity-developer-docs/agent-upload-after-unlock/upload-phase2-prep.md) |
| 3     | [Upload to Cherry](/clarity-docs/clarity-developer-docs/agent-upload-after-unlock/upload-phase3-upload.md)        |

## Client gating

Include on GitBook custom HTML or monitor mirror pages:

```html
<script type="module" src="./assets/gitbook-gating.js"></script>
```

## Org / site IDs (GitBook API)

| Key     | Value                  |
| ------- | ---------------------- |
| Org ID  | `6MCNfiz1cpjlR5LX4kWw` |
| Site ID | `site_vzd1R`           |

Set `GITBOOK_TOKEN` locally — **never commit**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://clarity-7.gitbook.io/clarity-docs/clarity-developer-docs/readme.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
