fengming 0.3.9 → 0.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (763) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/{bundled-channel-config-schema-DpdKMATU.d.ts → bundled-channel-config-schema-Bte--ZlY.d.ts} +26 -26
  3. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  4. package/dist/cli-startup-metadata.json +8 -8
  5. package/dist/control-ui/assets/{activity-B2W-IeAT.js → activity-wgT0-JR0.js} +2 -2
  6. package/dist/control-ui/assets/{agents-mRUyNVCz.js → agents-DG5PobrT.js} +2 -2
  7. package/dist/control-ui/assets/{channels-8QHOqBnt.js → channels-CX28oM42.js} +2 -2
  8. package/dist/control-ui/assets/{cron-H3unP_mO.js → cron-B8ixwBqU.js} +2 -2
  9. package/dist/control-ui/assets/{debug-CxLsQ9vH.js → debug-CnkYZUXy.js} +2 -2
  10. package/dist/control-ui/assets/{index-jtIYT0Eh.js → index-DQRZJKbO.js} +4 -4
  11. package/dist/control-ui/assets/{instances-B1JQeCRb.js → instances-BE3mV1JC.js} +2 -2
  12. package/dist/control-ui/assets/{nodes-RGOmq_1l.js → nodes-Cou4PWRX.js} +2 -2
  13. package/dist/control-ui/assets/{sessions-C2O-Jgpg.js → sessions-DpAaBT21.js} +2 -2
  14. package/dist/control-ui/assets/{skills-jyJOYA4I.js → skills-DjA_j_20.js} +2 -2
  15. package/dist/control-ui/assets/{workboard-uM_kK8cQ.js → workboard-BFnvbS0k.js} +2 -2
  16. package/dist/control-ui/index.html +1 -1
  17. package/dist/control-ui/sw.js +1 -1
  18. package/dist/gateway/protocol/index.d.ts +1 -1
  19. package/dist/{index-DhOQs6M_.d.ts → index-DuDY3bCZ.d.ts} +45 -45
  20. package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
  21. package/dist/plugin-sdk/agent-config-primitives.d.ts +1 -1
  22. package/dist/plugin-sdk/{bundled-channel-config-schema-Dfn3b8sF.d.ts → bundled-channel-config-schema-BPFNnbwu.d.ts} +23 -23
  23. package/dist/plugin-sdk/bundled-channel-config-schema.d.ts +3 -3
  24. package/dist/plugin-sdk/channel-config-primitives.d.ts +2 -2
  25. package/dist/plugin-sdk/channel-config-schema-legacy.d.ts +3 -3
  26. package/dist/plugin-sdk/channel-config-schema.d.ts +2 -2
  27. package/dist/plugin-sdk/channel-core.d.ts +1 -1
  28. package/dist/plugin-sdk/channel-plugin-common.d.ts +1 -1
  29. package/dist/plugin-sdk/compat.d.ts +2 -2
  30. package/dist/plugin-sdk/{config-schema-DUddICQM.d.ts → config-schema-D7cABQ6o.d.ts} +1 -1
  31. package/dist/plugin-sdk/config-schema.d.ts +4 -4
  32. package/dist/plugin-sdk/core.d.ts +1 -1
  33. package/dist/plugin-sdk/discord.d.ts +2 -2
  34. package/dist/plugin-sdk/tts-runtime.d.ts +1 -1
  35. package/dist/plugin-sdk/{zod-schema.core-B4_b2R5K.d.ts → zod-schema.core-CwBNqcXp.d.ts} +1 -1
  36. package/dist/{zod-schema.core-Cuz0lz6m.d.ts → zod-schema.core-BGLctDlK.d.ts} +1 -1
  37. package/package.json +7 -412
  38. package/CHANGELOG.md +0 -38
  39. package/THIRD_PARTY_NOTICES.md +0 -37
  40. package/docs/.i18n/README.md +0 -81
  41. package/docs/.i18n/ar-navigation.json +0 -18
  42. package/docs/.i18n/de-navigation.json +0 -18
  43. package/docs/.i18n/es-navigation.json +0 -18
  44. package/docs/.i18n/fr-navigation.json +0 -18
  45. package/docs/.i18n/glossary.ar.json +0 -78
  46. package/docs/.i18n/glossary.de.json +0 -78
  47. package/docs/.i18n/glossary.es.json +0 -78
  48. package/docs/.i18n/glossary.fa.json +0 -78
  49. package/docs/.i18n/glossary.fr.json +0 -78
  50. package/docs/.i18n/glossary.id.json +0 -78
  51. package/docs/.i18n/glossary.it.json +0 -78
  52. package/docs/.i18n/glossary.ja-JP.json +0 -98
  53. package/docs/.i18n/glossary.ko.json +0 -78
  54. package/docs/.i18n/glossary.nl.json +0 -78
  55. package/docs/.i18n/glossary.pl.json +0 -78
  56. package/docs/.i18n/glossary.pt-BR.json +0 -78
  57. package/docs/.i18n/glossary.th.json +0 -78
  58. package/docs/.i18n/glossary.tr.json +0 -78
  59. package/docs/.i18n/glossary.uk.json +0 -78
  60. package/docs/.i18n/glossary.vi.json +0 -78
  61. package/docs/.i18n/glossary.zh-CN.json +0 -1122
  62. package/docs/.i18n/glossary.zh-TW.json +0 -78
  63. package/docs/.i18n/id-navigation.json +0 -18
  64. package/docs/.i18n/it-navigation.json +0 -18
  65. package/docs/.i18n/ja-navigation.json +0 -18
  66. package/docs/.i18n/ko-navigation.json +0 -18
  67. package/docs/.i18n/pl-navigation.json +0 -18
  68. package/docs/.i18n/pt-BR-navigation.json +0 -18
  69. package/docs/.i18n/tr-navigation.json +0 -18
  70. package/docs/.i18n/translation-workflow.md +0 -111
  71. package/docs/.i18n/zh-Hans-navigation.json +0 -552
  72. package/docs/AGENTS.md +0 -36
  73. package/docs/CLAUDE.md +0 -1
  74. package/docs/agent-runtime-architecture.md +0 -48
  75. package/docs/announcements/bluebubbles-imessage.md +0 -79
  76. package/docs/auth-credential-semantics.md +0 -124
  77. package/docs/automation/auth-monitoring.md +0 -11
  78. package/docs/automation/clawflow.md +0 -12
  79. package/docs/automation/cron-jobs.md +0 -534
  80. package/docs/automation/cron-vs-heartbeat.md +0 -11
  81. package/docs/automation/gmail-pubsub.md +0 -11
  82. package/docs/automation/hooks.md +0 -387
  83. package/docs/automation/index.md +0 -135
  84. package/docs/automation/poll.md +0 -12
  85. package/docs/automation/standing-orders.md +0 -250
  86. package/docs/automation/taskflow.md +0 -155
  87. package/docs/automation/tasks.md +0 -374
  88. package/docs/automation/troubleshooting.md +0 -12
  89. package/docs/automation/webhook.md +0 -12
  90. package/docs/brave-search.md +0 -11
  91. package/docs/channels/access-groups.md +0 -201
  92. package/docs/channels/ambient-room-events.md +0 -214
  93. package/docs/channels/bot-loop-protection.md +0 -131
  94. package/docs/channels/broadcast-groups.md +0 -472
  95. package/docs/channels/channel-routing.md +0 -162
  96. package/docs/channels/clickclack.md +0 -138
  97. package/docs/channels/discord.md +0 -1758
  98. package/docs/channels/feishu.md +0 -650
  99. package/docs/channels/googlechat.md +0 -284
  100. package/docs/channels/group-messages.md +0 -95
  101. package/docs/channels/groups.md +0 -524
  102. package/docs/channels/imessage-from-bluebubbles.md +0 -259
  103. package/docs/channels/imessage.md +0 -839
  104. package/docs/channels/index.md +0 -64
  105. package/docs/channels/irc.md +0 -253
  106. package/docs/channels/line.md +0 -243
  107. package/docs/channels/location.md +0 -71
  108. package/docs/channels/matrix-migration.md +0 -370
  109. package/docs/channels/matrix-presentation.md +0 -77
  110. package/docs/channels/matrix-push-rules.md +0 -150
  111. package/docs/channels/matrix.md +0 -921
  112. package/docs/channels/mattermost.md +0 -542
  113. package/docs/channels/msteams.md +0 -1096
  114. package/docs/channels/nextcloud-talk.md +0 -176
  115. package/docs/channels/nostr.md +0 -253
  116. package/docs/channels/pairing.md +0 -214
  117. package/docs/channels/qqbot.md +0 -314
  118. package/docs/channels/signal.md +0 -417
  119. package/docs/channels/slack.md +0 -1623
  120. package/docs/channels/synology-chat.md +0 -187
  121. package/docs/channels/telegram.md +0 -1124
  122. package/docs/channels/tlon.md +0 -296
  123. package/docs/channels/troubleshooting.md +0 -162
  124. package/docs/channels/twitch.md +0 -431
  125. package/docs/channels/wechat.md +0 -171
  126. package/docs/channels/whatsapp.md +0 -796
  127. package/docs/channels/yuanbao.md +0 -416
  128. package/docs/channels/zalo.md +0 -253
  129. package/docs/channels/zalouser.md +0 -217
  130. package/docs/ci.md +0 -657
  131. package/docs/clawhub/publishing.md +0 -96
  132. package/docs/cli/acp.md +0 -370
  133. package/docs/cli/agent.md +0 -109
  134. package/docs/cli/agents.md +0 -253
  135. package/docs/cli/approvals.md +0 -190
  136. package/docs/cli/backup.md +0 -98
  137. package/docs/cli/browser.md +0 -307
  138. package/docs/cli/channels.md +0 -154
  139. package/docs/cli/clawbot.md +0 -25
  140. package/docs/cli/commitments.md +0 -90
  141. package/docs/cli/completion.md +0 -39
  142. package/docs/cli/config.md +0 -504
  143. package/docs/cli/configure.md +0 -77
  144. package/docs/cli/crestodian.md +0 -337
  145. package/docs/cli/cron.md +0 -304
  146. package/docs/cli/daemon.md +0 -67
  147. package/docs/cli/dashboard.md +0 -33
  148. package/docs/cli/devices.md +0 -240
  149. package/docs/cli/directory.md +0 -68
  150. package/docs/cli/dns.md +0 -53
  151. package/docs/cli/docs.md +0 -63
  152. package/docs/cli/doctor.md +0 -241
  153. package/docs/cli/flows.md +0 -52
  154. package/docs/cli/gateway.md +0 -572
  155. package/docs/cli/health.md +0 -43
  156. package/docs/cli/hooks.md +0 -345
  157. package/docs/cli/index.md +0 -400
  158. package/docs/cli/infer.md +0 -364
  159. package/docs/cli/logs.md +0 -68
  160. package/docs/cli/mcp.md +0 -529
  161. package/docs/cli/memory.md +0 -183
  162. package/docs/cli/message.md +0 -317
  163. package/docs/cli/migrate.md +0 -334
  164. package/docs/cli/models.md +0 -239
  165. package/docs/cli/node.md +0 -177
  166. package/docs/cli/nodes.md +0 -76
  167. package/docs/cli/onboard.md +0 -250
  168. package/docs/cli/pairing.md +0 -77
  169. package/docs/cli/path.md +0 -511
  170. package/docs/cli/plugins.md +0 -459
  171. package/docs/cli/policy.md +0 -886
  172. package/docs/cli/proxy.md +0 -89
  173. package/docs/cli/qr.md +0 -56
  174. package/docs/cli/reset.md +0 -39
  175. package/docs/cli/sandbox.md +0 -208
  176. package/docs/cli/secrets.md +0 -202
  177. package/docs/cli/security.md +0 -136
  178. package/docs/cli/sessions.md +0 -164
  179. package/docs/cli/setup.md +0 -59
  180. package/docs/cli/skills.md +0 -122
  181. package/docs/cli/status.md +0 -45
  182. package/docs/cli/system.md +0 -89
  183. package/docs/cli/tasks.md +0 -111
  184. package/docs/cli/transcripts.md +0 -151
  185. package/docs/cli/tui.md +0 -91
  186. package/docs/cli/uninstall.md +0 -44
  187. package/docs/cli/update.md +0 -243
  188. package/docs/cli/voicecall.md +0 -204
  189. package/docs/cli/webhooks.md +0 -117
  190. package/docs/cli/wiki.md +0 -256
  191. package/docs/concepts/active-memory.md +0 -856
  192. package/docs/concepts/agent-loop.md +0 -185
  193. package/docs/concepts/agent-runtimes.md +0 -276
  194. package/docs/concepts/agent-workspace.md +0 -230
  195. package/docs/concepts/agent.md +0 -140
  196. package/docs/concepts/architecture.md +0 -154
  197. package/docs/concepts/channel-docking.md +0 -145
  198. package/docs/concepts/commitments.md +0 -150
  199. package/docs/concepts/compaction.md +0 -203
  200. package/docs/concepts/context-engine.md +0 -347
  201. package/docs/concepts/context.md +0 -199
  202. package/docs/concepts/delegate-architecture.md +0 -319
  203. package/docs/concepts/dreaming.md +0 -264
  204. package/docs/concepts/experimental-features.md +0 -109
  205. package/docs/concepts/features.md +0 -91
  206. package/docs/concepts/fengming-sdk.md +0 -323
  207. package/docs/concepts/mantis-slack-desktop-runbook.md +0 -231
  208. package/docs/concepts/mantis.md +0 -744
  209. package/docs/concepts/markdown-formatting.md +0 -139
  210. package/docs/concepts/memory-builtin.md +0 -148
  211. package/docs/concepts/memory-honcho.md +0 -144
  212. package/docs/concepts/memory-qmd.md +0 -271
  213. package/docs/concepts/memory-search.md +0 -167
  214. package/docs/concepts/memory.md +0 -299
  215. package/docs/concepts/message-lifecycle-refactor.md +0 -1126
  216. package/docs/concepts/messages.md +0 -214
  217. package/docs/concepts/model-failover.md +0 -384
  218. package/docs/concepts/model-providers.md +0 -719
  219. package/docs/concepts/models.md +0 -371
  220. package/docs/concepts/multi-agent.md +0 -625
  221. package/docs/concepts/oauth.md +0 -198
  222. package/docs/concepts/parallel-specialist-lanes.md +0 -127
  223. package/docs/concepts/personal-agent-benchmark-pack.md +0 -74
  224. package/docs/concepts/presence.md +0 -117
  225. package/docs/concepts/progress-drafts.md +0 -406
  226. package/docs/concepts/qa-e2e-automation.md +0 -947
  227. package/docs/concepts/qa-matrix.md +0 -139
  228. package/docs/concepts/queue-steering.md +0 -90
  229. package/docs/concepts/queue.md +0 -136
  230. package/docs/concepts/retry.md +0 -86
  231. package/docs/concepts/session-pruning.md +0 -104
  232. package/docs/concepts/session-tool.md +0 -188
  233. package/docs/concepts/session.md +0 -164
  234. package/docs/concepts/soul.md +0 -116
  235. package/docs/concepts/streaming.md +0 -257
  236. package/docs/concepts/system-prompt.md +0 -328
  237. package/docs/concepts/timezone.md +0 -47
  238. package/docs/concepts/typebox.md +0 -309
  239. package/docs/concepts/typing-indicators.md +0 -88
  240. package/docs/concepts/usage-tracking.md +0 -66
  241. package/docs/date-time.md +0 -126
  242. package/docs/debug/node-issue.md +0 -90
  243. package/docs/diagnostics/flags.md +0 -182
  244. package/docs/docs.json +0 -1862
  245. package/docs/fengming-agent-runtime.md +0 -82
  246. package/docs/gateway/authentication.md +0 -256
  247. package/docs/gateway/background-process.md +0 -147
  248. package/docs/gateway/bonjour.md +0 -303
  249. package/docs/gateway/bridge-protocol.md +0 -97
  250. package/docs/gateway/cli-backends.md +0 -439
  251. package/docs/gateway/config-agents.md +0 -1525
  252. package/docs/gateway/config-channels.md +0 -945
  253. package/docs/gateway/config-tools.md +0 -774
  254. package/docs/gateway/configuration-examples.md +0 -704
  255. package/docs/gateway/configuration-reference.md +0 -1391
  256. package/docs/gateway/configuration.md +0 -739
  257. package/docs/gateway/diagnostics.md +0 -213
  258. package/docs/gateway/discovery.md +0 -154
  259. package/docs/gateway/doctor.md +0 -575
  260. package/docs/gateway/gateway-lock.md +0 -37
  261. package/docs/gateway/health.md +0 -73
  262. package/docs/gateway/heartbeat.md +0 -498
  263. package/docs/gateway/index.md +0 -383
  264. package/docs/gateway/local-model-services.md +0 -205
  265. package/docs/gateway/local-models.md +0 -355
  266. package/docs/gateway/logging.md +0 -149
  267. package/docs/gateway/multiple-gateways.md +0 -178
  268. package/docs/gateway/network-model.md +0 -15
  269. package/docs/gateway/openai-http-api.md +0 -378
  270. package/docs/gateway/openresponses-http-api.md +0 -347
  271. package/docs/gateway/openshell.md +0 -316
  272. package/docs/gateway/opentelemetry.md +0 -433
  273. package/docs/gateway/operator-scopes.md +0 -119
  274. package/docs/gateway/pairing.md +0 -207
  275. package/docs/gateway/prometheus.md +0 -249
  276. package/docs/gateway/protocol.md +0 -826
  277. package/docs/gateway/remote-gateway-readme.md +0 -169
  278. package/docs/gateway/remote.md +0 -280
  279. package/docs/gateway/sandbox-vs-tool-policy-vs-elevated.md +0 -148
  280. package/docs/gateway/sandboxing.md +0 -546
  281. package/docs/gateway/secrets-plan-contract.md +0 -159
  282. package/docs/gateway/secrets.md +0 -805
  283. package/docs/gateway/security/audit-checks.md +0 -127
  284. package/docs/gateway/security/exposure-runbook.md +0 -212
  285. package/docs/gateway/security/index.md +0 -1343
  286. package/docs/gateway/security/secure-file-operations.md +0 -76
  287. package/docs/gateway/security/shrinkwrap.md +0 -111
  288. package/docs/gateway/tailscale.md +0 -156
  289. package/docs/gateway/tools-invoke-http-api.md +0 -169
  290. package/docs/gateway/troubleshooting.md +0 -877
  291. package/docs/gateway/trusted-proxy-auth.md +0 -483
  292. package/docs/help/debugging.md +0 -341
  293. package/docs/help/environment.md +0 -233
  294. package/docs/help/faq-first-run.md +0 -870
  295. package/docs/help/faq-models.md +0 -556
  296. package/docs/help/faq.md +0 -2041
  297. package/docs/help/index.md +0 -39
  298. package/docs/help/scripts.md +0 -56
  299. package/docs/help/testing-live.md +0 -587
  300. package/docs/help/testing-updates-plugins.md +0 -299
  301. package/docs/help/testing.md +0 -977
  302. package/docs/help/troubleshooting.md +0 -449
  303. package/docs/index.md +0 -196
  304. package/docs/install/ansible.md +0 -233
  305. package/docs/install/azure.md +0 -315
  306. package/docs/install/bun.md +0 -59
  307. package/docs/install/clawdock.md +0 -112
  308. package/docs/install/development-channels.md +0 -148
  309. package/docs/install/digitalocean.md +0 -174
  310. package/docs/install/docker-vm-runtime.md +0 -154
  311. package/docs/install/docker.md +0 -564
  312. package/docs/install/exe-dev.md +0 -201
  313. package/docs/install/fly.md +0 -524
  314. package/docs/install/gcp.md +0 -418
  315. package/docs/install/hetzner.md +0 -285
  316. package/docs/install/hostinger.md +0 -98
  317. package/docs/install/index.md +0 -232
  318. package/docs/install/installer.md +0 -447
  319. package/docs/install/kubernetes.md +0 -196
  320. package/docs/install/macos-vm.md +0 -281
  321. package/docs/install/migrating-claude.md +0 -165
  322. package/docs/install/migrating-hermes.md +0 -178
  323. package/docs/install/migrating.md +0 -137
  324. package/docs/install/nix.md +0 -112
  325. package/docs/install/node.md +0 -142
  326. package/docs/install/northflank.mdx +0 -44
  327. package/docs/install/oracle.md +0 -218
  328. package/docs/install/podman.md +0 -216
  329. package/docs/install/railway.mdx +0 -92
  330. package/docs/install/raspberry-pi.md +0 -234
  331. package/docs/install/render.mdx +0 -167
  332. package/docs/install/uninstall.md +0 -131
  333. package/docs/install/updating.md +0 -284
  334. package/docs/install/upstash.md +0 -96
  335. package/docs/logging.md +0 -320
  336. package/docs/nav-tabs-underline.js +0 -100
  337. package/docs/network.md +0 -72
  338. package/docs/nodes/audio.md +0 -216
  339. package/docs/nodes/camera.md +0 -166
  340. package/docs/nodes/images.md +0 -77
  341. package/docs/nodes/index.md +0 -439
  342. package/docs/nodes/location-command.md +0 -102
  343. package/docs/nodes/media-understanding.md +0 -495
  344. package/docs/nodes/talk.md +0 -160
  345. package/docs/nodes/troubleshooting.md +0 -123
  346. package/docs/nodes/voicewake.md +0 -93
  347. package/docs/perplexity.md +0 -11
  348. package/docs/plan/codex-context-engine-harness.md +0 -624
  349. package/docs/plan/ui-channels.md +0 -284
  350. package/docs/platforms/digitalocean.md +0 -12
  351. package/docs/platforms/easyrunner.md +0 -109
  352. package/docs/platforms/index.md +0 -51
  353. package/docs/platforms/linux.md +0 -141
  354. package/docs/platforms/mac/bundled-gateway.md +0 -79
  355. package/docs/platforms/mac/canvas.md +0 -128
  356. package/docs/platforms/mac/child-process.md +0 -72
  357. package/docs/platforms/mac/dev-setup.md +0 -112
  358. package/docs/platforms/mac/health.md +0 -39
  359. package/docs/platforms/mac/icon.md +0 -36
  360. package/docs/platforms/mac/logging.md +0 -62
  361. package/docs/platforms/mac/menu-bar.md +0 -93
  362. package/docs/platforms/mac/peekaboo.md +0 -96
  363. package/docs/platforms/mac/permissions.md +0 -73
  364. package/docs/platforms/mac/remote.md +0 -123
  365. package/docs/platforms/mac/signing.md +0 -52
  366. package/docs/platforms/mac/skills.md +0 -43
  367. package/docs/platforms/mac/voice-overlay.md +0 -66
  368. package/docs/platforms/mac/voicewake.md +0 -73
  369. package/docs/platforms/mac/webchat.md +0 -54
  370. package/docs/platforms/mac/xpc.md +0 -66
  371. package/docs/platforms/oracle.md +0 -12
  372. package/docs/platforms/raspberry-pi.md +0 -13
  373. package/docs/platforms/windows.md +0 -286
  374. package/docs/plugins/adding-capabilities.md +0 -146
  375. package/docs/plugins/admin-http-rpc.md +0 -216
  376. package/docs/plugins/agent-tools.md +0 -13
  377. package/docs/plugins/architecture-internals.md +0 -1196
  378. package/docs/plugins/architecture.md +0 -483
  379. package/docs/plugins/building-extensions.md +0 -13
  380. package/docs/plugins/building-plugins.md +0 -335
  381. package/docs/plugins/bundles.md +0 -310
  382. package/docs/plugins/cli-backend-plugins.md +0 -310
  383. package/docs/plugins/codex-computer-use.md +0 -297
  384. package/docs/plugins/codex-harness-reference.md +0 -470
  385. package/docs/plugins/codex-harness-runtime.md +0 -268
  386. package/docs/plugins/codex-harness.md +0 -780
  387. package/docs/plugins/codex-native-plugins.md +0 -276
  388. package/docs/plugins/community.md +0 -77
  389. package/docs/plugins/compatibility.md +0 -167
  390. package/docs/plugins/copilot.md +0 -356
  391. package/docs/plugins/dependency-resolution.md +0 -176
  392. package/docs/plugins/google-meet.md +0 -1737
  393. package/docs/plugins/hooks.md +0 -484
  394. package/docs/plugins/install-overrides.md +0 -80
  395. package/docs/plugins/manage-plugins.md +0 -210
  396. package/docs/plugins/manifest.md +0 -1457
  397. package/docs/plugins/memory-lancedb.md +0 -385
  398. package/docs/plugins/memory-wiki.md +0 -529
  399. package/docs/plugins/message-presentation.md +0 -473
  400. package/docs/plugins/oc-path.md +0 -166
  401. package/docs/plugins/plugin-inventory.md +0 -189
  402. package/docs/plugins/plugin-permission-requests.md +0 -193
  403. package/docs/plugins/reference/acpx.md +0 -23
  404. package/docs/plugins/reference/admin-http-rpc.md +0 -23
  405. package/docs/plugins/reference/alibaba.md +0 -23
  406. package/docs/plugins/reference/amazon-bedrock-mantle.md +0 -23
  407. package/docs/plugins/reference/amazon-bedrock.md +0 -23
  408. package/docs/plugins/reference/anthropic-vertex.md +0 -19
  409. package/docs/plugins/reference/anthropic.md +0 -23
  410. package/docs/plugins/reference/arcee.md +0 -23
  411. package/docs/plugins/reference/azure-speech.md +0 -23
  412. package/docs/plugins/reference/bonjour.md +0 -19
  413. package/docs/plugins/reference/brave.md +0 -23
  414. package/docs/plugins/reference/browser.md +0 -23
  415. package/docs/plugins/reference/byteplus.md +0 -19
  416. package/docs/plugins/reference/canvas.md +0 -19
  417. package/docs/plugins/reference/cerebras.md +0 -23
  418. package/docs/plugins/reference/chutes.md +0 -23
  419. package/docs/plugins/reference/clickclack.md +0 -23
  420. package/docs/plugins/reference/cloudflare-ai-gateway.md +0 -23
  421. package/docs/plugins/reference/codex-supervisor.md +0 -27
  422. package/docs/plugins/reference/codex.md +0 -23
  423. package/docs/plugins/reference/comfy.md +0 -23
  424. package/docs/plugins/reference/copilot-proxy.md +0 -19
  425. package/docs/plugins/reference/copilot.md +0 -23
  426. package/docs/plugins/reference/deepgram.md +0 -23
  427. package/docs/plugins/reference/deepinfra.md +0 -23
  428. package/docs/plugins/reference/deepseek.md +0 -23
  429. package/docs/plugins/reference/diagnostics-otel.md +0 -19
  430. package/docs/plugins/reference/diagnostics-prometheus.md +0 -19
  431. package/docs/plugins/reference/diffs-language-pack.md +0 -19
  432. package/docs/plugins/reference/diffs.md +0 -19
  433. package/docs/plugins/reference/discord.md +0 -23
  434. package/docs/plugins/reference/document-extract.md +0 -23
  435. package/docs/plugins/reference/duckduckgo.md +0 -23
  436. package/docs/plugins/reference/elevenlabs.md +0 -23
  437. package/docs/plugins/reference/exa.md +0 -23
  438. package/docs/plugins/reference/fal.md +0 -23
  439. package/docs/plugins/reference/feishu.md +0 -23
  440. package/docs/plugins/reference/file-transfer.md +0 -19
  441. package/docs/plugins/reference/firecrawl.md +0 -23
  442. package/docs/plugins/reference/fireworks.md +0 -23
  443. package/docs/plugins/reference/github-copilot.md +0 -23
  444. package/docs/plugins/reference/gmi.md +0 -23
  445. package/docs/plugins/reference/google-meet.md +0 -23
  446. package/docs/plugins/reference/google.md +0 -23
  447. package/docs/plugins/reference/googlechat.md +0 -23
  448. package/docs/plugins/reference/gradium.md +0 -23
  449. package/docs/plugins/reference/groq.md +0 -23
  450. package/docs/plugins/reference/huggingface.md +0 -23
  451. package/docs/plugins/reference/imessage.md +0 -23
  452. package/docs/plugins/reference/inworld.md +0 -23
  453. package/docs/plugins/reference/irc.md +0 -23
  454. package/docs/plugins/reference/kilocode.md +0 -23
  455. package/docs/plugins/reference/kimi.md +0 -23
  456. package/docs/plugins/reference/line.md +0 -23
  457. package/docs/plugins/reference/litellm.md +0 -23
  458. package/docs/plugins/reference/llm-task.md +0 -19
  459. package/docs/plugins/reference/lmstudio.md +0 -23
  460. package/docs/plugins/reference/lobster.md +0 -19
  461. package/docs/plugins/reference/matrix.md +0 -23
  462. package/docs/plugins/reference/mattermost.md +0 -23
  463. package/docs/plugins/reference/memory-core.md +0 -19
  464. package/docs/plugins/reference/memory-lancedb.md +0 -23
  465. package/docs/plugins/reference/memory-wiki.md +0 -23
  466. package/docs/plugins/reference/microsoft-foundry.md +0 -19
  467. package/docs/plugins/reference/microsoft.md +0 -19
  468. package/docs/plugins/reference/migrate-claude.md +0 -19
  469. package/docs/plugins/reference/migrate-hermes.md +0 -19
  470. package/docs/plugins/reference/minimax.md +0 -23
  471. package/docs/plugins/reference/mistral.md +0 -23
  472. package/docs/plugins/reference/moonshot.md +0 -23
  473. package/docs/plugins/reference/msteams.md +0 -23
  474. package/docs/plugins/reference/nextcloud-talk.md +0 -23
  475. package/docs/plugins/reference/nostr.md +0 -23
  476. package/docs/plugins/reference/novita.md +0 -23
  477. package/docs/plugins/reference/nvidia.md +0 -23
  478. package/docs/plugins/reference/oc-path.md +0 -23
  479. package/docs/plugins/reference/ollama.md +0 -23
  480. package/docs/plugins/reference/open-prose.md +0 -19
  481. package/docs/plugins/reference/openai.md +0 -23
  482. package/docs/plugins/reference/opencode-go.md +0 -23
  483. package/docs/plugins/reference/opencode.md +0 -23
  484. package/docs/plugins/reference/openrouter.md +0 -23
  485. package/docs/plugins/reference/openshell.md +0 -19
  486. package/docs/plugins/reference/perplexity.md +0 -23
  487. package/docs/plugins/reference/pixverse.md +0 -23
  488. package/docs/plugins/reference/policy.md +0 -72
  489. package/docs/plugins/reference/qa-channel.md +0 -23
  490. package/docs/plugins/reference/qa-lab.md +0 -19
  491. package/docs/plugins/reference/qa-matrix.md +0 -19
  492. package/docs/plugins/reference/qianfan.md +0 -23
  493. package/docs/plugins/reference/qqbot.md +0 -23
  494. package/docs/plugins/reference/qwen.md +0 -23
  495. package/docs/plugins/reference/runway.md +0 -23
  496. package/docs/plugins/reference/searxng.md +0 -19
  497. package/docs/plugins/reference/senseaudio.md +0 -23
  498. package/docs/plugins/reference/sglang.md +0 -23
  499. package/docs/plugins/reference/signal.md +0 -23
  500. package/docs/plugins/reference/skill-workshop.md +0 -23
  501. package/docs/plugins/reference/slack.md +0 -23
  502. package/docs/plugins/reference/stepfun.md +0 -23
  503. package/docs/plugins/reference/synology-chat.md +0 -23
  504. package/docs/plugins/reference/synthetic.md +0 -23
  505. package/docs/plugins/reference/tavily.md +0 -23
  506. package/docs/plugins/reference/telegram.md +0 -23
  507. package/docs/plugins/reference/tencent.md +0 -23
  508. package/docs/plugins/reference/tlon.md +0 -23
  509. package/docs/plugins/reference/together.md +0 -23
  510. package/docs/plugins/reference/tokenjuice.md +0 -23
  511. package/docs/plugins/reference/tts-local-cli.md +0 -19
  512. package/docs/plugins/reference/twitch.md +0 -23
  513. package/docs/plugins/reference/venice.md +0 -23
  514. package/docs/plugins/reference/vercel-ai-gateway.md +0 -23
  515. package/docs/plugins/reference/vllm.md +0 -23
  516. package/docs/plugins/reference/voice-call.md +0 -23
  517. package/docs/plugins/reference/volcengine.md +0 -23
  518. package/docs/plugins/reference/voyage.md +0 -19
  519. package/docs/plugins/reference/vydra.md +0 -23
  520. package/docs/plugins/reference/web-readability.md +0 -19
  521. package/docs/plugins/reference/webhooks.md +0 -23
  522. package/docs/plugins/reference/whatsapp.md +0 -23
  523. package/docs/plugins/reference/workboard.md +0 -23
  524. package/docs/plugins/reference/xai.md +0 -23
  525. package/docs/plugins/reference/xiaomi.md +0 -23
  526. package/docs/plugins/reference/zai.md +0 -23
  527. package/docs/plugins/reference/zalo.md +0 -23
  528. package/docs/plugins/reference/zalouser.md +0 -24
  529. package/docs/plugins/reference.md +0 -145
  530. package/docs/plugins/sdk-agent-harness.md +0 -338
  531. package/docs/plugins/sdk-channel-inbound.md +0 -70
  532. package/docs/plugins/sdk-channel-ingress.md +0 -137
  533. package/docs/plugins/sdk-channel-message.md +0 -18
  534. package/docs/plugins/sdk-channel-outbound.md +0 -113
  535. package/docs/plugins/sdk-channel-plugins.md +0 -765
  536. package/docs/plugins/sdk-channel-turn.md +0 -9
  537. package/docs/plugins/sdk-entrypoints.md +0 -344
  538. package/docs/plugins/sdk-migration.md +0 -979
  539. package/docs/plugins/sdk-overview.md +0 -511
  540. package/docs/plugins/sdk-provider-plugins.md +0 -846
  541. package/docs/plugins/sdk-runtime.md +0 -676
  542. package/docs/plugins/sdk-setup.md +0 -550
  543. package/docs/plugins/sdk-subpaths.md +0 -391
  544. package/docs/plugins/sdk-testing.md +0 -403
  545. package/docs/plugins/skill-workshop.md +0 -713
  546. package/docs/plugins/tool-plugins.md +0 -411
  547. package/docs/plugins/voice-call.md +0 -942
  548. package/docs/plugins/webhooks.md +0 -192
  549. package/docs/plugins/workboard.md +0 -252
  550. package/docs/plugins/zalouser.md +0 -86
  551. package/docs/prose.md +0 -137
  552. package/docs/providers/alibaba.md +0 -158
  553. package/docs/providers/anthropic.md +0 -381
  554. package/docs/providers/arcee.md +0 -144
  555. package/docs/providers/azure-speech.md +0 -119
  556. package/docs/providers/bedrock-mantle.md +0 -211
  557. package/docs/providers/bedrock.md +0 -414
  558. package/docs/providers/cerebras.md +0 -130
  559. package/docs/providers/chutes.md +0 -153
  560. package/docs/providers/claude-max-api-proxy.md +0 -191
  561. package/docs/providers/cloudflare-ai-gateway.md +0 -119
  562. package/docs/providers/comfy.md +0 -362
  563. package/docs/providers/deepgram.md +0 -184
  564. package/docs/providers/deepinfra.md +0 -92
  565. package/docs/providers/deepseek.md +0 -146
  566. package/docs/providers/ds4.md +0 -309
  567. package/docs/providers/elevenlabs.md +0 -130
  568. package/docs/providers/fal.md +0 -240
  569. package/docs/providers/fireworks.md +0 -144
  570. package/docs/providers/github-copilot.md +0 -257
  571. package/docs/providers/gmi.md +0 -92
  572. package/docs/providers/google.md +0 -472
  573. package/docs/providers/gradium.md +0 -123
  574. package/docs/providers/groq.md +0 -171
  575. package/docs/providers/huggingface.md +0 -235
  576. package/docs/providers/index.md +0 -105
  577. package/docs/providers/inferrs.md +0 -272
  578. package/docs/providers/inworld.md +0 -120
  579. package/docs/providers/kilocode.md +0 -135
  580. package/docs/providers/litellm.md +0 -234
  581. package/docs/providers/lmstudio.md +0 -224
  582. package/docs/providers/minimax.md +0 -505
  583. package/docs/providers/mistral.md +0 -235
  584. package/docs/providers/models.md +0 -64
  585. package/docs/providers/moonshot.md +0 -413
  586. package/docs/providers/novita.md +0 -92
  587. package/docs/providers/nvidia.md +0 -158
  588. package/docs/providers/ollama-cloud.md +0 -115
  589. package/docs/providers/ollama.md +0 -1225
  590. package/docs/providers/openai.md +0 -1093
  591. package/docs/providers/opencode-go.md +0 -123
  592. package/docs/providers/opencode.md +0 -149
  593. package/docs/providers/openrouter.md +0 -349
  594. package/docs/providers/perplexity-provider.md +0 -123
  595. package/docs/providers/pixverse.md +0 -165
  596. package/docs/providers/qianfan.md +0 -132
  597. package/docs/providers/qwen-oauth.md +0 -115
  598. package/docs/providers/qwen.md +0 -364
  599. package/docs/providers/runway.md +0 -103
  600. package/docs/providers/senseaudio.md +0 -68
  601. package/docs/providers/sglang.md +0 -161
  602. package/docs/providers/stepfun.md +0 -229
  603. package/docs/providers/synthetic.md +0 -154
  604. package/docs/providers/tencent.md +0 -130
  605. package/docs/providers/together.md +0 -140
  606. package/docs/providers/venice.md +0 -312
  607. package/docs/providers/vercel-ai-gateway.md +0 -128
  608. package/docs/providers/vllm.md +0 -407
  609. package/docs/providers/volcengine.md +0 -199
  610. package/docs/providers/vydra.md +0 -180
  611. package/docs/providers/xai.md +0 -571
  612. package/docs/providers/xiaomi.md +0 -262
  613. package/docs/providers/zai.md +0 -224
  614. package/docs/refactor/access.md +0 -9
  615. package/docs/refactor/acp.md +0 -298
  616. package/docs/refactor/canvas.md +0 -131
  617. package/docs/refactor/database-first.md +0 -2256
  618. package/docs/refactor/ingress-core.md +0 -341
  619. package/docs/reference/AGENTS.default.md +0 -131
  620. package/docs/reference/RELEASING.md +0 -799
  621. package/docs/reference/api-usage-costs.md +0 -208
  622. package/docs/reference/application-modernization-plan.md +0 -208
  623. package/docs/reference/code-mode.md +0 -773
  624. package/docs/reference/credits.md +0 -33
  625. package/docs/reference/device-models.md +0 -50
  626. package/docs/reference/fengming-sdk-api-design.md +0 -390
  627. package/docs/reference/full-release-validation.md +0 -202
  628. package/docs/reference/memory-config.md +0 -604
  629. package/docs/reference/prompt-caching.md +0 -358
  630. package/docs/reference/release-performance-sweep.md +0 -360
  631. package/docs/reference/rich-output-protocol.md +0 -101
  632. package/docs/reference/rpc.md +0 -43
  633. package/docs/reference/secret-placeholder-conventions.md +0 -33
  634. package/docs/reference/secretref-credential-surface.md +0 -159
  635. package/docs/reference/secretref-user-supplied-credentials-matrix.json +0 -663
  636. package/docs/reference/session-management-compaction.md +0 -474
  637. package/docs/reference/templates/AGENTS.dev.md +0 -90
  638. package/docs/reference/templates/AGENTS.md +0 -227
  639. package/docs/reference/templates/BOOT.md +0 -16
  640. package/docs/reference/templates/BOOTSTRAP.md +0 -66
  641. package/docs/reference/templates/CLAUDE.md +0 -1
  642. package/docs/reference/templates/HEARTBEAT.md +0 -24
  643. package/docs/reference/templates/IDENTITY.dev.md +0 -52
  644. package/docs/reference/templates/IDENTITY.md +0 -34
  645. package/docs/reference/templates/SOUL.dev.md +0 -82
  646. package/docs/reference/templates/SOUL.md +0 -49
  647. package/docs/reference/templates/TOOLS.dev.md +0 -29
  648. package/docs/reference/templates/TOOLS.md +0 -51
  649. package/docs/reference/templates/USER.dev.md +0 -23
  650. package/docs/reference/templates/USER.md +0 -28
  651. package/docs/reference/test.md +0 -247
  652. package/docs/reference/token-use.md +0 -246
  653. package/docs/reference/transcript-hygiene.md +0 -214
  654. package/docs/reference/wizard.md +0 -252
  655. package/docs/security/CONTRIBUTING-THREAT-MODEL.md +0 -101
  656. package/docs/security/THREAT-MODEL-ATLAS.md +0 -611
  657. package/docs/security/formal-verification.md +0 -170
  658. package/docs/security/incident-response.md +0 -59
  659. package/docs/security/network-proxy.md +0 -268
  660. package/docs/snippets/plugin-publish/minimal-fengming.plugin.json +0 -12
  661. package/docs/snippets/plugin-publish/minimal-package.json +0 -16
  662. package/docs/specs/claw-supervisor.md +0 -247
  663. package/docs/start/bootstrapping.md +0 -49
  664. package/docs/start/docs-directory.md +0 -69
  665. package/docs/start/fengming.md +0 -252
  666. package/docs/start/getting-started.md +0 -152
  667. package/docs/start/hubs.md +0 -201
  668. package/docs/start/lore.md +0 -223
  669. package/docs/start/onboarding-overview.md +0 -72
  670. package/docs/start/onboarding.md +0 -98
  671. package/docs/start/quickstart.md +0 -25
  672. package/docs/start/setup.md +0 -178
  673. package/docs/start/showcase.md +0 -363
  674. package/docs/start/wizard-cli-automation.md +0 -232
  675. package/docs/start/wizard-cli-reference.md +0 -331
  676. package/docs/start/wizard.md +0 -141
  677. package/docs/style.css +0 -137
  678. package/docs/superpowers/specs/2026-04-22-tweakcn-custom-theme-import-design.md +0 -316
  679. package/docs/tools/acp-agents-setup.md +0 -351
  680. package/docs/tools/acp-agents.md +0 -854
  681. package/docs/tools/agent-send.md +0 -130
  682. package/docs/tools/apply-patch.md +0 -64
  683. package/docs/tools/brave-search.md +0 -139
  684. package/docs/tools/browser-control.md +0 -391
  685. package/docs/tools/browser-linux-troubleshooting.md +0 -173
  686. package/docs/tools/browser-login.md +0 -77
  687. package/docs/tools/browser-wsl2-windows-remote-cdp-troubleshooting.md +0 -219
  688. package/docs/tools/browser.md +0 -810
  689. package/docs/tools/btw.md +0 -159
  690. package/docs/tools/capability-cookbook.md +0 -12
  691. package/docs/tools/clawhub.md +0 -5
  692. package/docs/tools/code-execution.md +0 -173
  693. package/docs/tools/creating-skills.md +0 -158
  694. package/docs/tools/diffs.md +0 -525
  695. package/docs/tools/duckduckgo-search.md +0 -109
  696. package/docs/tools/elevated.md +0 -128
  697. package/docs/tools/exa-search.md +0 -152
  698. package/docs/tools/exec-approvals-advanced.md +0 -444
  699. package/docs/tools/exec-approvals.md +0 -494
  700. package/docs/tools/exec.md +0 -285
  701. package/docs/tools/firecrawl.md +0 -155
  702. package/docs/tools/gemini-search.md +0 -114
  703. package/docs/tools/goal.md +0 -217
  704. package/docs/tools/grok-search.md +0 -129
  705. package/docs/tools/image-generation.md +0 -493
  706. package/docs/tools/index.md +0 -178
  707. package/docs/tools/kimi-search.md +0 -105
  708. package/docs/tools/llm-task.md +0 -137
  709. package/docs/tools/lobster.md +0 -365
  710. package/docs/tools/loop-detection.md +0 -154
  711. package/docs/tools/media-overview.md +0 -160
  712. package/docs/tools/minimax-search.md +0 -102
  713. package/docs/tools/multi-agent-sandbox-tools.md +0 -409
  714. package/docs/tools/music-generation.md +0 -372
  715. package/docs/tools/ollama-search.md +0 -153
  716. package/docs/tools/pdf.md +0 -213
  717. package/docs/tools/perplexity-search.md +0 -220
  718. package/docs/tools/plugin.md +0 -363
  719. package/docs/tools/reactions.md +0 -100
  720. package/docs/tools/searxng-search.md +0 -141
  721. package/docs/tools/skills-config.md +0 -195
  722. package/docs/tools/skills.md +0 -569
  723. package/docs/tools/slash-commands.md +0 -487
  724. package/docs/tools/steer.md +0 -77
  725. package/docs/tools/subagents.md +0 -651
  726. package/docs/tools/tavily.md +0 -162
  727. package/docs/tools/thinking.md +0 -142
  728. package/docs/tools/tokenjuice.md +0 -84
  729. package/docs/tools/tool-search.md +0 -269
  730. package/docs/tools/trajectory.md +0 -229
  731. package/docs/tools/tts.md +0 -1009
  732. package/docs/tools/video-generation.md +0 -555
  733. package/docs/tools/web-fetch.md +0 -210
  734. package/docs/tools/web.md +0 -461
  735. package/docs/tts.md +0 -11
  736. package/docs/vps.md +0 -139
  737. package/docs/web/control-ui.md +0 -512
  738. package/docs/web/dashboard.md +0 -107
  739. package/docs/web/index.md +0 -133
  740. package/docs/web/tui.md +0 -250
  741. package/docs/web/webchat.md +0 -102
  742. package/npm-shrinkwrap.json +0 -12861
  743. package/patches/.gitkeep +0 -0
  744. package/patches/@agentclientprotocol__claude-agent-acp@0.37.0.patch +0 -41
  745. package/pnpm-workspace.yaml +0 -120
  746. package/scripts/crabbox-wrapper.mjs +0 -2004
  747. package/scripts/lib/official-external-channel-catalog.json +0 -560
  748. package/scripts/lib/official-external-plugin-catalog.json +0 -264
  749. package/scripts/lib/official-external-provider-catalog.json +0 -158
  750. package/scripts/lib/package-dist-imports.mjs +0 -171
  751. package/scripts/npm-runner.mjs +0 -91
  752. package/scripts/postinstall-bundled-plugins.mjs +0 -978
  753. package/scripts/preinstall-package-manager-warning.mjs +0 -64
  754. package/scripts/prepare-git-hooks.mjs +0 -72
  755. package/scripts/windows-cmd-helpers.mjs +0 -22
  756. package/skills/batch/SKILL.md +0 -118
  757. package/skills/code-review/SKILL.md +0 -107
  758. package/skills/debug/SKILL.md +0 -83
  759. package/skills/loop/SKILL.md +0 -118
  760. package/skills/run/SKILL.md +0 -79
  761. package/skills/run-skill-generator/SKILL.md +0 -179
  762. package/skills/verify/SKILL.md +0 -103
  763. package/src/agents/templates/HEARTBEAT.md +0 -3
