dream-logger
OpenClaw skill for DreamLogger. Receives dream entries and synthesis reports from the R1 device and saves them as Markdown files to a local journal folder. Optionally routes dream transcripts through a local LLM for richer literary-quality analysis (self-hosted gateway mode).
- License 许可
- MIT
- 最近更新
- 2026-09-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- dream-logger
- author
- rabbit-r1-skillz
- version
- 1.0.0
- description
- OpenClaw skill for DreamLogger. Receives dream entries and synthesis reports from the R1 device and saves them as Markdown files to a local journal folder. Optionally routes dream transcripts through a local LLM for richer literary-quality analysis (self-hosted gateway mode).
02 资源文件 3
- 资产文件card.jpg22.3 KB
- 资产文件icon.png9.3 KB
- 参考文档index.html58.9 KB
03 SKILL.md 正文
DreamLogger — OpenClaw Skill
DreamLogger runs entirely on-device (R1), storing all dream records in
creationStorage. The OpenClaw skill is optional and only activates
when you use the export feature (long-press PTT on a dream) or enable
self-hosted gateway analysis mode.
What this skill does
| Command | Description |
|---|---|
save-entry |
Writes a single dream as a Markdown file to your journal folder |
save-synthesis |
Writes a weekly or monthly synthesis report as Markdown |
analyze |
(Optional) Routes dream transcript through a local LLM for richer |
| literary analysis; returns structured analysis back to the device |
Prerequisites
- OpenClaw installed and running on your local machine (see the main
clawhoundREADME for setup). - Node.js 18+ (for the skill script).
- (Optional) A local LLM endpoint for self-hosted gateway mode — see below.
Setup
1. Install the skill
Copy (or symlink) this directory to OpenClaw's skills folder:
cp -r path/to/rabbit-r1-skillz/dream-logger ~/.openclaw/skills/dream-logger
Or if OpenClaw supports auto-discovery via the repo, add dream-logger to
your openclaw.config.json skill list.
2. Configure the journal folder
Create or edit ~/.openclaw/skills/dream-logger/config.json:
{
"journalDir": "~/Documents/DreamJournal",
"gatewayLLM": {
"enabled": false,
"endpoint": "http://localhost:11434/api/generate",
"model": "llama3"
}
}
journalDir— where exported Markdown files are saved. Will be created automatically if it does not exist.gatewayLLM.enabled— set totrueto enable local LLM analysis.gatewayLLM.endpoint— your Ollama or compatible local LLM endpoint.gatewayLLM.model— model name (e.g.llama3,mistral,phi3).
3. Skill handler (Node.js)
Create ~/.openclaw/skills/dream-logger/index.js:
const fs = require('fs');
const path = require('path');
const os = require('os');
const http = require('http');
const RAW_CONFIG_PATH = path.join(__dirname, 'config.json');
let config = { journalDir: '~/Documents/DreamJournal', gatewayLLM: { enabled: false } };
try { config = JSON.parse(fs.readFileSync(RAW_CONFIG_PATH, 'utf8')); } catch (_) {}
const journalDir = config.journalDir.replace('~', os.homedir());
fs.mkdirSync(journalDir, { recursive: true });
module.exports = async function handleCommand(skill, command, params) {
if (skill !== 'dream-logger') return null;
if (command === 'save-entry') {
const { filename, content } = params;
if (!filename || !content) return { saved: false, error: 'Missing filename or content' };
const filePath = path.join(journalDir, filename);
fs.writeFileSync(filePath, content, 'utf8');
return { saved: true, path: filePath };
}
if (command === 'save-synthesis') {
const { filename, content } = params;
if (!filename || !content) return { saved: false, error: 'Missing filename or content' };
const synthDir = path.join(journalDir, 'syntheses');
fs.mkdirSync(synthDir, { recursive: true });
const filePath = path.join(synthDir, filename);
fs.writeFileSync(filePath, content, 'utf8');
return { saved: true, path: filePath };
}
if (command === 'analyze') {
const { prompt } = params;
if (!prompt) return { analysis: '' };
if (!config.gatewayLLM?.enabled) {
return { analysis: '' }; // Will fall back to on-device LLM
}
const endpoint = config.gatewayLLM.endpoint || 'http://localhost:11434/api/generate';
const model = config.gatewayLLM.model || 'llama3';
const body = JSON.stringify({ model, prompt, stream: false });
const analysis = await new Promise((resolve, reject) => {
const url = new URL(endpoint);
const req = http.request(
{ hostname: url.hostname, port: url.port || 80, path: url.pathname, method: 'POST',
headers: { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(body) } },
(res) => {
let data = '';
res.on('data', chunk => { data += chunk; });
res.on('end', () => {
try { resolve(JSON.parse(data).response || ''); }
catch (_) { resolve(''); }
});
}
);
req.on('error', () => resolve(''));
req.setTimeout(55000, () => { req.destroy(); resolve(''); });
req.write(body);
req.end();
});
return { analysis };
}
return null;
};
4. Restart OpenClaw
openclaw restart
File output format
Each exported dream is a Markdown file with YAML front-matter:
dream-2026-06-14-the-glass-staircase.md
---
title: "The Glass Staircase"
date: 2026-06-14T06:23:11.000Z
duration: 134s
themes: ["glass", "staircase", "falling", "water"]
archetypes: ["falling", "descent", "unknown figure"]
emotions: ["anxiety", "wonder", "relief"]
characters: ["unknown woman", "childhood self"]
locations: ["old school", "underground chamber"]
objects: ["glass key", "broken mirror"]
---
# The Glass Staircase
*Logged: 6/14/2026, 6:23 AM*
*Duration: 2m 14s*
## Summary
The dream began in a familiar school building that gradually transformed...
## Raw Transcript
so there was this building that I recognised from school but all the
staircases were made of glass and I kept trying to go down but...
Synthesis reports are saved to DreamJournal/syntheses/:
dream-synthesis-week-2026-06-14.md
Privacy
All dream content is stored locally on the R1 device using
creationStorage.plain. Nothing is transmitted to external servers unless
you explicitly trigger an export command. The OpenClaw bridge only writes
files to your own machine — no network calls are made except to your
local LLM endpoint (if self-hosted gateway is enabled and the endpoint is
on localhost).
Self-hosted gateway mode
When gatewayLLM.enabled: true, the analyze command routes the dream
transcript through your local LLM for richer, more literary analysis
before the R1 device parses the result. The local model has more context
window and can produce more nuanced Jungian interpretation than the
on-device path.
Tested with Ollama running llama3:8b and mistral:7b. A model with at
least 7B parameters is recommended for quality dream analysis.
Troubleshooting
| Symptom | Cause / Fix |
|---|---|
| Export fails silently | OpenClaw not running — start it with openclaw start |
| Files saved to wrong location | Check journalDir in config.json |
| Gateway analysis not richer | gatewayLLM.enabled is false in config |
| Timeout during analysis | Local LLM too slow — try a smaller model (phi3:mini) |
creationStorage access denied |
R1 WebView sandbox — ensure you're running as a Creation |
04 同仓库更多 Skills
whisper-quiz
WhisperQuiz — voice-answered trivia game for Rabbit R1. Generates questions via the R1's built-in LLM, captures spoken answers via STT, and evaluates correctness with flexible LLM-based matching.
walk-cast
Walking podcast production skill. Receives raw audio metadata and transcript from the R1, removes long pauses, applies noise reduction and normalization, generates AI chapter titles and episode metadata via LLM, and uploads the final episode to your configured podcast RSS host (Spotify for Podcasters / Anchor, Podbean, Buzzsprout, RSS.com, or any FTP-accessible feed).
voice-novel
Local machine skill for VoiceNovel — handles story export to disk.
voice-guide
Environment description and navigation assistant for blind and low-vision users. Analyzes camera frames via a vision LLM, reads visible text, identifies scene categories (people/vehicles/food/hazards/exits), performs 360° scans, retrieves GPS position, and sends emergency SMS alerts — all via audio feedback with zero screen dependency.
voice-draft
Voice-driven document drafting for the Rabbit R1. Dictate stream-of-consciousness speech; the R1 formats it into Email, Blog Post, Report, Proposal, Meeting Notes, Creative Writing, Code Comments, Cover Letter, or Tweet Thread — then saves the result to a configured folder on your local machine via OpenClaw.
voice-commit
Hands-free git and CI workflow voice controller for the Rabbit R1. Speak git/CI commands and hear results — commit, push, status, PR management, test runs, and deploy, all voice-driven via OpenClaw.