An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
{
"ID": "20200828105441-r76vmu5",
"Spec": "2",
"Type": "NodeDocument",
"Properties": {
"id": "20200828105441-r76vmu5",
"title": "内核参数",
"type": "doc",
"updated": "20261016112115"
},
"Children": [
{
"ID": "20201225172241-7rtm3t1",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20201225172241-7rtm3t1",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
}
]
},
{
"ID": "20201225172241-yg7dr9h",
"Type": "NodeParagraph",
"Properties": {
"id": "20201225172241-yg7dr9h",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "serve"
},
{
"Type": "NodeText",
"Data": " 通过 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": " 指定工作空间。未指定时依次使用环境变量 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SIYUAN_WORKSPACE_PATH"
},
{
"Type": "NodeText",
"Data": "、最后一个已注册工作空间、系统默认目录:macOS 为 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~/Library/Application Support/SiYuan"
},
{
"Type": "NodeText",
"Data": ",Windows 为 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "%USERPROFILE%\\SiYuan"
},
{
"Type": "NodeText",
"Data": ",其他平台为 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "~/SiYuan"
},
{
"Type": "NodeText",
"Data": "。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--home-dir"
},
{
"Type": "NodeText",
"Data": " 会改变配置与默认路径使用的用户主目录。普通单次 CLI 命令的选择规则不同,详见 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20260612191136-feqbi1x",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "命令行接口"
},
{
"Type": "NodeText",
"Data": "。"
}
]
},
{
"ID": "20201225172241-xmughi5",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20201225172241-xmughi5",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--wd"
}
]
},
{
"ID": "20201225172241-hmpvq05",
"Type": "NodeParagraph",
"Properties": {
"id": "20201225172241-hmpvq05",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "包含 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "appearance/"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "stage/"
},
{
"Type": "NodeText",
"Data": " 的程序资源目录,未指定时根据内核可执行文件自动查找。它与 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--workspace"
},
{
"Type": "NodeText",
"Data": " 指定的数据目录不同。"
}
]
},
{
"ID": "20201225172241-n1lxchm",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20201225172241-n1lxchm",
"updated": "20201225172241"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--readonly"
}
]
},
{
"ID": "20201225172241-5nmdh8n",
"Type": "NodeParagraph",
"Properties": {
"id": "20201225172241-5nmdh8n",
"updated": "20201225172241"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--readonly=true"
},
{
"Type": "NodeText",
"Data": " 指定后内核将以只读模式运行,所有写入操作将被禁止。",
"Properties": {
"id": ""
}
}
]
},
{
"ID": "20210117224112-8i8ptea",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20210117224112-8i8ptea",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--accessAuthCode"
}
]
},
{
"ID": "20210117224121-gtdkur4",
"Type": "NodeParagraph",
"Properties": {
"id": "20210117224121-gtdkur4",
"updated": "20261016112115"
},
"Children": [
{
"Type": "NodeText",
"Data": "用于设置浏览器"
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20210104090909-20f2hvi",
"TextMarkBlockRefSubtype": "s",
"TextMarkTextContent": "锁屏密码"
},
{
"Type": "NodeText",
"Data": "。非空 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--accessAuthCode"
},
{
"Type": "NodeText",
"Data": " 会覆盖 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "conf/conf.json"
},
{
"Type": "NodeText",
"Data": " 中的 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "accessAuthCode"
},
{
"Type": "NodeText",
"Data": ";省略或传入空值时回退到 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SIYUAN_ACCESS_AUTH_CODE"
},
{
"Type": "NodeText",
"Data": "。最终值为空不会清除已保存的密码。"
}
]
},
{
"ID": "20201225172417-1j2r118",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20201225172417-1j2r118",
"updated": "20201225172417"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--ssl"
}
]
},
{
"ID": "20201225172431-z7yelgn",
"Type": "NodeParagraph",
"Properties": {
"id": "20201225172431-z7yelgn",
"updated": "20201225172431"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--ssl=true"
},
{
"Type": "NodeText",
"Data": " 后将使用 https 和 wss 协议进行伺服。",
"Properties": {
"id": ""
}
}
]
},
{
"ID": "20220517143906-h2p1a5m",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20220517143906-h2p1a5m",
"updated": "20260914011526"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "### ",
"Properties": {
"id": ""
}
},
{
"Type": "NodeTextMark",
"Properties": {
"id": ""
},
"TextMarkType": "code",
"TextMarkTextContent": "--lang"
}
]
},
{
"ID": "20220517143906-cd8h1g8",
"Type": "NodeParagraph",
"Properties": {
"id": "20220517143906-cd8h1g8",
"updated": "20260914011526"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--lang=zh-CN"
},
{
"Type": "NodeText",
"Data": " 后将使用简体中文初始化外观语言。未指定时使用已保存的语言;首次初始化时匹配系统语言,无法匹配则回退到 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "en"
},
{
"Type": "NodeText",
"Data": "。目前可选值:"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ar"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "de"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "en"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "es"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "fr"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "he"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "hi"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "id"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "it"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ja"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ko"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "nl"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "pl"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "pt-BR"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "ru"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sk"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "sr"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "th"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "tr"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "uk"
},
{
"Type": "NodeText",
"Data": "、"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "zh-CN"
},
{
"Type": "NodeText",
"Data": " 和 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "zh-TW"
},
{
"Type": "NodeText",
"Data": "。"
}
]
},
{
"ID": "20220601085956-e4x7vfb",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20220601085956-e4x7vfb",
"updated": "20260917190844"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode"
}
]
},
{
"ID": "20220601085956-ckohzhm",
"Type": "NodeParagraph",
"Properties": {
"id": "20220601085956-ckohzhm",
"updated": "20220601090148"
},
"Children": [
{
"Type": "NodeText",
"Data": "使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode=dev"
},
{
"Type": "NodeText",
"Data": " 后将使用开发模式运行,使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--mode=prod"
},
{
"Type": "NodeText",
"Data": " 将使用生产模式运行,默认 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "prod"
},
{
"Type": "NodeText",
"Data": "。"
}
]
},
{
"ID": "20220601090153-w4lmqvd",
"Type": "NodeParagraph",
"Properties": {
"id": "20220601090153-w4lmqvd",
"updated": "20260917190844"
},
"Children": [
{
"Type": "NodeText",
"Data": "开发模式和生产模式的主要区别开发模式会使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "工作目录/appearance/"
},
{
"Type": "NodeText",
"Data": " 作为外观文件夹,而生产模式使用的是 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "工作空间/conf/appearance/"
},
{
"Type": "NodeText",
"Data": "。这里的外观文件夹保存内置资源;第三方主题和图标包统一使用工作空间/data/themes/ 和工作空间/data/icons/,不随运行模式改变。"
}
]
},
{
"ID": "20221025095421-rl06zab",
"Type": "NodeHeading",
"HeadingLevel": 3,
"Properties": {
"id": "20221025095421-rl06zab",
"updated": "20221025095440"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "--port"
},
{
"Type": "NodeText",
"Data": ""
}
]
},
{
"ID": "20221025095536-emwgpz0",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025095536-emwgpz0",
"updated": "20221025095536"
},
"Children": [
{
"Type": "NodeText",
"Data": "用于指定监听端口,不指定时:"
}
]
},
{
"ID": "20221025095536-5m5f1uu",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20221025095536-5m5f1uu",
"updated": "20221025095729"
},
"Children": [
{
"ID": "20221025095536-xq0w85y",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20221025095536-xq0w85y",
"updated": "20221025095536"
},
"Children": [
{
"ID": "20221025095536-zng5iv9",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025095536-zng5iv9",
"updated": "20221025095536"
},
"Children": [
{
"Type": "NodeText",
"Data": "桌面端使用随机端口"
}
]
}
]
},
{
"ID": "20221025095536-gpuhscm",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20221025095536-gpuhscm",
"updated": "20221025095729"
},
"Children": [
{
"ID": "20221025095536-76oy599",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025095536-76oy599",
"updated": "20221025095729"
},
"Children": [
{
"Type": "NodeText",
"Data": "Docker/移动端使用 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "6806"
},
{
"Type": "NodeText",
"Data": ""
}
]
}
]
}
]
}
]
}