← Back to Plugins
Voice

Cloud Glide

aaaLittleCloud By aaaLittleCloud 👁 19 views ▲ 0 votes

An OpenClaw plugin that periodically wakes any agent to browse news and videos and have it write what it saw into its own workspace's daily memory.

GitHub

Install

npm install openclaw-cloud-glide`

README

# CloudGlide

English · [中文](README-zh.md)

An [OpenClaw](https://docs.openclaw.ai) plugin that wakes **any agent** at set times, lets it flip
through videos and the news, and have that agent write what it noticed into **its own workspace's
local memory**.

It depends on no chat channel and sends no messages.

> **Status: stable.** The full pipeline — scheduled video/news collection, model-assisted
> selection, and agent-written daily memory — is implemented and unit-tested (100 tests).
> Model calls degrade gracefully when the host has no usable model.

---

## 1. What it does

| Time | What it looks at | What happens |
| --- | --- | --- |
| 03:00 | a few videos that catch its eye | buffered |
| 08:00 | headlines from a few news front pages | buffered |
| random in 09:00–13:00 | — | buffered material is written to today's memory |
| 15:00 | a few more videos | buffered |
| random in 16:00–22:00 | — | buffered material is written to today's memory |

- The **agent** writes the memory file (`memory/YYYY-MM-DD.md`); the plugin never does.
- Every run has a hard budget (480 s by default) and never runs twice at once.
- A tick missed while the host was down is caught up once, within two hours.
- **Text only**: titles, descriptions, tags and visible comments — the video stream is never read
  or played.

### Fetching discipline (built-in hard limits)

| Limit | Default | Meaning |
| --- | --- | --- |
| Page gap | 3 s | Forced wait between page visits, one domain at a time |
| Pages per day | 30 | Video rounds take ≤ 1+chainLength pages, news rounds ≤ 5; stop when exhausted |
| Run budget | 480 s | The whole run is aborted when exceeded; never re-entrant |

---

## 2. Install

Requires Node.js ≥ 24.22.1 and OpenClaw ≥ 2026.11.5.

### 2.1 Users (published package)

```bash
openclaw plugins install npm:openclaw-cloud-glide --accept-capabilities
openclaw plugins enable cloud-glide
openclaw plugins inspect cloud-glide --runtime --json   # loaded means success
openclaw skills list                                    # should show cloud-glide (ready)
```

Two things to note:

- The `npm:` prefix is required — OpenClaw searches ClawHub by default, and only `npm:` selects
  the npm registry.
- Do **not** `npm install openclaw-cloud-glide` directly: that drops it into the current directory
  as a plain dependency, does not link it to your OpenClaw install, and pulls a second copy of
  OpenClaw itself.

### 2.2 Developers (from source)

> ⚠️ Install the **packed artifact**. `plugins install --link .` and `plugins.load.paths` make the
> Gateway fail at sidecar startup with `Plugin entry is outside its captured source package`.

```bash
npm install
npm run build                  # TypeScript → dist/
npm pack                       # → openclaw-cloud-glide-0.1.4.tgz

openclaw plugins install npm-pack:./openclaw-cloud-glide-0.1.4.tgz --force --accept-capabilities
openclaw plugins enable cloud-glide
openclaw plugins inspect cloud-glide --runtime --json
```

Expected: `status=loaded`, `imported=true`, `diagnostics=0`, one service
(`cloud-glide.scheduler`) and one tool (`cloud_glide_status`).

Uninstall:

```bash
openclaw plugins uninstall cloud-glide --force
```

---

## 3. Settings

Open **Settings → Plugins → CloudGlide**, or edit `plugins.entries.cloud-glide.config` directly.
Every field is schema-validated; invalid values are rejected.

### 3.1 Pace (`video` / `news` / `runMaxMs` / `limits`)

| Field | Default | Meaning |
| --- | --- | --- |
| `video.enabled` | `true` | Turn the video flow on/off |
| `video.times` | `["03:00","15:00"]` | When to browse videos (24h, multiple allowed) |
| `video.chainLength` | `5` | Videos per run (1–10) |
| `video.candidates` | `40` | Candidate pool fed to the model (5–100) |
| `news.enabled` | `true` | Turn the news flow on/off |
| `news.times` | `["08:00"]` | When to read news front pages |
| `news.perSite` | `40` | Headlines kept per site (5–100) |
| `runMaxMs` | `480000` | Hard budget per run (30 s – 10 min), aborted when exceeded |
| `limits.pageGapMs` | `3000` | Forced gap between page visits (1–30 s) |
| `limits.pagesPerDay` | `30` | Daily page budget (5–100); collection stops when exhausted |

Write windows are fixed at a random minute inside **09:00–13:00** and **16:00–22:00**.

### 3.2 Binding (`agentId` / `accountId`)

```json5
{
  "agentId": "main",     // the agent that browses and owns the memory; session key = agent:<agentId>:subagent:cloud-glide
  "accountId": ""        // reserved, currently unused
}
```

`agentId` decides **which agent browses**: collection and memory writing both run under that
agent, the memory lands in *that agent's* workspace, and the writing turn carries **that agent's
own persona**. Set it to whichever id should browse.

`cloud_glide_status` lists the host's available agents and checks the configured id:

```
agent: main
available agents: main, news, work
session key: agent:main:subagent:cloud-glide
⚠️ agent "foo" is not in the host roster; available: main, news, work
```

A missing id does not crash anything; it only adds a ⚠️ line — set `agentId` to a listed id.

### 3.3 Taste (`tags` / `seedBvids`)

```json5
{
  "tags": ["AI tools", "indie dev"],   // ranks video candidates by title, case-insensitive
  "seedBvids": ["BV1xx411c7mD"]        // starting videos; empty reuses the previous pick
}
```

---

## 4. Verification and troubleshooting

```bash
npm test                 # 100 unit tests
npm run build            # type-check + emit dist/
openclaw plugins doctor  # discovery, loading, compatibility
openclaw skills list     # should show cloud-glide (ready) — the agent-facing usage notes
```

| Symptom | Cause | Fix |
| --- | --- | --- |
| `Plugin entry is outside its captured source package`, Gateway won't start | installed with `--link` / `plugins.load.paths` | install the `npm-pack:` artifact and drop that load path |
| `package owner ... has conflicting child rows` | two install records for one plugin | `openclaw plugins uninstall cloud-glide --force`, then reinstall |
| `Gateway start blocked: existing config is missing gateway.mode` | config lacks `gateway.mode` | add `gateway: { mode: "local" }` |
| Settings panel is empty | stale install without the new manifest | reinstall and re-inspect `configSchema` |
| Code changes have no effect | the installed copy is a snapshot | `npm run build && npm pack`, reinstall |

`cloud_glide_status` reports the bound agent, the host's available agents, the persistence mode
(host keyed store vs memory-only), the daily page budget, the next tick, and today's counters.

---

## 5. Known limits

- **No video content is ever read**: only text metadata and visible comments; without a logged-in
  profile the comment area is usually empty.
- Model selection **falls back to the first candidate** when the host has no usable model; the
  round still collects.
- The top-level `accountId` is stored but unused.
- The plugin sends no messages and depends on no chat channel.

---

## 6. License and citation

MIT — see [LICENSE](LICENSE).

```bibtex
@software{cloudglide,
  author  = {aaaLittleCloud},
  title   = {CloudGlide: an OpenClaw plugin that browses the news and videos},
  year    = {2026},
  url     = {https://github.com/aaaLittleCloud/openclaw-cloud-glide}
}
```
voice

Comments

Sign in to leave a comment

Loading comments...