← Back to Plugins
Voice

CloudGlide

aaaLittleCloud By aaaLittleCloud 👁 17 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
npm

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 does not depend on any chat channel and never sends messages. QQ Bot users get one extra
benefit: the browsing runs with the persona you configured for that agent (see below).

> **Status: early.** Settings, text filters, the scheduler, the run budget and agent binding are
> implemented and unit-tested (44 tests). Collection and memory writing are not wired up yet: a
> scheduled tick only records itself and schedules the next one.

---

## 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 (120 s by default) and never runs twice at once.
- A tick missed while the host was down is caught up once, within two hours.

## 2. Relationship with QQ Bot

CloudGlide does **not** depend on qqbot and does **not** send QQ messages. It only wakes an agent
and updates that agent's local memory.

"Adapting to qqbot" simply means: if your qqbot setup assigns personas to agents (one main agent
with several small agents under it), set `agentId` to the one you want — the browsing and
memory-writing turns run under that agent, so **its configured persona applies naturally**. The
plugin never reads or copies anyone's persona.

For the QQ Bot channel itself, see the official docs:
[QQ Bot · OpenClaw](https://docs.openclaw.ai/channels/qqbot).

---

## 3. Install

Requires Node.js ≥ 24.22.1 and OpenClaw ≥ 2026.11.5.

> ⚠️ 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.0.tgz

openclaw plugins install npm-pack:./openclaw-cloud-glide-0.1.0.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
```

---

## 4. Settings

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

### 4.1 Pace (`video` / `news` / `runMaxMs`)

| 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` | `120000` | Hard budget per run (30 s – 10 min), aborted when exceeded |

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

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

A QQ Bot setup is typically one main agent with several small agents under it — the small agents
are entries in the host agent roster. `cloud_glide_status` lists the available agents and checks
the configured id:

```
agent: main
available agents: main, qqbot, news
⚠️ agent "foo" is not in the host roster; available: main, qqbot, news
```

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

### 4.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
}
```

---

## 5. Verification and troubleshooting

```bash
npm test                 # 44 unit tests
npm run build            # type-check + emit dist/
openclaw plugins doctor  # discovery, loading, compatibility
```

| 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 next tick, and today's counters.

---

## 6. Known limits

- Collection and memory writing are **not implemented**; ticks only record and reschedule.
- The top-level `accountId` is stored but unused.
- The plugin sends no messages and depends on no chat channel.

---

## 7. 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/CloudGlide}
}
```
voice

Comments

Sign in to leave a comment

Loading comments...