@@ -1,1391 +0,0 @@
1
- ---
2
- summary: "Gateway config reference for core FengMing keys, defaults, and links to dedicated subsystem references"
3
- title: "Configuration reference"
4
- read_when:
5
- - You need exact field-level config semantics or defaults
6
- - You are validating channel, model, gateway, or tool config blocks
7
- ---
8
-
9
- Core config reference for `~/.fengming/fengming.json`. For a task-oriented overview, see [Configuration](/gateway/configuration).
10
-
11
- Covers the main FengMing config surfaces and links out when a subsystem has its own deeper reference. Channel- and plugin-owned command catalogs and deep memory/QMD knobs live on their own pages rather than on this one.
12
-
13
- Code truth:
14
-
15
- - `fengming config schema` prints the live JSON Schema used for validation and Control UI, with bundled/plugin/channel metadata merged in when available
16
- - `config.schema.lookup` returns one path-scoped schema node for drill-down tooling
17
- - `pnpm config:docs:check` / `pnpm config:docs:gen` validate the config-doc baseline hash against the current schema surface
18
-
19
- Agent lookup path: use the `gateway` tool action `config.schema.lookup` for
20
- exact field-level docs and constraints before edits. Use
21
- [Configuration](/gateway/configuration) for task-oriented guidance and this page
22
- for the broader field map, defaults, and links to subsystem references.
23
-
24
- Dedicated deep references:
25
-
26
- - [Memory configuration reference](/reference/memory-config) for `agents.defaults.memorySearch.*`, `memory.qmd.*`, `memory.citations`, and dreaming config under `plugins.entries.memory-core.config.dreaming`
27
- - [Slash commands](/tools/slash-commands) for the current built-in + bundled command catalog
28
- - owning channel/plugin pages for channel-specific command surfaces
29
-
30
- Config format is **JSON5** (comments + trailing commas allowed). All fields are optional - FengMing uses safe defaults when omitted.
31
-
32
- ---
33
-
34
- ## Channels
35
-
36
- Per-channel config keys moved to a dedicated page - see
37
- [Configuration - channels](/gateway/config-channels) for `channels.*`,
38
- including Slack, Discord, Telegram, WhatsApp, Matrix, iMessage, and other
39
- bundled channels (auth, access control, multi-account, mention gating).
40
-
41
- ## Agent defaults, multi-agent, sessions, and messages
42
-
43
- Moved to a dedicated page - see
44
- [Configuration - agents](/gateway/config-agents) for:
45
-
46
- - `agents.defaults.*` (workspace, model, thinking, heartbeat, memory, media, skills, sandbox)
47
- - `multiAgent.*` (multi-agent routing and bindings)
48
- - `session.*` (session lifecycle, compaction, pruning)
49
- - `messages.*` (message delivery, TTS, markdown rendering)
50
- - `talk.*` (Talk mode)
51
- - `talk.consultThinkingLevel`: thinking level override for the full FengMing agent run behind Control UI Talk realtime consults
52
- - `talk.consultFastMode`: one-shot fast-mode override for Control UI Talk realtime consults
53
- - `talk.speechLocale`: optional BCP 47 locale id for Talk speech recognition on iOS/macOS
54
- - `talk.silenceTimeoutMs`: when unset, Talk keeps the platform default pause window before sending the transcript (`700 ms on macOS and Android, 900 ms on iOS`)
55
- - `talk.realtime.consultRouting`: Gateway relay fallback for finalized realtime Talk transcripts that skip `fengming_agent_consult`
56
-
57
- ## Tools and custom providers
58
-
59
- Tool policy, experimental toggles, provider-backed tool config, and custom
60
- provider / base-URL setup moved to a dedicated page - see
61
- [Configuration - tools and custom providers](/gateway/config-tools).
62
-
63
- ## Models
64
-
65
- Provider definitions, model allowlists, and custom provider setup live in
66
- [Configuration - tools and custom providers](/gateway/config-tools#custom-providers-and-base-urls).
67
- The `models` root also owns global model-catalog behavior.
68
-
69
- ```json5
70
- {
71
- models: {
72
- // Optional. Default: true. Requires a Gateway restart when changed.
73
- pricing: { enabled: false },
74
- },
75
- }
76
- ```
77
-
78
- - `models.mode`: provider catalog behavior (`merge` or `replace`).
79
- - `models.providers`: custom provider map keyed by provider id.
80
- - `models.providers.*.localService`: optional on-demand process manager for
81
- local model servers. FengMing probes the configured health endpoint, starts
82
- the absolute `command` when needed, waits for readiness, then sends the model
83
- request. See [Local model services](/gateway/local-model-services).
84
- - `models.pricing.enabled`: controls the background pricing bootstrap that
85
- starts after sidecars and channels reach the Gateway ready path. When `false`,
86
- the Gateway skips OpenRouter and LiteLLM pricing-catalog fetches; configured
87
- `models.providers.*.models[].cost` values still work for local cost estimates.
88
-
89
- ## MCP
90
-
91
- FengMing-managed MCP server definitions live under `mcp.servers` and are
92
- consumed by embedded FengMing and other runtime adapters. The `fengming mcp list`,
93
- `show`, `set`, and `unset` commands manage this block without connecting to the
94
- target server during config edits.
95
-
96
- ```json5
97
- {
98
- mcp: {
99
- // Optional. Default: 600000 ms (10 minutes). Set 0 to disable idle eviction.
100
- sessionIdleTtlMs: 600000,
101
- servers: {
102
- docs: {
103
- command: "npx",
104
- args: ["-y", "@modelcontextprotocol/server-fetch"],
105
- },
106
- remote: {
107
- url: "https://example.com/mcp",
108
- transport: "streamable-http", // streamable-http | sse
109
- headers: {
110
- Authorization: "Bearer ${MCP_REMOTE_TOKEN}",
111
- },
112
- // Optional Codex app-server projection controls.
113
- codex: {
114
- agents: ["main"],
115
- defaultToolsApprovalMode: "approve", // auto | prompt | approve
116
- },
117
- },
118
- },
119
- },
120
- }
121
- ```
122
-
123
- - `mcp.servers`: named stdio or remote MCP server definitions for runtimes that
124
- expose configured MCP tools.
125
- Remote entries use `transport: "streamable-http"` or `transport: "sse"`;
126
- `type: "http"` is a CLI-native alias that `fengming mcp set` and
127
- `fengming doctor --fix` normalize into the canonical `transport` field.
128
- - `mcp.servers.<name>.codex`: optional Codex app-server projection controls.
129
- This block is FengMing metadata for Codex app-server threads only; it does not
130
- affect ACP sessions, generic Codex harness config, or other runtime adapters.
131
- Non-empty `codex.agents` limits the server to the listed FengMing agent ids.
132
- Empty, blank, or invalid scoped agent lists are rejected by config validation
133
- and omitted by the runtime projection path instead of becoming global.
134
- `codex.defaultToolsApprovalMode` emits Codex's native
135
- `default_tools_approval_mode` for that server. FengMing strips the `codex`
136
- block before passing native `mcp_servers` config to Codex. Omit the block to
137
- keep the server projected for every Codex app-server agent with Codex's
138
- default MCP approval behavior.
139
- - `mcp.sessionIdleTtlMs`: idle TTL for session-scoped bundled MCP runtimes.
140
- One-shot embedded runs request run-end cleanup; this TTL is the backstop for
141
- long-lived sessions and future callers.
142
- - Changes under `mcp.*` hot-apply by disposing cached session MCP runtimes.
143
- The next tool discovery/use recreates them from the new config, so removed
144
- `mcp.servers` entries are reaped immediately instead of waiting for idle TTL.
145
-
146
- See [MCP](/cli/mcp#fengming-as-an-mcp-client-registry) and
147
- [CLI backends](/gateway/cli-backends#bundle-mcp-overlays) for runtime behavior.
148
-
149
- ## Skills
150
-
151
- ```json5
152
- {
153
- skills: {
154
- allowBundled: ["gemini", "peekaboo"],
155
- load: {
156
- extraDirs: ["~/Projects/agent-scripts/skills"],
157
- allowSymlinkTargets: ["~/Projects/manager/skills"],
158
- },
159
- install: {
160
- preferBrew: true,
161
- nodeManager: "npm", // npm | pnpm | yarn | bun
162
- allowUploadedArchives: false,
163
- },
164
- entries: {
165
- "image-lab": {
166
- apiKey: { source: "env", provider: "default", id: "GEMINI_API_KEY" }, // or plaintext string
167
- env: { GEMINI_API_KEY: "GEMINI_KEY_HERE" },
168
- },
169
- peekaboo: { enabled: true },
170
- sag: { enabled: false },
171
- },
172
- },
173
- }
174
- ```
175
-
176
- - `allowBundled`: optional allowlist for bundled skills only (managed/workspace skills unaffected).
177
- - `load.extraDirs`: extra shared skill roots (lowest precedence).
178
- - `load.allowSymlinkTargets`: trusted real target roots that skill symlinks may
179
- resolve into when the link lives outside its configured source root.
180
- - `install.preferBrew`: when true, prefer Homebrew installers when `brew` is
181
- available before falling back to other installer kinds.
182
- - `install.nodeManager`: node installer preference for `metadata.fengming.install`
183
- specs (`npm` | `pnpm` | `yarn` | `bun`).
184
- - `install.allowUploadedArchives`: allow trusted `operator.admin` Gateway
185
- clients to install private zip archives staged through `skills.upload.*`
186
- (default: false). This only enables the uploaded-archive path; normal ClawHub
187
- installs do not require it.
188
- - `entries.<skillKey>.enabled: false` disables a skill even if bundled/installed.
189
- - `entries.<skillKey>.apiKey`: convenience for skills declaring a primary env var (plaintext string or SecretRef object).
190
-
191
- ---
192
-
193
- ## Plugins
194
-
195
- ```json5
196
- {
197
- plugins: {
198
- enabled: true,
199
- allow: ["voice-call"],
200
- deny: [],
201
- load: {
202
- paths: ["~/Projects/oss/voice-call-plugin"],
203
- },
204
- entries: {
205
- "voice-call": {
206
- enabled: true,
207
- hooks: {
208
- allowPromptInjection: false,
209
- },
210
- config: { provider: "twilio" },
211
- },
212
- },
213
- },
214
- }
215
- ```
216
-
217
- - Loaded from `~/.fengming/extensions`, `<workspace>/.fengming/extensions`, plus `plugins.load.paths`.
218
- - Discovery accepts native FengMing plugins plus compatible Codex bundles and Claude bundles, including manifestless Claude default-layout bundles.
219
- - **Config changes require a gateway restart.**
220
- - `allow`: optional allowlist (only listed plugins load). `deny` wins.
221
- - `plugins.entries.<id>.apiKey`: plugin-level API key convenience field (when supported by the plugin).
222
- - `plugins.entries.<id>.env`: plugin-scoped env var map.
223
- - `plugins.entries.<id>.hooks.allowPromptInjection`: when `false`, core blocks `before_prompt_build` and ignores prompt-mutating fields from legacy `before_agent_start`, while preserving legacy `modelOverride` and `providerOverride`. Applies to native plugin hooks and supported bundle-provided hook directories.
224
- - `plugins.entries.<id>.hooks.allowConversationAccess`: when `true`, trusted non-bundled plugins may read raw conversation content from typed hooks such as `llm_input`, `llm_output`, `before_model_resolve`, `before_agent_reply`, `before_agent_run`, `before_agent_finalize`, and `agent_end`.
225
- - `plugins.entries.<id>.subagent.allowModelOverride`: explicitly trust this plugin to request per-run `provider` and `model` overrides for background subagent runs.
226
- - `plugins.entries.<id>.subagent.allowedModels`: optional allowlist of canonical `provider/model` targets for trusted subagent overrides. Use `"*"` only when you intentionally want to allow any model.
227
- - `plugins.entries.<id>.llm.allowModelOverride`: explicitly trust this plugin to request model overrides for `api.runtime.llm.complete`.
228
- - `plugins.entries.<id>.llm.allowedModels`: optional allowlist of canonical `provider/model` targets for trusted plugin LLM completion overrides. Use `"*"` only when you intentionally want to allow any model.
229
- - `plugins.entries.<id>.llm.allowAgentIdOverride`: explicitly trust this plugin to run `api.runtime.llm.complete` against a non-default agent id.
230
- - `plugins.entries.<id>.config`: plugin-defined config object (validated by native FengMing plugin schema when available).
231
- - Channel plugin account/runtime settings live under `channels.<id>` and should be described by the owning plugin's manifest `channelConfigs` metadata, not by a central FengMing option registry.
232
-
233
- ### Codex harness plugin config
234
-
235
- The bundled `codex` plugin owns native Codex app-server harness settings under
236
- `plugins.entries.codex.config`. See
237
- [Codex harness reference](/plugins/codex-harness-reference) for the full config
238
- surface and [Codex harness](/plugins/codex-harness) for the runtime model.
239
-
240
- `codexPlugins` applies only to sessions that select the native Codex harness.
241
- It does not enable Codex plugins for FengMing provider runs, ACP
242
- conversation bindings, or any non-Codex harness.
243
-
244
- ```json5
245
- {
246
- plugins: {
247
- entries: {
248
- codex: {
249
- enabled: true,
250
- config: {
251
- codexPlugins: {
252
- enabled: true,
253
- allow_destructive_actions: true,
254
- plugins: {
255
- "google-calendar": {
256
- enabled: true,
257
- marketplaceName: "openai-curated",
258
- pluginName: "google-calendar",
259
- allow_destructive_actions: false,
260
- },
261
- },
262
- },
263
- },
264
- },
265
- },
266
- },
267
- }
268
- ```
269
-
270
- - `plugins.entries.codex.config.codexPlugins.enabled`: enables native Codex
271
- plugin/app support for the Codex harness. Default: `false`.
272
- - `plugins.entries.codex.config.codexPlugins.allow_destructive_actions`:
273
- default destructive-action policy for migrated plugin app elicitations.
274
- Default: `true`.
275
- - `plugins.entries.codex.config.codexPlugins.plugins.<key>.enabled`: enables a
276
- migrated plugin entry when global `codexPlugins.enabled` is also true.
277
- Default: `true` for explicit entries.
278
- - `plugins.entries.codex.config.codexPlugins.plugins.<key>.marketplaceName`:
279
- stable marketplace identity. V1 only supports `"openai-curated"`.
280
- - `plugins.entries.codex.config.codexPlugins.plugins.<key>.pluginName`: stable
281
- Codex plugin identity from migration, for example `"google-calendar"`.
282
- - `plugins.entries.codex.config.codexPlugins.plugins.<key>.allow_destructive_actions`:
283
- per-plugin destructive-action override. When omitted, the global
284
- `allow_destructive_actions` value is used.
285
-
286
- `codexPlugins.enabled` is the global enablement directive. Explicit plugin
287
- entries written by migration are the durable install and repair eligibility set.
288
- `plugins["*"]` is not supported, there is no `install` switch, and local
289
- `marketplacePath` values are intentionally not config fields because they are
290
- host-specific.
291
-
292
- `app/list` readiness checks are cached for one hour and refreshed
293
- asynchronously when stale. Codex thread app config is computed at Codex harness
294
- session establishment, not on every turn; use `/new`, `/reset`, or a gateway
295
- restart after changing native plugin config.
296
-
297
- - `plugins.entries.firecrawl.config.webFetch`: Firecrawl web-fetch provider settings.
298
- - `apiKey`: Firecrawl API key (accepts SecretRef). Falls back to `plugins.entries.firecrawl.config.webSearch.apiKey`, legacy `tools.web.fetch.firecrawl.apiKey`, or `FIRECRAWL_API_KEY` env var.
299
- - `baseUrl`: Firecrawl API base URL (default: `https://api.firecrawl.dev`; self-hosted overrides must target private/internal endpoints).
300
- - `onlyMainContent`: extract only the main content from pages (default: `true`).
301
- - `maxAgeMs`: maximum cache age in milliseconds (default: `172800000` / 2 days).
302
- - `timeoutSeconds`: scrape request timeout in seconds (default: `60`).
303
- - `plugins.entries.xai.config.xSearch`: xAI X Search (Grok web search) settings.
304
- - `enabled`: enable the X Search provider.
305
- - `model`: Grok model to use for search (e.g. `"grok-4-1-fast"`).
306
- - `plugins.entries.memory-core.config.dreaming`: memory dreaming settings. See [Dreaming](/concepts/dreaming) for phases and thresholds.
307
- - `enabled`: master dreaming switch (default `false`).
308
- - `frequency`: cron cadence for each full dreaming sweep (`"0 3 * * *"` by default).
309
- - `model`: optional Dream Diary subagent model override. Requires `plugins.entries.memory-core.subagent.allowModelOverride: true`; pair with `allowedModels` to restrict targets. Model-unavailable errors retry once with the session default model; trust or allowlist failures do not fall back silently.
310
- - phase policy and thresholds are implementation details (not user-facing config keys).
311
- - Full memory config lives in [Memory configuration reference](/reference/memory-config):
312
- - `agents.defaults.memorySearch.*`
313
- - `memory.backend`
314
- - `memory.citations`
315
- - `memory.qmd.*`
316
- - `plugins.entries.memory-core.config.dreaming`
317
- - Enabled Claude bundle plugins can also contribute embedded FengMing defaults from `settings.json`; FengMing applies those as sanitized agent settings, not as raw FengMing config patches.
318
- - `plugins.slots.memory`: pick the active memory plugin id, or `"none"` to disable memory plugins.
319
- - `plugins.slots.contextEngine`: pick the active context engine plugin id; defaults to `"legacy"` unless you install and select another engine.
320
-
321
- See [Plugins](/tools/plugin).
322
-
323
- ---
324
-
325
- ## Commitments
326
-
327
- `commitments` controls inferred follow-up memory: FengMing can detect check-ins from conversation turns and deliver them through heartbeat runs.
328
-
329
- - `commitments.enabled`: enable hidden LLM extraction, storage, and heartbeat delivery for inferred follow-up commitments. Default: `false`.
330
- - `commitments.maxPerDay`: maximum inferred follow-up commitments delivered per agent session in a rolling day. Default: `3`.
331
-
332
- See [Inferred commitments](/concepts/commitments).
333
-
334
- ---
335
-
336
- ## Browser
337
-
338
- ```json5
339
- {
340
- browser: {
341
- enabled: true,
342
- evaluateEnabled: true,
343
- defaultProfile: "user",
344
- ssrfPolicy: {
345
- // dangerouslyAllowPrivateNetwork: true, // opt in only for trusted private-network access
346
- // allowPrivateNetwork: true, // legacy alias
347
- // hostnameAllowlist: ["*.example.com", "example.com"],
348
- // allowedHostnames: ["localhost"],
349
- },
350
- tabCleanup: {
351
- enabled: true,
352
- idleMinutes: 120,
353
- maxTabsPerSession: 8,
354
- sweepMinutes: 5,
355
- },
356
- profiles: {
357
- fengming: { cdpPort: 18800, color: "#FF4500" },
358
- work: {
359
- cdpPort: 18801,
360
- color: "#0066CC",
361
- executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
362
- },
363
- user: { driver: "existing-session", attachOnly: true, color: "#00AA00" },
364
- brave: {
365
- driver: "existing-session",
366
- attachOnly: true,
367
- userDataDir: "~/Library/Application Support/BraveSoftware/Brave-Browser",
368
- color: "#FB542B",
369
- },
370
- remote: { cdpUrl: "http://10.0.0.42:9222", color: "#00AA00" },
371
- },
372
- color: "#FF4500",
373
- // headless: false,
374
- // noSandbox: false,
375
- // extraArgs: [],
376
- // executablePath: "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser",
377
- // attachOnly: false,
378
- },
379
- }
380
- ```
381
-
382
- - `evaluateEnabled: false` disables `act:evaluate` and `wait --fn`.
383
- - `tabCleanup` reclaims tracked primary-agent tabs after idle time or when a
384
- session exceeds its cap. Set `idleMinutes: 0` or `maxTabsPerSession: 0` to
385
- disable those individual cleanup modes.
386
- - `ssrfPolicy.dangerouslyAllowPrivateNetwork` is disabled when unset, so browser navigation stays strict by default.
387
- - Set `ssrfPolicy.dangerouslyAllowPrivateNetwork: true` only when you intentionally trust private-network browser navigation.
388
- - In strict mode, remote CDP profile endpoints (`profiles.*.cdpUrl`) are subject to the same private-network blocking during reachability/discovery checks.
389
- - `ssrfPolicy.allowPrivateNetwork` remains supported as a legacy alias.
390
- - In strict mode, use `ssrfPolicy.hostnameAllowlist` and `ssrfPolicy.allowedHostnames` for explicit exceptions.
391
- - Remote profiles are attach-only (start/stop/reset disabled).
392
- - `profiles.*.cdpUrl` accepts `http://`, `https://`, `ws://`, and `wss://`.
393
- Use HTTP(S) when you want FengMing to discover `/json/version`; use WS(S)
394
- when your provider gives you a direct DevTools WebSocket URL.
395
- - `remoteCdpTimeoutMs` and `remoteCdpHandshakeTimeoutMs` apply to remote and
396
- `attachOnly` CDP reachability plus tab-opening requests. Managed loopback
397
- profiles keep local CDP defaults.
398
- - If an externally managed CDP service is reachable through loopback, set that
399
- profile's `attachOnly: true`; otherwise FengMing treats the loopback port as a
400
- local managed browser profile and may report local port ownership errors.
401
- - `existing-session` profiles use Chrome MCP instead of CDP and can attach on
402
- the selected host or through a connected browser node.
403
- - `existing-session` profiles can set `userDataDir` to target a specific
404
- Chromium-based browser profile such as Brave or Edge.
405
- - `existing-session` profiles keep the current Chrome MCP route limits:
406
- snapshot/ref-driven actions instead of CSS-selector targeting, one-file upload
407
- hooks, no dialog timeout overrides, no `wait --load networkidle`, and no
408
- `responsebody`, PDF export, download interception, or batch actions.
409
- - Local managed `fengming` profiles auto-assign `cdpPort` and `cdpUrl`; only
410
- set `cdpUrl` explicitly for remote CDP.
411
- - Local managed profiles can set `executablePath` to override the global
412
- `browser.executablePath` for that profile. Use this to run one profile in
413
- Chrome and another in Brave.
414
- - Local managed profiles use `browser.localLaunchTimeoutMs` for Chrome CDP HTTP
415
- discovery after process start and `browser.localCdpReadyTimeoutMs` for
416
- post-launch CDP websocket readiness. Raise them on slower hosts where Chrome
417
- starts successfully but readiness checks race startup. Both values must be
418
- positive integers up to `120000` ms; invalid config values are rejected.
419
- - Auto-detect order: default browser if Chromium-based → Chrome → Brave → Edge → Chromium → Chrome Canary.
420
- - `browser.executablePath` and `browser.profiles.<name>.executablePath` both
421
- accept `~` and `~/...` for your OS home directory before Chromium launch.
422
- Per-profile `userDataDir` on `existing-session` profiles is also tilde-expanded.
423
- - Control service: loopback only (port derived from `gateway.port`, default `18791`).
424
- - `extraArgs` appends extra launch flags to local Chromium startup (for example
425
- `--disable-gpu`, window sizing, or debug flags).
426
-
427
- ---
428
-
429
- ## UI
430
-
431
- ```json5
432
- {
433
- ui: {
434
- seamColor: "#FF4500",
435
- assistant: {
436
- name: "FengMing",
437
- avatar: "CB", // emoji, short text, image URL, or data URI
438
- },
439
- },
440
- }
441
- ```
442
-
443
- - `seamColor`: accent color for native app UI chrome (Talk Mode bubble tint, etc.).
444
- - `assistant`: Control UI identity override. Falls back to active agent identity.
445
-
446
- ---
447
-
448
- ## Gateway
449
-
450
- ```json5
451
- {
452
- gateway: {
453
- mode: "local", // local | remote
454
- port: 18789,
455
- bind: "loopback",
456
- auth: {
457
- mode: "token", // none | token | password | trusted-proxy
458
- token: "your-token",
459
- // password: "your-password", // or FENGMING_GATEWAY_PASSWORD
460
- // trustedProxy: { userHeader: "x-forwarded-user" }, // for mode=trusted-proxy; see /gateway/trusted-proxy-auth
461
- allowTailscale: true,
462
- rateLimit: {
463
- maxAttempts: 10,
464
- windowMs: 60000,
465
- lockoutMs: 300000,
466
- exemptLoopback: true,
467
- },
468
- },
469
- tailscale: {
470
- mode: "off", // off | serve | funnel
471
- resetOnExit: false,
472
- },
473
- controlUi: {
474
- enabled: true,
475
- basePath: "/fengming",
476
- // root: "dist/control-ui",
477
- // embedSandbox: "scripts", // strict | scripts | trusted
478
- // allowExternalEmbedUrls: false, // dangerous: allow absolute external http(s) embed URLs
479
- // chatMessageMaxWidth: "min(1280px, 82%)", // optional grouped chat message max-width
480
- // allowedOrigins: ["https://control.example.com"], // required for non-loopback Control UI
481
- // dangerouslyAllowHostHeaderOriginFallback: false, // dangerous Host-header origin fallback mode
482
- // allowInsecureAuth: false,
483
- // dangerouslyDisableDeviceAuth: false,
484
- },
485
- remote: {
486
- url: "ws://127.0.0.1:18789",
487
- transport: "ssh", // ssh | direct
488
- token: "your-token",
489
- // password: "your-password",
490
- },
491
- trustedProxies: ["10.0.0.1"],
492
- // Optional. Default false.
493
- allowRealIpFallback: false,
494
- nodes: {
495
- pairing: {
496
- // Optional. Default unset/disabled.
497
- autoApproveCidrs: ["192.168.1.0/24", "fd00:1234:5678::/64"],
498
- },
499
- allowCommands: ["canvas.navigate"],
500
- denyCommands: ["system.run"],
501
- },
502
- tools: {
503
- // Additional /tools/invoke HTTP denies
504
- deny: ["browser"],
505
- // Remove tools from the default HTTP deny list
506
- allow: ["gateway"],
507
- },
508
- push: {
509
- apns: {
510
- relay: {
511
- baseUrl: "https://relay.example.com",
512
- timeoutMs: 10000,
513
- },
514
- },
515
- },
516
- },
517
- }
518
- ```
519
-
520
- <Accordion title="Gateway field details">
521
-
522
- - `mode`: `local` (run gateway) or `remote` (connect to remote gateway). Gateway refuses to start unless `local`.
523
- - `port`: single multiplexed port for WS + HTTP. Precedence: `--port` > `FENGMING_GATEWAY_PORT` > `gateway.port` > `18789`.
524
- - `bind`: `auto`, `loopback` (default), `lan` (`0.0.0.0`), `tailnet` (Tailscale IP only), or `custom`.
525
- - **Legacy bind aliases**: use bind mode values in `gateway.bind` (`auto`, `loopback`, `lan`, `tailnet`, `custom`), not host aliases (`0.0.0.0`, `127.0.0.1`, `localhost`, `::`, `::1`).
526
- - **Docker note**: the default `loopback` bind listens on `127.0.0.1` inside the container. With Docker bridge networking (`-p 18789:18789`), traffic arrives on `eth0`, so the gateway is unreachable. Use `--network host`, or set `bind: "lan"` (or `bind: "custom"` with `customBindHost: "0.0.0.0"`) to listen on all interfaces.
527
- - **Auth**: required by default. Non-loopback binds require gateway auth. In practice that means a shared token/password or an identity-aware reverse proxy with `gateway.auth.mode: "trusted-proxy"`. Onboarding wizard generates a token by default.
528
- - If both `gateway.auth.token` and `gateway.auth.password` are configured (including SecretRefs), set `gateway.auth.mode` explicitly to `token` or `password`. Startup and service install/repair flows fail when both are configured and mode is unset.
529
- - `gateway.auth.mode: "none"`: explicit no-auth mode. Use only for trusted local loopback setups; this is intentionally not offered by onboarding prompts.
530
- - `gateway.auth.mode: "trusted-proxy"`: delegate browser/user auth to an identity-aware reverse proxy and trust identity headers from `gateway.trustedProxies` (see [Trusted Proxy Auth](/gateway/trusted-proxy-auth)). This mode expects a **non-loopback** proxy source by default; same-host loopback reverse proxies require explicit `gateway.auth.trustedProxy.allowLoopback = true`. Internal same-host callers can use `gateway.auth.password` as a local direct fallback; `gateway.auth.token` remains mutually exclusive with trusted-proxy mode.
531
- - `gateway.auth.allowTailscale`: when `true`, Tailscale Serve identity headers can satisfy Control UI/WebSocket auth (verified via `tailscale whois`). HTTP API endpoints do **not** use that Tailscale header auth; they follow the gateway's normal HTTP auth mode instead. This tokenless flow assumes the gateway host is trusted. Defaults to `true` when `tailscale.mode = "serve"`.
532
- - `gateway.auth.rateLimit`: optional failed-auth limiter. Applies per client IP and per auth scope (shared-secret and device-token are tracked independently). Blocked attempts return `429` + `Retry-After`.
533
- - On the async Tailscale Serve Control UI path, failed attempts for the same `{scope, clientIp}` are serialized before the failure write. Concurrent bad attempts from the same client can therefore trip the limiter on the second request instead of both racing through as plain mismatches.
534
- - `gateway.auth.rateLimit.exemptLoopback` defaults to `true`; set `false` when you intentionally want localhost traffic rate-limited too (for test setups or strict proxy deployments).
535
- - Browser-origin WS auth attempts are always throttled with loopback exemption disabled (defense-in-depth against browser-based localhost brute force).
536
- - On loopback, those browser-origin lockouts are isolated per normalized `Origin`
537
- value, so repeated failures from one localhost origin do not automatically
538
- lock out a different origin.
539
- - `tailscale.mode`: `serve` (tailnet only, loopback bind) or `funnel` (public, requires auth).
540
- - `tailscale.preserveFunnel`: when `true` and `tailscale.mode = "serve"`, FengMing
541
- checks `tailscale funnel status` before re-applying Serve at startup and skips
542
- it if an externally configured Funnel route already covers the gateway port.
543
- Default `false`.
544
- - `controlUi.allowedOrigins`: explicit browser-origin allowlist for Gateway WebSocket connects. Required for public non-loopback browser origins. Private same-origin LAN/Tailnet UI loads from loopback, RFC1918/link-local, `.local`, `.ts.net`, or Tailscale CGNAT hosts are accepted without enabling Host-header fallback.
545
- - `controlUi.chatMessageMaxWidth`: optional max-width for grouped Control UI chat messages. Accepts constrained CSS width values such as `960px`, `82%`, `min(1280px, 82%)`, and `calc(100% - 2rem)`.
546
- - `controlUi.dangerouslyAllowHostHeaderOriginFallback`: dangerous mode that enables Host-header origin fallback for deployments that intentionally rely on Host-header origin policy.
547
- - `remote.transport`: `ssh` (default) or `direct` (ws/wss). For `direct`, `remote.url` must be `wss://` for public hosts; plaintext `ws://` is accepted only for loopback, LAN, link-local, `.local`, `.ts.net`, and Tailscale CGNAT hosts.
548
- - `remote.remotePort`: gateway port on the remote SSH host. Defaults to `18789`; use this when the local tunnel port differs from the remote gateway port.
549
- - `gateway.remote.token` / `.password` are remote-client credential fields. They do not configure gateway auth by themselves.
550
- - `gateway.push.apns.relay.baseUrl`: base HTTPS URL for the external APNs relay used by official/TestFlight iOS builds after they publish relay-backed registrations to the gateway. This URL must match the relay URL compiled into the iOS build.
551
- - `gateway.push.apns.relay.timeoutMs`: gateway-to-relay send timeout in milliseconds. Defaults to `10000`.
552
- - Relay-backed registrations are delegated to a specific gateway identity. The paired iOS app fetches `gateway.identity.get`, includes that identity in the relay registration, and forwards a registration-scoped send grant to the gateway. Another gateway cannot reuse that stored registration.
553
- - `FENGMING_APNS_RELAY_BASE_URL` / `FENGMING_APNS_RELAY_TIMEOUT_MS`: temporary env overrides for the relay config above.
554
- - `FENGMING_APNS_RELAY_ALLOW_HTTP=true`: development-only escape hatch for loopback HTTP relay URLs. Production relay URLs should stay on HTTPS.
555
- - `gateway.handshakeTimeoutMs`: pre-auth Gateway WebSocket handshake timeout in milliseconds. Default: `15000`. `FENGMING_HANDSHAKE_TIMEOUT_MS` takes precedence when set. Increase this on loaded or low-powered hosts where local clients can connect while startup warmup is still settling.
556
- - `gateway.channelHealthCheckMinutes`: channel health-monitor interval in minutes. Set `0` to disable health-monitor restarts globally. Default: `5`.
557
- - `gateway.channelStaleEventThresholdMinutes`: stale-socket threshold in minutes. Keep this greater than or equal to `gateway.channelHealthCheckMinutes`. Default: `30`.
558
- - `gateway.channelMaxRestartsPerHour`: maximum health-monitor restarts per channel/account in a rolling hour. Default: `10`.
559
- - `channels.<provider>.healthMonitor.enabled`: per-channel opt-out for health-monitor restarts while keeping the global monitor enabled.
560
- - `channels.<provider>.accounts.<accountId>.healthMonitor.enabled`: per-account override for multi-account channels. When set, it takes precedence over the channel-level override.
561
- - Local gateway call paths can use `gateway.remote.*` as fallback only when `gateway.auth.*` is unset.
562
- - If `gateway.auth.token` / `gateway.auth.password` is explicitly configured via SecretRef and unresolved, resolution fails closed (no remote fallback masking).
563
- - `trustedProxies`: reverse proxy IPs that terminate TLS or inject forwarded-client headers. Only list proxies you control. Loopback entries are still valid for same-host proxy/local-detection setups (for example Tailscale Serve or a local reverse proxy), but they do **not** make loopback requests eligible for `gateway.auth.mode: "trusted-proxy"`.
564
- - `allowRealIpFallback`: when `true`, the gateway accepts `X-Real-IP` if `X-Forwarded-For` is missing. Default `false` for fail-closed behavior.
565
- - `gateway.nodes.pairing.autoApproveCidrs`: optional CIDR/IP allowlist for auto-approving first-time node device pairing with no requested scopes. It is disabled when unset. This does not auto-approve operator/browser/Control UI/WebChat pairing, and it does not auto-approve role, scope, metadata, or public-key upgrades.
566
- - `gateway.nodes.allowCommands` / `gateway.nodes.denyCommands`: global allow/deny shaping for declared node commands after pairing and platform allowlist evaluation. Use `allowCommands` to opt into dangerous node commands such as `camera.snap`, `camera.clip`, and `screen.record`; `denyCommands` removes a command even if a platform default or explicit allow would otherwise include it. After a node changes its declared command list, reject and re-approve that device pairing so the gateway stores the updated command snapshot.
567
- - `gateway.tools.deny`: extra tool names blocked for HTTP `POST /tools/invoke` (extends default deny list).
568
- - `gateway.tools.allow`: remove tool names from the default HTTP deny list.
569
-
570
- </Accordion>
571
-
572
- ### OpenAI-compatible endpoints
573
-
574
- - Admin HTTP RPC: off by default as the `admin-http-rpc` plugin. Enable the plugin to register `POST /api/v1/admin/rpc`. See [Admin HTTP RPC](/plugins/admin-http-rpc).
575
- - Chat Completions: disabled by default. Enable with `gateway.http.endpoints.chatCompletions.enabled: true`.
576
- - Responses API: `gateway.http.endpoints.responses.enabled`.
577
- - Responses URL-input hardening:
578
- - `gateway.http.endpoints.responses.maxUrlParts`
579
- - `gateway.http.endpoints.responses.files.urlAllowlist`
580
- - `gateway.http.endpoints.responses.images.urlAllowlist`
581
- Empty allowlists are treated as unset; use `gateway.http.endpoints.responses.files.allowUrl=false`
582
- and/or `gateway.http.endpoints.responses.images.allowUrl=false` to disable URL fetching.
583
- - Optional response hardening header:
584
- - `gateway.http.securityHeaders.strictTransportSecurity` (set only for HTTPS origins you control; see [Trusted Proxy Auth](/gateway/trusted-proxy-auth#tls-termination-and-hsts))
585
-
586
- ### Multi-instance isolation
587
-
588
- Run multiple gateways on one host with unique ports and state dirs:
589
-
590
- ```bash
591
- FENGMING_CONFIG_PATH=~/.fengming/a.json \
592
- FENGMING_STATE_DIR=~/.fengming-a \
593
- fengming gateway --port 19001
594
- ```
595
-
596
- Convenience flags: `--dev` (uses `~/.fengming-dev` + port `19001`), `--profile <name>` (uses `~/.fengming-<name>`).
597
-
598
- See [Multiple Gateways](/gateway/multiple-gateways).
599
-
600
- ### `gateway.tls`
601
-
602
- ```json5
603
- {
604
- gateway: {
605
- tls: {
606
- enabled: false,
607
- autoGenerate: false,
608
- certPath: "/etc/fengming/tls/server.crt",
609
- keyPath: "/etc/fengming/tls/server.key",
610
- caPath: "/etc/fengming/tls/ca-bundle.crt",
611
- },
612
- },
613
- }
614
- ```
615
-
616
- - `enabled`: enables TLS termination at the gateway listener (HTTPS/WSS) (default: `false`).
617
- - `autoGenerate`: auto-generates a local self-signed cert/key pair when explicit files are not configured; for local/dev use only.
618
- - `certPath`: filesystem path to the TLS certificate file.
619
- - `keyPath`: filesystem path to the TLS private key file; keep permission-restricted.
620
- - `caPath`: optional CA bundle path for client verification or custom trust chains.
621
-
622
- ### `gateway.reload`
623
-
624
- ```json5
625
- {
626
- gateway: {
627
- reload: {
628
- mode: "hybrid", // off | restart | hot | hybrid
629
- debounceMs: 500,
630
- deferralTimeoutMs: 300000,
631
- },
632
- },
633
- }
634
- ```
635
-
636
- - `mode`: controls how config edits are applied at runtime.
637
- - `"off"`: ignore live edits; changes require an explicit restart.
638
- - `"restart"`: always restart the gateway process on config change.
639
- - `"hot"`: apply changes in-process without restarting.
640
- - `"hybrid"` (default): try hot reload first; fall back to restart if required.
641
- - `debounceMs`: debounce window in ms before config changes are applied (non-negative integer).
642
- - `deferralTimeoutMs`: optional maximum time in ms to wait for in-flight operations before forcing a restart or channel hot reload. Omit it to use the default bounded wait (`300000`); set `0` to wait indefinitely and log periodic still-pending warnings.
643
-
644
- ---
645
-
646
- ## Hooks
647
-
648
- ```json5
649
- {
650
- hooks: {
651
- enabled: true,
652
- token: "shared-secret",
653
- path: "/hooks",
654
- maxBodyBytes: 262144,
655
- defaultSessionKey: "hook:ingress",
656
- allowRequestSessionKey: true,
657
- allowedSessionKeyPrefixes: ["hook:", "hook:gmail:"],
658
- allowedAgentIds: ["hooks", "main"],
659
- presets: ["gmail"],
660
- transformsDir: "~/.fengming/hooks/transforms",
661
- mappings: [
662
- {
663
- match: { path: "gmail" },
664
- action: "agent",
665
- agentId: "hooks",
666
- wakeMode: "now",
667
- name: "Gmail",
668
- sessionKey: "hook:gmail:{{messages[0].id}}",
669
- messageTemplate: "From: {{messages[0].from}}\nSubject: {{messages[0].subject}}\n{{messages[0].snippet}}",
670
- deliver: true,
671
- channel: "last",
672
- model: "openai/gpt-5.4-mini",
673
- },
674
- ],
675
- },
676
- }
677
- ```
678
-
679
- Auth: `Authorization: Bearer <token>` or `x-fengming-token: <token>`.
680
- Query-string hook tokens are rejected.
681
-
682
- Validation and safety notes:
683
-
684
- - `hooks.enabled=true` requires a non-empty `hooks.token`.
685
- - `hooks.token` must be distinct from `gateway.auth.token` / `FENGMING_GATEWAY_TOKEN`; reusing the Gateway token fails startup validation.
686
- - `fengming security audit` also flags `hooks.token` reuse of active Gateway password auth (`gateway.auth.password` / `FENGMING_GATEWAY_PASSWORD`, or `--auth password --password <password>`) as a critical finding; password-mode reuse stays startup-compatible and should be repaired by rotating one of the secrets.
687
- - `hooks.path` cannot be `/`; use a dedicated subpath such as `/hooks`.
688
- - If `hooks.allowRequestSessionKey=true`, constrain `hooks.allowedSessionKeyPrefixes` (for example `["hook:"]`).
689
- - If a mapping or preset uses a templated `sessionKey`, set `hooks.allowedSessionKeyPrefixes` and `hooks.allowRequestSessionKey=true`. Static mapping keys do not require that opt-in.
690
-
691
- **Endpoints:**
692
-
693
- - `POST /hooks/wake` → `{ text, mode?: "now"|"next-heartbeat" }`
694
- - `POST /hooks/agent` → `{ message, name?, agentId?, sessionKey?, wakeMode?, deliver?, channel?, to?, model?, thinking?, timeoutSeconds? }`
695
- - `sessionKey` from request payload is accepted only when `hooks.allowRequestSessionKey=true` (default: `false`).
696
- - `POST /hooks/<name>` → resolved via `hooks.mappings`
697
- - Template-rendered mapping `sessionKey` values are treated as externally supplied and also require `hooks.allowRequestSessionKey=true`.
698
-
699
- <Accordion title="Mapping details">
700
-
701
- - `match.path` matches sub-path after `/hooks` (e.g. `/hooks/gmail` → `gmail`).
702
- - `match.source` matches a payload field for generic paths.
703
- - Templates like `{{messages[0].subject}}` read from the payload.
704
- - `transform` can point to a JS/TS module returning a hook action.
705
- - `transform.module` must be a relative path and stays within `hooks.transformsDir` (absolute paths and traversal are rejected).
706
- - Keep `hooks.transformsDir` under `~/.fengming/hooks/transforms`; workspace skill directories are rejected. If `fengming doctor` reports this path as invalid, move the transform module into the hooks transforms directory or remove `hooks.transformsDir`.
707
- - `agentId` routes to a specific agent; unknown IDs fall back to the default agent.
708
- - `allowedAgentIds`: restricts effective agent routing, including the default-agent path when `agentId` is omitted (`*` or omitted = allow all, `[]` = deny all).
709
- - `defaultSessionKey`: optional fixed session key for hook agent runs without explicit `sessionKey`.
710
- - `allowRequestSessionKey`: allow `/hooks/agent` callers and template-driven mapping session keys to set `sessionKey` (default: `false`).
711
- - `allowedSessionKeyPrefixes`: optional prefix allowlist for explicit `sessionKey` values (request + mapping), e.g. `["hook:"]`. It becomes required when any mapping or preset uses a templated `sessionKey`.
712
- - `deliver: true` sends final reply to a channel; `channel` defaults to `last`.
713
- - `model` overrides LLM for this hook run (must be allowed if model catalog is set).
714
-
715
- </Accordion>
716
-
717
- ### Gmail integration
718
-
719
- - The built-in Gmail preset uses `sessionKey: "hook:gmail:{{messages[0].id}}"`.
720
- - If you keep that per-message routing, set `hooks.allowRequestSessionKey: true` and constrain `hooks.allowedSessionKeyPrefixes` to match the Gmail namespace, for example `["hook:", "hook:gmail:"]`.
721
- - If you need `hooks.allowRequestSessionKey: false`, override the preset with a static `sessionKey` instead of the templated default.
722
-
723
- ```json5
724
- {
725
- hooks: {
726
- gmail: {
727
- account: "fengming@gmail.com",
728
- topic: "projects/<project-id>/topics/gog-gmail-watch",
729
- subscription: "gog-gmail-watch-push",
730
- pushToken: "shared-push-token",
731
- hookUrl: "http://127.0.0.1:18789/hooks/gmail",
732
- includeBody: true,
733
- maxBytes: 20000,
734
- renewEveryMinutes: 720,
735
- serve: { bind: "127.0.0.1", port: 8788, path: "/" },
736
- tailscale: { mode: "funnel", path: "/gmail-pubsub" },
737
- model: "openrouter/meta-llama/llama-3.3-70b-instruct:free",
738
- thinking: "off",
739
- },
740
- },
741
- }
742
- ```
743
-
744
- - Gateway auto-starts `gog gmail watch serve` on boot when configured. Set `FENGMING_SKIP_GMAIL_WATCHER=1` to disable.
745
- - Don't run a separate `gog gmail watch serve` alongside the Gateway.
746
-
747
- ---
748
-
749
- ## Canvas plugin host
750
-
751
- ```json5
752
- {
753
- plugins: {
754
- entries: {
755
- canvas: {
756
- config: {
757
- host: {
758
- root: "~/.fengming/workspace/canvas",
759
- liveReload: true,
760
- // enabled: false, // or FENGMING_SKIP_CANVAS_HOST=1
761
- },
762
- },
763
- },
764
- },
765
- },
766
- }
767
- ```
768
-
769
- - Serves agent-editable HTML/CSS/JS and A2UI over HTTP under the Gateway port:
770
- - `http://<gateway-host>:<gateway.port>/__fengming__/canvas/`
771
- - `http://<gateway-host>:<gateway.port>/__fengming__/a2ui/`
772
- - Local-only: keep `gateway.bind: "loopback"` (default).
773
- - Non-loopback binds: canvas routes require Gateway auth (token/password/trusted-proxy), same as other Gateway HTTP surfaces.
774
- - Node WebViews typically don't send auth headers; after a node is paired and connected, the Gateway advertises node-scoped capability URLs for canvas/A2UI access.
775
- - Capability URLs are bound to the active node WS session and expire quickly. IP-based fallback is not used.
776
- - Injects live-reload client into served HTML.
777
- - Auto-creates starter `index.html` when empty.
778
- - Also serves A2UI at `/__fengming__/a2ui/`.
779
- - Changes require a gateway restart.
780
- - Disable live reload for large directories or `EMFILE` errors.
781
-
782
- ---
783
-
784
- ## Discovery
785
-
786
- ### mDNS (Bonjour)
787
-
788
- ```json5
789
- {
790
- discovery: {
791
- mdns: {
792
- mode: "minimal", // minimal | full | off
793
- },
794
- },
795
- }
796
- ```
797
-
798
- - `minimal` (default when the bundled `bonjour` plugin is enabled): omit `cliPath` + `sshPort` from TXT records.
799
- - `full`: include `cliPath` + `sshPort`; LAN multicast advertising still requires the bundled `bonjour` plugin to be enabled.
800
- - `off`: suppress LAN multicast advertising without changing plugin enablement.
801
- - The bundled `bonjour` plugin auto-starts on macOS hosts and is opt-in on Linux, Windows, and containerized Gateway deployments.
802
- - Hostname defaults to the system hostname when it is a valid DNS label, falling back to `fengming`. Override with `FENGMING_MDNS_HOSTNAME`.
803
-
804
- ### Wide-area (DNS-SD)
805
-
806
- ```json5
807
- {
808
- discovery: {
809
- wideArea: { enabled: true },
810
- },
811
- }
812
- ```
813
-
814
- Writes a unicast DNS-SD zone under `~/.fengming/dns/`. For cross-network discovery, pair with a DNS server (CoreDNS recommended) + Tailscale split DNS.
815
-
816
- Setup: `fengming dns setup --apply`.
817
-
818
- ---
819
-
820
- ## Environment
821
-
822
- ### `env` (inline env vars)
823
-
824
- ```json5
825
- {
826
- env: {
827
- OPENROUTER_API_KEY: "sk-or-...",
828
- vars: {
829
- GROQ_API_KEY: "gsk-...",
830
- },
831
- shellEnv: {
832
- enabled: true,
833
- timeoutMs: 15000,
834
- },
835
- },
836
- }
837
- ```
838
-
839
- - Inline env vars are only applied if the process env is missing the key.
840
- - `.env` files: CWD `.env` + `~/.fengming/.env` (neither overrides existing vars).
841
- - `shellEnv`: imports missing expected keys from your login shell profile.
842
- - See [Environment](/help/environment) for full precedence.
843
-
844
- ### Env var substitution
845
-
846
- Reference env vars in any config string with `${VAR_NAME}`:
847
-
848
- ```json5
849
- {
850
- gateway: {
851
- auth: { token: "${FENGMING_GATEWAY_TOKEN}" },
852
- },
853
- }
854
- ```
855
-
856
- - Only uppercase names matched: `[A-Z_][A-Z0-9_]*`.
857
- - Missing/empty vars throw an error at config load.
858
- - Escape with `$${VAR}` for a literal `${VAR}`.
859
- - Works with `$include`.
860
-
861
- ---
862
-
863
- ## Secrets
864
-
865
- Secret refs are additive: plaintext values still work.
866
-
867
- ### `SecretRef`
868
-
869
- Use one object shape:
870
-
871
- ```json5
872
- { source: "env" | "file" | "exec", provider: "default", id: "..." }
873
- ```
874
-
875
- Validation:
876
-
877
- - `provider` pattern: `^[a-z][a-z0-9_-]{0,63}$`
878
- - `source: "env"` id pattern: `^[A-Z][A-Z0-9_]{0,127}$`
879
- - `source: "file"` id: absolute JSON pointer (for example `"/providers/openai/apiKey"`)
880
- - `source: "exec"` id pattern: `^[A-Za-z0-9][A-Za-z0-9._:/#-]{0,255}$` (supports AWS-style `secret#json_key` selectors)
881
- - `source: "exec"` ids must not contain `.` or `..` slash-delimited path segments (for example `a/../b` is rejected)
882
-
883
- ### Supported credential surface
884
-
885
- - Canonical matrix: [SecretRef Credential Surface](/reference/secretref-credential-surface)
886
- - `secrets apply` targets supported `fengming.json` credential paths.
887
- - `auth-profiles.json` refs are included in runtime resolution and audit coverage.
888
-
889
- ### Secret providers config
890
-
891
- ```json5
892
- {
893
- secrets: {
894
- providers: {
895
- default: { source: "env" }, // optional explicit env provider
896
- filemain: {
897
- source: "file",
898
- path: "~/.fengming/secrets.json",
899
- mode: "json",
900
- timeoutMs: 5000,
901
- },
902
- vault: {
903
- source: "exec",
904
- command: "/usr/local/bin/fengming-vault-resolver",
905
- passEnv: ["PATH", "VAULT_ADDR"],
906
- },
907
- },
908
- defaults: {
909
- env: "default",
910
- file: "filemain",
911
- exec: "vault",
912
- },
913
- },
914
- }
915
- ```
916
-
917
- Notes:
918
-
919
- - `file` provider supports `mode: "json"` and `mode: "singleValue"` (`id` must be `"value"` in singleValue mode).
920
- - File and exec provider paths fail closed when Windows ACL verification is unavailable. Set `allowInsecurePath: true` only for trusted paths that cannot be verified.
921
- - `exec` provider requires an absolute `command` path and uses protocol payloads on stdin/stdout.
922
- - By default, symlink command paths are rejected. Set `allowSymlinkCommand: true` to allow symlink paths while validating the resolved target path.
923
- - If `trustedDirs` is configured, the trusted-dir check applies to the resolved target path.
924
- - `exec` child environment is minimal by default; pass required variables explicitly with `passEnv`.
925
- - Secret refs are resolved at activation time into an in-memory snapshot, then request paths read the snapshot only.
926
- - Active-surface filtering applies during activation: unresolved refs on enabled surfaces fail startup/reload, while inactive surfaces are skipped with diagnostics.
927
-
928
- ---
929
-
930
- ## Auth storage
931
-
932
- ```json5
933
- {
934
- auth: {
935
- profiles: {
936
- "anthropic:default": { provider: "anthropic", mode: "api_key" },
937
- "anthropic:work": { provider: "anthropic", mode: "api_key" },
938
- "openai:personal": { provider: "openai", mode: "oauth" },
939
- },
940
- order: {
941
- anthropic: ["anthropic:default", "anthropic:work"],
942
- openai: ["openai:personal"],
943
- },
944
- },
945
- }
946
- ```
947
-
948
- - Per-agent profiles are stored at `<agentDir>/auth-profiles.json`.
949
- - `auth-profiles.json` supports value-level refs (`keyRef` for `api_key`, `tokenRef` for `token`) for static credential modes.
950
- - Legacy flat `auth-profiles.json` maps such as `{ "provider": { "apiKey": "..." } }` are not a runtime format; `fengming doctor --fix` rewrites them to canonical `provider:default` API-key profiles with a `.legacy-flat.*.bak` backup.
951
- - OAuth-mode profiles (`auth.profiles.<id>.mode = "oauth"`) do not support SecretRef-backed auth-profile credentials.
952
- - Static runtime credentials come from in-memory resolved snapshots; legacy static `auth.json` entries are scrubbed when discovered.
953
- - Legacy OAuth imports from `~/.fengming/credentials/oauth.json`.
954
- - See [OAuth](/concepts/oauth).
955
- - Secrets runtime behavior and `audit/configure/apply` tooling: [Secrets Management](/gateway/secrets).
956
-
957
- ### `auth.cooldowns`
958
-
959
- ```json5
960
- {
961
- auth: {
962
- cooldowns: {
963
- billingBackoffHours: 5,
964
- billingBackoffHoursByProvider: { anthropic: 3, openai: 8 },
965
- billingMaxHours: 24,
966
- authPermanentBackoffMinutes: 10,
967
- authPermanentMaxMinutes: 60,
968
- failureWindowHours: 24,
969
- overloadedProfileRotations: 1,
970
- overloadedBackoffMs: 0,
971
- rateLimitedProfileRotations: 1,
972
- },
973
- },
974
- }
975
- ```
976
-
977
- - `billingBackoffHours`: base backoff in hours when a profile fails due to true
978
- billing/insufficient-credit errors (default: `5`). Explicit billing text can
979
- still land here even on `401`/`403` responses, but provider-specific text
980
- matchers stay scoped to the provider that owns them (for example OpenRouter
981
- `Key limit exceeded`). Retryable HTTP `402` usage-window or
982
- organization/workspace spend-limit messages stay in the `rate_limit` path
983
- instead.
984
- - `billingBackoffHoursByProvider`: optional per-provider overrides for billing backoff hours.
985
- - `billingMaxHours`: cap in hours for billing backoff exponential growth (default: `24`).
986
- - `authPermanentBackoffMinutes`: base backoff in minutes for high-confidence `auth_permanent` failures (default: `10`).
987
- - `authPermanentMaxMinutes`: cap in minutes for `auth_permanent` backoff growth (default: `60`).
988
- - `failureWindowHours`: rolling window in hours used for backoff counters (default: `24`).
989
- - `overloadedProfileRotations`: maximum same-provider auth-profile rotations for overloaded errors before switching to model fallback (default: `1`). Provider-busy shapes such as `ModelNotReadyException` land here.
990
- - `overloadedBackoffMs`: fixed delay before retrying an overloaded provider/profile rotation (default: `0`).
991
- - `rateLimitedProfileRotations`: maximum same-provider auth-profile rotations for rate-limit errors before switching to model fallback (default: `1`). That rate-limit bucket includes provider-shaped text such as `Too many concurrent requests`, `ThrottlingException`, `concurrency limit reached`, `workers_ai ... quota limit exceeded`, and `resource exhausted`.
992
-
993
- ---
994
-
995
- ## Logging
996
-
997
- ```json5
998
- {
999
- logging: {
1000
- level: "info",
1001
- file: "/tmp/fengming/fengming.log",
1002
- consoleLevel: "info",
1003
- consoleStyle: "pretty", // pretty | compact | json
1004
- redactSensitive: "tools", // off | tools
1005
- redactPatterns: ["\\bTOKEN\\b\\s*[=:]\\s*([\"']?)([^\\s\"']+)\\1"],
1006
- },
1007
- }
1008
- ```
1009
-
1010
- - Default log file: `/tmp/fengming/fengming-YYYY-MM-DD.log`.
1011
- - Set `logging.file` for a stable path.
1012
- - `consoleLevel` bumps to `debug` when `--verbose`.
1013
- - `maxFileBytes`: maximum active log file size in bytes before rotation (positive integer; default: `104857600` = 100 MB). FengMing keeps up to five numbered archives beside the active file.
1014
- - `redactSensitive` / `redactPatterns`: best-effort masking for console output, file logs, OTLP log records, and persisted session transcript text. `redactSensitive: "off"` only disables this general log/transcript policy; UI/tool/diagnostic safety surfaces still redact secrets before emission.
1015
-
1016
- ---
1017
-
1018
- ## Diagnostics
1019
-
1020
- ```json5
1021
- {
1022
- diagnostics: {
1023
- enabled: true,
1024
- flags: ["telegram.*"],
1025
- stuckSessionWarnMs: 30000,
1026
- stuckSessionAbortMs: 300000,
1027
- memoryPressureSnapshot: false,
1028
-
1029
- otel: {
1030
- enabled: false,
1031
- endpoint: "https://otel-collector.example.com:4318",
1032
- tracesEndpoint: "https://traces.example.com/v1/traces",
1033
- metricsEndpoint: "https://metrics.example.com/v1/metrics",
1034
- logsEndpoint: "https://logs.example.com/v1/logs",
1035
- protocol: "http/protobuf", // http/protobuf | grpc
1036
- headers: { "x-tenant-id": "my-org" },
1037
- serviceName: "fengming-gateway",
1038
- traces: true,
1039
- metrics: true,
1040
- logs: false,
1041
- sampleRate: 1.0,
1042
- flushIntervalMs: 5000,
1043
- captureContent: {
1044
- enabled: false,
1045
- inputMessages: false,
1046
- outputMessages: false,
1047
- toolInputs: false,
1048
- toolOutputs: false,
1049
- systemPrompt: false,
1050
- toolDefinitions: false,
1051
- },
1052
- },
1053
-
1054
- cacheTrace: {
1055
- enabled: false,
1056
- filePath: "~/.fengming/logs/cache-trace.jsonl",
1057
- includeMessages: true,
1058
- includePrompt: true,
1059
- includeSystem: true,
1060
- },
1061
- },
1062
- }
1063
- ```
1064
-
1065
- - `enabled`: master toggle for instrumentation output (default: `true`).
1066
- - `flags`: array of flag strings enabling targeted log output (supports wildcards like `"telegram.*"` or `"*"`).
1067
- - `stuckSessionWarnMs`: no-progress age threshold in ms for classifying long-running processing sessions as `session.long_running`, `session.stalled`, or `session.stuck`. Reply, tool, status, block, and ACP progress reset the timer; repeated `session.stuck` diagnostics back off while unchanged.
1068
- - `stuckSessionAbortMs`: no-progress age threshold in ms before eligible stalled active work may be abort-drained for recovery. When unset, FengMing uses the safer extended embedded-run window of at least 5 minutes and 3x `stuckSessionWarnMs`.
1069
- - `memoryPressureSnapshot`: captures a redacted pre-OOM stability snapshot when memory pressure reaches `critical` (default: `false`). Set to `true` to add the stability bundle file scan/write while keeping normal memory pressure events.
1070
- - `otel.enabled`: enables the OpenTelemetry export pipeline (default: `false`). For the full configuration, signal catalog, and privacy model, see [OpenTelemetry export](/gateway/opentelemetry).
1071
- - `otel.endpoint`: collector URL for OTel export.
1072
- - `otel.tracesEndpoint` / `otel.metricsEndpoint` / `otel.logsEndpoint`: optional signal-specific OTLP endpoints. When set, they override `otel.endpoint` for that signal only.
1073
- - `otel.protocol`: `"http/protobuf"` (default) or `"grpc"`.
1074
- - `otel.headers`: extra HTTP/gRPC metadata headers sent with OTel export requests.
1075
- - `otel.serviceName`: service name for resource attributes.
1076
- - `otel.traces` / `otel.metrics` / `otel.logs`: enable trace, metrics, or log export.
1077
- - `otel.sampleRate`: trace sampling rate `0`-`1`.
1078
- - `otel.flushIntervalMs`: periodic telemetry flush interval in ms.
1079
- - `otel.captureContent`: opt-in raw content capture for OTEL span attributes. Defaults to off. Boolean `true` captures non-system message/tool content; the object form lets you enable `inputMessages`, `outputMessages`, `toolInputs`, `toolOutputs`, `systemPrompt`, and `toolDefinitions` explicitly.
1080
- - `OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental`: environment toggle for latest experimental GenAI inference span shape, including `{gen_ai.operation.name} {gen_ai.request.model}` span names, `CLIENT` span kind, and `gen_ai.provider.name` instead of legacy `gen_ai.system`. By default spans keep `fengming.model.call` and `gen_ai.system` for compatibility; GenAI metrics use bounded semantic attributes.
1081
- - `FENGMING_OTEL_PRELOADED=1`: environment toggle for hosts that already registered a global OpenTelemetry SDK. FengMing then skips plugin-owned SDK startup/shutdown while keeping diagnostic listeners active.
1082
- - `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`, `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT`, and `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`: signal-specific endpoint env vars used when the matching config key is unset.
1083
- - `cacheTrace.enabled`: log cache trace snapshots for embedded runs (default: `false`).
1084
- - `cacheTrace.filePath`: output path for cache trace JSONL (default: `$FENGMING_STATE_DIR/logs/cache-trace.jsonl`).
1085
- - `cacheTrace.includeMessages` / `includePrompt` / `includeSystem`: control what is included in cache trace output (all default: `true`).
1086
-
1087
- ---
1088
-
1089
- ## Update
1090
-
1091
- ```json5
1092
- {
1093
- update: {
1094
- channel: "stable", // stable | beta | dev
1095
- checkOnStart: true,
1096
-
1097
- auto: {
1098
- enabled: false,
1099
- stableDelayHours: 6,
1100
- stableJitterHours: 12,
1101
- betaCheckIntervalHours: 1,
1102
- },
1103
- },
1104
- }
1105
- ```
1106
-
1107
- - `channel`: release channel for npm/git installs - `"stable"`, `"beta"`, or `"dev"`.
1108
- - `checkOnStart`: check for npm updates when the gateway starts (default: `true`).
1109
- - `auto.enabled`: enable background auto-update for package installs (default: `false`).
1110
- - `auto.stableDelayHours`: minimum delay in hours before stable-channel auto-apply (default: `6`; max: `168`).
1111
- - `auto.stableJitterHours`: extra stable-channel rollout spread window in hours (default: `12`; max: `168`).
1112
- - `auto.betaCheckIntervalHours`: how often beta-channel checks run in hours (default: `1`; max: `24`).
1113
-
1114
- ---
1115
-
1116
- ## ACP
1117
-
1118
- ```json5
1119
- {
1120
- acp: {
1121
- enabled: true,
1122
- dispatch: { enabled: true },
1123
- backend: "acpx",
1124
- defaultAgent: "main",
1125
- allowedAgents: ["main", "ops"],
1126
- maxConcurrentSessions: 10,
1127
-
1128
- stream: {
1129
- coalesceIdleMs: 50,
1130
- maxChunkChars: 1000,
1131
- repeatSuppression: true,
1132
- deliveryMode: "live", // live | final_only
1133
- hiddenBoundarySeparator: "paragraph", // none | space | newline | paragraph
1134
- maxOutputChars: 50000,
1135
- maxSessionUpdateChars: 500,
1136
- },
1137
-
1138
- runtime: {
1139
- ttlMinutes: 30,
1140
- },
1141
- },
1142
- }
1143
- ```
1144
-
1145
- - `enabled`: global ACP feature gate (default: `true`; set `false` to hide ACP dispatch and spawn affordances).
1146
- - `dispatch.enabled`: independent gate for ACP session turn dispatch (default: `true`). Set `false` to keep ACP commands available while blocking execution.
1147
- - `backend`: default ACP runtime backend id (must match a registered ACP runtime plugin).
1148
- Install the backend plugin first, and if `plugins.allow` is set, include the backend plugin id (for example `acpx`) or the ACP backend will not load.
1149
- - `defaultAgent`: fallback ACP target agent id when spawns do not specify an explicit target.
1150
- - `allowedAgents`: allowlist of agent ids permitted for ACP runtime sessions; empty means no additional restriction.
1151
- - `maxConcurrentSessions`: maximum concurrently active ACP sessions.
1152
- - `stream.coalesceIdleMs`: idle flush window in ms for streamed text.
1153
- - `stream.maxChunkChars`: maximum chunk size before splitting streamed block projection.
1154
- - `stream.repeatSuppression`: suppress repeated status/tool lines per turn (default: `true`).
1155
- - `stream.deliveryMode`: `"live"` streams incrementally; `"final_only"` buffers until turn terminal events.
1156
- - `stream.hiddenBoundarySeparator`: separator before visible text after hidden tool events (default: `"paragraph"`).
1157
- - `stream.maxOutputChars`: maximum assistant output characters projected per ACP turn.
1158
- - `stream.maxSessionUpdateChars`: maximum characters for projected ACP status/update lines.
1159
- - `stream.tagVisibility`: record of tag names to boolean visibility overrides for streamed events.
1160
- - `runtime.ttlMinutes`: idle TTL in minutes for ACP session workers before eligible cleanup.
1161
- - `runtime.installCommand`: optional install command to run when bootstrapping an ACP runtime environment.
1162
-
1163
- ---
1164
-
1165
- ## CLI
1166
-
1167
- ```json5
1168
- {
1169
- cli: {
1170
- banner: {
1171
- taglineMode: "off", // random | default | off
1172
- },
1173
- },
1174
- }
1175
- ```
1176
-
1177
- - `cli.banner.taglineMode` controls banner tagline style:
1178
- - `"random"` (default): rotating funny/seasonal taglines.
1179
- - `"default"`: fixed neutral tagline (`All your chats, one FengMing.`).
1180
- - `"off"`: no tagline text (banner title/version still shown).
1181
- - To hide the entire banner (not just taglines), set env `FENGMING_HIDE_BANNER=1`.
1182
-
1183
- ---
1184
-
1185
- ## Wizard
1186
-
1187
- Metadata written by CLI guided setup flows (`onboard`, `configure`, `doctor`):
1188
-
1189
- ```json5
1190
- {
1191
- wizard: {
1192
- lastRunAt: "2026-01-01T00:00:00.000Z",
1193
- lastRunVersion: "2026.1.4",
1194
- lastRunCommit: "abc1234",
1195
- lastRunCommand: "configure",
1196
- lastRunMode: "local",
1197
- },
1198
- }
1199
- ```
1200
-
1201
- ---
1202
-
1203
- ## Identity
1204
-
1205
- See `agents.list` identity fields under [Agent defaults](/gateway/config-agents#agent-defaults).
1206
-
1207
- ---
1208
-
1209
- ## Bridge (legacy, removed)
1210
-
1211
- Current builds no longer include the TCP bridge. Nodes connect over the Gateway WebSocket. `bridge.*` keys are no longer part of the config schema (validation fails until removed; `fengming doctor --fix` can strip unknown keys).
1212
-
1213
- <Accordion title="Legacy bridge config (historical reference)">
1214
-
1215
- ```json
1216
- {
1217
- "bridge": {
1218
- "enabled": true,
1219
- "port": 18790,
1220
- "bind": "tailnet",
1221
- "tls": {
1222
- "enabled": true,
1223
- "autoGenerate": true
1224
- }
1225
- }
1226
- }
1227
- ```
1228
-
1229
- </Accordion>
1230
-
1231
- ---
1232
-
1233
- ## Cron
1234
-
1235
- ```json5
1236
- {
1237
- cron: {
1238
- enabled: true,
1239
- maxConcurrentRuns: 8, // default; cron dispatch + isolated cron agent-turn execution
1240
- webhook: "https://example.invalid/legacy", // deprecated fallback for stored notify:true jobs
1241
- webhookToken: "replace-with-dedicated-token", // optional bearer token for outbound webhook auth
1242
- sessionRetention: "24h", // duration string or false
1243
- runLog: {
1244
- maxBytes: "2mb", // default 2_000_000 bytes
1245
- keepLines: 2000, // default 2000
1246
- },
1247
- },
1248
- }
1249
- ```
1250
-
1251
- - `sessionRetention`: how long to keep completed isolated cron run sessions before pruning from `sessions.json`. Also controls cleanup of archived deleted cron transcripts. Default: `24h`; set `false` to disable.
1252
- - `runLog.maxBytes`: max size per run log file (`cron/runs/<jobId>.jsonl`) before pruning. Default: `2_000_000` bytes.
1253
- - `runLog.keepLines`: newest lines retained when run-log pruning is triggered. Default: `2000`.
1254
- - `webhookToken`: bearer token used for cron webhook POST delivery (`delivery.mode = "webhook"`), if omitted no auth header is sent.
1255
- - `webhook`: deprecated legacy fallback webhook URL (http/https) used only for stored jobs that still have `notify: true`.
1256
-
1257
- ### `cron.retry`
1258
-
1259
- ```json5
1260
- {
1261
- cron: {
1262
- retry: {
1263
- maxAttempts: 3,
1264
- backoffMs: [30000, 60000, 300000],
1265
- retryOn: ["rate_limit", "overloaded", "network", "timeout", "server_error"],
1266
- },
1267
- },
1268
- }
1269
- ```
1270
-
1271
- - `maxAttempts`: maximum retries for cron jobs on transient errors (default: `3`; range: `0`-`10`).
1272
- - `backoffMs`: array of backoff delays in ms for each retry attempt (default: `[30000, 60000, 300000]`; 1-10 entries).
1273
- - `retryOn`: error types that trigger retries - `"rate_limit"`, `"overloaded"`, `"network"`, `"timeout"`, `"server_error"`. Omit to retry all transient types.
1274
-
1275
- One-shot jobs stay enabled until retry attempts are exhausted, then disable while keeping the final error state. Recurring jobs use the same transient retry policy to run again after backoff before their next scheduled slot; permanent errors or exhausted transient retries fall back to the normal recurring schedule with error backoff.
1276
-
1277
- ### `cron.failureAlert`
1278
-
1279
- ```json5
1280
- {
1281
- cron: {
1282
- failureAlert: {
1283
- enabled: false,
1284
- after: 3,
1285
- cooldownMs: 3600000,
1286
- includeSkipped: false,
1287
- mode: "announce",
1288
- accountId: "main",
1289
- },
1290
- },
1291
- }
1292
- ```
1293
-
1294
- - `enabled`: enable failure alerts for cron jobs (default: `false`).
1295
- - `after`: consecutive failures before an alert fires (positive integer, min: `1`).
1296
- - `cooldownMs`: minimum milliseconds between repeated alerts for the same job (non-negative integer).
1297
- - `includeSkipped`: count consecutive skipped runs toward the alert threshold (default: `false`). Skipped runs are tracked separately and do not affect execution-error backoff.
1298
- - `mode`: delivery mode - `"announce"` sends via a channel message; `"webhook"` posts to the configured webhook.
1299
- - `accountId`: optional account or channel id to scope alert delivery.
1300
-
1301
- ### `cron.failureDestination`
1302
-
1303
- ```json5
1304
- {
1305
- cron: {
1306
- failureDestination: {
1307
- mode: "announce",
1308
- channel: "last",
1309
- to: "channel:C1234567890",
1310
- accountId: "main",
1311
- },
1312
- },
1313
- }
1314
- ```
1315
-
1316
- - Default destination for cron failure notifications across all jobs.
1317
- - `mode`: `"announce"` or `"webhook"`; defaults to `"announce"` when enough target data exists.
1318
- - `channel`: channel override for announce delivery. `"last"` reuses the last known delivery channel.
1319
- - `to`: explicit announce target or webhook URL. Required for webhook mode.
1320
- - `accountId`: optional account override for delivery.
1321
- - Per-job `delivery.failureDestination` overrides this global default.
1322
- - When neither global nor per-job failure destination is set, jobs that already deliver via `announce` fall back to that primary announce target on failure.
1323
- - `delivery.failureDestination` is only supported for `sessionTarget="isolated"` jobs unless the job's primary `delivery.mode` is `"webhook"`.
1324
-
1325
- See [Cron Jobs](/automation/cron-jobs). Isolated cron executions are tracked as [background tasks](/automation/tasks).
1326
-
1327
- ---
1328
-
1329
- ## Media model template variables
1330
-
1331
- Template placeholders expanded in `tools.media.models[].args`:
1332
-
1333
- | Variable | Description |
1334
- | ------------------ | ------------------------------------------------- |
1335
- | `{{Body}}` | Full inbound message body |
1336
- | `{{RawBody}}` | Raw body (no history/sender wrappers) |
1337
- | `{{BodyStripped}}` | Body with group mentions stripped |
1338
- | `{{From}}` | Sender identifier |
1339
- | `{{To}}` | Destination identifier |
1340
- | `{{MessageSid}}` | Channel message id |
1341
- | `{{SessionId}}` | Current session UUID |
1342
- | `{{IsNewSession}}` | `"true"` when new session created |
1343
- | `{{MediaUrl}}` | Inbound media pseudo-URL |
1344
- | `{{MediaPath}}` | Local media path |
1345
- | `{{MediaType}}` | Media type (image/audio/document/…) |
1346
- | `{{Transcript}}` | Audio transcript |
1347
- | `{{Prompt}}` | Resolved media prompt for CLI entries |
1348
- | `{{MaxChars}}` | Resolved max output chars for CLI entries |
1349
- | `{{ChatType}}` | `"direct"` or `"group"` |
1350
- | `{{GroupSubject}}` | Group subject (best effort) |
1351
- | `{{GroupMembers}}` | Group members preview (best effort) |
1352
- | `{{SenderName}}` | Sender display name (best effort) |
1353
- | `{{SenderE164}}` | Sender phone number (best effort) |
1354
- | `{{Provider}}` | Provider hint (whatsapp, telegram, discord, etc.) |
1355
-
1356
- ---
1357
-
1358
- ## Config includes (`$include`)
1359
-
1360
- Split config into multiple files:
1361
-
1362
- ```json5
1363
- // ~/.fengming/fengming.json
1364
- {
1365
- gateway: { port: 18789 },
1366
- agents: { $include: "./agents.json5" },
1367
- broadcast: {
1368
- $include: ["./clients/mueller.json5", "./clients/schmidt.json5"],
1369
- },
1370
- }
1371
- ```
1372
-
1373
- **Merge behavior:**
1374
-
1375
- - Single file: replaces the containing object.
1376
- - Array of files: deep-merged in order (later overrides earlier).
1377
- - Sibling keys: merged after includes (override included values).
1378
- - Nested includes: up to 10 levels deep.
1379
- - Paths: resolved relative to the including file, but must stay inside the top-level config directory (`dirname` of `fengming.json`). Absolute/`../` forms are allowed only when they still resolve inside that boundary. Paths must not contain null bytes and must be strictly shorter than 4096 characters before and after resolution.
1380
- - FengMing-owned writes that change only one top-level section backed by a single-file include write through to that included file. For example, `plugins install` updates `plugins: { $include: "./plugins.json5" }` in `plugins.json5` and leaves `fengming.json` intact.
1381
- - Root includes, include arrays, and includes with sibling overrides are read-only for FengMing-owned writes; those writes fail closed instead of flattening the config.
1382
- - Errors: clear messages for missing files, parse errors, circular includes, invalid path format, and excessive length.
1383
-
1384
- ---
1385
-
1386
- _Related: [Configuration](/gateway/configuration) · [Configuration Examples](/gateway/configuration-examples) · [Doctor](/gateway/doctor)_
1387
-
1388
- ## Related
1389
-
1390
- - [Configuration](/gateway/configuration)
1391
- - [Configuration examples](/gateway/configuration-examples)