← 返回
AI智能 中文

Open Notebook Skill

Integrates OpenClaw agents with local open-notebook for creating, saving, and querying thematic notebooks using local Ollama AI models.
集成 OpenClaw 代理与本地 open-notebook,利用本地 Ollama AI 模型创建、保存和查询专题笔记本。
nantes
AI智能 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 2
Stars
📥 1,176
下载
💾 32
安装
1
版本
#latest#local-ai#notebook#ollama#research

概述

Open Notebook Integration

A skill for integrating OpenClaw agents with open-notebook, a local AI research assistant (NotebookLM alternative).

What It Does

  • Connects your agent to open-notebook running locally
  • Creates thematic notebooks for research, agent discovery, and personal knowledge
  • Enables saving and querying knowledge across sessions (second brain for agents)
  • Supports local Ollama models (free, no API costs)

Prerequisites

  1. Install Docker Desktop (required for open-notebook)
  2. Install Ollama with a model (e.g., qwen3-4b-thinking-32k)
  3. Run open-notebook:

```powershell

docker compose -f docker-compose-host-ollama.yml up -d

```

Or use the default compose:

```powershell

docker compose up -d

```

Setup

The skill expects open-notebook at:

  • UI: http://localhost:8502
  • API: http://localhost:5055

Functions (INCLUDED)

This skill provides these PowerShell functions directly:

Add-ToNotebook

function Add-ToNotebook {
    param(
        [string]$Content,
        [string]$NotebookId = "YOUR_NOTEBOOK_ID"
    )
    $body = @{
        content = $Content
        notebook_id = $NotebookId
        type = "text"
    } | ConvertTo-Json
    Invoke-RestMethod -Uri "http://localhost:5055/api/sources/json" -Method Post -ContentType "application/json" -Body $body
}

Search-Notebook

function Search-Notebook {
    param(
        [string]$Query,
        [string]$NotebookId = "YOUR_NOTEBOOK_ID"
    )
    $body = @{
        question = $Query
        notebook_ids = @($NotebookId)
        strategy_model = "model:YOUR_MODEL_ID"
        answer_model = "model:YOUR_MODEL_ID"
        final_answer_model = "model:YOUR_MODEL_ID"
    } | ConvertTo-Json
    Invoke-RestMethod -Uri "http://localhost:5055/api/search/ask" -Method Post -ContentType "application/json" -Body $body
}

New-Notebook

function New-Notebook {
    param(
        [string]$Name,
        [string]$Description = ""
    )
    $body = @{
        name = $Name
        description = $Description
    } | ConvertTo-Json
    Invoke-RestMethod -Uri "http://localhost:5055/api/notebooks" -Method Post -ContentType "application/json" -Body $body
}

Notebook IDs

After creating notebooks, update these variables in your scripts:

$SIMULATION = "notebook:YOUR_SIMULATION_ID"
$CONSCIOUSNESS = "notebook:YOUR_CONSCIOUSNESS_ID"
$ENJAMBRE = "notebook:YOUR_ENJAMBRE_ID"
$OSIRIS = "notebook:YOUR_OSIRIS_ID"
$RESEARCH = "notebook:YOUR_RESEARCH_ID"

Example Usage

# Create a new notebook
New-Notebook -Name "My Research" -Description "Research notes"

# Save content
Add-ToNotebook -Content "This is my insight" -NotebookId "notebook:xxx"

# Query knowledge
$result = Search-Notebook -Query "What did I learn about X?" -NotebookId "notebook:xxx"

Configuration Required

Before using, you MUST:

  1. Run open-notebook with Docker
  2. Create notebooks via the UI (http://localhost:8502) or API
  3. Get your notebook IDs from the API response
  4. Update the $NotebookId parameters in the functions

Requirements

  • Docker Desktop running
  • Ollama with at least one model installed
  • open-notebook containers running (SurrealDB + app)

Troubleshooting

  • If API fails, check containers: docker ps
  • Check open-notebook logs: docker compose logs
  • Verify Ollama is running: curl http://localhost:11434/api/tags

Version

1.0.1 - Improved documentation, included function examples

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 09:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Mcp Client

nantes
模型上下文协议(MCP)客户端 - 连接工具、数据源和服务
★ 1 📥 2,828
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 834 📥 213,027
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,356 📥 318,133