content large_stringlengths 3 20.5k | url large_stringlengths 54 193 | branch large_stringclasses 4 values | source large_stringclasses 42 values | embeddings listlengths 384 384 | score float64 -0.21 0.65 |
|---|---|---|---|---|---|
the required adapters - `config.listAccountIds` + `config.resolveAccount` - `capabilities` (chat types, media, threads, etc.) - `outbound.deliveryMode` + `outbound.sendText` (for basic send) 4. Add optional adapters as needed - `setup` (wizard), `security` (DM policy), `status` (health/diagnostics) - `gateway` (start/stop/login), `mentions`, `threading`, `streaming` - `actions` (message actions), `commands` (native command behavior) 5. Register the channel in your plugin - `api.registerChannel({ plugin })` Minimal config example: ```json5 { channels: { acmechat: { accounts: { default: { token: "ACME\_TOKEN", enabled: true }, }, }, }, } ``` Minimal channel plugin (outbound‑only): ```ts const plugin = { id: "acmechat", meta: { id: "acmechat", label: "AcmeChat", selectionLabel: "AcmeChat (API)", docsPath: "/channels/acmechat", blurb: "AcmeChat messaging channel.", aliases: ["acme"], }, capabilities: { chatTypes: ["direct"] }, config: { listAccountIds: (cfg) => Object.keys(cfg.channels?.acmechat?.accounts ?? {}), resolveAccount: (cfg, accountId) => cfg.channels?.acmechat?.accounts?.[accountId ?? "default"] ?? { accountId, }, }, outbound: { deliveryMode: "direct", sendText: async ({ text }) => { // deliver `text` to your channel here return { ok: true }; }, }, }; export default function (api) { api.registerChannel({ plugin }); } ``` Load the plugin (extensions dir or `plugins.load.paths`), restart the gateway, then configure `channels.` in your config. ### Agent tools See the dedicated guide: [Plugin agent tools](/plugins/agent-tools). ### Register a gateway RPC method ```ts export default function (api) { api.registerGatewayMethod("myplugin.status", ({ respond }) => { respond(true, { ok: true }); }); } ``` ### Register CLI commands ```ts export default function (api) { api.registerCli( ({ program }) => { program.command("mycmd").action(() => { console.log("Hello"); }); }, { commands: ["mycmd"] }, ); } ``` ### Register auto-reply commands Plugins can register custom slash commands that execute \*\*without invoking the AI agent\*\*. This is useful for toggle commands, status checks, or quick actions that don't need LLM processing. ```ts export default function (api) { api.registerCommand({ name: "mystatus", description: "Show plugin status", handler: (ctx) => ({ text: `Plugin is running! Channel: ${ctx.channel}`, }), }); } ``` Command handler context: - `senderId`: The sender's ID (if available) - `channel`: The channel where the command was sent - `isAuthorizedSender`: Whether the sender is an authorized user - `args`: Arguments passed after the command (if `acceptsArgs: true`) - `commandBody`: The full command text - `config`: The current OpenClaw config Command options: - `name`: Command name (without the leading `/`) - `description`: Help text shown in command lists - `acceptsArgs`: Whether the command accepts arguments (default: false). If false and arguments are provided, the command won't match and the message falls through to other handlers - `requireAuth`: Whether to require authorized sender (default: true) - `handler`: Function that returns `{ text: string }` (can be async) Example with authorization and arguments: ```ts api.registerCommand({ name: "setmode", description: "Set plugin mode", acceptsArgs: true, requireAuth: true, handler: async (ctx) => { const mode = ctx.args?.trim() || "default"; await saveMode(mode); return { text: `Mode set to: ${mode}` }; }, }); ``` Notes: - Plugin commands are processed \*\*before\*\* built-in commands and the AI agent - Commands are registered globally and work across all channels - Command names are case-insensitive (`/MyStatus` matches `/mystatus`) - Command names must start with a letter and contain only letters, numbers, hyphens, and underscores - Reserved command names (like `help`, `status`, `reset`, etc.) cannot be overridden by plugins - Duplicate command registration across plugins will fail with a diagnostic error ### Register background services ```ts export default function (api) { api.registerService({ id: "my-service", start: () => api.logger.info("ready"), stop: () => api.logger.info("bye"), }); } ``` ## Naming conventions - Gateway methods: `pluginId.action` (example: `voicecall.status`) - Tools: `snake\_case` (example: `voice\_call`) - CLI commands: kebab or camel, but avoid clashing with core commands ## Skills Plugins can ship a | https://github.com/openclaw/openclaw/blob/main//docs/plugin.md | main | opebclaw | [
-0.08515632152557373,
-0.06125983968377113,
0.02557496912777424,
0.05115892365574837,
-0.06186114624142647,
-0.010209296829998493,
0.016081202775239944,
0.04162692278623581,
-0.018773747608065605,
0.07678324729204178,
-0.03894267976284027,
-0.05381329730153084,
-0.03913560137152672,
0.12839795649051666,
0.0926847904920578,
0.014690703712403774,
-0.005531119182705879,
-0.11301714926958084,
-0.08488961309194565,
-0.11709538102149963,
0.06998884677886963,
0.04817743971943855,
0.02769504487514496,
-0.02506774291396141,
-0.015256321988999844,
-0.11553246527910233,
-0.008535320870578289,
0.007254455704241991,
0.011495091021060944,
-0.010678772814571857,
0.010820767842233181,
0.022096136584877968,
-0.08526613563299179,
0.010348941199481487,
-0.08348820358514786,
0.01508344430476427,
0.02776971645653248,
-0.050144508481025696,
0.04894281178712845,
0.00857276376336813,
0.0869055911898613,
0.03512395918369293,
-0.059198085218667984,
0.002095647156238556,
0.033807173371315,
-0.09938487410545349,
-0.055860474705696106,
0.02191339246928692,
-0.025418967008590698,
0.0662430077791214,
-0.013278177008032799,
0.019812531769275665,
-0.005272356793284416,
0.07642573863267899,
-0.019084155559539795,
-0.008218548260629177,
-0.1272740215063095,
0.038240112364292145,
0.06232456862926483,
-0.03428160026669502,
-0.039469193667173386,
-0.08431172370910645,
0.0025896336883306503,
-0.043432194739580154,
-0.12337537854909897,
-0.017440853640437126,
0.01915125921368599,
0.033205561339855194,
-0.012436679564416409,
0.02826850675046444,
-0.03608347475528717,
-0.05511096119880676,
-0.041655708104372025,
-0.0338873416185379,
0.05034872516989708,
-0.03726380318403244,
0.01811339519917965,
-0.08390814065933228,
-0.05712037906050682,
0.011063139885663986,
0.05864354595541954,
0.015992185100913048,
-0.009903873316943645,
0.035523366183042526,
-0.04763362929224968,
0.013723153620958328,
-0.0006753539200872183,
-0.07211995869874954,
-0.04064716398715973,
-0.022490115836262703,
-0.014306955970823765,
-0.06306985765695572,
-0.04742646589875221,
0.015467869117856026,
0.002748049097135663,
0.04342532157897949,
-0.06825051456689835,
0.027651624754071236,
-0.0885218009352684,
0.03331875801086426,
0.05165132135152817,
-0.04453122243285179,
0.04431020841002464,
0.039852291345596313,
0.0005281500052660704,
-0.048434339463710785,
0.021816803142428398,
0.012383497320115566,
-0.011233402416110039,
0.05865500494837761,
-0.02097879722714424,
0.060025185346603394,
0.029984982684254646,
-0.01939561404287815,
-0.005967541132122278,
0.1082141250371933,
0.02271449565887451,
-0.020854279398918152,
0.027312375605106354,
0.035289328545331955,
0.03837353736162186,
-0.07035243511199951,
-0.016731074079871178,
0.030807634815573692,
0.037093255668878555,
0.04470682516694069,
0.054149653762578964,
2.87068044794387e-33,
-0.0037987001705914736,
-0.061020802706480026,
-0.03035064786672592,
0.07213649153709412,
0.06579622626304626,
-0.00834887009114027,
-0.0019313499797135592,
-0.009452629834413528,
-0.01577073708176613,
0.009850014932453632,
-0.014987084083259106,
0.035023655742406845,
-0.05198688432574272,
-0.01892567239701748,
-0.02403554506599903,
-0.03794087469577789,
-0.014467914588749409,
-0.02042476460337639,
0.10126863420009613,
0.05123325064778328,
0.019901404157280922,
-0.0032619584817439318,
-0.0009968902450054884,
-0.0020942105911672115,
0.06632927805185318,
0.04649308696389198,
0.014305995777249336,
-0.004610871896147728,
-0.014440800994634628,
-0.005512632429599762,
0.02386903390288353,
0.02517683058977127,
0.010181713849306107,
0.013995307497680187,
0.020409654825925827,
-0.0466451533138752,
-0.05306815728545189,
0.01824394054710865,
-0.07913025468587875,
-0.027604252099990845,
0.042613860219717026,
-0.006111698690801859,
-0.17724336683750153,
-0.018858153373003006,
-0.044480517506599426,
-0.03872139751911163,
-0.010468019172549248,
-0.04605045169591904,
0.08054538816213608,
0.03606667369604111,
-0.05082569271326065,
0.035688672214746475,
-0.04780973866581917,
-0.016810407862067223,
0.14010761678218842,
-0.05022181570529938,
-0.05434176325798035,
0.04717433080077171,
0.04078645259141922,
-0.04810792952775955,
-0.04221305251121521,
-0.049603626132011414,
-0.007971949875354767,
-0.0042440821416676044,
0.07698959112167358,
0.1006564348936081,
-0.09689188748598099,
0.026325026527047157,
0.045807551592588425,
-0.05253267288208008,
-0.0036202487535774708,
0.04664081707596779,
-0.020444270223379135,
0.061713941395282745,
-0.021770168095827103,
-0.008373178541660309,
0.03639223054051399,
0.0216326005756855,
0.01078316755592823,
0.043815240263938904,
0.02342938631772995,
-0.017317991703748703,
-0.021997833624482155,
0.11117707192897797,
0.028487391769886017,
-0.005106290336698294,
0.05435243248939514,
-0.00025333513622172177,
0.005688761826604605,
-0.026853419840335846,
-0.006045999936759472,
0.09987854212522507,
0.06163666397333145,
-0.014619925990700722,
-0.06534654647111893,
-4.390522460857108e-33,
-0.0023697400465607643,
0.013690020889043808,
-0.041961945593357086,
0.00127202901057899,
0.002061098348349333,
-0.059190161526203156,
0.09032932668924332,
0.025497639551758766,
0.06405998021364212,
0.017690148204565048,
-0.045452557504177094,
-0.014598963782191277,
0.00815755408257246,
-0.008797789923846722,
0.033525288105010986,
0.01905771717429161,
-0.06925315409898758,
-0.06151943281292915,
0.062206972390413284,
0.017219943925738335,
-0.005560889840126038,
0.061405736953020096,
0.003715451108291745,
0.03140249103307724,
0.02079327404499054,
-0.011699419468641281,
-0.0262821763753891,
0.025569267570972443,
-0.039419881999492645,
-0.07293570041656494,
0.01599799655377865,
0.0092092826962471,
-0.019899403676390648,
-0.00038735318230465055,
-0.04016079381108284,
-0.06300843507051468,
0.06531480699777603,
0.19065266847610474,
-0.057272300124168396,
0.03050624206662178,
0.12995478510856628,
-0.005767775699496269,
-0.09563662856817245,
0.010729764588177204,
-0.00965398270636797,
-0.01866982690989971,
0.004038881044834852,
-0.06548583507537842,
-0.08243875950574875,
-0.017363248392939568,
0.043348170816898346,
-0.04497996345162392,
0.02927970141172409,
0.02493097633123398,
-0.000945822917856276,
0.010447674430906773,
0.14361803233623505,
-0.04567106068134308,
0.09755583107471466,
-0.041671037673950195,
0.010003394447267056,
-0.16869674623012543,
0.03409842401742935,
-0.022513531148433685,
0.1136462390422821,
-0.04398511350154877,
-0.01389769371598959,
-0.0020235630217939615,
0.0560481958091259,
0.008251737803220749,
-0.017959900200366974,
-0.04013095423579216,
0.0325041338801384,
-0.01246013306081295,
0.13264772295951843,
0.019280221313238144,
-0.0634288489818573,
-0.051226209849119186,
-0.012264733202755451,
0.05840950831770897,
-0.12112168967723846,
0.02843494340777397,
-0.037490006536245346,
0.05705690011382103,
0.006108725909143686,
0.05553269386291504,
0.08079252392053604,
0.08767880499362946,
0.03283160179853439,
0.05050630867481232,
-0.026168037205934525,
-0.0034989509731531143,
-0.059414368122816086,
0.03173688054084778,
0.00885886512696743,
-5.363808597280695e-8,
-0.08928122371435165,
-0.05002664402127266,
-0.0958879142999649,
0.00832249317318201,
-0.0016972101293504238,
0.004583817441016436,
-0.033710282295942307,
-0.08296911418437958,
0.07040739804506302,
0.005862679332494736,
-0.007244683802127838,
0.09483867883682251,
0.02465302310883999,
0.0882517546415329,
0.02975093014538288,
-0.024423610419034958,
-0.07690557837486267,
0.022019105032086372,
0.012422693893313408,
0.029576333239674568,
-0.05248793959617615,
0.008157052099704742,
0.010950420051813126,
0.04596373066306114,
-0.014835311099886894,
-0.01770891807973385,
0.02760196477174759,
0.03683656081557274,
-0.0982733964920044,
-0.033822547644376755,
-0.0967683419585228,
-0.009522592648863792,
0.014007353223860264,
-0.036348793655633926,
-0.0717405304312706,
-0.04869278520345688,
0.014081018976867199,
-0.06544215977191925,
-0.07072179019451141,
0.032351672649383545,
0.03965667262673378,
-0.032997675240039825,
-0.015823138877749443,
-0.005174863152205944,
0.02385825105011463,
-0.008431244641542435,
-0.008746407926082611,
-0.012860025279223919,
0.08285679668188095,
0.016366660594940186,
-0.03267934173345566,
0.0365050807595253,
-0.008416296914219856,
-0.02591157704591751,
0.03745346516370773,
-0.04800835996866226,
0.03642855957150459,
-0.006445830222219229,
-0.040149133652448654,
-0.009555277414619923,
0.005604292266070843,
0.07413233816623688,
-0.024395499378442764,
-0.07246218621730804
] | 0.065233 |
default function (api) { api.registerService({ id: "my-service", start: () => api.logger.info("ready"), stop: () => api.logger.info("bye"), }); } ``` ## Naming conventions - Gateway methods: `pluginId.action` (example: `voicecall.status`) - Tools: `snake\_case` (example: `voice\_call`) - CLI commands: kebab or camel, but avoid clashing with core commands ## Skills Plugins can ship a skill in the repo (`skills//SKILL.md`). Enable it with `plugins.entries..enabled` (or other config gates) and ensure it’s present in your workspace/managed skills locations. ## Distribution (npm) Recommended packaging: - Main package: `openclaw` (this repo) - Plugins: separate npm packages under `@openclaw/\*` (example: `@openclaw/voice-call`) Publishing contract: - Plugin `package.json` must include `openclaw.extensions` with one or more entry files. - Entry files can be `.js` or `.ts` (jiti loads TS at runtime). - `openclaw plugins install ` uses `npm pack`, extracts into `~/.openclaw/extensions//`, and enables it in config. - Config key stability: scoped packages are normalized to the \*\*unscoped\*\* id for `plugins.entries.\*`. ## Example plugin: Voice Call This repo includes a voice‑call plugin (Twilio or log fallback): - Source: `extensions/voice-call` - Skill: `skills/voice-call` - CLI: `openclaw voicecall start|status` - Tool: `voice\_call` - RPC: `voicecall.start`, `voicecall.status` - Config (twilio): `provider: "twilio"` + `twilio.accountSid/authToken/from` (optional `statusCallbackUrl`, `twimlUrl`) - Config (dev): `provider: "log"` (no network) See [Voice Call](/plugins/voice-call) and `extensions/voice-call/README.md` for setup and usage. ## Safety notes Plugins run in-process with the Gateway. Treat them as trusted code: - Only install plugins you trust. - Prefer `plugins.allow` allowlists. - Restart the Gateway after changes. ## Testing plugins Plugins can (and should) ship tests: - In-repo plugins can keep Vitest tests under `src/\*\*` (example: `src/plugins/voice-call.plugin.test.ts`). - Separately published plugins should run their own CI (lint/build/test) and validate `openclaw.extensions` points at the built entrypoint (`dist/index.js`). | https://github.com/openclaw/openclaw/blob/main//docs/plugin.md | main | opebclaw | [
-0.1330041140317917,
-0.05383579060435295,
-0.07078954577445984,
0.009232908487319946,
-0.09400629252195358,
-0.0077003855258226395,
-0.003247699001803994,
-0.035793520510196686,
-0.06866299360990524,
0.025151213631033897,
0.022679192945361137,
-0.018734438344836235,
0.0012048559729009867,
0.0816294476389885,
0.07013066112995148,
0.022967727854847908,
-0.019712291657924652,
-0.020651230588555336,
-0.015907177701592445,
-0.11717475950717926,
0.06793537735939026,
0.07216174900531769,
0.04355856031179428,
-0.00992649607360363,
-0.040301937609910965,
-0.06683967262506485,
-0.005150225944817066,
-0.04116189107298851,
0.007285019848495722,
-0.05052167549729347,
0.04739240184426308,
0.041305385529994965,
-0.019155079498887062,
0.020479900762438774,
-0.05702761560678482,
0.10232257097959518,
0.008968918584287167,
0.013189130462706089,
-0.010400555096566677,
-0.06133636459708214,
0.0529111810028553,
-0.02705344744026661,
-0.025994952768087387,
-0.11017674952745438,
0.03208376094698906,
-0.06587836891412735,
-0.03439688682556152,
-0.01214358489960432,
0.03467356413602829,
0.029376719146966934,
-0.03263087570667267,
-0.11764290928840637,
0.06418902426958084,
-0.05328681692481041,
0.006257892120629549,
0.0380496047437191,
0.040572863072156906,
0.02474617213010788,
-0.011759893968701363,
-0.05194033309817314,
-0.01182583998888731,
-0.027064941823482513,
-0.06105026602745056,
0.008704926818609238,
-0.08100505918264389,
0.0010551349259912968,
-0.055768780410289764,
-0.012571066617965698,
0.026632292196154594,
-0.0394749715924263,
-0.0915534570813179,
-0.06087295338511467,
-0.03639344871044159,
-0.054593637585639954,
0.042126670479774475,
-0.051682524383068085,
0.007850969210267067,
-0.029031114652752876,
-0.004807459656149149,
-0.04106219857931137,
0.04787313938140869,
0.02232469990849495,
0.01574981026351452,
0.059166356921195984,
-0.0018703944515436888,
0.06967361271381378,
0.01014903374016285,
0.042817123234272,
0.07565050572156906,
-0.043607473373413086,
0.021595394238829613,
-0.06646153330802917,
-0.08100413531064987,
-0.030637837946414948,
-0.04492148011922836,
0.025275642052292824,
-0.04391108453273773,
0.053685180842876434,
-0.07532036304473877,
0.04398145526647568,
-0.07377801835536957,
-0.10448195785284042,
-0.036607526242733,
-0.032138824462890625,
-0.015773188322782516,
0.05872941017150879,
-0.03959198296070099,
0.019536815583705902,
0.034473586827516556,
0.048190560191869736,
-0.051019467413425446,
0.06749849021434784,
-0.05060368403792381,
0.04484850913286209,
0.03527598828077316,
0.11440233141183853,
-0.012244006618857384,
-0.05713243782520294,
0.006498615723103285,
0.06880006939172745,
0.04406232759356499,
0.0778423398733139,
0.000367961562005803,
-0.02118493616580963,
0.047391556203365326,
0.04371681064367294,
0.03308151289820671,
3.65955415576773e-33,
0.11508163064718246,
0.0177482757717371,
0.01839175447821617,
0.09655501693487167,
0.12326008826494217,
-0.004732708912342787,
0.05531080812215805,
0.021329589188098907,
-0.062041305005550385,
-0.024203935638070107,
-0.05813562497496605,
0.08284035325050354,
-0.03204912319779396,
-0.016376134008169174,
0.011949704959988594,
0.03660733625292778,
-0.0685393288731575,
0.0003366093151271343,
0.07933187484741211,
0.008470077067613602,
0.015949886292219162,
-0.004302587825804949,
-0.021346470341086388,
0.050155676901340485,
0.07328350841999054,
0.04909888654947281,
0.04871421679854393,
-0.038873326033353806,
0.0530252680182457,
0.005891898181289434,
0.020772384479641914,
-0.035563550889492035,
-0.04268239811062813,
0.008481799624860287,
0.0036659527104347944,
0.09204451739788055,
-0.1076388955116272,
-0.01059003733098507,
-0.06392043828964233,
-0.04107598960399628,
-0.028835127130150795,
-0.008868084289133549,
-0.07467319816350937,
0.01160352025181055,
-0.02570115216076374,
-0.05570442974567413,
-0.004804178606718779,
0.026539631187915802,
0.12344460189342499,
0.09359388798475266,
-0.027443774044513702,
-0.003140324028208852,
0.0475308857858181,
-0.07373605668544769,
0.09648944437503815,
-0.0005553535302169621,
0.03824447840452194,
0.0833645686507225,
-0.012351087294518948,
-0.042005524039268494,
0.07116211950778961,
-0.05180231109261513,
-0.0450848825275898,
0.04204385727643967,
0.04259811341762543,
-0.024776745587587357,
-0.06168719753623009,
0.012387610040605068,
0.15266162157058716,
-0.06954318284988403,
-0.019116327166557312,
0.015178564004600048,
0.03447551280260086,
0.048301272094249725,
-0.03492867946624756,
-0.022887643426656723,
0.03438016027212143,
-0.0784362405538559,
-0.045013319700956345,
0.04612351208925247,
0.11902245134115219,
-0.011798610910773277,
-0.08230924606323242,
0.014482083730399609,
0.10469163954257965,
-0.03085016831755638,
0.028019165620207787,
-0.04995928704738617,
0.0389147512614727,
0.056030165404081345,
-0.04544694349169731,
0.029961880296468735,
-0.08832140266895294,
0.05918684974312782,
-0.07698071002960205,
-5.5222898911967446e-33,
0.029098371043801308,
-0.021218374371528625,
-0.013610516674816608,
0.08693592995405197,
0.01675817370414734,
-0.015365359373390675,
0.09823664277791977,
0.007765061222016811,
0.007920445874333382,
-0.02221088670194149,
-0.004619965795427561,
0.008677242323756218,
0.08093351125717163,
-0.03284180909395218,
0.046792563050985336,
0.009360014460980892,
-0.21487291157245636,
0.006013763137161732,
0.046172045171260834,
0.01579355075955391,
-0.02573980763554573,
0.06654328852891922,
0.0024825374130159616,
0.06460631638765335,
-0.03560531511902809,
-0.04945836216211319,
-0.053478192538022995,
0.03194001317024231,
-0.011863152496516705,
0.011771292425692081,
0.015777794644236565,
-0.013140959665179253,
-0.1221078485250473,
0.012312229722738266,
-0.03406684845685959,
-0.022844072431325912,
0.008068709634244442,
0.08195455372333527,
0.02069126069545746,
0.0385865680873394,
0.013753551989793777,
-0.04986519366502762,
-0.07141685485839844,
-0.0743265375494957,
-0.005602927878499031,
-0.06897763907909393,
-0.030150245875120163,
-0.04479010030627251,
-0.09857181459665298,
-0.06896829605102539,
0.01084378082305193,
-0.04467715695500374,
0.005543873645365238,
0.03651438280940056,
-0.01864827238023281,
0.029104985296726227,
0.09867080301046371,
-0.07735825330018997,
0.026428377255797386,
-0.0023266542702913284,
0.028737453743815422,
-0.06204098090529442,
-0.011509986594319344,
0.04499033838510513,
-0.0007955034961923957,
-0.05796513333916664,
-0.006118808872997761,
0.06822313368320465,
-0.011308359913527966,
0.04474078491330147,
-0.029533876106142998,
0.01957707293331623,
0.09027509391307831,
-0.08828406780958176,
0.03659120574593544,
-0.0011840122751891613,
-0.09379461407661438,
-0.07039634883403778,
-0.06219317764043808,
0.004242187365889549,
-0.016316791996359825,
-0.038320910185575485,
0.02986004762351513,
0.030801676213741302,
-0.009856276214122772,
0.0771327018737793,
0.1118352860212326,
0.04586782678961754,
-0.006609706673771143,
-0.001978469081223011,
-0.07143985480070114,
0.06354989111423492,
-0.01992303691804409,
0.006812576670199633,
-0.041189875453710556,
-6.457234036361115e-8,
-0.05238933488726616,
-0.00036086354521103203,
0.000426404265454039,
-0.03537774458527565,
0.06714176386594772,
0.016109904274344444,
-0.031089846044778824,
0.027309030294418335,
0.01318239327520132,
0.07129768282175064,
0.020419377833604813,
-0.03260400891304016,
0.01875227876007557,
0.001922323484905064,
0.005729257594794035,
0.059084702283144,
0.005570262670516968,
0.11844097822904587,
-0.010817610658705235,
-0.08166029304265976,
0.03541405498981476,
0.01810263656079769,
0.0005545433959923685,
0.02941948175430298,
-0.003989949822425842,
-0.0658503919839859,
-0.014136789366602898,
0.11703833937644958,
-0.06711919605731964,
0.04636850208044052,
-0.026229938492178917,
-0.012019822373986244,
0.020641956478357315,
-0.02433229237794876,
-0.02539188787341118,
-0.005551325622946024,
-0.02624804899096489,
-0.04413837939500809,
0.009815183468163013,
-0.007822323590517044,
-0.026174282655119896,
0.0032616835087537766,
-0.015761839225888252,
-0.0197305865585804,
0.02330336906015873,
0.019368976354599,
0.012609324418008327,
-0.027083205059170723,
0.04125383496284485,
-0.0009992329869419336,
-0.018120616674423218,
0.0275926161557436,
-0.012256081216037273,
0.011838207952678204,
0.023243695497512817,
0.07620055228471756,
0.025927795097231865,
-0.07386532425880432,
0.01203166600316763,
-0.007724011316895485,
-0.0010711891809478402,
-0.008464773185551167,
0.043696317821741104,
-0.012316889129579067
] | 0.123742 |
# TUI (Terminal UI) ## Quick start 1. Start the Gateway. ```bash openclaw gateway ``` 2. Open the TUI. ```bash openclaw tui ``` 3. Type a message and press Enter. Remote Gateway: ```bash openclaw tui --url ws://: --token ``` Use `--password` if your Gateway uses password auth. ## What you see - Header: connection URL, current agent, current session. - Chat log: user messages, assistant replies, system notices, tool cards. - Status line: connection/run state (connecting, running, streaming, idle, error). - Footer: connection state + agent + session + model + think/verbose/reasoning + token counts + deliver. - Input: text editor with autocomplete. ## Mental model: agents + sessions - Agents are unique slugs (e.g. `main`, `research`). The Gateway exposes the list. - Sessions belong to the current agent. - Session keys are stored as `agent::`. - If you type `/session main`, the TUI expands it to `agent::main`. - If you type `/session agent:other:main`, you switch to that agent session explicitly. - Session scope: - `per-sender` (default): each agent has many sessions. - `global`: the TUI always uses the `global` session (the picker may be empty). - The current agent + session are always visible in the footer. ## Sending + delivery - Messages are sent to the Gateway; delivery to providers is off by default. - Turn delivery on: - `/deliver on` - or the Settings panel - or start with `openclaw tui --deliver` ## Pickers + overlays - Model picker: list available models and set the session override. - Agent picker: choose a different agent. - Session picker: shows only sessions for the current agent. - Settings: toggle deliver, tool output expansion, and thinking visibility. ## Keyboard shortcuts - Enter: send message - Esc: abort active run - Ctrl+C: clear input (press twice to exit) - Ctrl+D: exit - Ctrl+L: model picker - Ctrl+G: agent picker - Ctrl+P: session picker - Ctrl+O: toggle tool output expansion - Ctrl+T: toggle thinking visibility (reloads history) ## Slash commands Core: - `/help` - `/status` - `/agent ` (or `/agents`) - `/session ` (or `/sessions`) - `/model ` (or `/models`) Session controls: - `/think ` - `/verbose ` - `/reasoning ` - `/usage ` - `/elevated ` (alias: `/elev`) - `/activation ` - `/deliver ` Session lifecycle: - `/new` or `/reset` (reset the session) - `/abort` (abort the active run) - `/settings` - `/exit` Other Gateway slash commands (for example, `/context`) are forwarded to the Gateway and shown as system output. See [Slash commands](/tools/slash-commands). ## Local shell commands - Prefix a line with `!` to run a local shell command on the TUI host. - The TUI prompts once per session to allow local execution; declining keeps `!` disabled for the session. - Commands run in a fresh, non-interactive shell in the TUI working directory (no persistent `cd`/env). - A lone `!` is sent as a normal message; leading spaces do not trigger local exec. ## Tool output - Tool calls show as cards with args + results. - Ctrl+O toggles between collapsed/expanded views. - While tools run, partial updates stream into the same card. ## History + streaming - On connect, the TUI loads the latest history (default 200 messages). - Streaming responses update in place until finalized. - The TUI also listens to agent tool events for richer tool cards. ## Connection details - The TUI registers with the Gateway as `mode: "tui"`. - Reconnects show a system message; event gaps are surfaced in the log. ## Options - `--url `: Gateway WebSocket URL (defaults to config or `ws://127.0.0.1:`) - `--token `: Gateway token (if required) - `--password `: Gateway | https://github.com/openclaw/openclaw/blob/main//docs/tui.md | main | opebclaw | [
-0.014638291671872139,
-0.04069377854466438,
-0.14856921136379242,
0.03943920508027077,
-0.032324306666851044,
-0.05478401109576225,
0.024520158767700195,
-0.011998558416962624,
0.07836265861988068,
0.008048074319958687,
0.0019598896615207195,
-0.023910559713840485,
0.011833078227937222,
-0.04062707722187042,
0.07363548129796982,
0.06930583715438843,
0.014982643537223339,
-0.11162824928760529,
0.0033240499906241894,
-0.12920184433460236,
-0.010044271126389503,
0.012630685232579708,
-0.031154070049524307,
-0.03425908461213112,
-0.08041056245565414,
-0.0831051841378212,
0.005127669312059879,
0.004692805465310812,
-0.0443933829665184,
-0.015707209706306458,
0.03763410449028015,
0.04283837229013443,
-0.08984506130218506,
-0.0064019495621323586,
0.05761829763650894,
0.05320889502763748,
0.03686676546931267,
0.029396982863545418,
0.016313165426254272,
-0.0705079734325409,
0.09341918677091599,
-0.05329987406730652,
-0.007899642921984196,
-0.024909991770982742,
-0.008875565603375435,
-0.07156491279602051,
-0.09923255443572998,
-0.052972327917814255,
0.0351102277636528,
-0.0029386996757239103,
-0.06981267780065536,
0.008599069900810719,
0.038900598883628845,
0.04810395836830139,
-0.017383424565196037,
0.08233123272657394,
-0.004319661296904087,
-0.03136812895536423,
0.02084731124341488,
-0.059397708624601364,
-0.0019845145288854837,
-0.04627087339758873,
-0.028930287808179855,
0.04088295251131058,
-0.12560909986495972,
-0.04128105938434601,
-0.028392283245921135,
-0.03808991611003876,
0.014401460066437721,
0.04590585082769394,
-0.055440329015254974,
-0.007638351060450077,
-0.10878685116767883,
-0.07414088398218155,
0.009327220730483532,
-0.026537219062447548,
0.043279312551021576,
-0.016505854204297066,
-0.043681420385837555,
-0.023038720712065697,
-0.03644697368144989,
0.04454745724797249,
-0.026143817231059074,
0.060159698128700256,
0.006863024551421404,
0.08449549973011017,
0.001240861602127552,
0.01074276678264141,
0.034895431250333786,
0.022222088649868965,
-0.008786100894212723,
-0.07113470137119293,
0.023299667984247208,
0.008902992121875286,
0.005650344304740429,
0.010645566508173943,
0.007886940613389015,
-0.010250280611217022,
-0.0714307650923729,
0.09240240603685379,
-0.0395333394408226,
0.03317875415086746,
0.04433896020054817,
0.01868000440299511,
-0.02988577075302601,
0.04012399911880493,
0.05616512894630432,
0.06804484128952026,
0.0454632006585598,
0.011998113244771957,
-0.037772148847579956,
-0.05098104849457741,
0.07135956734418869,
0.03048747219145298,
0.0289192795753479,
0.06690715253353119,
-0.027721496298909187,
0.0016847274964675307,
0.02655055746436119,
0.09866760671138763,
0.06706753373146057,
-0.03775830194354057,
-0.05735960975289345,
0.005388114135712385,
0.0771489292383194,
0.007466341834515333,
0.07053366303443909,
2.504684588014589e-33,
0.05154292285442352,
-0.013997710309922695,
-0.043234486132860184,
0.06437332183122635,
0.1413055807352066,
0.05477740243077278,
0.033239103853702545,
-0.022672608494758606,
-0.0942251905798912,
0.0801534503698349,
-0.08278463035821915,
0.031385574489831924,
-0.03289838135242462,
-0.026881827041506767,
-0.019496047869324684,
0.012532316148281097,
-0.06484481692314148,
0.05289250239729881,
0.051527272909879684,
-0.0202834140509367,
0.03700028732419014,
-0.08784934133291245,
0.0206293947994709,
0.029064159840345383,
0.07925242930650711,
0.01880507357418537,
0.0033933224622160196,
-0.0037022081669420004,
-0.0029966162983328104,
0.02550755813717842,
0.09763528406620026,
0.02584552951157093,
-0.035901982337236404,
0.0053774635307490826,
-0.03607063367962837,
-0.0366792306303978,
-0.03844423219561577,
0.0005678330198861659,
-0.03175605088472366,
0.028445519506931305,
-0.0339980386197567,
0.008509082719683647,
-0.02973262220621109,
-0.05130699649453163,
-0.06859063357114792,
-0.12509161233901978,
-0.08503060042858124,
0.037420812994241714,
0.08814572542905807,
0.0582893043756485,
-0.09218819439411163,
0.016461556777358055,
0.004906191490590572,
-0.012896068394184113,
0.017425237223505974,
-0.0629490315914154,
-0.015353674069046974,
0.0742836520075798,
0.0076491874642670155,
-0.005770974792540073,
-0.02288019470870495,
0.0256305281072855,
-0.017868755385279655,
0.03304831311106682,
0.05184318497776985,
0.02510475553572178,
0.004386330489069223,
0.03360171616077423,
-0.007712320890277624,
-0.007187959272414446,
-0.0735456570982933,
0.05373028665781021,
0.010507499799132347,
0.048025645315647125,
0.012755089439451694,
-0.08116266131401062,
-0.023571565747261047,
-0.0005856811185367405,
0.04198508709669113,
0.03855619952082634,
0.030543575063347816,
-0.02801418863236904,
-0.08598855882883072,
0.09093427658081055,
0.017003795132040977,
-0.020102018490433693,
0.03550073504447937,
-0.028143661096692085,
0.026122339069843292,
0.04671517387032509,
-0.03249030560255051,
0.03343676030635834,
-0.0035597102250903845,
0.0156773179769516,
-0.045958347618579865,
-4.4444537743308496e-33,
-0.031297724694013596,
0.0062545426189899445,
-0.03999701514840126,
0.00776136526837945,
-0.011871259659528732,
0.014428545720875263,
0.05747399479150772,
-0.039829522371292114,
-0.03421818092465401,
0.0066958530806005,
0.027030009776353836,
0.1543499380350113,
0.031952936202287674,
-0.05645335465669632,
0.08728073537349701,
-0.06677081435918808,
0.0028149932622909546,
-0.08932660520076752,
-0.0469641387462616,
-0.023452939465641975,
-0.06582736223936081,
0.022831331938505173,
-0.0711371898651123,
-0.07320906221866608,
0.05487821623682976,
0.011569508351385593,
0.0579177625477314,
0.048473961651325226,
-0.054237108677625656,
-0.017994670197367668,
0.02005169913172722,
0.05460065230727196,
-0.08370900899171829,
0.07066164165735245,
-0.01876767911016941,
0.040617525577545166,
0.03981491178274155,
0.06103616580367088,
-0.02226271852850914,
0.056037258356809616,
0.14355608820915222,
-0.05220276862382889,
-0.06123238056898117,
-0.01401472371071577,
-0.031098172068595886,
0.018651921302080154,
-0.06005808711051941,
-0.016312096267938614,
-0.1228569895029068,
-0.00143037352245301,
0.03126941993832588,
-0.011003565043210983,
0.016028396785259247,
0.010587704367935658,
0.01877373456954956,
0.044100742787122726,
0.06374898552894592,
-0.04384252056479454,
-0.019587622955441475,
-0.12760862708091736,
0.018161602318286896,
-0.06911519169807434,
-0.022009415552020073,
0.13402202725410461,
-0.0633360892534256,
-0.07824157178401947,
-0.019345922395586967,
0.07094507664442062,
0.008438070304691792,
-0.019627653062343597,
-0.010957838967442513,
-0.01821400225162506,
0.057166002690792084,
0.025438062846660614,
0.07842234522104263,
-0.03407054767012596,
-0.03457598388195038,
-0.04342527687549591,
-0.014742993749678135,
0.0162744652479887,
-0.055729713290929794,
-0.017632294446229935,
0.0026441526133567095,
-0.06268991529941559,
0.02721385657787323,
-0.021313657984137535,
-0.03132246434688568,
0.15611210465431213,
0.07956874370574951,
0.061194222420454025,
-0.05968819931149483,
0.013836552388966084,
-0.021882424131035805,
0.012803811579942703,
-0.00471066078171134,
-5.431837735159206e-8,
-0.04448096454143524,
-0.10435488820075989,
-0.04508029669523239,
0.04949519783258438,
-0.03035096451640129,
0.00310374703258276,
0.004344393964856863,
-0.006637176964432001,
-0.07038579136133194,
0.007851824164390564,
0.05913621559739113,
0.04492827504873276,
-0.029290173202753067,
-0.0008211119566112757,
-0.0036286311224102974,
0.10760229825973511,
0.005233145318925381,
-0.035614244639873505,
0.021800100803375244,
-0.06737181544303894,
-0.01943407580256462,
-0.011714085005223751,
0.01934463158249855,
0.047728728502988815,
-0.06718794256448746,
0.010019785724580288,
-0.04293475300073624,
0.021692264825105667,
-0.1087520569562912,
-0.010762907564640045,
-0.020320437848567963,
0.010178808122873306,
0.022945482283830643,
-0.026083409786224365,
-0.08376038819551468,
0.05277322977781296,
-0.030520910397171974,
-0.004987816791981459,
0.0005008474690839648,
-0.017239945009350777,
0.016009008511900902,
0.0057640112936496735,
-0.03490975499153137,
-0.05397135764360428,
-0.026914089918136597,
0.07282157242298126,
-0.06488782167434692,
0.04146163910627365,
0.05104581266641617,
-0.0677485316991806,
-0.08566928654909134,
-0.008209722116589546,
0.025056831538677216,
0.07384493947029114,
-0.006944619584828615,
0.02606167085468769,
0.060051191598176956,
-0.11170540004968643,
0.018369177356362343,
-0.02128450758755207,
-0.009113483130931854,
0.10856156051158905,
-0.005576365627348423,
-0.0920395627617836
] | 0.14428 |
## Connection details - The TUI registers with the Gateway as `mode: "tui"`. - Reconnects show a system message; event gaps are surfaced in the log. ## Options - `--url `: Gateway WebSocket URL (defaults to config or `ws://127.0.0.1:`) - `--token `: Gateway token (if required) - `--password `: Gateway password (if required) - `--session `: Session key (default: `main`, or `global` when scope is global) - `--deliver`: Deliver assistant replies to the provider (default off) - `--thinking `: Override thinking level for sends - `--timeout-ms `: Agent timeout in ms (defaults to `agents.defaults.timeoutSeconds`) Note: when you set `--url`, the TUI does not fall back to config or environment credentials. Pass `--token` or `--password` explicitly. Missing explicit credentials is an error. ## Troubleshooting No output after sending a message: - Run `/status` in the TUI to confirm the Gateway is connected and idle/busy. - Check the Gateway logs: `openclaw logs --follow`. - Confirm the agent can run: `openclaw status` and `openclaw models status`. - If you expect messages in a chat channel, enable delivery (`/deliver on` or `--deliver`). - `--history-limit `: History entries to load (default 200) ## Troubleshooting - `disconnected`: ensure the Gateway is running and your `--url/--token/--password` are correct. - No agents in picker: check `openclaw agents list` and your routing config. - Empty session picker: you might be in global scope or have no sessions yet. | https://github.com/openclaw/openclaw/blob/main//docs/tui.md | main | opebclaw | [
-0.0873388946056366,
-0.038116250187158585,
-0.07871071249246597,
0.06096659228205681,
-0.03487439453601837,
-0.04070507362484932,
0.017859449610114098,
-0.02462019771337509,
-0.0188621673732996,
-0.004378549754619598,
0.020417867228388786,
-0.0230090394616127,
-0.019899340346455574,
-0.027607576921582222,
0.060299746692180634,
0.09225937724113464,
0.06070483475923538,
-0.11073096096515656,
0.007111733313649893,
-0.12838485836982727,
-0.037754882127046585,
-0.029735295102000237,
-0.04293370619416237,
-0.006572653539478779,
-0.04895555227994919,
-0.11298958212137222,
-0.018717754632234573,
0.03355352580547333,
-0.04744650423526764,
-0.01737765036523342,
0.020572233945131302,
-0.006495255045592785,
-0.07673979550600052,
-0.006634148769080639,
0.029242124408483505,
0.09315713495016098,
0.10370293259620667,
0.03388645127415657,
-0.01239001378417015,
-0.049151357263326645,
0.15193144977092743,
-0.04041507467627525,
-0.07068678736686707,
-0.010945775546133518,
0.06655021756887436,
-0.05326972156763077,
-0.07257962971925735,
0.010324910283088684,
-0.05007475987076759,
0.018089570105075836,
-0.0451628603041172,
0.007619631476700306,
0.0017349922563880682,
0.09139890223741531,
-0.02192866802215576,
0.0906108021736145,
-0.00505206361413002,
0.024059142917394638,
0.01841048151254654,
-0.06816533207893372,
0.015716735273599625,
-0.048950642347335815,
-0.009578459896147251,
0.015632444992661476,
-0.10456628352403641,
-0.013917977921664715,
0.012816688045859337,
-0.04973677545785904,
0.0230399277061224,
0.081029012799263,
-0.03178100660443306,
-0.007170501630753279,
-0.12385609745979309,
-0.024675579741597176,
-0.0020468265283852816,
0.031261153519153595,
0.053922899067401886,
-0.009110410697758198,
-0.052081722766160965,
0.009961878880858421,
0.016451634466648102,
0.056896623224020004,
-0.021932804957032204,
0.07766547799110413,
0.0445985347032547,
-0.025232478976249695,
-0.011337551288306713,
-0.020970618352293968,
0.014690435491502285,
0.040730785578489304,
-0.03527496010065079,
-0.056289590895175934,
-0.02154335007071495,
0.03037406876683235,
0.059339798986911774,
0.016511468216776848,
-0.02110624685883522,
-0.003642815863713622,
-0.07611360400915146,
0.027060773223638535,
-0.0548965148627758,
-0.0022643576376140118,
0.013602780178189278,
0.008174313232302666,
-0.019750148057937622,
0.0148093830794096,
0.014531116001307964,
0.05112743005156517,
0.04203295707702637,
0.0309460312128067,
-0.05039839819073677,
-0.01788252778351307,
0.10272921621799469,
0.03581005334854126,
0.003462195862084627,
0.10676761716604233,
-0.0760473683476448,
0.05936938151717186,
0.024038342759013176,
0.03476141765713692,
0.0843043103814125,
-0.016716428101062775,
-0.048821259289979935,
-0.03306019306182861,
0.028437744826078415,
0.023652035742998123,
0.047261521220207214,
4.505594908936963e-33,
0.03314896672964096,
0.03017563559114933,
-0.04322614148259163,
0.09327122569084167,
0.14422547817230225,
0.022980859503149986,
0.03469939902424812,
-0.028210779651999474,
-0.041376762092113495,
0.04760872200131416,
-0.11146783828735352,
0.017200680449604988,
-0.02595227025449276,
-0.003805193118751049,
-0.01599426008760929,
0.021618453785777092,
0.03108864650130272,
0.03390325605869293,
0.07186789065599442,
0.02678278088569641,
-0.005159458145499229,
-0.08305449783802032,
-0.031822048127651215,
-0.004293118603527546,
0.03862178325653076,
0.02730909176170826,
0.004139747470617294,
-0.004578214604407549,
-0.004711051471531391,
-0.0006723836995661259,
0.04909883812069893,
0.04716486856341362,
0.006446040701121092,
-0.007040866184979677,
-0.011384258978068829,
-0.056829649955034256,
-0.05734953656792641,
-0.02263837866485119,
-0.06289743632078171,
0.016899727284908295,
-0.03789665549993515,
0.028782442212104797,
-0.09024542570114136,
-0.013332966715097427,
-0.06620240956544876,
-0.13043931126594543,
-0.04550067335367203,
-0.053889259696006775,
0.13132229447364807,
0.012346909381449223,
-0.0931001752614975,
0.015948358923196793,
-0.0005676285945810378,
-0.009451322257518768,
0.07560602575540543,
-0.059815771877765656,
0.042177896946668625,
0.0692174881696701,
-0.015724562108516693,
-0.04367373511195183,
0.0349481962621212,
-0.022125419229269028,
-0.005519588477909565,
-0.01900802180171013,
0.05957849323749542,
0.04734361544251442,
-0.06790154427289963,
-0.011105082929134369,
-0.040963370352983475,
-0.0051694330759346485,
-0.07331738620996475,
0.0985492542386055,
-0.03874972462654114,
0.06655978411436081,
0.011121081188321114,
-0.08889404684305191,
0.026809783652424812,
-0.04497883468866348,
0.017656253650784492,
0.001450796495191753,
0.02687166817486286,
-0.00603144196793437,
-0.026435963809490204,
0.03976566717028618,
0.01216001994907856,
-0.03061898611485958,
0.022781824693083763,
0.020874354988336563,
0.0341966450214386,
0.025684017688035965,
-0.03349762782454491,
0.040780629962682724,
0.015521474182605743,
0.020109321922063828,
-0.07882887870073318,
-5.322834948485096e-33,
-0.07686308026313782,
0.0033373467158526182,
-0.0840291753411293,
0.05513996258378029,
-0.0796104446053505,
0.01424149889498949,
0.05657448247075081,
0.0505429282784462,
0.014666968956589699,
0.040531132370233536,
0.07323934882879257,
0.05701149255037308,
0.03736887872219086,
-0.038857411593198776,
0.032296258956193924,
-0.04592373967170715,
0.022984135895967484,
-0.13140623271465302,
0.021525057032704353,
-0.03484071046113968,
-0.03132472559809685,
-0.0024757154751569033,
-0.02221531979739666,
-0.07283607870340347,
0.004261185880750418,
0.0816948339343071,
0.05303167924284935,
0.033560611307621,
-0.08984850347042084,
-0.05717417970299721,
0.07494385540485382,
0.0070136673748493195,
-0.044309500604867935,
0.0675019919872284,
-0.010151048190891743,
0.027844322845339775,
0.030247977003455162,
0.06259775161743164,
-0.0222301222383976,
0.060130294412374496,
0.17510327696800232,
-0.04827353358268738,
-0.008940456435084343,
0.03795140981674194,
-0.034089986234903336,
0.03760131821036339,
-0.041415367275476456,
-0.009088319726288319,
-0.09269721060991287,
0.03959158807992935,
0.04582637548446655,
0.020370464771986008,
0.01737312041223049,
0.039868369698524475,
0.03514305502176285,
0.04146479442715645,
0.04849496856331825,
-0.05489636957645416,
-0.01842740923166275,
-0.06908868253231049,
0.058211326599121094,
-0.07090052962303162,
0.00629227701574564,
0.07743288576602936,
-0.019566649571061134,
0.014454505406320095,
-0.028156736865639687,
0.06147021800279617,
0.06213720142841339,
0.007788103073835373,
0.007745183072984219,
-0.011867246590554714,
-0.004601449705660343,
0.028646225109696388,
0.038319557905197144,
-0.009948814287781715,
-0.07843323796987534,
-0.048549212515354156,
0.000010943899724225048,
0.018306048586964607,
-0.09245380014181137,
-0.021683696657419205,
-0.02577071450650692,
-0.060089774429798126,
0.027083540335297585,
-0.011276635341346264,
-0.022734399884939194,
0.14818330109119415,
0.09008528292179108,
0.05877523496747017,
-0.025988779962062836,
-0.008301441557705402,
-0.04877173528075218,
0.02784550003707409,
0.019442211836576462,
-5.246895895538728e-8,
-0.008550772443413734,
-0.1061907708644867,
-0.051332738250494,
0.013965025544166565,
-0.044875238090753555,
0.016913510859012604,
0.02445990964770317,
-0.0826478973031044,
-0.027559584006667137,
0.027431534603238106,
-0.0010583065450191498,
0.03156837821006775,
-0.034155312925577164,
-0.022851498797535896,
0.03615766763687134,
0.060406602919101715,
0.003734573721885681,
-0.007161816582083702,
0.02423197403550148,
-0.11005200445652008,
0.023322295397520065,
-0.01949581503868103,
-0.042139459401369095,
0.034285686910152435,
-0.035263095051050186,
0.006688736844807863,
0.03834208473563194,
0.08813893795013428,
-0.09797792881727219,
-0.04601886868476868,
-0.08250144869089127,
-0.016066240146756172,
0.01933671161532402,
-0.004101451952010393,
-0.10870669037103653,
0.03509344160556793,
-0.07039285451173782,
-0.028497597202658653,
0.04471832513809204,
-0.04262446612119675,
0.02906213328242302,
0.006540980655699968,
-0.019451795145869255,
-0.027501294389367104,
0.010296845808625221,
0.066453717648983,
-0.018451321870088577,
0.07679063081741333,
0.04140942171216011,
-0.0162411667406559,
-0.1020091250538826,
-0.0339016318321228,
0.03547021001577377,
0.06195278838276863,
0.020151600241661072,
-0.03651077300310135,
0.05408859997987747,
-0.10943976789712906,
0.0396280437707901,
-0.022776007652282715,
-0.02525979094207287,
0.023485632613301277,
-0.04849940538406372,
-0.08911959081888199
] | 0.163562 |
# Environment variables OpenClaw pulls environment variables from multiple sources. The rule is \*\*never override existing values\*\*. ## Precedence (highest → lowest) 1. \*\*Process environment\*\* (what the Gateway process already has from the parent shell/daemon). 2. \*\*`.env` in the current working directory\*\* (dotenv default; does not override). 3. \*\*Global `.env`\*\* at `~/.openclaw/.env` (aka `$OPENCLAW\_STATE\_DIR/.env`; does not override). 4. \*\*Config `env` block\*\* in `~/.openclaw/openclaw.json` (applied only if missing). 5. \*\*Optional login-shell import\*\* (`env.shellEnv.enabled` or `OPENCLAW\_LOAD\_SHELL\_ENV=1`), applied only for missing expected keys. If the config file is missing entirely, step 4 is skipped; shell import still runs if enabled. ## Config `env` block Two equivalent ways to set inline env vars (both are non-overriding): ```json5 { env: { OPENROUTER\_API\_KEY: "sk-or-...", vars: { GROQ\_API\_KEY: "gsk-...", }, }, } ``` ## Shell env import `env.shellEnv` runs your login shell and imports only \*\*missing\*\* expected keys: ```json5 { env: { shellEnv: { enabled: true, timeoutMs: 15000, }, }, } ``` Env var equivalents: - `OPENCLAW\_LOAD\_SHELL\_ENV=1` - `OPENCLAW\_SHELL\_ENV\_TIMEOUT\_MS=15000` ## Env var substitution in config You can reference env vars directly in config string values using `${VAR\_NAME}` syntax: ```json5 { models: { providers: { "vercel-gateway": { apiKey: "${VERCEL\_GATEWAY\_API\_KEY}", }, }, }, } ``` See [Configuration: Env var substitution](/gateway/configuration#env-var-substitution-in-config) for full details. ## Related - [Gateway configuration](/gateway/configuration) - [FAQ: env vars and .env loading](/help/faq#env-vars-and-env-loading) - [Models overview](/concepts/models) | https://github.com/openclaw/openclaw/blob/main//docs/environment.md | main | opebclaw | [
-0.0015156213194131851,
-0.01317718718200922,
-0.036165136843919754,
-0.009349868632853031,
0.026680536568164825,
-0.09261109679937363,
-0.019940191879868507,
-0.028068238869309425,
-0.018662387505173683,
-0.015562324784696102,
-0.00012107578368159011,
-0.03953569754958153,
0.03458095341920853,
-0.0093457642942667,
0.09543698281049728,
0.10029864311218262,
0.010874317958950996,
-0.04968268424272537,
-0.009586900472640991,
-0.049858126789331436,
0.016345184296369553,
0.028050333261489868,
0.018598202615976334,
-0.05704907327890396,
-0.10266401618719101,
-0.07970236986875534,
-0.010892506688833237,
-0.0006511487881653011,
-0.02590472809970379,
-0.018447307869791985,
0.04728102684020996,
0.08227275311946869,
-0.09461762011051178,
-0.01816936582326889,
0.0949006900191307,
0.08150937408208847,
0.06155869737267494,
-0.018320932984352112,
-0.03575967997312546,
0.025015784427523613,
0.10815752297639847,
0.022246630862355232,
0.003442944958806038,
-0.10490138828754425,
-0.06364738941192627,
-0.06951074302196503,
-0.009006822481751442,
-0.10153067111968994,
-0.05444624274969101,
-0.041540782898664474,
-0.05264916643500328,
-0.008818868547677994,
0.007580257952213287,
-0.05863919109106064,
0.055396635085344315,
-0.01783481426537037,
0.042233604937791824,
0.0442759171128273,
0.03987310081720352,
-0.05921756103634834,
0.01259377971291542,
-0.028768202289938927,
-0.06279102712869644,
0.019434399902820587,
-0.10363074392080307,
-0.07419174164533615,
-0.06598794460296631,
-0.0461641326546669,
-0.018793147057294846,
0.01313083991408348,
-0.06289691478013992,
0.02008679136633873,
-0.06710589677095413,
-0.07580023258924484,
0.02167472429573536,
-0.020785341039299965,
0.025041364133358,
0.028855033218860626,
-0.03792066499590874,
-0.11556724458932877,
-0.024279523640871048,
-0.011854933574795723,
-0.09595227986574173,
-0.01019897311925888,
0.0033512096852064133,
0.07955513894557953,
-0.02273862436413765,
-0.008989990688860416,
0.08318528532981873,
0.11340158432722092,
0.026050036773085594,
-0.151321679353714,
0.03431674838066101,
-0.006540203932672739,
0.048375386744737625,
0.025873269885778427,
-0.019507773220539093,
-0.0027567660436034203,
0.004367767367511988,
0.05458439514040947,
-0.038438551127910614,
-0.04260696470737457,
0.0712294653058052,
0.0749044418334961,
-0.0024817974772304296,
0.022342577576637268,
0.06103338673710823,
0.09053857624530792,
-0.009037494659423828,
-0.04181767627596855,
0.01125118788331747,
-0.003973738290369511,
0.1557018905878067,
-0.03190122917294502,
-0.02310711145401001,
0.02207157574594021,
0.047575805336236954,
-0.02490374632179737,
0.008201247081160545,
0.1036369726061821,
0.010180438868701458,
-0.02889418788254261,
0.058551739901304245,
0.01313796266913414,
0.05888122320175171,
0.051007356494665146,
0.07846933603286743,
4.032183293584503e-33,
-0.0214422345161438,
-0.07901974767446518,
-0.026125332340598106,
-0.02009560354053974,
0.15817219018936157,
0.04753373935818672,
0.045084089040756226,
0.02031034789979458,
-0.02973809465765953,
0.04527907073497772,
-0.06445234268903732,
0.012005331926047802,
-0.068858303129673,
-0.02967114746570587,
0.022541606798768044,
0.04479442536830902,
-0.05868392437696457,
0.07430985569953918,
0.08575041592121124,
0.0015667261322960258,
0.059769585728645325,
-0.061123818159103394,
-0.06745652109384537,
0.04008473455905914,
0.005950570106506348,
-0.03575333207845688,
-0.009915042668581009,
-0.022561723366379738,
-0.031729456037282944,
0.022240467369556427,
0.14051039516925812,
0.01844094693660736,
-0.01629139855504036,
0.044630326330661774,
-0.04542367160320282,
0.03333594277501106,
-0.02281266823410988,
-0.018700730055570602,
-0.05246651545166969,
-0.051896389573812485,
-0.018292222172021866,
0.03352301940321922,
-0.03185342997312546,
-0.004726537503302097,
-0.014162575826048851,
-0.10762061178684235,
-0.0374755859375,
0.04408464953303337,
0.03148520737886429,
0.009140079841017723,
-0.02936611883342266,
0.024475427344441414,
0.10330384969711304,
-0.07421992719173431,
-0.030080003663897514,
-0.005427136085927486,
-0.06561530381441116,
-0.04077942669391632,
0.016708053648471832,
-0.04205559939146042,
0.015830136835575104,
0.04785774648189545,
-0.010857895947992802,
0.016367027536034584,
0.061517857015132904,
-0.025331661105155945,
0.09579884260892868,
0.060687411576509476,
-0.03659204766154289,
-0.0405886173248291,
-0.05824374407529831,
-0.013571265153586864,
-0.06336366385221481,
0.06433907896280289,
0.017246415838599205,
-0.04382822662591934,
0.05210820212960243,
0.01437392458319664,
0.07467836141586304,
-0.03868652507662773,
-0.015805548056960106,
0.06814361363649368,
-0.042572349309921265,
0.026921145617961884,
-0.003149998839944601,
0.08348959684371948,
0.017975524067878723,
-0.05066164210438728,
0.04722829535603523,
0.04888516291975975,
0.007491643540561199,
-0.05432380735874176,
-0.06100580841302872,
0.010023207403719425,
-0.035127896815538406,
-6.265674355366682e-33,
0.001865664729848504,
-0.00884619913995266,
0.019899016246199608,
-0.057083141058683395,
-0.038234464824199677,
0.014227214269340038,
0.03196815773844719,
-0.07714803516864777,
0.02393146976828575,
-0.0475766658782959,
-0.005550313740968704,
0.07893987745046616,
0.0796511098742485,
-0.07932382076978683,
0.05893031507730484,
-0.035644013434648514,
-0.06459566950798035,
-0.0008396553457714617,
0.007970056496560574,
0.013919995166361332,
-0.040688272565603256,
0.02335159108042717,
-0.04647006466984749,
0.018721848726272583,
0.018073497340083122,
0.005834498908370733,
-0.020049644634127617,
0.033324845135211945,
-0.053588833659887314,
0.03297429904341698,
-0.01463406067341566,
0.06120435148477554,
-0.04127149283885956,
0.0591190829873085,
-0.06460408121347427,
-0.028998225927352905,
-0.0394054539501667,
0.04099936783313751,
0.04301883652806282,
0.05627548322081566,
0.0632227212190628,
0.016427647322416306,
-0.027223873883485794,
0.03580988571047783,
-0.017631031572818756,
0.07492119073867798,
0.03615975379943848,
-0.03710920363664627,
-0.028466369956731796,
-0.03679336607456207,
-0.01173854898661375,
0.027199914678931236,
0.04918467625975609,
0.0784614086151123,
0.03859904780983925,
0.07716019451618195,
0.03429761528968811,
-0.016419198364019394,
-0.00921000074595213,
-0.10038550943136215,
0.009496962651610374,
-0.009309528395533562,
-0.05141201242804527,
0.1143215000629425,
-0.07195636630058289,
-0.04561109468340874,
-0.04014435410499573,
0.0870758593082428,
-0.02987798862159252,
-0.16163332760334015,
-0.055595725774765015,
-0.08433947712182999,
-0.020807720720767975,
-0.048051223158836365,
-0.031298182904720306,
-0.03125781938433647,
0.05356170982122421,
-0.023002989590168,
-0.05895596370100975,
0.06550930440425873,
-0.054295290261507034,
0.000095172697911039,
-0.05936775356531143,
-0.059356145560741425,
-0.006721784360706806,
-0.0781366229057312,
-0.00012397565296851099,
0.05811930075287819,
0.06454427540302277,
0.08706153929233551,
-0.05858846753835678,
0.040593333542346954,
-0.04090185463428497,
-0.05012292414903641,
-0.018610646948218346,
-5.498588606656085e-8,
-0.04606606438755989,
-0.06408417969942093,
-0.03853818401694298,
0.049621738493442535,
-0.013977786526083946,
0.009258545935153961,
0.005943639203906059,
0.045671574771404266,
-0.048645567148923874,
0.042492352426052094,
0.04784248396754265,
0.07402604818344116,
-0.05031104013323784,
0.014195085503160954,
-0.11869531869888306,
0.08705084770917892,
-0.03883020579814911,
0.04186030849814415,
0.009234928525984287,
-0.020100977271795273,
0.005916411057114601,
-0.02193356491625309,
0.03253216668963432,
0.024720678105950356,
-0.06306370347738266,
0.015573214739561081,
-0.01876010186970234,
-0.07350718975067139,
-0.03315020725131035,
0.00003013676541741006,
-0.0025215132627636194,
0.006544390693306923,
0.012665688060224056,
-0.004376237280666828,
-0.1025223657488823,
0.03604990243911743,
-0.013410857878625393,
0.05277002230286598,
0.012586589902639389,
-0.005591316148638725,
-0.011736217886209488,
0.02033836394548416,
-0.017329420894384384,
-0.058065857738256454,
-0.0740756243467331,
0.02739606611430645,
-0.05238577350974083,
0.08028663694858551,
0.013340302743017673,
0.002326926914975047,
-0.03041042946279049,
0.02801426686346531,
0.06382180005311966,
0.041685428470373154,
0.06620834767818451,
0.0573180690407753,
0.026883961632847786,
-0.06164337694644928,
-0.0015234574675559998,
0.012289561331272125,
-0.011473202146589756,
0.03668070584535599,
0.06616707146167755,
-0.05705050751566887
] | -0.013449 |
# Network hub This hub links the core docs for how OpenClaw connects, pairs, and secures devices across localhost, LAN, and tailnet. ## Core model - [Gateway architecture](/concepts/architecture) - [Gateway protocol](/gateway/protocol) - [Gateway runbook](/gateway) - [Web surfaces + bind modes](/web) ## Pairing + identity - [Pairing overview (DM + nodes)](/start/pairing) - [Gateway-owned node pairing](/gateway/pairing) - [Devices CLI (pairing + token rotation)](/cli/devices) - [Pairing CLI (DM approvals)](/cli/pairing) Local trust: - Local connections (loopback or the gateway host’s own tailnet address) can be auto‑approved for pairing to keep same‑host UX smooth. - Non‑local tailnet/LAN clients still require explicit pairing approval. ## Discovery + transports - [Discovery & transports](/gateway/discovery) - [Bonjour / mDNS](/gateway/bonjour) - [Remote access (SSH)](/gateway/remote) - [Tailscale](/gateway/tailscale) ## Nodes + transports - [Nodes overview](/nodes) - [Bridge protocol (legacy nodes)](/gateway/bridge-protocol) - [Node runbook: iOS](/platforms/ios) - [Node runbook: Android](/platforms/android) ## Security - [Security overview](/gateway/security) - [Gateway config reference](/gateway/configuration) - [Troubleshooting](/gateway/troubleshooting) - [Doctor](/gateway/doctor) | https://github.com/openclaw/openclaw/blob/main//docs/network.md | main | opebclaw | [
-0.017696555703878403,
-0.01534135639667511,
-0.032947465777397156,
-0.026086682453751564,
-0.011086786165833473,
-0.004896954167634249,
-0.018180131912231445,
0.006635425146669149,
-0.019675588235259056,
0.0022186359856277704,
0.03834598883986473,
0.023164905607700348,
0.02333832159638405,
-0.01591220311820507,
0.05223839357495308,
0.050525400787591934,
0.07341107726097107,
-0.038037464022636414,
0.03420235216617584,
0.03251858055591583,
-0.062415532767772675,
-0.05727962404489517,
-0.027644271031022072,
-0.04573104903101921,
-0.04291051626205444,
-0.10061720013618469,
0.09900572150945663,
0.005037668161094189,
-0.004252974409610033,
-0.01419239491224289,
0.00024981811293400824,
0.07712318748235703,
-0.07428840547800064,
0.019725695252418518,
-0.08879327774047852,
-0.0146721750497818,
0.08067741245031357,
0.013581501320004463,
-0.06078322231769562,
-0.029016679152846336,
0.10388445854187012,
-0.09580110758543015,
0.029477639123797417,
-0.060189228504896164,
-0.01922852359712124,
-0.025183310732245445,
-0.06509776413440704,
-0.03937997296452522,
-0.0711568221449852,
0.01773982122540474,
0.009258483536541462,
-0.002662880113348365,
-0.01248132809996605,
0.03224579244852066,
0.014795471914112568,
0.10255695134401321,
0.003173363395035267,
-0.006946612615138292,
0.045395854860544205,
-0.008376022800803185,
0.051046352833509445,
0.004170041996985674,
-0.05732514709234238,
0.01793125830590725,
-0.018546929582953453,
-0.04215961694717407,
0.02577706053853035,
-0.03299002721905708,
0.027780961245298386,
0.024711409583687782,
-0.011943520046770573,
-0.011745112016797066,
-0.04839835688471794,
-0.006380914710462093,
-0.00636457372456789,
0.0449032187461853,
0.04686139523983002,
-0.0048018814995884895,
-0.018311548978090286,
-0.11292391270399094,
-0.08141455054283142,
0.07529626041650772,
-0.013621596619486809,
0.04788932204246521,
0.007828939706087112,
0.04675630107522011,
-0.022680306807160378,
0.05776407942175865,
-0.01590365171432495,
0.00451350212097168,
-0.03180387243628502,
-0.0013838610611855984,
-0.06348155438899994,
-0.051226917654275894,
0.049478668719530106,
0.07763445377349854,
0.006301218178123236,
-0.026307012885808945,
-0.059851109981536865,
0.07199086993932724,
-0.05985294654965401,
-0.00047886365791782737,
0.011607257649302483,
-0.008080135099589825,
-0.07330689579248428,
0.04377229884266853,
-0.022523092105984688,
0.009331884793937206,
0.115755595266819,
0.04459109529852867,
-0.0014199904398992658,
-0.0726548433303833,
0.021535048261284828,
-0.014068263582885265,
-0.07520890235900879,
0.05237291380763054,
0.024252990260720253,
0.0126064857468009,
0.11407874524593353,
0.009714709594845772,
-0.07063614577054977,
0.015166133642196655,
0.05443495512008667,
-0.06459327787160873,
0.050618741661310196,
0.042310502380132675,
0.0017495719948783517,
4.15568844426357e-33,
0.01213806215673685,
0.03664367273449898,
-0.039058029651641846,
-0.004661371931433678,
0.11480914056301117,
-0.02162688411772251,
0.05175488069653511,
-0.06960832327604294,
-0.10476915538311005,
-0.024144837632775307,
-0.039810847491025925,
0.0634593665599823,
0.05340396985411644,
-0.0646354928612709,
0.024186210706830025,
-0.0345313586294651,
0.03395144268870354,
0.011849203146994114,
0.08012121915817261,
0.08111132681369781,
0.05765508860349655,
-0.10033446550369263,
0.016492782160639763,
0.008523540571331978,
0.013210813514888287,
-0.06944651156663895,
-0.0055001662112772465,
0.05634406954050064,
0.0541563481092453,
0.03506056219339371,
0.01896306872367859,
0.03496410325169563,
0.00016027975652832538,
-0.024013034999370575,
-0.03970063477754593,
0.011456751264631748,
-0.08224755525588989,
-0.08290247619152069,
-0.04137050732970238,
-0.07549601793289185,
-0.034526482224464417,
-0.03221834823489189,
-0.07506033778190613,
-0.04936948046088219,
-0.08418598771095276,
-0.08059195429086685,
-0.09287500381469727,
0.058892205357551575,
0.004691384732723236,
0.010417958721518517,
-0.04233089089393616,
-0.05946628749370575,
-0.01991983875632286,
0.00841875746846199,
-0.012884093448519707,
-0.004667362663894892,
-0.016003631055355072,
0.04042293131351471,
-0.007951849140226841,
0.05541958287358284,
0.024137819185853004,
0.023041922599077225,
-0.06511738896369934,
-0.0020365817472338676,
0.022227585315704346,
0.056478939950466156,
0.031355395913124084,
0.016299327835440636,
-0.0007646962185390294,
-0.08671370893716812,
-0.018268056213855743,
0.023935791105031967,
-0.0376431830227375,
0.04675203934311867,
-0.027285952121019363,
-0.024657398462295532,
-0.04173777252435684,
0.003297540359199047,
0.11359669268131256,
0.013142935931682587,
-0.03993925824761391,
0.08363912254571915,
-0.034633759409189224,
0.07148970663547516,
-0.06365253031253815,
-0.026360781863331795,
-0.016456903889775276,
-0.044044848531484604,
-0.019172731786966324,
0.1251717358827591,
-0.01428789272904396,
0.04427110031247139,
0.08726038783788681,
0.030391298234462738,
-0.027447152882814407,
-4.5258931249817716e-33,
-0.061640430241823196,
0.017996620386838913,
0.01971622183918953,
0.05385962873697281,
0.0506487675011158,
0.006059540435671806,
0.04852336645126343,
-0.08992062509059906,
-0.029255332425236702,
-0.03496474400162697,
0.03763069957494736,
0.0272783562541008,
0.07382047176361084,
-0.0681743398308754,
0.06532058864831924,
-0.06813543289899826,
-0.008547897450625896,
-0.05480600520968437,
0.08100339025259018,
0.015100647695362568,
0.08665141463279724,
-0.006047010887414217,
-0.04849555715918541,
0.01988328993320465,
0.0284905806183815,
0.012780518271028996,
0.0038087719585746527,
0.02640693262219429,
-0.07896299660205841,
0.005422615446150303,
0.012704242020845413,
0.03740233927965164,
-0.025318656116724014,
-0.015714045614004135,
-0.0008242682088166475,
0.07052922248840332,
-0.06414610147476196,
0.10341968387365341,
0.03239632025361061,
-0.036332182586193085,
0.0631662979722023,
-0.05403769016265869,
-0.07534929364919662,
0.012700311839580536,
0.030131259933114052,
-0.006255054846405983,
0.0009595584124326706,
0.0019970014691352844,
-0.12748204171657562,
-0.035255905240774155,
0.004073615185916424,
0.06644804030656815,
-0.03240986540913582,
0.0031493345741182566,
-0.07569660246372223,
0.09005127102136612,
0.0954982191324234,
0.0178674329072237,
0.048122819513082504,
-0.002535291714593768,
0.04695357009768486,
-0.09032265096902847,
-0.025264758616685867,
0.1953001171350479,
-0.014923709444701672,
-0.022623475641012192,
0.0024017200339585543,
0.02582619898021221,
-0.028403010219335556,
0.010902347974479198,
-0.0625869631767273,
-0.002432706765830517,
0.05361095443367958,
0.0153823122382164,
0.027142850682139397,
-0.09361851960420609,
0.02484690584242344,
-0.05562715232372284,
0.00015581297338940203,
-0.006353410892188549,
-0.050920937210321426,
0.08536813408136368,
-0.0028536717873066664,
-0.00799605343490839,
0.017290078103542328,
-0.005664872471243143,
0.015552238561213017,
0.08745647966861725,
0.05189322680234909,
0.06625679135322571,
-0.0919104814529419,
-0.042544279247522354,
-0.06503169238567352,
-0.019979428499937057,
-0.03260095790028572,
-5.4466138266207054e-8,
-0.029213815927505493,
-0.027827562764286995,
-0.07066009193658829,
0.007444697432219982,
-0.07183114439249039,
0.06311126798391342,
0.04563699662685394,
-0.047536469995975494,
0.006714558694511652,
0.07315767556428909,
-0.009523099288344383,
0.037581972777843475,
-0.05355445295572281,
0.036287821829319,
0.02252737060189247,
0.06910467147827148,
0.08639008551836014,
-0.02889913134276867,
-0.0468011274933815,
-0.059257872402668,
-0.0657690167427063,
-0.039465103298425674,
-0.0032376302406191826,
0.1121356338262558,
-0.0547809861600399,
0.010681655257940292,
0.046827126294374466,
0.04548105597496033,
-0.035032521933317184,
0.06198190525174141,
-0.09471751749515533,
0.004132221452891827,
-0.03839600458741188,
0.05287007987499237,
-0.030613159760832787,
0.06635025143623352,
-0.13378871977329254,
0.04038456827402115,
0.0773320272564888,
0.06558822095394135,
-0.018240706995129585,
0.04789220169186592,
-0.09364186972379684,
-0.016570162028074265,
0.025510502979159355,
0.07447942346334457,
-0.05214636027812958,
0.004523780196905136,
-0.08059187978506088,
0.04380851611495018,
-0.00789842288941145,
-0.046014588326215744,
0.03906413912773132,
-0.024060260504484177,
-0.005905179772526026,
0.04727615416049957,
-0.01232422050088644,
-0.09132153540849686,
0.08762993663549423,
-0.015108921565115452,
-0.0016757092671468854,
0.046230338513851166,
0.06835343688726425,
-0.06713441759347916
] | 0.041531 |
# Broadcast Groups \*\*Status:\*\* Experimental \*\*Version:\*\* Added in 2026.1.9 ## Overview Broadcast Groups enable multiple agents to process and respond to the same message simultaneously. This allows you to create specialized agent teams that work together in a single WhatsApp group or DM — all using one phone number. Current scope: \*\*WhatsApp only\*\* (web channel). Broadcast groups are evaluated after channel allowlists and group activation rules. In WhatsApp groups, this means broadcasts happen when OpenClaw would normally reply (for example: on mention, depending on your group settings). ## Use Cases ### 1. Specialized Agent Teams Deploy multiple agents with atomic, focused responsibilities: ``` Group: "Development Team" Agents: - CodeReviewer (reviews code snippets) - DocumentationBot (generates docs) - SecurityAuditor (checks for vulnerabilities) - TestGenerator (suggests test cases) ``` Each agent processes the same message and provides its specialized perspective. ### 2. Multi-Language Support ``` Group: "International Support" Agents: - Agent\_EN (responds in English) - Agent\_DE (responds in German) - Agent\_ES (responds in Spanish) ``` ### 3. Quality Assurance Workflows ``` Group: "Customer Support" Agents: - SupportAgent (provides answer) - QAAgent (reviews quality, only responds if issues found) ``` ### 4. Task Automation ``` Group: "Project Management" Agents: - TaskTracker (updates task database) - TimeLogger (logs time spent) - ReportGenerator (creates summaries) ``` ## Configuration ### Basic Setup Add a top-level `broadcast` section (next to `bindings`). Keys are WhatsApp peer ids: - group chats: group JID (e.g. `120363403215116621@g.us`) - DMs: E.164 phone number (e.g. `+15551234567`) ```json { "broadcast": { "120363403215116621@g.us": ["alfred", "baerbel", "assistant3"] } } ``` \*\*Result:\*\* When OpenClaw would reply in this chat, it will run all three agents. ### Processing Strategy Control how agents process messages: #### Parallel (Default) All agents process simultaneously: ```json { "broadcast": { "strategy": "parallel", "120363403215116621@g.us": ["alfred", "baerbel"] } } ``` #### Sequential Agents process in order (one waits for previous to finish): ```json { "broadcast": { "strategy": "sequential", "120363403215116621@g.us": ["alfred", "baerbel"] } } ``` ### Complete Example ```json { "agents": { "list": [ { "id": "code-reviewer", "name": "Code Reviewer", "workspace": "/path/to/code-reviewer", "sandbox": { "mode": "all" } }, { "id": "security-auditor", "name": "Security Auditor", "workspace": "/path/to/security-auditor", "sandbox": { "mode": "all" } }, { "id": "docs-generator", "name": "Documentation Generator", "workspace": "/path/to/docs-generator", "sandbox": { "mode": "all" } } ] }, "broadcast": { "strategy": "parallel", "120363403215116621@g.us": ["code-reviewer", "security-auditor", "docs-generator"], "120363424282127706@g.us": ["support-en", "support-de"], "+15555550123": ["assistant", "logger"] } } ``` ## How It Works ### Message Flow 1. \*\*Incoming message\*\* arrives in a WhatsApp group 2. \*\*Broadcast check\*\*: System checks if peer ID is in `broadcast` 3. \*\*If in broadcast list\*\*: - All listed agents process the message - Each agent has its own session key and isolated context - Agents process in parallel (default) or sequentially 4. \*\*If not in broadcast list\*\*: - Normal routing applies (first matching binding) Note: broadcast groups do not bypass channel allowlists or group activation rules (mentions/commands/etc). They only change \_which agents run\_ when a message is eligible for processing. ### Session Isolation Each agent in a broadcast group maintains completely separate: - \*\*Session keys\*\* (`agent:alfred:whatsapp:group:120363...` vs `agent:baerbel:whatsapp:group:120363...`) - \*\*Conversation history\*\* (agent doesn't see other agents' messages) - \*\*Workspace\*\* (separate sandboxes if configured) - \*\*Tool access\*\* (different allow/deny lists) - \*\*Memory/context\*\* (separate IDENTITY.md, SOUL.md, etc.) - \*\*Group context buffer\*\* (recent group messages used for context) is shared per peer, so all broadcast agents see the same context when triggered This allows each agent to have: - Different personalities - Different tool access (e.g., read-only vs. read-write) - Different models (e.g., opus vs. sonnet) - Different skills installed ### Example: Isolated Sessions In group `120363403215116621@g.us` with agents `["alfred", "baerbel"]`: \*\*Alfred's context:\*\* ``` Session: agent:alfred:whatsapp:group:120363403215116621@g.us History: [user | https://github.com/openclaw/openclaw/blob/main//docs/broadcast-groups.md | main | opebclaw | [
-0.06587105244398117,
-0.07645585387945175,
-0.034164439886808395,
-0.021987076848745346,
0.027425751090049744,
-0.07929376512765884,
0.01359008438885212,
-0.037581607699394226,
0.03241458535194397,
0.032958198338747025,
0.027546346187591553,
-0.04481879621744156,
0.023306960240006447,
0.07645159214735031,
0.10829387605190277,
-0.014667542651295662,
0.05325869470834732,
-0.1524694859981537,
-0.10199261456727982,
-0.031007496640086174,
0.11435088515281677,
0.04252270609140396,
0.015291386283934116,
0.008310924284160137,
-0.06960618495941162,
-0.033432796597480774,
-0.06973906606435776,
0.0027925155591219664,
0.05346145108342171,
0.04024612158536911,
0.06096765026450157,
0.06461045891046524,
0.06596116721630096,
0.13834798336029053,
-0.04147748276591301,
0.06161848455667496,
0.008547518402338028,
0.022365612909197807,
-0.009751039557158947,
0.08773494511842728,
-0.058666788041591644,
0.028441933915019035,
-0.07116983830928802,
-0.08642201125621796,
0.03440362960100174,
-0.07864958047866821,
-0.07230865955352783,
-0.010520596988499165,
-0.07465211302042007,
0.03848222270607948,
0.015367180109024048,
-0.024303922429680824,
0.01456498634070158,
0.06377957761287689,
0.004487518221139908,
-0.0406695194542408,
-0.03454858437180519,
0.05074713006615639,
0.020578064024448395,
-0.05567038431763649,
0.004181249998509884,
-0.06184879690408707,
-0.013973511755466461,
-0.0005837032804265618,
-0.07863570004701614,
0.033279385417699814,
-0.07868339121341705,
-0.015545395202934742,
-0.04319307208061218,
-0.06259621679782867,
-0.03518141433596611,
-0.008589459583163261,
0.09891311079263687,
0.018378807231783867,
0.035978078842163086,
-0.0019390737870708108,
0.024758948013186455,
0.04159800335764885,
-0.03339305520057678,
-0.11353570222854614,
0.053471192717552185,
-0.06908013671636581,
-0.059135787189006805,
0.0495896115899086,
0.013983217068016529,
0.0723496526479721,
0.02399597316980362,
0.0346699096262455,
-0.006820552982389927,
0.0032999159302562475,
-0.04001988098025322,
-0.06078815087676048,
0.03769294545054436,
0.08187422901391983,
-0.013570762239396572,
0.04817133769392967,
0.035520777106285095,
-0.02736634388566017,
0.014965134672820568,
0.04031436890363693,
0.025023603811860085,
-0.08781888335943222,
0.004143695347011089,
-0.047553420066833496,
-0.050856973975896835,
0.01989130862057209,
0.006017789244651794,
0.02140759862959385,
0.0644432008266449,
-0.01928659714758396,
-0.044689442962408066,
0.018635815009474754,
0.025261469185352325,
-0.030224937945604324,
-0.05439355596899986,
-0.011678582988679409,
0.020813141018152237,
0.027854079380631447,
0.05199408903717995,
0.01410072110593319,
0.11271027475595474,
-0.04453399404883385,
0.07457645982503891,
0.05303995683789253,
0.0654023140668869,
0.09073864668607712,
0.008194277063012123,
6.789353415238165e-33,
0.04652036726474762,
-0.013780415989458561,
-0.05375055596232414,
0.06462088227272034,
0.037262190133333206,
-0.008969188667833805,
0.014268901199102402,
0.05091053619980812,
-0.07366928458213806,
-0.0703420341014862,
-0.016579434275627136,
0.06715812534093857,
0.017221003770828247,
0.02741534262895584,
-0.012954753823578358,
0.040476080030202866,
-0.029330061748623848,
0.021602295339107513,
0.06421688944101334,
0.01655934751033783,
-0.028465423732995987,
0.038769904524087906,
-0.06846945732831955,
0.03569803014397621,
0.07714150846004486,
0.07322864234447479,
0.02153921127319336,
-0.07498300075531006,
-0.001084614428691566,
0.015393774025142193,
-0.028716832399368286,
0.035673804581165314,
-0.009149342775344849,
0.04674643278121948,
0.008134985342621803,
0.03723914921283722,
-0.08738354593515396,
-0.009685290046036243,
-0.015473093837499619,
-0.0034949365071952343,
0.00908469408750534,
-0.006678945384919643,
-0.06593120098114014,
-0.05945819243788719,
0.0895666629076004,
-0.07036341726779938,
-0.06858539581298828,
0.07439473271369934,
-0.002696378855034709,
0.022952621802687645,
-0.017014922574162483,
0.031762801110744476,
0.015712017193436623,
-0.008453281596302986,
0.03893231227993965,
-0.02267310582101345,
0.026136480271816254,
-0.018987402319908142,
0.042355332523584366,
0.003342866199091077,
-0.060024332255125046,
0.03402465209364891,
-0.05120661109685898,
0.052375465631484985,
0.014233671128749847,
-0.050459232181310654,
-0.020020531490445137,
0.028228940442204475,
0.004952715244144201,
0.03366636484861374,
-0.016503147780895233,
0.06486169248819351,
0.010963138192892075,
0.06753300875425339,
-0.11271117627620697,
-0.016500962898135185,
-0.0026691046077758074,
0.07698146253824234,
0.003308216342702508,
-0.013786588795483112,
-0.00214232481084764,
0.03110552951693535,
-0.04466167837381363,
-0.02479253150522709,
-0.06276993453502655,
0.04267819598317146,
-0.0023622987791895866,
-0.0812574177980423,
-0.08598826080560684,
0.04525722563266754,
-0.07410861551761627,
0.027273347601294518,
-0.02937447652220726,
0.06115824729204178,
0.010197915136814117,
-7.908000124570718e-33,
-0.018184304237365723,
0.048376571387052536,
-0.10027661919593811,
-0.018538489937782288,
0.017218023538589478,
-0.06411521136760712,
0.016929682344198227,
-0.03090748004615307,
0.01816333271563053,
0.0006746207363903522,
-0.03398464247584343,
-0.047950636595487595,
0.0024988376535475254,
-0.004118954297155142,
-0.020949197933077812,
0.0026337557937949896,
0.01719781942665577,
-0.01607036031782627,
0.000847072631586343,
0.0029002870433032513,
0.052089791744947433,
-0.00425029918551445,
0.010333606041967869,
0.07632812857627869,
0.0478673130273819,
-0.05423910170793533,
0.045955535024404526,
0.03982715308666229,
0.08327540010213852,
-0.013813359662890434,
0.05684109777212143,
-0.031596820801496506,
-0.022060254588723183,
0.019354254007339478,
0.018813202157616615,
0.0359211340546608,
-0.05356323719024658,
0.03550054505467415,
0.04126027971506119,
-0.03470689058303833,
0.05922060087323189,
-0.018481982871890068,
-0.047657884657382965,
-0.020909322425723076,
-0.02393396571278572,
0.06695643812417984,
0.019342681393027306,
-0.013269979506731033,
-0.1503719687461853,
-0.04146828129887581,
0.023461313918232918,
-0.07929427176713943,
0.017908234149217606,
-0.018066011369228363,
-0.041850391775369644,
0.029296141117811203,
0.09453385323286057,
-0.052983880043029785,
-0.06433308124542236,
-0.06523570418357849,
0.09102650731801987,
-0.02792336605489254,
0.047390565276145935,
0.03664512559771538,
-0.026977013796567917,
-0.06401575356721878,
-0.013226762413978577,
-0.037293318659067154,
-0.012576503679156303,
-0.01407300028949976,
0.016793522983789444,
-0.17288771271705627,
-0.09647013247013092,
-0.052328549325466156,
0.0260708536952734,
0.032576847821474075,
-0.10959559679031372,
-0.12023034691810608,
-0.04378068074584007,
0.06455589830875397,
-0.06627202033996582,
0.009178261272609234,
0.060287874191999435,
0.05137963965535164,
-0.036209169775247574,
0.0757327452301979,
0.04985509812831879,
0.1354033350944519,
-0.011751653626561165,
0.02562817931175232,
-0.01257353276014328,
0.04771535471081734,
0.012679737992584705,
-0.04596870765089989,
-0.020288357511162758,
-5.526010227185907e-8,
-0.0635356456041336,
-0.05272042378783226,
-0.05347514897584915,
-0.007915107533335686,
-0.07392502576112747,
-0.08089688420295715,
-0.0022549275308847427,
-0.047018345445394516,
0.07051512598991394,
-0.020677752792835236,
-0.013153543695807457,
-0.029025578871369362,
-0.0898377001285553,
0.05512110888957977,
0.0680500864982605,
0.04063547030091286,
-0.045672692358493805,
-0.03524404764175415,
-0.021041376516222954,
-0.06545194983482361,
-0.0069522191770374775,
-0.0606410913169384,
0.020440135151147842,
0.010126343928277493,
-0.012082168832421303,
-0.024748267605900764,
-0.011182303540408611,
0.03724895790219307,
-0.043357573449611664,
0.010212641209363937,
-0.05441965162754059,
-0.05841123312711716,
-0.06793089956045151,
0.02564266324043274,
0.0026339066680520773,
0.009309990331530571,
-0.02912844531238079,
-0.03128457069396973,
0.0935702845454216,
0.07078994065523148,
0.0888773575425148,
-0.027815544977784157,
-0.007871481589972973,
0.044520482420921326,
0.04235457628965378,
0.012007419019937515,
-0.04750879108905792,
-0.1369926631450653,
0.05392550304532051,
-0.05959422513842583,
-0.019332682713866234,
-0.031012196093797684,
-0.040481749922037125,
0.05210667848587036,
-0.02901761420071125,
0.04734048619866371,
0.05995877832174301,
-0.030158786103129387,
0.10397333651781082,
0.007211723364889622,
-0.0053452858701348305,
0.11586122959852219,
0.004372752737253904,
0.001992630772292614
] | 0.090894 |
same context when triggered This allows each agent to have: - Different personalities - Different tool access (e.g., read-only vs. read-write) - Different models (e.g., opus vs. sonnet) - Different skills installed ### Example: Isolated Sessions In group `120363403215116621@g.us` with agents `["alfred", "baerbel"]`: \*\*Alfred's context:\*\* ``` Session: agent:alfred:whatsapp:group:120363403215116621@g.us History: [user message, alfred's previous responses] Workspace: /Users/pascal/openclaw-alfred/ Tools: read, write, exec ``` \*\*Bärbel's context:\*\* ``` Session: agent:baerbel:whatsapp:group:120363403215116621@g.us History: [user message, baerbel's previous responses] Workspace: /Users/pascal/openclaw-baerbel/ Tools: read only ``` ## Best Practices ### 1. Keep Agents Focused Design each agent with a single, clear responsibility: ```json { "broadcast": { "DEV\_GROUP": ["formatter", "linter", "tester"] } } ``` ✅ \*\*Good:\*\* Each agent has one job ❌ \*\*Bad:\*\* One generic "dev-helper" agent ### 2. Use Descriptive Names Make it clear what each agent does: ```json { "agents": { "security-scanner": { "name": "Security Scanner" }, "code-formatter": { "name": "Code Formatter" }, "test-generator": { "name": "Test Generator" } } } ``` ### 3. Configure Different Tool Access Give agents only the tools they need: ```json { "agents": { "reviewer": { "tools": { "allow": ["read", "exec"] } // Read-only }, "fixer": { "tools": { "allow": ["read", "write", "edit", "exec"] } // Read-write } } } ``` ### 4. Monitor Performance With many agents, consider: - Using `"strategy": "parallel"` (default) for speed - Limiting broadcast groups to 5-10 agents - Using faster models for simpler agents ### 5. Handle Failures Gracefully Agents fail independently. One agent's error doesn't block others: ``` Message → [Agent A ✓, Agent B ✗ error, Agent C ✓] Result: Agent A and C respond, Agent B logs error ``` ## Compatibility ### Providers Broadcast groups currently work with: - ✅ WhatsApp (implemented) - 🚧 Telegram (planned) - 🚧 Discord (planned) - 🚧 Slack (planned) ### Routing Broadcast groups work alongside existing routing: ```json { "bindings": [ { "match": { "channel": "whatsapp", "peer": { "kind": "group", "id": "GROUP\_A" } }, "agentId": "alfred" } ], "broadcast": { "GROUP\_B": ["agent1", "agent2"] } } ``` - `GROUP\_A`: Only alfred responds (normal routing) - `GROUP\_B`: agent1 AND agent2 respond (broadcast) \*\*Precedence:\*\* `broadcast` takes priority over `bindings`. ## Troubleshooting ### Agents Not Responding \*\*Check:\*\* 1. Agent IDs exist in `agents.list` 2. Peer ID format is correct (e.g., `120363403215116621@g.us`) 3. Agents are not in deny lists \*\*Debug:\*\* ```bash tail -f ~/.openclaw/logs/gateway.log | grep broadcast ``` ### Only One Agent Responding \*\*Cause:\*\* Peer ID might be in `bindings` but not `broadcast`. \*\*Fix:\*\* Add to broadcast config or remove from bindings. ### Performance Issues \*\*If slow with many agents:\*\* - Reduce number of agents per group - Use lighter models (sonnet instead of opus) - Check sandbox startup time ## Examples ### Example 1: Code Review Team ```json { "broadcast": { "strategy": "parallel", "120363403215116621@g.us": [ "code-formatter", "security-scanner", "test-coverage", "docs-checker" ] }, "agents": { "list": [ { "id": "code-formatter", "workspace": "~/agents/formatter", "tools": { "allow": ["read", "write"] } }, { "id": "security-scanner", "workspace": "~/agents/security", "tools": { "allow": ["read", "exec"] } }, { "id": "test-coverage", "workspace": "~/agents/testing", "tools": { "allow": ["read", "exec"] } }, { "id": "docs-checker", "workspace": "~/agents/docs", "tools": { "allow": ["read"] } } ] } } ``` \*\*User sends:\*\* Code snippet \*\*Responses:\*\* - code-formatter: "Fixed indentation and added type hints" - security-scanner: "⚠️ SQL injection vulnerability in line 12" - test-coverage: "Coverage is 45%, missing tests for error cases" - docs-checker: "Missing docstring for function `process\_data`" ### Example 2: Multi-Language Support ```json { "broadcast": { "strategy": "sequential", "+15555550123": ["detect-language", "translator-en", "translator-de"] }, "agents": { "list": [ { "id": "detect-language", "workspace": "~/agents/lang-detect" }, { "id": "translator-en", "workspace": "~/agents/translate-en" }, { "id": "translator-de", "workspace": "~/agents/translate-de" } ] } } ``` ## API Reference ### Config | https://github.com/openclaw/openclaw/blob/main//docs/broadcast-groups.md | main | opebclaw | [
-0.023607125505805016,
-0.011990672908723354,
-0.08027414977550507,
0.013681101612746716,
0.0019956871401518583,
-0.012940540909767151,
0.08914073556661606,
-0.026807503774762154,
0.08253125101327896,
-0.04292882978916168,
0.00543525256216526,
-0.05216463655233383,
0.02478204108774662,
0.009506048634648323,
0.10066498070955276,
0.04571996256709099,
0.03906290605664253,
-0.03617655858397484,
-0.08309917896986008,
-0.03405192121863365,
0.03477702662348747,
0.025222981348633766,
0.009064167737960815,
-0.08605299890041351,
-0.048037078231573105,
0.03324122354388237,
-0.06773094832897186,
-0.04375631734728813,
0.060246992856264114,
0.019567282870411873,
0.052246734499931335,
0.07004214823246002,
-0.04885520040988922,
0.03129894286394119,
0.06448060274124146,
0.0806802287697792,
0.016338320448994637,
0.0292661115527153,
0.025466319173574448,
0.023563334718346596,
-0.01719970442354679,
0.027524853125214577,
-0.10100562125444412,
0.019152015447616577,
-0.049903035163879395,
-0.0269415732473135,
-0.05781719461083412,
0.009629497304558754,
-0.06904157251119614,
-0.007374390959739685,
-0.06637607514858246,
0.009502899833023548,
0.031075915321707726,
0.012902170419692993,
0.018692979589104652,
0.030004434287548065,
-0.02194155380129814,
0.07608404010534286,
0.03628944605588913,
-0.06048160046339035,
-0.08715997636318207,
-0.027704134583473206,
-0.04867308586835861,
0.011817836202681065,
-0.04451196268200874,
0.04183704033493996,
-0.08779069781303406,
-0.05492156371474266,
0.027488186955451965,
-0.02237786166369915,
-0.02252209559082985,
-0.05770443379878998,
-0.044919442385435104,
0.007182030007243156,
0.060751236975193024,
-0.025429274886846542,
-0.0030324633698910475,
0.016817018389701843,
-0.01736239157617092,
-0.1200011670589447,
-0.0058260527439415455,
-0.0019516367465257645,
0.0073508331552147865,
-0.017129603773355484,
0.014301523566246033,
0.056973930448293686,
0.0024679936468601227,
-0.04965578019618988,
0.03584040328860283,
0.05462506040930748,
-0.00500493822619319,
-0.11242911219596863,
0.0765991285443306,
0.08820520341396332,
0.08835293352603912,
0.004843004047870636,
0.02474268712103367,
0.08877861499786377,
0.0033075253013521433,
0.09665782004594803,
-0.02229083888232708,
-0.009643645957112312,
-0.007785433437675238,
0.029884327203035355,
0.0011766694951802492,
0.027127275243401527,
-0.034314557909965515,
-0.027620984241366386,
-0.028803227469325066,
-0.062142882496118546,
-0.05694672837853432,
0.007717455737292767,
0.010569456964731216,
-0.01073405146598816,
0.052169736474752426,
-0.08235379308462143,
0.04304584488272667,
0.022948632016777992,
-0.014733009040355682,
0.13784517347812653,
0.12479081749916077,
-0.042048487812280655,
0.0024647784885019064,
0.1084231585264206,
0.01785164698958397,
-0.01996678113937378,
0.03839900344610214,
8.218073493798559e-33,
0.06524103134870529,
-0.024313529953360558,
-0.0360245481133461,
0.04869750514626503,
-0.007523920387029648,
0.0937250629067421,
-0.05801350623369217,
0.08113013207912445,
-0.02515105903148651,
0.0035611221101135015,
-0.008957503363490105,
0.07361609488725662,
-0.0707876905798912,
-0.0324670672416687,
-0.026838315650820732,
0.07302041351795197,
-0.01582697406411171,
0.07174466550350189,
0.05846596881747246,
0.01717696338891983,
-0.0371219702064991,
0.07835512608289719,
-0.039480578154325485,
0.0011382625671103597,
-0.013813847675919533,
0.06127632036805153,
0.0336836501955986,
-0.0973733514547348,
0.029157038778066635,
0.0190960131585598,
-0.04428299888968468,
0.026072105392813683,
-0.020470600575208664,
0.08855903893709183,
-0.018570059910416603,
0.05931800976395607,
0.003067220328375697,
-0.06300375610589981,
-0.05225741118192673,
-0.06471540778875351,
-0.009868506342172623,
0.027627352625131607,
0.043080393224954605,
-0.0577595978975296,
-0.09518875926733017,
-0.14866235852241516,
-0.06599625945091248,
0.03481486439704895,
0.0003432828816585243,
0.012891774997115135,
0.02521570399403572,
0.05905385687947273,
0.041030071675777435,
-0.01886318251490593,
-0.014363770373165607,
-0.04101228341460228,
-0.0444832481443882,
0.08505578339099884,
0.03944633901119232,
0.048972852528095245,
0.04092477262020111,
0.024337375536561012,
0.0274994894862175,
0.07625053077936172,
0.08086737245321274,
-0.024802278727293015,
-0.045051366090774536,
0.06686098873615265,
0.034755509346723557,
0.0009423590963706374,
-0.0700908675789833,
0.06152435392141342,
-0.0007247396861203015,
0.0015168249374255538,
-0.0746295228600502,
-0.10952141880989075,
-0.032246921211481094,
0.08815623074769974,
-0.004765711724758148,
0.016701865941286087,
-0.0019477076129987836,
0.0495181530714035,
-0.08728338032960892,
-0.0048429761081933975,
-0.10752863436937332,
0.004747016821056604,
-0.020440420135855675,
-0.09027083963155746,
-0.07536116987466812,
-0.007386422250419855,
0.014109482988715172,
-0.05412575602531433,
-0.02942742593586445,
0.03906130790710449,
-0.03887639939785004,
-9.545582774069185e-33,
0.04395255446434021,
-0.0614779107272625,
-0.08158597350120544,
-0.04168711230158806,
0.021835733205080032,
-0.05563606321811676,
0.05136934295296669,
-0.042741142213344574,
-0.01220042072236538,
-0.0046334778890013695,
0.03985278680920601,
-0.02093343809247017,
0.050375889986753464,
-0.03640013933181763,
0.012644701637327671,
-0.014699396677315235,
-0.026245463639497757,
-0.03496736288070679,
-0.04646182432770729,
-0.02351967804133892,
0.05301576107740402,
0.014273926615715027,
-0.07670369744300842,
0.05291399359703064,
0.043128062039613724,
-0.048730868846178055,
-0.027523379772901535,
0.01409112848341465,
0.000060858823417220265,
0.013085461221635342,
0.0005032048211432993,
0.0328209213912487,
-0.10955274850130081,
-0.016728118062019348,
-0.0458860918879509,
-0.004229394719004631,
-0.08208093047142029,
0.14382828772068024,
-0.02143668383359909,
0.01610686257481575,
0.08437301963567734,
0.03216434270143509,
-0.066133514046669,
-0.015164384618401527,
0.012564935721457005,
0.09660425037145615,
-0.015053514391183853,
-0.054016634821891785,
-0.022974949330091476,
0.043409354984760284,
0.02040218375623226,
-0.059985555708408356,
-0.04542994871735573,
-0.024919234216213226,
-0.03573670610785484,
0.006656793877482414,
0.11883528530597687,
-0.09937527775764465,
-0.02219258062541485,
-0.09100769460201263,
0.03382302448153496,
0.03207886219024658,
-0.021449623629450798,
0.05954277515411377,
0.0076090800575912,
-0.0631866455078125,
-0.03563310205936432,
-0.026008347049355507,
0.020739387720823288,
-0.06559842824935913,
0.044045597314834595,
-0.1119142472743988,
-0.01944274641573429,
-0.017977744340896606,
0.06571497768163681,
0.04363058879971504,
-0.01626427471637726,
-0.14089806377887726,
-0.024958008900284767,
0.03441419452428818,
-0.13825157284736633,
-0.013122990727424622,
-0.00046068415394984186,
0.1205088421702385,
-0.04676284268498421,
0.09192458540201187,
-0.03502347692847252,
0.11890758574008942,
0.02373490296304226,
0.03452813997864723,
0.028963180258870125,
-0.003501418512314558,
-0.020963717252016068,
0.000014633071259595454,
-0.014565570279955864,
-5.978859718425156e-8,
-0.09382039308547974,
-0.03561684489250183,
-0.04132432863116264,
0.05059736222028732,
-0.013967965729534626,
-0.040548358112573624,
-0.049458302557468414,
0.010847155004739761,
-0.014560298062860966,
-0.00940876454114914,
0.017861293628811836,
0.005841565318405628,
-0.045104168355464935,
-0.100398950278759,
0.030388865619897842,
-0.019886620342731476,
0.0012982501648366451,
-0.07164318114519119,
-0.00857226736843586,
-0.06519443541765213,
0.048182614147663116,
-0.01455705240368843,
-0.011833086609840393,
0.01467248983681202,
-0.05608922615647316,
-0.002927193185314536,
-0.05079460144042969,
0.07659993320703506,
-0.061184242367744446,
0.02732200361788273,
0.03264578431844711,
0.010067679919302464,
-0.059930264949798584,
-0.017631730064749718,
-0.08234299719333649,
0.0044196476228535175,
-0.002667374210432172,
-0.027796268463134766,
-0.008809717372059822,
0.035939544439315796,
0.07359590381383896,
-0.06021219119429588,
-0.01792236976325512,
0.028932837769389153,
0.015495918691158295,
0.03170562535524368,
0.024167779833078384,
-0.016559690237045288,
0.07031459361314774,
-0.015289432369172573,
-0.04052899405360222,
-0.009496055543422699,
-0.02168884314596653,
0.06807899475097656,
0.053945235908031464,
-0.013048696331679821,
0.08373004198074341,
0.002173223765566945,
0.05785398557782173,
0.013829567469656467,
-0.0031154148746281862,
0.018409572541713715,
-0.008775223046541214,
-0.0007252476061694324
] | 0.092351 |
for function `process\_data`" ### Example 2: Multi-Language Support ```json { "broadcast": { "strategy": "sequential", "+15555550123": ["detect-language", "translator-en", "translator-de"] }, "agents": { "list": [ { "id": "detect-language", "workspace": "~/agents/lang-detect" }, { "id": "translator-en", "workspace": "~/agents/translate-en" }, { "id": "translator-de", "workspace": "~/agents/translate-de" } ] } } ``` ## API Reference ### Config Schema ```typescript interface OpenClawConfig { broadcast?: { strategy?: "parallel" | "sequential"; [peerId: string]: string[]; }; } ``` ### Fields - `strategy` (optional): How to process agents - `"parallel"` (default): All agents process simultaneously - `"sequential"`: Agents process in array order - `[peerId]`: WhatsApp group JID, E.164 number, or other peer ID - Value: Array of agent IDs that should process messages ## Limitations 1. \*\*Max agents:\*\* No hard limit, but 10+ agents may be slow 2. \*\*Shared context:\*\* Agents don't see each other's responses (by design) 3. \*\*Message ordering:\*\* Parallel responses may arrive in any order 4. \*\*Rate limits:\*\* All agents count toward WhatsApp rate limits ## Future Enhancements Planned features: - [ ] Shared context mode (agents see each other's responses) - [ ] Agent coordination (agents can signal each other) - [ ] Dynamic agent selection (choose agents based on message content) - [ ] Agent priorities (some agents respond before others) ## See Also - [Multi-Agent Configuration](/multi-agent-sandbox-tools) - [Routing Configuration](/concepts/channel-routing) - [Session Management](/concepts/sessions) | https://github.com/openclaw/openclaw/blob/main//docs/broadcast-groups.md | main | opebclaw | [
-0.02729552425444126,
0.006736997049301863,
-0.06709863245487213,
-0.03020532615482807,
0.004667222034186125,
-0.0025479691103100777,
0.07795225828886032,
-0.016698051244020462,
0.013721434399485588,
-0.04291290417313576,
-0.00301226694136858,
-0.059552986174821854,
-0.02559896744787693,
0.08116301149129868,
0.10752122104167938,
0.041858091950416565,
-0.051911670714616776,
-0.005409190896898508,
-0.033676039427518845,
-0.15225303173065186,
0.09434915333986282,
0.028346223756670952,
0.0261904988437891,
-0.014618750661611557,
-0.0832970067858696,
-0.016405491158366203,
-0.018313545733690262,
-0.029168907552957535,
0.013757629320025444,
0.04538991302251816,
0.045637622475624084,
0.022677363827824593,
-0.0780523493885994,
0.053213056176900864,
0.08360125869512558,
0.08083521574735641,
-0.036032889038324356,
-0.09723629057407379,
0.03342398628592491,
0.05787849426269531,
0.053994014859199524,
0.034753940999507904,
-0.058297086507081985,
-0.10145198553800583,
-0.009990318678319454,
-0.08702745288610458,
-0.06195024028420448,
0.0013392420951277018,
-0.034667614847421646,
-0.0004537973727565259,
-0.1216304823756218,
-0.04232918843626976,
-0.012181427329778671,
0.0010016057640314102,
0.08484230935573578,
-0.025802714750170708,
-0.04470042511820793,
0.04328169301152229,
0.0043940856121480465,
-0.016454389318823814,
0.04403394088149071,
-0.06903795152902603,
0.01838524080812931,
0.024763895198702812,
-0.05369798094034195,
-0.01107057835906744,
-0.0763370543718338,
0.034332506358623505,
-0.009734134189784527,
-0.0354517437517643,
0.015672530978918076,
0.009349551983177662,
-0.013838605023920536,
-0.019909126684069633,
-0.017288779839873314,
-0.08268361538648605,
0.021811535581946373,
-0.005362034309655428,
-0.04046650230884552,
-0.06461015343666077,
-0.026305535808205605,
-0.07069633156061172,
-0.056694548577070236,
0.03644511476159096,
-0.014584177173674107,
0.04582563042640686,
-0.04704127460718155,
-0.03624605014920235,
0.013513286598026752,
0.05150024592876434,
-0.09274895489215851,
-0.08397050946950912,
-0.000716990849468857,
0.047492820769548416,
0.06594691425561905,
0.08805067837238312,
-0.07095268368721008,
-0.012052680365741253,
-0.02655331790447235,
0.07304854691028595,
-0.02004157193005085,
-0.004255805164575577,
0.0650373175740242,
0.011090592481195927,
-0.0668608769774437,
-0.02263479121029377,
0.003525318345054984,
0.034507039934396744,
-0.1387624740600586,
0.0013603534316644073,
-0.01594560220837593,
0.10674948245286942,
0.023575715720653534,
0.0373060517013073,
-0.07524768263101578,
0.03951140120625496,
0.04078422859311104,
0.0014896111097186804,
0.0348934680223465,
0.10638882964849472,
0.1300836056470871,
-0.013496741652488708,
0.015812501311302185,
0.04574764519929886,
0.068187415599823,
0.007377615198493004,
0.08189696818590164,
9.94171018171214e-35,
0.05061504989862442,
-0.04419839754700661,
-0.008327151648700237,
0.012472239322960377,
0.0008080188999883831,
-0.020292559638619423,
0.056901875883340836,
0.001723745372146368,
-0.09704313427209854,
-0.020026743412017822,
-0.01751929707825184,
0.10386163741350174,
-0.10382388532161713,
-0.030881118029356003,
-0.02616649493575096,
-0.019815068691968918,
0.1086374819278717,
0.08235001564025879,
0.07814893126487732,
0.07116404920816422,
0.09563454985618591,
0.02769298292696476,
-0.06742118299007416,
0.03894219547510147,
0.03184553608298302,
0.011045271530747414,
-0.06140178442001343,
-0.061754629015922546,
-0.03957032039761543,
0.007734227459877729,
0.02440449967980385,
0.055708300322294235,
-0.013097422197461128,
0.0907067060470581,
0.021780207753181458,
0.007081163581460714,
-0.022951483726501465,
-0.03784056007862091,
-0.10947863012552261,
-0.07963410764932632,
0.054397862404584885,
0.051110584288835526,
-0.022331688553094864,
-0.008818591944873333,
-0.0012481482699513435,
-0.05353671312332153,
-0.08269618451595306,
-0.07229503989219666,
0.054801467806100845,
-0.04053012281656265,
0.032685015350580215,
0.05215206369757652,
0.011835644021630287,
-0.01704380102455616,
0.11954886466264725,
-0.02539617381989956,
-0.02981693670153618,
0.027127662673592567,
0.030215242877602577,
0.02511424943804741,
-0.0848504900932312,
-0.0028722528368234634,
0.00357864354737103,
0.015880608931183815,
0.09393472969532013,
-0.05252348631620407,
-0.03034176118671894,
0.0086948461830616,
0.05731264501810074,
-0.014136684127151966,
-0.04787369817495346,
0.04856279119849205,
-0.029454562813043594,
0.07390575110912323,
0.02302376553416252,
-0.03836631402373314,
-0.027989238500595093,
-0.06884640455245972,
0.010999505408108234,
-0.04503541439771652,
-0.0036892718635499477,
-0.02993386797606945,
-0.06292974948883057,
0.09162137657403946,
-0.015912849456071854,
0.07626782357692719,
-0.04533783718943596,
-0.02791082300245762,
0.025213932618498802,
0.0335024818778038,
-0.077193982899189,
0.01498910691589117,
-0.07217168062925339,
-0.05170729011297226,
-0.03553532063961029,
-3.459350570091402e-33,
0.021798966452479362,
-0.07280577719211578,
-0.03526076301932335,
-0.023766031488776207,
-0.03489505872130394,
-0.08096808940172195,
0.07742694020271301,
-0.01142401248216629,
-0.0021547984797507524,
0.03482392057776451,
-0.016740256920456886,
-0.09259243309497833,
0.03842825070023537,
-0.02088293246924877,
-0.006510379258543253,
-0.014085808768868446,
0.02726682648062706,
-0.03719063848257065,
0.07266466319561005,
0.024950534105300903,
-0.03881712257862091,
0.12509572505950928,
0.016298269852995872,
0.011845679953694344,
0.020989373326301575,
-0.04634615778923035,
-0.03281991928815842,
0.03475603461265564,
-0.05474391579627991,
0.028864901512861252,
0.02799670584499836,
-0.016452878713607788,
-0.02879902720451355,
0.07746322453022003,
-0.04192499443888664,
0.007319387048482895,
0.025938093662261963,
0.10387644916772842,
0.017729515209794044,
0.030365057289600372,
0.026917139068245888,
0.004525778349488974,
-0.0858495682477951,
0.0018128679366782308,
-0.01924404688179493,
0.027012348175048828,
0.042688217014074326,
0.032944560050964355,
-0.07410626113414764,
-0.02589523047208786,
0.004469534382224083,
0.0018869764171540737,
-0.07201182842254639,
-0.019776852801442146,
0.05314380303025246,
-0.02279418148100376,
0.08445192873477936,
-0.15789476037025452,
-0.05593713000416756,
-0.07427048683166504,
0.019620349630713463,
-0.0648181140422821,
-0.0028311859350651503,
0.05123601481318474,
0.08343551307916641,
-0.09118784964084625,
-0.0510866753757,
-0.018606700003147125,
0.05564194917678833,
-0.060195133090019226,
0.006323644425719976,
-0.03863031789660454,
-0.013650275766849518,
0.0574580617249012,
0.036483973264694214,
-0.03398493677377701,
-0.024250825867056847,
-0.017685797065496445,
0.074070043861866,
0.09811406582593918,
-0.0666155219078064,
0.012517034076154232,
0.05037704482674599,
0.04050920158624649,
-0.008833862841129303,
0.02687884122133255,
0.05343401059508324,
0.08970636129379272,
0.0027622669003903866,
0.03343413397669792,
0.013410971499979496,
0.018872730433940887,
-0.057445138692855835,
-0.05897015333175659,
-0.03254828602075577,
-5.060149987912155e-8,
-0.14696714282035828,
-0.039006538689136505,
-0.10071782022714615,
0.030657382681965828,
-0.0431404747068882,
-0.058576565235853195,
-0.02841254696249962,
-0.04449591413140297,
0.04187330976128578,
-0.05494696646928787,
-0.0395839586853981,
0.06301167607307434,
0.0018651533173397183,
-0.02870228700339794,
0.0010065555106848478,
0.0015476319240406156,
0.003407938638702035,
0.066075399518013,
-0.018503054976463318,
0.03768831118941307,
0.031898584216833115,
0.006763502024114132,
-0.034396544098854065,
0.010634408332407475,
0.028295939788222313,
-0.0039399112574756145,
0.0022050593979656696,
-0.018089961260557175,
0.03322671353816986,
0.025832736864686012,
-0.04379379004240036,
-0.05924171954393387,
0.037801481783390045,
0.006363795138895512,
-0.017375504598021507,
-0.016127167269587517,
0.05020173639059067,
-0.017295844852924347,
0.05025660619139671,
0.008187836967408657,
0.0704498216509819,
0.03082270920276642,
-0.09120260924100876,
0.01763545721769333,
0.05538604035973549,
-0.01690327748656273,
-0.02455875836312771,
0.0074552264995872974,
0.09226462244987488,
-0.027716798707842827,
-0.046799805015325546,
-0.010529803112149239,
-0.005595245398581028,
0.05401338264346123,
-0.010973993688821793,
0.03174147382378578,
0.018278710544109344,
-0.05321250855922699,
0.023594973608851433,
0.022656291723251343,
0.014543875120580196,
-0.013286750763654709,
-0.01968376711010933,
-0.016101770102977753
] | 0.151027 |
# OpenProse OpenProse is a portable, markdown-first workflow format for orchestrating AI sessions. In OpenClaw it ships as a plugin that installs an OpenProse skill pack plus a `/prose` slash command. Programs live in `.prose` files and can spawn multiple sub-agents with explicit control flow. Official site: https://www.prose.md ## What it can do - Multi-agent research + synthesis with explicit parallelism. - Repeatable approval-safe workflows (code review, incident triage, content pipelines). - Reusable `.prose` programs you can run across supported agent runtimes. ## Install + enable Bundled plugins are disabled by default. Enable OpenProse: ```bash openclaw plugins enable open-prose ``` Restart the Gateway after enabling the plugin. Dev/local checkout: `openclaw plugins install ./extensions/open-prose` Related docs: [Plugins](/plugin), [Plugin manifest](/plugins/manifest), [Skills](/tools/skills). ## Slash command OpenProse registers `/prose` as a user-invocable skill command. It routes to the OpenProse VM instructions and uses OpenClaw tools under the hood. Common commands: ``` /prose help /prose run /prose run /prose run /prose compile /prose examples /prose update ``` ## Example: a simple `.prose` file ```prose # Research + synthesis with two agents running in parallel. input topic: "What should we research?" agent researcher: model: sonnet prompt: "You research thoroughly and cite sources." agent writer: model: opus prompt: "You write a concise summary." parallel: findings = session: researcher prompt: "Research {topic}." draft = session: writer prompt: "Summarize {topic}." session "Merge the findings + draft into a final answer." context: { findings, draft } ``` ## File locations OpenProse keeps state under `.prose/` in your workspace: ``` .prose/ ├── .env ├── runs/ │ └── {YYYYMMDD}-{HHMMSS}-{random}/ │ ├── program.prose │ ├── state.md │ ├── bindings/ │ └── agents/ └── agents/ ``` User-level persistent agents live at: ``` ~/.prose/agents/ ``` ## State modes OpenProse supports multiple state backends: - \*\*filesystem\*\* (default): `.prose/runs/...` - \*\*in-context\*\*: transient, for small programs - \*\*sqlite\*\* (experimental): requires `sqlite3` binary - \*\*postgres\*\* (experimental): requires `psql` and a connection string Notes: - sqlite/postgres are opt-in and experimental. - postgres credentials flow into subagent logs; use a dedicated, least-privileged DB. ## Remote programs `/prose run ` resolves to `https://p.prose.md//`. Direct URLs are fetched as-is. This uses the `web\_fetch` tool (or `exec` for POST). ## OpenClaw runtime mapping OpenProse programs map to OpenClaw primitives: | OpenProse concept | OpenClaw tool | | ------------------------- | ---------------- | | Spawn session / Task tool | `sessions\_spawn` | | File read/write | `read` / `write` | | Web fetch | `web\_fetch` | If your tool allowlist blocks these tools, OpenProse programs will fail. See [Skills config](/tools/skills-config). ## Security + approvals Treat `.prose` files like code. Review before running. Use OpenClaw tool allowlists and approval gates to control side effects. For deterministic, approval-gated workflows, compare with [Lobster](/tools/lobster). | https://github.com/openclaw/openclaw/blob/main//docs/prose.md | main | opebclaw | [
-0.039826102554798126,
-0.05381954833865166,
-0.11608331650495529,
0.01760087162256241,
0.042593855410814285,
-0.000806338619440794,
-0.062272809445858,
0.057313110679388046,
0.01942198909819126,
0.004092799033969641,
-0.03815014287829399,
0.004258544649928808,
-0.014818862080574036,
0.010125993750989437,
0.11657354980707169,
0.0889897570014,
0.010720210149884224,
-0.005826080217957497,
-0.015373347327113152,
-0.053619589656591415,
0.06374001502990723,
0.01054066140204668,
0.03518002852797508,
-0.06950447708368301,
-0.07363545149564743,
-0.04715656116604805,
-0.017449652776122093,
-0.017956063151359558,
-0.006215525325387716,
-0.013046031817793846,
0.11121071875095367,
0.024489875882864,
-0.0015548684168606997,
0.0042589763179421425,
0.04414140433073044,
0.05512542277574539,
0.0008590937359258533,
-0.0013671760680153966,
-0.04896395280957222,
-0.01917768456041813,
0.06140373647212982,
0.0026910831220448017,
-0.0920272096991539,
-0.028642689809203148,
-0.039009567350149155,
-0.07850413769483566,
-0.04790852591395378,
-0.07291561365127563,
0.012764139100909233,
0.010598218999803066,
-0.061245184391736984,
-0.13759171962738037,
0.00038025371031835675,
-0.009006282314658165,
0.011280108243227005,
-0.020443452522158623,
0.058578651398420334,
-0.039566729217767715,
0.016334250569343567,
-0.028707031160593033,
-0.006604171823710203,
0.0001886735699372366,
-0.052401646971702576,
0.015537101775407791,
-0.03537581488490105,
0.03888217732310295,
-0.04981189966201782,
0.03355151042342186,
0.0029557927045971155,
-0.10045557469129562,
-0.03721025213599205,
0.0023126453161239624,
-0.00432664155960083,
-0.006844182964414358,
-0.012057800777256489,
-0.023372314870357513,
-0.0025393522810190916,
-0.022480729967355728,
0.010990394279360771,
-0.12459496408700943,
-0.013133089989423752,
-0.0047597563825547695,
-0.0695381686091423,
0.047513216733932495,
-0.03947693482041359,
0.07808316498994827,
0.054153814911842346,
0.07228627055883408,
0.10433602333068848,
-0.0062002032063901424,
-0.005552311427891254,
-0.04643459990620613,
-0.02837231755256653,
-0.004943485371768475,
0.019459130242466927,
-0.030714986845850945,
-0.059290796518325806,
-0.04056347534060478,
-0.03952639549970627,
0.09641725569963455,
-0.07845751941204071,
-0.01744341291487217,
0.08157240599393845,
-0.0257626511156559,
-0.09992184489965439,
0.016734305769205093,
0.09191348403692245,
0.058026865124702454,
-0.018552478402853012,
-0.05197610333561897,
-0.002552627120167017,
-0.008465183898806572,
0.1500881463289261,
-0.02125735953450203,
0.022310201078653336,
0.04679643362760544,
-0.05643780902028084,
0.008807774633169174,
0.0511929988861084,
0.07651843875646591,
0.05672663077712059,
0.025950603187084198,
0.04871411249041557,
0.02583489380776882,
0.10965373367071152,
0.0671490803360939,
0.027450887486338615,
4.6567491561153086e-33,
0.07165700942277908,
0.008118763566017151,
-0.014660190790891647,
0.0591144859790802,
0.10780440270900726,
-0.006809560116380453,
0.03309396654367447,
-0.022202838212251663,
-0.1496233344078064,
0.037888672202825546,
0.0607214979827404,
0.021232470870018005,
-0.07071006298065186,
0.08545491844415665,
0.03080720081925392,
-0.09901530295610428,
-0.003157658502459526,
0.06185750663280487,
0.03968244418501854,
-0.001901943818666041,
0.029048915952444077,
-0.07364818453788757,
-0.005089494865387678,
0.047111958265304565,
0.02041556127369404,
0.031786441802978516,
-0.012751108966767788,
0.01484808698296547,
0.09658335149288177,
0.009785003028810024,
0.01470939815044403,
0.05257056653499603,
-0.08293376863002777,
0.07234436273574829,
-0.03851200267672539,
0.03826702758669853,
-0.11605720221996307,
-0.06304498761892319,
0.06589952111244202,
0.06254709511995316,
-0.05169473588466644,
0.03863697126507759,
0.058571379631757736,
-0.03428519517183304,
0.029386304318904877,
-0.06198862940073013,
-0.09245148301124573,
0.04346306249499321,
0.08138173818588257,
0.02172350138425827,
0.009576573967933655,
0.022703707218170166,
0.04493449628353119,
-0.025310594588518143,
0.024962902069091797,
-0.037629373371601105,
-0.04914187267422676,
-0.003186187008395791,
0.05874234810471535,
-0.00473895063623786,
0.02447025664150715,
0.04799780622124672,
-0.1258055865764618,
0.027051839977502823,
-0.0555584542453289,
0.044345054775476456,
0.006665310822427273,
0.040293239057064056,
0.08713916689157486,
0.014966314658522606,
-0.10786702483892441,
0.027604054659605026,
-0.00442726444453001,
-0.01381873618811369,
-0.03739064931869507,
0.016144132241606712,
0.01098282728344202,
-0.0716552808880806,
0.043289706110954285,
-0.015062735415995121,
-0.07708178460597992,
0.046243567019701004,
-0.07797972112894058,
0.07439606636762619,
0.026335444301366806,
-0.008442400023341179,
-0.07225435972213745,
0.0035339880269020796,
-0.06145297735929489,
0.054755836725234985,
-0.013100150041282177,
-0.006726650986820459,
-0.037598516792058945,
0.05746466666460037,
-0.02279038168489933,
-4.519129257018743e-33,
-0.011369241401553154,
-0.026038384065032005,
-0.04968448728322983,
0.01568632945418358,
0.004648017697036266,
-0.015109473839402199,
0.0037979900371283293,
-0.0779573917388916,
0.0231854896992445,
-0.031230298802256584,
-0.010750140063464642,
0.024604929611086845,
0.08086483180522919,
-0.07225345075130463,
0.00808629672974348,
-0.09169412404298782,
-0.055418845266103745,
-0.0026239596772938967,
0.040812570601701736,
0.010192583315074444,
0.004282033536583185,
0.08024368435144424,
0.04820352420210838,
-0.05559474974870682,
0.08653108030557632,
-0.012389334850013256,
-0.0006053217221051455,
0.06663254648447037,
0.024340052157640457,
-0.017774144187569618,
0.047891512513160706,
-0.006904482841491699,
-0.08921836316585541,
-0.00782146118581295,
-0.009833825752139091,
0.07858218997716904,
0.02334849163889885,
0.02132393792271614,
-0.01343373954296112,
-0.0049748290330171585,
0.06412103027105331,
-0.07306135445833206,
-0.07585271447896957,
-0.02091365121304989,
-0.03730584681034088,
0.08405682444572449,
-0.08572681993246078,
-0.028634365648031235,
-0.03845911845564842,
-0.05126013234257698,
-0.08094111829996109,
0.04708011448383331,
-0.04076036065816879,
-0.10241211205720901,
0.009571876376867294,
-0.038954783231019974,
0.10307306051254272,
-0.06706824898719788,
-0.08445394039154053,
-0.04822900891304016,
0.017352689057588577,
0.01525487657636404,
0.036691416054964066,
0.04273547977209091,
-0.0016695430967956781,
-0.011660867370665073,
-0.020687874406576157,
0.08041489124298096,
-0.0004009365802630782,
-0.02798474207520485,
-0.011678192764520645,
-0.0375710129737854,
-0.015134270302951336,
-0.03676972910761833,
0.03835785388946533,
-0.0067198011092841625,
-0.07353009283542633,
-0.05764750763773918,
-0.0183002557605505,
0.06686905026435852,
-0.021704811602830887,
-0.02131400816142559,
0.033048372715711594,
-0.052091747522354126,
-0.01796422153711319,
0.024503281340003014,
-0.012488619424402714,
0.069038026034832,
0.06485194712877274,
0.06674794852733612,
-0.08771862834692001,
0.0474281869828701,
0.05366950482130051,
0.034215595573186874,
-0.06995943188667297,
-5.516756118595367e-8,
-0.004853513091802597,
-0.04970582202076912,
0.0633172020316124,
-0.003668417688459158,
-0.0227389894425869,
-0.08822941780090332,
0.009622866287827492,
0.0007273054798133671,
-0.00926433876156807,
0.05567065253853798,
0.08015000075101852,
0.02941112406551838,
0.0011615233961492777,
-0.024114595726132393,
0.012333161197602749,
0.06948108226060867,
0.044552844017744064,
0.03799838572740555,
-0.027936318889260292,
-0.09546960145235062,
0.03952314704656601,
0.015253916382789612,
0.0005883410340175033,
0.06363815814256668,
-0.05372321233153343,
-0.06753379106521606,
-0.04045218974351883,
-0.03234163671731949,
-0.06180957704782486,
0.05477486550807953,
0.04050794243812561,
-0.01067748200148344,
0.053748875856399536,
0.04074368253350258,
0.03494277223944664,
0.044494934380054474,
-0.050778549164533615,
0.06546662002801895,
0.04486153647303581,
0.008316225372254848,
0.030118852853775024,
-0.02023385465145111,
-0.013435515575110912,
-0.06412123143672943,
0.009314849972724915,
0.027052022516727448,
-0.06527488678693771,
-0.05164753645658493,
0.03709154948592186,
-0.003918897360563278,
-0.03691781312227249,
0.045647572726011276,
-0.02445122040808201,
0.10125212371349335,
0.035406094044446945,
0.0664873793721199,
0.007252043578773737,
-0.06256353855133057,
0.02817591093480587,
0.04544560983777046,
-0.013655897229909897,
-0.021989740431308746,
0.12788426876068115,
-0.048837803304195404
] | 0.191793 |
# VPS hosting This hub links to the supported VPS/hosting guides and explains how cloud deployments work at a high level. ## Pick a provider - \*\*Railway\*\* (one‑click + browser setup): [Railway](/railway) - \*\*Northflank\*\* (one‑click + browser setup): [Northflank](/northflank) - \*\*Oracle Cloud (Always Free)\*\*: [Oracle](/platforms/oracle) — $0/month (Always Free, ARM; capacity/signup can be finicky) - \*\*Fly.io\*\*: [Fly.io](/platforms/fly) - \*\*Hetzner (Docker)\*\*: [Hetzner](/platforms/hetzner) - \*\*GCP (Compute Engine)\*\*: [GCP](/platforms/gcp) - \*\*exe.dev\*\* (VM + HTTPS proxy): [exe.dev](/platforms/exe-dev) - \*\*AWS (EC2/Lightsail/free tier)\*\*: works well too. Video guide: https://x.com/techfrenAJ/status/2014934471095812547 ## How cloud setups work - The \*\*Gateway runs on the VPS\*\* and owns state + workspace. - You connect from your laptop/phone via the \*\*Control UI\*\* or \*\*Tailscale/SSH\*\*. - Treat the VPS as the source of truth and \*\*back up\*\* the state + workspace. - Secure default: keep the Gateway on loopback and access it via SSH tunnel or Tailscale Serve. If you bind to `lan`/`tailnet`, require `gateway.auth.token` or `gateway.auth.password`. Remote access: [Gateway remote](/gateway/remote) Platforms hub: [Platforms](/platforms) ## Using nodes with a VPS You can keep the Gateway in the cloud and pair \*\*nodes\*\* on your local devices (Mac/iOS/Android/headless). Nodes provide local screen/camera/canvas and `system.run` capabilities while the Gateway stays in the cloud. Docs: [Nodes](/nodes), [Nodes CLI](/cli/nodes) | https://github.com/openclaw/openclaw/blob/main//docs/vps.md | main | opebclaw | [
-0.023646900430321693,
-0.0017469197046011686,
0.030105778947472572,
-0.031535934656858444,
0.04798121750354767,
-0.048934455960989,
-0.03664281219244003,
-0.02839171141386032,
-0.025640008971095085,
0.07512965798377991,
0.006950001232326031,
-0.03859603777527809,
0.020627247169613838,
-0.04348115995526314,
0.06603743135929108,
0.02159637026488781,
0.05527743697166443,
-0.02932199276983738,
-0.008851760067045689,
0.019154073670506477,
-0.06136371195316315,
-0.051524750888347626,
-0.02876261994242668,
-0.034411147236824036,
-0.044174253940582275,
0.01633513905107975,
-0.10804421454668045,
0.0017037917859852314,
0.014066847041249275,
-0.024029603227972984,
-0.022970717400312424,
-0.021640032529830933,
-0.07160038501024246,
0.08034469932317734,
0.05014859884977341,
0.09223637729883194,
0.013169387355446815,
-0.06750137358903885,
-0.10353061556816101,
0.029756613075733185,
0.0680319219827652,
-0.09224529564380646,
-0.12096214294433594,
-0.03512877598404884,
0.018366806209087372,
0.03209284693002701,
0.023117559030652046,
-0.006665365770459175,
-0.03216007351875305,
-0.022252725437283516,
0.021968383342027664,
-0.09168064594268799,
0.025139085948467255,
0.0006465883343480527,
-0.11044991761445999,
-0.0015977518633008003,
-0.008810670115053654,
0.0595238134264946,
0.07362863421440125,
0.049912337213754654,
0.028109122067689896,
-0.028996611014008522,
-0.019159331917762756,
0.015434796921908855,
-0.039607468992471695,
0.006789949722588062,
0.04323703423142433,
-0.014483299106359482,
-0.000028966851459699683,
-0.023074189200997353,
-0.06447391957044601,
0.05296020954847336,
-0.10354156792163849,
-0.023036308586597443,
-0.1382213532924652,
-0.0024856028612703085,
0.024374783039093018,
0.07798385620117188,
0.02703254483640194,
-0.03662104532122612,
0.06048383563756943,
0.03179924935102463,
-0.05936462804675102,
0.038960713893175125,
-0.08319524675607681,
0.015350865200161934,
0.08432286977767944,
-0.013945055194199085,
0.05174941569566727,
-0.045417167246341705,
0.064461350440979,
-0.05065489560365677,
0.04106498509645462,
0.022547585889697075,
0.0396568663418293,
0.03407426178455353,
0.0012633840087801218,
-0.03172870725393295,
0.005195047240704298,
0.007160417269915342,
0.018287865445017815,
-0.010740112513303757,
0.07499738037586212,
-0.042933180928230286,
-0.04440043494105339,
0.09531384706497192,
-0.08627848327159882,
0.053563617169857025,
0.07064946740865707,
-0.012736889533698559,
-0.06272747367620468,
-0.0025360388681292534,
-0.01727529987692833,
-0.0912313461303711,
-0.053435806185007095,
0.017874550074338913,
-0.10739000886678696,
-0.03822886198759079,
0.04278739169239998,
-0.0015887368936091661,
0.050692543387413025,
-0.09111622720956802,
0.10142224282026291,
-0.024902168661355972,
0.009071816690266132,
0.0037491314578801394,
0.0024134081322699785,
5.442611578020148e-33,
0.008966988883912563,
-0.05751784145832062,
-0.037315141409635544,
-0.011981192976236343,
0.15093731880187988,
-0.011860169470310211,
0.006704516708850861,
-0.042384788393974304,
-0.08177655935287476,
0.007456284482032061,
-0.03128612041473389,
0.014794737100601196,
0.0015108948573470116,
0.02533426508307457,
0.0696287676692009,
-0.024128569290041924,
0.0283231008797884,
0.03123529627919197,
0.10709559172391891,
0.027769263833761215,
-0.03036092408001423,
-0.02540769800543785,
-0.025548016652464867,
-0.007848871871829033,
0.0684177502989769,
-0.03970535844564438,
0.01834387332201004,
-0.006596130318939686,
0.06793835014104843,
-0.0032059326767921448,
0.06198907643556595,
-0.023989198729395866,
-0.016481313854455948,
0.021772339940071106,
-0.005616927519440651,
0.01096718292683363,
-0.05057309940457344,
-0.013932005502283573,
-0.036604903638362885,
0.07452365010976791,
0.01834944076836109,
0.01769215613603592,
-0.05344214662909508,
-0.026831213384866714,
-0.04536096379160881,
0.004754968453198671,
0.015165242366492748,
-0.03668688237667084,
0.07733140140771866,
-0.04578482359647751,
-0.08651787787675858,
-0.05589441582560539,
-0.017824823036789894,
0.022931650280952454,
0.053363170474767685,
0.06311075389385223,
0.015832893550395966,
-0.06478731334209442,
0.0034867313224822283,
-0.0166916586458683,
-0.08499761670827866,
-0.07554856687784195,
-0.04680924862623215,
-0.017873568460345268,
-0.026495151221752167,
-0.09097962826490402,
-0.06738521158695221,
0.0795617327094078,
-0.007058550138026476,
0.04101114347577095,
-0.03458733484148979,
-0.008457640185952187,
0.07654604315757751,
0.012663397006690502,
0.02896198444068432,
-0.06770069152116776,
-0.0900665894150734,
-0.014959369786083698,
-0.050129346549510956,
0.06992871314287186,
-0.04859978333115578,
0.041097044944763184,
-0.042413610965013504,
0.032409101724624634,
-0.03163035213947296,
-0.036357320845127106,
-0.006566459778696299,
0.016883093863725662,
-0.031620852649211884,
0.026838520541787148,
-0.02146635577082634,
-0.04702266678214073,
0.05664631724357605,
-0.06345558911561966,
-0.05617054924368858,
-7.56225050179542e-33,
-0.01770089939236641,
0.000642959086690098,
-0.06760242581367493,
0.046984340995550156,
0.036604706197977066,
0.02537701278924942,
0.07606399804353714,
0.004662949591875076,
-0.06506480276584625,
-0.010110767558217049,
-0.043588787317276,
0.09006176888942719,
0.04110511764883995,
-0.027007097378373146,
-0.06665556877851486,
-0.009302010759711266,
-0.01842297986149788,
-0.08116465061903,
0.013813234865665436,
0.03569648042321205,
-0.0280913058668375,
-0.0039053100626915693,
0.05140054225921631,
0.06771595031023026,
0.04195156693458557,
-0.013105019927024841,
0.0021556392312049866,
0.017700444906949997,
-0.017666904255747795,
0.00881796795874834,
0.018319757655262947,
-0.009568411856889725,
-0.020246261730790138,
0.006946306675672531,
0.006647883448749781,
-0.01683276891708374,
-0.022595686838030815,
0.1305164098739624,
0.026212746277451515,
-0.07636374235153198,
0.02000625617802143,
-0.15954037010669708,
0.014777129516005516,
-0.09534898400306702,
0.028716742992401123,
0.027879752218723297,
-0.056142669171094894,
0.05875758081674576,
-0.0973699688911438,
-0.041701480746269226,
-0.03570443019270897,
-0.029308099299669266,
-0.02378827892243862,
0.06196153163909912,
0.057949382811784744,
-0.00001012690790958004,
-0.04275206848978996,
0.03484281152486801,
-0.06587963551282883,
0.01578981988132,
0.1072918176651001,
-0.0811280831694603,
0.023721758276224136,
0.0461873896420002,
-0.04795107617974281,
0.030852362513542175,
-0.024066586047410965,
0.0350937657058239,
-0.06452536582946777,
0.007344282232224941,
-0.11545051634311676,
-0.051262401044368744,
0.00045590088120661676,
-0.03493887558579445,
-0.03263496607542038,
-0.04527267441153526,
0.04118005931377411,
-0.06701403111219406,
0.055080246180295944,
-0.0036277573090046644,
-0.026240354403853416,
0.0804109126329422,
-0.04884164407849312,
-0.0831717997789383,
-0.023158440366387367,
-0.03705620765686035,
0.06075991690158844,
-0.021059436723589897,
0.060798827558755875,
0.04448110982775688,
-0.05613062530755997,
0.002543121576309204,
-0.054858915507793427,
0.04833872243762016,
-0.02205391600728035,
-6.058556323296216e-8,
0.04076237604022026,
0.08257666230201721,
-0.02034813165664673,
-0.015200350433588028,
0.005234165582805872,
0.006261784583330154,
0.125026673078537,
0.03998792544007301,
0.018539180979132652,
0.04065285995602608,
0.0016776738921180367,
-0.007140857633203268,
-0.04067990183830261,
0.029388371855020523,
-0.0004400106845423579,
0.05091753974556923,
-0.011048265732824802,
0.10572454333305359,
-0.021145140752196312,
-0.10546896606683731,
-0.010749127715826035,
0.035135287791490555,
0.030972920358181,
0.034777212888002396,
0.04136302322149277,
0.07442320883274078,
0.09482534229755402,
-0.05494231358170509,
-0.008720776066184044,
0.01570138707756996,
-0.04473959282040596,
-0.0254764836281538,
-0.05747648701071739,
-0.033889152109622955,
0.026151971891522408,
0.03388575464487076,
-0.14693406224250793,
0.07156606763601303,
0.058076824992895126,
-0.0044042798690497875,
-0.005490407347679138,
0.037752822041511536,
0.10461242496967316,
-0.030753139406442642,
0.05063871666789055,
-0.008520119823515415,
-0.08089477568864822,
0.03168587386608124,
-0.04162866994738579,
0.0903971940279007,
0.05762924998998642,
-0.015294397249817848,
-0.0008760050404816866,
0.12020005285739899,
0.07501283288002014,
0.03683256730437279,
-0.010743943974375725,
-0.038281410932540894,
0.06120499223470688,
0.088241808116436,
-0.031954701989889145,
0.011742301285266876,
0.07466863840818405,
0.015119577758014202
] | 0.017802 |
# Amazon Bedrock OpenClaw can use \*\*Amazon Bedrock\*\* models via pi‑ai’s \*\*Bedrock Converse\*\* streaming provider. Bedrock auth uses the \*\*AWS SDK default credential chain\*\*, not an API key. ## What pi‑ai supports - Provider: `amazon-bedrock` - API: `bedrock-converse-stream` - Auth: AWS credentials (env vars, shared config, or instance role) - Region: `AWS\_REGION` or `AWS\_DEFAULT\_REGION` (default: `us-east-1`) ## Automatic model discovery If AWS credentials are detected, OpenClaw can automatically discover Bedrock models that support \*\*streaming\*\* and \*\*text output\*\*. Discovery uses `bedrock:ListFoundationModels` and is cached (default: 1 hour). Config options live under `models.bedrockDiscovery`: ```json5 { models: { bedrockDiscovery: { enabled: true, region: "us-east-1", providerFilter: ["anthropic", "amazon"], refreshInterval: 3600, defaultContextWindow: 32000, defaultMaxTokens: 4096, }, }, } ``` Notes: - `enabled` defaults to `true` when AWS credentials are present. - `region` defaults to `AWS\_REGION` or `AWS\_DEFAULT\_REGION`, then `us-east-1`. - `providerFilter` matches Bedrock provider names (for example `anthropic`). - `refreshInterval` is seconds; set to `0` to disable caching. - `defaultContextWindow` (default: `32000`) and `defaultMaxTokens` (default: `4096`) are used for discovered models (override if you know your model limits). ## Setup (manual) 1. Ensure AWS credentials are available on the \*\*gateway host\*\*: ```bash export AWS\_ACCESS\_KEY\_ID="AKIA..." export AWS\_SECRET\_ACCESS\_KEY="..." export AWS\_REGION="us-east-1" # Optional: export AWS\_SESSION\_TOKEN="..." export AWS\_PROFILE="your-profile" # Optional (Bedrock API key/bearer token): export AWS\_BEARER\_TOKEN\_BEDROCK="..." ``` 2. Add a Bedrock provider and model to your config (no `apiKey` required): ```json5 { models: { providers: { "amazon-bedrock": { baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com", api: "bedrock-converse-stream", auth: "aws-sdk", models: [ { id: "anthropic.claude-opus-4-5-20251101-v1:0", name: "Claude Opus 4.5 (Bedrock)", reasoning: true, input: ["text", "image"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 200000, maxTokens: 8192, }, ], }, }, }, agents: { defaults: { model: { primary: "amazon-bedrock/anthropic.claude-opus-4-5-20251101-v1:0" }, }, }, } ``` ## EC2 Instance Roles When running OpenClaw on an EC2 instance with an IAM role attached, the AWS SDK will automatically use the instance metadata service (IMDS) for authentication. However, OpenClaw's credential detection currently only checks for environment variables, not IMDS credentials. \*\*Workaround:\*\* Set `AWS\_PROFILE=default` to signal that AWS credentials are available. The actual authentication still uses the instance role via IMDS. ```bash # Add to ~/.bashrc or your shell profile export AWS\_PROFILE=default export AWS\_REGION=us-east-1 ``` \*\*Required IAM permissions\*\* for the EC2 instance role: - `bedrock:InvokeModel` - `bedrock:InvokeModelWithResponseStream` - `bedrock:ListFoundationModels` (for automatic discovery) Or attach the managed policy `AmazonBedrockFullAccess`. \*\*Quick setup:\*\* ```bash # 1. Create IAM role and instance profile aws iam create-role --role-name EC2-Bedrock-Access \ --assume-role-policy-document '{ "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": {"Service": "ec2.amazonaws.com"}, "Action": "sts:AssumeRole" }] }' aws iam attach-role-policy --role-name EC2-Bedrock-Access \ --policy-arn arn:aws:iam::aws:policy/AmazonBedrockFullAccess aws iam create-instance-profile --instance-profile-name EC2-Bedrock-Access aws iam add-role-to-instance-profile \ --instance-profile-name EC2-Bedrock-Access \ --role-name EC2-Bedrock-Access # 2. Attach to your EC2 instance aws ec2 associate-iam-instance-profile \ --instance-id i-xxxxx \ --iam-instance-profile Name=EC2-Bedrock-Access # 3. On the EC2 instance, enable discovery openclaw config set models.bedrockDiscovery.enabled true openclaw config set models.bedrockDiscovery.region us-east-1 # 4. Set the workaround env vars echo 'export AWS\_PROFILE=default' >> ~/.bashrc echo 'export AWS\_REGION=us-east-1' >> ~/.bashrc source ~/.bashrc # 5. Verify models are discovered openclaw models list ``` ## Notes - Bedrock requires \*\*model access\*\* enabled in your AWS account/region. - Automatic discovery needs the `bedrock:ListFoundationModels` permission. - If you use profiles, set `AWS\_PROFILE` on the gateway host. - OpenClaw surfaces the credential source in this order: `AWS\_BEARER\_TOKEN\_BEDROCK`, then `AWS\_ACCESS\_KEY\_ID` + `AWS\_SECRET\_ACCESS\_KEY`, then `AWS\_PROFILE`, then the default AWS SDK chain. - Reasoning support depends on the model; check the Bedrock model card for current capabilities. - If you prefer a managed key flow, you can also place an OpenAI‑compatible proxy in front of Bedrock and configure it as an OpenAI provider instead. | https://github.com/openclaw/openclaw/blob/main//docs/bedrock.md | main | opebclaw | [
-0.03303535655140877,
-0.029142513871192932,
-0.03216532617807388,
0.03492152318358421,
0.11502441018819809,
-0.07170227915048599,
-0.03466270491480827,
-0.04275565594434738,
0.03416308015584946,
0.011090575717389584,
-0.004683022852987051,
-0.0838889479637146,
0.02500138059258461,
0.03535178676247597,
0.11457889527082443,
0.024640634655952454,
0.04665159061551094,
-0.04331354796886444,
-0.020854616537690163,
-0.06675215065479279,
-0.01789138838648796,
0.07277531921863556,
-0.016764042899012566,
0.01844019442796707,
-0.07541880011558533,
-0.03208928555250168,
-0.009794552810490131,
-0.021558981388807297,
0.02165447548031807,
-0.0034933239221572876,
0.015948066487908363,
-0.02744407020509243,
0.0577511340379715,
0.026204023510217667,
0.06542293727397919,
0.10929615795612335,
0.014754711650311947,
-0.10867875814437866,
-0.13550536334514618,
-0.0451052300632,
0.10056128352880478,
0.01877574808895588,
-0.030300695449113846,
-0.08266141265630722,
-0.02951761521399021,
0.014183531515300274,
-0.05038130283355713,
-0.05310722067952156,
-0.052953582257032394,
0.02328292280435562,
-0.0944332554936409,
-0.06415250897407532,
0.022574566304683685,
-0.045672059059143066,
0.0018880353309214115,
0.07415591180324554,
-0.03461039811372757,
0.03940470889210701,
0.053646158427000046,
-0.07744163274765015,
0.05253700166940689,
-0.1318623125553131,
0.027920762076973915,
-0.017713207751512527,
-0.05024261400103569,
0.046416424214839935,
-0.09296827763319016,
-0.04012151062488556,
0.04300134256482124,
-0.056745342910289764,
0.007217020727694035,
-0.003909463528543711,
-0.014834529720246792,
-0.07465477287769318,
0.030037079006433487,
0.04856406897306442,
0.030531559139490128,
0.010830722749233246,
-0.015588507056236267,
-0.06961057335138321,
-0.11672069132328033,
-0.023105744272470474,
-0.06160474941134453,
0.025143830105662346,
-0.024988899007439613,
0.07313583791255951,
-0.003459896892309189,
0.017497004941105843,
-0.023383745923638344,
0.03290975093841553,
0.022386949509382248,
-0.1387445032596588,
-0.0017301413463428617,
-0.039550233632326126,
-0.005081890616565943,
0.10056480765342712,
0.0075763678178191185,
-0.02897314354777336,
-0.06613141298294067,
0.03982652351260185,
-0.0037703339476138353,
0.02130405232310295,
0.032924260944128036,
-0.02651410736143589,
0.01306803710758686,
-0.0288909450173378,
-0.04214931279420853,
0.07438881695270538,
0.05286179110407829,
0.0667780339717865,
0.039370376616716385,
0.026808984577655792,
0.08335603028535843,
-0.024796921759843826,
0.023780319839715958,
0.05507175251841545,
-0.06111754849553108,
-0.008738326840102673,
0.09210855513811111,
0.08072499930858612,
0.061000436544418335,
-0.0056165046989917755,
0.042267169803380966,
0.008217145688831806,
0.03220003843307495,
0.0600660964846611,
-0.03930813819169998,
4.913753730849324e-33,
0.04916118457913399,
-0.002733955392614007,
-0.00008844049443723634,
0.026735154911875725,
0.0694817528128624,
-0.011785609647631645,
0.047698330134153366,
-0.02771381475031376,
0.0058851055800914764,
0.00456054974347353,
-0.07411911338567734,
0.06594550609588623,
-0.007469039410352707,
-0.001378412009216845,
-0.0826210230588913,
-0.002673950046300888,
-0.018701663240790367,
0.013868612237274647,
0.0509895458817482,
0.06523072719573975,
0.0807548314332962,
-0.007136402651667595,
-0.037244632840156555,
-0.004496109206229448,
-0.003983914852142334,
-0.019554918631911278,
-0.007962023839354515,
-0.06630951911211014,
-0.008685611188411713,
0.050945840775966644,
-0.0008715027943253517,
0.010587417520582676,
-0.025050470605492592,
0.025204725563526154,
0.02313760295510292,
0.003825028194114566,
0.03634904325008392,
-0.011385315097868443,
-0.1311134546995163,
-0.08470521122217178,
0.03252200037240982,
-0.033771175891160965,
-0.07866397500038147,
-0.027534082531929016,
-0.06298798322677612,
-0.11132549494504929,
-0.018268749117851257,
0.03160915896296501,
0.019012849777936935,
-0.013841581530869007,
-0.02213915064930916,
-0.009340349584817886,
0.05804546922445297,
-0.12295155227184296,
0.04222417622804642,
-0.07420657575130463,
0.01628839410841465,
-0.032682355493307114,
0.02652404084801674,
-0.04744753614068031,
0.00895659625530243,
0.04116598889231682,
-0.011889773420989513,
0.052952997386455536,
0.015372081659734249,
0.038734737783670425,
0.018910281360149384,
0.021712128072977066,
0.020567653700709343,
0.02293619140982628,
-0.014161662198603153,
0.08821647614240646,
-0.02442326955497265,
0.03900141641497612,
-0.08087775856256485,
-0.11715424060821533,
0.003731890581548214,
-0.05441197007894516,
0.06289459019899368,
0.10346339643001556,
-0.007471058983355761,
0.009500343352556229,
-0.06394288688898087,
0.08291207253932953,
-0.04183159023523331,
-0.006237112917006016,
0.0030192893464118242,
0.00924580730497837,
0.02026423066854477,
-0.02779914252460003,
-0.055470116436481476,
-0.02196461148560047,
0.030858086422085762,
-0.020361538976430893,
-0.06374073773622513,
-6.524250051768969e-33,
0.04277164116501808,
-0.03420170396566391,
0.033083487302064896,
-0.008087670430541039,
-0.012784807942807674,
-0.07761480659246445,
0.07606063783168793,
0.04184877872467041,
-0.017099745571613312,
-0.13961170613765717,
0.007137976586818695,
0.02960834838449955,
0.024360427632927895,
-0.05519285053014755,
0.061574410647153854,
0.03450018912553787,
-0.10114151239395142,
-0.1022181436419487,
0.08106357604265213,
0.0339142270386219,
-0.1370650976896286,
-0.09520452469587326,
-0.054107874631881714,
0.04594271257519722,
0.05042283982038498,
0.020307404920458794,
0.00030283760861493647,
0.019730262458324432,
-0.038121141493320465,
-0.0682951882481575,
0.02816472202539444,
0.09692274779081345,
-0.10964398086071014,
0.017073839902877808,
-0.11279325187206268,
0.011207264848053455,
-0.029687199741601944,
0.06642308086156845,
-0.06383080780506134,
-0.050604093819856644,
0.017469678074121475,
0.008676121942698956,
-0.07365075498819351,
0.03193744644522667,
0.013558822683990002,
0.06234045326709747,
0.04590964317321777,
0.046912532299757004,
-0.059082988649606705,
-0.019309161230921745,
0.03114592656493187,
-0.018455130979418755,
-0.0014789991546422243,
0.010971900075674057,
-0.004987818654626608,
0.04514066129922867,
0.04038028046488762,
0.0511452741920948,
-0.021900875493884087,
0.005319822579622269,
0.013988293707370758,
-0.0928306058049202,
-0.00793065782636404,
0.08676563203334808,
-0.013623654842376709,
-0.01802477054297924,
-0.03467715159058571,
0.011355959810316563,
-0.059259671717882156,
-0.016892801970243454,
-0.015786798670887947,
-0.015287799760699272,
0.024365495890378952,
-0.020354336127638817,
0.06517528742551804,
0.043600328266620636,
-0.06767186522483826,
-0.013758214190602303,
-0.006834066938608885,
0.009532486088573933,
-0.05190011113882065,
0.07561343163251877,
-0.017580678686499596,
0.0427103191614151,
0.11476846784353256,
-0.023580724373459816,
0.016987204551696777,
0.07676080614328384,
-0.018736930564045906,
0.07482779771089554,
-0.09624128043651581,
-0.005736930295825005,
-0.09250658005475998,
0.04894774407148361,
-0.021170997992157936,
-5.149471249410453e-8,
-0.0872364416718483,
0.04040825739502907,
-0.07370442897081375,
-0.012649521231651306,
0.03143073990941048,
0.050369907170534134,
0.04437016695737839,
-0.02283879555761814,
0.026769576594233513,
-0.018871024250984192,
-0.03589057922363281,
-0.04890383034944534,
-0.07846427708864212,
0.01405505370348692,
0.021574269980192184,
0.040630463510751724,
0.014740987680852413,
0.026693953201174736,
0.029832826927304268,
-0.016612421721220016,
0.032161276787519455,
-0.016975555568933487,
-0.019221706315875053,
-0.019855134189128876,
0.01161918230354786,
0.026597455143928528,
0.021922165527939796,
0.033619388937950134,
0.013763577677309513,
0.020489506423473358,
-0.022539058700203896,
-0.04506029561161995,
0.022572651505470276,
-0.00026026112027466297,
0.034359563142061234,
0.009657829999923706,
-0.06570892781019211,
-0.016263512894511223,
-0.017473606392741203,
0.008516278117895126,
0.008825518190860748,
0.0924793928861618,
-0.09510650485754013,
-0.055254675447940826,
-0.002475022803992033,
-0.006814589258283377,
-0.01608113944530487,
0.03016936592757702,
0.006876666564494371,
0.10199407488107681,
-0.019795576110482216,
-0.04611847922205925,
0.005472653545439243,
0.08255863189697266,
0.09195646643638611,
0.03262962028384209,
0.08985038846731186,
-0.11804599314928055,
-0.016369717195630074,
0.04663846269249916,
0.04455135762691498,
-0.013446629047393799,
0.02522340789437294,
-0.02188447117805481
] | 0.071493 |
chain. - Reasoning support depends on the model; check the Bedrock model card for current capabilities. - If you prefer a managed key flow, you can also place an OpenAI‑compatible proxy in front of Bedrock and configure it as an OpenAI provider instead. | https://github.com/openclaw/openclaw/blob/main//docs/bedrock.md | main | opebclaw | [
0.004768737591803074,
-0.06258942186832428,
-0.02833249792456627,
-0.007477715145796537,
0.11284035444259644,
-0.09225501120090485,
-0.031650152057409286,
0.015579231083393097,
0.003893558168783784,
0.0030301427468657494,
0.0008938759565353394,
-0.004458902403712273,
-0.004116410855203867,
0.08482977747917175,
0.13423117995262146,
0.07500630617141724,
0.029745660722255707,
0.02626444213092327,
0.005836726166307926,
-0.04041893407702446,
-0.03503129258751869,
-0.02656990848481655,
0.016207076609134674,
0.012054557912051678,
-0.12142089754343033,
-0.05657916143536568,
0.007761070504784584,
-0.012244762852787971,
0.027117054909467697,
-0.058220114558935165,
0.03230321407318115,
-0.00178214639890939,
-0.015099345706403255,
0.009324300102889538,
-0.007948031648993492,
0.136461541056633,
-0.06969655305147171,
-0.02980484999716282,
-0.20051279664039612,
-0.05439354479312897,
0.061292655766010284,
0.014713669195771217,
0.00653021689504385,
-0.022072039544582367,
-0.004703129176050425,
0.0019302144646644592,
0.003658894682303071,
0.015222574584186077,
-0.02594994753599167,
0.002991478657349944,
-0.09061091393232346,
-0.071359783411026,
-0.013027694076299667,
-0.006291413679718971,
0.02311032824218273,
0.0721529871225357,
-0.042952828109264374,
-0.036561544984579086,
-0.001313821179792285,
-0.015036915428936481,
0.017606565728783607,
-0.061609480530023575,
-0.016592346131801605,
0.018953297287225723,
-0.026859711855649948,
0.1320457011461258,
-0.03668442741036415,
0.0241318941116333,
-0.00967257097363472,
-0.09407851099967957,
0.06325526535511017,
-0.01045240554958582,
-0.0005503445281647146,
-0.0772629901766777,
-0.0031551418360322714,
0.09918907284736633,
0.006306490860879421,
-0.02694668620824814,
-0.004058763384819031,
-0.0656362846493721,
-0.0350634939968586,
0.02193276956677437,
-0.07548829168081284,
-0.03390401601791382,
0.07106368243694305,
0.03609592095017433,
0.014425409957766533,
-0.006836806423962116,
0.01972552388906479,
0.04263845831155777,
0.09609832614660263,
-0.03190378472208977,
0.06598937511444092,
-0.007394468877464533,
0.05962285399436951,
0.07118818908929825,
0.05737674608826637,
-0.0555831715464592,
-0.06822070479393005,
0.06577781587839127,
-0.00007024735532468185,
-0.0074842399917542934,
-0.04092952236533165,
0.03518575802445412,
0.09901204705238342,
0.004656655248254538,
0.006982384715229273,
0.04779897257685661,
0.02835741825401783,
0.06932300329208374,
0.04310842603445053,
0.02108156494796276,
0.0853220596909523,
-0.03533273562788963,
-0.036196447908878326,
-0.022976143285632133,
-0.00918002799153328,
0.023610694333910942,
0.07790974527597427,
-0.01937267929315567,
0.004834627732634544,
0.005665492732077837,
0.00801373552531004,
-0.04590094834566116,
0.0696871355175972,
0.016455477103590965,
-0.03178741782903671,
-8.653249216654647e-34,
0.013865655288100243,
0.037005893886089325,
0.011522620916366577,
-0.012880592606961727,
0.10578671097755432,
-0.02268633060157299,
0.06259360909461975,
-0.051285866647958755,
-0.014558013528585434,
-0.03601253032684326,
-0.049042973667383194,
0.025342052802443504,
-0.015730787068605423,
-0.020739883184432983,
0.02305329218506813,
-0.04291004315018654,
-0.07202912867069244,
0.057717688381671906,
0.11928509175777435,
0.0457114614546299,
-0.010738439857959747,
-0.06051282957196236,
-0.04840207099914551,
0.04301270470023155,
-0.03296893835067749,
-0.012353378348052502,
0.017954938113689423,
-0.0005653631524182856,
-0.0038377412129193544,
-0.0023003360256552696,
0.07354249805212021,
-0.07971407473087311,
-0.047221388667821884,
0.0710373967885971,
0.037053465843200684,
0.009852038696408272,
0.0016457040328532457,
-0.049762506037950516,
-0.05523617938160896,
-0.1249031350016594,
-0.051680777221918106,
0.0161390770226717,
-0.02540482208132744,
-0.032824013382196426,
-0.0765867531299591,
-0.058647044003009796,
-0.003839079989120364,
0.0359322652220726,
0.006328676827251911,
0.02038724347949028,
0.029248367995023727,
-0.02475568652153015,
0.01904451474547386,
-0.08037091046571732,
0.0036107031628489494,
-0.11263944953680038,
-0.007454604841768742,
0.02991527132689953,
0.0744207575917244,
0.037906162440776825,
-0.012024544179439545,
-0.016479892656207085,
-0.055990513414144516,
0.023137196898460388,
0.022767124697566032,
0.06901226192712784,
-0.06675875186920166,
-0.035332124680280685,
0.06669959425926208,
-0.056149065494537354,
-0.0006150829140096903,
0.032978083938360214,
-0.024968648329377174,
0.08048058301210403,
-0.08088214695453644,
-0.022166067734360695,
-0.11496253311634064,
-0.028848806396126747,
0.07836812734603882,
0.05384635552763939,
-0.03073853626847267,
0.07640969008207321,
-0.04906163737177849,
0.15527284145355225,
-0.013097567483782768,
0.01983797177672386,
-0.031029220670461655,
0.026237787678837776,
-0.006430136505514383,
0.02506544627249241,
0.011381174437701702,
-0.006871297024190426,
0.058825165033340454,
0.023054322227835655,
0.038353364914655685,
1.6036024138940566e-33,
-0.05302410572767258,
-0.051701318472623825,
0.06292040646076202,
0.05122508108615875,
0.005382615607231855,
-0.07792849093675613,
0.04144828021526337,
0.022676102817058563,
0.031935323029756546,
-0.04176320508122444,
0.013593603856861591,
0.04146954417228699,
0.07809989899396896,
-0.06214883178472519,
-0.04059299826622009,
-0.04475942626595497,
-0.07489284127950668,
-0.027565574273467064,
0.03160422667860985,
0.07202979922294617,
-0.12727312743663788,
-0.029707958921790123,
-0.10882464796304703,
0.03847406432032585,
0.08245305716991425,
0.1349986046552658,
-0.022380003705620766,
-0.0038282189052551985,
-0.030987178906798363,
-0.06368788331747055,
-0.024270685389637947,
0.015067948959767818,
-0.042007360607385635,
-0.05995156243443489,
-0.06900781393051147,
0.012945082038640976,
-0.023897897452116013,
0.04259399324655533,
-0.06035366281867027,
-0.017296474426984787,
-0.008020827546715736,
-0.03389822691679001,
-0.06553595513105392,
0.01879422925412655,
-0.035384323447942734,
0.05217105895280838,
0.0113690085709095,
0.06496556103229523,
-0.005699634086340666,
-0.021615827456116676,
-0.0035582445561885834,
0.02985687553882599,
0.05963629111647606,
-0.06647592037916183,
0.0010760470759123564,
0.04951079562306404,
0.03613124042749405,
0.04734411463141441,
-0.013986251316964626,
-0.031803518533706665,
0.03401936963200569,
-0.05116824060678482,
0.06547948718070984,
0.044824860990047455,
0.03627258166670799,
0.042474955320358276,
-0.039047881960868835,
0.002079842146486044,
-0.061001405119895935,
-0.021651117131114006,
-0.04901591315865517,
0.0077650174498558044,
0.026344655081629753,
-0.02444562129676342,
0.1405288130044937,
0.015750868245959282,
-0.012719924561679363,
0.02320508472621441,
0.037331994622945786,
-0.003964540548622608,
-0.02384215034544468,
-0.007440024521201849,
0.052686963230371475,
0.026786450296640396,
0.07838219404220581,
-0.07339448481798172,
0.0832500010728836,
0.01344324741512537,
0.028183607384562492,
0.04845032840967178,
-0.11661218851804733,
0.013439895585179329,
-0.056304194033145905,
0.07000400871038437,
0.015745623037219048,
-3.415936689066257e-8,
-0.06280825287103653,
0.017697229981422424,
-0.006066987290978432,
-0.047628626227378845,
-0.030936550348997116,
0.031569331884384155,
0.022902579978108406,
-0.04105965048074722,
0.01709771528840065,
0.048884183168411255,
-0.022938761860132217,
0.03437437117099762,
-0.09844782203435898,
0.03380236029624939,
0.018376916646957397,
0.045796170830726624,
0.042279671877622604,
0.02032880112528801,
-0.05844578519463539,
-0.02824426256120205,
0.008492030203342438,
-0.0047861007042229176,
-0.04485376551747322,
0.0746350958943367,
0.00715047400444746,
-0.015843750908970833,
0.0387699231505394,
0.04836566373705864,
0.0718981996178627,
-0.022109344601631165,
-0.027113480493426323,
-0.029264267534017563,
0.032187800854444504,
0.02892094850540161,
0.00011256155994487926,
0.05736446753144264,
-0.06619304418563843,
0.02030952274799347,
0.0180673785507679,
0.014044275507330894,
-0.0391896553337574,
0.014876266941428185,
-0.0921439602971077,
-0.05095776915550232,
-0.0030332605820149183,
0.03943576291203499,
-0.13203668594360352,
0.01886073313653469,
-0.09364854544401169,
0.08020204305648804,
-0.04593660682439804,
-0.03960311412811279,
0.01738164760172367,
0.011321166530251503,
0.07873629033565521,
-0.031971246004104614,
0.10570871084928513,
-0.05424126610159874,
-0.05148126184940338,
0.011464523151516914,
0.03757953271269798,
-0.039717018604278564,
0.07404928654432297,
0.019468000158667564
] | 0.066795 |
# Scripts The `scripts/` directory contains helper scripts for local workflows and ops tasks. Use these when a task is clearly tied to a script; otherwise prefer the CLI. ## Conventions - Scripts are \*\*optional\*\* unless referenced in docs or release checklists. - Prefer CLI surfaces when they exist (example: auth monitoring uses `openclaw models status --check`). - Assume scripts are host‑specific; read them before running on a new machine. ## Auth monitoring scripts Auth monitoring scripts are documented here: [/automation/auth-monitoring](/automation/auth-monitoring) ## When adding scripts - Keep scripts focused and documented. - Add a short entry in the relevant doc (or create one if missing). | https://github.com/openclaw/openclaw/blob/main//docs/scripts.md | main | opebclaw | [
-0.05105191096663475,
-0.013316210359334946,
-0.0739436000585556,
-0.019219202920794487,
0.08546731621026993,
-0.039452116936445236,
0.06663194298744202,
-0.010033275932073593,
0.00715234037488699,
-0.011526458896696568,
0.0022155395708978176,
-0.048946816474199295,
0.027411404997110367,
0.04272707179188728,
-0.017543921247124672,
0.07517984509468079,
0.09307770431041718,
-0.06319044530391693,
0.02170133963227272,
-0.04227329045534134,
-0.035630278289318085,
0.02406180277466774,
-0.003978678025305271,
0.03649651259183884,
-0.07364267110824585,
-0.03104197047650814,
-0.013573561795055866,
-0.0796382874250412,
-0.05872232839465141,
0.10070948302745819,
0.03762001171708107,
-0.01566999778151512,
0.025647392496466637,
0.04565098136663437,
0.05294583737850189,
0.09859402477741241,
0.1062723770737648,
0.06146181374788284,
-0.013177752494812012,
-0.06559759378433228,
0.04960649088025093,
0.0008363574161194265,
-0.0476805716753006,
-0.017158666625618935,
-0.08494360744953156,
-0.072956882417202,
-0.03204740211367607,
-0.14889419078826904,
-0.09262635558843613,
0.047812607139348984,
0.028709275647997856,
-0.03637496009469032,
0.07369266450405121,
-0.033975642174482346,
0.007969440892338753,
0.04553299397230148,
-0.012866782024502754,
-0.05092015862464905,
0.029755471274256706,
-0.04213962331414223,
0.04166371002793312,
0.015751691535115242,
-0.03720054775476456,
-0.020308567211031914,
0.032424282282590866,
0.030749211087822914,
-0.07205317914485931,
0.0176071934401989,
-0.021853914484381676,
0.03613957762718201,
-0.12176212668418884,
0.06139911711215973,
-0.03132610023021698,
-0.02339663915336132,
0.001195090007968247,
-0.013168084435164928,
-0.033590905368328094,
-0.05332644656300545,
-0.017930565401911736,
-0.15271858870983124,
-0.12658178806304932,
-0.019421875476837158,
0.007083873730152845,
0.11999345570802689,
0.013679005205631256,
0.10549402236938477,
0.019781598821282387,
0.08033338189125061,
0.0795326679944992,
-0.015592366456985474,
-0.022532427683472633,
-0.019921476021409035,
-0.06928959488868713,
-0.06742940843105316,
0.0492154061794281,
0.011768518015742302,
-0.1028326153755188,
-0.01657155714929104,
0.02921614609658718,
0.050784289836883545,
0.028767041862010956,
-0.026067212224006653,
0.048258233815431595,
-0.0011871169554069638,
0.04718874767422676,
0.08260585367679596,
-0.055572088807821274,
0.009156743995845318,
0.03882338106632233,
0.045640114694833755,
0.005953877232968807,
0.0018359384266659617,
0.02971727028489113,
-0.016033992171287537,
0.0030841000843793154,
0.04416397958993912,
0.049475256353616714,
0.045351140201091766,
-0.018933789804577827,
0.10134625434875488,
0.08277299255132675,
0.0027029935736209154,
0.004420562647283077,
-0.01775192841887474,
0.15961483120918274,
-0.0002977206895593554,
-0.003651599632576108,
2.834046350171486e-33,
0.056064967066049576,
0.035093579441308975,
-0.037371840327978134,
0.05358007550239563,
0.05851294845342636,
-0.020289264619350433,
0.03839283436536789,
0.054776452481746674,
-0.021608829498291016,
0.018961040303111076,
-0.005529624409973621,
0.09745363891124725,
0.023987894877791405,
-0.009170958772301674,
-0.08192018419504166,
-0.040339455008506775,
0.014533353969454765,
0.02280380204319954,
0.06392822414636612,
-0.021040011197328568,
0.027598794549703598,
-0.04691604897379875,
-0.019383670762181282,
0.1389123797416687,
0.003510268172249198,
-0.0847490206360817,
0.02757232077419758,
0.035063486546278,
0.005611108615994453,
-0.005248125176876783,
0.0032220110297203064,
0.0031502924393862486,
0.016136687248945236,
-0.007852194830775261,
-0.027225544676184654,
0.029752081260085106,
-0.020283767953515053,
0.027736511081457138,
0.023095151409506798,
-0.03619442880153656,
0.041944339871406555,
0.006878233514726162,
-0.013605588115751743,
-0.045560915023088455,
0.023033974692225456,
-0.04168350249528885,
-0.045933809131383896,
0.015555590391159058,
0.1767498403787613,
0.022904882207512856,
0.010082270950078964,
-0.05364470183849335,
0.045393653213977814,
-0.05701383948326111,
0.00009141922782873735,
-0.04619494080543518,
-0.06285924464464188,
-0.06203563138842583,
0.04325303062796593,
-0.08815233409404755,
0.010559497401118279,
-0.004553498234599829,
-0.04350372031331062,
0.013166006654500961,
0.05454054847359657,
-0.06964900344610214,
0.035108353942632675,
0.0707709938287735,
-0.001070828060619533,
0.03550773859024048,
-0.041360050439834595,
0.03458349406719208,
0.012663437984883785,
0.14915627241134644,
0.05184827744960785,
-0.05267791077494621,
0.01910381019115448,
0.03821597993373871,
-0.0019746257457882166,
0.025791417807340622,
0.05039702728390694,
-0.009940947405993938,
-0.060460060834884644,
0.005820660851895809,
0.020643746480345726,
0.02995820716023445,
-0.046791817992925644,
-0.005454514641314745,
-0.06333126872777939,
-0.007369270548224449,
0.11198519170284271,
-0.05832793936133385,
-0.04886431246995926,
-0.007181683089584112,
-0.09078949689865112,
-5.135117316866408e-33,
0.049853838980197906,
-0.028482884168624878,
-0.0015467361081391573,
0.017294276505708694,
-0.012291005812585354,
0.024458467960357666,
-0.008981668390333652,
-0.06432976573705673,
0.03414344787597656,
-0.016352307051420212,
-0.0410616435110569,
0.0021021978463977575,
-0.04310261830687523,
-0.0007727062329649925,
0.03510740026831627,
-0.028684992343187332,
-0.07565551996231079,
0.042915258556604385,
0.015137284062802792,
0.01300557516515255,
-0.007221442647278309,
0.04264891520142555,
0.02405145764350891,
0.00794246606528759,
0.028134403750300407,
-0.013901314698159695,
-0.04589113965630531,
0.028485218062996864,
-0.09569035470485687,
-0.037259187549352646,
-0.07852526754140854,
0.03399737551808357,
-0.01078797783702612,
0.029471948742866516,
0.020007876679301262,
-0.017871111631393433,
-0.07017232477664948,
0.04788998141884804,
-0.005042196251451969,
0.04584633931517601,
0.0010129630099982023,
-0.021473681554198265,
-0.02442781999707222,
0.00595793267711997,
-0.03716709092259407,
0.06988096982240677,
0.0003771300835069269,
-0.008922673761844635,
-0.13944806158542633,
-0.05082206428050995,
-0.03840458393096924,
-0.016016613692045212,
0.03266338258981705,
-0.04074978828430176,
-0.04787696525454521,
0.08324829488992691,
0.038720473647117615,
-0.07363419979810715,
-0.06459558755159378,
0.0057547506876289845,
-0.021383073180913925,
-0.04060651734471321,
0.014667052775621414,
0.07744001597166061,
-0.1421644389629364,
-0.0575091578066349,
-0.011808718554675579,
0.04307180643081665,
-0.011062067933380604,
-0.0467233769595623,
-0.01577313430607319,
-0.060187868773937225,
-0.05447545647621155,
-0.021791448816657066,
-0.030413085594773293,
-0.07798618078231812,
0.03993301838636398,
-0.14226138591766357,
-0.037604086101055145,
0.06820053607225418,
-0.04449513182044029,
0.01676149107515812,
-0.026417382061481476,
-0.03351305425167084,
-0.033017173409461975,
-0.011518049985170364,
-0.04310299828648567,
0.004436350427567959,
0.06633489578962326,
0.06714322417974472,
-0.060322098433971405,
0.08778893202543259,
0.011987753212451935,
-0.08810968697071075,
-0.018526826053857803,
-4.7195673147371053e-8,
-0.009073473513126373,
0.036499399691820145,
-0.04166151210665703,
0.01300120260566473,
-0.08631602674722672,
0.04709474742412567,
-0.051370054483413696,
0.032050371170043945,
0.009626183658838272,
0.007241009268909693,
0.033173710107803345,
-0.06907599419355392,
-0.0032928718719631433,
-0.007788375951349735,
-0.08312234282493591,
0.004887291230261326,
0.033297762274742126,
0.042514123022556305,
-0.006130027584731579,
0.0022466075606644154,
0.03445705026388168,
0.05532224476337433,
0.05968060344457626,
0.006742133758962154,
-0.045026857405900955,
0.02464006468653679,
0.01713825762271881,
0.0291490126401186,
-0.061647333204746246,
0.011460541747510433,
0.03312893956899643,
0.023192519322037697,
0.026071684435009956,
-0.029101423919200897,
-0.009539365768432617,
0.03821903467178345,
-0.033926185220479965,
-0.06147174537181854,
-0.00004617542799678631,
-0.016896894201636314,
0.054728914052248,
0.08500704914331436,
-0.07746456563472748,
-0.015075018629431725,
-0.01963210292160511,
0.0003332342312205583,
-0.032035764306783676,
-0.011689148843288422,
-0.04386961832642555,
-0.09845152497291565,
0.031442541629076004,
0.03213272616267204,
0.033292096108198166,
0.11646796017885208,
-0.010284251533448696,
0.02879994548857212,
0.06042952835559845,
-0.10468954592943192,
0.052694011479616165,
0.02289390377700329,
-0.05864438787102699,
0.057197291404008865,
0.04579353705048561,
-0.07851914316415787
] | 0.115101 |
# Testing OpenClaw has three Vitest suites (unit/integration, e2e, live) and a small set of Docker runners. This doc is a “how we test” guide: - What each suite covers (and what it deliberately does \_not\_ cover) - Which commands to run for common workflows (local, pre-push, debugging) - How live tests discover credentials and select models/providers - How to add regressions for real-world model/provider issues ## Quick start Most days: - Full gate (expected before push): `pnpm build && pnpm check && pnpm test` When you touch tests or want extra confidence: - Coverage gate: `pnpm test:coverage` - E2E suite: `pnpm test:e2e` When debugging real providers/models (requires real creds): - Live suite (models + gateway tool/image probes): `pnpm test:live` Tip: when you only need one failing case, prefer narrowing live tests via the allowlist env vars described below. ## Test suites (what runs where) Think of the suites as “increasing realism” (and increasing flakiness/cost): ### Unit / integration (default) - Command: `pnpm test` - Config: `vitest.config.ts` - Files: `src/\*\*/\*.test.ts` - Scope: - Pure unit tests - In-process integration tests (gateway auth, routing, tooling, parsing, config) - Deterministic regressions for known bugs - Expectations: - Runs in CI - No real keys required - Should be fast and stable ### E2E (gateway smoke) - Command: `pnpm test:e2e` - Config: `vitest.e2e.config.ts` - Files: `src/\*\*/\*.e2e.test.ts` - Scope: - Multi-instance gateway end-to-end behavior - WebSocket/HTTP surfaces, node pairing, and heavier networking - Expectations: - Runs in CI (when enabled in the pipeline) - No real keys required - More moving parts than unit tests (can be slower) ### Live (real providers + real models) - Command: `pnpm test:live` - Config: `vitest.live.config.ts` - Files: `src/\*\*/\*.live.test.ts` - Default: \*\*enabled\*\* by `pnpm test:live` (sets `OPENCLAW\_LIVE\_TEST=1`) - Scope: - “Does this provider/model actually work \_today\_ with real creds?” - Catch provider format changes, tool-calling quirks, auth issues, and rate limit behavior - Expectations: - Not CI-stable by design (real networks, real provider policies, quotas, outages) - Costs money / uses rate limits - Prefer running narrowed subsets instead of “everything” - Live runs will source `~/.profile` to pick up missing API keys - Anthropic key rotation: set `OPENCLAW\_LIVE\_ANTHROPIC\_KEYS="sk-...,sk-..."` (or `OPENCLAW\_LIVE\_ANTHROPIC\_KEY=sk-...`) or multiple `ANTHROPIC\_API\_KEY\*` vars; tests will retry on rate limits ## Which suite should I run? Use this decision table: - Editing logic/tests: run `pnpm test` (and `pnpm test:coverage` if you changed a lot) - Touching gateway networking / WS protocol / pairing: add `pnpm test:e2e` - Debugging “my bot is down” / provider-specific failures / tool calling: run a narrowed `pnpm test:live` ## Live: model smoke (profile keys) Live tests are split into two layers so we can isolate failures: - “Direct model” tells us the provider/model can answer at all with the given key. - “Gateway smoke” tells us the full gateway+agent pipeline works for that model (sessions, history, tools, sandbox policy, etc.). ### Layer 1: Direct model completion (no gateway) - Test: `src/agents/models.profiles.live.test.ts` - Goal: - Enumerate discovered models - Use `getApiKeyForModel` to select models you have creds for - Run a small completion per model (and targeted regressions where needed) - How to enable: - `pnpm test:live` (or `OPENCLAW\_LIVE\_TEST=1` if invoking Vitest directly) - Set `OPENCLAW\_LIVE\_MODELS=modern` (or `all`, alias for modern) to actually run this suite; otherwise it skips to keep `pnpm test:live` focused on gateway smoke - How to select models: - `OPENCLAW\_LIVE\_MODELS=modern` to run the modern allowlist (Opus/Sonnet/Haiku 4.5, GPT-5.x + Codex, Gemini 3, GLM 4.7, MiniMax M2.1, Grok 4) - `OPENCLAW\_LIVE\_MODELS=all` is an alias for the modern allowlist - or `OPENCLAW\_LIVE\_MODELS="openai/gpt-5.2,anthropic/claude-opus-4-5,..."` (comma allowlist) - How to select providers: - `OPENCLAW\_LIVE\_PROVIDERS="google,google-antigravity,google-gemini-cli"` | https://github.com/openclaw/openclaw/blob/main//docs/testing.md | main | opebclaw | [
-0.017360026016831398,
-0.0006126457592472434,
0.008434824645519257,
0.07673397660255432,
0.09218285232782364,
-0.10392910242080688,
-0.11413052678108215,
0.01694885455071926,
-0.05688708275556564,
0.028049839660525322,
0.028812039643526077,
-0.0788813978433609,
-0.025678440928459167,
0.0004584085545502603,
0.04571593925356865,
-0.03668045625090599,
0.07054194062948227,
-0.05118529126048088,
0.03398534655570984,
0.018102213740348816,
-0.09818696230649948,
-0.012442454695701599,
-0.002024346264079213,
-0.022968633100390434,
-0.09970647841691971,
-0.004730814136564732,
-0.013215257786214352,
0.044597774744033813,
-0.011899798177182674,
-0.04452691972255707,
0.04700465127825737,
0.020117931067943573,
-0.03863527998328209,
0.03498140349984169,
0.06701575219631195,
0.05826718360185623,
0.020223913714289665,
-0.047269001603126526,
-0.1140982136130333,
-0.04602454975247383,
0.03562762960791588,
-0.06966669112443924,
0.028482060879468918,
-0.02834475040435791,
0.0761471539735794,
-0.06078095734119415,
-0.03305307775735855,
-0.06957361847162247,
0.0013017791789025068,
-0.03680521994829178,
-0.05364776775240898,
-0.10330463200807571,
0.02974027395248413,
-0.03464936837553978,
0.01707698404788971,
0.021601460874080658,
0.03401081636548042,
-0.03578731417655945,
0.014957954175770283,
0.000399951619328931,
0.04117065295577049,
-0.0355125367641449,
-0.05561680719256401,
0.02357526496052742,
-0.03303389996290207,
0.05224215239286423,
0.0419488362967968,
0.01806086115539074,
0.07271770387887955,
0.025167718529701233,
-0.06135394796729088,
0.02228958159685135,
-0.06050548329949379,
-0.05979689210653305,
-0.0024912685621529818,
0.06377056241035461,
0.009231052361428738,
-0.028729848563671112,
-0.011408322490751743,
-0.02244807779788971,
-0.014232359826564789,
-0.042923133820295334,
-0.0848185271024704,
-0.02491714060306549,
-0.008346691727638245,
0.1595386117696762,
0.06798597425222397,
0.017564300447702408,
0.03903370723128319,
-0.0372297428548336,
0.10103119909763336,
-0.012989464215934277,
-0.07194925844669342,
0.04887855798006058,
0.06559276580810547,
-0.009840082377195358,
0.026035211980342865,
-0.037942904978990555,
0.0007162290276028216,
0.04385020583868027,
0.004800831899046898,
-0.03436100482940674,
0.06514431536197662,
0.017625488340854645,
-0.008847158402204514,
0.01315946877002716,
0.01754363439977169,
0.012492393143475056,
0.02389003522694111,
0.006084342487156391,
0.043130334466695786,
-0.04996964707970619,
0.05003086477518082,
-0.0420510359108448,
-0.008459657430648804,
-0.017752528190612793,
-0.06233953684568405,
0.025986121967434883,
0.04523045942187309,
0.07896414399147034,
0.048107776790857315,
0.07471389323472977,
0.06969165802001953,
-0.06022154912352562,
0.06541968882083893,
0.05806022137403488,
-0.044611889868974686,
8.189767589830758e-33,
0.06978821754455566,
-0.07660596072673798,
-0.02479318343102932,
0.08725475519895554,
0.13651403784751892,
0.06026744097471237,
0.07910586893558502,
0.06581569463014603,
-0.021935444325208664,
0.028367862105369568,
0.0014248689403757453,
-0.0026397958863526583,
-0.051144544035196304,
-0.019327906891703606,
0.02055099420249462,
-0.0076460279524326324,
-0.09147699177265167,
-0.025227446109056473,
-0.01681818626821041,
0.10332560539245605,
0.033954840153455734,
-0.13449129462242126,
-0.05763651058077812,
-0.0392756350338459,
0.025851868093013763,
-0.00728421937674284,
0.006947960704565048,
0.017932036891579628,
-0.01119943056255579,
0.021372534334659576,
-0.03868924081325531,
0.006139879580587149,
-0.06372436881065369,
0.0701567605137825,
-0.016590647399425507,
0.012358414009213448,
-0.12745733559131622,
-0.047222815454006195,
-0.060318827629089355,
0.0004061280924361199,
-0.07283655554056168,
-0.03982016444206238,
-0.03162374347448349,
-0.03780997171998024,
0.042028799653053284,
-0.13168732821941376,
-0.050569966435432434,
0.014457839541137218,
0.03780334070324898,
0.023412441834807396,
0.0240268986672163,
0.02929687686264515,
-0.05668465048074722,
-0.017289916053414345,
-0.1194084957242012,
0.0034855606500059366,
0.04256507754325867,
-0.06661442667245865,
-0.0018515943083912134,
0.05170808359980583,
-0.08426262438297272,
0.001121837180107832,
-0.05189448967576027,
0.027112005278468132,
-0.030060704797506332,
0.007875713519752026,
-0.02244841679930687,
-0.062229592353105545,
-0.008672989904880524,
0.07218769192695618,
0.0017405644757673144,
-0.04509701952338219,
-0.011475704610347748,
0.016200531274080276,
0.028049081563949585,
-0.06682644039392471,
0.0024442686699330807,
0.05691391974687576,
0.024891356006264687,
0.026046285405755043,
0.03226535767316818,
0.03225363418459892,
0.009783811867237091,
0.04300464317202568,
0.044282764196395874,
-0.08212905377149582,
-0.024284616112709045,
-0.011327147483825684,
-0.04293346777558327,
-0.02754976786673069,
0.02732027694582939,
0.025131355971097946,
0.005521134939044714,
-0.029295826330780983,
0.04697451367974281,
-8.556376359861398e-33,
-0.024146897718310356,
0.04351078346371651,
0.032047420740127563,
0.08522427827119827,
-0.03158692270517349,
-0.04909852147102356,
0.10062161087989807,
-0.05852367356419563,
0.02578611671924591,
-0.07561784237623215,
-0.005926569923758507,
0.0453055240213871,
0.009314089082181454,
-0.01045856811106205,
-0.04308941587805748,
-0.04013252258300781,
-0.08338067680597305,
-0.14812599122524261,
0.04692275822162628,
0.01901996321976185,
0.012959560379385948,
0.016072653234004974,
0.02991393953561783,
0.0197001900523901,
-0.06426364183425903,
0.012730016373097897,
0.04345030337572098,
-0.00902493018656969,
-0.02374141849577427,
-0.061536990106105804,
0.059363674372434616,
0.07055813819169998,
-0.07586843520402908,
0.07038027048110962,
0.026747189462184906,
0.07179391384124756,
0.025311876088380814,
0.06599355489015579,
0.056974537670612335,
0.06655062735080719,
0.07848191261291504,
0.014597694389522076,
-0.06770515441894531,
-0.024702152237296104,
-0.08340512961149216,
0.1146383136510849,
0.000008205350241041742,
-0.05488855391740799,
-0.07940958440303802,
-0.041136499494314194,
-0.06269362568855286,
0.10127401351928711,
-0.025749413296580315,
0.06400130689144135,
-0.025368371978402138,
-0.05683770030736923,
-0.05682634934782982,
-0.029538387432694435,
-0.05655331164598465,
0.03224876895546913,
0.05329795926809311,
0.008361905813217163,
-0.0024589980021119118,
0.11244245618581772,
-0.08443382382392883,
-0.017569685354828835,
0.01728213019669056,
0.06141182780265808,
-0.024918759241700172,
0.03066929429769516,
-0.10461145639419556,
-0.031327929347753525,
0.01872137002646923,
-0.03378348425030708,
-0.003539371769875288,
-0.031417202204465866,
-0.08501455932855606,
-0.07294150441884995,
0.08070498704910278,
0.0011273459531366825,
0.0041631474159657955,
-0.06927958130836487,
-0.028470192104578018,
0.021566009148955345,
-0.007922750897705555,
0.020478203892707825,
0.052217256277799606,
0.04582624509930611,
0.07716145366430283,
0.034811731427907944,
-0.017394622787833214,
0.01154862716794014,
-0.061369262635707855,
0.006906891707330942,
0.06136207655072212,
-5.8141260694810626e-8,
0.01264005433768034,
-0.03949751704931259,
0.0325462631881237,
-0.011951673775911331,
0.021166972815990448,
-0.061187706887722015,
0.009828911162912846,
0.046921100467443466,
-0.02222231961786747,
0.0707530677318573,
-0.0004295501275919378,
-0.0048505645245313644,
-0.0953376367688179,
0.059989169239997864,
0.010933485813438892,
0.10129737108945847,
0.0061826338060200214,
0.04872196912765503,
-0.04707460477948189,
-0.05959724634885788,
-0.0846400111913681,
0.02057270146906376,
0.0013979028444737196,
-0.002197746653109789,
-0.035945650190114975,
0.026049897074699402,
0.06730964034795761,
0.033864252269268036,
0.015186200849711895,
-0.0014484184794127941,
0.011987659148871899,
-0.04604851081967354,
-0.018177349120378494,
0.006747456267476082,
-0.038419682532548904,
0.10107093304395676,
0.016879605129361153,
0.024185320362448692,
0.029823746532201767,
0.026303645223379135,
-0.07913477718830109,
-0.004471996333450079,
-0.01540997251868248,
-0.05589486286044121,
-0.07289140671491623,
-0.021942002698779106,
-0.0843527689576149,
-0.020652979612350464,
-0.05672479048371315,
-0.06930611282587051,
0.049774546176195145,
0.03192848712205887,
-0.0003163661458529532,
0.09540794044733047,
0.005385925527662039,
0.08435606956481934,
0.06332690268754959,
-0.010830081067979336,
0.020213186740875244,
0.06515295058488846,
0.005692749749869108,
-0.046275291591882706,
0.04357435181736946,
0.03223938122391701
] | 0.001017 |
focused on gateway smoke - How to select models: - `OPENCLAW\_LIVE\_MODELS=modern` to run the modern allowlist (Opus/Sonnet/Haiku 4.5, GPT-5.x + Codex, Gemini 3, GLM 4.7, MiniMax M2.1, Grok 4) - `OPENCLAW\_LIVE\_MODELS=all` is an alias for the modern allowlist - or `OPENCLAW\_LIVE\_MODELS="openai/gpt-5.2,anthropic/claude-opus-4-5,..."` (comma allowlist) - How to select providers: - `OPENCLAW\_LIVE\_PROVIDERS="google,google-antigravity,google-gemini-cli"` (comma allowlist) - Where keys come from: - By default: profile store and env fallbacks - Set `OPENCLAW\_LIVE\_REQUIRE\_PROFILE\_KEYS=1` to enforce \*\*profile store\*\* only - Why this exists: - Separates “provider API is broken / key is invalid” from “gateway agent pipeline is broken” - Contains small, isolated regressions (example: OpenAI Responses/Codex Responses reasoning replay + tool-call flows) ### Layer 2: Gateway + dev agent smoke (what “@openclaw” actually does) - Test: `src/gateway/gateway-models.profiles.live.test.ts` - Goal: - Spin up an in-process gateway - Create/patch a `agent:dev:\*` session (model override per run) - Iterate models-with-keys and assert: - “meaningful” response (no tools) - a real tool invocation works (read probe) - optional extra tool probes (exec+read probe) - OpenAI regression paths (tool-call-only → follow-up) keep working - Probe details (so you can explain failures quickly): - `read` probe: the test writes a nonce file in the workspace and asks the agent to `read` it and echo the nonce back. - `exec+read` probe: the test asks the agent to `exec`-write a nonce into a temp file, then `read` it back. - image probe: the test attaches a generated PNG (cat + randomized code) and expects the model to return `cat ```` `. - Implementation reference: `src/gateway/gateway-models.profiles.live.test.ts` and `src/gateway/live-image-probe.ts`. - How to enable: - `pnpm test:live` (or `OPENCLAW_LIVE_TEST=1` if invoking Vitest directly) - How to select models: - Default: modern allowlist (Opus/Sonnet/Haiku 4.5, GPT-5.x + Codex, Gemini 3, GLM 4.7, MiniMax M2.1, Grok 4) - `OPENCLAW_LIVE_GATEWAY_MODELS=all` is an alias for the modern allowlist - Or set `OPENCLAW_LIVE_GATEWAY_MODELS="provider/model"` (or comma list) to narrow - How to select providers (avoid “OpenRouter everything”): - `OPENCLAW_LIVE_GATEWAY_PROVIDERS="google,google-antigravity,google-gemini-cli,openai,anthropic,zai,minimax"` (comma allowlist) - Tool + image probes are always on in this live test: - `read` probe + `exec+read` probe (tool stress) - image probe runs when the model advertises image input support - Flow (high level): - Test generates a tiny PNG with “CAT” + random code (`src/gateway/live-image-probe.ts`) - Sends it via `agent` `attachments: [{ mimeType: "image/png", content: "" }]` - Gateway parses attachments into `images[]` (`src/gateway/server-methods/agent.ts` + `src/gateway/chat-attachments.ts`) - Embedded agent forwards a multimodal user message to the model - Assertion: reply contains `cat` + the code (OCR tolerance: minor mistakes allowed) Tip: to see what you can test on your machine (and the exact `provider/model` ids), run: ```bash openclaw models list openclaw models list --json ``` ## Live: Anthropic setup-token smoke - Test: `src/agents/anthropic.setup-token.live.test.ts` - Goal: verify Claude Code CLI setup-token (or a pasted setup-token profile) can complete an Anthropic prompt. - Enable: - `pnpm test:live` (or `OPENCLAW_LIVE_TEST=1` if invoking Vitest directly) - `OPENCLAW_LIVE_SETUP_TOKEN=1` - Token sources (pick one): - Profile: `OPENCLAW_LIVE_SETUP_TOKEN_PROFILE=anthropic:setup-token-test` - Raw token: `OPENCLAW_LIVE_SETUP_TOKEN_VALUE=sk-ant-oat01-...` - Model override (optional): - `OPENCLAW_LIVE_SETUP_TOKEN_MODEL=anthropic/claude-opus-4-5` Setup example: ```bash openclaw models auth paste-token --provider anthropic --profile-id anthropic:setup-token-test OPENCLAW_LIVE_SETUP_TOKEN=1 OPENCLAW_LIVE_SETUP_TOKEN_PROFILE=anthropic:setup-token-test pnpm test:live src/agents/anthropic.setup-token.live.test.ts ``` ## Live: CLI backend smoke (Claude Code CLI or other local CLIs) - Test: `src/gateway/gateway-cli-backend.live.test.ts` - Goal: validate the Gateway + agent pipeline using a local CLI backend, without touching your default config. - Enable: - `pnpm test:live` (or `OPENCLAW_LIVE_TEST=1` if invoking Vitest directly) - `OPENCLAW_LIVE_CLI_BACKEND=1` - Defaults: - Model: `claude-cli/claude-sonnet-4-5` - Command: `claude` - Args: `["-p","--output-format","json","--dangerously-skip-permissions"]` - Overrides (optional): - `OPENCLAW_LIVE_CLI_BACKEND_MODEL="claude-cli/claude-opus-4-5"` - `OPENCLAW_LIVE_CLI_BACKEND_MODEL="codex-cli/gpt-5.2-codex"` - `OPENCLAW_LIVE_CLI_BACKEND_COMMAND="/full/path/to/claude"` - `OPENCLAW_LIVE_CLI_BACKEND_ARGS='["-p","--output-format","json","--permission-mode","bypassPermissions"]'` - `OPENCLAW_LIVE_CLI_BACKEND_CLEAR_ENV='["ANTHROPIC_API_KEY","ANTHROPIC_API_KEY_OLD"]'` - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_PROBE=1` to send a real image attachment (paths are injected into the prompt). - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_ARG="--image"` to pass image file paths | https://github.com/openclaw/openclaw/blob/main//docs/testing.md | main | opebclaw | [
0.0021341247484087944,
-0.03465978056192398,
-0.04609808325767517,
-0.05120280757546425,
0.0912960097193718,
-0.023747634142637253,
0.010600656270980835,
-0.04253614321351051,
-0.0939103439450264,
-0.01608114130795002,
0.04548671469092369,
-0.027030648663640022,
-0.04598311707377434,
-0.007793480530381203,
0.09413435310125351,
0.08010793477296829,
0.08755269646644592,
-0.05964268743991852,
-0.03165927156805992,
-0.03909875079989433,
-0.019490718841552734,
0.06075924634933472,
-0.013143345713615417,
0.011904126033186913,
-0.06817778944969177,
-0.05497271940112114,
-0.06520652025938034,
0.02493538334965706,
0.006533667910844088,
0.0039720297791063786,
0.021193942055106163,
0.051633354276418686,
-0.08809637278318405,
0.018151935189962387,
0.07634884119033813,
-0.01703731156885624,
-0.019972195848822594,
-0.02922327071428299,
-0.02285175956785679,
-0.017029738053679466,
0.1192089393734932,
0.0021553083788603544,
-0.05503422021865845,
-0.08876381069421768,
0.0409163199365139,
-0.049090027809143066,
-0.048988282680511475,
-0.06345529109239578,
0.011452578008174896,
-0.03271202743053436,
-0.06061268225312233,
-0.027218353003263474,
-0.06080808863043785,
-0.02726856619119644,
0.020650643855333328,
0.019045326858758926,
-0.1126926988363266,
-0.00014465431740973145,
0.04729367792606354,
-0.06330406665802002,
0.012732663191854954,
-0.0594090037047863,
-0.06479820609092712,
0.018954027444124222,
-0.1580883115530014,
0.0026275075506418943,
-0.04720613732933998,
-0.019545484334230423,
0.06593836098909378,
-0.008145804516971111,
-0.018695620819926262,
0.03874415159225464,
-0.15571391582489014,
-0.06626518070697784,
0.0015086161438375711,
0.02468462660908699,
0.026773441582918167,
0.04709303006529808,
-0.012867412529885769,
-0.11789652705192566,
0.02790549211204052,
-0.0182847548276186,
0.017867345362901688,
0.02654583752155304,
-0.024052703753113747,
0.045195575803518295,
-0.06086727976799011,
-0.032631199806928635,
0.12871970236301422,
-0.02477380819618702,
-0.015833387151360512,
-0.061327192932367325,
0.0813826248049736,
0.031819235533475876,
0.050718728452920914,
-0.018695833161473274,
0.039875466376543045,
-0.09190952777862549,
-0.044767238199710846,
0.08248500525951385,
-0.07660064101219177,
-0.0503813773393631,
0.027390867471694946,
0.06796456128358841,
-0.08298180252313614,
0.008881140500307083,
0.026917099952697754,
0.10060608386993408,
0.044229429215192795,
0.015614924021065235,
-0.058062292635440826,
0.032349731773138046,
0.07444347441196442,
-0.11689595133066177,
0.0003943759948015213,
0.0025887847878038883,
-0.027479995042085648,
0.019214319065213203,
0.035843122750520706,
0.05916641652584076,
-0.017666850239038467,
0.0023558977991342545,
0.022965194657444954,
-0.06587544083595276,
0.019047873094677925,
0.06251856684684753,
-0.06350668519735336,
2.1792243650764685e-33,
0.07632900774478912,
-0.013390463776886463,
0.031997814774513245,
-0.013475426472723484,
0.02852729521691799,
0.08758951723575592,
0.003925787750631571,
0.025074096396565437,
-0.024177683517336845,
0.03623119741678238,
-0.01578390784561634,
0.024413565173745155,
-0.10486023128032684,
0.051236819475889206,
0.05610741302371025,
0.07493878901004791,
0.005551707930862904,
0.030762119218707085,
0.05021454766392708,
-0.01692199893295765,
0.017566967755556107,
-0.00866585224866867,
-0.06044973433017731,
-0.0161286573857069,
0.00965853314846754,
0.050307631492614746,
0.010290334932506084,
-0.00981619581580162,
0.017620258033275604,
0.05573118478059769,
-0.015677474439144135,
-0.01048175897449255,
-0.005672239698469639,
0.030482057482004166,
0.004131303634494543,
0.10672252625226974,
-0.10004609078168869,
-0.04339917004108429,
-0.04473590478301048,
-0.06339463591575623,
-0.06041354313492775,
-0.0037952435668557882,
-0.06389033794403076,
-0.038891565054655075,
0.032635267823934555,
-0.028027672320604324,
-0.03531992435455322,
0.004053188022226095,
0.0930565819144249,
0.04784771427512169,
-0.060610756278038025,
0.020105456933379173,
-0.10425078868865967,
0.03416163846850395,
-0.04678509011864662,
-0.023534871637821198,
-0.04177223891019821,
0.0854513943195343,
0.039626192301511765,
-0.0047249821946024895,
-0.01745259016752243,
-0.005545000545680523,
0.005729417782276869,
0.04001989960670471,
0.06574361771345139,
0.0298756156116724,
-0.04622481018304825,
-0.03644455596804619,
0.029688620939850807,
0.017404604703187943,
-0.03396619111299515,
-0.015033921226859093,
0.03110634535551071,
0.08907381445169449,
-0.009644647128880024,
-0.11343691498041153,
0.014060446992516518,
-0.01855151541531086,
0.015048624016344547,
0.000256571511272341,
-0.013301834464073181,
-0.05165557190775871,
-0.07579240202903748,
0.06416936218738556,
-0.02532637119293213,
-0.033310215920209885,
0.06952094286680222,
-0.009155504405498505,
0.04600554332137108,
0.015948385000228882,
-0.10507745295763016,
0.007323460653424263,
0.0038101193495094776,
0.05586223676800728,
-0.06730048358440399,
-4.422671496668128e-33,
0.055083900690078735,
-0.014985584653913975,
0.05050627887248993,
-0.0004280047432985157,
0.014277474954724312,
-0.09477102756500244,
0.057662028819322586,
-0.03138411417603493,
0.05988706648349762,
-0.03648428991436958,
0.05119269713759422,
0.036350321024656296,
0.07616709172725677,
-0.09144600480794907,
0.03923390433192253,
-0.029323242604732513,
-0.10136467218399048,
-0.09713371843099594,
0.012218840420246124,
0.09206057339906693,
-0.0472012534737587,
0.0006276568747125566,
-0.11321748793125153,
0.0735163614153862,
0.023656154051423073,
0.018802352249622345,
0.000329671980580315,
0.02242465130984783,
-0.019129671156406403,
-0.02753371372818947,
-0.018237080425024033,
0.11014942824840546,
-0.10670440644025803,
0.060265615582466125,
0.025146810337901115,
0.019974689930677414,
-0.08090799301862717,
0.13650700449943542,
0.00980918575078249,
-0.006109737325459719,
0.06812021881341934,
-0.005738990381360054,
-0.011804770678281784,
0.0060119363479316235,
0.0045053670182824135,
0.04631832614541054,
0.08209241926670074,
-0.044889625161886215,
-0.005190314259380102,
0.0013884330401197076,
0.034737370908260345,
-0.05074499174952507,
0.005605591926723719,
0.07037150114774704,
0.03873704746365547,
0.03946499899029732,
0.06635959446430206,
-0.028939325362443924,
-0.048365820199251175,
-0.050277575850486755,
0.03842031955718994,
-0.046127479523420334,
0.0011027631117030978,
0.08504518866539001,
0.008866683579981327,
-0.06820681691169739,
0.02610657922923565,
0.061469271779060364,
-0.009624448604881763,
-0.04661919176578522,
-0.10607973486185074,
-0.12206553667783737,
0.04470609128475189,
-0.027310412377119064,
-0.043624840676784515,
-0.02282632701098919,
-0.06576381623744965,
-0.0005516161909326911,
0.0480097159743309,
0.03588765487074852,
-0.039426181465387344,
0.023455679416656494,
0.028603561222553253,
-0.003113699145615101,
0.07391498237848282,
-0.026112595573067665,
-0.026289990171790123,
0.04007512331008911,
0.09277615696191788,
0.059374790638685226,
-0.01560641173273325,
-0.009777470491826534,
-0.016753681004047394,
-0.024046465754508972,
-0.041786693036556244,
-5.322801044371772e-8,
0.019799400120973587,
-0.05145297944545746,
-0.1125803142786026,
0.01389181800186634,
0.03786218911409378,
-0.025347966700792313,
-0.0013483872171491385,
-0.015534855425357819,
-0.027115946635603905,
0.060304004698991776,
0.06322780251502991,
0.03976844623684883,
-0.09508340805768967,
0.012595605105161667,
-0.013897520489990711,
0.011259031482040882,
-0.05790580436587334,
0.04231150075793266,
-0.01651577092707157,
-0.016088038682937622,
-0.051188934594392776,
-0.0034969234839081764,
0.04458286240696907,
-0.05692528933286667,
0.009421629831194878,
-0.03639594465494156,
-0.023591963574290276,
-0.014469001442193985,
0.03016410581767559,
0.13123194873332977,
-0.0029441218357533216,
-0.042605556547641754,
0.015257162973284721,
-0.046155549585819244,
-0.005509731825441122,
0.0037668354343622923,
0.003399382811039686,
0.06285841017961502,
0.014328133314847946,
-0.00015459299902431667,
0.07204746454954147,
0.01882293075323105,
-0.022703705355525017,
-0.0533752366900444,
-0.006428058724850416,
-0.018386611714959145,
0.0025630120653659105,
0.008314848877489567,
0.0488353930413723,
0.07983382791280746,
-0.049355871975421906,
0.003908245358616114,
0.08844064176082611,
0.005634237080812454,
-0.03052755817770958,
0.023824086412787437,
-0.02526261657476425,
0.007085589226335287,
0.008625373244285583,
-0.07014670968055725,
-0.0014162727165967226,
-0.0520089752972126,
0.048753634095191956,
0.03454329073429108
] | -0.063937 |
invoking Vitest directly) - `OPENCLAW_LIVE_CLI_BACKEND=1` - Defaults: - Model: `claude-cli/claude-sonnet-4-5` - Command: `claude` - Args: `["-p","--output-format","json","--dangerously-skip-permissions"]` - Overrides (optional): - `OPENCLAW_LIVE_CLI_BACKEND_MODEL="claude-cli/claude-opus-4-5"` - `OPENCLAW_LIVE_CLI_BACKEND_MODEL="codex-cli/gpt-5.2-codex"` - `OPENCLAW_LIVE_CLI_BACKEND_COMMAND="/full/path/to/claude"` - `OPENCLAW_LIVE_CLI_BACKEND_ARGS='["-p","--output-format","json","--permission-mode","bypassPermissions"]'` - `OPENCLAW_LIVE_CLI_BACKEND_CLEAR_ENV='["ANTHROPIC_API_KEY","ANTHROPIC_API_KEY_OLD"]'` - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_PROBE=1` to send a real image attachment (paths are injected into the prompt). - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_ARG="--image"` to pass image file paths as CLI args instead of prompt injection. - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_MODE="repeat"` (or `"list"`) to control how image args are passed when `IMAGE_ARG` is set. - `OPENCLAW_LIVE_CLI_BACKEND_RESUME_PROBE=1` to send a second turn and validate resume flow. - `OPENCLAW_LIVE_CLI_BACKEND_DISABLE_MCP_CONFIG=0` to keep Claude Code CLI MCP config enabled (default disables MCP config with a temporary empty file). Example: ```bash OPENCLAW_LIVE_CLI_BACKEND=1 \ OPENCLAW_LIVE_CLI_BACKEND_MODEL="claude-cli/claude-sonnet-4-5" \ pnpm test:live src/gateway/gateway-cli-backend.live.test.ts ``` ### Recommended live recipes Narrow, explicit allowlists are fastest and least flaky: - Single model, direct (no gateway): - `OPENCLAW_LIVE_MODELS="openai/gpt-5.2" pnpm test:live src/agents/models.profiles.live.test.ts` - Single model, gateway smoke: - `OPENCLAW_LIVE_GATEWAY_MODELS="openai/gpt-5.2" pnpm test:live src/gateway/gateway-models.profiles.live.test.ts` - Tool calling across several providers: - `OPENCLAW_LIVE_GATEWAY_MODELS="openai/gpt-5.2,anthropic/claude-opus-4-5,google/gemini-3-flash-preview,zai/glm-4.7,minimax/minimax-m2.1" pnpm test:live src/gateway/gateway-models.profiles.live.test.ts` - Google focus (Gemini API key + Antigravity): - Gemini (API key): `OPENCLAW_LIVE_GATEWAY_MODELS="google/gemini-3-flash-preview" pnpm test:live src/gateway/gateway-models.profiles.live.test.ts` - Antigravity (OAuth): `OPENCLAW_LIVE_GATEWAY_MODELS="google-antigravity/claude-opus-4-5-thinking,google-antigravity/gemini-3-pro-high" pnpm test:live src/gateway/gateway-models.profiles.live.test.ts` Notes: - `google/...` uses the Gemini API (API key). - `google-antigravity/...` uses the Antigravity OAuth bridge (Cloud Code Assist-style agent endpoint). - `google-gemini-cli/...` uses the local Gemini CLI on your machine (separate auth + tooling quirks). - Gemini API vs Gemini CLI: - API: OpenClaw calls Google’s hosted Gemini API over HTTP (API key / profile auth); this is what most users mean by “Gemini”. - CLI: OpenClaw shells out to a local `gemini` binary; it has its own auth and can behave differently (streaming/tool support/version skew). ## Live: model matrix (what we cover) There is no fixed “CI model list” (live is opt-in), but these are the **recommended** models to cover regularly on a dev machine with keys. ### Modern smoke set (tool calling + image) This is the “common models” run we expect to keep working: - OpenAI (non-Codex): `openai/gpt-5.2` (optional: `openai/gpt-5.1`) - OpenAI Codex: `openai-codex/gpt-5.2` (optional: `openai-codex/gpt-5.2-codex`) - Anthropic: `anthropic/claude-opus-4-5` (or `anthropic/claude-sonnet-4-5`) - Google (Gemini API): `google/gemini-3-pro-preview` and `google/gemini-3-flash-preview` (avoid older Gemini 2.x models) - Google (Antigravity): `google-antigravity/claude-opus-4-5-thinking` and `google-antigravity/gemini-3-flash` - Z.AI (GLM): `zai/glm-4.7` - MiniMax: `minimax/minimax-m2.1` Run gateway smoke with tools + image: `OPENCLAW_LIVE_GATEWAY_MODELS="openai/gpt-5.2,openai-codex/gpt-5.2,anthropic/claude-opus-4-5,google/gemini-3-pro-preview,google/gemini-3-flash-preview,google-antigravity/claude-opus-4-5-thinking,google-antigravity/gemini-3-flash,zai/glm-4.7,minimax/minimax-m2.1" pnpm test:live src/gateway/gateway-models.profiles.live.test.ts` ### Baseline: tool calling (Read + optional Exec) Pick at least one per provider family: - OpenAI: `openai/gpt-5.2` (or `openai/gpt-5-mini`) - Anthropic: `anthropic/claude-opus-4-5` (or `anthropic/claude-sonnet-4-5`) - Google: `google/gemini-3-flash-preview` (or `google/gemini-3-pro-preview`) - Z.AI (GLM): `zai/glm-4.7` - MiniMax: `minimax/minimax-m2.1` Optional additional coverage (nice to have): - xAI: `xai/grok-4` (or latest available) - Mistral: `mistral/`… (pick one “tools” capable model you have enabled) - Cerebras: `cerebras/`… (if you have access) - LM Studio: `lmstudio/`… (local; tool calling depends on API mode) ### Vision: image send (attachment → multimodal message) Include at least one image-capable model in `OPENCLAW_LIVE_GATEWAY_MODELS` (Claude/Gemini/OpenAI vision-capable variants, etc.) to exercise the image probe. ### Aggregators / alternate gateways If you have keys enabled, we also support testing via: - OpenRouter: `openrouter/...` (hundreds of models; use `openclaw models scan` to find tool+image capable candidates) - OpenCode Zen: `opencode/...` (auth via `OPENCODE_API_KEY` / `OPENCODE_ZEN_API_KEY`) More providers you can include in the live matrix (if you have creds/config): - Built-in: `openai`, `openai-codex`, `anthropic`, `google`, `google-vertex`, `google-antigravity`, `google-gemini-cli`, `zai`, `openrouter`, `opencode`, `xai`, `groq`, `cerebras`, `mistral`, `github-copilot` - Via `models.providers` (custom endpoints): `minimax` (cloud/API), plus any OpenAI/Anthropic-compatible proxy (LM Studio, vLLM, LiteLLM, etc.) Tip: don’t try to hardcode “all models” in docs. The authoritative list is whatever `discoverModels(...)` returns on your machine + whatever keys are available. ## Credentials (never commit) Live tests discover credentials the same way the CLI does. Practical implications: - If | https://github.com/openclaw/openclaw/blob/main//docs/testing.md | main | opebclaw | [
-0.01319896336644888,
0.02154529094696045,
-0.12384850531816483,
0.007964869029819965,
0.01560705155134201,
-0.08740776032209396,
-0.07472345232963562,
0.004559511784464121,
-0.07262054830789566,
-0.04677128046751022,
0.05565890297293663,
-0.0811261311173439,
-0.016312681138515472,
0.03402327001094818,
0.01716921664774418,
-0.003917999565601349,
0.06324336677789688,
0.004595038015395403,
-0.011310743167996407,
-0.0023198432754725218,
0.004422089084982872,
0.06736970692873001,
0.041504040360450745,
-0.01482199877500534,
-0.08052162081003189,
-0.08180909603834152,
-0.09018455445766449,
0.051690325140953064,
0.019986847415566444,
0.013068568892776966,
0.060715723782777786,
0.04099906608462334,
-0.06755255907773972,
-0.017152657732367516,
0.08941490203142166,
0.10688673704862595,
0.04195621237158775,
-0.11803053319454193,
-0.03367721661925316,
0.02575794793665409,
0.05919951573014259,
0.05825631320476532,
-0.08450698107481003,
-0.016678404062986374,
-0.04581066220998764,
-0.12228962033987045,
-0.004789760801941156,
-0.07657981663942337,
0.02776993066072464,
-0.0012799439718946815,
-0.05362999811768532,
-0.04786508530378342,
0.00011520748375914991,
-0.1469079554080963,
0.012969544157385826,
0.046118974685668945,
-0.021020397543907166,
-0.009430230595171452,
0.06418328732252121,
-0.02071056142449379,
0.013169266283512115,
0.04229642078280449,
-0.03941606357693672,
0.019990673288702965,
-0.09639342874288559,
0.014398027211427689,
-0.0030062608420848846,
-0.011075000278651714,
0.023712830618023872,
-0.008386146277189255,
-0.02395518869161606,
0.017142124474048615,
-0.11564473807811737,
-0.04708286002278328,
0.014347975142300129,
0.041877925395965576,
0.02538396045565605,
0.008449714630842209,
-0.021420976147055626,
-0.0792420506477356,
-0.04599904268980026,
-0.08025841414928436,
-0.03293445333838463,
0.0150656308978796,
0.003121059387922287,
0.11750463396310806,
0.06147027760744095,
0.012752687558531761,
0.07909270375967026,
0.03278953954577446,
0.02715512551367283,
-0.07604464143514633,
-0.020863180980086327,
0.01657107099890709,
-0.00003363415817148052,
-0.0006620964268222451,
0.04050009325146675,
0.0020968334283679724,
-0.0528351329267025,
0.07435162365436554,
-0.10182302445173264,
-0.07023269683122635,
0.10155394673347473,
0.0707806944847107,
-0.022262897342443466,
0.07138998806476593,
0.018464909866452217,
0.06361757218837738,
-0.033215802162885666,
-0.02374892123043537,
0.01622002013027668,
0.026247071102261543,
0.11280805617570877,
-0.09018998593091965,
0.0045399912633001804,
0.06511105597019196,
-0.08147745579481125,
0.038299739360809326,
0.023776797577738762,
0.08689169585704803,
0.10824505239725113,
-0.002698346273973584,
0.044105034321546555,
0.0011811162112280726,
0.08296958357095718,
0.04270637407898903,
0.05154641717672348,
-1.7628062259816424e-33,
0.09496995061635971,
-0.11208023875951767,
0.02134275995194912,
0.07127193361520767,
0.1041780337691307,
0.05683039873838425,
0.062406424432992935,
0.06727413833141327,
-0.03571202978491783,
0.04045616090297699,
0.0008354611927643418,
-0.035916320979595184,
-0.043980807065963745,
-0.00817425362765789,
0.008517458103597164,
0.0434732660651207,
-0.03296394646167755,
-0.0520835779607296,
0.012953110039234161,
-0.0037363264709711075,
0.0759340226650238,
-0.0209109615534544,
-0.052136462181806564,
0.007379024289548397,
-0.060339972376823425,
0.016612879931926727,
0.007630557753145695,
-0.016623012721538544,
0.020680878311395645,
0.0425010584294796,
0.017961939796805382,
0.0048451791517436504,
-0.018749786540865898,
0.025760022923350334,
-0.029142694547772408,
0.04959280788898468,
-0.07962857931852341,
0.006047726608812809,
-0.060126569122076035,
0.009941624477505684,
0.045950599014759064,
-0.028739294037222862,
-0.08796578645706177,
-0.07894229143857956,
0.03811352699995041,
-0.1313953697681427,
-0.05459368973970413,
0.08242857456207275,
0.00863347202539444,
0.03379315882921219,
-0.038739416748285294,
0.06637001782655716,
-0.034932710230350494,
-0.01885133795440197,
-0.09510724991559982,
0.04182175546884537,
0.05165918916463852,
0.016822488978505135,
-0.019287459552288055,
-0.018728075549006462,
-0.010915440507233143,
0.11109627783298492,
0.020756835117936134,
0.11215054243803024,
-0.02340586856007576,
-0.03499661386013031,
-0.032120563089847565,
-0.06909280270338058,
0.03219151124358177,
0.04620799049735069,
-0.09973006695508957,
-0.05475011095404625,
-0.023603785783052444,
0.008148294873535633,
-0.01359560713171959,
-0.0752551332116127,
-0.01683853380382061,
-0.03860293701291084,
0.05274268612265587,
-0.011217813938856125,
0.0011259649181738496,
-0.0216519758105278,
-0.008592141792178154,
-0.024747375398874283,
0.040560174733400345,
-0.08431699872016907,
-0.03433936461806297,
-0.01982923224568367,
-0.0020008839201182127,
-0.05409850925207138,
0.0037348195910453796,
-0.05285000801086426,
0.038800086826086044,
-0.06159141659736633,
-0.02110370062291622,
-2.2123997543925505e-33,
0.02286938764154911,
0.01835382543504238,
0.008502007462084293,
0.050186991691589355,
-0.015384038910269737,
-0.04491381719708443,
0.048847831785678864,
-0.06185991317033768,
-0.02508074976503849,
-0.0278367530554533,
-0.0212990902364254,
0.024344835430383682,
-0.013883157633244991,
-0.026623040437698364,
0.05605669692158699,
-0.02083173580467701,
-0.12186980247497559,
-0.07097391784191132,
-0.018663952127099037,
0.03558756783604622,
-0.018821973353624344,
-0.003940972965210676,
0.062350038439035416,
0.07927632331848145,
0.0261874757707119,
-0.07518208771944046,
0.06174479424953461,
0.04382390156388283,
0.004936973564326763,
-0.003071923740208149,
0.06375424563884735,
0.1047898679971695,
-0.10177477449178696,
0.08407064527273178,
0.013414761982858181,
0.05167179927229881,
0.01861201785504818,
0.0909276157617569,
0.03994756564497948,
0.07191414386034012,
0.09701331704854965,
0.005841829348355532,
-0.043215274810791016,
0.001561775105074048,
-0.0449725016951561,
0.15085186064243317,
0.03624458983540535,
-0.11659973859786987,
-0.05718092620372772,
-0.04659931734204292,
0.008336960338056087,
0.03382756933569908,
0.05871453881263733,
0.04636260122060776,
-0.005972184706479311,
0.0050826966762542725,
0.059779342263936996,
-0.05273794010281563,
-0.06124362722039223,
0.020348194986581802,
0.01295588817447424,
0.010461782105267048,
-0.013566261157393456,
0.03657852113246918,
-0.06428994238376617,
-0.08013853430747986,
-0.05122990906238556,
0.04331345856189728,
-0.001658833702094853,
-0.04573970288038254,
-0.047046318650245667,
-0.02287915349006653,
0.024005431681871414,
-0.03520386293530464,
0.029436027631163597,
-0.018238766118884087,
-0.10291397571563721,
-0.047657765448093414,
0.0374571792781353,
0.022849496454000473,
-0.009843573905527592,
-0.06311450898647308,
-0.0074013592675328255,
0.035105831921100616,
-0.03634018450975418,
0.005996660329401493,
-0.03805656358599663,
0.0812709778547287,
0.07229634374380112,
0.055628981441259384,
-0.00485776923596859,
0.013794833794236183,
0.024591540917754173,
-0.051852017641067505,
0.02699277363717556,
-5.0301387943818554e-8,
0.021113321185112,
-0.04922490939497948,
-0.0652071163058281,
0.046951908618211746,
-0.014979181811213493,
-0.0309685617685318,
-0.033891234546899796,
-0.039060257375240326,
-0.01745648868381977,
0.008323533460497856,
0.03605734556913376,
0.02665802277624607,
-0.04103870317339897,
-0.004882416687905788,
-0.056739699095487595,
0.019640091806650162,
-0.034033507108688354,
0.01925383135676384,
0.003603680059313774,
-0.032554589211940765,
-0.03858637064695358,
0.015049265697598457,
0.012036317959427834,
-0.012231769040226936,
0.005823689978569746,
-0.05134939029812813,
-0.025918148458003998,
0.007041477598249912,
-0.05063478276133537,
0.053757719695568085,
0.07625789195299149,
-0.050715114921331406,
-0.045169398188591,
0.003425752744078636,
-0.034844350069761276,
-0.003487067297101021,
0.0446881540119648,
0.07725027203559875,
0.039122264832258224,
0.027979034930467606,
-0.0021310930605977774,
0.04294373840093613,
-0.0654749870300293,
-0.06465141475200653,
-0.0456470288336277,
-0.02243497408926487,
-0.05588028207421303,
0.006094674114137888,
0.01837020367383957,
-0.025768589228391647,
-0.027829954400658607,
0.0213810782879591,
-0.068046435713768,
0.07855880260467529,
-0.013067460618913174,
0.08463039249181747,
0.02906503714621067,
-0.01358479168266058,
-0.041365064680576324,
0.001171406009234488,
-0.003801964223384857,
-0.004092176910489798,
0.0381816141307354,
-0.012507643550634384
] | -0.098265 |
any OpenAI/Anthropic-compatible proxy (LM Studio, vLLM, LiteLLM, etc.) Tip: don’t try to hardcode “all models” in docs. The authoritative list is whatever `discoverModels(...)` returns on your machine + whatever keys are available. ## Credentials (never commit) Live tests discover credentials the same way the CLI does. Practical implications: - If the CLI works, live tests should find the same keys. - If a live test says “no creds”, debug the same way you’d debug `openclaw models list` / model selection. - Profile store: `~/.openclaw/credentials/` (preferred; what “profile keys” means in the tests) - Config: `~/.openclaw/openclaw.json` (or `OPENCLAW_CONFIG_PATH`) If you want to rely on env keys (e.g. exported in your `~/.profile`), run local tests after `source ~/.profile`, or use the Docker runners below (they can mount `~/.profile` into the container). ## Deepgram live (audio transcription) - Test: `src/media-understanding/providers/deepgram/audio.live.test.ts` - Enable: `DEEPGRAM_API_KEY=... DEEPGRAM_LIVE_TEST=1 pnpm test:live src/media-understanding/providers/deepgram/audio.live.test.ts` ## Docker runners (optional “works in Linux” checks) These run `pnpm test:live` inside the repo Docker image, mounting your local config dir and workspace (and sourcing `~/.profile` if mounted): - Direct models: `pnpm test:docker:live-models` (script: `scripts/test-live-models-docker.sh`) - Gateway + dev agent: `pnpm test:docker:live-gateway` (script: `scripts/test-live-gateway-models-docker.sh`) - Onboarding wizard (TTY, full scaffolding): `pnpm test:docker:onboard` (script: `scripts/e2e/onboard-docker.sh`) - Gateway networking (two containers, WS auth + health): `pnpm test:docker:gateway-network` (script: `scripts/e2e/gateway-network-docker.sh`) - Plugins (custom extension load + registry smoke): `pnpm test:docker:plugins` (script: `scripts/e2e/plugins-docker.sh`) Useful env vars: - `OPENCLAW_CONFIG_DIR=...` (default: `~/.openclaw`) mounted to `/home/node/.openclaw` - `OPENCLAW_WORKSPACE_DIR=...` (default: `~/.openclaw/workspace`) mounted to `/home/node/.openclaw/workspace` - `OPENCLAW_PROFILE_FILE=...` (default: `~/.profile`) mounted to `/home/node/.profile` and sourced before running tests - `OPENCLAW_LIVE_GATEWAY_MODELS=...` / `OPENCLAW_LIVE_MODELS=...` to narrow the run - `OPENCLAW_LIVE_REQUIRE_PROFILE_KEYS=1` to ensure creds come from the profile store (not env) ## Docs sanity Run docs checks after doc edits: `pnpm docs:list`. ## Offline regression (CI-safe) These are “real pipeline” regressions without real providers: - Gateway tool calling (mock OpenAI, real gateway + agent loop): `src/gateway/gateway.tool-calling.mock-openai.test.ts` - Gateway wizard (WS `wizard.start`/`wizard.next`, writes config + auth enforced): `src/gateway/gateway.wizard.e2e.test.ts` ## Agent reliability evals (skills) We already have a few CI-safe tests that behave like “agent reliability evals”: - Mock tool-calling through the real gateway + agent loop (`src/gateway/gateway.tool-calling.mock-openai.test.ts`). - End-to-end wizard flows that validate session wiring and config effects (`src/gateway/gateway.wizard.e2e.test.ts`). What’s still missing for skills (see [Skills](/tools/skills)): - **Decisioning:** when skills are listed in the prompt, does the agent pick the right skill (or avoid irrelevant ones)? - **Compliance:** does the agent read `SKILL.md` before use and follow required steps/args? - **Workflow contracts:** multi-turn scenarios that assert tool order, session history carryover, and sandbox boundaries. Future evals should stay deterministic first: - A scenario runner using mock providers to assert tool calls + order, skill file reads, and session wiring. - A small suite of skill-focused scenarios (use vs avoid, gating, prompt injection). - Optional live evals (opt-in, env-gated) only after the CI-safe suite is in place. ## Adding regressions (guidance) When you fix a provider/model issue discovered in live: - Add a CI-safe regression if possible (mock/stub provider, or capture the exact request-shape transformation) - If it’s inherently live-only (rate limits, auth policies), keep the live test narrow and opt-in via env vars - Prefer targeting the smallest layer that catches the bug: - provider request conversion/replay bug → direct models test - gateway session/history/tool pipeline bug → gateway live smoke or CI-safe gateway mock test ```` | https://github.com/openclaw/openclaw/blob/main//docs/testing.md | main | opebclaw | [
0.0033327287528663874,
-0.03189234808087349,
-0.058915384113788605,
0.0556456558406353,
0.05302964523434639,
-0.08540056645870209,
-0.11765936017036438,
-0.026715757325291634,
-0.03206274285912514,
-0.0023066485300660133,
0.02199261449277401,
-0.08742915838956833,
0.05283293128013611,
0.035168565809726715,
0.04666881263256073,
0.042886488139629364,
0.06439371407032013,
0.010632907971739769,
-0.0024138072039932013,
0.04879724979400635,
-0.05270454287528992,
0.06240608170628548,
-0.010007170960307121,
-0.03661158308386803,
-0.0668862909078598,
-0.07963896542787552,
-0.04287266731262207,
-0.02114221639931202,
-0.03443249315023422,
-0.005798324942588806,
0.07401661574840546,
0.017843307927250862,
-0.02626189775764942,
-0.0025653636548668146,
0.12205858528614044,
0.03756076470017433,
0.06605657935142517,
-0.0719342827796936,
0.0037607394624501467,
-0.015723180025815964,
0.10625515133142471,
-0.018238220363855362,
-0.0048042284324765205,
-0.07592039555311203,
-0.008510705083608627,
-0.07993198931217194,
0.03305801376700401,
-0.09325617551803589,
-0.032028380781412125,
-0.0037239890079945326,
-0.09188354015350342,
-0.09124681353569031,
0.008455920964479446,
-0.00907402578741312,
-0.017697181552648544,
0.0007239712285809219,
0.023356834426522255,
0.008628953248262405,
0.06196374073624611,
-0.0334746427834034,
0.012236462906002998,
0.0264042429625988,
-0.0558728352189064,
0.0505516342818737,
-0.11367666721343994,
0.04886442795395851,
-0.03696565702557564,
-0.028851311653852463,
0.05599362403154373,
-0.024277977645397186,
0.009216062724590302,
0.0038993360940366983,
-0.049933746457099915,
-0.1125589981675148,
0.02891474775969982,
0.06943943351507187,
0.0810600072145462,
0.01065442431718111,
-0.010934974998235703,
-0.0671093538403511,
-0.08341506123542786,
-0.0907989889383316,
-0.06325322389602661,
0.01832321286201477,
0.011256089434027672,
0.12248401343822479,
0.07363293319940567,
-0.00839888583868742,
0.0905279740691185,
0.03359075263142586,
0.04278770461678505,
-0.08461830765008926,
-0.03520536795258522,
-0.03616075590252876,
0.052473001182079315,
0.03728150576353073,
0.07570904493331909,
0.012531828135251999,
-0.03223232179880142,
0.08994404971599579,
-0.037799689918756485,
-0.00959157757461071,
0.06634031236171722,
0.031206179410219193,
0.0029129458125680685,
0.09911560267210007,
0.04779411479830742,
0.02297057770192623,
-0.04332803189754486,
-0.009048963896930218,
0.05900855362415314,
-0.022226937115192413,
0.10697291791439056,
-0.016381802037358284,
0.034103136509656906,
0.026070762425661087,
-0.06192655861377716,
-0.0338464118540287,
0.014682664535939693,
0.05288736894726753,
0.05178001523017883,
0.01641634665429592,
0.08753552287817001,
-0.014995927922427654,
0.08053526282310486,
0.1291482299566269,
-0.022629059851169586,
3.4916788687909224e-33,
0.11526259034872055,
-0.027141109108924866,
0.03419998660683632,
0.06199070066213608,
0.13388587534427643,
0.02315233275294304,
0.07778744399547577,
0.044354021549224854,
0.025296976789832115,
0.037365153431892395,
-0.016819145530462265,
0.07328248023986816,
-0.07208596169948578,
-0.035979267209768295,
0.039519693702459335,
0.09354666620492935,
-0.09007231146097183,
0.008252867497503757,
0.02015642076730728,
0.07042672485113144,
0.0020311030093580484,
-0.10921023041009903,
-0.057130783796310425,
-0.0750642865896225,
-0.03712092712521553,
0.02439453825354576,
0.03976543992757797,
-0.032437264919281006,
-0.04928426072001457,
0.042752835899591446,
0.07066934555768967,
-0.00018013613589573652,
0.008074193261563778,
0.04180198162794113,
-0.033179376274347305,
0.03251568600535393,
-0.059849727898836136,
0.017570627853274345,
-0.10033626854419708,
-0.044625174254179,
-0.019588513299822807,
-0.006917963270097971,
-0.023719483986496925,
-0.05268596112728119,
-0.029670780524611473,
-0.11511256545782089,
-0.01001313142478466,
0.03527984768152237,
0.08842696994543076,
0.07498840987682343,
0.01617666892707348,
-0.057620663195848465,
-0.044353045523166656,
-0.012355636805295944,
-0.07081260532140732,
-0.0268930122256279,
0.028771331533789635,
-0.045216601341962814,
0.021384544670581818,
0.01928209699690342,
-0.06641512364149094,
0.014710741117596626,
-0.028352227061986923,
0.0677504912018776,
-0.026918591931462288,
0.0002897053200285882,
-0.04352184385061264,
-0.049682192504405975,
0.05710886791348457,
0.007595558650791645,
-0.014228166081011295,
-0.007546208333224058,
-0.04438668116927147,
-0.003011391730979085,
-0.001885798410512507,
-0.08228195458650589,
0.023207856342196465,
-0.03153126686811447,
0.044572193175554276,
0.05242589861154556,
0.12238019704818726,
0.05394265055656433,
-0.020043114200234413,
0.053185541182756424,
-0.049474965780973434,
0.011878999881446362,
-0.024679353460669518,
0.00920203235000372,
0.01777765341103077,
-0.013005444779992104,
0.07518479228019714,
0.044505007565021515,
-0.006822581868618727,
-0.02814224362373352,
-0.039303116500377655,
-3.4939145121093925e-33,
-0.03599853441119194,
-0.05204659327864647,
0.07500963658094406,
0.03106270730495453,
0.00035485567059367895,
-0.06855984032154083,
-0.007337506860494614,
-0.006479324772953987,
0.008209516294300556,
-0.10198169201612473,
0.03345414996147156,
0.02680099755525589,
0.04197927191853523,
0.0028631004970520735,
0.0455392524600029,
-0.05975551903247833,
-0.052879076451063156,
-0.11109352111816406,
0.03923218697309494,
0.03263412415981293,
0.007023383863270283,
-0.014088572934269905,
-0.010559022426605225,
0.03783400356769562,
0.00037344120210036635,
0.010183090344071388,
-0.0254637710750103,
0.005274202674627304,
-0.020749660208821297,
-0.02705966681241989,
0.05820702761411667,
0.1317901611328125,
-0.10428285598754883,
0.06406363099813461,
-0.024134570732712746,
0.06077312305569649,
-0.038508158177137375,
0.11978601664304733,
0.0072677237913012505,
0.0021065478213131428,
0.04227463901042938,
-0.011382706463336945,
-0.08607081323862076,
-0.02234676666557789,
-0.030942225828766823,
0.05210985243320465,
-0.01533336192369461,
-0.057616814970970154,
-0.043834105134010315,
-0.0036459423135966063,
-0.03459795564413071,
0.04891623184084892,
0.026591042056679726,
-0.013071361929178238,
-0.010619808919727802,
0.023494919762015343,
-0.03468673303723335,
-0.020953785628080368,
-0.02627936564385891,
-0.013044007122516632,
0.02854190208017826,
0.028211474418640137,
-0.001047384226694703,
0.13009540736675262,
-0.09490801393985748,
-0.022575179114937782,
-0.000854786136187613,
0.05133408308029175,
-0.08371765166521072,
-0.03589598834514618,
-0.0641898512840271,
-0.08035357296466827,
-0.03561732918024063,
-0.05516389384865761,
0.05256291478872299,
-0.06621462106704712,
-0.12031087279319763,
-0.06415219604969025,
0.04059365764260292,
0.0735967829823494,
0.009499380365014076,
-0.01867637224495411,
-0.030996091663837433,
-0.04356597736477852,
0.02263040654361248,
-0.003284794744104147,
0.03432077914476395,
0.06402356922626495,
0.08013897389173508,
0.03768439590930939,
-0.07370501756668091,
0.013461167924106121,
-0.07575400173664093,
-0.004311677999794483,
0.047122757881879807,
-5.260014290797699e-8,
-0.036868736147880554,
-0.02660195343196392,
-0.02383781597018242,
0.06237085908651352,
-0.0989413857460022,
-0.01903250254690647,
-0.019311826676130295,
0.035340163856744766,
-0.021801112219691277,
0.05865859612822533,
0.04726982116699219,
-0.0004715457616839558,
-0.08467871695756912,
0.07014083862304688,
-0.06778702139854431,
0.04758429154753685,
0.029996801167726517,
0.010654132813215256,
-0.019839782267808914,
-0.0431625097990036,
-0.027608809992671013,
0.012543031945824623,
0.07085812836885452,
0.010956969112157822,
-0.03506234660744667,
-0.024433383718132973,
-0.02803730219602585,
0.030837934464216232,
-0.0011789054842665792,
0.01146357785910368,
0.015381647273898125,
-0.03237883746623993,
0.007846645079553127,
-0.02840370312333107,
-0.03136332705616951,
0.06595075875520706,
-0.004710043780505657,
0.02355736680328846,
0.008321033790707588,
0.060833949595689774,
-0.022583121433854103,
0.0036356011405587196,
-0.03167690709233284,
-0.07852794229984283,
-0.08249008655548096,
0.04735417291522026,
-0.01419660821557045,
-0.006520714145153761,
0.00689746392890811,
-0.04135137423872948,
0.019353818148374557,
-0.03630466386675835,
0.008072305470705032,
0.019512813538312912,
-0.012644491158425808,
0.06461691111326218,
0.05384095758199692,
0.0038613867945969105,
-0.03067847527563572,
0.008158217184245586,
0.006943081505596638,
-0.01768212765455246,
-0.0017381845973432064,
0.03079303540289402
] | -0.081555 |
# Pi Development Workflow This guide summarizes a sane workflow for working on the pi integration in OpenClaw. ## Type Checking and Linting - Type check and build: `pnpm build` - Lint: `pnpm lint` - Format check: `pnpm format` - Full gate before pushing: `pnpm lint && pnpm build && pnpm test` ## Running Pi Tests Use the dedicated script for the pi integration test set: ```bash scripts/pi/run-tests.sh ``` To include the live test that exercises real provider behavior: ```bash scripts/pi/run-tests.sh --live ``` The script runs all pi related unit tests via these globs: - `src/agents/pi-\*.test.ts` - `src/agents/pi-embedded-\*.test.ts` - `src/agents/pi-tools\*.test.ts` - `src/agents/pi-settings.test.ts` - `src/agents/pi-tool-definition-adapter.test.ts` - `src/agents/pi-extensions/\*.test.ts` ## Manual Testing Recommended flow: - Run the gateway in dev mode: - `pnpm gateway:dev` - Trigger the agent directly: - `pnpm openclaw agent --message "Hello" --thinking low` - Use the TUI for interactive debugging: - `pnpm tui` For tool call behavior, prompt for a `read` or `exec` action so you can see tool streaming and payload handling. ## Clean Slate Reset State lives under the OpenClaw state directory. Default is `~/.openclaw`. If `OPENCLAW\_STATE\_DIR` is set, use that directory instead. To reset everything: - `openclaw.json` for config - `credentials/` for auth profiles and tokens - `agents//sessions/` for agent session history - `agents//sessions.json` for the session index - `sessions/` if legacy paths exist - `workspace/` if you want a blank workspace If you only want to reset sessions, delete `agents//sessions/` and `agents//sessions.json` for that agent. Keep `credentials/` if you do not want to reauthenticate. ## References - https://docs.openclaw.ai/testing - https://docs.openclaw.ai/start/getting-started | https://github.com/openclaw/openclaw/blob/main//docs/pi-dev.md | main | opebclaw | [
-0.0732634887099266,
-0.0230801310390234,
-0.09419406950473785,
0.07097642123699188,
0.03116903267800808,
-0.06942646950483322,
-0.022656699642539024,
0.00491230608895421,
-0.03353916108608246,
0.04119270667433739,
0.03870684653520584,
0.007712119724601507,
0.0019827254582196474,
0.0375417023897171,
0.07805041968822479,
0.016758497804403305,
0.025523127987980843,
-0.05207185819745064,
0.04971049726009369,
-0.04704063758254051,
-0.06321321427822113,
-0.011608107015490532,
0.05959998816251755,
0.0037108291871845722,
-0.06642260402441025,
-0.055725034326314926,
-0.0017959214746952057,
-0.04240762069821358,
0.016450997442007065,
-0.012125750072300434,
0.04674024507403374,
0.06179065257310867,
-0.04958697408437729,
-0.0010942870285362005,
0.09274911880493164,
0.12454657256603241,
0.026842912659049034,
-0.012169810943305492,
-0.08532881736755371,
0.02145550027489662,
0.14324910938739777,
0.00017098280659411103,
0.037180136889219284,
-0.09607600420713425,
0.030798479914665222,
-0.04857853800058365,
-0.05841671675443649,
-0.10606728494167328,
-0.09043332189321518,
-0.03138856962323189,
-0.05532117560505867,
-0.02462940104305744,
-0.02366051822900772,
-0.0585574135184288,
0.01422067079693079,
0.02624412812292576,
0.027336860075592995,
0.000010031313649960794,
0.032444361597299576,
0.005108065903186798,
-0.04152307286858559,
-0.009650694206357002,
-0.031130898743867874,
-0.0458335280418396,
-0.01591392233967781,
0.054620128124952316,
0.003561494406312704,
-0.015891792252659798,
0.025018814951181412,
-0.0320436991751194,
-0.04823603108525276,
0.04666520655155182,
-0.06212419271469116,
-0.02678891457617283,
-0.01733926124870777,
0.03595098480582237,
-0.03795052319765091,
0.011903529986739159,
-0.038722533732652664,
-0.07273391634225845,
-0.05166938528418541,
-0.07417770475149155,
-0.05343421921133995,
0.008720863610506058,
0.039411406964063644,
0.21559551358222961,
0.07152505218982697,
0.030344245955348015,
0.06110070273280144,
0.026025595143437386,
0.08596376329660416,
0.007920053787529469,
-0.05531146749854088,
0.036628130823373795,
0.04963517189025879,
-0.015392303466796875,
-0.0032840983476489782,
0.0405508317053318,
-0.018235936760902405,
0.04268864169716835,
0.008369741961359978,
-0.04718334972858429,
0.04129365086555481,
0.04443727806210518,
-0.07083268463611603,
0.018567051738500595,
0.022251630201935768,
-0.022934425622224808,
0.06051236391067505,
0.02563149482011795,
0.033853527158498764,
-0.04924744740128517,
0.07221607863903046,
-0.051009420305490494,
-0.04499278590083122,
0.040703993290662766,
-0.004473630338907242,
-0.004478508606553078,
-0.005315110087394714,
0.09894344955682755,
0.0008424007100984454,
0.09234792739152908,
-0.03806734085083008,
0.014614338055253029,
0.02734980173408985,
0.06377750635147095,
0.03011367656290531,
5.266855703447031e-33,
0.045566074550151825,
-0.028459524735808372,
-0.031713616102933884,
0.09061902016401291,
0.06608526408672333,
0.05771078169345856,
0.08038771897554398,
0.005229210015386343,
-0.039468955248594284,
0.004142167046666145,
-0.02305256575345993,
0.09101992845535278,
-0.09461329877376556,
-0.03229765221476555,
-0.03379121422767639,
-0.047990161925554276,
-0.06963873654603958,
0.03629790619015694,
0.05723100155591965,
0.07609085738658905,
0.022191056981682777,
-0.007472747005522251,
-0.08934256434440613,
-0.00875177327543497,
0.012495852075517178,
-0.016947317868471146,
-0.028345506638288498,
-0.007008915301412344,
-0.04719626531004906,
0.01908780075609684,
0.014111521653831005,
0.007894156500697136,
-0.06836714595556259,
0.07605202496051788,
-0.05920417234301567,
-0.043163880705833435,
-0.1329919546842575,
-0.031015746295452118,
-0.06240232661366463,
0.023537199944257736,
-0.03182239085435867,
-0.08335108309984207,
-0.06498736143112183,
0.015286904759705067,
-0.014216196723282337,
-0.1280411183834076,
-0.0580790676176548,
0.048364464193582535,
0.12885187566280365,
-0.007567673455923796,
0.0020769843831658363,
0.02405109442770481,
0.033930085599422455,
-0.032190870493650436,
0.009886262007057667,
-0.021351909264922142,
-0.014947643503546715,
-0.07306689023971558,
0.03698927164077759,
0.06264067441225052,
-0.016457494348287582,
0.004198173992335796,
-0.07397519052028656,
0.060848355293273926,
0.02329050749540329,
-0.06057129055261612,
0.0011291287373751402,
-0.05046394467353821,
0.08038883656263351,
0.018680106848478317,
0.034988611936569214,
-0.05755766108632088,
-0.01743549294769764,
0.08139578253030777,
0.04280032590031624,
-0.06285917013883591,
-0.015549303963780403,
0.10809160023927689,
-0.04521667957305908,
0.015629194676876068,
0.06972534209489822,
-0.008174699731171131,
0.01361449807882309,
0.009373031556606293,
0.08106730133295059,
-0.042424485087394714,
0.01028820127248764,
-0.02891567163169384,
-0.03965941071510315,
-0.0381527878344059,
0.021749284118413925,
-0.0467165932059288,
0.028817182406783104,
0.033927127718925476,
0.03723720461130142,
-5.498383642178881e-33,
0.006748725660145283,
0.026457922533154488,
-0.062145333737134933,
0.06791230291128159,
-0.06821689754724503,
-0.07903378456830978,
0.051318906247615814,
-0.12057708203792572,
0.02799135260283947,
0.027153970673680305,
-0.000004461675871425541,
-0.03571794927120209,
0.037951577454805374,
-0.0018388467142358422,
-0.03432224690914154,
-0.05038509890437126,
-0.06928577274084091,
-0.09241915494203568,
0.050069134682416916,
0.006490902043879032,
-0.06513918191194534,
0.06273109465837479,
0.05396858602762222,
0.049885187298059464,
-0.06181349605321884,
0.04890159144997597,
0.025203417986631393,
-0.0051949527114629745,
-0.03319175913929939,
-0.025703834369778633,
-0.03244830667972565,
0.068942591547966,
-0.11527412384748459,
0.07369844615459442,
-0.03204767033457756,
0.025009984150528908,
0.008583907969295979,
0.07465535402297974,
0.051915958523750305,
-0.010116917081177235,
0.028803730383515358,
0.000895429402589798,
-0.06787341833114624,
-0.02975602075457573,
-0.03079991415143013,
0.052099186927080154,
0.09639579802751541,
-0.09816516935825348,
-0.08160421997308731,
-0.03735098987817764,
-0.054510194808244705,
0.08049116283655167,
0.044833529740571976,
-0.0039014110807329416,
-0.03179381415247917,
-0.004829460754990578,
0.011784695088863373,
-0.04101190343499184,
-0.08700282126665115,
-0.03495782986283302,
0.08271722495555878,
-0.019748130813241005,
0.016613800078630447,
0.07066222280263901,
-0.09307857602834702,
0.01821771077811718,
0.03723301738500595,
0.003778864396736026,
0.035373054444789886,
-0.03007863648235798,
-0.09917684644460678,
-0.05493878200650215,
0.03787727653980255,
-0.012104351073503494,
-0.0009261492523364723,
0.0039047610480338335,
-0.01732310652732849,
-0.01727282628417015,
0.05890774726867676,
-0.006543705239892006,
-0.05283736437559128,
-0.05818477272987366,
-0.02816600725054741,
-0.012085235677659512,
-0.07093387842178345,
-0.012597396038472652,
0.03402412682771683,
0.02126772329211235,
0.06728031486272812,
0.04713396355509758,
-0.017228182405233383,
0.02371222712099552,
-0.02024289220571518,
-0.000655555515550077,
0.03895135223865509,
-5.687524051722903e-8,
-0.004169853404164314,
-0.016213813796639442,
-0.10142096877098083,
0.01822587475180626,
-0.011331286281347275,
-0.09382820129394531,
0.007022168952971697,
0.0059899818152189255,
-0.014639499597251415,
0.058250218629837036,
-0.009575318545103073,
-0.014900517649948597,
-0.032367609441280365,
0.04496912285685539,
0.05117221549153328,
0.024052774533629417,
-0.04260996729135513,
0.04500606656074524,
-0.004313494078814983,
-0.07008876651525497,
-0.04670403152704239,
0.026990506798028946,
0.05086032673716545,
0.03540085628628731,
-0.08004334568977356,
0.05106615647673607,
0.0859760046005249,
0.010678735561668873,
0.009991343133151531,
0.0652649775147438,
0.014155713841319084,
-0.07155126333236694,
-0.03725932165980339,
-0.02298307977616787,
-0.004527600947767496,
0.04765905439853668,
0.047981757670640945,
0.01652844436466694,
0.08821683377027512,
0.03469099476933479,
-0.03697637841105461,
0.04211271181702614,
-0.038143228739500046,
-0.020173221826553345,
-0.020660022273659706,
-0.03699979931116104,
-0.1094212755560875,
-0.05063258856534958,
-0.001422171131707728,
-0.07366669923067093,
0.009173220954835415,
0.06904172897338867,
-0.0236209649592638,
0.017000459134578705,
0.03803033009171486,
0.07602532207965851,
0.04715793579816818,
-0.038947802037000656,
-0.06032948195934296,
0.038011584430933,
-0.028001945465803146,
-0.020091960206627846,
0.09166507422924042,
-0.018192406743764877
] | 0.041825 |
# OpenClaw 🦞> \_"EXFOLIATE! EXFOLIATE!"\_ — A space lobster, probably **Any OS gateway for AI agents across WhatsApp, Telegram, Discord, iMessage, and more.** Send a message, get an agent response from your pocket. Plugins add Mattermost and more. Install OpenClaw and bring up the Gateway in minutes. Guided setup with `openclaw onboard` and pairing flows. Launch the browser dashboard for chat, config, and sessions. OpenClaw connects chat apps to coding agents like Pi through a single Gateway process. It powers the OpenClaw assistant and supports local or remote setups. ## How it works ```mermaid flowchart LR A["Chat apps + plugins"] --> B["Gateway"] B --> C["Pi agent"] B --> D["CLI"] B --> E["Web Control UI"] B --> F["macOS app"] B --> G["iOS and Android nodes"] ``` The Gateway is the single source of truth for sessions, routing, and channel connections. ## Key capabilities WhatsApp, Telegram, Discord, and iMessage with a single Gateway process. Add Mattermost and more with extension packages. Isolated sessions per agent, workspace, or sender. Send and receive images, audio, and documents. Browser dashboard for chat, config, sessions, and nodes. Pair iOS and Android nodes with Canvas support. ## Quick start ```bash npm install -g openclaw@latest ``` ```bash openclaw onboard --install-daemon ``` ```bash openclaw channels login openclaw gateway --port 18789 ``` Need the full install and dev setup? See [Quick start](/start/quickstart). ## Dashboard Open the browser Control UI after the Gateway starts. - Local default: http://127.0.0.1:18789/ - Remote access: [Web surfaces](/web) and [Tailscale](/gateway/tailscale)## Configuration (optional) Config lives at `~/.openclaw/openclaw.json`. - If you \*\*do nothing\*\*, OpenClaw uses the bundled Pi binary in RPC mode with per-sender sessions. - If you want to lock it down, start with `channels.whatsapp.allowFrom` and (for groups) mention rules. Example: ```json5 { channels: { whatsapp: { allowFrom: ["+15555550123"], groups: { "\*": { requireMention: true } }, }, }, messages: { groupChat: { mentionPatterns: ["@openclaw"] } }, } ``` ## Start here All docs and guides, organized by use case. Core Gateway settings, tokens, and provider config. SSH and tailnet access patterns. Channel-specific setup for WhatsApp, Telegram, Discord, and more. iOS and Android nodes with pairing and Canvas. Common fixes and troubleshooting entry point. ## Learn more Complete channel, routing, and media capabilities. Workspace isolation and per-agent sessions. Tokens, allowlists, and safety controls. Gateway diagnostics and common errors. Project origins, contributors, and license. | https://github.com/openclaw/openclaw/blob/main//docs/index.md | main | opebclaw | [
-0.05941256880760193,
-0.04811391606926918,
-0.024325625970959663,
-0.008344681933522224,
-0.030055101960897446,
-0.076936274766922,
-0.0029042225796729326,
0.006717078387737274,
0.04520942643284798,
0.003449110547080636,
0.04131562262773514,
-0.04695829004049301,
0.006075616925954819,
0.005821725353598595,
0.14155273139476776,
0.08959665894508362,
0.054411113262176514,
-0.14407116174697876,
0.03252033516764641,
-0.0047927191480994225,
0.04455382376909256,
-0.0014216414419934154,
-0.007220142055302858,
-0.03227541595697403,
-0.04264366626739502,
-0.02139395847916603,
0.008741958066821098,
-0.015337193384766579,
-0.019367024302482605,
0.01863570138812065,
0.061940524727106094,
0.0552690289914608,
-0.01687878556549549,
0.06789205223321915,
-0.023684510961174965,
0.015144377946853638,
0.05102293938398361,
0.02412954345345497,
-0.0493108406662941,
0.004575331695377827,
-0.031366974115371704,
-0.034825436770915985,
-0.0037925096694380045,
-0.011697941459715366,
0.026744455099105835,
-0.05884011834859848,
-0.047024473547935486,
0.01799999549984932,
0.010377085767686367,
0.029539914801716805,
-0.038369908928871155,
-0.06893377751111984,
0.02101520635187626,
0.08806726336479187,
-0.05980920419096947,
0.10412154346704483,
-0.04388657212257385,
0.03205186873674393,
0.05531913414597511,
-0.018536364659667015,
0.0312209352850914,
-0.036455366760492325,
0.030969303101301193,
0.044651467353105545,
-0.12088865786790848,
0.005734716076403856,
-0.04937601089477539,
-0.016914844512939453,
-0.005345067474991083,
-0.08045898377895355,
-0.0026232583913952112,
-0.0383903905749321,
-0.005657327361404896,
-0.022077741101384163,
-0.053266189992427826,
-0.039325639605522156,
0.044929809868335724,
0.02291208878159523,
-0.07121774554252625,
-0.01879769377410412,
-0.01863654889166355,
0.022808875888586044,
-0.07549508661031723,
0.09378726035356522,
-0.015043113380670547,
0.06374933570623398,
0.02553776651620865,
0.03164653852581978,
-0.00695407297462225,
0.057320695370435715,
-0.04472413659095764,
-0.05455101653933525,
-0.04981111362576485,
-0.017004121094942093,
0.05300460383296013,
0.0152369299903512,
-0.03287127614021301,
-0.013284261338412762,
-0.06047865003347397,
0.06672358512878418,
-0.008936040103435516,
-0.008951393887400627,
-0.018421364948153496,
-0.07254668325185776,
-0.014077743515372276,
0.004695278592407703,
0.02434457279741764,
0.04473009705543518,
0.13259845972061157,
0.027587350457906723,
-0.0894647017121315,
-0.0811607837677002,
0.07579585909843445,
0.017417747527360916,
0.01873784139752388,
0.07349357008934021,
-0.009196103550493717,
0.013980348594486713,
0.08494510501623154,
0.05200935900211334,
0.09375758469104767,
-0.012494821101427078,
-0.004006584640592337,
-0.0010522048687562346,
0.09372787177562714,
0.0775560736656189,
0.06271490454673767,
4.963188411089186e-33,
0.043931521475315094,
0.00651758024469018,
-0.02283119224011898,
0.041925542056560516,
0.09894240647554398,
0.05009090527892113,
0.014342492446303368,
-0.042453039437532425,
-0.05649234727025032,
-0.02245735190808773,
-0.05153727903962135,
0.06301175057888031,
-0.04593179002404213,
0.005662879906594753,
-0.01078679971396923,
-0.07141952216625214,
-0.03041338175535202,
0.01984505169093609,
0.09555377811193466,
-0.04231959953904152,
-0.001513043069280684,
-0.08887884020805359,
-0.022812360897660255,
0.013792234472930431,
0.032899633049964905,
0.1171683669090271,
0.020808706060051918,
-0.02634965255856514,
0.033883847296237946,
0.017262352630496025,
0.006304668728262186,
0.005799138452857733,
-0.06803277134895325,
0.027323883026838303,
-0.042445264756679535,
-0.01617114245891571,
-0.09912874549627304,
-0.060523007065057755,
0.001768905553035438,
0.04369271546602249,
-0.0814964696764946,
-0.03228513523936272,
-0.0439591258764267,
-0.08459529280662537,
-0.03509686887264252,
-0.07917981594800949,
-0.06060395762324333,
0.036530446261167526,
0.01473673339933157,
0.021740315482020378,
-0.049679599702358246,
-0.02413884364068508,
0.029336977750062943,
0.05891727656126022,
-0.015525558963418007,
-0.08766817301511765,
-0.025002630427479744,
-0.003441501408815384,
-0.03252854198217392,
-0.016967391595244408,
-0.015340985730290413,
0.026896731927990913,
-0.04801705479621887,
0.01602509431540966,
0.0207465011626482,
-0.0007077081245370209,
0.00530459638684988,
0.033373214304447174,
-0.01737990975379944,
-0.021967383101582527,
-0.05126011371612549,
0.05727599933743477,
0.07813335955142975,
0.04176028072834015,
-0.093717060983181,
0.018246779218316078,
-0.052964240312576294,
0.04854525253176689,
0.007970623672008514,
0.018002739176154137,
-0.03492593392729759,
0.005624320823699236,
0.012565831653773785,
0.06051519513130188,
0.032392412424087524,
-0.01090965699404478,
0.03676162287592888,
-0.07485432922840118,
-0.03261180222034454,
0.18172669410705566,
-0.10843575745820999,
0.05332930386066437,
0.010418843477964401,
0.050357479602098465,
-0.011445440351963043,
-4.42412690561124e-33,
-0.059829920530319214,
0.002613756572827697,
-0.026022519916296005,
-0.003660853486508131,
0.08446721732616425,
-0.012023692950606346,
0.08633211255073547,
-0.02370716631412506,
0.0055702761746943,
-0.005002635531127453,
-0.07666416466236115,
0.06441732496023178,
0.0671396479010582,
-0.08609545230865479,
0.0725104808807373,
0.025302289053797722,
0.00812473800033331,
-0.05718953534960747,
-0.023095957934856415,
-0.031493958085775375,
-0.016423527151346207,
0.03178532049059868,
-0.04512553662061691,
-0.029451413080096245,
0.06778346747159958,
-0.002631229115650058,
0.07025723904371262,
0.04185764119029045,
-0.0294815581291914,
-0.050301771610975266,
-0.0015126975486055017,
-0.001280308119021356,
-0.03848228231072426,
0.004194650799036026,
0.054439056664705276,
0.05411020293831825,
0.0088583929464221,
0.0647527351975441,
0.0015690784202888608,
-0.058970291167497635,
0.10322540253400803,
-0.10984103381633759,
-0.1430228352546692,
-0.05964106693863869,
-0.002399677177891135,
0.09249135851860046,
-0.11656883358955383,
0.010508918203413486,
-0.15100502967834473,
-0.019312070682644844,
0.014047617092728615,
0.029758138582110405,
0.00867871567606926,
-0.0037037204019725323,
-0.012804552912712097,
0.04148309305310249,
0.09141311794519424,
0.01024781446903944,
-0.028436880558729172,
-0.06728316843509674,
0.01293735671788454,
-0.09790526330471039,
0.06386208534240723,
0.06710129231214523,
0.0021876120008528233,
-0.05464741587638855,
0.01641090027987957,
0.06478913873434067,
-0.050457313656806946,
0.0011374306632205844,
0.008440042845904827,
-0.062469933182001114,
0.032794926315546036,
-0.005340708419680595,
0.05415812134742737,
0.0012682974338531494,
-0.013956944458186626,
-0.1163778007030487,
-0.028433430939912796,
-0.02690865285694599,
-0.011289656162261963,
0.07806380093097687,
0.07420345395803452,
-0.009422050788998604,
0.045316994190216064,
0.03134628385305405,
0.015273677185177803,
0.07834401726722717,
0.022312531247735023,
0.03222097456455231,
-0.1116398274898529,
0.03912916034460068,
-0.007141358219087124,
0.0008266710792668164,
-0.012392413802444935,
-5.089074761599477e-8,
-0.06893551349639893,
-0.07729997485876083,
-0.020753642544150352,
0.012889052741229534,
-0.05789531394839287,
-0.02030099369585514,
0.02190113440155983,
0.03346780315041542,
0.022372733801603317,
-0.0003088254015892744,
0.03476143628358841,
-0.0117903808131814,
-0.00037122450885362923,
0.05151934549212456,
0.019366512075066566,
0.03051246516406536,
0.026537248864769936,
-0.04414831101894379,
0.027229823172092438,
-0.08798736333847046,
0.04682892560958862,
-0.020799977704882622,
-0.01057311799377203,
0.10003206133842468,
-0.05366525799036026,
-0.02919864095747471,
0.001650045858696103,
0.050795119255781174,
-0.07807999849319458,
0.010175400413572788,
-0.05678679794073105,
-0.044049669057130814,
0.02739274501800537,
0.045804377645254135,
-0.014139817096292973,
0.024256013333797455,
-0.10465721040964127,
-0.03899393230676651,
-0.008131459355354309,
0.04232072830200195,
0.021824507042765617,
-0.00956512987613678,
-0.0398356057703495,
-0.08666643500328064,
0.014581704512238503,
0.030706414952874184,
-0.056206151843070984,
-0.051615286618471146,
0.029573479667305946,
0.06847809255123138,
-0.007308038417249918,
-0.000840284745208919,
0.04487171024084091,
0.040017787367105484,
0.04883982241153717,
0.028590673580765724,
0.07985206693410873,
-0.09340137243270874,
0.03904808312654495,
0.058286335319280624,
-0.011690854094922543,
0.13287849724292755,
0.025987658649683,
-0.03492850065231323
] | 0.130079 |
# Logging OpenClaw logs in two places: - \*\*File logs\*\* (JSON lines) written by the Gateway. - \*\*Console output\*\* shown in terminals and the Control UI. This page explains where logs live, how to read them, and how to configure log levels and formats. ## Where logs live By default, the Gateway writes a rolling log file under: `/tmp/openclaw/openclaw-YYYY-MM-DD.log` The date uses the gateway host's local timezone. You can override this in `~/.openclaw/openclaw.json`: ```json { "logging": { "file": "/path/to/openclaw.log" } } ``` ## How to read logs ### CLI: live tail (recommended) Use the CLI to tail the gateway log file via RPC: ```bash openclaw logs --follow ``` Output modes: - \*\*TTY sessions\*\*: pretty, colorized, structured log lines. - \*\*Non-TTY sessions\*\*: plain text. - `--json`: line-delimited JSON (one log event per line). - `--plain`: force plain text in TTY sessions. - `--no-color`: disable ANSI colors. In JSON mode, the CLI emits `type`-tagged objects: - `meta`: stream metadata (file, cursor, size) - `log`: parsed log entry - `notice`: truncation / rotation hints - `raw`: unparsed log line If the Gateway is unreachable, the CLI prints a short hint to run: ```bash openclaw doctor ``` ### Control UI (web) The Control UI’s \*\*Logs\*\* tab tails the same file using `logs.tail`. See [/web/control-ui](/web/control-ui) for how to open it. ### Channel-only logs To filter channel activity (WhatsApp/Telegram/etc), use: ```bash openclaw channels logs --channel whatsapp ``` ## Log formats ### File logs (JSONL) Each line in the log file is a JSON object. The CLI and Control UI parse these entries to render structured output (time, level, subsystem, message). ### Console output Console logs are \*\*TTY-aware\*\* and formatted for readability: - Subsystem prefixes (e.g. `gateway/channels/whatsapp`) - Level coloring (info/warn/error) - Optional compact or JSON mode Console formatting is controlled by `logging.consoleStyle`. ## Configuring logging All logging configuration lives under `logging` in `~/.openclaw/openclaw.json`. ```json { "logging": { "level": "info", "file": "/tmp/openclaw/openclaw-YYYY-MM-DD.log", "consoleLevel": "info", "consoleStyle": "pretty", "redactSensitive": "tools", "redactPatterns": ["sk-.\*"] } } ``` ### Log levels - `logging.level`: \*\*file logs\*\* (JSONL) level. - `logging.consoleLevel`: \*\*console\*\* verbosity level. `--verbose` only affects console output; it does not change file log levels. ### Console styles `logging.consoleStyle`: - `pretty`: human-friendly, colored, with timestamps. - `compact`: tighter output (best for long sessions). - `json`: JSON per line (for log processors). ### Redaction Tool summaries can redact sensitive tokens before they hit the console: - `logging.redactSensitive`: `off` | `tools` (default: `tools`) - `logging.redactPatterns`: list of regex strings to override the default set Redaction affects \*\*console output only\*\* and does not alter file logs. ## Diagnostics + OpenTelemetry Diagnostics are structured, machine-readable events for model runs \*\*and\*\* message-flow telemetry (webhooks, queueing, session state). They do \*\*not\*\* replace logs; they exist to feed metrics, traces, and other exporters. Diagnostics events are emitted in-process, but exporters only attach when diagnostics + the exporter plugin are enabled. ### OpenTelemetry vs OTLP - \*\*OpenTelemetry (OTel)\*\*: the data model + SDKs for traces, metrics, and logs. - \*\*OTLP\*\*: the wire protocol used to export OTel data to a collector/backend. - OpenClaw exports via \*\*OTLP/HTTP (protobuf)\*\* today. ### Signals exported - \*\*Metrics\*\*: counters + histograms (token usage, message flow, queueing). - \*\*Traces\*\*: spans for model usage + webhook/message processing. - \*\*Logs\*\*: exported over OTLP when `diagnostics.otel.logs` is enabled. Log volume can be high; keep `logging.level` and exporter filters in mind. ### Diagnostic event catalog Model usage: - `model.usage`: tokens, cost, duration, context, provider/model/channel, session ids. Message flow: - `webhook.received`: webhook ingress per channel. - `webhook.processed`: webhook handled + duration. - `webhook.error`: webhook handler errors. - `message.queued`: message enqueued for processing. - `message.processed`: outcome + duration + optional error. Queue + | https://github.com/openclaw/openclaw/blob/main//docs/logging.md | main | opebclaw | [
0.009578210301697254,
0.011268188245594501,
-0.0684836357831955,
0.05736711621284485,
0.044405270367860794,
-0.10004136711359024,
-0.08722269535064697,
-0.017847592011094093,
0.030041944235563278,
-0.00951258186250925,
-0.009434628300368786,
0.010705043561756611,
-0.04981420934200287,
0.02106514945626259,
0.03364504873752594,
0.06714525818824768,
-0.043091677129268646,
-0.04513997584581375,
-0.015554141253232956,
-0.04093274474143982,
0.04959660395979881,
0.031791869550943375,
-0.02899489551782608,
-0.010765528306365013,
-0.09463782608509064,
-0.027427518740296364,
-0.008085839450359344,
-0.01897623762488365,
-0.046943631023168564,
0.04269270598888397,
-0.004790705628693104,
0.02263299562036991,
-0.07877159118652344,
0.0505780354142189,
0.028137123212218285,
-0.005473115015774965,
0.0648355782032013,
-0.036943260580301285,
0.04039628431200981,
0.005549092777073383,
0.1268790364265442,
0.041469234973192215,
0.061845749616622925,
-0.06790081411600113,
-0.0051817032508552074,
-0.09375853091478348,
-0.04840525612235069,
-0.08029956370592117,
-0.009319677948951721,
0.048140548169612885,
-0.03203098848462105,
-0.005048160441219807,
0.04396524652838707,
-0.08895255625247955,
0.02866121008992195,
0.05401407554745674,
0.02654522843658924,
-0.05044500529766083,
0.05085647478699684,
-0.08483270555734634,
-0.007757441606372595,
-0.02307126857340336,
-0.05130204185843468,
0.02715563401579857,
-0.11284489929676056,
-0.06192776560783386,
-0.03098737634718418,
0.007496194448322058,
0.04521062225103378,
0.004734213929623365,
-0.04272487759590149,
0.03495410084724426,
-0.09705358743667603,
-0.07132639735937119,
0.010618256404995918,
-0.0009582197526469827,
0.08491481095552444,
0.020359089598059654,
-0.08240196108818054,
-0.04309779778122902,
-0.009716491214931011,
0.0039669484831392765,
-0.06903666257858276,
0.07953350245952606,
0.0020572461653500795,
0.07697537541389465,
0.016265803948044777,
0.0948246419429779,
0.04025403782725334,
0.002947213826701045,
-0.006376858800649643,
-0.06108614057302475,
-0.04585588723421097,
-0.01254422590136528,
-0.01935209147632122,
0.015821237117052078,
0.01741429604589939,
0.024838531389832497,
0.024028217419981956,
0.04837410897016525,
-0.010473385453224182,
0.03563172370195389,
0.0386897549033165,
0.07650773972272873,
-0.015009956434369087,
0.047991421073675156,
-0.009739871136844158,
0.14942961931228638,
-0.002093264367431402,
0.05486622825264931,
0.05495584383606911,
-0.006518447306007147,
0.06046248599886894,
-0.014426653273403645,
0.008121704682707787,
0.03321763500571251,
-0.060496315360069275,
-0.034249838441610336,
-0.001866346225142479,
0.08443009853363037,
0.09859857708215714,
0.028467727825045586,
-0.021741781383752823,
0.003114184131845832,
0.14297930896282196,
0.06375963985919952,
0.1601923555135727,
5.140481244526004e-33,
0.061301037669181824,
-0.043525759130716324,
-0.03714428469538689,
-0.04172564297914505,
0.1319001317024231,
0.05146539956331253,
0.028138408437371254,
0.012678639963269234,
-0.0012063378235325217,
0.07499805092811584,
-0.04078405350446701,
0.03516912832856178,
-0.03929080814123154,
-0.10579678416252136,
-0.03579585999250412,
0.026835545897483826,
-0.0630461648106575,
-0.004715558607131243,
0.0876276046037674,
0.03304285556077957,
0.006994178052991629,
-0.1225237101316452,
-0.000013756551197730005,
-0.024508018046617508,
0.013505656272172928,
-0.025281600654125214,
0.003682520240545273,
-0.016535194590687752,
-0.05484650284051895,
0.026184678077697754,
0.1066691055893898,
0.021382467821240425,
-0.051768966019153595,
-0.023272709921002388,
-0.015099670737981796,
-0.010251211933791637,
-0.07536781579256058,
-0.023858027532696724,
-0.08021491020917892,
0.012801178731024265,
-0.008665748871862888,
-0.01649215631186962,
-0.11270833015441895,
-0.06579691171646118,
-0.033501558005809784,
-0.1011243388056755,
-0.07744158804416656,
0.06907081604003906,
0.03580877184867859,
0.02693711407482624,
-0.03257513791322708,
0.04819035902619362,
0.04657714441418648,
-0.0745365098118782,
0.02290382981300354,
0.009698406793177128,
0.052796315401792526,
-0.0918840616941452,
0.04108928143978119,
-0.006668412126600742,
0.03841160982847214,
0.006770333740860224,
-0.003000284545123577,
-0.025201139971613884,
-0.002107184613123536,
-0.00052324851276353,
0.07015889137983322,
0.06809931993484497,
-0.03457741439342499,
-0.02408175729215145,
0.031192831695079803,
-0.05419791117310524,
0.023385079577565193,
0.04309747368097305,
0.003990362863987684,
0.011319472454488277,
-0.002468612976372242,
0.01399244088679552,
0.06336497515439987,
0.04024861752986908,
0.08481505513191223,
-0.027132267132401466,
0.016643980517983437,
-0.004466608632355928,
0.0361025370657444,
0.04000335931777954,
0.014988917857408524,
-0.04558631777763367,
0.02367495931684971,
0.07409291714429855,
-0.07034707069396973,
-0.02209821343421936,
-0.015442490577697754,
-0.00641279574483633,
-0.011130905710160732,
-5.718330757503224e-33,
-0.03771580755710602,
0.03118458390235901,
0.0061285956762731075,
-0.013144713826477528,
-0.04342162236571312,
-0.0412064753472805,
-0.009553831070661545,
0.00860990583896637,
0.0283434446901083,
0.03294055908918381,
-0.013663234189152718,
0.05308878794312477,
-0.016640502959489822,
-0.05472120642662048,
0.09573034942150116,
-0.013884037733078003,
-0.024996627122163773,
-0.04389878734946251,
0.0027777166105806828,
0.020449666306376457,
0.011238408274948597,
-0.0421852245926857,
-0.05024478957056999,
-0.03528875485062599,
0.05465521290898323,
-0.008017310872673988,
0.07491391152143478,
0.0568203330039978,
-0.08335011452436447,
-0.08866944909095764,
-0.02527775429189205,
0.00803156103938818,
-0.011531498283147812,
0.03517080843448639,
0.034843746572732925,
0.02246006950736046,
0.006407727021723986,
0.007731127552688122,
0.07046777755022049,
0.029813716188073158,
0.030629968270659447,
0.04443221166729927,
-0.08859654515981674,
-0.01420348696410656,
-0.027428463101387024,
0.07367369532585144,
-0.05230499431490898,
0.010779512114822865,
-0.012971504591405392,
-0.014617257751524448,
-0.02195422537624836,
0.03991832211613655,
0.0563868023455143,
0.07375980913639069,
0.042162347584962845,
0.07825195789337158,
0.06222609058022499,
-0.03382648155093193,
-0.00592516316100955,
-0.126924529671669,
-0.059643954038619995,
-0.07892660051584244,
-0.0650688037276268,
0.07740885764360428,
-0.04698598012328148,
-0.09379592537879944,
0.03425341844558716,
-0.027472784742712975,
-0.0588306188583374,
-0.08452875912189484,
-0.05693145841360092,
-0.049590710550546646,
-0.027943164110183716,
0.005400637164711952,
-0.006770047824829817,
-0.03502983972430229,
0.010481415316462517,
-0.0684557631611824,
-0.03453747183084488,
0.04734933003783226,
0.013375657610595226,
-0.011840163730084896,
-0.01702027954161167,
0.009280722588300705,
0.057534925639629364,
-0.01789962686598301,
-0.04106958955526352,
0.07372810691595078,
0.09306823462247849,
0.045393429696559906,
-0.07974925637245178,
0.017667483538389206,
-0.09464974701404572,
-0.0626198798418045,
0.0025006455834954977,
-4.990646473856941e-8,
-0.08885915577411652,
-0.07282275706529617,
-0.06057123467326164,
0.06812813133001328,
0.01941685564815998,
0.005125407129526138,
0.04862003028392792,
0.02647523023188114,
-0.045048389583826065,
0.056696999818086624,
0.12154413759708405,
0.029451558366417885,
-0.07588768005371094,
-0.016944805160164833,
-0.0513693131506443,
0.06357691437005997,
-0.011567582376301289,
-0.05729947239160538,
0.021269021555781364,
-0.05599523335695267,
0.019356071949005127,
0.0019671465270221233,
0.10506346076726913,
0.0011740539921447635,
-0.0913379043340683,
-0.02514374628663063,
-0.028535902500152588,
0.03181167319417,
-0.08908490091562271,
-0.03996605426073074,
-0.050181057304143906,
0.004111028276383877,
0.05138411745429039,
-0.024006105959415436,
-0.07075341790914536,
0.008453086949884892,
0.040355559438467026,
0.03140607476234436,
-0.004881745669990778,
-0.0013614752097055316,
0.008576163090765476,
-0.004533565137535334,
-0.05907066538929939,
-0.03360182046890259,
-0.045178964734077454,
0.01151831541210413,
-0.09283240884542465,
0.043383318930864334,
0.009403758682310581,
-0.015185496769845486,
0.00418434850871563,
-0.02110803686082363,
0.06863443553447723,
0.03692420572042465,
0.006621209904551506,
0.04204079136252403,
0.06307823956012726,
-0.12593097984790802,
0.029818149283528328,
0.03799442946910858,
0.006048038601875305,
0.07783974707126617,
0.02740621194243431,
-0.06571480631828308
] | -0.014396 |
### Diagnostic event catalog Model usage: - `model.usage`: tokens, cost, duration, context, provider/model/channel, session ids. Message flow: - `webhook.received`: webhook ingress per channel. - `webhook.processed`: webhook handled + duration. - `webhook.error`: webhook handler errors. - `message.queued`: message enqueued for processing. - `message.processed`: outcome + duration + optional error. Queue + session: - `queue.lane.enqueue`: command queue lane enqueue + depth. - `queue.lane.dequeue`: command queue lane dequeue + wait time. - `session.state`: session state transition + reason. - `session.stuck`: session stuck warning + age. - `run.attempt`: run retry/attempt metadata. - `diagnostic.heartbeat`: aggregate counters (webhooks/queue/session). ### Enable diagnostics (no exporter) Use this if you want diagnostics events available to plugins or custom sinks: ```json { "diagnostics": { "enabled": true } } ``` ### Diagnostics flags (targeted logs) Use flags to turn on extra, targeted debug logs without raising `logging.level`. Flags are case-insensitive and support wildcards (e.g. `telegram.\*` or `\*`). ```json { "diagnostics": { "flags": ["telegram.http"] } } ``` Env override (one-off): ``` OPENCLAW\_DIAGNOSTICS=telegram.http,telegram.payload ``` Notes: - Flag logs go to the standard log file (same as `logging.file`). - Output is still redacted according to `logging.redactSensitive`. - Full guide: [/diagnostics/flags](/diagnostics/flags). ### Export to OpenTelemetry Diagnostics can be exported via the `diagnostics-otel` plugin (OTLP/HTTP). This works with any OpenTelemetry collector/backend that accepts OTLP/HTTP. ```json { "plugins": { "allow": ["diagnostics-otel"], "entries": { "diagnostics-otel": { "enabled": true } } }, "diagnostics": { "enabled": true, "otel": { "enabled": true, "endpoint": "http://otel-collector:4318", "protocol": "http/protobuf", "serviceName": "openclaw-gateway", "traces": true, "metrics": true, "logs": true, "sampleRate": 0.2, "flushIntervalMs": 60000 } } } ``` Notes: - You can also enable the plugin with `openclaw plugins enable diagnostics-otel`. - `protocol` currently supports `http/protobuf` only. `grpc` is ignored. - Metrics include token usage, cost, context size, run duration, and message-flow counters/histograms (webhooks, queueing, session state, queue depth/wait). - Traces/metrics can be toggled with `traces` / `metrics` (default: on). Traces include model usage spans plus webhook/message processing spans when enabled. - Set `headers` when your collector requires auth. - Environment variables supported: `OTEL\_EXPORTER\_OTLP\_ENDPOINT`, `OTEL\_SERVICE\_NAME`, `OTEL\_EXPORTER\_OTLP\_PROTOCOL`. ### Exported metrics (names + types) Model usage: - `openclaw.tokens` (counter, attrs: `openclaw.token`, `openclaw.channel`, `openclaw.provider`, `openclaw.model`) - `openclaw.cost.usd` (counter, attrs: `openclaw.channel`, `openclaw.provider`, `openclaw.model`) - `openclaw.run.duration\_ms` (histogram, attrs: `openclaw.channel`, `openclaw.provider`, `openclaw.model`) - `openclaw.context.tokens` (histogram, attrs: `openclaw.context`, `openclaw.channel`, `openclaw.provider`, `openclaw.model`) Message flow: - `openclaw.webhook.received` (counter, attrs: `openclaw.channel`, `openclaw.webhook`) - `openclaw.webhook.error` (counter, attrs: `openclaw.channel`, `openclaw.webhook`) - `openclaw.webhook.duration\_ms` (histogram, attrs: `openclaw.channel`, `openclaw.webhook`) - `openclaw.message.queued` (counter, attrs: `openclaw.channel`, `openclaw.source`) - `openclaw.message.processed` (counter, attrs: `openclaw.channel`, `openclaw.outcome`) - `openclaw.message.duration\_ms` (histogram, attrs: `openclaw.channel`, `openclaw.outcome`) Queues + sessions: - `openclaw.queue.lane.enqueue` (counter, attrs: `openclaw.lane`) - `openclaw.queue.lane.dequeue` (counter, attrs: `openclaw.lane`) - `openclaw.queue.depth` (histogram, attrs: `openclaw.lane` or `openclaw.channel=heartbeat`) - `openclaw.queue.wait\_ms` (histogram, attrs: `openclaw.lane`) - `openclaw.session.state` (counter, attrs: `openclaw.state`, `openclaw.reason`) - `openclaw.session.stuck` (counter, attrs: `openclaw.state`) - `openclaw.session.stuck\_age\_ms` (histogram, attrs: `openclaw.state`) - `openclaw.run.attempt` (counter, attrs: `openclaw.attempt`) ### Exported spans (names + key attributes) - `openclaw.model.usage` - `openclaw.channel`, `openclaw.provider`, `openclaw.model` - `openclaw.sessionKey`, `openclaw.sessionId` - `openclaw.tokens.\*` (input/output/cache\_read/cache\_write/total) - `openclaw.webhook.processed` - `openclaw.channel`, `openclaw.webhook`, `openclaw.chatId` - `openclaw.webhook.error` - `openclaw.channel`, `openclaw.webhook`, `openclaw.chatId`, `openclaw.error` - `openclaw.message.processed` - `openclaw.channel`, `openclaw.outcome`, `openclaw.chatId`, `openclaw.messageId`, `openclaw.sessionKey`, `openclaw.sessionId`, `openclaw.reason` - `openclaw.session.stuck` - `openclaw.state`, `openclaw.ageMs`, `openclaw.queueDepth`, `openclaw.sessionKey`, `openclaw.sessionId` ### Sampling + flushing - Trace sampling: `diagnostics.otel.sampleRate` (0.0–1.0, root spans only). - Metric export interval: `diagnostics.otel.flushIntervalMs` (min 1000ms). ### Protocol notes - OTLP/HTTP endpoints can be set via `diagnostics.otel.endpoint` or `OTEL\_EXPORTER\_OTLP\_ENDPOINT`. - If the endpoint already contains `/v1/traces` or `/v1/metrics`, it is used as-is. - If the endpoint already contains `/v1/logs`, it is used as-is for logs. - `diagnostics.otel.logs` enables OTLP log export for the main logger output. ### Log export behavior - OTLP logs use the same structured records written to `logging.file`. - Respect `logging.level` (file log level). Console redaction does \*\*not\*\* apply to OTLP logs. - | https://github.com/openclaw/openclaw/blob/main//docs/logging.md | main | opebclaw | [
-0.043558765202760696,
0.037168990820646286,
-0.08048626780509949,
0.0235307514667511,
0.024419056251645088,
-0.09735482931137085,
0.034917041659355164,
0.008916185237467289,
0.037479910999536514,
0.03117481991648674,
0.0467134565114975,
-0.16573721170425415,
-0.020019708201289177,
-0.05004379525780678,
0.01460022758692503,
-0.0308927483856678,
0.04507610946893692,
-0.07507428526878357,
-0.05302107334136963,
-0.06008533760905266,
-0.000713357119821012,
0.030587125569581985,
-0.047070298343896866,
0.027281491085886955,
-0.11215720325708389,
-0.04159597307443619,
-0.028635753318667412,
-0.01598302647471428,
-0.029680320993065834,
-0.05691659450531006,
0.010526949539780617,
-0.0505097433924675,
-0.06907764077186584,
0.015727700665593147,
0.08573507517576218,
0.091239333152771,
0.07589665800333023,
-0.021334221586585045,
-0.028535984456539154,
-0.02785174734890461,
0.06604865938425064,
-0.06061483174562454,
-0.03017061948776245,
-0.0458180196583271,
0.014319895766675472,
-0.08022026717662811,
-0.12269727885723114,
-0.055331751704216,
-0.05725410208106041,
0.030547121539711952,
-0.041073355823755264,
-0.03288576379418373,
0.02690092660486698,
0.033636849373579025,
0.06972285360097885,
0.030408792197704315,
-0.04236181825399399,
-0.010376861318945885,
-0.00372973270714283,
-0.042252495884895325,
-0.03452325612306595,
-0.04100627824664116,
0.002405966864898801,
0.02201809547841549,
-0.03582736477255821,
0.0007415671134367585,
0.032902125269174576,
0.024264905601739883,
0.09307294338941574,
0.02455412782728672,
-0.06962033361196518,
-0.0015627475222572684,
-0.0851685181260109,
-0.03197433054447174,
-0.05276946350932121,
0.012586540542542934,
0.05117563530802727,
0.003081072121858597,
-0.03514869511127472,
-0.0911397859454155,
-0.035611800849437714,
-0.04333992302417755,
0.055802520364522934,
0.036382704973220825,
0.009971150197088718,
0.06898710876703262,
-0.04362168908119202,
0.0025652428157627583,
-0.007341286633163691,
0.013400979340076447,
0.027164334431290627,
-0.039173297584056854,
-0.04950682073831558,
0.02552807703614235,
0.0201389379799366,
0.052930399775505066,
0.008394644595682621,
0.08128931373357773,
0.01867867447435856,
0.05919511243700981,
0.001924137701280415,
-0.011510062962770462,
0.014148787595331669,
0.024853046983480453,
0.0028457290027290583,
-0.04474883899092674,
-0.020497078076004982,
0.027926722541451454,
0.03014456480741501,
-0.024101056158542633,
-0.04454600065946579,
0.015239709056913853,
0.06636475771665573,
-0.023551534861326218,
0.08357016742229462,
0.10475417226552963,
-0.027187684550881386,
-0.0210700873285532,
-0.0010205990402027965,
0.09311947226524353,
0.09625659137964249,
0.018230104818940163,
-0.03272184729576111,
-0.06049942970275879,
0.04822959005832672,
0.08565987646579742,
0.11165483295917511,
5.347333720124171e-33,
0.0786205604672432,
-0.04636751115322113,
-0.03827784210443497,
-0.033345192670822144,
0.07514558732509613,
0.0356585755944252,
0.005869690794497728,
0.01310528814792633,
-0.0020706772338598967,
0.011005161330103874,
-0.018909551203250885,
0.02525915578007698,
-0.0637304037809372,
-0.08408943563699722,
-0.022484177723526955,
-0.0245087668299675,
-0.025278359651565552,
0.04748702794313431,
-0.01567554846405983,
-0.0032490110024809837,
0.024375151842832565,
-0.11671571433544159,
-0.0644967183470726,
0.02538427710533142,
0.024273080751299858,
0.08773409575223923,
0.004655253142118454,
0.026568898931145668,
0.017380010336637497,
0.05647861957550049,
0.04803789407014847,
0.007152979727834463,
-0.006574265193194151,
0.013873836025595665,
-0.07007468491792679,
-0.027998292818665504,
-0.08188376575708389,
0.027313292026519775,
-0.027148889377713203,
-0.10958120971918106,
-0.06977490335702896,
-0.028384285047650337,
-0.16111332178115845,
-0.03632095456123352,
-0.08992746472358704,
-0.10374892503023148,
-0.04889066889882088,
-0.0677809789776802,
0.05487528815865517,
-0.015316521748900414,
-0.030249765142798424,
-0.006813802756369114,
0.09676220268011093,
-0.003445154521614313,
0.03377494215965271,
0.010764247737824917,
0.08816234767436981,
0.0043175420723855495,
-0.03462919965386391,
0.03999275714159012,
-0.0005850252346135676,
0.04822603613138199,
-0.008403977379202843,
-0.05363157019019127,
0.10060951858758926,
0.025445006787776947,
-0.059220027178525925,
-0.007353728637099266,
-0.014204448089003563,
-0.030825182795524597,
-0.043141789734363556,
-0.02724410966038704,
0.10794122517108917,
0.02639191783964634,
0.02984687127172947,
-0.0627463236451149,
0.013418059796094894,
-0.021726971492171288,
-0.11834525316953659,
0.017219511792063713,
-0.01411749143153429,
-0.04472847282886505,
-0.01980484649538994,
0.04450438916683197,
0.059333913028240204,
-0.00028212813776917756,
-0.009276888333261013,
0.006553393788635731,
-0.08118653297424316,
0.054489050060510635,
-0.039706289768218994,
0.04545806348323822,
0.01638174243271351,
-0.00782419741153717,
-0.03056688793003559,
-8.01977641302247e-33,
-0.00381086184643209,
0.05166906118392944,
-0.08534874022006989,
0.026749499142169952,
-0.002551724435761571,
0.024318043142557144,
0.04975192993879318,
0.03035704232752323,
0.013843906112015247,
-0.05337117984890938,
-0.006438158452510834,
0.01267542690038681,
-0.01801333948969841,
0.019535519182682037,
-0.02295180782675743,
0.046268220990896225,
-0.07329658418893814,
-0.12053220719099045,
0.06625253707170486,
0.02158685401082039,
0.016874996945261955,
0.0695924311876297,
-0.06655681878328323,
0.03483929857611656,
-0.04070458933711052,
-0.014700505882501602,
0.08306653052568436,
-0.003772778669372201,
-0.019416822120547295,
-0.04653045907616615,
0.06755611300468445,
0.000985247315838933,
-0.017461225390434265,
0.11100396513938904,
0.014139195904135704,
-0.12543721497058868,
0.04895946383476257,
0.049157168716192245,
-0.027848241850733757,
-0.017618399113416672,
0.1288655549287796,
0.018291745334863663,
-0.05011893808841705,
-0.023012785241007805,
-0.021455420181155205,
0.08771390467882156,
-0.017353354021906853,
-0.02914462424814701,
-0.03193224221467972,
-0.006869283504784107,
-0.038726408034563065,
0.008187802508473396,
0.00046311423648148775,
0.11996586620807648,
-0.07034178823232651,
0.0759773701429367,
0.004874266218394041,
-0.042261600494384766,
-0.09610079228878021,
-0.0034469065722078085,
-0.035986848175525665,
-0.012249831110239029,
-0.0011593459639698267,
0.0002389832807239145,
0.03338686376810074,
-0.01696394383907318,
-0.045832011848688126,
0.015718907117843628,
0.04720047861337662,
0.005680853500962257,
0.005486517213284969,
0.05731875076889992,
-0.052905306220054626,
0.01909753493964672,
0.05015917494893074,
0.019756123423576355,
-0.09402427077293396,
-0.10052186995744705,
-0.04385947436094284,
-0.012524204328656197,
-0.07712424546480179,
0.07856900990009308,
0.0683593899011612,
-0.015571534633636475,
-0.003628416219726205,
0.021863091737031937,
0.023840464651584625,
0.1262710839509964,
-0.006972693372517824,
-0.029368290677666664,
-0.00805353932082653,
-0.014145607128739357,
-0.08822102099657059,
0.05798358470201492,
-0.04948074743151665,
-5.5251550890034196e-8,
-0.07152935117483139,
-0.07183817774057388,
0.03990791365504265,
-0.012064428068697453,
0.06595480442047119,
-0.0071693481877446175,
0.043930940330028534,
0.03465944528579712,
-0.048521269112825394,
0.01938506029546261,
0.00728825107216835,
0.038323767483234406,
-0.02007351815700531,
-0.03480352461338043,
0.028653951361775398,
-0.08564462512731552,
-0.004779115319252014,
0.09391440451145172,
-0.019920136779546738,
-0.10940475761890411,
0.06366773694753647,
-0.039077527821063995,
0.00705497432500124,
-0.008111059665679932,
0.010559025220572948,
0.0002936694072559476,
0.047318436205387115,
0.04357992485165596,
-0.047153301537036896,
-0.10497074574232101,
-0.046073656529188156,
0.01913299225270748,
0.04762978479266167,
-0.004445391241461039,
-0.003743149572983384,
0.04401016607880592,
-0.06388814747333527,
-0.023466985672712326,
0.011238100938498974,
0.00023518326634075493,
0.042417194694280624,
0.047341156750917435,
-0.061298977583646774,
0.0014250858221203089,
0.045493025332689285,
0.044515207409858704,
-0.031763531267642975,
0.025484751909971237,
0.07269667834043503,
0.04409031942486763,
-0.05480610206723213,
-0.015793772414326668,
0.04031585901975632,
0.07467041164636612,
0.006523167248815298,
0.059501077979803085,
0.05815836414694786,
-0.06546097993850708,
0.013449743390083313,
0.037496328353881836,
0.10614827275276184,
-0.0075767263770103455,
-0.011595574207603931,
-0.031254544854164124
] | 0.208294 |
already contains `/v1/logs`, it is used as-is for logs. - `diagnostics.otel.logs` enables OTLP log export for the main logger output. ### Log export behavior - OTLP logs use the same structured records written to `logging.file`. - Respect `logging.level` (file log level). Console redaction does \*\*not\*\* apply to OTLP logs. - High-volume installs should prefer OTLP collector sampling/filtering. ## Troubleshooting tips - \*\*Gateway not reachable?\*\* Run `openclaw doctor` first. - \*\*Logs empty?\*\* Check that the Gateway is running and writing to the file path in `logging.file`. - \*\*Need more detail?\*\* Set `logging.level` to `debug` or `trace` and retry. | https://github.com/openclaw/openclaw/blob/main//docs/logging.md | main | opebclaw | [
0.023530326783657074,
-0.020328301936388016,
0.0007467031828127801,
0.005195863079279661,
0.0010800195159390569,
-0.1473759561777115,
-0.05174222216010094,
-0.006381726823747158,
0.0005632044631056488,
0.00592139782384038,
0.009038183838129044,
-0.03691175952553749,
-0.05348435044288635,
0.005114942789077759,
0.0006310725002549589,
0.07867347449064255,
0.0010321919107809663,
-0.06238662078976631,
0.0318850614130497,
0.009634996764361858,
0.06814094632863998,
0.05419905111193657,
0.009875362738966942,
0.020916247740387917,
-0.024259429425001144,
-0.07419312745332718,
-0.008851095102727413,
-0.017066750675439835,
-0.03859855234622955,
-0.11277882009744644,
-0.01880529709160328,
0.0016798819415271282,
-0.07239069044589996,
0.010819953866302967,
0.09031223505735397,
0.016161445528268814,
0.0805082842707634,
-0.01247995812445879,
-0.02763660065829754,
-0.007327727973461151,
0.09732791781425476,
0.04457160457968712,
0.016480719670653343,
-0.043749481439590454,
0.02563021145761013,
-0.0677591860294342,
-0.04621221125125885,
-0.09414668381214142,
0.022790193557739258,
0.04943053051829338,
-0.034221068024635315,
0.004722029436379671,
0.044342637062072754,
-0.03900592029094696,
0.050555188208818436,
0.09088215976953506,
0.03650765120983124,
-0.040607891976833344,
0.014011270366609097,
-0.06997839361429214,
0.004539197776466608,
0.021432586014270782,
-0.045864276587963104,
0.0013717247638851404,
-0.07858643680810928,
-0.02909320592880249,
-0.007777390535920858,
-0.019497834146022797,
0.009064110927283764,
-0.0026199622079730034,
-0.12272536754608154,
0.058536481112241745,
-0.0825778990983963,
0.0008277156157419086,
0.03568059578537941,
-0.03544550761580467,
-0.001907715224660933,
0.009418974630534649,
-0.009553924202919006,
-0.07205472141504288,
0.04347127676010132,
0.004427019972354174,
-0.04324652627110481,
0.05434783548116684,
0.01585419289767742,
0.021022498607635498,
0.009081890806555748,
0.02388191595673561,
0.010292164981365204,
-0.05069999396800995,
0.0026895548216998577,
-0.11584120243787766,
0.02882501669228077,
0.03947138413786888,
0.019415536895394325,
0.03392120823264122,
-0.007005324121564627,
0.021441910415887833,
-0.004612244665622711,
0.02988138049840927,
-0.01803538016974926,
0.034665949642658234,
0.02693980187177658,
0.03750386834144592,
-0.05075597018003464,
0.02963252179324627,
0.05948803201317787,
0.08683399856090546,
0.006586344446986914,
-0.012491168454289436,
0.07248777151107788,
-0.006134544964879751,
0.10061497241258621,
0.041138216853141785,
0.06756632030010223,
0.06661298125982285,
-0.07830312103033066,
0.007199883460998535,
-0.09328655898571014,
0.07380852848291397,
0.04045681655406952,
-0.052068520337343216,
-0.041552238166332245,
0.020642323419451714,
0.11947736889123917,
0.04241063445806503,
0.12936951220035553,
4.197032417291913e-33,
0.10983593016862869,
-0.017506074160337448,
-0.09494943171739578,
0.06414090842008591,
0.1522812843322754,
0.09233269095420837,
0.055779702961444855,
-0.02969801425933838,
-0.06089732423424721,
0.0527205690741539,
-0.11030825972557068,
0.03810190036892891,
-0.07928162813186646,
-0.012263867072761059,
-0.04110288247466087,
-0.002627558773383498,
-0.007745410315692425,
0.033306337893009186,
-0.030291348695755005,
0.0048524439334869385,
0.0007836162112653255,
-0.06761234998703003,
-0.057541798800230026,
-0.004836736246943474,
0.004880389664322138,
0.0993669331073761,
-0.01809200830757618,
-0.05969361960887909,
0.026675289496779442,
0.013020437210798264,
0.05366801470518112,
-0.027370937168598175,
-0.007576306350529194,
0.00746946083381772,
-0.04088904336094856,
0.013958636671304703,
-0.046664971858263016,
-0.005603815894573927,
-0.06411223858594894,
-0.006011412013322115,
-0.09250561147928238,
0.039110589772462845,
-0.052717726677656174,
-0.025388939306139946,
-0.017210546880960464,
-0.09784846007823944,
-0.13713869452476501,
0.0922495424747467,
0.0963902622461319,
0.05210091173648834,
-0.022933602333068848,
0.015195350162684917,
-0.02211400866508484,
-0.07575682550668716,
0.034817010164260864,
0.011399050243198872,
-0.015840750187635422,
-0.007106964010745287,
0.0630657970905304,
0.08591007441282272,
0.09070154279470444,
0.06176990643143654,
-0.01321415789425373,
0.005954567342996597,
0.013262569904327393,
0.015535109676420689,
0.07318682223558426,
0.015232091769576073,
-0.008130135014653206,
-0.052177805453538895,
-0.04642300307750702,
-0.05084948241710663,
0.03979966416954994,
0.05215965583920479,
0.03133748099207878,
-0.019503135234117508,
-0.03888507932424545,
-0.0414850078523159,
-0.007289217785000801,
-0.016878465190529823,
-0.06290969252586365,
-0.04152797535061836,
0.05854044109582901,
0.011319361627101898,
0.041666630655527115,
-0.034187979996204376,
-0.031556639820337296,
-0.04719074070453644,
0.02108689211308956,
0.10110188275575638,
-0.003222470171749592,
0.04877090826630592,
-0.056257884949445724,
0.014631086029112339,
-0.0323500782251358,
-4.5567788717076426e-33,
-0.02253151126205921,
0.04158027470111847,
-0.013015457428991795,
-0.08972018212080002,
-0.08399024605751038,
0.006707990076392889,
0.005367801524698734,
-0.007060479372739792,
0.010197844356298447,
0.02420191280543804,
-0.01122711319476366,
0.07222229987382889,
0.017509426921606064,
-0.09731965512037277,
0.08746252954006195,
-0.014137664809823036,
-0.026108117774128914,
-0.007540971040725708,
-0.04121120274066925,
0.017347043380141258,
0.014504064805805683,
0.0380241721868515,
-0.05754842981696129,
0.008079434745013714,
0.034053269773721695,
0.06264986097812653,
0.03304588794708252,
0.04613339155912399,
-0.04700085520744324,
-0.08089203387498856,
0.04276255518198013,
0.04775677248835564,
-0.027716804295778275,
-0.05091962590813637,
0.05850227549672127,
0.020232656970620155,
0.044335056096315384,
-0.008824302814900875,
-0.025445641949772835,
-0.004987472202628851,
0.044350724667310715,
0.011143987067043781,
-0.0543271079659462,
-0.10519315302371979,
-0.038672883063554764,
-0.01590758003294468,
-0.03382167965173721,
-0.05672948434948921,
0.03849618881940842,
-0.04008786380290985,
-0.006890646647661924,
-0.09418510645627975,
0.11782754212617874,
0.06038837507367134,
0.016533145681023598,
0.1005915030837059,
0.03495857119560242,
-0.04016772285103798,
0.0009784591384232044,
-0.07069504261016846,
-0.0026844688691198826,
0.003287294413894415,
-0.043073371052742004,
0.028110675513744354,
-0.07683610171079636,
0.004650379065424204,
0.0497051440179348,
0.010666395537555218,
-0.026440415531396866,
-0.012231927365064621,
-0.10105504095554352,
-0.034427642822265625,
0.05244196206331253,
-0.008573988452553749,
0.013215283863246441,
-0.0014494165079668164,
-0.11216329783201218,
-0.09211613237857819,
-0.01907515339553356,
-0.00951915793120861,
-0.024698780849575996,
-0.016045264899730682,
-0.02554154209792614,
0.004262702539563179,
0.027901772409677505,
-0.1066722422838211,
0.020243264734745026,
0.042682383209466934,
0.08774329721927643,
0.03091672994196415,
-0.03429345414042473,
-0.012344054877758026,
-0.05921396613121033,
-0.01211676374077797,
0.04377027973532677,
-5.0746308488669456e-8,
-0.07091670483350754,
-0.040149446576833725,
-0.06298360973596573,
0.022850435227155685,
0.07274821400642395,
0.008313107304275036,
0.04038587957620621,
0.08928483724594116,
-0.11446376144886017,
0.03345499187707901,
0.038624051958322525,
0.022628985345363617,
-0.056293733417987823,
-0.02386229671537876,
0.03460900858044624,
0.0335647389292717,
-0.007673851680010557,
0.003464000066742301,
-0.037457238882780075,
-0.08077000826597214,
0.02709667570888996,
-0.03022036701440811,
0.04580330848693848,
0.01206458080559969,
-0.0038422951474785805,
-0.05722525343298912,
0.0696013867855072,
0.031052779406309128,
-0.004130128305405378,
-0.05301208794116974,
-0.04903321713209152,
0.07037664204835892,
0.004490437917411327,
0.0332174152135849,
-0.10341735184192657,
0.07864303886890411,
0.07259123772382736,
0.10239644348621368,
-0.024399375542998314,
-0.025462184101343155,
-0.030413074418902397,
-0.004812443163245916,
0.0174174252897501,
-0.047853343188762665,
0.012671133503317833,
-0.041336432099342346,
-0.08073316514492035,
0.04760407283902168,
0.06778392940759659,
-0.0023566654417663813,
-0.032365117222070694,
-0.005301572382450104,
0.07509591430425644,
0.06871090084314346,
-0.0335344560444355,
-0.0027268556877970695,
-0.0084092877805233,
-0.09187740832567215,
-0.0004148534208070487,
0.027031803503632545,
0.0554855614900589,
0.03283795714378357,
0.07615115493535995,
-0.062207262963056564
] | 0.086157 |
# Token use & costs OpenClaw tracks \*\*tokens\*\*, not characters. Tokens are model-specific, but most OpenAI-style models average ~4 characters per token for English text. ## How the system prompt is built OpenClaw assembles its own system prompt on every run. It includes: - Tool list + short descriptions - Skills list (only metadata; instructions are loaded on demand with `read`) - Self-update instructions - Workspace + bootstrap files (`AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `HEARTBEAT.md`, `BOOTSTRAP.md` when new). Large files are truncated by `agents.defaults.bootstrapMaxChars` (default: 20000). - Time (UTC + user timezone) - Reply tags + heartbeat behavior - Runtime metadata (host/OS/model/thinking) See the full breakdown in [System Prompt](/concepts/system-prompt). ## What counts in the context window Everything the model receives counts toward the context limit: - System prompt (all sections listed above) - Conversation history (user + assistant messages) - Tool calls and tool results - Attachments/transcripts (images, audio, files) - Compaction summaries and pruning artifacts - Provider wrappers or safety headers (not visible, but still counted) For a practical breakdown (per injected file, tools, skills, and system prompt size), use `/context list` or `/context detail`. See [Context](/concepts/context). ## How to see current token usage Use these in chat: - `/status` → \*\*emoji‑rich status card\*\* with the session model, context usage, last response input/output tokens, and \*\*estimated cost\*\* (API key only). - `/usage off|tokens|full` → appends a \*\*per-response usage footer\*\* to every reply. - Persists per session (stored as `responseUsage`). - OAuth auth \*\*hides cost\*\* (tokens only). - `/usage cost` → shows a local cost summary from OpenClaw session logs. Other surfaces: - \*\*TUI/Web TUI:\*\* `/status` + `/usage` are supported. - \*\*CLI:\*\* `openclaw status --usage` and `openclaw channels list` show provider quota windows (not per-response costs). ## Cost estimation (when shown) Costs are estimated from your model pricing config: ``` models.providers..models[].cost ``` These are \*\*USD per 1M tokens\*\* for `input`, `output`, `cacheRead`, and `cacheWrite`. If pricing is missing, OpenClaw shows tokens only. OAuth tokens never show dollar cost. ## Cache TTL and pruning impact Provider prompt caching only applies within the cache TTL window. OpenClaw can optionally run \*\*cache-ttl pruning\*\*: it prunes the session once the cache TTL has expired, then resets the cache window so subsequent requests can re-use the freshly cached context instead of re-caching the full history. This keeps cache write costs lower when a session goes idle past the TTL. Configure it in [Gateway configuration](/gateway/configuration) and see the behavior details in [Session pruning](/concepts/session-pruning). Heartbeat can keep the cache \*\*warm\*\* across idle gaps. If your model cache TTL is `1h`, setting the heartbeat interval just under that (e.g., `55m`) can avoid re-caching the full prompt, reducing cache write costs. For Anthropic API pricing, cache reads are significantly cheaper than input tokens, while cache writes are billed at a higher multiplier. See Anthropic’s prompt caching pricing for the latest rates and TTL multipliers: https://docs.anthropic.com/docs/build-with-claude/prompt-caching ### Example: keep 1h cache warm with heartbeat ```yaml agents: defaults: model: primary: "anthropic/claude-opus-4-5" models: "anthropic/claude-opus-4-5": params: cacheRetention: "long" heartbeat: every: "55m" ``` ## Tips for reducing token pressure - Use `/compact` to summarize long sessions. - Trim large tool outputs in your workflows. - Keep skill descriptions short (skill list is injected into the prompt). - Prefer smaller models for verbose, exploratory work. See [Skills](/tools/skills) for the exact skill list overhead formula. | https://github.com/openclaw/openclaw/blob/main//docs/token-use.md | main | opebclaw | [
-0.012693329714238644,
-0.036988481879234314,
-0.08239593356847763,
0.02646402083337307,
0.10352814197540283,
-0.08607679605484009,
-0.01082552783191204,
0.0488567128777504,
0.03614433482289314,
-0.019358312711119652,
0.0054738703183829784,
-0.056502655148506165,
0.05800779536366463,
-0.07360006868839264,
0.0695057362318039,
0.06095469743013382,
0.06261514872312546,
-0.1013266071677208,
-0.07190056145191193,
0.035931698977947235,
0.05340612679719925,
0.052491672337055206,
0.013463624753057957,
0.016058649867773056,
-0.08474014699459076,
0.02078380435705185,
-0.06375210732221603,
-0.035439953207969666,
-0.0022690389305353165,
-0.0005986683536320925,
0.04672421142458916,
0.06954436004161835,
0.09434184432029724,
-0.02320832386612892,
0.09937076270580292,
0.0489116907119751,
0.034258462488651276,
-0.0348861888051033,
-0.10808955878019333,
-0.01874074898660183,
0.03256916627287865,
-0.001237458549439907,
-0.00035995233338326216,
0.026181047782301903,
-0.00951879657804966,
-0.0763673186302185,
-0.02037191018462181,
-0.11567331850528717,
-0.038769885897636414,
0.023463141173124313,
-0.1074041873216629,
-0.07231709361076355,
0.009800253435969353,
-0.04712580516934395,
-0.013420643284916878,
-0.049677878618240356,
0.014503272250294685,
-0.004488467238843441,
-0.010425284504890442,
-0.042239710688591,
-0.009273587726056576,
-0.008334770798683167,
-0.1309249848127365,
0.06002768129110336,
-0.01579599268734455,
0.013104611076414585,
-0.07788176089525223,
-0.0909232348203659,
0.03268502280116081,
-0.0124538354575634,
-0.017000259831547737,
0.005358349531888962,
0.005682363640516996,
-0.010048947297036648,
0.011115203611552715,
0.020552556961774826,
0.04250822588801384,
0.05985041707754135,
0.02225286141037941,
-0.1247762143611908,
-0.060759756714105606,
-0.036576688289642334,
-0.02885841391980648,
-0.051812659949064255,
-0.00507354736328125,
0.10301662236452103,
0.03534195199608803,
0.04546670615673065,
0.013982424512505531,
0.0434151217341423,
0.03836517408490181,
-0.1254292130470276,
0.053666792809963226,
0.02010246179997921,
0.012218824587762356,
0.05430418252944946,
-0.025902345776557922,
0.04290861263871193,
-0.031021887436509132,
0.07661131769418716,
-0.026367250829935074,
-0.015565912239253521,
0.06375709176063538,
0.04101451486349106,
-0.09129929542541504,
0.012324683368206024,
0.024497205391526222,
0.09150107949972153,
-0.011027814820408821,
-0.024078626185655594,
0.06528006494045258,
-0.016372384503483772,
0.07251331955194473,
-0.013493069447577,
0.08287011831998825,
0.02343406155705452,
-0.05280417948961258,
-0.01673470064997673,
0.05577525496482849,
0.11089608073234558,
0.09523772448301315,
-0.042525649070739746,
0.02450350672006607,
-0.076161690056324,
0.03367428481578827,
0.023217538371682167,
0.006812448613345623,
4.183846309411564e-33,
0.058660585433244705,
0.01592104323208332,
0.03190156817436218,
0.0028569542337208986,
0.10026407241821289,
0.008021213114261627,
-0.003603156190365553,
0.012621994130313396,
0.0030009031761437654,
0.11910145729780197,
-0.015997326001524925,
0.11911235749721527,
-0.04296351224184036,
0.018905142322182655,
0.036433592438697815,
-0.03415340930223465,
-0.03419046476483345,
0.0559631772339344,
0.03565063327550888,
-0.05140089616179466,
0.06175767630338669,
-0.05945052579045296,
-0.0909063071012497,
0.04674698784947395,
0.03279362618923187,
0.09294384717941284,
0.010562692768871784,
-0.03803481161594391,
0.01692095957696438,
0.04174380004405975,
0.004626251291483641,
0.046710215508937836,
-0.04809430241584778,
0.031290557235479355,
-0.030574465170502663,
0.05220966786146164,
-0.021580368280410767,
-0.03791496157646179,
-0.008263591676950455,
-0.08369109779596329,
0.020882172510027885,
-0.0076518249697983265,
-0.009219018742442131,
-0.02574104070663452,
-0.08320487290620804,
-0.13915759325027466,
0.00342227378860116,
0.03143629431724548,
-0.011755464598536491,
0.09259077906608582,
0.008627851493656635,
-0.0060164970345795155,
0.08965946733951569,
0.024692818522453308,
-0.0358591191470623,
-0.0247572660446167,
0.03605064004659653,
-0.026184091344475746,
0.051367517560720444,
0.09458554536104202,
-0.02342931739985943,
-0.040356408804655075,
0.08946401625871658,
0.018162406980991364,
0.06281179189682007,
0.05414204299449921,
0.0017402763478457928,
-0.033229514956474304,
0.045883335173130035,
0.07618789374828339,
-0.04757322743535042,
0.0021822929847985506,
0.008439723402261734,
0.003241755301132798,
-0.049802787601947784,
-0.09263225644826889,
0.05216661095619202,
-0.04473808780312538,
-0.05040159821510315,
0.007965901866555214,
-0.05318761244416237,
-0.014825912192463875,
-0.07074376940727234,
0.045389898121356964,
0.01767152175307274,
-0.018947867676615715,
-0.03050728142261505,
-0.04579027742147446,
-0.06264881789684296,
-0.012964132241904736,
0.005548351909965277,
-0.04763627424836159,
-0.06330880522727966,
0.030840881168842316,
-0.0605197474360466,
-4.838263116297532e-33,
0.03355536609888077,
-0.03186555951833725,
-0.001785722328349948,
0.00570124015212059,
0.030580107122659683,
-0.025284672155976295,
-0.010595062747597694,
0.04404182359576225,
-0.03842909634113312,
-0.06437498331069946,
0.019653229042887688,
0.02796095609664917,
0.030944963917136192,
0.012559052556753159,
0.004614541772753,
-0.02881944738328457,
0.012824926525354385,
-0.07938449084758759,
0.04398152977228165,
-0.0041147759184241295,
-0.023592522367835045,
0.016870398074388504,
-0.08988739550113678,
0.02674042619764805,
0.0736820250749588,
-0.012277972884476185,
-0.05716387555003166,
0.019314154982566833,
0.05365077033638954,
-0.04712754487991333,
0.028400877490639687,
0.0538727305829525,
-0.08864117413759232,
0.020510433241724968,
-0.08259616047143936,
-0.01572495326399803,
0.019518276676535606,
0.046687450259923935,
0.029963597655296326,
0.051064085215330124,
0.0839700922369957,
-0.021492883563041687,
-0.0303900558501482,
0.003057326888665557,
-0.03269974887371063,
0.03354710713028908,
-0.027404511347413063,
-0.06498308479785919,
-0.04212867468595505,
-0.03871018439531326,
0.052059903740882874,
-0.01770561933517456,
0.019226375967264175,
0.04439498856663704,
-0.03143052011728287,
-0.0014409931609407067,
0.012967953458428383,
-0.07872694730758667,
-0.0136787798255682,
-0.12644538283348083,
0.04389062896370888,
0.039553117007017136,
-0.04730287566781044,
-0.010449700988829136,
-0.014830461703240871,
-0.024932628497481346,
-0.0164421908557415,
0.017490195110440254,
-0.03874112665653229,
-0.03575762361288071,
-0.0591704361140728,
-0.050138991326093674,
-0.027270711958408356,
0.023784218356013298,
-0.0402304083108902,
0.011670220643281937,
-0.04007481038570404,
-0.19864243268966675,
-0.005331894848495722,
-0.017087090760469437,
-0.03468794748187065,
-0.028474625200033188,
0.055478326976299286,
-0.0081272441893816,
-0.046408429741859436,
0.035019561648368835,
0.01980588771402836,
0.15747256577014923,
0.05035030096769333,
0.10076902061700821,
-0.05461934953927994,
0.05624885857105255,
-0.006891174707561731,
0.06821094453334808,
-0.078457772731781,
-5.606083774978288e-8,
-0.08334770798683167,
0.005872303154319525,
-0.029132502153515816,
0.02715841494500637,
0.03226816654205322,
0.03553445264697075,
0.039684489369392395,
0.03628905862569809,
-0.03543461114168167,
0.04891064018011093,
0.12407396733760834,
-0.01688084751367569,
-0.08387690782546997,
-0.04198199138045311,
-0.01973378285765648,
0.08067156374454498,
0.005886065308004618,
0.03506937623023987,
-0.0373811237514019,
-0.11235790699720383,
0.05150134488940239,
0.014097845181822777,
0.029064040631055832,
-0.00811220332980156,
-0.011319126933813095,
-0.03308853134512901,
-0.013281364925205708,
0.07426546514034271,
-0.04370676726102829,
-0.009178790263831615,
-0.033115454018116,
-0.01091151311993599,
0.028732039034366608,
-0.044831447303295135,
-0.047524407505989075,
0.05846180021762848,
-0.024680621922016144,
-0.009865566156804562,
0.016112497076392174,
-0.02254682593047619,
0.019189197570085526,
-0.008888649754226208,
-0.0614335760474205,
-0.03451782837510109,
-0.071249820291996,
0.03048529103398323,
-0.0888512134552002,
0.00038839480839669704,
-0.01861468330025673,
-0.05648019164800644,
-0.017124131321907043,
0.016395557671785355,
-0.03719807788729668,
0.08224089443683624,
-0.0036177351139485836,
0.0852096751332283,
0.04735700413584709,
0.01698431931436062,
0.02885620668530464,
0.021052811294794083,
-0.01771233230829239,
0.020773818716406822,
0.041622087359428406,
-0.03690183162689209
] | 0.180799 |
# Hooks Hooks provide an extensible event-driven system for automating actions in response to agent commands and events. Hooks are automatically discovered from directories and can be managed via CLI commands, similar to how skills work in OpenClaw. ## Getting Oriented Hooks are small scripts that run when something happens. There are two kinds: - \*\*Hooks\*\* (this page): run inside the Gateway when agent events fire, like `/new`, `/reset`, `/stop`, or lifecycle events. - \*\*Webhooks\*\*: external HTTP webhooks that let other systems trigger work in OpenClaw. See [Webhook Hooks](/automation/webhook) or use `openclaw webhooks` for Gmail helper commands. Hooks can also be bundled inside plugins; see [Plugins](/plugin#plugin-hooks). Common uses: - Save a memory snapshot when you reset a session - Keep an audit trail of commands for troubleshooting or compliance - Trigger follow-up automation when a session starts or ends - Write files into the agent workspace or call external APIs when events fire If you can write a small TypeScript function, you can write a hook. Hooks are discovered automatically, and you enable or disable them via the CLI. ## Overview The hooks system allows you to: - Save session context to memory when `/new` is issued - Log all commands for auditing - Trigger custom automations on agent lifecycle events - Extend OpenClaw's behavior without modifying core code ## Getting Started ### Bundled Hooks OpenClaw ships with four bundled hooks that are automatically discovered: - \*\*💾 session-memory\*\*: Saves session context to your agent workspace (default `~/.openclaw/workspace/memory/`) when you issue `/new` - \*\*📝 command-logger\*\*: Logs all command events to `~/.openclaw/logs/commands.log` - \*\*🚀 boot-md\*\*: Runs `BOOT.md` when the gateway starts (requires internal hooks enabled) - \*\*😈 soul-evil\*\*: Swaps injected `SOUL.md` content with `SOUL\_EVIL.md` during a purge window or by random chance List available hooks: ```bash openclaw hooks list ``` Enable a hook: ```bash openclaw hooks enable session-memory ``` Check hook status: ```bash openclaw hooks check ``` Get detailed information: ```bash openclaw hooks info session-memory ``` ### Onboarding During onboarding (`openclaw onboard`), you'll be prompted to enable recommended hooks. The wizard automatically discovers eligible hooks and presents them for selection. ## Hook Discovery Hooks are automatically discovered from three directories (in order of precedence): 1. \*\*Workspace hooks\*\*: `/hooks/` (per-agent, highest precedence) 2. \*\*Managed hooks\*\*: `~/.openclaw/hooks/` (user-installed, shared across workspaces) 3. \*\*Bundled hooks\*\*: `/dist/hooks/bundled/` (shipped with OpenClaw) Managed hook directories can be either a \*\*single hook\*\* or a \*\*hook pack\*\* (package directory). Each hook is a directory containing: ``` my-hook/ ├── HOOK.md # Metadata + documentation └── handler.ts # Handler implementation ``` ## Hook Packs (npm/archives) Hook packs are standard npm packages that export one or more hooks via `openclaw.hooks` in `package.json`. Install them with: ```bash openclaw hooks install ``` Example `package.json`: ```json { "name": "@acme/my-hooks", "version": "0.1.0", "openclaw": { "hooks": ["./hooks/my-hook", "./hooks/other-hook"] } } ``` Each entry points to a hook directory containing `HOOK.md` and `handler.ts` (or `index.ts`). Hook packs can ship dependencies; they will be installed under `~/.openclaw/hooks/`. ## Hook Structure ### HOOK.md Format The `HOOK.md` file contains metadata in YAML frontmatter plus Markdown documentation: ```markdown --- name: my-hook description: "Short description of what this hook does" homepage: https://docs.openclaw.ai/hooks#my-hook metadata: { "openclaw": { "emoji": "🔗", "events": ["command:new"], "requires": { "bins": ["node"] } } } --- # My Hook Detailed documentation goes here... ## What It Does - Listens for `/new` commands - Performs some action - Logs the result ## Requirements - Node.js must be installed ## Configuration No configuration needed. ``` ### Metadata Fields The `metadata.openclaw` object supports: - \*\*`emoji`\*\*: Display emoji for CLI (e.g., `"💾"`) - \*\*`events`\*\*: Array of events to listen for (e.g., `["command:new", "command:reset"]`) - \*\*`export`\*\*: Named | https://github.com/openclaw/openclaw/blob/main//docs/hooks.md | main | opebclaw | [
-0.08679098635911942,
-0.017068607732653618,
-0.036308374255895615,
0.01740249991416931,
0.02805521711707115,
-0.044743385165929794,
0.02394123002886772,
-0.02269146777689457,
0.0015491715166717768,
-0.0067456308752298355,
0.036721665412187576,
-0.06279407441616058,
-0.021111706271767616,
-0.03694295138120651,
0.07788975536823273,
0.09648122638463974,
0.019810516387224197,
-0.017554739490151405,
-0.05582045391201973,
-0.052955880761146545,
-0.023744136095046997,
-0.03160388767719269,
-0.009566611610352993,
-0.0110488161444664,
-0.15265390276908875,
-0.03441370278596878,
0.048020750284194946,
-0.0630405992269516,
-0.053273655474185944,
0.0013901545898988843,
0.03505329415202141,
-0.059819333255290985,
-0.03138542175292969,
0.034089263528585434,
-0.004997056908905506,
0.05726751312613487,
0.052740391343832016,
0.05051786080002785,
-0.05091356113553047,
-0.01263921894133091,
0.043218374252319336,
-0.09360697865486145,
-0.06236659362912178,
-0.06038682535290718,
-0.033106423914432526,
-0.0383039191365242,
-0.061541225761175156,
-0.0639260858297348,
-0.08991934359073639,
0.00894848257303238,
-0.018521716818213463,
-0.0217507965862751,
-0.003458796301856637,
0.002874010941013694,
0.0059349252842366695,
-0.03782733529806137,
0.04470532014966011,
-0.006973005831241608,
0.03863746300339699,
-0.08349277824163437,
0.020713230594992638,
-0.035077501088380814,
-0.03695137798786163,
0.04277109354734421,
-0.05096029117703438,
0.025702353566884995,
-0.0317632220685482,
-0.03645511716604233,
0.06318622827529907,
-0.09403856098651886,
-0.09397522360086441,
-0.017446018755435944,
-0.06718888133764267,
-0.022074325010180473,
0.011010040529072285,
0.01918751560151577,
0.024935485795140266,
0.03432591259479523,
-0.02567311003804207,
-0.02884582057595253,
-0.07595573365688324,
0.017934227362275124,
0.016539178788661957,
0.06305521726608276,
0.013347248546779156,
0.12507589161396027,
0.018891355022788048,
0.03684587776660919,
0.031868282705545425,
0.025508025661110878,
0.014232986606657505,
-0.05158422142267227,
-0.054925672709941864,
-0.014949744567275047,
-0.05769941210746765,
0.030318617820739746,
-0.03807341679930687,
-0.01835588365793228,
-0.011694256216287613,
0.0661693885922432,
0.056405287235975266,
0.01852133870124817,
-0.03333643078804016,
-0.016291404142975807,
0.04708821326494217,
-0.017439350485801697,
0.008499322459101677,
0.005366714671254158,
0.008687537163496017,
-0.03711530566215515,
-0.04638025909662247,
-0.04978403076529503,
0.08008190989494324,
-0.06872887164354324,
0.016146671026945114,
0.026129024103283882,
0.026702314615249634,
0.06703314185142517,
0.06419824063777924,
0.0272322166711092,
0.09915005415678024,
0.07483810931444168,
0.0424216091632843,
-0.02140449918806553,
0.08940603584051132,
0.08658206462860107,
0.030692042782902718,
4.982116808873302e-33,
0.0705873966217041,
0.016907017678022385,
-0.046338845044374466,
0.0595371387898922,
0.05836476385593414,
-0.039619848132133484,
0.03340592607855797,
0.05804740637540817,
-0.025247544050216675,
0.05324627831578255,
0.052799686789512634,
0.08073987811803818,
0.017869606614112854,
-0.015203440561890602,
-0.0042863707058131695,
0.014443893916904926,
-0.05066326633095741,
-0.022823970764875412,
0.08918793499469757,
-0.011537859216332436,
-0.03202938660979271,
-0.06402482092380524,
0.033880140632390976,
0.08809832483530045,
0.04989517852663994,
0.07023817300796509,
-0.014159380458295345,
0.09562279284000397,
-0.03217117115855217,
0.018817417323589325,
0.08112893998622894,
-0.017581578344106674,
-0.0074180010706186295,
0.019724547863006592,
-0.10064516216516495,
-0.015625450760126114,
-0.11575283110141754,
-0.053055379539728165,
-0.02821347676217556,
-0.049499161541461945,
-0.05270394682884216,
0.010652282275259495,
-0.05697287246584892,
-0.0478367879986763,
-0.014168309047818184,
-0.12040670216083527,
-0.01284920983016491,
0.009379212744534016,
0.08019804209470749,
-0.010376045480370522,
0.08020944893360138,
-0.03424996882677078,
0.10434816032648087,
0.006462020333856344,
-0.029658576473593712,
0.053390100598335266,
0.026019031181931496,
-0.061257217079401016,
0.009891609661281109,
0.03545186668634415,
0.024770544841885567,
-0.014931499026715755,
0.019967209547758102,
0.01624484173953533,
0.029630521312355995,
-0.01309488620609045,
0.05913599953055382,
0.016231808811426163,
-0.061039697378873825,
-0.04247917979955673,
-0.024293240159749985,
0.02171265333890915,
0.005366976372897625,
0.03008735552430153,
-0.049718715250492096,
-0.019937509670853615,
-0.009490154683589935,
-0.04461849480867386,
0.03403907269239426,
0.020966634154319763,
0.08369460701942444,
-0.059095993638038635,
0.019216839224100113,
0.003533605020493269,
0.002194807166233659,
-0.003992749843746424,
-0.05181584507226944,
-0.11478114873170853,
-0.027223199605941772,
0.12031294405460358,
-0.0482533760368824,
-0.012897144071757793,
-0.07472673803567886,
0.05474366992712021,
0.0708448588848114,
-7.592887557997695e-33,
0.07171089202165604,
-0.030487708747386932,
-0.11696580797433853,
0.000602230429649353,
0.003010483691468835,
0.04774618521332741,
-0.029580658301711082,
-0.08052187412977219,
0.004578335210680962,
-0.05127822980284691,
-0.06604988127946854,
0.06714319437742233,
0.010664282366633415,
0.04802803322672844,
0.04055117443203926,
-0.06605764478445053,
-0.01608753204345703,
-0.07371000200510025,
-0.014791258610785007,
0.015531162731349468,
-0.025604428723454475,
0.03880208358168602,
0.028658632189035416,
-0.028424283489584923,
-0.0012549413368105888,
-0.023674188181757927,
0.029436783865094185,
0.060809288173913956,
-0.03182455897331238,
-0.016948562115430832,
0.014877167530357838,
0.009170752950012684,
0.01438693143427372,
0.0855383351445198,
0.042439110577106476,
-0.05785706639289856,
0.04668387398123741,
0.052902836352586746,
0.03423858433961868,
-0.025523081421852112,
0.09584492444992065,
-0.026865588501095772,
-0.01247947383671999,
-0.04746084660291672,
-0.04009825363755226,
0.08924758434295654,
-0.10294480621814728,
0.01556476578116417,
-0.0975135788321495,
0.022341929376125336,
-0.09034998714923859,
0.011576814576983452,
-0.022894497960805893,
0.04667167365550995,
-0.050893258303403854,
0.11641208827495575,
0.03599005937576294,
-0.06434044241905212,
-0.01680944114923477,
-0.04645663872361183,
-0.1041986271739006,
-0.09603291749954224,
0.05039137229323387,
0.10707622766494751,
-0.03672681003808975,
-0.013343353755772114,
-0.002889644354581833,
-0.02764691598713398,
-0.038582295179367065,
-0.02486441284418106,
0.04021545499563217,
-0.013234104961156845,
-0.06098490208387375,
-0.0943828746676445,
-0.006909571588039398,
0.008577086962759495,
-0.011551925912499428,
-0.13214293122291565,
-0.017206845805048943,
-0.0406033918261528,
-0.01289167907088995,
-0.031741201877593994,
0.0594300739467144,
-0.04774019122123718,
-0.06733759492635727,
0.020075727254152298,
-0.026237651705741882,
0.08674537390470505,
0.048212308436632156,
-0.04112479090690613,
-0.05696834996342659,
0.05256686732172966,
-0.036597490310668945,
0.015344332903623581,
-0.08358268439769745,
-5.5617988437006716e-8,
-0.04885153844952583,
-0.018549099564552307,
0.02433019131422043,
0.07167694717645645,
-0.016023190692067146,
-0.012655006721615791,
-0.006927811075001955,
0.015246354043483734,
-0.03917219862341881,
0.00920489989221096,
0.07459629327058792,
0.03484022244811058,
0.0004904702072963119,
0.03117009811103344,
-0.004424880724400282,
-0.0013227546587586403,
0.031152818351984024,
-0.007645418867468834,
-0.001914062537252903,
-0.051520317792892456,
-0.01529380027204752,
-0.005175385158509016,
0.07519311457872391,
-0.005119763780385256,
0.027533292770385742,
-0.027061522006988525,
0.006158789154142141,
0.1062617376446724,
-0.027972767129540443,
0.031122373417019844,
0.018812596797943115,
-0.06010366603732109,
0.024773547425866127,
0.01182965375483036,
0.02822706289589405,
0.06013333424925804,
-0.043064359575510025,
-0.10411766916513443,
0.04485594481229782,
-0.04050532355904579,
0.059845104813575745,
0.03927910700440407,
-0.053304046392440796,
-0.04007408767938614,
0.00014177615230437368,
0.07236535847187042,
-0.07241503149271011,
-0.033853549510240555,
0.05155745893716812,
0.03380349278450012,
-0.08268094062805176,
0.022338826209306717,
0.0038136118091642857,
0.114216648042202,
-0.0071403575129806995,
0.02263106405735016,
0.13114282488822937,
-0.127428337931633,
0.09860068559646606,
0.0746714249253273,
-0.0278912540525198,
0.05518485978245735,
0.030995868146419525,
-0.06131568178534508
] | 0.18443 |
- Performs some action - Logs the result ## Requirements - Node.js must be installed ## Configuration No configuration needed. ``` ### Metadata Fields The `metadata.openclaw` object supports: - \*\*`emoji`\*\*: Display emoji for CLI (e.g., `"💾"`) - \*\*`events`\*\*: Array of events to listen for (e.g., `["command:new", "command:reset"]`) - \*\*`export`\*\*: Named export to use (defaults to `"default"`) - \*\*`homepage`\*\*: Documentation URL - \*\*`requires`\*\*: Optional requirements - \*\*`bins`\*\*: Required binaries on PATH (e.g., `["git", "node"]`) - \*\*`anyBins`\*\*: At least one of these binaries must be present - \*\*`env`\*\*: Required environment variables - \*\*`config`\*\*: Required config paths (e.g., `["workspace.dir"]`) - \*\*`os`\*\*: Required platforms (e.g., `["darwin", "linux"]`) - \*\*`always`\*\*: Bypass eligibility checks (boolean) - \*\*`install`\*\*: Installation methods (for bundled hooks: `[{"id":"bundled","kind":"bundled"}]`) ### Handler Implementation The `handler.ts` file exports a `HookHandler` function: ```typescript import type { HookHandler } from "../../src/hooks/hooks.js"; const myHandler: HookHandler = async (event) => { // Only trigger on 'new' command if (event.type !== "command" || event.action !== "new") { return; } console.log(`[my-hook] New command triggered`); console.log(` Session: ${event.sessionKey}`); console.log(` Timestamp: ${event.timestamp.toISOString()}`); // Your custom logic here // Optionally send message to user event.messages.push("✨ My hook executed!"); }; export default myHandler; ``` #### Event Context Each event includes: ```typescript { type: 'command' | 'session' | 'agent' | 'gateway', action: string, // e.g., 'new', 'reset', 'stop' sessionKey: string, // Session identifier timestamp: Date, // When the event occurred messages: string[], // Push messages here to send to user context: { sessionEntry?: SessionEntry, sessionId?: string, sessionFile?: string, commandSource?: string, // e.g., 'whatsapp', 'telegram' senderId?: string, workspaceDir?: string, bootstrapFiles?: WorkspaceBootstrapFile[], cfg?: OpenClawConfig } } ``` ## Event Types ### Command Events Triggered when agent commands are issued: - \*\*`command`\*\*: All command events (general listener) - \*\*`command:new`\*\*: When `/new` command is issued - \*\*`command:reset`\*\*: When `/reset` command is issued - \*\*`command:stop`\*\*: When `/stop` command is issued ### Agent Events - \*\*`agent:bootstrap`\*\*: Before workspace bootstrap files are injected (hooks may mutate `context.bootstrapFiles`) ### Gateway Events Triggered when the gateway starts: - \*\*`gateway:startup`\*\*: After channels start and hooks are loaded ### Tool Result Hooks (Plugin API) These hooks are not event-stream listeners; they let plugins synchronously adjust tool results before OpenClaw persists them. - \*\*`tool\_result\_persist`\*\*: transform tool results before they are written to the session transcript. Must be synchronous; return the updated tool result payload or `undefined` to keep it as-is. See [Agent Loop](/concepts/agent-loop). ### Future Events Planned event types: - \*\*`session:start`\*\*: When a new session begins - \*\*`session:end`\*\*: When a session ends - \*\*`agent:error`\*\*: When an agent encounters an error - \*\*`message:sent`\*\*: When a message is sent - \*\*`message:received`\*\*: When a message is received ## Creating Custom Hooks ### 1. Choose Location - \*\*Workspace hooks\*\* (`/hooks/`): Per-agent, highest precedence - \*\*Managed hooks\*\* (`~/.openclaw/hooks/`): Shared across workspaces ### 2. Create Directory Structure ```bash mkdir -p ~/.openclaw/hooks/my-hook cd ~/.openclaw/hooks/my-hook ``` ### 3. Create HOOK.md ```markdown --- name: my-hook description: "Does something useful" metadata: { "openclaw": { "emoji": "🎯", "events": ["command:new"] } } --- # My Custom Hook This hook does something useful when you issue `/new`. ``` ### 4. Create handler.ts ```typescript import type { HookHandler } from "../../src/hooks/hooks.js"; const handler: HookHandler = async (event) => { if (event.type !== "command" || event.action !== "new") { return; } console.log("[my-hook] Running!"); // Your logic here }; export default handler; ``` ### 5. Enable and Test ```bash # Verify hook is discovered openclaw hooks list # Enable it openclaw hooks enable my-hook # Restart your gateway process (menu bar app restart on macOS, or restart your dev process) # Trigger the event # Send /new via your messaging channel ``` ## Configuration ### New Config Format (Recommended) ```json { "hooks": { | https://github.com/openclaw/openclaw/blob/main//docs/hooks.md | main | opebclaw | [
-0.014599665999412537,
-0.01740427128970623,
0.03559800982475281,
0.016879374161362648,
0.11505157500505447,
-0.07758503407239914,
-0.0347142294049263,
-0.03925412520766258,
0.05893687158823013,
-0.01826775074005127,
-0.024533990770578384,
-0.08776307851076126,
0.014193158596754074,
-0.012921827845275402,
0.08119334280490875,
0.10563751310110092,
-0.034001197665929794,
0.01126854494214058,
-0.040602751076221466,
-0.03999558836221695,
0.029377242550253868,
0.04731368646025658,
0.058998189866542816,
-0.05838824063539505,
-0.028938574716448784,
-0.025336649268865585,
-0.07120062410831451,
0.003956933040171862,
-0.040130864828825,
0.007189065683633089,
0.036940641701221466,
-0.0007843736093491316,
0.016124393790960312,
0.010216271504759789,
0.09186520427465439,
0.17696356773376465,
0.02121131308376789,
-0.06889771670103073,
-0.07054802030324936,
-0.006521708332002163,
0.04429977014660835,
0.0383065827190876,
-0.01881265453994274,
-0.08497809618711472,
-0.004686898086220026,
-0.08081626147031784,
-0.06648170948028564,
-0.11532038450241089,
-0.027630703523755074,
0.054523736238479614,
-0.10002826154232025,
-0.06607942283153534,
-0.02043531835079193,
-0.14649057388305664,
0.030226094648241997,
0.006546519231051207,
-0.030093546956777573,
-0.038513440638780594,
0.08116378635168076,
0.0025058318860828876,
0.030155140906572342,
-0.01590106450021267,
-0.011232772842049599,
0.008062646724283695,
-0.048369430005550385,
-0.01650170050561428,
-0.04856831580400467,
-0.015592747367918491,
-0.04470749571919441,
0.015029020607471466,
-0.022603116929531097,
0.010173134505748749,
-0.1268071085214615,
-0.06910224258899689,
-0.0516783781349659,
-0.03012911230325699,
0.013045858591794968,
0.04037103429436684,
-0.09121346473693848,
-0.05363955721259117,
0.002989486325532198,
-0.025476012378931046,
-0.03798273578286171,
0.08412975817918777,
0.015580293722450733,
0.14879561960697174,
-0.007877685129642487,
0.003377757500857115,
0.0030186267103999853,
0.13633164763450623,
-0.05910839885473251,
-0.17079445719718933,
0.04807863384485245,
0.007398222107440233,
-0.02153608202934265,
0.039586156606674194,
0.033235229551792145,
0.05106912553310394,
-0.023961735889315605,
0.06533276289701462,
-0.020471587777137756,
-0.02344714105129242,
0.09718994796276093,
-0.06547746062278748,
-0.046603113412857056,
0.025573818013072014,
-0.0022681548725813627,
0.022269435226917267,
0.0006252768216654658,
0.043069854378700256,
0.046897921711206436,
-0.020875170826911926,
-0.010884079150855541,
-0.10156379640102386,
-0.0018549797823652625,
0.047652266919612885,
0.03134617954492569,
-0.034170906990766525,
0.07372841984033585,
0.1581459492444992,
0.10704327374696732,
0.0336475595831871,
-0.0400630347430706,
0.028735976666212082,
0.03742660954594612,
-0.003487864974886179,
0.05719127506017685,
3.6666974880008835e-33,
0.09605016559362411,
-0.06476001441478729,
-0.02021385170519352,
0.03330513462424278,
0.08253535628318787,
0.021513894200325012,
-0.0025340637657791376,
-0.06067289039492607,
-0.10850659757852554,
0.011476367712020874,
-0.004458510782569647,
0.04938269034028053,
-0.07504233717918396,
-0.019661517813801765,
-0.0010521000949665904,
0.007673477288335562,
0.028785862028598785,
-0.020561400800943375,
0.08561558276414871,
-0.02896108664572239,
-0.004170563071966171,
-0.05572182685136795,
-0.0504939965903759,
0.020936762914061546,
-0.0768350288271904,
-0.025468481704592705,
0.07197684794664383,
-0.018439745530486107,
0.025165477767586708,
-0.0019042070489376783,
0.0373711921274662,
0.006267200224101543,
0.04842591658234596,
0.025411568582057953,
-0.04295558109879494,
0.014067220501601696,
-0.06352304667234421,
0.031314071267843246,
-0.0694006010890007,
-0.001767246751114726,
0.03204828128218651,
0.025117235258221626,
-0.12348974496126175,
-0.027036268264055252,
0.024050364270806313,
-0.0805264562368393,
-0.007873263210058212,
-0.024456849321722984,
0.07801902294158936,
0.0030226970557123423,
-0.05141190066933632,
0.017040282487869263,
0.04147045314311981,
-0.021041523665189743,
0.050823505967855453,
-0.03482901304960251,
-0.020754044875502586,
-0.05698913335800171,
-0.01283369492739439,
-0.016324413940310478,
0.011916362680494785,
0.024359187111258507,
0.038208503276109695,
0.02189294807612896,
0.05255308002233505,
0.03290877491235733,
0.007534020580351353,
0.030599452555179596,
-0.02638089470565319,
-0.002099911216646433,
-0.012312857434153557,
-0.019612908363342285,
0.02557297609746456,
-0.0030314926989376545,
0.0008995106909424067,
-0.030008280649781227,
-0.04268016666173935,
-0.06895594298839569,
0.03484374284744263,
0.0560351237654686,
-0.01800142228603363,
-0.07408181577920914,
-0.029301809147000313,
0.03175237029790878,
0.08277896046638489,
0.005578658077865839,
-0.015881652012467384,
0.043575625866651535,
0.024516314268112183,
0.04455236345529556,
0.04279300197958946,
-0.0381416380405426,
-0.07128258794546127,
-0.06231272593140602,
-0.07902057468891144,
-7.104052354736492e-33,
-0.0017816590843722224,
0.04032058268785477,
-0.024297645315527916,
0.04018614441156387,
-0.06566621363162994,
-0.03729909658432007,
-0.032084401696920395,
0.015560146421194077,
-0.0029771241825073957,
0.02655227668583393,
-0.05182111635804176,
0.04821426048874855,
0.03379170224070549,
-0.04531138390302658,
0.02262796461582184,
0.026619581505656242,
-0.06641964614391327,
-0.008383166044950485,
0.022982157766819,
0.047836750745773315,
-0.009804800152778625,
0.03567509353160858,
0.01576819270849228,
0.0695204809308052,
0.02156396582722664,
-0.026393381878733635,
0.05963733047246933,
-0.006371214985847473,
-0.032438941299915314,
-0.07672304660081863,
0.03149404004216194,
0.05740269646048546,
-0.08877743780612946,
0.07610244303941727,
-0.010799847543239594,
-0.04331228509545326,
-0.022635549306869507,
0.03611649572849274,
0.0612470805644989,
0.05013222619891167,
0.0733095034956932,
-0.051426324993371964,
-0.07703487575054169,
0.02246556244790554,
-0.020901083946228027,
0.0635194182395935,
-0.03855510056018829,
-0.003073527943342924,
-0.0009812966454774141,
-0.04956836253404617,
0.042543426156044006,
-0.03862591087818146,
-0.001817106967791915,
-0.0765538290143013,
0.03283825144171715,
-0.013364252634346485,
-0.01440315693616867,
0.022647663950920105,
-0.08610673993825912,
-0.010256233625113964,
-0.018649937584996223,
-0.0687289610505104,
-0.03607695549726486,
-0.002578799147158861,
-0.03805142268538475,
-0.05302242934703827,
-0.06470880657434464,
0.06390952318906784,
-0.07887709885835648,
-0.04707704111933708,
-0.049537770450115204,
0.014869350008666515,
0.008401517756283283,
-0.03322422131896019,
0.027906017377972603,
0.00550621934235096,
0.003266909159719944,
-0.06513264030218124,
0.036722972989082336,
0.07410436123609543,
-0.058630283921957016,
0.11347021162509918,
-0.011015393771231174,
-0.049460455775260925,
-0.009028700180351734,
-0.022362250834703445,
-0.05086274445056915,
0.11719534546136856,
-0.011047732084989548,
0.025570079684257507,
0.007387668825685978,
0.039443038403987885,
0.01873757690191269,
0.04189771041274071,
-0.0007123635150492191,
-5.8678892855823506e-8,
-0.10873394459486008,
-0.0423971489071846,
-0.11396309733390808,
-0.01303244847804308,
-0.018597818911075592,
-0.006498311646282673,
0.06637540459632874,
-0.021944260224699974,
-0.002837633015587926,
-0.005371580831706524,
0.041633300483226776,
0.06943375617265701,
-0.08965227007865906,
0.05956319347023964,
-0.055327847599983215,
0.03199640288949013,
0.03794361278414726,
0.08921105414628983,
0.03728834167122841,
-0.07198590040206909,
0.00924194697290659,
0.005964465904980898,
0.040379371494054794,
0.03935547173023224,
-0.04367349296808243,
-0.060783419758081436,
-0.06953811645507812,
0.04318283498287201,
-0.051369305700063705,
-0.04955139011144638,
0.011164478026330471,
-0.055369675159454346,
-0.033894192427396774,
-0.053575847297906876,
-0.0801166519522667,
-0.047381989657878876,
-0.0021356118377298117,
-0.08020729571580887,
0.03477031737565994,
-0.002642975887283683,
0.08181016892194748,
0.024677295237779617,
-0.04192742332816124,
-0.027196533977985382,
-0.11048954725265503,
0.014114298857748508,
0.013993751257658005,
0.013928170315921307,
0.01872950792312622,
-0.035467300564050674,
0.004459511023014784,
-0.033136624842882156,
-0.004006240516901016,
0.05791644752025604,
0.022733641788363457,
0.09707564860582352,
0.06894741207361221,
0.008108156733214855,
0.005874610040336847,
0.030249884352087975,
0.03384000062942505,
0.017556805163621902,
0.036552220582962036,
-0.019843675196170807
] | 0.062052 |
discovered openclaw hooks list # Enable it openclaw hooks enable my-hook # Restart your gateway process (menu bar app restart on macOS, or restart your dev process) # Trigger the event # Send /new via your messaging channel ``` ## Configuration ### New Config Format (Recommended) ```json { "hooks": { "internal": { "enabled": true, "entries": { "session-memory": { "enabled": true }, "command-logger": { "enabled": false } } } } } ``` ### Per-Hook Configuration Hooks can have custom configuration: ```json { "hooks": { "internal": { "enabled": true, "entries": { "my-hook": { "enabled": true, "env": { "MY\_CUSTOM\_VAR": "value" } } } } } } ``` ### Extra Directories Load hooks from additional directories: ```json { "hooks": { "internal": { "enabled": true, "load": { "extraDirs": ["/path/to/more/hooks"] } } } } ``` ### Legacy Config Format (Still Supported) The old config format still works for backwards compatibility: ```json { "hooks": { "internal": { "enabled": true, "handlers": [ { "event": "command:new", "module": "./hooks/handlers/my-handler.ts", "export": "default" } ] } } } ``` \*\*Migration\*\*: Use the new discovery-based system for new hooks. Legacy handlers are loaded after directory-based hooks. ## CLI Commands ### List Hooks ```bash # List all hooks openclaw hooks list # Show only eligible hooks openclaw hooks list --eligible # Verbose output (show missing requirements) openclaw hooks list --verbose # JSON output openclaw hooks list --json ``` ### Hook Information ```bash # Show detailed info about a hook openclaw hooks info session-memory # JSON output openclaw hooks info session-memory --json ``` ### Check Eligibility ```bash # Show eligibility summary openclaw hooks check # JSON output openclaw hooks check --json ``` ### Enable/Disable ```bash # Enable a hook openclaw hooks enable session-memory # Disable a hook openclaw hooks disable command-logger ``` ## Bundled Hooks ### session-memory Saves session context to memory when you issue `/new`. \*\*Events\*\*: `command:new` \*\*Requirements\*\*: `workspace.dir` must be configured \*\*Output\*\*: `/memory/YYYY-MM-DD-slug.md` (defaults to `~/.openclaw/workspace`) \*\*What it does\*\*: 1. Uses the pre-reset session entry to locate the correct transcript 2. Extracts the last 15 lines of conversation 3. Uses LLM to generate a descriptive filename slug 4. Saves session metadata to a dated memory file \*\*Example output\*\*: ```markdown # Session: 2026-01-16 14:30:00 UTC - \*\*Session Key\*\*: agent:main:main - \*\*Session ID\*\*: abc123def456 - \*\*Source\*\*: telegram ``` \*\*Filename examples\*\*: - `2026-01-16-vendor-pitch.md` - `2026-01-16-api-design.md` - `2026-01-16-1430.md` (fallback timestamp if slug generation fails) \*\*Enable\*\*: ```bash openclaw hooks enable session-memory ``` ### command-logger Logs all command events to a centralized audit file. \*\*Events\*\*: `command` \*\*Requirements\*\*: None \*\*Output\*\*: `~/.openclaw/logs/commands.log` \*\*What it does\*\*: 1. Captures event details (command action, timestamp, session key, sender ID, source) 2. Appends to log file in JSONL format 3. Runs silently in the background \*\*Example log entries\*\*: ```jsonl {"timestamp":"2026-01-16T14:30:00.000Z","action":"new","sessionKey":"agent:main:main","senderId":"+1234567890","source":"telegram"} {"timestamp":"2026-01-16T15:45:22.000Z","action":"stop","sessionKey":"agent:main:main","senderId":"user@example.com","source":"whatsapp"} ``` \*\*View logs\*\*: ```bash # View recent commands tail -n 20 ~/.openclaw/logs/commands.log # Pretty-print with jq cat ~/.openclaw/logs/commands.log | jq . # Filter by action grep '"action":"new"' ~/.openclaw/logs/commands.log | jq . ``` \*\*Enable\*\*: ```bash openclaw hooks enable command-logger ``` ### soul-evil Swaps injected `SOUL.md` content with `SOUL\_EVIL.md` during a purge window or by random chance. \*\*Events\*\*: `agent:bootstrap` \*\*Docs\*\*: [SOUL Evil Hook](/hooks/soul-evil) \*\*Output\*\*: No files written; swaps happen in-memory only. \*\*Enable\*\*: ```bash openclaw hooks enable soul-evil ``` \*\*Config\*\*: ```json { "hooks": { "internal": { "enabled": true, "entries": { "soul-evil": { "enabled": true, "file": "SOUL\_EVIL.md", "chance": 0.1, "purge": { "at": "21:00", "duration": "15m" } } } } } } ``` ### boot-md Runs `BOOT.md` when the gateway starts (after channels start). Internal hooks must be enabled for this to run. \*\*Events\*\*: `gateway:startup` \*\*Requirements\*\*: `workspace.dir` must be configured \*\*What it does\*\*: 1. Reads `BOOT.md` from your workspace 2. Runs the instructions via the agent runner 3. Sends | https://github.com/openclaw/openclaw/blob/main//docs/hooks.md | main | opebclaw | [
-0.005577975884079933,
-0.02633393183350563,
-0.015956485643982887,
0.03106089122593403,
-0.0034375328104943037,
-0.09698156267404556,
0.00037689172313548625,
0.024926844984292984,
0.010721664875745773,
-0.004543246701359749,
0.019139112904667854,
-0.006899977568536997,
-0.01911861263215542,
0.045565392822027206,
0.1351184993982315,
0.13487592339515686,
0.006678185425698757,
-0.06603100150823593,
-0.026181770488619804,
-0.05422034487128258,
0.03593780845403671,
0.03773633763194084,
0.007231023162603378,
0.010599593631923199,
-0.12113384902477264,
-0.07210095971822739,
0.011601705104112625,
0.028111005201935768,
-0.06192754954099655,
0.029772015288472176,
0.03332909196615219,
0.04326575994491577,
-0.03616486117243767,
-0.012878967449069023,
0.053957145661115646,
0.01054221112281084,
0.03594807907938957,
-0.03814435750246048,
-0.03229132667183876,
-0.009795745834708214,
0.07739399373531342,
0.004286915995180607,
0.03439544513821602,
-0.05303043872117996,
-0.036333244293928146,
-0.0751229077577591,
-0.0007972284802235663,
-0.058844950050115585,
-0.054323334246873856,
0.05989345163106918,
0.04651617631316185,
-0.051458023488521576,
-0.0066294739954173565,
-0.027745645493268967,
0.029335469007492065,
0.003635564586147666,
-0.02008114755153656,
-0.04021761938929558,
0.03625265881419182,
-0.05675743520259857,
0.04606423154473305,
-0.024324530735611916,
-0.05295717716217041,
0.015109877102077007,
-0.1285391002893448,
0.02373630180954933,
-0.036518387496471405,
0.009414632804691792,
0.007061731070280075,
0.01590508036315441,
0.007484217640012503,
-0.011313333176076412,
-0.0413675382733345,
-0.08401632308959961,
0.01609044335782528,
0.00030405871802940965,
0.05875253677368164,
0.002816838910803199,
-0.11649671196937561,
-0.06892272084951401,
-0.05507523566484451,
0.002590051619336009,
-0.042761486023664474,
0.025486167520284653,
-0.03157096728682518,
0.09503632038831711,
-0.02989266812801361,
-0.030620628967881203,
0.05684027075767517,
0.08844581991434097,
-0.04668128117918968,
-0.1293952465057373,
-0.08686850219964981,
-0.036660607904195786,
-0.054618388414382935,
0.04016692191362381,
-0.025139907374978065,
-0.010347957722842693,
-0.03939055651426315,
0.05807288736104965,
0.0264606773853302,
0.024279989302158356,
0.0505630187690258,
0.04227711260318756,
0.04378383606672287,
0.03250979632139206,
0.002412055851891637,
0.04391889646649361,
-0.06744719296693802,
0.021341536194086075,
0.00008509681356372312,
0.015984803438186646,
0.14773757755756378,
-0.06591205298900604,
0.03168780729174614,
0.07863656431436539,
0.05578923970460892,
0.05473052337765694,
0.047932181507349014,
0.07407116144895554,
0.11228957772254944,
-0.023750286549329758,
-0.00005814390169689432,
0.03692204877734184,
0.08947249501943588,
0.07433930039405823,
0.030598320066928864,
7.692476908767297e-33,
0.08141086250543594,
-0.03919550031423569,
-0.012035907246172428,
0.05788274109363556,
0.08671802282333374,
-0.017079608514904976,
0.0238020159304142,
-0.004741414915770292,
-0.04057471826672554,
0.03292301669716835,
-0.030955107882618904,
0.0343543142080307,
-0.03005993366241455,
-0.015858840197324753,
-0.031370118260383606,
0.006129844579845667,
-0.04445752128958702,
-0.0039015524089336395,
0.12848538160324097,
0.02073771134018898,
-0.02423524297773838,
-0.06447062641382217,
-0.03715655207633972,
0.016310779377818108,
0.030124109238386154,
0.07248860597610474,
0.03445469215512276,
0.04078741371631622,
-0.056405261158943176,
0.015092595480382442,
0.08656876534223557,
0.03963078558444977,
0.03257033973932266,
0.015315959230065346,
-0.05385059863328934,
-0.07817970216274261,
-0.10684655606746674,
-0.022342868149280548,
-0.05455883592367172,
0.01284814439713955,
0.013320442289113998,
0.001274386653676629,
-0.12440216541290283,
-0.05417979508638382,
-0.0337987020611763,
-0.10463844984769821,
-0.05552491545677185,
-0.0016168897273018956,
0.06511298567056656,
-0.059110067784786224,
0.02625909075140953,
0.02639611065387726,
0.08261840790510178,
-0.0028306334279477596,
0.012485056184232235,
-0.04318300262093544,
-0.05369942635297775,
-0.03363660350441933,
0.011710955761373043,
-0.002560017630457878,
-0.053269047290086746,
0.015953781083226204,
0.005915416404604912,
-0.0005796002806164324,
0.055008579045534134,
0.020141402259469032,
0.049512457102537155,
-0.005551016423851252,
-0.026340730488300323,
-0.03439167141914368,
-0.06639336049556732,
0.02289048582315445,
-0.029034502804279327,
0.01952112466096878,
-0.006729510612785816,
-0.04150323569774628,
0.010597224347293377,
0.02502550557255745,
0.05066448450088501,
0.025839438661932945,
0.04274002090096474,
-0.03132617846131325,
-0.02011800929903984,
0.08205173909664154,
0.07548333704471588,
0.037627432495355606,
0.024987302720546722,
-0.070350781083107,
-0.02066362090408802,
0.09272519499063492,
-0.0539558082818985,
0.03660527989268303,
-0.0018594961147755384,
-0.0065324860624969006,
-0.025945505127310753,
-8.399285498869415e-33,
0.04612325131893158,
-0.025320231914520264,
-0.023409347981214523,
0.0006043604807928205,
-0.01817045360803604,
-0.00433764373883605,
0.023742204532027245,
-0.032481852918863297,
0.02932717464864254,
-0.029782595112919807,
-0.07240916788578033,
-0.006355802994221449,
0.02785935066640377,
-0.034426867961883545,
0.023357084020972252,
0.0005923311109654605,
-0.10123562067747116,
-0.04499126225709915,
0.019117875024676323,
-0.01791057549417019,
0.018040789291262627,
0.042119164019823074,
0.05152527242898941,
-0.02396940253674984,
-0.029516367241740227,
-0.09886456280946732,
-0.022903071716427803,
0.037690170109272,
-0.05874685198068619,
-0.03401844576001167,
-0.054355308413505554,
0.04891819879412651,
-0.004223550204187632,
0.023121649399399757,
0.02078738808631897,
-0.04394341632723808,
0.02665640600025654,
0.10588712245225906,
0.026267049834132195,
0.06253404170274734,
0.09862980246543884,
0.045972730964422226,
-0.0921054556965828,
0.02236115373671055,
-0.035407904535532,
0.0615130253136158,
-0.012984241358935833,
-0.059562183916568756,
-0.08938892185688019,
-0.0038208183832466602,
-0.06227623298764229,
-0.027970168739557266,
0.0017762732459232211,
0.06781138479709625,
0.06266818195581436,
0.055118583142757416,
0.05966257303953171,
-0.08686928451061249,
0.005820820108056068,
-0.04216570779681206,
-0.05572321638464928,
-0.15370003879070282,
0.0061018499545753,
0.014076398685574532,
0.06901929527521133,
-0.06339963525533676,
-0.00553725054487586,
-0.010238398797810078,
-0.05588608607649803,
-0.029822813346982002,
-0.010944155976176262,
-0.07691585272550583,
-0.012120114639401436,
-0.026304427534341812,
0.03572585806250572,
-0.03863237425684929,
0.03916902840137482,
-0.11867591738700867,
-0.010028514079749584,
0.07692988216876984,
-0.043622635304927826,
0.01142069697380066,
0.008030964061617851,
-0.01622103713452816,
0.03196534886956215,
0.011094323359429836,
0.00590580003336072,
0.13717953860759735,
0.048473060131073,
0.03634461387991905,
-0.05912142992019653,
0.05152136832475662,
0.0001878649927675724,
-0.034639257937669754,
-0.059472572058439255,
-6.26165501671494e-8,
-0.12397242337465286,
-0.05813388153910637,
-0.08764471113681793,
0.08424980193376541,
0.023420164361596107,
0.04995640739798546,
0.01619390770792961,
0.056065600365400314,
-0.04025658592581749,
-0.004082954954355955,
0.09193456172943115,
0.10934097319841385,
-0.03884034603834152,
0.042613811790943146,
-0.05579116940498352,
0.019086413085460663,
-0.04723159223794937,
0.028116703033447266,
-0.019095726311206818,
-0.02855844609439373,
0.01232447475194931,
0.09284864366054535,
0.035212840884923935,
0.023769060149788857,
-0.007606180384755135,
-0.013338755816221237,
0.0174680445343256,
0.03148745372891426,
-0.05201421678066254,
-0.0009409519261680543,
-0.040297746658325195,
-0.09526833891868591,
-0.0017287302762269974,
-0.0044064875692129135,
-0.07982054352760315,
-0.005352754611521959,
-0.03801170364022255,
-0.026217110455036163,
0.04696059972047806,
-0.027458269149065018,
0.055018350481987,
0.026993177831172943,
-0.09156311303377151,
-0.01366074662655592,
-0.03041476383805275,
0.05406048148870468,
-0.07014581561088562,
0.08072146028280258,
-0.01646450161933899,
0.027029208838939667,
-0.04882232844829559,
0.035433147102594376,
0.0810789242386818,
0.03334662690758705,
0.0017479242524132133,
0.01558100339025259,
0.12699250876903534,
-0.06860747933387756,
0.04469171538949013,
0.016283908858895302,
0.036642782390117645,
0.012773563154041767,
0.01813879981637001,
-0.08330579847097397
] | 0.09687 |
} } } ``` ### boot-md Runs `BOOT.md` when the gateway starts (after channels start). Internal hooks must be enabled for this to run. \*\*Events\*\*: `gateway:startup` \*\*Requirements\*\*: `workspace.dir` must be configured \*\*What it does\*\*: 1. Reads `BOOT.md` from your workspace 2. Runs the instructions via the agent runner 3. Sends any requested outbound messages via the message tool \*\*Enable\*\*: ```bash openclaw hooks enable boot-md ``` ## Best Practices ### Keep Handlers Fast Hooks run during command processing. Keep them lightweight: ```typescript // ✓ Good - async work, returns immediately const handler: HookHandler = async (event) => { void processInBackground(event); // Fire and forget }; // ✗ Bad - blocks command processing const handler: HookHandler = async (event) => { await slowDatabaseQuery(event); await evenSlowerAPICall(event); }; ``` ### Handle Errors Gracefully Always wrap risky operations: ```typescript const handler: HookHandler = async (event) => { try { await riskyOperation(event); } catch (err) { console.error("[my-handler] Failed:", err instanceof Error ? err.message : String(err)); // Don't throw - let other handlers run } }; ``` ### Filter Events Early Return early if the event isn't relevant: ```typescript const handler: HookHandler = async (event) => { // Only handle 'new' commands if (event.type !== "command" || event.action !== "new") { return; } // Your logic here }; ``` ### Use Specific Event Keys Specify exact events in metadata when possible: ```yaml metadata: { "openclaw": { "events": ["command:new"] } } # Specific ``` Rather than: ```yaml metadata: { "openclaw": { "events": ["command"] } } # General - more overhead ``` ## Debugging ### Enable Hook Logging The gateway logs hook loading at startup: ``` Registered hook: session-memory -> command:new Registered hook: command-logger -> command Registered hook: boot-md -> gateway:startup ``` ### Check Discovery List all discovered hooks: ```bash openclaw hooks list --verbose ``` ### Check Registration In your handler, log when it's called: ```typescript const handler: HookHandler = async (event) => { console.log("[my-handler] Triggered:", event.type, event.action); // Your logic }; ``` ### Verify Eligibility Check why a hook isn't eligible: ```bash openclaw hooks info my-hook ``` Look for missing requirements in the output. ## Testing ### Gateway Logs Monitor gateway logs to see hook execution: ```bash # macOS ./scripts/clawlog.sh -f # Other platforms tail -f ~/.openclaw/gateway.log ``` ### Test Hooks Directly Test your handlers in isolation: ```typescript import { test } from "vitest"; import { createHookEvent } from "./src/hooks/hooks.js"; import myHandler from "./hooks/my-hook/handler.js"; test("my handler works", async () => { const event = createHookEvent("command", "new", "test-session", { foo: "bar", }); await myHandler(event); // Assert side effects }); ``` ## Architecture ### Core Components - \*\*`src/hooks/types.ts`\*\*: Type definitions - \*\*`src/hooks/workspace.ts`\*\*: Directory scanning and loading - \*\*`src/hooks/frontmatter.ts`\*\*: HOOK.md metadata parsing - \*\*`src/hooks/config.ts`\*\*: Eligibility checking - \*\*`src/hooks/hooks-status.ts`\*\*: Status reporting - \*\*`src/hooks/loader.ts`\*\*: Dynamic module loader - \*\*`src/cli/hooks-cli.ts`\*\*: CLI commands - \*\*`src/gateway/server-startup.ts`\*\*: Loads hooks at gateway start - \*\*`src/auto-reply/reply/commands-core.ts`\*\*: Triggers command events ### Discovery Flow ``` Gateway startup ↓ Scan directories (workspace → managed → bundled) ↓ Parse HOOK.md files ↓ Check eligibility (bins, env, config, os) ↓ Load handlers from eligible hooks ↓ Register handlers for events ``` ### Event Flow ``` User sends /new ↓ Command validation ↓ Create hook event ↓ Trigger hook (all registered handlers) ↓ Command processing continues ↓ Session reset ``` ## Troubleshooting ### Hook Not Discovered 1. Check directory structure: ```bash ls -la ~/.openclaw/hooks/my-hook/ # Should show: HOOK.md, handler.ts ``` 2. Verify HOOK.md format: ```bash cat ~/.openclaw/hooks/my-hook/HOOK.md # Should have YAML frontmatter with name and metadata ``` 3. List all discovered hooks: ```bash openclaw hooks list ``` ### Hook Not Eligible Check requirements: ```bash openclaw hooks info my-hook ``` Look for missing: - Binaries (check | https://github.com/openclaw/openclaw/blob/main//docs/hooks.md | main | opebclaw | [
0.0010862078052014112,
-0.015493616461753845,
-0.08568913489580154,
0.05915851145982742,
0.028975732624530792,
-0.048721905797719955,
-0.04916820675134659,
0.046435724943876266,
-0.01859908737242222,
-0.02280576154589653,
-0.06767856329679489,
0.022835465148091316,
0.015960106626152992,
-0.0009132740669883788,
0.042071398347616196,
0.10357169806957245,
0.047894660383462906,
-0.06861061602830887,
0.004001489374786615,
-0.012282622046768665,
0.011656280606985092,
-0.02131049521267414,
0.053874604403972626,
-0.03918220102787018,
-0.12370293587446213,
-0.056820742785930634,
0.000529866898432374,
-0.0440344512462616,
-0.03029470704495907,
-0.015843328088521957,
0.08247406035661697,
-0.01267924066632986,
-0.04196266829967499,
-0.012086603790521622,
0.051945820450782776,
0.1195269301533699,
0.028216160833835602,
0.022623006254434586,
-0.04934954643249512,
0.026312533766031265,
0.1268695741891861,
0.04648805037140846,
0.00942731648683548,
-0.01135208923369646,
-0.025333421304821968,
-0.11355181038379669,
-0.04112084582448006,
-0.07868160307407379,
0.0032146163284778595,
0.01750411093235016,
-0.045545581728219986,
-0.009968772530555725,
0.026637312024831772,
-0.02681109309196472,
0.027626581490039825,
0.030705196782946587,
0.016105180606245995,
-0.012186890468001366,
0.004937262739986181,
-0.11629222333431244,
0.04392717033624649,
-0.06373701244592667,
-0.032123465090990067,
0.01232974324375391,
-0.05221455544233322,
0.055091992020606995,
-0.040209975093603134,
-0.04644611105322838,
-0.0019947162363678217,
0.005195185076445341,
-0.07639472186565399,
0.02219206839799881,
-0.05196821689605713,
0.021896636113524437,
-0.05772796645760536,
-0.026662927120923996,
0.031803108751773834,
0.017557412385940552,
-0.031303100287914276,
-0.09956807643175125,
-0.06845542043447495,
-0.06279028207063675,
-0.07705803960561752,
0.05900196731090546,
-0.02168496698141098,
0.16848884522914886,
-0.004508531652390957,
-0.007454867009073496,
0.031019557267427444,
-0.030091071501374245,
0.013760068453848362,
-0.03431171178817749,
-0.01611126773059368,
0.03506908565759659,
0.05778000131249428,
0.036539752036333084,
-0.03519941493868828,
0.004809594713151455,
-0.05809316039085388,
0.07323353737592697,
-0.00989618618041277,
0.019830875098705292,
0.01848139800131321,
0.05957004800438881,
-0.04197100177407265,
0.024072114378213882,
0.06638588756322861,
0.04359437897801399,
-0.0880003497004509,
-0.05029122531414032,
0.03333253413438797,
0.03975606709718704,
0.09298040717840195,
0.03332836553454399,
0.03599431738257408,
0.04412233084440231,
0.07565784454345703,
0.016038091853260994,
0.013444224372506142,
0.0761428028345108,
0.07735133171081543,
-0.014599330723285675,
-0.009163905866444111,
-0.019774889573454857,
0.09474785625934601,
0.00835359562188387,
0.0765034556388855,
6.0532221185547855e-33,
0.04051373898983002,
-0.08399031311273575,
0.00943799503147602,
0.05194709822535515,
0.13865165412425995,
0.028633810579776764,
0.046762604266405106,
-0.01216729637235403,
-0.03200920671224594,
0.10118411481380463,
-0.009736789390444756,
-0.010404766537249088,
-0.025100281462073326,
-0.07708456367254257,
-0.009803135879337788,
-0.0504266619682312,
-0.002578631741926074,
0.021374385803937912,
0.05524853989481926,
0.016423041000962257,
0.03786967322230339,
-0.06021597236394882,
-0.05510316044092178,
0.005530289374291897,
0.045309875160455704,
-0.03586528077721596,
-0.03838684782385826,
0.012991873547434807,
0.09798451513051987,
0.01158324908465147,
0.00766425346955657,
0.052316177636384964,
-0.06743961572647095,
0.023704029619693756,
-0.0878383219242096,
-0.038127195090055466,
-0.09897014498710632,
-0.005321587901562452,
-0.006329922005534172,
-0.05047517269849777,
-0.028954459354281425,
-0.026081284508109093,
0.0016983308596536517,
-0.03454843536019325,
-0.03591664507985115,
-0.08642347902059555,
-0.07825326919555664,
0.013352633453905582,
0.1322685331106186,
0.023145092651247978,
0.05876927450299263,
-0.01209733635187149,
0.08785475790500641,
-0.03439660742878914,
0.029064182192087173,
0.0029334553983062506,
-0.06414727121591568,
-0.02871931903064251,
0.040128193795681,
0.0952383354306221,
-0.04305247589945793,
-0.03944490849971771,
-0.013103981502354145,
0.03507525473833084,
0.05390406772494316,
-0.08215971291065216,
-0.02863672748208046,
0.0063280570320785046,
-0.038316939026117325,
0.0060539813712239265,
-0.019717039540410042,
0.02733510546386242,
0.008731914684176445,
0.050521593540906906,
0.017606008797883987,
0.011128591373562813,
-0.00039946965989656746,
-0.05923330411314964,
-0.03866942599415779,
-0.025662198662757874,
0.03567906469106674,
-0.05695753172039986,
-0.04913695156574249,
0.0322280116379261,
0.08340711146593094,
0.04367363080382347,
-0.07699348032474518,
-0.10867513716220856,
0.0607542060315609,
0.09207276254892349,
-0.03736346960067749,
-0.02839810959994793,
-0.028635285794734955,
0.023685790598392487,
-0.05808461457490921,
-7.17591914060989e-33,
0.040220070630311966,
0.002817706437781453,
-0.025056373327970505,
-0.0008768595871515572,
-0.030458178371191025,
-0.00795171968638897,
0.03030730038881302,
-0.059674281626939774,
-0.05252410098910332,
-0.0010747230844572186,
-0.0336780808866024,
0.10695648938417435,
-0.035924021154642105,
-0.004025062080472708,
0.05081509053707123,
-0.028864219784736633,
0.06993966549634933,
-0.054119907319545746,
0.03435392677783966,
0.018402637913823128,
0.04389169067144394,
0.06303078681230545,
-0.07831273227930069,
0.0031000247690826654,
-0.018478509038686752,
0.04884827136993408,
0.04772704839706421,
0.1343795210123062,
-0.05971447378396988,
-0.0180849339812994,
0.008308805525302887,
0.05928315967321396,
-0.024279849603772163,
0.018253378570079803,
0.02564210817217827,
0.020885039120912552,
-0.01658777892589569,
0.03836425766348839,
0.028069589287042618,
-0.03715787082910538,
0.10039578378200531,
-0.04573137313127518,
-0.05965830758213997,
-0.02765999175608158,
-0.013513192534446716,
-0.02141178771853447,
-0.016847988590598106,
-0.0437992587685585,
-0.06609602272510529,
0.043715257197618484,
-0.02935671992599964,
-0.05564019829034805,
0.03281404823064804,
0.08370919525623322,
0.029002666473388672,
-0.007417162414640188,
0.04078219458460808,
-0.08905352652072906,
0.014523543417453766,
0.0010096777696162462,
0.0011301446938887239,
-0.013826953247189522,
0.0034688799642026424,
-0.013615516945719719,
-0.0320323146879673,
-0.09280947595834732,
-0.10806246101856232,
0.03164353966712952,
-0.027152083814144135,
0.04943418875336647,
-0.08374801278114319,
-0.013316959142684937,
-0.008511754684150219,
0.05158260092139244,
0.015212822705507278,
-0.021753588691353798,
0.030339853838086128,
-0.12605991959571838,
-0.004231850616633892,
0.0681050643324852,
-0.011287139728665352,
-0.0032818231265991926,
-0.02846594713628292,
-0.03291232883930206,
-0.04276967793703079,
0.005241542588919401,
-0.0026248262729495764,
0.07112453132867813,
0.06072954833507538,
0.02157345972955227,
-0.040544554591178894,
0.0021980414167046547,
0.012157169170677662,
-0.006860741879791021,
-0.032323308289051056,
-6.531465146508708e-8,
-0.09481444954872131,
-0.04744800180196762,
0.01107205543667078,
0.02406548149883747,
-0.0029134450014680624,
-0.05809689313173294,
0.00857654307037592,
-0.034525029361248016,
-0.04350133240222931,
-0.05311492085456848,
0.06543221324682236,
0.028148824349045753,
0.0375814326107502,
0.042874112725257874,
-0.0008715997682884336,
0.05566824972629547,
-0.049628857523202896,
-0.06197367236018181,
-0.011628111824393272,
-0.13200992345809937,
-0.03465763479471207,
-0.022251660004258156,
0.04269161820411682,
0.08057858049869537,
-0.049016471952199936,
0.013359541073441505,
0.0690377801656723,
-0.03159201145172119,
-0.002236520405858755,
0.04898425564169884,
-0.07347004115581512,
0.0009201187640428543,
0.03946303948760033,
0.004205223172903061,
-0.08525503426790237,
0.049836136400699615,
0.0583195686340332,
-0.047070518136024475,
0.09741884469985962,
-0.024734774604439735,
0.06690475344657898,
0.09666698426008224,
-0.03200523182749748,
-0.06470305472612381,
-0.045298799872398376,
-0.007237494923174381,
-0.09369518607854843,
0.11383189260959625,
0.03602345660328865,
-0.024884842336177826,
-0.04530217498540878,
0.03111726976931095,
-0.03696231171488762,
0.06746125221252441,
0.015896394848823547,
-0.045730020850896835,
0.008488706313073635,
-0.08267860859632492,
0.02969692461192608,
0.07961349189281464,
-0.028960727155208588,
-0.03147547319531441,
0.05967005714774132,
-0.09056166559457779
] | 0.071783 |
Should show: HOOK.md, handler.ts ``` 2. Verify HOOK.md format: ```bash cat ~/.openclaw/hooks/my-hook/HOOK.md # Should have YAML frontmatter with name and metadata ``` 3. List all discovered hooks: ```bash openclaw hooks list ``` ### Hook Not Eligible Check requirements: ```bash openclaw hooks info my-hook ``` Look for missing: - Binaries (check PATH) - Environment variables - Config values - OS compatibility ### Hook Not Executing 1. Verify hook is enabled: ```bash openclaw hooks list # Should show ✓ next to enabled hooks ``` 2. Restart your gateway process so hooks reload. 3. Check gateway logs for errors: ```bash ./scripts/clawlog.sh | grep hook ``` ### Handler Errors Check for TypeScript/import errors: ```bash # Test import directly node -e "import('./path/to/handler.ts').then(console.log)" ``` ## Migration Guide ### From Legacy Config to Discovery \*\*Before\*\*: ```json { "hooks": { "internal": { "enabled": true, "handlers": [ { "event": "command:new", "module": "./hooks/handlers/my-handler.ts" } ] } } } ``` \*\*After\*\*: 1. Create hook directory: ```bash mkdir -p ~/.openclaw/hooks/my-hook mv ./hooks/handlers/my-handler.ts ~/.openclaw/hooks/my-hook/handler.ts ``` 2. Create HOOK.md: ```markdown --- name: my-hook description: "My custom hook" metadata: { "openclaw": { "emoji": "🎯", "events": ["command:new"] } } --- # My Hook Does something useful. ``` 3. Update config: ```json { "hooks": { "internal": { "enabled": true, "entries": { "my-hook": { "enabled": true } } } } } ``` 4. Verify and restart your gateway process: ```bash openclaw hooks list # Should show: 🎯 my-hook ✓ ``` \*\*Benefits of migration\*\*: - Automatic discovery - CLI management - Eligibility checking - Better documentation - Consistent structure ## See Also - [CLI Reference: hooks](/cli/hooks) - [Bundled Hooks README](https://github.com/openclaw/openclaw/tree/main/src/hooks/bundled) - [Webhook Hooks](/automation/webhook) - [Configuration](/gateway/configuration#hooks) | https://github.com/openclaw/openclaw/blob/main//docs/hooks.md | main | opebclaw | [
-0.005472538061439991,
-0.04334784299135208,
-0.00032060686498880386,
0.010983345098793507,
0.021540232002735138,
-0.05528555065393448,
-0.04531914368271828,
-0.01008559949696064,
-0.058395352214574814,
0.03570153936743736,
-0.06182713434100151,
-0.0015324014239013195,
-0.045565102249383926,
0.04238848388195038,
0.10185451060533524,
0.12706932425498962,
-0.012691101059317589,
-0.08576687425374985,
0.037416327744722366,
-0.03866366297006607,
-0.024785447865724564,
0.01847827434539795,
0.07079708576202393,
-0.04717418551445007,
-0.08944086730480194,
-0.0643811747431755,
-0.05667000636458397,
-0.01769440621137619,
-0.06619875878095627,
-0.03086753375828266,
-0.02537672221660614,
0.043101225048303604,
-0.076313816010952,
-0.031998492777347565,
0.0596165731549263,
0.11994687467813492,
0.03228933736681938,
-0.03176494315266609,
-0.06905613094568253,
0.017545076087117195,
0.10529177635908127,
0.03493509441614151,
0.011710586957633495,
-0.10047273337841034,
-0.006590451113879681,
-0.07824072241783142,
-0.01108239870518446,
-0.09532832354307175,
-0.040492042899131775,
0.014875470660626888,
-0.05425412207841873,
-0.05049191042780876,
-0.04428595304489136,
-0.06684377789497375,
0.03847828134894371,
-0.03294095769524574,
0.007188263349235058,
-0.02463802509009838,
0.04838172718882561,
-0.09093862771987915,
0.037408504635095596,
-0.0037041259929537773,
-0.03380057215690613,
-0.022506076842546463,
-0.06378228962421417,
0.005688841454684734,
-0.04338352754712105,
-0.02522183395922184,
0.048988569527864456,
0.0031681577675044537,
-0.038029056042432785,
-0.011720261536538601,
-0.06962142884731293,
-0.026605866849422455,
-0.01094325166195631,
-0.07863253355026245,
0.10239792615175247,
0.03969934955239296,
-0.03620101511478424,
-0.06837483495473862,
-0.10694073885679245,
-0.021100696176290512,
-0.04567176103591919,
0.0418127067387104,
-0.018096765503287315,
0.14229156076908112,
-0.001986835151910782,
-0.007116848602890968,
0.051969993859529495,
0.04297281429171562,
0.033937737345695496,
-0.07492948323488235,
-0.03674818202853203,
0.003638343419879675,
0.011664623394608498,
0.012699173763394356,
-0.048277705907821655,
0.0673968642950058,
-0.04914693906903267,
0.076917864382267,
0.02498261258006096,
-0.030191386118531227,
0.055823832750320435,
0.03693672642111778,
-0.03151287883520126,
0.11810481548309326,
0.005864528473466635,
0.017857711762189865,
-0.01327249500900507,
-0.02452583983540535,
0.02564919926226139,
-0.012498066760599613,
0.12464900314807892,
-0.030712535604834557,
-0.024738062173128128,
0.030554287135601044,
-0.0032714721746742725,
-0.036123014986515045,
0.0045258342288434505,
0.08822131156921387,
0.09257519245147705,
0.05672592297196388,
0.03229515627026558,
-0.007247183006256819,
0.05503787845373154,
0.059264615178108215,
0.07773573696613312,
4.7050891572409674e-33,
0.04178909584879875,
-0.024085942655801773,
-0.021320000290870667,
0.06774340569972992,
0.07619068026542664,
0.021379491314291954,
0.03461182117462158,
-0.010960506275296211,
-0.12424349039793015,
0.12402088940143585,
-0.041370369493961334,
0.036297183483839035,
-0.09529516845941544,
-0.045049477368593216,
-0.014420200139284134,
0.013658380135893822,
0.007142964750528336,
-0.02019476145505905,
0.06422803550958633,
-0.0048157162964344025,
0.06436198949813843,
-0.10564322024583817,
-0.06141313537955284,
0.0296693816781044,
-0.017477503046393394,
0.04442283511161804,
0.024904893711209297,
-0.02091924659907818,
0.019138528034090996,
0.017381062731146812,
0.11681478470563889,
0.008272592909634113,
0.012766160070896149,
-0.009239930659532547,
-0.04843094199895859,
-0.0926366001367569,
-0.02958335354924202,
-0.009267031215131283,
-0.08858105540275574,
-0.04852857068181038,
0.01791119948029518,
0.03572743758559227,
-0.0634416788816452,
-0.002713017864152789,
0.06102793291211128,
-0.11442951112985611,
-0.02662830799818039,
0.08599826693534851,
0.11054018139839172,
0.08298098295927048,
-0.020935576409101486,
-0.003948010504245758,
0.12446975708007812,
-0.0026155842933803797,
-0.028328787535429,
0.05096396431326866,
-0.017838628962635994,
-0.020110459998250008,
0.02192605286836624,
0.0027546542696654797,
-0.017209485173225403,
-0.01306819822639227,
0.0065367575734853745,
-0.02099010907113552,
0.06328746676445007,
0.0047118510119616985,
0.053701139986515045,
0.05888023227453232,
0.003102579154074192,
0.05201762542128563,
-0.03781511262059212,
-0.03587689250707626,
-0.024861708283424377,
0.11575338244438171,
0.05373440310359001,
-0.04179280251264572,
-0.005718535743653774,
-0.03952140361070633,
0.05181281268596649,
-0.021402623504400253,
-0.0025060721673071384,
-0.026248078793287277,
-0.04908158257603645,
0.037167176604270935,
0.042207129299640656,
-0.006186948157846928,
0.04845697805285454,
-0.08827722072601318,
0.057139068841934204,
0.12116122990846634,
-0.04574815556406975,
-0.010390427894890308,
-0.06247328221797943,
-0.035265300422906876,
-0.05887874215841293,
-6.7735790157341e-33,
0.014594952575862408,
0.028634393587708473,
-0.09476888924837112,
0.010045175440609455,
-0.08546484261751175,
-0.05364856496453285,
0.03789985924959183,
-0.03854319453239441,
0.0453321635723114,
0.008439969271421432,
-0.010144243016839027,
0.05034064128994942,
0.09446804225444794,
-0.000023911796233733185,
0.041932106018066406,
-0.01908804476261139,
-0.0655541941523552,
-0.062286507338285446,
0.02382216416299343,
-0.006237455178052187,
-0.03148151934146881,
0.038413919508457184,
0.004896798171103001,
0.04407279193401337,
-0.025121936574578285,
0.029278049245476723,
0.06460761278867722,
0.03558127209544182,
-0.033618539571762085,
-0.019610190764069557,
0.04143670201301575,
0.061757080256938934,
-0.036564212292432785,
0.0960051640868187,
-0.027387186884880066,
-0.01619320549070835,
0.08286862820386887,
0.016209732741117477,
0.014604676514863968,
-0.027959784492850304,
0.057221706956624985,
0.03354393318295479,
-0.05848522484302521,
-0.03970646858215332,
-0.0756460577249527,
0.010371246375143528,
-0.02535516768693924,
0.015426385216414928,
-0.030452821403741837,
-0.0627276673913002,
-0.0493338368833065,
-0.01230812631547451,
0.044086992740631104,
0.005943932104855776,
-0.002031362382695079,
0.053678542375564575,
0.05724417790770531,
-0.09216569364070892,
-0.0403297021985054,
-0.03387193754315376,
-0.02843271940946579,
-0.042029574513435364,
-0.05306234955787659,
0.03175649419426918,
-0.00018750788876786828,
-0.08783058077096939,
-0.030799105763435364,
-0.011472617276012897,
0.012390526942908764,
-0.06213122233748436,
-0.06727087497711182,
-0.011722809635102749,
0.047934602946043015,
-0.07796647399663925,
0.009462588466703892,
0.024731164798140526,
0.04295601695775986,
-0.027075231075286865,
0.05868048965930939,
0.01699031889438629,
0.011237907223403454,
0.000717209477443248,
0.04137366637587547,
-0.07448733597993851,
-0.032368939369916916,
-0.016517356038093567,
0.011566447094082832,
0.11038989573717117,
0.053270332515239716,
0.04726530984044075,
-0.08142105489969254,
-0.02111516334116459,
-0.014721383340656757,
-0.026419177651405334,
-0.01692650280892849,
-5.530650781793156e-8,
-0.04676607996225357,
0.012488218024373055,
-0.08453211933374405,
0.017872167751193047,
-0.00023623835295438766,
0.01672787219285965,
0.0006351863848976791,
0.01889112964272499,
-0.06405618786811829,
0.011235637590289116,
0.0444037951529026,
0.06016828864812851,
-0.08256983011960983,
0.05223914235830307,
0.022164300084114075,
0.01328563503921032,
-0.05987023189663887,
0.03849164769053459,
-0.050937749445438385,
-0.09529228508472443,
-0.042243678122758865,
0.01087494008243084,
0.007852454669773579,
0.022456606850028038,
-0.037545330822467804,
-0.018375180661678314,
-0.02095184661448002,
-0.014617259614169598,
-0.0201092716306448,
0.038497768342494965,
-0.04188985750079155,
-0.014308002777397633,
0.045802921056747437,
-0.04871853440999985,
-0.047851331532001495,
0.007803015410900116,
0.04093143716454506,
0.05889587476849556,
0.08284369856119156,
-0.028517140075564384,
0.023837897926568985,
0.02253953367471695,
-0.08003588765859604,
-0.07286939024925232,
-0.10392866283655167,
0.01878703571856022,
-0.025167353451251984,
0.1035134494304657,
-0.004937869496643543,
0.003168469062075019,
-0.008994129486382008,
0.007199667859822512,
-0.0017791271675378084,
0.028745485469698906,
-0.016280898824334145,
0.06511411815881729,
0.020358089357614517,
-0.09598977863788605,
-0.009393868036568165,
-0.06070055067539215,
0.04496048018336296,
-0.01092545036226511,
0.08058750629425049,
-0.09375765174627304
] | 0.056303 |
# Text-to-speech (TTS) OpenClaw can convert outbound replies into audio using ElevenLabs, OpenAI, or Edge TTS. It works anywhere OpenClaw can send audio; Telegram gets a round voice-note bubble. ## Supported services - \*\*ElevenLabs\*\* (primary or fallback provider) - \*\*OpenAI\*\* (primary or fallback provider; also used for summaries) - \*\*Edge TTS\*\* (primary or fallback provider; uses `node-edge-tts`, default when no API keys) ### Edge TTS notes Edge TTS uses Microsoft Edge's online neural TTS service via the `node-edge-tts` library. It's a hosted service (not local), uses Microsoft’s endpoints, and does not require an API key. `node-edge-tts` exposes speech configuration options and output formats, but not all options are supported by the Edge service. citeturn2search0 Because Edge TTS is a public web service without a published SLA or quota, treat it as best-effort. If you need guaranteed limits and support, use OpenAI or ElevenLabs. Microsoft's Speech REST API documents a 10‑minute audio limit per request; Edge TTS does not publish limits, so assume similar or lower limits. citeturn0search3 ## Optional keys If you want OpenAI or ElevenLabs: - `ELEVENLABS\_API\_KEY` (or `XI\_API\_KEY`) - `OPENAI\_API\_KEY` Edge TTS does \*\*not\*\* require an API key. If no API keys are found, OpenClaw defaults to Edge TTS (unless disabled via `messages.tts.edge.enabled=false`). If multiple providers are configured, the selected provider is used first and the others are fallback options. Auto-summary uses the configured `summaryModel` (or `agents.defaults.model.primary`), so that provider must also be authenticated if you enable summaries. ## Service links - [OpenAI Text-to-Speech guide](https://platform.openai.com/docs/guides/text-to-speech) - [OpenAI Audio API reference](https://platform.openai.com/docs/api-reference/audio) - [ElevenLabs Text to Speech](https://elevenlabs.io/docs/api-reference/text-to-speech) - [ElevenLabs Authentication](https://elevenlabs.io/docs/api-reference/authentication) - [node-edge-tts](https://github.com/SchneeHertz/node-edge-tts) - [Microsoft Speech output formats](https://learn.microsoft.com/azure/ai-services/speech-service/rest-text-to-speech#audio-outputs) ## Is it enabled by default? No. Auto‑TTS is \*\*off\*\* by default. Enable it in config with `messages.tts.auto` or per session with `/tts always` (alias: `/tts on`). Edge TTS \*\*is\*\* enabled by default once TTS is on, and is used automatically when no OpenAI or ElevenLabs API keys are available. ## Config TTS config lives under `messages.tts` in `openclaw.json`. Full schema is in [Gateway configuration](/gateway/configuration). ### Minimal config (enable + provider) ```json5 { messages: { tts: { auto: "always", provider: "elevenlabs", }, }, } ``` ### OpenAI primary with ElevenLabs fallback ```json5 { messages: { tts: { auto: "always", provider: "openai", summaryModel: "openai/gpt-4.1-mini", modelOverrides: { enabled: true, }, openai: { apiKey: "openai\_api\_key", model: "gpt-4o-mini-tts", voice: "alloy", }, elevenlabs: { apiKey: "elevenlabs\_api\_key", baseUrl: "https://api.elevenlabs.io", voiceId: "voice\_id", modelId: "eleven\_multilingual\_v2", seed: 42, applyTextNormalization: "auto", languageCode: "en", voiceSettings: { stability: 0.5, similarityBoost: 0.75, style: 0.0, useSpeakerBoost: true, speed: 1.0, }, }, }, }, } ``` ### Edge TTS primary (no API key) ```json5 { messages: { tts: { auto: "always", provider: "edge", edge: { enabled: true, voice: "en-US-MichelleNeural", lang: "en-US", outputFormat: "audio-24khz-48kbitrate-mono-mp3", rate: "+10%", pitch: "-5%", }, }, }, } ``` ### Disable Edge TTS ```json5 { messages: { tts: { edge: { enabled: false, }, }, }, } ``` ### Custom limits + prefs path ```json5 { messages: { tts: { auto: "always", maxTextLength: 4000, timeoutMs: 30000, prefsPath: "~/.openclaw/settings/tts.json", }, }, } ``` ### Only reply with audio after an inbound voice note ```json5 { messages: { tts: { auto: "inbound", }, }, } ``` ### Disable auto-summary for long replies ```json5 { messages: { tts: { auto: "always", }, }, } ``` Then run: ``` /tts summary off ``` ### Notes on fields - `auto`: auto‑TTS mode (`off`, `always`, `inbound`, `tagged`). - `inbound` only sends audio after an inbound voice note. - `tagged` only sends audio when the reply includes `[[tts]]` tags. - `enabled`: legacy toggle (doctor migrates this to `auto`). - `mode`: `"final"` (default) or `"all"` (includes tool/block replies). - `provider`: `"elevenlabs"`, `"openai"`, or | https://github.com/openclaw/openclaw/blob/main//docs/tts.md | main | opebclaw | [
-0.09549243748188019,
-0.050130635499954224,
-0.03287956491112709,
-0.051300425082445145,
-0.026235906407237053,
-0.020714139565825462,
-0.013320008292794228,
-0.002124595222994685,
-0.0042807552963495255,
-0.06134561449289322,
-0.026731165125966072,
-0.0004347576468717307,
-0.0288332998752594,
-0.01679791696369648,
0.10542824864387512,
0.017267519608139992,
0.10730895400047302,
0.003964294213801622,
0.04194856062531471,
-0.02428281493484974,
0.07124261558055878,
0.06422144174575806,
0.00914129987359047,
-0.013138527050614357,
0.03093765117228031,
0.04902561381459236,
-0.1015501543879509,
0.0363742932677269,
0.054433826357126236,
0.013788052834570408,
0.04123656451702118,
0.062369026243686676,
0.08794410526752472,
0.027640754356980324,
-0.04268635809421539,
0.017677772790193558,
0.04859474301338196,
0.0452306903898716,
-0.08529708534479141,
-0.006859308108687401,
-0.014885663986206055,
0.022656992077827454,
-0.021083809435367584,
-0.027895454317331314,
0.041572850197553635,
-0.0807671770453453,
-0.13335399329662323,
0.0042945630848407745,
-0.06584595143795013,
0.05824759975075722,
-0.004160082899034023,
-0.06604482233524323,
0.0168499443680048,
0.08500957489013672,
-0.07276014238595963,
0.041984476149082184,
-0.004573838319629431,
0.07792819291353226,
0.031124835833907127,
0.04755290225148201,
0.024073194712400436,
-0.06265895068645477,
-0.02069663070142269,
0.0024303465615957975,
-0.08930304646492004,
0.0627499669790268,
-0.01399250328540802,
0.004524627234786749,
-0.05790753290057182,
-0.05627104640007019,
-0.014279184862971306,
-0.005407978780567646,
0.0012820303672924638,
0.049907341599464417,
-0.00696469284594059,
0.017920877784490585,
0.10625674575567245,
0.016589205712080002,
-0.05653057619929314,
0.02727081999182701,
-0.037251975387334824,
-0.06119781732559204,
-0.006740743760019541,
0.022509673610329628,
0.010967511683702469,
0.054963573813438416,
-0.03270509093999863,
0.018804987892508507,
-0.028325535356998444,
0.06799940764904022,
-0.08447222411632538,
-0.06249433755874634,
0.02168487012386322,
-0.027059637010097504,
0.07153044641017914,
0.005579657386988401,
-0.024847891181707382,
-0.07097228616476059,
-0.03750094398856163,
0.06006403639912605,
0.01366481650620699,
-0.03837481513619423,
-0.07342250645160675,
-0.11254726350307465,
-0.015264899469912052,
-0.004283808637410402,
-0.02644154243171215,
0.05770545080304146,
0.07405921816825867,
0.01607220619916916,
0.00526506407186389,
-0.02315552718937397,
0.08518971502780914,
-0.08168292045593262,
-0.0016872611595317721,
-0.04058128967881203,
-0.08588328957557678,
-0.057304829359054565,
0.16009993851184845,
0.044785261154174805,
-0.026222586631774902,
0.015794863924384117,
-0.1125209778547287,
0.03839357942342758,
0.0365869365632534,
0.029475772753357887,
0.026308609172701836,
6.211591329653287e-33,
0.056685492396354675,
0.08499832451343536,
0.005283077247440815,
-0.017239609733223915,
0.03461601585149765,
0.007813503965735435,
-0.037935711443424225,
-0.02817133441567421,
-0.029590586200356483,
-0.03920721262693405,
-0.0774783045053482,
0.028793958947062492,
0.015166140161454678,
-0.015371022745966911,
0.0009081955649890006,
-0.00737483985722065,
0.019616175442934036,
0.05745745822787285,
0.04236013442277908,
-0.060314714908599854,
0.006178857292979956,
-0.005307050887495279,
0.047031767666339874,
0.0436185784637928,
0.035164784640073776,
0.02607395499944687,
-0.007769780233502388,
-0.09400355070829391,
0.09139758348464966,
0.020371999591588974,
-0.03747166320681572,
-0.049423422664403915,
0.01282623689621687,
0.0057932063937187195,
0.057431165128946304,
0.05047926679253578,
-0.008089165203273296,
-0.0035968467127531767,
-0.0650099664926529,
-0.061371494084596634,
0.0005330523708835244,
0.05249573662877083,
-0.052188027650117874,
-0.04132723808288574,
-0.04982451722025871,
-0.09829389303922653,
-0.08362448960542679,
0.0059900362975895405,
0.044226039201021194,
-0.0015245089307427406,
-0.019749922677874565,
0.02983793057501316,
-0.041906725615262985,
0.030245225876569748,
0.016555100679397583,
-0.060830846428871155,
0.04627507925033569,
0.01240233238786459,
0.011297396384179592,
0.038228556513786316,
0.03813660517334938,
-0.05745867267251015,
0.04320065677165985,
-0.04328989237546921,
0.022087693214416504,
0.006017734762281179,
-0.0270884707570076,
-0.04165229573845863,
-0.02752971649169922,
-0.014437403529882431,
-0.048103488981723785,
0.05945957079529762,
0.02910873480141163,
0.06616164743900299,
-0.08282218873500824,
0.023210907354950905,
-0.0004213516949675977,
-0.015966443344950676,
0.04644296318292618,
0.038796693086624146,
0.02574167400598526,
0.010211857967078686,
-0.011205729097127914,
-0.002520868554711342,
0.0848155990242958,
-0.028773533180356026,
-0.007565406616777182,
-0.13067591190338135,
0.01196291483938694,
0.0841212272644043,
-0.11062992364168167,
0.018105600029230118,
-0.09637686610221863,
0.01599067449569702,
-0.04363057762384415,
-5.354982514928178e-33,
-0.1036517396569252,
0.08827034384012222,
-0.0313526950776577,
0.06595353782176971,
-0.06936284899711609,
0.02785038948059082,
0.08601803332567215,
0.017235612496733665,
-0.013531338423490524,
-0.0098325926810503,
0.027677901089191437,
0.012851317413151264,
0.10063658654689789,
-0.017331745475530624,
-0.014921552501618862,
-0.05153505131602287,
-0.01844720169901848,
-0.021927786991000175,
0.013823061250150204,
0.030101021751761436,
-0.019570989534258842,
-0.03168991208076477,
-0.052481021732091904,
0.07307147234678268,
0.027099544182419777,
0.0033262830693274736,
-0.046664975583553314,
0.007327760569751263,
0.035603467375040054,
-0.06355440616607666,
0.039063960313797,
0.038793113082647324,
-0.06834137439727783,
-0.023943673819303513,
0.0263912845402956,
0.08717481791973114,
0.05794484540820122,
0.03246151655912399,
-0.028836864978075027,
0.01797088049352169,
0.11339053511619568,
-0.01671433635056019,
-0.026150599122047424,
-0.03071749396622181,
-0.030964799225330353,
-0.015392878092825413,
-0.1194101944565773,
0.07424555718898773,
-0.10981696844100952,
-0.022429615259170532,
0.0998692661523819,
-0.02433827519416809,
0.041540149599313736,
0.05533080920577049,
-0.05425490811467171,
-0.09133734554052353,
0.01695181056857109,
0.013385276310145855,
-0.06745509803295135,
-0.020017649978399277,
0.02455468848347664,
-0.07810919731855392,
-0.026045477017760277,
-0.02442152425646782,
0.04936350882053375,
0.03029920905828476,
0.02539881132543087,
-0.007516221143305302,
-0.07954313606023788,
-0.031326647847890854,
-0.0011951527558267117,
-0.024388829246163368,
0.029934624210000038,
-0.006664523854851723,
0.037072859704494476,
0.012661593966186047,
-0.07987523078918457,
-0.08470603823661804,
-0.09035424888134003,
-0.04581829905509949,
-0.045663993805646896,
0.017807507887482643,
0.07491886615753174,
0.028736833482980728,
0.0760170966386795,
0.005075402092188597,
0.05199052765965462,
0.07849664241075516,
-0.03619265928864479,
0.0733068585395813,
-0.059952832758426666,
0.05424289405345917,
-0.0619267076253891,
0.08107291162014008,
0.06351422518491745,
-5.407439473970044e-8,
-0.07214248180389404,
-0.02583932876586914,
-0.0565887913107872,
-0.007759860251098871,
-0.07145287841558456,
0.0026340296026319265,
0.06480351090431213,
-0.037200648337602615,
0.03095630556344986,
-0.019207613542675972,
-0.01473039761185646,
-0.07951930910348892,
-0.044387929141521454,
-0.04221666604280472,
0.00790478102862835,
0.05959257483482361,
-0.013429215177893639,
-0.010210747830569744,
0.04911220818758011,
-0.10664427280426025,
0.06081005185842514,
0.05249595642089844,
-0.008170475251972675,
0.0065373205579817295,
0.009942584671080112,
-0.05406384542584419,
0.00804645475000143,
0.11322355270385742,
0.009584331884980202,
-0.00547146936878562,
-0.005868141073733568,
0.0054069445468485355,
0.028672384098172188,
-0.11556922644376755,
-0.032871901988983154,
0.00034471452818252146,
-0.02695084735751152,
0.027891147881746292,
0.048861198127269745,
0.09505966305732727,
0.019000612199306488,
0.06892777234315872,
-0.14472399652004242,
-0.025513289496302605,
-0.022150754928588867,
0.02257443405687809,
0.06265899538993835,
-0.04683288186788559,
0.011652404442429543,
-0.002667947905138135,
0.04000489413738251,
0.013875630684196949,
0.05508027970790863,
0.0197750274091959,
0.01459436397999525,
0.07353092730045319,
0.03891024366021156,
-0.07298555970191956,
0.02152663841843605,
0.09407198429107666,
-0.0013661803677678108,
0.0391567088663578,
0.058764923363924026,
0.022563310340046883
] | 0.151429 |
auto‑TTS mode (`off`, `always`, `inbound`, `tagged`). - `inbound` only sends audio after an inbound voice note. - `tagged` only sends audio when the reply includes `[[tts]]` tags. - `enabled`: legacy toggle (doctor migrates this to `auto`). - `mode`: `"final"` (default) or `"all"` (includes tool/block replies). - `provider`: `"elevenlabs"`, `"openai"`, or `"edge"` (fallback is automatic). - If `provider` is \*\*unset\*\*, OpenClaw prefers `openai` (if key), then `elevenlabs` (if key), otherwise `edge`. - `summaryModel`: optional cheap model for auto-summary; defaults to `agents.defaults.model.primary`. - Accepts `provider/model` or a configured model alias. - `modelOverrides`: allow the model to emit TTS directives (on by default). - `maxTextLength`: hard cap for TTS input (chars). `/tts audio` fails if exceeded. - `timeoutMs`: request timeout (ms). - `prefsPath`: override the local prefs JSON path (provider/limit/summary). - `apiKey` values fall back to env vars (`ELEVENLABS\_API\_KEY`/`XI\_API\_KEY`, `OPENAI\_API\_KEY`). - `elevenlabs.baseUrl`: override ElevenLabs API base URL. - `elevenlabs.voiceSettings`: - `stability`, `similarityBoost`, `style`: `0..1` - `useSpeakerBoost`: `true|false` - `speed`: `0.5..2.0` (1.0 = normal) - `elevenlabs.applyTextNormalization`: `auto|on|off` - `elevenlabs.languageCode`: 2-letter ISO 639-1 (e.g. `en`, `de`) - `elevenlabs.seed`: integer `0..4294967295` (best-effort determinism) - `edge.enabled`: allow Edge TTS usage (default `true`; no API key). - `edge.voice`: Edge neural voice name (e.g. `en-US-MichelleNeural`). - `edge.lang`: language code (e.g. `en-US`). - `edge.outputFormat`: Edge output format (e.g. `audio-24khz-48kbitrate-mono-mp3`). - See Microsoft Speech output formats for valid values; not all formats are supported by Edge. - `edge.rate` / `edge.pitch` / `edge.volume`: percent strings (e.g. `+10%`, `-5%`). - `edge.saveSubtitles`: write JSON subtitles alongside the audio file. - `edge.proxy`: proxy URL for Edge TTS requests. - `edge.timeoutMs`: request timeout override (ms). ## Model-driven overrides (default on) By default, the model \*\*can\*\* emit TTS directives for a single reply. When `messages.tts.auto` is `tagged`, these directives are required to trigger audio. When enabled, the model can emit `[[tts:...]]` directives to override the voice for a single reply, plus an optional `[[tts:text]]...[[/tts:text]]` block to provide expressive tags (laughter, singing cues, etc) that should only appear in the audio. Example reply payload: ``` Here you go. [[tts:provider=elevenlabs voiceId=pMsXgVXv3BLzUgSXRplE model=eleven\_v3 speed=1.1]] [[tts:text]](laughs) Read the song once more.[[/tts:text]] ``` Available directive keys (when enabled): - `provider` (`openai` | `elevenlabs` | `edge`) - `voice` (OpenAI voice) or `voiceId` (ElevenLabs) - `model` (OpenAI TTS model or ElevenLabs model id) - `stability`, `similarityBoost`, `style`, `speed`, `useSpeakerBoost` - `applyTextNormalization` (`auto|on|off`) - `languageCode` (ISO 639-1) - `seed` Disable all model overrides: ```json5 { messages: { tts: { modelOverrides: { enabled: false, }, }, }, } ``` Optional allowlist (disable specific overrides while keeping tags enabled): ```json5 { messages: { tts: { modelOverrides: { enabled: true, allowProvider: false, allowSeed: false, }, }, }, } ``` ## Per-user preferences Slash commands write local overrides to `prefsPath` (default: `~/.openclaw/settings/tts.json`, override with `OPENCLAW\_TTS\_PREFS` or `messages.tts.prefsPath`). Stored fields: - `enabled` - `provider` - `maxLength` (summary threshold; default 1500 chars) - `summarize` (default `true`) These override `messages.tts.\*` for that host. ## Output formats (fixed) - \*\*Telegram\*\*: Opus voice note (`opus\_48000\_64` from ElevenLabs, `opus` from OpenAI). - 48kHz / 64kbps is a good voice-note tradeoff and required for the round bubble. - \*\*Other channels\*\*: MP3 (`mp3\_44100\_128` from ElevenLabs, `mp3` from OpenAI). - 44.1kHz / 128kbps is the default balance for speech clarity. - \*\*Edge TTS\*\*: uses `edge.outputFormat` (default `audio-24khz-48kbitrate-mono-mp3`). - `node-edge-tts` accepts an `outputFormat`, but not all formats are available from the Edge service. citeturn2search0 - Output format values follow Microsoft Speech output formats (including Ogg/WebM Opus). citeturn1search0 - Telegram `sendVoice` accepts OGG/MP3/M4A; use OpenAI/ElevenLabs if you need guaranteed Opus voice notes. citeturn1search1 - If the configured Edge output format fails, OpenClaw retries with MP3. OpenAI/ElevenLabs formats are fixed; Telegram expects Opus for voice-note UX. ## Auto-TTS behavior When enabled, | https://github.com/openclaw/openclaw/blob/main//docs/tts.md | main | opebclaw | [
-0.051382869482040405,
-0.06901120394468307,
-0.03590574115514755,
-0.035734716802835464,
-0.009803238324820995,
-0.012799769639968872,
0.012733835726976395,
0.03746733441948891,
-0.01918194442987442,
-0.04074392467737198,
0.06382672488689423,
-0.06059560552239418,
-0.04097964987158775,
0.05093559995293617,
0.025912782177329063,
0.04064363241195679,
0.08096728473901749,
-0.10013680905103683,
-0.017314793542027473,
-0.047516074031591415,
0.044080812484025955,
0.0803641751408577,
0.02421456202864647,
0.03899890184402466,
-0.012470856308937073,
-0.001955408602952957,
-0.07008190453052521,
0.008358835242688656,
0.03885877504944801,
-0.04066217690706253,
-0.0037687120493501425,
0.11516807973384857,
0.054129429161548615,
0.019565250724554062,
0.015438137575984001,
-0.007318987511098385,
-0.024395417422056198,
0.01518991682678461,
-0.0668422058224678,
-0.05076137185096741,
0.06688231974840164,
-0.015083902515470982,
-0.02110033668577671,
-0.031882934272289276,
0.0037578679621219635,
-0.09294292330741882,
-0.13533619046211243,
0.000037504752981476486,
-0.03657742217183113,
0.014707577414810658,
-0.02205018512904644,
-0.03758623078465462,
0.01289420761168003,
0.08066140860319138,
-0.0239681638777256,
0.08047524094581604,
-0.018802225589752197,
0.0023884091060608625,
0.02525346726179123,
-0.027084222063422203,
0.0012637381441891193,
-0.02680061012506485,
-0.09737265110015869,
0.009379653260111809,
-0.05224762484431267,
0.03278619050979614,
-0.05233928933739662,
0.003544612554833293,
-0.057697493582963943,
0.1067584753036499,
-0.00545189855620265,
-0.026917297393083572,
0.040896542370319366,
-0.0006418097764253616,
0.066951684653759,
-0.017635179683566093,
0.026130110025405884,
0.009513386525213718,
-0.06788817048072815,
-0.03252551704645157,
-0.05335419625043869,
-0.10548414289951324,
-0.01463579572737217,
-0.019148536026477814,
-0.003201152430847287,
0.07141121476888657,
-0.022296546027064323,
-0.053229041397571564,
0.02712412178516388,
0.00894787348806858,
-0.06538750976324081,
-0.11853471398353577,
0.05181342735886574,
0.05925891920924187,
-0.029414096847176552,
0.03985932096838951,
0.006314429454505444,
-0.009259968996047974,
0.0024872974026948214,
0.08289145678281784,
0.00864956434816122,
-0.051292769610881805,
-0.044261325150728226,
0.016513707116246223,
-0.021332917734980583,
-0.026455700397491455,
0.0029168862383812666,
0.04969806969165802,
0.001928222249262035,
-0.016636405140161514,
0.017041198909282684,
-0.007053201552480459,
0.11357395350933075,
-0.05951852351427078,
-0.03166871890425682,
0.030160004273056984,
-0.02647174894809723,
0.025719279423356056,
0.11234000325202942,
0.025305328890681267,
-0.03183687478303909,
0.010984479449689388,
-0.045272160321474075,
-0.0037163097877055407,
0.09163167327642441,
0.08587713539600372,
0.020285416394472122,
7.367997213421656e-34,
0.05824178457260132,
-0.01494039036333561,
-0.051989782601594925,
0.03286713734269142,
0.08421231061220169,
0.0422406904399395,
-0.0584895983338356,
0.002344172215089202,
-0.01179489679634571,
-0.004275469109416008,
-0.04644860699772835,
0.041782088577747345,
-0.056938834488391876,
-0.03740915283560753,
-0.040621038526296616,
0.0565156452357769,
0.023125361651182175,
0.03489081934094429,
0.021431928500533104,
0.0047617643140256405,
0.06569037586450577,
-0.017186986282467842,
-0.027610009536147118,
0.02288771979510784,
0.02883073501288891,
0.11200153827667236,
-0.023239003494381905,
-0.056461408734321594,
0.035733312368392944,
0.05866514891386032,
-0.048625100404024124,
-0.007296151947230101,
0.031597800552845,
0.043769195675849915,
-0.005580059252679348,
0.0799214243888855,
-0.031084218993782997,
0.023327451199293137,
-0.051172539591789246,
-0.05842272564768791,
-0.03253496438264847,
0.02619364857673645,
-0.08164683729410172,
-0.12127706408500671,
-0.07510193437337875,
-0.12386638671159744,
-0.01855619251728058,
0.07624578475952148,
0.040293607860803604,
0.00953494943678379,
0.03564825281500816,
-0.046984538435935974,
0.011085119098424911,
0.02119850181043148,
-0.02223842218518257,
-0.06628982722759247,
0.003509259782731533,
0.07559293508529663,
0.04321589693427086,
0.06459853798151016,
0.037563927471637726,
-0.065500907599926,
0.07699395716190338,
-0.018347902223467827,
0.11324554681777954,
0.048906050622463226,
-0.007780570071190596,
-0.03164728358387947,
0.044333528727293015,
-0.048477113246917725,
-0.13351014256477356,
0.028439365327358246,
0.0036919419653713703,
0.08259104192256927,
-0.04424309730529785,
-0.017032966017723083,
-0.04032840207219124,
-0.07328400015830994,
0.0015835869126021862,
0.05717719718813896,
0.01938416250050068,
0.04540115222334862,
-0.037140198051929474,
0.05494626238942146,
0.05341699346899986,
-0.03794919699430466,
0.003892293432727456,
-0.1133088767528534,
-0.04029204323887825,
0.04855173081159592,
-0.08065967261791229,
0.02177344635128975,
0.015817195177078247,
0.06384871155023575,
-0.007511124014854431,
-3.6419511278641666e-33,
-0.019028177484869957,
0.10194680094718933,
-0.058404166251420975,
0.014699550345540047,
-0.04059165343642235,
-0.011061071418225765,
0.09462061524391174,
0.10509449988603592,
0.03045337274670601,
-0.08068335801362991,
0.08143090456724167,
0.012635599821805954,
0.022345641627907753,
-0.013363153673708439,
-0.05119916424155235,
-0.04749374836683273,
-0.028605250641703606,
-0.10600917041301727,
0.011228905990719795,
0.04631024971604347,
-0.023667706176638603,
-0.01331418938934803,
-0.05701005831360817,
0.08851313591003418,
0.021900899708271027,
0.005014549940824509,
-0.02444201335310936,
0.05353618785738945,
-0.023531928658485413,
-0.04994037002325058,
0.04709811136126518,
0.05574674904346466,
-0.09554338455200195,
-0.039108384400606155,
-0.014313858933746815,
0.05355367437005043,
0.005602458957582712,
0.09269685298204422,
0.01947563886642456,
0.05497142672538757,
0.10431431233882904,
-0.0021232818253338337,
-0.039861634373664856,
-0.014173701405525208,
-0.0416131317615509,
0.0007370887324213982,
-0.04793000966310501,
-0.0036247102543711662,
-0.06258267164230347,
-0.04128224775195122,
0.03954153135418892,
-0.07585703581571579,
0.10488546639680862,
0.026489006355404854,
-0.08041135221719742,
-0.02962934784591198,
0.06037598103284836,
-0.05968267843127251,
-0.08034221827983856,
0.004750696010887623,
0.03656335175037384,
-0.07337484508752823,
-0.027155190706253052,
-0.043898455798625946,
-0.03539615496993065,
-0.02279346063733101,
-0.006457172799855471,
-0.020298784598708153,
0.028635935857892036,
-0.05744306370615959,
-0.03647846728563309,
-0.02632077783346176,
-0.03393479436635971,
0.018262267112731934,
0.03633560985326767,
-0.05135858431458473,
-0.11594585329294205,
-0.1269269436597824,
-0.015173790045082569,
-0.011944415979087353,
-0.12666408717632294,
-0.04293679818511009,
0.032803069800138474,
0.05797877907752991,
-0.020974207669496536,
0.03742509335279465,
0.030112870037555695,
0.0880967304110527,
0.03674076497554779,
0.09992290288209915,
-0.02647288516163826,
0.06962325423955917,
-0.015202151611447334,
0.062011271715164185,
-0.061115290969610214,
-5.698690941358109e-8,
-0.04134310409426689,
-0.039733242243528366,
-0.04738989844918251,
-0.03151519224047661,
-0.0237150676548481,
-0.03143598139286041,
0.014659762382507324,
-0.026370881125330925,
0.03390892967581749,
-0.001456155558116734,
-0.0167195163667202,
0.018213707953691483,
-0.03795433044433594,
0.002028064103797078,
-0.02856539934873581,
0.03338000178337097,
0.007016919087618589,
0.03239380195736885,
-0.050111323595047,
-0.1432637721300125,
-0.026971282437443733,
0.0013198952656239271,
0.01169788558036089,
-0.03693576529622078,
0.030856965109705925,
-0.0505090095102787,
-0.019509319216012955,
0.05283172056078911,
0.011173599399626255,
0.09259313344955444,
0.019991161301732063,
0.03541195020079613,
-0.023825669661164284,
-0.004958472680300474,
-0.0823788270354271,
0.04670165106654167,
0.05263189226388931,
-0.019581539556384087,
0.018820900470018387,
-0.017433341592550278,
0.05844084545969963,
0.03757818043231964,
-0.162168487906456,
-0.03975431248545647,
-0.03097657486796379,
0.02397487685084343,
0.0811828076839447,
-0.012062125839293003,
0.06644921749830246,
0.01874326728284359,
0.01152846496552229,
0.03457888960838318,
-0.006594603881239891,
0.01505866926163435,
0.04035056754946709,
0.035633914172649384,
0.07902245968580246,
-0.0564965195953846,
0.028492016717791557,
-0.0012274099281057715,
-0.02417697384953499,
-0.031124379485845566,
0.028494415804743767,
-0.022529182955622673
] | 0.130091 |
Microsoft Speech output formats (including Ogg/WebM Opus). citeturn1search0 - Telegram `sendVoice` accepts OGG/MP3/M4A; use OpenAI/ElevenLabs if you need guaranteed Opus voice notes. citeturn1search1 - If the configured Edge output format fails, OpenClaw retries with MP3. OpenAI/ElevenLabs formats are fixed; Telegram expects Opus for voice-note UX. ## Auto-TTS behavior When enabled, OpenClaw: - skips TTS if the reply already contains media or a `MEDIA:` directive. - skips very short replies (< 10 chars). - summarizes long replies when enabled using `agents.defaults.model.primary` (or `summaryModel`). - attaches the generated audio to the reply. If the reply exceeds `maxLength` and summary is off (or no API key for the summary model), audio is skipped and the normal text reply is sent. ## Flow diagram ``` Reply -> TTS enabled? no -> send text yes -> has media / MEDIA: / short? yes -> send text no -> length > limit? no -> TTS -> attach audio yes -> summary enabled? no -> send text yes -> summarize (summaryModel or agents.defaults.model.primary) -> TTS -> attach audio ``` ## Slash command usage There is a single command: `/tts`. See [Slash commands](/tools/slash-commands) for enablement details. Discord note: `/tts` is a built-in Discord command, so OpenClaw registers `/voice` as the native command there. Text `/tts ...` still works. ``` /tts off /tts always /tts inbound /tts tagged /tts status /tts provider openai /tts limit 2000 /tts summary off /tts audio Hello from OpenClaw ``` Notes: - Commands require an authorized sender (allowlist/owner rules still apply). - `commands.text` or native command registration must be enabled. - `off|always|inbound|tagged` are per‑session toggles (`/tts on` is an alias for `/tts always`). - `limit` and `summary` are stored in local prefs, not the main config. - `/tts audio` generates a one-off audio reply (does not toggle TTS on). ## Agent tool The `tts` tool converts text to speech and returns a `MEDIA:` path. When the result is Telegram-compatible, the tool includes `[[audio\_as\_voice]]` so Telegram sends a voice bubble. ## Gateway RPC Gateway methods: - `tts.status` - `tts.enable` - `tts.disable` - `tts.convert` - `tts.setProvider` - `tts.providers` | https://github.com/openclaw/openclaw/blob/main//docs/tts.md | main | opebclaw | [
-0.04857971519231796,
-0.011227593757212162,
-0.013035494834184647,
-0.04269237816333771,
-0.023278800770640373,
0.020634351298213005,
-0.07655279338359833,
0.03763705492019653,
0.045643631368875504,
-0.01814972050487995,
-0.026574190706014633,
-0.0474974662065506,
-0.09103108942508698,
0.005631768144667149,
0.032550111413002014,
0.025450069457292557,
0.05880274996161461,
-0.05352328345179558,
0.012544658035039902,
-0.02720475383102894,
0.09010056406259537,
0.06827587634325027,
0.06708315014839172,
0.0085188252851367,
0.05722152441740036,
-0.0020526822190731764,
-0.11910974234342575,
0.04544764384627342,
0.05127021297812462,
-0.034214235842227936,
0.06264953315258026,
0.06086079776287079,
0.13479191064834595,
0.020072776824235916,
0.008263988420367241,
0.0407545268535614,
-0.008735616691410542,
-0.003563186852261424,
-0.08643054217100143,
-0.01169531513005495,
0.01598050445318222,
0.03400013968348503,
-0.042141031473875046,
-0.042469196021556854,
-0.01795426942408085,
-0.06854332983493805,
-0.09450690448284149,
0.016287343576550484,
-0.0422464944422245,
0.10214655846357346,
-0.08959416300058365,
-0.05033570155501366,
-0.017181891947984695,
0.106361985206604,
-0.03675302490592003,
-0.002898290753364563,
0.0026128769386559725,
0.07013627141714096,
0.04149264097213745,
-0.03497554361820221,
-0.04788397252559662,
-0.07457563281059265,
-0.061118900775909424,
-0.013375918380916119,
-0.031933460384607315,
0.042185913771390915,
-0.03716854378581047,
0.053139589726924896,
-0.10268520563840866,
-0.026716001331806183,
0.026285698637366295,
-0.02684079296886921,
-0.0037784185260534286,
0.045569125562906265,
-0.020351845771074295,
0.024226143956184387,
0.06006966158747673,
0.035342734307050705,
-0.08429739624261856,
-0.014002308249473572,
-0.002644781256094575,
-0.0508212074637413,
-0.0017651404486969113,
-0.021503517404198647,
0.019994931295514107,
0.049831703305244446,
0.0010567755671218038,
0.006437576375901699,
-0.00678809592500329,
0.006527801975607872,
-0.03600980341434479,
-0.05991406738758087,
0.03589445352554321,
-0.0005589321372099221,
0.10270557552576065,
0.0418207049369812,
-0.01564202643930912,
-0.049708012491464615,
0.02157808095216751,
0.05729829892516136,
0.06511769443750381,
-0.01070286426693201,
-0.03002830594778061,
-0.0889672115445137,
-0.03861987590789795,
-0.0017580061685293913,
0.06483320891857147,
0.12062329053878784,
0.013179145753383636,
-0.04762551560997963,
0.030629940330982208,
-0.033255401998758316,
0.12354739010334015,
-0.07458359003067017,
0.04165443032979965,
-0.03406534716486931,
-0.04516085237264633,
-0.0500449500977993,
0.04969356581568718,
0.01276908814907074,
0.012063393369317055,
-0.013955884613096714,
-0.09055212885141373,
0.013837435282766819,
0.01672353409230709,
0.05630479380488396,
0.09788384288549423,
6.484407405431817e-33,
0.041049640625715256,
0.025414125993847847,
-0.056359514594078064,
0.02707117237150669,
0.008806777186691761,
0.03462102264165878,
-0.0552515871822834,
0.04270171746611595,
-0.06922842562198639,
-0.05184200033545494,
-0.05175942927598953,
-0.004207154735922813,
-0.03778361529111862,
-0.014323946088552475,
-0.09564844518899918,
0.009682079777121544,
0.0028940746560692787,
0.10820644348859787,
0.02216733805835247,
-0.003382671857252717,
0.03531460464000702,
-0.03494816645979881,
0.007369278930127621,
0.04009038209915161,
0.06536653637886047,
0.08267520368099213,
0.029318246990442276,
-0.11996281147003174,
-0.03190060704946518,
0.006409798748791218,
-0.049886222928762436,
0.00878281518816948,
0.0019376262789592147,
-0.008707476779818535,
-0.00006691943417536095,
0.011164233088493347,
-0.08664791285991669,
0.023287329822778702,
-0.016210483387112617,
-0.0827585980296135,
-0.03773357346653938,
0.032872818410396576,
-0.028224699199199677,
-0.06988082826137543,
-0.04538395255804062,
-0.07070089131593704,
-0.04797567054629326,
0.018216582015156746,
0.04946376755833626,
0.04513629525899887,
0.07340158522129059,
0.04937354475259781,
-0.03927008807659149,
0.0727863758802414,
0.04092779383063316,
-0.05367213860154152,
0.05810006335377693,
-0.01154969073832035,
-0.012378044426441193,
0.03139442950487137,
0.06409580260515213,
0.03263307362794876,
0.029468178749084473,
-0.04013156518340111,
0.051860224455595016,
0.03364047035574913,
-0.03355272859334946,
-0.005003504455089569,
0.04875447601079941,
-0.01043762732297182,
-0.06074844300746918,
0.011301177553832531,
0.0036003077402710915,
0.09988464415073395,
-0.07089342176914215,
-0.04787164181470871,
0.018117567524313927,
-0.038485392928123474,
0.0391862615942955,
0.025940848514437675,
-0.020736979320645332,
0.030004773288965225,
0.01162960659712553,
-0.025644369423389435,
0.029988016933202744,
0.021397672593593597,
0.032589852809906006,
-0.13904796540737152,
-0.035393111407756805,
0.06763501465320587,
-0.059451062232255936,
0.03692423552274704,
-0.10944733023643494,
0.07336612045764923,
0.03507665544748306,
-5.011783714894164e-33,
-0.014631964266300201,
0.08942330628633499,
-0.0197527427226305,
0.019084183499217033,
-0.0327862873673439,
0.029949447140097618,
0.05281473696231842,
0.07960552722215652,
0.01815364696085453,
-0.019079599529504776,
0.0736505538225174,
-0.054138150066137314,
0.036119867116212845,
-0.023668663576245308,
0.02301199734210968,
-0.10384241491556168,
0.03199096769094467,
-0.061740342527627945,
0.02603965625166893,
0.027569901198148727,
-0.001936601591296494,
-0.030354397371411324,
-0.044500965625047684,
0.0955900102853775,
0.03366176038980484,
0.04711167886853218,
-0.03223324194550514,
-0.007809201255440712,
0.05654839426279068,
-0.04354187846183777,
0.05959073454141617,
0.04092710465192795,
-0.11300968378782272,
-0.07240822911262512,
0.05321917310357094,
0.07432901859283447,
0.06280691921710968,
0.05390585586428642,
0.02826152928173542,
0.043385040014982224,
0.13551226258277893,
0.0058945282362401485,
-0.05504406616091728,
-0.010874209925532341,
-0.025223813951015472,
-0.05451134219765663,
-0.05116413161158562,
0.030057337135076523,
-0.08189897239208221,
-0.01567493937909603,
0.06320144981145859,
-0.03075536899268627,
0.04651685804128647,
-0.018329959362745285,
-0.027904087677598,
-0.06425826996564865,
0.02613227814435959,
-0.0888160839676857,
-0.08622525632381439,
-0.054607994854450226,
0.010840042494237423,
-0.049778297543525696,
-0.0035358471795916557,
-0.08321274816989899,
0.03539353236556053,
0.02739238552749157,
0.07753836363554001,
-0.007365054916590452,
-0.008373438380658627,
0.0117235342040658,
0.02719183638691902,
-0.018744664266705513,
0.057317040860652924,
0.005568571388721466,
0.07964179664850235,
0.0419791154563427,
-0.11848735809326172,
-0.04214244335889816,
-0.05895562097430229,
-0.05340583994984627,
-0.029070716351270676,
0.05611284449696541,
0.07537338882684708,
0.039312005043029785,
0.06811051815748215,
0.03915015235543251,
0.03346112370491028,
0.023321764543652534,
-0.04602663591504097,
0.11654345691204071,
-0.046173080801963806,
0.04184158146381378,
0.050665233284235,
0.08280215412378311,
0.033022984862327576,
-5.156474003342737e-8,
-0.0946161150932312,
-0.03523159772157669,
-0.03450991213321686,
-0.0151425302028656,
-0.08182176947593689,
-0.006656307727098465,
-0.008966028690338135,
-0.05867740139365196,
0.005361264571547508,
-0.01872745156288147,
0.019999181851744652,
-0.01734609156847,
-0.053527239710092545,
-0.02444964461028576,
-0.033401008695364,
0.032142069190740585,
-0.055751193314790726,
-0.05457846447825432,
-0.008573314175009727,
-0.11024760454893112,
0.0975557267665863,
0.02990579605102539,
-0.024964584037661552,
0.015393639914691448,
-0.03057612106204033,
-0.0669647753238678,
0.002839956898242235,
0.10885660350322723,
-0.022951925173401833,
-0.03318534791469574,
0.021220743656158447,
0.010251002386212349,
-0.050021104514598846,
-0.03412432223558426,
-0.05451227352023125,
0.0341971293091774,
0.02738218382000923,
0.015464672818779945,
-0.010621185414493084,
0.018802447244524956,
0.04460014030337334,
0.055930107831954956,
-0.14155073463916779,
-0.056643784046173096,
-0.02296963706612587,
0.0020318899769335985,
0.02652580849826336,
-0.09064298123121262,
-0.021070508286356926,
-0.014912542887032032,
-0.002332995180040598,
-0.010653888806700706,
-0.011423948220908642,
0.07651380449533463,
0.01386425644159317,
-0.001786998938769102,
0.06679035723209381,
-0.019242389127612114,
0.05168360099196434,
0.01946127600967884,
0.009133565239608288,
0.008275406435132027,
0.042624689638614655,
-0.032602403312921524
] | 0.145871 |
# Perplexity Sonar OpenClaw can use Perplexity Sonar for the `web\_search` tool. You can connect through Perplexity’s direct API or via OpenRouter. ## API options ### Perplexity (direct) - Base URL: https://api.perplexity.ai - Environment variable: `PERPLEXITY\_API\_KEY` ### OpenRouter (alternative) - Base URL: https://openrouter.ai/api/v1 - Environment variable: `OPENROUTER\_API\_KEY` - Supports prepaid/crypto credits. ## Config example ```json5 { tools: { web: { search: { provider: "perplexity", perplexity: { apiKey: "pplx-...", baseUrl: "https://api.perplexity.ai", model: "perplexity/sonar-pro", }, }, }, }, } ``` ## Switching from Brave ```json5 { tools: { web: { search: { provider: "perplexity", perplexity: { apiKey: "pplx-...", baseUrl: "https://api.perplexity.ai", }, }, }, }, } ``` If both `PERPLEXITY\_API\_KEY` and `OPENROUTER\_API\_KEY` are set, set `tools.web.search.perplexity.baseUrl` (or `tools.web.search.perplexity.apiKey`) to disambiguate. If no base URL is set, OpenClaw chooses a default based on the API key source: - `PERPLEXITY\_API\_KEY` or `pplx-...` → direct Perplexity (`https://api.perplexity.ai`) - `OPENROUTER\_API\_KEY` or `sk-or-...` → OpenRouter (`https://openrouter.ai/api/v1`) - Unknown key formats → OpenRouter (safe fallback) ## Models - `perplexity/sonar` — fast Q&A with web search - `perplexity/sonar-pro` (default) — multi-step reasoning + web search - `perplexity/sonar-reasoning-pro` — deep research See [Web tools](/tools/web) for the full web\_search configuration. | https://github.com/openclaw/openclaw/blob/main//docs/perplexity.md | main | opebclaw | [
-0.06673751771450043,
-0.0034385707695037127,
-0.035691309720277786,
0.00907264743000269,
0.052244603633880615,
-0.08509131520986557,
-0.11513430625200272,
-0.051758721470832825,
0.00344583741389215,
-0.06959521025419235,
0.038431111723184586,
-0.06441735476255417,
-0.021821891888976097,
0.026436500251293182,
0.08499458432197571,
0.10042072832584381,
-0.007015273906290531,
0.04385070502758026,
-0.024958603084087372,
-0.06265674531459808,
0.04125747084617615,
0.039012983441352844,
-0.010880176909267902,
-0.10836026072502136,
-0.0929640606045723,
-0.054682403802871704,
0.026425929740071297,
0.014285187236964703,
0.011549894697964191,
0.0038073440082371235,
0.06593770533800125,
0.004717501811683178,
-0.0177509393543005,
-0.011714713647961617,
0.023557541891932487,
0.020779620856046677,
-0.01769549772143364,
-0.05914115160703659,
0.01767471618950367,
-0.01744183525443077,
0.0750204473733902,
0.024458713829517365,
-0.08226767927408218,
-0.04797833785414696,
-0.06251100450754166,
-0.11759676784276962,
-0.02291351556777954,
-0.07840415090322495,
0.02687971480190754,
0.01650545932352543,
-0.10914470255374908,
-0.12272520363330841,
-0.011703161522746086,
-0.1037534549832344,
-0.09783127903938293,
-0.014809519052505493,
-0.02824939787387848,
-0.0023395109456032515,
0.004675203934311867,
-0.07585230469703674,
0.08946088701486588,
-0.034343820065259933,
0.010816450230777264,
-0.02791871875524521,
-0.09038609266281128,
0.02389170601963997,
-0.007196798920631409,
0.0032970760948956013,
0.025408806279301643,
-0.04167088121175766,
0.058027591556310654,
0.0008033032645471394,
0.07201116532087326,
-0.03935755416750908,
0.014323720708489418,
0.028965020552277565,
0.017095275223255157,
0.007207617629319429,
0.012164748273789883,
-0.01958422362804413,
-0.10086610168218613,
-0.13692796230316162,
-0.040946874767541885,
0.04715811461210251,
0.03194369003176689,
0.08722957223653793,
0.01907157339155674,
-0.04042191058397293,
0.04990198835730553,
-0.016504891216754913,
-0.0312005877494812,
-0.1397663652896881,
-0.09558602422475815,
-0.06151360273361206,
0.0431179516017437,
0.031369730830192566,
-0.04792137071490288,
-0.0626998245716095,
-0.027615679427981377,
0.015284175984561443,
-0.030786389485001564,
-0.017871731892228127,
0.006863014306873083,
-0.039647676050662994,
0.014347163960337639,
0.07912769913673401,
0.025494448840618134,
0.09137094020843506,
0.07814003527164459,
0.03363915532827377,
-0.025675345212221146,
0.026577303186058998,
0.1177992969751358,
-0.052998557686805725,
-0.02119383215904236,
0.07349604368209839,
-0.11388463526964188,
0.0007972636958584189,
0.14282606542110443,
0.038729842752218246,
0.09072370082139969,
0.024117352440953255,
-0.03228070214390755,
0.03270072117447853,
0.09050249308347702,
0.014325408264994621,
0.013885735534131527,
4.594599300419396e-33,
0.07144209742546082,
0.014862519688904285,
-0.006543280091136694,
0.007034976501017809,
0.06283599138259888,
-0.013929839245975018,
0.06426674872636795,
0.02263599820435047,
-0.041822947561740875,
0.06762070208787918,
-0.03361039608716965,
0.11390791833400726,
-0.05653036758303642,
-0.07697793841362,
-0.04718514531850815,
-0.019603487104177475,
-0.0016842558979988098,
-0.03668299317359924,
0.012433887459337711,
0.034558914601802826,
0.06352303177118301,
-0.0004674142983276397,
-0.014410015195608139,
-0.012739489786326885,
0.06367594748735428,
0.05767917260527611,
0.0016224761493504047,
-0.035889677703380585,
0.0017087989253923297,
0.045539211481809616,
0.0417778454720974,
0.02326655574142933,
-0.025496995076537132,
0.025554096326231956,
0.04743247851729393,
0.08451728522777557,
-0.01302990224212408,
0.043520331382751465,
-0.09480668604373932,
-0.015653599053621292,
0.02903612144291401,
-0.031950294971466064,
-0.0682515949010849,
-0.03983583301305771,
-0.016930481418967247,
-0.0950016900897026,
-0.09054965525865555,
-0.016798097640275955,
0.07700642198324203,
0.0029038945212960243,
-0.069313183426857,
0.01910722441971302,
-0.047140344977378845,
-0.034788843244314194,
0.007209744304418564,
-0.0543571412563324,
0.04586651921272278,
0.023847751319408417,
-0.051894158124923706,
-0.022539472207427025,
-0.04729928821325302,
0.004624039866030216,
-0.0017043111147359014,
0.00020969199249520898,
0.01514581311494112,
0.0592615082859993,
-0.03003757819533348,
0.03640586882829666,
0.011449888348579407,
0.05174637585878372,
0.004129855427891016,
0.054065924137830734,
0.04488685727119446,
0.03880462795495987,
-0.05232292041182518,
-0.06426355242729187,
-0.03301786258816719,
0.02290123887360096,
0.13483482599258423,
-0.05304611101746559,
-0.01952853985130787,
0.013564281165599823,
-0.007245618384331465,
0.09209081530570984,
0.020209738984704018,
0.07273198664188385,
-0.03830622881650925,
-0.010996175929903984,
0.03141167759895325,
0.00533728813752532,
0.007751865312457085,
0.05239536985754967,
-0.03659156709909439,
-0.03472621366381645,
-0.0548895001411438,
-6.297170991812996e-33,
-0.06620073318481445,
-0.0388127937912941,
0.027807215228676796,
0.06245158985257149,
0.00507748406380415,
-0.04469120502471924,
0.08721423894166946,
0.023993711918592453,
0.05468194559216499,
0.07474460452795029,
-0.03999106213450432,
-0.013889634981751442,
0.0607169084250927,
-0.017232436686754227,
0.030564824119210243,
0.008382784202694893,
-0.06726393848657608,
0.008186069317162037,
0.07005039602518082,
0.0314507819712162,
-0.06142482906579971,
0.057173509150743484,
-0.02769327722489834,
0.002694325987249613,
0.06867058575153351,
-0.01174857746809721,
0.017278850078582764,
0.0077998461201786995,
-0.017160644754767418,
-0.06112053617835045,
-0.011646372266113758,
0.08750656992197037,
-0.008633722551167011,
-0.042607858777046204,
-0.01386589277535677,
0.03908563032746315,
0.016508640721440315,
0.12947137653827667,
0.016037557274103165,
-0.008211352862417698,
0.029508747160434723,
-0.06653279811143875,
-0.06962823122739792,
0.008046159520745277,
-0.04563715308904648,
0.012127280235290527,
-0.02219255268573761,
0.04333382472395897,
-0.0027079295832663774,
-0.030192334204912186,
0.040410421788692474,
0.041841089725494385,
0.010468455031514168,
-0.03559955954551697,
-0.037780046463012695,
0.049114473164081573,
0.0379645973443985,
-0.040983233600854874,
-0.00655039818957448,
0.04011840745806694,
-0.026530863717198372,
-0.03909574821591377,
-0.020455794408917427,
0.11380364000797272,
0.005412169266492128,
0.004274327307939529,
-0.03831733763217926,
0.05127100646495819,
-0.05898050591349602,
-0.06210749223828316,
-0.08905971795320511,
-0.0666368305683136,
0.0979362279176712,
-0.0033856562804430723,
0.06533482670783997,
-0.038051068782806396,
-0.03951343521475792,
0.008119281381368637,
0.07355229556560516,
0.05656218156218529,
0.011480182409286499,
0.010379863902926445,
0.01502053253352642,
-0.013242986053228378,
0.04603134095668793,
0.03884730488061905,
0.004838468972593546,
0.08905813097953796,
-0.004003058187663555,
0.012671426869928837,
-0.00793058704584837,
0.031281523406505585,
-0.07033254206180573,
0.002368593355640769,
0.02956664375960827,
-5.4385985492899636e-8,
-0.016715122386813164,
0.014280609786510468,
-0.0789688378572464,
0.011639365926384926,
0.046129532158374786,
0.024841468781232834,
-0.02456491068005562,
-0.0028866322245448828,
-0.059128377586603165,
0.06861892342567444,
0.016643036156892776,
0.05640884116292,
-0.08333802223205566,
0.01178213395178318,
-0.09035388380289078,
0.07329379767179489,
-0.045791685581207275,
-0.06355760246515274,
0.03392995148897171,
-0.08600364625453949,
-0.008512022905051708,
0.028197018429636955,
-0.01319933496415615,
-0.017326543107628822,
0.011883589439094067,
-0.031660113483667374,
-0.027410782873630524,
0.03395601734519005,
-0.03173253685235977,
-0.013172769919037819,
-0.1046857163310051,
-0.02991189993917942,
-0.026471391320228577,
-0.005593541078269482,
-0.011038883589208126,
0.04224647209048271,
-0.00006634661986026913,
-0.027822036296129227,
-0.037426214665174484,
0.04646891728043556,
0.07048005610704422,
0.061160609126091,
-0.05749864503741264,
-0.0545060858130455,
0.041741807013750076,
0.06685677915811539,
0.011502226814627647,
-0.047401063144207,
0.08663766086101532,
0.0005671114777214825,
-0.05685288831591606,
-0.04552413895726204,
0.043922215700149536,
0.0004602546396199614,
-0.00902694184333086,
0.09641595929861069,
0.004169110208749771,
-0.09711072593927383,
-0.06201395392417908,
0.045905701816082,
0.057301826775074005,
-0.02620949223637581,
0.07806772738695145,
-0.04313749074935913
] | 0.008942 |
# Pi Integration Architecture This document describes how OpenClaw integrates with [pi-coding-agent](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent) and its sibling packages (`pi-ai`, `pi-agent-core`, `pi-tui`) to power its AI agent capabilities. ## Overview OpenClaw uses the pi SDK to embed an AI coding agent into its messaging gateway architecture. Instead of spawning pi as a subprocess or using RPC mode, OpenClaw directly imports and instantiates pi's `AgentSession` via `createAgentSession()`. This embedded approach provides: - Full control over session lifecycle and event handling - Custom tool injection (messaging, sandbox, channel-specific actions) - System prompt customization per channel/context - Session persistence with branching/compaction support - Multi-account auth profile rotation with failover - Provider-agnostic model switching ## Package Dependencies ```json { "@mariozechner/pi-agent-core": "0.49.3", "@mariozechner/pi-ai": "0.49.3", "@mariozechner/pi-coding-agent": "0.49.3", "@mariozechner/pi-tui": "0.49.3" } ``` | Package | Purpose | | ----------------- | ------------------------------------------------------------------------------------------------------ | | `pi-ai` | Core LLM abstractions: `Model`, `streamSimple`, message types, provider APIs | | `pi-agent-core` | Agent loop, tool execution, `AgentMessage` types | | `pi-coding-agent` | High-level SDK: `createAgentSession`, `SessionManager`, `AuthStorage`, `ModelRegistry`, built-in tools | | `pi-tui` | Terminal UI components (used in OpenClaw's local TUI mode) | ## File Structure ``` src/agents/ ├── pi-embedded-runner.ts # Re-exports from pi-embedded-runner/ ├── pi-embedded-runner/ │ ├── run.ts # Main entry: runEmbeddedPiAgent() │ ├── run/ │ │ ├── attempt.ts # Single attempt logic with session setup │ │ ├── params.ts # RunEmbeddedPiAgentParams type │ │ ├── payloads.ts # Build response payloads from run results │ │ ├── images.ts # Vision model image injection │ │ └── types.ts # EmbeddedRunAttemptResult │ ├── abort.ts # Abort error detection │ ├── cache-ttl.ts # Cache TTL tracking for context pruning │ ├── compact.ts # Manual/auto compaction logic │ ├── extensions.ts # Load pi extensions for embedded runs │ ├── extra-params.ts # Provider-specific stream params │ ├── google.ts # Google/Gemini turn ordering fixes │ ├── history.ts # History limiting (DM vs group) │ ├── lanes.ts # Session/global command lanes │ ├── logger.ts # Subsystem logger │ ├── model.ts # Model resolution via ModelRegistry │ ├── runs.ts # Active run tracking, abort, queue │ ├── sandbox-info.ts # Sandbox info for system prompt │ ├── session-manager-cache.ts # SessionManager instance caching │ ├── session-manager-init.ts # Session file initialization │ ├── system-prompt.ts # System prompt builder │ ├── tool-split.ts # Split tools into builtIn vs custom │ ├── types.ts # EmbeddedPiAgentMeta, EmbeddedPiRunResult │ └── utils.ts # ThinkLevel mapping, error description ├── pi-embedded-subscribe.ts # Session event subscription/dispatch ├── pi-embedded-subscribe.types.ts # SubscribeEmbeddedPiSessionParams ├── pi-embedded-subscribe.handlers.ts # Event handler factory ├── pi-embedded-subscribe.handlers.lifecycle.ts ├── pi-embedded-subscribe.handlers.types.ts ├── pi-embedded-block-chunker.ts # Streaming block reply chunking ├── pi-embedded-messaging.ts # Messaging tool sent tracking ├── pi-embedded-helpers.ts # Error classification, turn validation ├── pi-embedded-helpers/ # Helper modules ├── pi-embedded-utils.ts # Formatting utilities ├── pi-tools.ts # createOpenClawCodingTools() ├── pi-tools.abort.ts # AbortSignal wrapping for tools ├── pi-tools.policy.ts # Tool allowlist/denylist policy ├── pi-tools.read.ts # Read tool customizations ├── pi-tools.schema.ts # Tool schema normalization ├── pi-tools.types.ts # AnyAgentTool type alias ├── pi-tool-definition-adapter.ts # AgentTool -> ToolDefinition adapter ├── pi-settings.ts # Settings overrides ├── pi-extensions/ # Custom pi extensions │ ├── compaction-safeguard.ts # Safeguard extension │ ├── compaction-safeguard-runtime.ts │ ├── context-pruning.ts # Cache-TTL context pruning extension │ └── context-pruning/ ├── model-auth.ts # Auth profile resolution ├── auth-profiles.ts # Profile store, cooldown, failover ├── model-selection.ts # Default model resolution ├── models-config.ts # models.json generation ├── model-catalog.ts # Model catalog cache ├── context-window-guard.ts # Context window validation ├── failover-error.ts # FailoverError class ├── defaults.ts # DEFAULT\_PROVIDER, DEFAULT\_MODEL ├── system-prompt.ts # buildAgentSystemPrompt() ├── system-prompt-params.ts # System prompt parameter resolution ├── system-prompt-report.ts # Debug report generation ├── tool-summaries.ts # Tool description summaries ├── tool-policy.ts # Tool policy resolution ├── transcript-policy.ts # Transcript validation policy ├── skills.ts # Skill snapshot/prompt building | https://github.com/openclaw/openclaw/blob/main//docs/pi.md | main | opebclaw | [
-0.057151954621076584,
-0.046804070472717285,
-0.08923200517892838,
0.013618852943181992,
-0.03225649893283844,
-0.08414828777313232,
-0.030534163117408752,
0.027143685147166252,
0.029809007421135902,
0.020918432623147964,
-0.010362345725297928,
-0.0452200323343277,
0.07401696592569351,
-0.01787830889225006,
0.11979206651449203,
0.0927775427699089,
0.13682042062282562,
-0.05764821171760559,
0.0037464627530425787,
-0.020781630650162697,
0.012354305945336819,
0.010908450931310654,
-0.02392248623073101,
-0.07767968624830246,
-0.1017908975481987,
-0.0468330942094326,
-0.005998360458761454,
-0.05172020196914673,
-0.00687167514115572,
0.013766634277999401,
0.09517436474561691,
0.06353709846735,
0.03950215503573418,
0.03190622478723526,
0.044889822602272034,
0.09775254875421524,
0.0011212261160835624,
-0.08895532041788101,
-0.04043446108698845,
0.0379863902926445,
0.03174196183681488,
-0.005360732786357403,
-0.03986567258834839,
-0.024421701207756996,
-0.06741437315940857,
-0.0613439567387104,
-0.04478682205080986,
-0.04616047069430351,
-0.025400672107934952,
-0.03993406891822815,
-0.02649669162929058,
-0.0492960549890995,
0.05910476669669151,
0.01924286037683487,
0.002456873655319214,
0.03417482599616051,
-0.04095839709043503,
-0.018783872947096825,
-0.003466352354735136,
-0.006435825489461422,
0.022792160511016846,
0.012186427600681782,
0.012518730014562607,
0.03931022062897682,
-0.10827876627445221,
0.018980255350470543,
-0.04598366841673851,
-0.05198456719517708,
0.02611938677728176,
-0.11739493161439896,
-0.03881991654634476,
-0.002322887070477009,
-0.0572298988699913,
-0.0560874380171299,
-0.012005066499114037,
-0.008420398458838463,
0.03897346556186676,
0.011755918152630329,
-0.016010843217372894,
-0.08873831480741501,
-0.05654191970825195,
0.010124131105840206,
-0.05091322213411331,
0.05616718903183937,
-0.026600738987326622,
0.13551901280879974,
0.05238453671336174,
0.09898873418569565,
-0.010570263490080833,
0.05242551490664482,
0.016303997486829758,
-0.028956009075045586,
0.0024185609072446823,
-0.020835600793361664,
0.03391819819808006,
0.011914300732314587,
-0.05670677497982979,
-0.026378916576504707,
-0.0756714940071106,
0.07119159400463104,
-0.012545018456876278,
-0.0034137298353016376,
0.01737547293305397,
0.005477124825119972,
-0.0650365874171257,
-0.01747880131006241,
-0.0038253653328865767,
0.08527669310569763,
-0.0009928467916324735,
0.024336056783795357,
-0.01694946363568306,
-0.047025661915540695,
0.10094095021486282,
-0.029344603419303894,
0.031450383365154266,
0.11447079479694366,
0.02230864204466343,
-0.0001231113710673526,
0.06992240995168686,
0.041563842445611954,
0.07346558570861816,
-0.027804896235466003,
0.004379319492727518,
0.032378412783145905,
0.10432420670986176,
0.09130235761404037,
0.024179669097065926,
3.946612080290441e-33,
0.0396854430437088,
0.03094126097857952,
-0.025597376748919487,
-0.00838381052017212,
0.0794811099767685,
0.028529172763228416,
0.04068611189723015,
-0.05398448929190636,
-0.040865395218133926,
-0.011855201795697212,
-0.01610514707863331,
0.11698560416698456,
-0.03121950477361679,
0.00472021009773016,
0.012828433886170387,
-0.028125984594225883,
-0.10515919327735901,
0.04851653799414635,
0.10059801489114761,
-0.007906118407845497,
-0.004366295412182808,
-0.039160918444395065,
-0.029476454481482506,
0.07828334718942642,
0.047064412385225296,
0.04312886670231819,
-0.016923028975725174,
-0.10246317088603973,
0.0360826812684536,
0.02188698947429657,
0.035861145704984665,
0.04455962032079697,
-0.05504591390490532,
0.06578579545021057,
-0.057441916316747665,
-0.036879707127809525,
-0.10500016063451767,
-0.039463501423597336,
-0.04953077808022499,
-0.022733619436621666,
-0.01938372291624546,
0.03173835948109627,
-0.023636136204004288,
-0.018180157989263535,
-0.002964632585644722,
-0.1311826854944229,
-0.044068146497011185,
0.04951012134552002,
0.0706789642572403,
0.013512016274034977,
0.07131075114011765,
0.00011115354573121294,
0.09984133392572403,
0.013846623711287975,
-0.016057897359132767,
-0.06260590255260468,
0.003703109687194228,
-0.03020106628537178,
0.005756222177296877,
0.02640940621495247,
-0.01958112232387066,
-0.03855578228831291,
-0.032622046768665314,
0.039162423461675644,
0.04467557370662689,
-0.009154449217021465,
0.02773255668580532,
0.04558471962809563,
-0.014799881726503372,
0.008852577768266201,
-0.01674957387149334,
-0.0001837765157688409,
0.0024839299730956554,
0.03025735914707184,
-0.0818341001868248,
-0.017485598102211952,
0.00025108581758104265,
-0.03457324951887131,
0.02307569794356823,
0.030187459662556648,
-0.008927877992391586,
0.04623769223690033,
0.0052572800777852535,
0.05279645696282387,
0.056923363357782364,
0.006300025619566441,
0.004730996675789356,
-0.0309972632676363,
-0.007159138098359108,
0.1126994714140892,
-0.046880319714546204,
-0.044025421142578125,
-0.011769335716962814,
0.08500548452138901,
0.02162245474755764,
-4.1521895118599504e-33,
-0.05138460174202919,
-0.045828524976968765,
-0.08538378775119781,
0.016984712332487106,
-0.008673314936459064,
-0.022052137181162834,
0.02894875966012478,
-0.05321333557367325,
-0.012461479753255844,
-0.03058376908302307,
-0.07595738768577576,
0.023256249725818634,
0.05944882705807686,
-0.001898523303680122,
0.03249865770339966,
-0.10278362780809402,
-0.0026999074034392834,
-0.041357770562171936,
-0.0004235096275806427,
0.008679227903485298,
-0.025591664016246796,
0.06781809777021408,
-0.026097496971488,
-0.04806261509656906,
0.0855388194322586,
0.04554714262485504,
-0.0032063082326203585,
0.05624689534306526,
-0.008272631093859673,
-0.06165318191051483,
-0.003265914274379611,
0.017371784895658493,
-0.006339128129184246,
0.025480691343545914,
-0.015089347958564758,
0.049961041659116745,
-0.002077158773317933,
0.053120680153369904,
-0.011314197443425655,
-0.03107563592493534,
0.05164460837841034,
-0.0884370282292366,
-0.10076671093702316,
-0.04280635714530945,
-0.0322207435965538,
0.06913229078054428,
-0.05450503155589104,
-0.010841152630746365,
-0.11397271603345871,
-0.012607615441083908,
-0.09672074764966965,
0.05312341824173927,
0.02267054282128811,
0.017756560817360878,
-0.05469689145684242,
0.06362547725439072,
0.08078433573246002,
0.028953954577445984,
0.0052239554934203625,
-0.09635327756404877,
0.023585734888911247,
-0.044736895710229874,
0.03052072413265705,
0.07670436799526215,
-0.029346495866775513,
-0.02537424862384796,
0.06106051057577133,
0.025098996236920357,
-0.05451025068759918,
-0.07271146029233932,
0.0013292465591803193,
-0.050183381885290146,
-0.004457587841898203,
-0.007430295459926128,
0.04324907436966896,
-0.0010906673269346356,
-0.04735727608203888,
-0.08939934521913528,
-0.04361567273736,
-0.0007078592316247523,
-0.11184588819742203,
0.0267752967774868,
0.02601080760359764,
0.006521483417600393,
0.019059335812926292,
-0.010764850303530693,
0.00336994556710124,
0.027985068038105965,
0.06716211140155792,
0.05099023878574371,
-0.09027688205242157,
0.06439775228500366,
-0.05024569481611252,
0.02115822210907936,
-0.03916677460074425,
-5.6411522564303596e-8,
-0.0180876012891531,
-0.029250141233205795,
-0.01885377988219261,
0.041446536779403687,
0.026898093521595,
-0.035736266523599625,
0.015502714551985264,
0.03974683955311775,
-0.04013027250766754,
0.07330239564180374,
0.07100073248147964,
-0.00032201537396758795,
-0.020020658150315285,
-0.05017845705151558,
0.03866584226489067,
0.10314159095287323,
0.04656694829463959,
-0.04908473417162895,
-0.0069098579697310925,
-0.08579133450984955,
0.017077835276722908,
-0.02152128331363201,
0.040321189910173416,
0.024661695584654808,
-0.12586809694766998,
-0.03962264955043793,
0.019023142755031586,
0.007199286017566919,
-0.07582408934831619,
0.000313351396471262,
-0.020769866183400154,
-0.018327102065086365,
0.0535825677216053,
0.015515781007707119,
-0.029747914522886276,
0.04367103800177574,
-0.05834722891449928,
-0.032496415078639984,
0.04387158155441284,
-0.027487749233841896,
0.026077192276716232,
0.06870424002408981,
-0.05807483568787575,
-0.07263761758804321,
0.05186953395605087,
0.0535050593316555,
-0.06752888113260269,
-0.05590418726205826,
0.10710568726062775,
0.023839440196752548,
-0.05074325203895569,
0.03561829403042793,
-0.0472102165222168,
0.11289418488740921,
0.05316190421581268,
0.052935294806957245,
0.04164731130003929,
-0.08575525134801865,
0.08197254687547684,
0.08985872566699982,
-0.07050154358148575,
0.04838862270116806,
0.09082157909870148,
-0.07226019352674484
] | 0.188563 |
failover-error.ts # FailoverError class ├── defaults.ts # DEFAULT\_PROVIDER, DEFAULT\_MODEL ├── system-prompt.ts # buildAgentSystemPrompt() ├── system-prompt-params.ts # System prompt parameter resolution ├── system-prompt-report.ts # Debug report generation ├── tool-summaries.ts # Tool description summaries ├── tool-policy.ts # Tool policy resolution ├── transcript-policy.ts # Transcript validation policy ├── skills.ts # Skill snapshot/prompt building ├── skills/ # Skill subsystem ├── sandbox.ts # Sandbox context resolution ├── sandbox/ # Sandbox subsystem ├── channel-tools.ts # Channel-specific tool injection ├── openclaw-tools.ts # OpenClaw-specific tools ├── bash-tools.ts # exec/process tools ├── apply-patch.ts # apply\_patch tool (OpenAI) ├── tools/ # Individual tool implementations │ ├── browser-tool.ts │ ├── canvas-tool.ts │ ├── cron-tool.ts │ ├── discord-actions\*.ts │ ├── gateway-tool.ts │ ├── image-tool.ts │ ├── message-tool.ts │ ├── nodes-tool.ts │ ├── session\*.ts │ ├── slack-actions.ts │ ├── telegram-actions.ts │ ├── web-\*.ts │ └── whatsapp-actions.ts └── ... ``` ## Core Integration Flow ### 1. Running an Embedded Agent The main entry point is `runEmbeddedPiAgent()` in `pi-embedded-runner/run.ts`: ```typescript import { runEmbeddedPiAgent } from "./agents/pi-embedded-runner.js"; const result = await runEmbeddedPiAgent({ sessionId: "user-123", sessionKey: "main:whatsapp:+1234567890", sessionFile: "/path/to/session.jsonl", workspaceDir: "/path/to/workspace", config: openclawConfig, prompt: "Hello, how are you?", provider: "anthropic", model: "claude-sonnet-4-20250514", timeoutMs: 120\_000, runId: "run-abc", onBlockReply: async (payload) => { await sendToChannel(payload.text, payload.mediaUrls); }, }); ``` ### 2. Session Creation Inside `runEmbeddedAttempt()` (called by `runEmbeddedPiAgent()`), the pi SDK is used: ```typescript import { createAgentSession, DefaultResourceLoader, SessionManager, SettingsManager, } from "@mariozechner/pi-coding-agent"; const resourceLoader = new DefaultResourceLoader({ cwd: resolvedWorkspace, agentDir, settingsManager, additionalExtensionPaths, }); await resourceLoader.reload(); const { session } = await createAgentSession({ cwd: resolvedWorkspace, agentDir, authStorage: params.authStorage, modelRegistry: params.modelRegistry, model: params.model, thinkingLevel: mapThinkingLevel(params.thinkLevel), tools: builtInTools, customTools: allCustomTools, sessionManager, settingsManager, resourceLoader, }); applySystemPromptOverrideToSession(session, systemPromptOverride); ``` ### 3. Event Subscription `subscribeEmbeddedPiSession()` subscribes to pi's `AgentSession` events: ```typescript const subscription = subscribeEmbeddedPiSession({ session: activeSession, runId: params.runId, verboseLevel: params.verboseLevel, reasoningMode: params.reasoningLevel, toolResultFormat: params.toolResultFormat, onToolResult: params.onToolResult, onReasoningStream: params.onReasoningStream, onBlockReply: params.onBlockReply, onPartialReply: params.onPartialReply, onAgentEvent: params.onAgentEvent, }); ``` Events handled include: - `message\_start` / `message\_end` / `message\_update` (streaming text/thinking) - `tool\_execution\_start` / `tool\_execution\_update` / `tool\_execution\_end` - `turn\_start` / `turn\_end` - `agent\_start` / `agent\_end` - `auto\_compaction\_start` / `auto\_compaction\_end` ### 4. Prompting After setup, the session is prompted: ```typescript await session.prompt(effectivePrompt, { images: imageResult.images }); ``` The SDK handles the full agent loop: sending to LLM, executing tool calls, streaming responses. ## Tool Architecture ### Tool Pipeline 1. \*\*Base Tools\*\*: pi's `codingTools` (read, bash, edit, write) 2. \*\*Custom Replacements\*\*: OpenClaw replaces bash with `exec`/`process`, customizes read/edit/write for sandbox 3. \*\*OpenClaw Tools\*\*: messaging, browser, canvas, sessions, cron, gateway, etc. 4. \*\*Channel Tools\*\*: Discord/Telegram/Slack/WhatsApp-specific action tools 5. \*\*Policy Filtering\*\*: Tools filtered by profile, provider, agent, group, sandbox policies 6. \*\*Schema Normalization\*\*: Schemas cleaned for Gemini/OpenAI quirks 7. \*\*AbortSignal Wrapping\*\*: Tools wrapped to respect abort signals ### Tool Definition Adapter pi-agent-core's `AgentTool` has a different `execute` signature than pi-coding-agent's `ToolDefinition`. The adapter in `pi-tool-definition-adapter.ts` bridges this: ```typescript export function toToolDefinitions(tools: AnyAgentTool[]): ToolDefinition[] { return tools.map((tool) => ({ name: tool.name, label: tool.label ?? name, description: tool.description ?? "", parameters: tool.parameters, execute: async (toolCallId, params, onUpdate, \_ctx, signal) => { // pi-coding-agent signature differs from pi-agent-core return await tool.execute(toolCallId, params, signal, onUpdate); }, })); } ``` ### Tool Split Strategy `splitSdkTools()` passes all tools via `customTools`: ```typescript export function splitSdkTools(options: { tools: AnyAgentTool[]; sandboxEnabled: boolean }) { return { builtInTools: [], // Empty. We override everything customTools: toToolDefinitions(options.tools), }; } ``` This ensures OpenClaw's policy filtering, sandbox integration, and extended toolset remain consistent across providers. ## System Prompt Construction The system prompt is built in `buildAgentSystemPrompt()` (`system-prompt.ts`). It assembles a full prompt with sections including Tooling, Tool Call Style, Safety guardrails, OpenClaw CLI reference, Skills, Docs, Workspace, Sandbox, Messaging, Reply Tags, Voice, Silent Replies, Heartbeats, Runtime metadata, plus Memory and Reactions when | https://github.com/openclaw/openclaw/blob/main//docs/pi.md | main | opebclaw | [
-0.0161743126809597,
-0.06298072636127472,
-0.0020823052618652582,
-0.003865226171910763,
0.052532367408275604,
-0.0454401820898056,
-0.0017853204626590014,
0.04755086079239845,
-0.07439076155424118,
0.017011670395731926,
0.023183045908808708,
-0.08320960402488708,
0.05793008208274841,
0.0036585726775228977,
0.08846653252840042,
0.07457640022039413,
0.006346120964735746,
-0.057253532111644745,
0.02877909503877163,
-0.028036247938871384,
-0.038017068058252335,
0.05540551617741585,
0.0230685006827116,
-0.015428825281560421,
-0.030384311452507973,
-0.05057399347424507,
-0.06616947054862976,
-0.017805248498916626,
-0.07325910776853561,
-0.029514707624912262,
0.0016678082756698132,
0.019288431853055954,
-0.09228693693876266,
-0.0010629039024934173,
0.17898501455783844,
0.11759675294160843,
-0.015596524812281132,
0.055892426520586014,
-0.036779340356588364,
-0.01891774870455265,
0.036408085376024246,
0.028150202706456184,
0.02351161651313305,
-0.11574680358171463,
-0.0010016645537689328,
-0.12371335178613663,
-0.03831478953361511,
-0.10149722546339035,
0.019615253433585167,
-0.004372475668787956,
-0.045956116169691086,
-0.028853219002485275,
0.03953932225704193,
0.01791868917644024,
0.057490840554237366,
0.04710206761956215,
-0.01737981103360653,
0.03907129541039467,
0.014620117843151093,
-0.027578802779316902,
-0.008614611811935902,
0.015684286132454872,
-0.06820986419916153,
-0.06030537188053131,
0.0035763082560151815,
0.07662495225667953,
-0.03380255028605461,
-0.0276956707239151,
-0.04667937383055687,
0.04014655202627182,
-0.10998762398958206,
0.04462685436010361,
-0.06301850080490112,
0.07879061996936798,
0.007617721799761057,
-0.009088528342545033,
0.002151613589376211,
0.04857775941491127,
-0.012913940474390984,
-0.061998579651117325,
-0.05938218533992767,
-0.0164924506098032,
-0.015009409748017788,
-0.01484973169863224,
0.03595995903015137,
0.08904445171356201,
0.03530806303024292,
-0.0179743729531765,
0.10390663892030716,
0.0063328989781439304,
0.03543893247842789,
-0.014989255927503109,
0.017766699194908142,
0.05931399390101433,
0.0889657586812973,
-0.03921201825141907,
-0.0547153502702713,
0.033796537667512894,
-0.048570048063993454,
0.0874108299612999,
-0.00044990144670009613,
-0.08646481484174728,
0.038015492260456085,
0.006521550938487053,
-0.03231348097324371,
0.030981097370386124,
0.03953390568494797,
0.02944747358560562,
0.011483254842460155,
-0.026571867987513542,
-0.02632235921919346,
-0.031801383942365646,
0.08259961009025574,
-0.046570587903261185,
0.08218161761760712,
0.027936235070228577,
-0.024744894355535507,
-0.010706747882068157,
-0.002326763002201915,
0.01833391934633255,
0.09889114648103714,
0.0054365177638828754,
-0.017231712117791176,
-0.02860335260629654,
0.09021589159965515,
0.06646912544965744,
0.08417177200317383,
8.775824257428626e-33,
0.06502116471529007,
-0.030492566525936127,
-0.059173937886953354,
0.10729256272315979,
0.143575519323349,
0.027824649587273598,
0.051825590431690216,
-0.03639648109674454,
-0.04405999183654785,
-0.008506353944540024,
-0.060787178575992584,
-0.05382446199655533,
-0.07476234436035156,
-0.06204535439610481,
-0.0017650988884270191,
-0.05718652158975601,
0.0008131823851726949,
0.039273522794246674,
0.01489163562655449,
0.048146769404411316,
0.010240405797958374,
-0.025700023397803307,
-0.02492726780474186,
0.02214527316391468,
-0.013619507662951946,
0.052529726177453995,
0.0001625007134862244,
0.013042598031461239,
0.030803779140114784,
0.029980819672346115,
0.04724316671490669,
0.014223236590623856,
0.029760239645838737,
0.0635015070438385,
-0.06768549978733063,
-0.03949600085616112,
-0.001175404409877956,
-0.03312310576438904,
-0.06382403522729874,
0.006560895126312971,
-0.0373273566365242,
0.006801842246204615,
-0.08120247721672058,
-0.031393010169267654,
0.09991434961557388,
-0.17988339066505432,
-0.02501029334962368,
0.06058637797832489,
0.07780062407255173,
0.003027124796062708,
-0.05157780647277832,
0.06707429885864258,
0.04431609809398651,
-0.060874298214912415,
0.004938570316880941,
-0.025334402918815613,
-0.026470834389328957,
0.020420175045728683,
0.034108716994524,
0.0242014080286026,
0.027874242514371872,
-0.024983976036310196,
-0.0396212637424469,
-0.03434443101286888,
0.08623108267784119,
0.018686847761273384,
-0.007256990764290094,
-0.04127467796206474,
0.06543956696987152,
-0.027862688526511192,
-0.06701067835092545,
-0.08423867076635361,
-0.013921553269028664,
0.051825761795043945,
-0.004941768944263458,
-0.0747917890548706,
0.04499773681163788,
0.03244524821639061,
0.03660792112350464,
-0.020341265946626663,
-0.047818075865507126,
-0.025278156623244286,
-0.07405120134353638,
-0.040589068084955215,
0.05681074038147926,
0.01043477188795805,
-0.00911507848650217,
0.018297122791409492,
-0.019563205540180206,
0.02680746652185917,
0.005961139686405659,
-0.012372123077511787,
-0.0758875235915184,
0.06388578563928604,
-0.026717547327280045,
-8.023804685225945e-33,
0.009025664068758488,
0.0016878194874152541,
-0.05114130303263664,
0.07321923971176147,
-0.025737037882208824,
-0.03162679448723793,
0.032670386135578156,
-0.09672822803258896,
0.029934879392385483,
0.0024680860806256533,
0.0076711284928023815,
0.015063611790537834,
0.013058693148195744,
-0.01869206130504608,
-0.02993575483560562,
0.03949526324868202,
-0.013545574620366096,
-0.077217698097229,
0.06723976135253906,
-0.02343810349702835,
0.025085099041461945,
0.1064317375421524,
-0.06471718102693558,
0.05898784101009369,
-0.05706634372472763,
0.021292991936206818,
0.025840068235993385,
0.008150998502969742,
0.05448216572403908,
-0.011348114348948002,
0.08640577644109726,
0.019535955041646957,
-0.02795068360865116,
0.13383127748966217,
0.0006891907542012632,
0.03611667454242706,
0.013196030631661415,
-0.06716421246528625,
-0.08460958302021027,
0.02603738196194172,
0.0902443677186966,
-0.02576351910829544,
-0.11263229697942734,
-0.06877380609512329,
-0.04241291806101799,
0.028528647497296333,
0.04221614450216293,
-0.004238166846334934,
-0.06766354292631149,
-0.048375967890024185,
0.012311985716223717,
-0.00595144834369421,
0.07709937542676926,
-0.04859917610883713,
-0.047292523086071014,
0.021778639405965805,
0.057264141738414764,
-0.017879119142889977,
-0.025243571028113365,
-0.028775662183761597,
0.0323021337389946,
-0.02734699472784996,
-0.01421578973531723,
-0.034170277416706085,
0.032285094261169434,
-0.0030188614036887884,
-0.051159635186195374,
0.12125205993652344,
-0.011371906846761703,
-0.03437270224094391,
-0.046212512999773026,
0.04739866778254509,
0.06584235280752182,
-0.08435069024562836,
0.02444433979690075,
0.06606239080429077,
-0.05367051437497139,
-0.04290662333369255,
0.0006554896826855838,
0.07174950838088989,
-0.09787287563085556,
-0.005497620906680822,
-0.04394679144024849,
0.007013948634266853,
-0.06445152312517166,
0.04781675711274147,
0.01965446211397648,
0.13586224615573883,
0.08322329819202423,
-0.037076435983181,
-0.04910823702812195,
-0.036791641265153885,
0.014087767340242863,
0.04068932682275772,
0.018118688836693764,
-6.493890225556243e-8,
0.0009785422589629889,
0.024704089388251305,
-0.09435773640871048,
-0.01078624278306961,
0.0744442269206047,
0.005515768192708492,
0.02151837758719921,
0.01375068910419941,
-0.02258794568479061,
0.004112520255148411,
-0.05454577878117561,
0.06113090366125107,
-0.009736496023833752,
0.0012247731210663915,
-0.0093982620164752,
-0.05838094279170036,
-0.10158611834049225,
0.11299139261245728,
-0.011849305592477322,
-0.0946001335978508,
0.015566847287118435,
-0.05511602386832237,
0.02642226032912731,
-0.005573404021561146,
-0.04521846026182175,
-0.03922583535313606,
-0.005364838521927595,
0.03424925357103348,
-0.046820756047964096,
0.023457881063222885,
-0.04297851398587227,
-0.06789173930883408,
0.020918596535921097,
-0.06795118749141693,
0.007307098247110844,
0.06805087625980377,
0.059634774923324585,
0.04072798416018486,
0.055759016424417496,
-0.03129144757986069,
0.0037972263526171446,
0.013543751090765,
0.03136833757162094,
-0.046278588473796844,
-0.05939113721251488,
0.02960597723722458,
-0.10447263717651367,
0.04044151306152344,
0.000649859372060746,
-0.11914335191249847,
-0.003233180847018957,
0.009550493210554123,
-0.012412048876285553,
0.07092852890491486,
0.01818768121302128,
-0.008864556439220905,
0.00558478944003582,
-0.03031226247549057,
0.028407154604792595,
0.03588283807039261,
-0.007364240009337664,
0.03560135141015053,
0.02148665487766266,
-0.03558426722884178
] | 0.074386 |
consistent across providers. ## System Prompt Construction The system prompt is built in `buildAgentSystemPrompt()` (`system-prompt.ts`). It assembles a full prompt with sections including Tooling, Tool Call Style, Safety guardrails, OpenClaw CLI reference, Skills, Docs, Workspace, Sandbox, Messaging, Reply Tags, Voice, Silent Replies, Heartbeats, Runtime metadata, plus Memory and Reactions when enabled, and optional context files and extra system prompt content. Sections are trimmed for minimal prompt mode used by subagents. The prompt is applied after session creation via `applySystemPromptOverrideToSession()`: ```typescript const systemPromptOverride = createSystemPromptOverride(appendPrompt); applySystemPromptOverrideToSession(session, systemPromptOverride); ``` ## Session Management ### Session Files Sessions are JSONL files with tree structure (id/parentId linking). Pi's `SessionManager` handles persistence: ```typescript const sessionManager = SessionManager.open(params.sessionFile); ``` OpenClaw wraps this with `guardSessionManager()` for tool result safety. ### Session Caching `session-manager-cache.ts` caches SessionManager instances to avoid repeated file parsing: ```typescript await prewarmSessionFile(params.sessionFile); sessionManager = SessionManager.open(params.sessionFile); trackSessionManagerAccess(params.sessionFile); ``` ### History Limiting `limitHistoryTurns()` trims conversation history based on channel type (DM vs group). ### Compaction Auto-compaction triggers on context overflow. `compactEmbeddedPiSessionDirect()` handles manual compaction: ```typescript const compactResult = await compactEmbeddedPiSessionDirect({ sessionId, sessionFile, provider, model, ... }); ``` ## Authentication & Model Resolution ### Auth Profiles OpenClaw maintains an auth profile store with multiple API keys per provider: ```typescript const authStore = ensureAuthProfileStore(agentDir, { allowKeychainPrompt: false }); const profileOrder = resolveAuthProfileOrder({ cfg, store: authStore, provider, preferredProfile }); ``` Profiles rotate on failures with cooldown tracking: ```typescript await markAuthProfileFailure({ store, profileId, reason, cfg, agentDir }); const rotated = await advanceAuthProfile(); ``` ### Model Resolution ```typescript import { resolveModel } from "./pi-embedded-runner/model.js"; const { model, error, authStorage, modelRegistry } = resolveModel( provider, modelId, agentDir, config, ); // Uses pi's ModelRegistry and AuthStorage authStorage.setRuntimeApiKey(model.provider, apiKeyInfo.apiKey); ``` ### Failover `FailoverError` triggers model fallback when configured: ```typescript if (fallbackConfigured && isFailoverErrorMessage(errorText)) { throw new FailoverError(errorText, { reason: promptFailoverReason ?? "unknown", provider, model: modelId, profileId, status: resolveFailoverStatus(promptFailoverReason), }); } ``` ## Pi Extensions OpenClaw loads custom pi extensions for specialized behavior: ### Compaction Safeguard `pi-extensions/compaction-safeguard.ts` adds guardrails to compaction, including adaptive token budgeting plus tool failure and file operation summaries: ```typescript if (resolveCompactionMode(params.cfg) === "safeguard") { setCompactionSafeguardRuntime(params.sessionManager, { maxHistoryShare }); paths.push(resolvePiExtensionPath("compaction-safeguard")); } ``` ### Context Pruning `pi-extensions/context-pruning.ts` implements cache-TTL based context pruning: ```typescript if (cfg?.agents?.defaults?.contextPruning?.mode === "cache-ttl") { setContextPruningRuntime(params.sessionManager, { settings, contextWindowTokens, isToolPrunable, lastCacheTouchAt, }); paths.push(resolvePiExtensionPath("context-pruning")); } ``` ## Streaming & Block Replies ### Block Chunking `EmbeddedBlockChunker` manages streaming text into discrete reply blocks: ```typescript const blockChunker = blockChunking ? new EmbeddedBlockChunker(blockChunking) : null; ``` ### Thinking/Final Tag Stripping Streaming output is processed to strip ``/`` blocks and extract `` content: ```typescript const stripBlockTags = (text: string, state: { thinking: boolean; final: boolean }) => { // Strip ... content // If enforceFinalTag, only return ... content }; ``` ### Reply Directives Reply directives like `[[media:url]]`, `[[voice]]`, `[[reply:id]]` are parsed and extracted: ```typescript const { text: cleanedText, mediaUrls, audioAsVoice, replyToId } = consumeReplyDirectives(chunk); ``` ## Error Handling ### Error Classification `pi-embedded-helpers.ts` classifies errors for appropriate handling: ```typescript isContextOverflowError(errorText) // Context too large isCompactionFailureError(errorText) // Compaction failed isAuthAssistantError(lastAssistant) // Auth failure isRateLimitAssistantError(...) // Rate limited isFailoverAssistantError(...) // Should failover classifyFailoverReason(errorText) // "auth" | "rate\_limit" | "quota" | "timeout" | ... ``` ### Thinking Level Fallback If a thinking level is unsupported, it falls back: ```typescript const fallbackThinking = pickFallbackThinkingLevel({ message: errorText, attempted: attemptedThinking, }); if (fallbackThinking) { thinkLevel = fallbackThinking; continue; } ``` ## Sandbox Integration When sandbox mode is enabled, tools and paths are constrained: ```typescript const sandbox = await resolveSandboxContext({ config: params.config, sessionKey: sandboxSessionKey, workspaceDir: resolvedWorkspace, }); if (sandboxRoot) { // Use sandboxed read/edit/write tools // Exec runs in container // Browser uses bridge URL } ``` ## Provider-Specific Handling ### Anthropic - Refusal | https://github.com/openclaw/openclaw/blob/main//docs/pi.md | main | opebclaw | [
-0.07935206592082977,
0.006090168375521898,
-0.003595821326598525,
0.01807956025004387,
0.03617097809910774,
-0.036145783960819244,
0.06791817396879196,
0.11067592352628708,
0.0055823191069066525,
0.0018100155284628272,
-0.020040851086378098,
-0.011765465140342712,
-0.01203289907425642,
0.02276758663356304,
0.1279381811618805,
0.021859537810087204,
0.07866765558719635,
-0.09409645944833755,
0.04892286658287048,
0.008651684038341045,
0.04550660401582718,
0.0037766320165246725,
0.06933517754077911,
-0.007735033053904772,
-0.03214297816157341,
-0.013073901645839214,
0.0010869436664506793,
-0.05506771802902222,
0.03165782615542412,
-0.010292355902493,
-0.003227389184758067,
0.07939281314611435,
0.004707604181021452,
-0.05645638704299927,
0.029051948338747025,
0.06872109323740005,
0.0665358304977417,
-0.0032272713724523783,
0.02121361345052719,
-0.008773544803261757,
-0.005241650156676769,
0.09395800530910492,
-0.060079120099544525,
-0.012749099172651768,
-0.005364584270864725,
-0.09096769988536835,
-0.06858004629611969,
-0.03777896985411644,
-0.05766724795103073,
-0.0003609684354159981,
0.019239604473114014,
0.02476397529244423,
0.0892728716135025,
0.0014519612304866314,
-0.01904498040676117,
0.06513679772615433,
-0.025334030389785767,
0.08607134968042374,
-0.0023802113719284534,
0.07614336907863617,
-0.12786853313446045,
-0.00909875426441431,
-0.07797139883041382,
0.0008013907936401665,
0.02621028944849968,
0.0805153101682663,
-0.007528270129114389,
-0.04909650981426239,
0.08547266572713852,
-0.044699106365442276,
-0.05142587423324585,
0.05588088557124138,
-0.028117822483181953,
0.006172957830131054,
-0.029341205954551697,
-0.03179895132780075,
-0.0083932401612401,
0.040026698261499405,
-0.07661573588848114,
-0.05822978913784027,
-0.017562704160809517,
-0.04935256019234657,
0.04249018803238869,
0.028327373787760735,
-0.0019740231800824404,
0.051830366253852844,
0.03292384371161461,
-0.007562560029327869,
0.010566904209554195,
0.10285498201847076,
0.02315005287528038,
-0.07935693860054016,
-0.018957000225782394,
0.018428431823849678,
0.00118378980550915,
0.05291084945201874,
-0.07899203151464462,
0.0007657226524315774,
0.02934972010552883,
0.06987247616052628,
-0.02408166602253914,
-0.04476062208414078,
0.07935275137424469,
0.0650465115904808,
-0.06069894880056381,
0.01638690195977688,
-0.020401140674948692,
-0.0005972111248411238,
-0.03385872021317482,
0.01054947916418314,
-0.00725338701158762,
-0.03572819009423256,
0.06819085776805878,
-0.004620370455086231,
-0.012784775346517563,
-0.005076122470200062,
-0.01625003106892109,
-0.018769262358546257,
0.08788077533245087,
0.04466186836361885,
0.14069053530693054,
-0.03310941904783249,
0.001176577527076006,
0.012051447294652462,
0.075175940990448,
0.05516793578863144,
0.05335986241698265,
9.030038869789362e-33,
-0.003357825567945838,
0.0019913215655833483,
-0.027237024158239365,
0.1280704289674759,
-0.017547331750392914,
0.08535265177488327,
0.03657165542244911,
-0.011509777046740055,
-0.0225361417979002,
-0.02509041130542755,
-0.028032846748828888,
0.026570593938231468,
0.007225021719932556,
-0.04326799511909485,
-0.009500066749751568,
-0.06320549547672272,
-0.04123181477189064,
0.10342627018690109,
0.03388557583093643,
0.008737124502658844,
-0.006887425202876329,
0.08809252828359604,
-0.00018647953402251005,
0.04581603407859802,
0.10926506668329239,
0.013159792870283127,
-0.01732444204390049,
0.009368082508444786,
-0.039403896778821945,
0.012982647866010666,
0.06358177959918976,
-0.0015278250211849809,
-0.022674983367323875,
0.08218469470739365,
0.0012305201962590218,
0.041791919618844986,
-0.0037939255125820637,
-0.05214207246899605,
-0.0359659306704998,
-0.05666142329573631,
-0.0030744029209017754,
0.003788221627473831,
-0.09784270823001862,
0.059526726603507996,
-0.05262741446495056,
-0.20868392288684845,
-0.0764579176902771,
-0.02782422862946987,
0.027960730716586113,
0.051262520253658295,
-0.096943698823452,
0.09584219753742218,
0.08196863532066345,
0.0064197080209851265,
0.007917231880128384,
-0.04971082881093025,
0.05924107879400253,
-0.033537279814481735,
0.006222964264452457,
-0.002072271192446351,
-0.014898221008479595,
-0.015894098207354546,
-0.05533648282289505,
-0.07366356253623962,
0.0334206186234951,
0.005121694412082434,
-0.05295509845018387,
-0.07771289348602295,
0.04545752331614494,
0.005756484344601631,
-0.0821528509259224,
0.026248639449477196,
-0.04351403936743736,
0.04879302531480789,
-0.04281563311815262,
-0.07385611534118652,
-0.02844889834523201,
0.10677764564752579,
0.009815787896513939,
-0.00870989914983511,
0.018289882689714432,
-0.05123160034418106,
-0.04615376517176628,
0.11069703847169876,
0.038703322410583496,
-0.013652028515934944,
-0.01470168586820364,
-0.047157660126686096,
0.004339754581451416,
0.06617489457130432,
0.05042015761137009,
-0.04393148794770241,
0.015933874994516373,
0.1263640820980072,
0.00014691526303067803,
-8.815672046553563e-33,
0.06914342939853668,
0.0016098152846097946,
-0.10183172672986984,
0.026838645339012146,
-0.08656056970357895,
-0.00492505868896842,
-0.0028797208797186613,
0.00011971614003414288,
-0.03937224671244621,
-0.048859816044569016,
0.02598988264799118,
0.06058499589562416,
0.03732345998287201,
0.005792846903204918,
-0.04240180552005768,
0.05896606296300888,
-0.050212617963552475,
-0.04329017922282219,
0.0205396581441164,
-0.06956953555345535,
-0.014861836098134518,
0.06074623391032219,
0.006438504438847303,
0.021866176277399063,
0.024498602375388145,
-0.043632641434669495,
-0.04202736169099808,
0.009133812971413136,
0.029145127162337303,
-0.032123733311891556,
0.005420152097940445,
0.020635636523365974,
-0.04445294290781021,
0.002959401812404394,
-0.0077123516239225864,
-0.06014792248606682,
-0.022729068994522095,
0.02726944349706173,
-0.021068822592496872,
-0.011345281265676022,
0.0607619434595108,
-0.021729446947574615,
-0.02160497196018696,
-0.029480641707777977,
-0.0008986701723188162,
0.04064977169036865,
0.018706724047660828,
-0.02382093109190464,
-0.03504862263798714,
0.010645805858075619,
-0.06796417385339737,
-0.08632921427488327,
0.06235920637845993,
-0.04862219840288162,
-0.037183068692684174,
-0.0831252858042717,
-0.0011782237561419606,
-0.07090172916650772,
-0.03722234442830086,
-0.061430707573890686,
0.10370940715074539,
-0.003456113627180457,
0.05068419128656387,
-0.007093610242009163,
-0.013034731149673462,
-0.06520526856184006,
-0.04679593816399574,
0.049735214561223984,
0.06696274876594543,
0.0057137468829751015,
-0.05379130691289902,
-0.10156606137752533,
0.01885211654007435,
0.01417207345366478,
0.05434485524892807,
0.03535816818475723,
0.03196006640791893,
-0.1938122659921646,
-0.01801908016204834,
-0.009374269284307957,
-0.05101396515965462,
0.04257020726799965,
-0.06416361033916473,
0.006369474809616804,
-0.04181594029068947,
0.006420887541025877,
-0.042485401034355164,
0.1695946753025055,
0.02015400491654873,
0.0535690002143383,
-0.029766801744699478,
0.05377098172903061,
-0.06285202503204346,
-0.008575241081416607,
-0.039094772189855576,
-6.856232204199841e-8,
-0.012732559815049171,
-0.04828054457902908,
-0.07061354070901871,
0.005830895155668259,
0.06303639709949493,
-0.05496682599186897,
0.021051721647381783,
-0.01562519185245037,
-0.023851126432418823,
-0.023982228711247444,
-0.0027325775008648634,
0.076015405356884,
-0.01719358190894127,
-0.07423929870128632,
0.015719974413514137,
0.01778893545269966,
-0.0895945206284523,
0.04221831262111664,
-0.07385721057653427,
-0.043578870594501495,
-0.0176084004342556,
-0.03644918277859688,
0.0014996044337749481,
0.044086311012506485,
-0.00809543114155531,
0.006854346487671137,
0.0452396459877491,
0.07140588015317917,
-0.07164643704891205,
0.018661437556147575,
-0.05435055494308472,
0.015093241818249226,
-0.012691889889538288,
-0.0131206214427948,
-0.022025665268301964,
0.08861412853002548,
0.022713689133524895,
0.012683638371527195,
0.06028300151228905,
-0.05052344873547554,
0.019124135375022888,
0.0295136459171772,
-0.030091214925050735,
0.014947688207030296,
-0.024300873279571533,
0.025981927290558815,
-0.0026822148356586695,
0.07858859747648239,
0.01639699749648571,
-0.08950353413820267,
-0.11192895472049713,
0.021523253992199898,
-0.050037872046232224,
0.04827069118618965,
-0.031882718205451965,
0.054558832198381424,
0.032732054591178894,
-0.027270613238215446,
0.05758456513285637,
-0.026485323905944824,
-0.00921679101884365,
-0.022047605365514755,
0.05082283541560173,
-0.05749491974711418
] | 0.147692 |
When sandbox mode is enabled, tools and paths are constrained: ```typescript const sandbox = await resolveSandboxContext({ config: params.config, sessionKey: sandboxSessionKey, workspaceDir: resolvedWorkspace, }); if (sandboxRoot) { // Use sandboxed read/edit/write tools // Exec runs in container // Browser uses bridge URL } ``` ## Provider-Specific Handling ### Anthropic - Refusal magic string scrubbing - Turn validation for consecutive roles - Claude Code parameter compatibility ### Google/Gemini - Turn ordering fixes (`applyGoogleTurnOrderingFix`) - Tool schema sanitization (`sanitizeToolsForGoogle`) - Session history sanitization (`sanitizeSessionHistory`) ### OpenAI - `apply\_patch` tool for Codex models - Thinking level downgrade handling ## TUI Integration OpenClaw also has a local TUI mode that uses pi-tui components directly: ```typescript // src/tui/tui.ts import { ... } from "@mariozechner/pi-tui"; ``` This provides the interactive terminal experience similar to pi's native mode. ## Key Differences from Pi CLI | Aspect | Pi CLI | OpenClaw Embedded | | --------------- | ----------------------- | ---------------------------------------------------------------------------------------------- | | Invocation | `pi` command / RPC | SDK via `createAgentSession()` | | Tools | Default coding tools | Custom OpenClaw tool suite | | System prompt | AGENTS.md + prompts | Dynamic per-channel/context | | Session storage | `~/.pi/agent/sessions/` | `~/.openclaw/agents//sessions/` (or `$OPENCLAW\_STATE\_DIR/agents//sessions/`) | | Auth | Single credential | Multi-profile with rotation | | Extensions | Loaded from disk | Programmatic + disk paths | | Event handling | TUI rendering | Callback-based (onBlockReply, etc.) | ## Future Considerations Areas for potential rework: 1. \*\*Tool signature alignment\*\*: Currently adapting between pi-agent-core and pi-coding-agent signatures 2. \*\*Session manager wrapping\*\*: `guardSessionManager` adds safety but increases complexity 3. \*\*Extension loading\*\*: Could use pi's `ResourceLoader` more directly 4. \*\*Streaming handler complexity\*\*: `subscribeEmbeddedPiSession` has grown large 5. \*\*Provider quirks\*\*: Many provider-specific codepaths that pi could potentially handle ## Tests All existing tests that cover the pi integration and its extensions: - `src/agents/pi-embedded-block-chunker.test.ts` - `src/agents/pi-embedded-helpers.buildbootstrapcontextfiles.test.ts` - `src/agents/pi-embedded-helpers.classifyfailoverreason.test.ts` - `src/agents/pi-embedded-helpers.downgradeopenai-reasoning.test.ts` - `src/agents/pi-embedded-helpers.formatassistanterrortext.test.ts` - `src/agents/pi-embedded-helpers.formatrawassistanterrorforui.test.ts` - `src/agents/pi-embedded-helpers.image-dimension-error.test.ts` - `src/agents/pi-embedded-helpers.image-size-error.test.ts` - `src/agents/pi-embedded-helpers.isautherrormessage.test.ts` - `src/agents/pi-embedded-helpers.isbillingerrormessage.test.ts` - `src/agents/pi-embedded-helpers.iscloudcodeassistformaterror.test.ts` - `src/agents/pi-embedded-helpers.iscompactionfailureerror.test.ts` - `src/agents/pi-embedded-helpers.iscontextoverflowerror.test.ts` - `src/agents/pi-embedded-helpers.isfailovererrormessage.test.ts` - `src/agents/pi-embedded-helpers.islikelycontextoverflowerror.test.ts` - `src/agents/pi-embedded-helpers.ismessagingtoolduplicate.test.ts` - `src/agents/pi-embedded-helpers.messaging-duplicate.test.ts` - `src/agents/pi-embedded-helpers.normalizetextforcomparison.test.ts` - `src/agents/pi-embedded-helpers.resolvebootstrapmaxchars.test.ts` - `src/agents/pi-embedded-helpers.sanitize-session-messages-images.keeps-tool-call-tool-result-ids-unchanged.test.ts` - `src/agents/pi-embedded-helpers.sanitize-session-messages-images.removes-empty-assistant-text-blocks-but-preserves.test.ts` - `src/agents/pi-embedded-helpers.sanitizegoogleturnordering.test.ts` - `src/agents/pi-embedded-helpers.sanitizesessionmessagesimages-thought-signature-stripping.test.ts` - `src/agents/pi-embedded-helpers.sanitizetoolcallid.test.ts` - `src/agents/pi-embedded-helpers.sanitizeuserfacingtext.test.ts` - `src/agents/pi-embedded-helpers.stripthoughtsignatures.test.ts` - `src/agents/pi-embedded-helpers.validate-turns.test.ts` - `src/agents/pi-embedded-runner-extraparams.live.test.ts` (live) - `src/agents/pi-embedded-runner-extraparams.test.ts` - `src/agents/pi-embedded-runner.applygoogleturnorderingfix.test.ts` - `src/agents/pi-embedded-runner.buildembeddedsandboxinfo.test.ts` - `src/agents/pi-embedded-runner.createsystempromptoverride.test.ts` - `src/agents/pi-embedded-runner.get-dm-history-limit-from-session-key.falls-back-provider-default-per-dm-not.test.ts` - `src/agents/pi-embedded-runner.get-dm-history-limit-from-session-key.returns-undefined-sessionkey-is-undefined.test.ts` - `src/agents/pi-embedded-runner.google-sanitize-thinking.test.ts` - `src/agents/pi-embedded-runner.guard.test.ts` - `src/agents/pi-embedded-runner.limithistoryturns.test.ts` - `src/agents/pi-embedded-runner.resolvesessionagentids.test.ts` - `src/agents/pi-embedded-runner.run-embedded-pi-agent.auth-profile-rotation.test.ts` - `src/agents/pi-embedded-runner.sanitize-session-history.test.ts` - `src/agents/pi-embedded-runner.splitsdktools.test.ts` - `src/agents/pi-embedded-runner.test.ts` - `src/agents/pi-embedded-subscribe.code-span-awareness.test.ts` - `src/agents/pi-embedded-subscribe.reply-tags.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.calls-onblockreplyflush-before-tool-execution-start-preserve.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.does-not-append-text-end-content-is.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.does-not-call-onblockreplyflush-callback-is-not.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.does-not-duplicate-text-end-repeats-full.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.does-not-emit-duplicate-block-replies-text.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.emits-block-replies-text-end-does-not.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.emits-reasoning-as-separate-message-enabled.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.filters-final-suppresses-output-without-start-tag.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.includes-canvas-action-metadata-tool-summaries.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.keeps-assistanttexts-final-answer-block-replies-are.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.keeps-indented-fenced-blocks-intact.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.reopens-fenced-blocks-splitting-inside-them.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.splits-long-single-line-fenced-blocks-reopen.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.streams-soft-chunks-paragraph-preference.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.subscribeembeddedpisession.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.suppresses-message-end-block-replies-message-tool.test.ts` - `src/agents/pi-embedded-subscribe.subscribe-embedded-pi-session.waits-multiple-compaction-retries-before-resolving.test.ts` - `src/agents/pi-embedded-subscribe.tools.test.ts` - `src/agents/pi-embedded-utils.test.ts` - `src/agents/pi-extensions/compaction-safeguard.test.ts` - `src/agents/pi-extensions/context-pruning.test.ts` - `src/agents/pi-settings.test.ts` - `src/agents/pi-tool-definition-adapter.test.ts` - `src/agents/pi-tools-agent-config.test.ts` - `src/agents/pi-tools.create-openclaw-coding-tools.adds-claude-style-aliases-schemas-without-dropping-b.test.ts` - `src/agents/pi-tools.create-openclaw-coding-tools.adds-claude-style-aliases-schemas-without-dropping-d.test.ts` - `src/agents/pi-tools.create-openclaw-coding-tools.adds-claude-style-aliases-schemas-without-dropping-f.test.ts` - `src/agents/pi-tools.create-openclaw-coding-tools.adds-claude-style-aliases-schemas-without-dropping.test.ts` - `src/agents/pi-tools.policy.test.ts` - `src/agents/pi-tools.safe-bins.test.ts` - `src/agents/pi-tools.workspace-paths.test.ts` | https://github.com/openclaw/openclaw/blob/main//docs/pi.md | main | opebclaw | [
-0.05962477624416351,
-0.009461922571063042,
-0.018295694142580032,
0.0015840803971514106,
0.015627387911081314,
-0.057977788150310516,
-0.03774406015872955,
0.013222617097198963,
-0.05914931371808052,
-0.02245180681347847,
-0.021336231380701065,
0.00734050665050745,
-0.011385208927094936,
-0.02679726853966713,
0.06587065011262894,
0.06273593008518219,
0.01700294390320778,
0.037629589438438416,
0.033540137112140656,
0.009089484810829163,
-0.027755428105592728,
-0.019197672605514526,
0.03458783030509949,
-0.04199553653597832,
-0.1044226810336113,
-0.041821982711553574,
-0.04973994195461273,
-0.04125288501381874,
-0.04180332273244858,
-0.07802290469408035,
0.07514161616563797,
0.13285517692565918,
-0.0701470822095871,
-0.056712809950113297,
0.07333479821681976,
0.11561945825815201,
-0.03956780582666397,
-0.054367728531360626,
-0.012603632174432278,
-0.10033740103244781,
0.05147317424416542,
0.001088909339159727,
-0.023679787293076515,
-0.017601795494556427,
0.034650251269340515,
-0.09438054263591766,
0.002057374222204089,
-0.10848914831876755,
-0.022275803610682487,
-0.010431491769850254,
-0.019655302166938782,
-0.03945058584213257,
-0.010479053482413292,
-0.030538922175765038,
-0.016803467646241188,
0.07525087147951126,
-0.026685552671551704,
0.0189852025359869,
0.02484152466058731,
0.005324056837707758,
0.005643525160849094,
0.05087520182132721,
-0.030002299696207047,
-0.025053130462765694,
-0.003635346656665206,
0.06474259495735168,
0.0254793930798769,
-0.06624944508075714,
0.01761668734252453,
-0.001548362080939114,
-0.03880792483687401,
0.0419178307056427,
-0.05503286048769951,
0.017679724842309952,
-0.04501120001077652,
-0.006841636262834072,
0.010899947956204414,
0.032151784747838974,
-0.049953117966651917,
-0.08784288913011551,
-0.03212720528244972,
0.029445825144648552,
0.013202912174165249,
0.030388597398996353,
0.032791249454021454,
0.08515863120555878,
0.010574626736342907,
0.036551933735609055,
0.14711518585681915,
0.11165526509284973,
0.06038207933306694,
-0.008200351148843765,
0.005924823693931103,
-0.037304915487766266,
0.08060795813798904,
-0.1142214685678482,
-0.0499185211956501,
0.07243023812770844,
-0.04959104210138321,
0.09780555963516235,
-0.0040419697761535645,
-0.010381221771240234,
0.015701377764344215,
-0.04813507944345474,
0.040241789072752,
0.015072115696966648,
0.04643506184220314,
-0.0385076105594635,
-0.07867509126663208,
0.04983464628458023,
-0.028963422402739525,
-0.05037642642855644,
0.10650061070919037,
-0.11637195944786072,
0.01692582108080387,
0.05515236780047417,
-0.0030316326301544905,
-0.020330214872956276,
0.04693314805626869,
0.08954660594463348,
0.11047311127185822,
-0.02028440497815609,
0.010579708963632584,
0.054106928408145905,
0.04143825173377991,
0.05438753217458725,
-0.0046376329846680164,
1.0711100116588868e-32,
0.11436166614294052,
-0.050024136900901794,
-0.033944662660360336,
0.07570817321538925,
0.11425896733999252,
0.053570836782455444,
0.013930975459516048,
-0.030671803280711174,
-0.10161275416612625,
0.010238398797810078,
-0.03287644684314728,
0.07314137369394302,
-0.0858444795012474,
0.005067191552370787,
0.04770214483141899,
0.019361643120646477,
-0.06336400657892227,
0.01217508316040039,
-0.006745545193552971,
-0.01380822341889143,
-0.04005071893334389,
-0.020229697227478027,
-0.11844434589147568,
0.024080220609903336,
0.015039851889014244,
0.0324171781539917,
0.01121654361486435,
0.02968762442469597,
-0.009458843618631363,
0.016768893226981163,
0.09608116000890732,
-0.03518996760249138,
-0.03364448994398117,
0.08605358749628067,
-0.02147252857685089,
-0.011508096940815449,
-0.07401592284440994,
-0.010896196588873863,
-0.06515305489301682,
0.021320104598999023,
-0.012476150877773762,
0.008497659116983414,
-0.06259939074516296,
0.035003457218408585,
0.017491668462753296,
-0.12428902834653854,
-0.003924712538719177,
0.03780732303857803,
0.0931788757443428,
-0.03459841385483742,
-0.02711123414337635,
0.04439998045563698,
0.035298194736242294,
-0.03312748298048973,
-0.014175815507769585,
-0.07562530785799026,
0.01101917214691639,
-0.014812507666647434,
-0.02005215361714363,
0.08557461202144623,
-0.019750148057937622,
0.01552916131913662,
-0.019949883222579956,
-0.0008434139890596271,
-0.023954227566719055,
0.036713916808366776,
-0.044056814163923264,
-0.006619722582399845,
0.039316970854997635,
-0.06571567058563232,
-0.07155460119247437,
0.018614009022712708,
-0.002927715191617608,
0.07724346965551376,
-0.03954155743122101,
-0.08887997269630432,
0.006455728784203529,
0.008869847282767296,
-0.020403852686285973,
-0.036776699125766754,
0.0005984256858937442,
-0.0055488962680101395,
0.011834894306957722,
0.10241709649562836,
0.06017359346151352,
-0.05713129788637161,
0.00207912502810359,
0.07115517556667328,
0.06402154266834259,
-0.025740649551153183,
0.05309609696269035,
-0.05275610461831093,
0.04075036570429802,
-0.022892417386174202,
-0.03130294382572174,
-8.787824585382583e-33,
-0.02511647157371044,
-0.05048292875289917,
-0.089634008705616,
0.05240194499492645,
-0.07661645859479904,
0.019581671804189682,
0.023178549483418465,
-0.0619262270629406,
0.036746010184288025,
-0.008527176454663277,
-0.0058646309189498425,
0.0379302054643631,
0.0798787847161293,
-0.033622998744249344,
0.0253806933760643,
0.0007170309545472264,
-0.08828803151845932,
-0.0759536474943161,
-0.00884897168725729,
0.009933339431881905,
-0.016395602375268936,
0.07161343097686768,
0.02164837159216404,
0.07484843581914902,
-0.03493043780326843,
0.006669848226010799,
-0.02106817252933979,
0.026632139459252357,
-0.019401783123612404,
-0.014238950796425343,
-0.018429769203066826,
0.04671650752425194,
-0.06937564164400101,
0.035213831812143326,
-0.006570035126060247,
0.0007238288526423275,
-0.017978128045797348,
0.04247630015015602,
-0.06486618518829346,
0.04461593180894852,
0.07623252272605896,
-0.029697641730308533,
-0.05008415877819061,
-0.012892008759081364,
-0.04748158901929855,
0.05325370654463768,
-0.06558185070753098,
-0.02671310305595398,
-0.1074584573507309,
0.026638776063919067,
0.02256629802286625,
-0.01509657222777605,
0.055166903883218765,
-0.09748082607984543,
0.035496797412633896,
0.025485174730420113,
0.0001470092247473076,
-0.10519559681415558,
-0.055903080850839615,
0.06885019689798355,
0.10050904750823975,
-0.043494999408721924,
0.012054209597408772,
0.030389543622732162,
-0.022367333993315697,
-0.06101733446121216,
-0.040260735899209976,
0.13335846364498138,
-0.04109717160463333,
-0.01610410027205944,
-0.02064700983464718,
-0.049838993698358536,
0.047757916152477264,
0.019555913284420967,
0.06835546344518661,
-0.033943284302949905,
0.050419654697179794,
-0.04918273165822029,
0.05953674390912056,
0.06041330099105835,
-0.10552006214857101,
-0.015905704349279404,
0.031497806310653687,
0.013553280383348465,
-0.028628908097743988,
0.03186414763331413,
-0.05339539796113968,
0.0810321569442749,
0.028385089710354805,
0.032004211097955704,
-0.06321639567613602,
0.018804436549544334,
-0.03103746846318245,
0.0752193033695221,
-0.024292748421430588,
-6.165608112951304e-8,
0.03189807012677193,
-0.08474088460206985,
-0.11531706899404526,
0.052200961858034134,
0.014192182570695877,
-0.01333572342991829,
0.03374696150422096,
0.04650469496846199,
-0.03901449963450432,
0.007853814400732517,
0.007590516470372677,
0.05713186785578728,
-0.03561488166451454,
-0.029050365090370178,
0.00831852201372385,
0.10087527334690094,
0.009630583226680756,
0.07951617985963821,
-0.039488185197114944,
-0.08760178834199905,
0.05497295781970024,
0.02363969385623932,
0.011951135471463203,
0.04668160155415535,
-0.023819906637072563,
-0.03199567645788193,
0.02440265193581581,
0.09052657335996628,
-0.001803618622943759,
0.030736343935132027,
-0.037440624088048935,
-0.05549969524145126,
0.013040987774729729,
-0.031021786853671074,
-0.05990425497293472,
0.0739300549030304,
0.013520482927560806,
0.007437633350491524,
0.06864655017852783,
0.021545667201280594,
0.013186703436076641,
0.03702736273407936,
-0.016835765913128853,
-0.06517048925161362,
-0.05823088437318802,
-0.0030746967531740665,
0.012906446121633053,
0.019824683666229248,
0.04782029986381531,
-0.04887094348669052,
-0.047477345913648605,
0.11000549048185349,
0.006790148559957743,
0.09075075387954712,
0.02585267834365368,
0.043412305414676666,
0.032168664038181305,
-0.05329180508852005,
0.07244669646024704,
0.019838443025946617,
-0.04285218566656113,
-0.02922622114419937,
0.03126474842429161,
-0.030490217730402946
] | 0.162037 |
# Debugging This page covers debugging helpers for streaming output, especially when a provider mixes reasoning into normal text. ## Runtime debug overrides Use `/debug` in chat to set \*\*runtime-only\*\* config overrides (memory, not disk). `/debug` is disabled by default; enable with `commands.debug: true`. This is handy when you need to toggle obscure settings without editing `openclaw.json`. Examples: ``` /debug show /debug set messages.responsePrefix="[openclaw]" /debug unset messages.responsePrefix /debug reset ``` `/debug reset` clears all overrides and returns to the on-disk config. ## Gateway watch mode For fast iteration, run the gateway under the file watcher: ```bash pnpm gateway:watch --force ``` This maps to: ```bash tsx watch src/entry.ts gateway --force ``` Add any gateway CLI flags after `gateway:watch` and they will be passed through on each restart. ## Dev profile + dev gateway (--dev) Use the dev profile to isolate state and spin up a safe, disposable setup for debugging. There are \*\*two\*\* `--dev` flags: - \*\*Global `--dev` (profile):\*\* isolates state under `~/.openclaw-dev` and defaults the gateway port to `19001` (derived ports shift with it). - \*\*`gateway --dev`: tells the Gateway to auto-create a default config + workspace\*\* when missing (and skip BOOTSTRAP.md). Recommended flow (dev profile + dev bootstrap): ```bash pnpm gateway:dev OPENCLAW\_PROFILE=dev openclaw tui ``` If you don’t have a global install yet, run the CLI via `pnpm openclaw ...`. What this does: 1. \*\*Profile isolation\*\* (global `--dev`) - `OPENCLAW\_PROFILE=dev` - `OPENCLAW\_STATE\_DIR=~/.openclaw-dev` - `OPENCLAW\_CONFIG\_PATH=~/.openclaw-dev/openclaw.json` - `OPENCLAW\_GATEWAY\_PORT=19001` (browser/canvas shift accordingly) 2. \*\*Dev bootstrap\*\* (`gateway --dev`) - Writes a minimal config if missing (`gateway.mode=local`, bind loopback). - Sets `agent.workspace` to the dev workspace. - Sets `agent.skipBootstrap=true` (no BOOTSTRAP.md). - Seeds the workspace files if missing: `AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`, `HEARTBEAT.md`. - Default identity: \*\*C3‑PO\*\* (protocol droid). - Skips channel providers in dev mode (`OPENCLAW\_SKIP\_CHANNELS=1`). Reset flow (fresh start): ```bash pnpm gateway:dev:reset ``` Note: `--dev` is a \*\*global\*\* profile flag and gets eaten by some runners. If you need to spell it out, use the env var form: ```bash OPENCLAW\_PROFILE=dev openclaw gateway --dev --reset ``` `--reset` wipes config, credentials, sessions, and the dev workspace (using `trash`, not `rm`), then recreates the default dev setup. Tip: if a non‑dev gateway is already running (launchd/systemd), stop it first: ```bash openclaw gateway stop ``` ## Raw stream logging (OpenClaw) OpenClaw can log the \*\*raw assistant stream\*\* before any filtering/formatting. This is the best way to see whether reasoning is arriving as plain text deltas (or as separate thinking blocks). Enable it via CLI: ```bash pnpm gateway:watch --force --raw-stream ``` Optional path override: ```bash pnpm gateway:watch --force --raw-stream --raw-stream-path ~/.openclaw/logs/raw-stream.jsonl ``` Equivalent env vars: ```bash OPENCLAW\_RAW\_STREAM=1 OPENCLAW\_RAW\_STREAM\_PATH=~/.openclaw/logs/raw-stream.jsonl ``` Default file: `~/.openclaw/logs/raw-stream.jsonl` ## Raw chunk logging (pi-mono) To capture \*\*raw OpenAI-compat chunks\*\* before they are parsed into blocks, pi-mono exposes a separate logger: ```bash PI\_RAW\_STREAM=1 ``` Optional path: ```bash PI\_RAW\_STREAM\_PATH=~/.pi-mono/logs/raw-openai-completions.jsonl ``` Default file: `~/.pi-mono/logs/raw-openai-completions.jsonl` > Note: this is only emitted by processes using pi-mono’s > `openai-completions` provider. ## Safety notes - Raw stream logs can include full prompts, tool output, and user data. - Keep logs local and delete them after debugging. - If you share logs, scrub secrets and PII first. | https://github.com/openclaw/openclaw/blob/main//docs/debugging.md | main | opebclaw | [
-0.05000992864370346,
-0.03359426185488701,
-0.03429678827524185,
0.0879567414522171,
0.04232173040509224,
-0.07466261088848114,
-0.030292127281427383,
0.013823925517499447,
-0.02619406394660473,
0.05979863554239273,
-0.016583381220698357,
0.034621305763721466,
-0.08219721913337708,
0.01925596036016941,
0.04541613906621933,
0.054367754608392715,
0.06980562955141068,
-0.08381467312574387,
0.02675504982471466,
-0.06451199948787689,
0.004198634531348944,
-0.008537335321307182,
-0.011327700689435005,
0.040148526430130005,
-0.06618960201740265,
0.003245025174692273,
0.006452328059822321,
0.04598735272884369,
-0.039385151118040085,
-0.0046426476910710335,
0.011218113824725151,
0.010417667217552662,
-0.08154390752315521,
0.06237383559346199,
0.03883187472820282,
0.07092169672250748,
0.013672948814928532,
-0.010955735109746456,
-0.056804247200489044,
-0.04269775003194809,
0.09434284269809723,
0.05824107676744461,
-0.04212707281112671,
-0.06378577649593353,
-0.0061798421666026115,
-0.09280785918235779,
-0.07599244266748428,
-0.04928606003522873,
0.00568361347541213,
0.007116091437637806,
-0.07849328964948654,
0.026375530287623405,
-0.00587771600112319,
-0.08579182624816895,
0.08616079390048981,
0.0095243901014328,
-0.007133670151233673,
0.03870173543691635,
0.026770951226353645,
-0.036784879863262177,
0.010185202583670616,
-0.0818471908569336,
-0.04657348617911339,
0.026180371642112732,
-0.06271155923604965,
0.07188709825277328,
-0.029946347698569298,
0.039925020188093185,
-0.008508252911269665,
0.0538029745221138,
-0.08045419305562973,
0.054275866597890854,
-0.04680253565311432,
-0.022449424490332603,
-0.038817066699266434,
-0.01584971696138382,
-0.0059226639568805695,
-0.06566409766674042,
-0.0809851661324501,
-0.06136719137430191,
-0.005953398533165455,
-0.02879493683576584,
0.012438139878213406,
0.09692008048295975,
0.05002361163496971,
0.08527389913797379,
0.0791153609752655,
-0.04097988083958626,
0.06953377276659012,
0.014144607819616795,
0.0067446548491716385,
-0.07454881817102432,
0.00454690121114254,
0.029117779806256294,
-0.0033712219446897507,
0.05131378397345543,
0.01809477061033249,
0.009561742655932903,
-0.06612484902143478,
0.023602286353707314,
0.020571481436491013,
-0.019533393904566765,
0.07827190309762955,
0.03923012688755989,
-0.0578085258603096,
-0.02847583033144474,
0.07072096318006516,
0.08699101209640503,
0.04559064656496048,
0.03332001715898514,
-0.006883039604872465,
0.03776278346776962,
0.08532597124576569,
-0.027355654165148735,
-0.024095013737678528,
0.025184445083141327,
-0.03266165032982826,
0.016503997147083282,
0.020670903846621513,
0.07976367324590683,
0.08680061250925064,
0.032402485609054565,
-0.03146090731024742,
0.015398452058434486,
0.1470668464899063,
0.09557241201400757,
0.06572429835796356,
7.518298768018174e-33,
0.01946275494992733,
-0.04776240140199661,
-0.05930878594517708,
0.06676550209522247,
0.10616634041070938,
0.02247520349919796,
0.06457020342350006,
0.0041795591823756695,
-0.058535464107990265,
0.10396821051836014,
0.013917333446443081,
0.012596160173416138,
-0.06569033861160278,
-0.05118643492460251,
0.015665460377931595,
-0.021457776427268982,
-0.055758286267519,
0.012028400786221027,
0.07561509311199188,
0.021505657583475113,
0.04931717738509178,
-0.09010564535856247,
-0.03603124991059303,
-0.026269806548953056,
0.04110318794846535,
0.02290291152894497,
-0.022607343271374702,
0.01705937087535858,
-0.061817385256290436,
0.02376180700957775,
0.0487852543592453,
0.021510494872927666,
-0.04332024231553078,
0.026194080710411072,
0.002065471839159727,
-0.09108664095401764,
-0.11408325284719467,
-0.012794905342161655,
-0.07084394246339798,
-0.009339048527181149,
-0.07684176415205002,
-0.041253771632909775,
-0.18689800798892975,
-0.05940697342157364,
-0.05880129337310791,
-0.13280460238456726,
-0.06793862581253052,
0.03589154779911041,
0.036469873040914536,
-0.003661311464384198,
0.02505474165081978,
0.10391545295715332,
0.03248276934027672,
-0.032955918461084366,
0.021740153431892395,
-0.01994323544204235,
0.038460928946733475,
-0.08465619385242462,
0.0616099089384079,
0.0317249521613121,
0.051450878381729126,
-0.025768214836716652,
-0.04231330007314682,
-0.02266824245452881,
0.04712499678134918,
-0.003883626777678728,
0.027992896735668182,
0.008541766554117203,
0.00837795715779066,
-0.05320741608738899,
-0.05016161873936653,
-0.04956672340631485,
0.028269359841942787,
0.08123128116130829,
-0.019860809668898582,
0.01582801342010498,
-0.027462977916002274,
0.04273771494626999,
0.07561839371919632,
-0.019777536392211914,
0.04574049636721611,
-0.053108494728803635,
0.006971943192183971,
0.026098079979419708,
0.05473116785287857,
-0.03731103986501694,
-0.0168109480291605,
-0.08392062783241272,
0.017087580636143684,
0.03872496262192726,
-0.01782197877764702,
-0.018851708620786667,
0.0037460792809724808,
-0.04153197258710861,
-0.038854409009218216,
-6.923831438340173e-33,
-0.03178614005446434,
-0.02744748443365097,
-0.04492062330245972,
0.03273653984069824,
-0.09076953679323196,
-0.04633815959095955,
0.06756486743688583,
-0.007860761135816574,
0.10693847388029099,
0.01612168923020363,
0.002616790123283863,
0.02148588001728058,
-0.059714172035455704,
-0.028488120064139366,
0.0322333425283432,
0.01950967311859131,
-0.029176387935876846,
-0.07398377358913422,
0.024698635563254356,
-0.031230218708515167,
-0.01816675439476967,
0.03547590225934982,
0.04266597703099251,
-0.0366908460855484,
0.03653161600232124,
0.054471783339977264,
0.0957520604133606,
0.06477335095405579,
-0.04785948619246483,
-0.09409544616937637,
0.026810983195900917,
0.09782525897026062,
-0.01993873342871666,
0.004905838519334793,
-0.0347038097679615,
0.026740847155451775,
0.05606386065483093,
0.027140924707055092,
0.0011534197255969048,
0.054077163338661194,
0.10824336856603622,
0.05198993533849716,
-0.06476432085037231,
0.02888253517448902,
0.01243424229323864,
0.03544892743229866,
-0.03172684460878372,
-0.0412406325340271,
-0.04613903909921646,
-0.0135376350954175,
0.001602684147655964,
-0.03853610157966614,
0.11487175524234772,
0.0018900538561865687,
-0.010978270322084427,
-0.022245341911911964,
0.08242390304803848,
-0.06677980720996857,
-0.01281726360321045,
-0.07172601670026779,
0.05850403010845184,
-0.08431778848171234,
-0.04917161539196968,
0.07325958460569382,
-0.0225889440625906,
0.0037670452147722244,
-0.0045304554514586926,
0.025232693180441856,
0.02337096631526947,
-0.04649662226438522,
-0.07184303551912308,
-0.0991538017988205,
-0.027277706190943718,
-0.046088866889476776,
0.05239315330982208,
0.043227653950452805,
-0.0038197836838662624,
-0.06432381272315979,
-0.03643311560153961,
0.020417345687747,
-0.009967377409338951,
-0.04663112387061119,
-0.011770469136536121,
-0.028398070484399796,
0.0035390800330787897,
-0.008898642845451832,
-0.03494701907038689,
0.1032600849866867,
0.0795157253742218,
0.06421857327222824,
-0.10398827493190765,
-0.02311156690120697,
-0.06626725941896439,
0.06669925153255463,
0.03858736529946327,
-5.630592525562861e-8,
-0.1342458575963974,
-0.0682012140750885,
-0.07011406123638153,
0.04435870051383972,
0.03752986341714859,
-0.05844855681061745,
0.008230677805840969,
0.0037566781975328922,
-0.023738820105791092,
-0.021913303062319756,
0.05841642990708351,
0.01463733334094286,
-0.07436639070510864,
0.029975879937410355,
0.02124367468059063,
-0.009585127234458923,
-0.04231233149766922,
-0.002250602701678872,
-0.02928289771080017,
-0.08225549012422562,
-0.0012123530032113194,
0.032401543110609055,
0.026110049337148666,
0.048979245126247406,
0.007225948851555586,
-0.04291843622922897,
0.0181138776242733,
0.004499251022934914,
-0.022806277498602867,
-0.0563373938202858,
-0.09342261403799057,
0.029839735478162766,
0.05205520987510681,
-0.019614044576883316,
-0.03643815591931343,
0.02342168800532818,
-0.011354243382811546,
0.027241187170147896,
0.046910203993320465,
0.018593156710267067,
0.0213864054530859,
0.027531277388334274,
-0.04449540749192238,
-0.0015078865690156817,
-0.0835304781794548,
0.02825975976884365,
-0.02489357814192772,
0.03473139554262161,
0.05856306478381157,
-0.08536785840988159,
-0.016084585338830948,
0.062065377831459045,
0.006028089672327042,
0.06512073427438736,
0.015582837164402008,
0.06092140078544617,
0.06438757479190826,
-0.030430154874920845,
-0.027945231646299362,
0.029679786413908005,
0.030137386173009872,
0.026324855163693428,
0.022274624556303024,
-0.0848819836974144
] | 0.077267 |
# Brave Search API OpenClaw uses Brave Search as the default provider for `web\_search`. ## Get an API key 1. Create a Brave Search API account at https://brave.com/search/api/ 2. In the dashboard, choose the \*\*Data for Search\*\* plan and generate an API key. 3. Store the key in config (recommended) or set `BRAVE\_API\_KEY` in the Gateway environment. ## Config example ```json5 { tools: { web: { search: { provider: "brave", apiKey: "BRAVE\_API\_KEY\_HERE", maxResults: 5, timeoutSeconds: 30, }, }, }, } ``` ## Notes - The Data for AI plan is \*\*not\*\* compatible with `web\_search`. - Brave provides a free tier plus paid plans; check the Brave API portal for current limits. See [Web tools](/tools/web) for the full web\_search configuration. | https://github.com/openclaw/openclaw/blob/main//docs/brave-search.md | main | opebclaw | [
-0.07610830664634705,
0.047311682254076004,
-0.02681799791753292,
0.08407086133956909,
0.01308419369161129,
-0.04058215394616127,
-0.1683908998966217,
-0.010249978862702847,
0.009000580757856369,
-0.0012998927850276232,
-0.006877788808196783,
-0.028154931962490082,
0.03368287533521652,
-0.04067693650722504,
0.11010780185461044,
0.0917152464389801,
-0.033369917422533035,
-0.023161299526691437,
-0.0419318825006485,
-0.09028062224388123,
0.07015544176101685,
0.04738409072160721,
0.031032390892505646,
-0.06822414696216583,
-0.033772021532058716,
-0.056827131658792496,
-0.015563716180622578,
-0.020181071013212204,
0.031054576858878136,
0.07356999069452286,
0.03887293115258217,
-0.03581419214606285,
-0.07022082805633545,
0.012937779538333416,
-0.009222093969583511,
0.00967838428914547,
-0.08955036848783493,
-0.06323616206645966,
0.0867873802781105,
-0.04072160646319389,
0.03517932817339897,
0.025806164368987083,
-0.05969950184226036,
-0.06069955602288246,
-0.012249398976564407,
-0.04643439128994942,
-0.02228546515107155,
-0.09517356753349304,
0.0012718000216409564,
0.01739276573061943,
-0.12811720371246338,
-0.039627473801374435,
-0.04151543229818344,
-0.10951107740402222,
-0.027004726231098175,
-0.04090186581015587,
0.032180577516555786,
-0.042426928877830505,
0.0145105617120862,
-0.012466785497963428,
0.09882943332195282,
-0.09634038805961609,
0.004759869538247585,
-0.027667256072163582,
-0.11556315422058105,
-0.008398419246077538,
-0.009936203248798847,
-0.025797469541430473,
0.07504058629274368,
-0.06213821470737457,
0.018852215260267258,
-0.013939062133431435,
-0.015267020091414452,
-0.048798464238643646,
0.018883006647229195,
-0.003404234303161502,
0.0104651665315032,
0.026356825605034828,
-0.013757705688476562,
-0.01783687248826027,
-0.05495638772845268,
-0.04479900747537613,
-0.028441375121474266,
0.11905732750892639,
0.001665596617385745,
0.03849149867892265,
-0.009327162057161331,
-0.007237834390252829,
0.06538986414670944,
-0.04093293473124504,
-0.021559402346611023,
-0.12660431861877441,
-0.07440997660160065,
0.00016001539188437164,
0.0020939079113304615,
0.04858965426683426,
0.018517958000302315,
-0.08656211942434311,
-0.08812737464904785,
0.008617056533694267,
-0.0031749531626701355,
-0.010602212511003017,
0.06162189319729805,
0.005287655163556337,
-0.02907128632068634,
0.056229714304208755,
0.04779806733131409,
0.07193633168935776,
0.03097897209227085,
0.021803004667162895,
-0.048501525074243546,
0.03996055945754051,
0.11907504498958588,
-0.022409990429878235,
0.005569610744714737,
0.035054124891757965,
-0.09274177998304367,
-0.02572804130613804,
0.08722206950187683,
0.104549840092659,
0.10222633928060532,
0.03246409073472023,
-0.03046051599085331,
0.025511691346764565,
0.044491544365882874,
0.046073850244283676,
0.0192416924983263,
2.928825357652333e-33,
0.10372383147478104,
0.01714252680540085,
0.023789897561073303,
0.013399762101471424,
0.036783136427402496,
-0.025278130546212196,
0.10401630401611328,
0.013933739624917507,
-0.07816054672002792,
0.04337825998663902,
-0.00942580122500658,
-0.015655187889933586,
-0.06411503255367279,
0.0434756837785244,
-0.03843953460454941,
-0.053372085094451904,
0.04123169928789139,
-0.018179720267653465,
0.06851372867822647,
-0.020569011569023132,
0.013981591910123825,
-0.03744906187057495,
0.02310754731297493,
-0.018676813691854477,
0.07451993227005005,
0.047026459127664566,
-0.018027018755674362,
-0.017192741855978966,
-0.06354910880327225,
0.025307707488536835,
0.014580040238797665,
0.0396261103451252,
-0.0884697362780571,
0.009260476566851139,
0.05340488255023956,
0.04419204965233803,
-0.09936434030532837,
0.04641871526837349,
-0.08703579008579254,
0.021930860355496407,
-0.01480100117623806,
0.03911510109901428,
-0.05195195972919464,
-0.06809546798467636,
-0.026159141212701797,
-0.08492306619882584,
-0.08940772712230682,
-0.03721172735095024,
0.05685558170080185,
0.013791775330901146,
-0.06590664386749268,
0.0765724629163742,
-0.035716403275728226,
0.000687900697812438,
0.05639561638236046,
-0.051037002354860306,
0.031076116487383842,
0.020453300327062607,
-0.007695295847952366,
-0.014290152117609978,
-0.002079060534015298,
-0.05778885260224342,
0.0061837052926421165,
0.061230938881635666,
-0.004591421689838171,
0.07193361967802048,
-0.016005825251340866,
0.03415864333510399,
0.03512980416417122,
0.04346523806452751,
0.08848987519741058,
0.055199310183525085,
0.009679771959781647,
-0.027841072529554367,
-0.05044986680150032,
-0.0886339619755745,
0.06536776572465897,
-0.014318639412522316,
0.10810086876153946,
-0.017754504457116127,
0.06282976269721985,
-0.024459222331643105,
-0.06458938866853714,
0.04616758972406387,
0.06506040692329407,
0.0008487626328133047,
0.0094053465873003,
-0.04510248079895973,
0.03377371281385422,
-0.021645979955792427,
-0.007060113828629255,
0.01722734048962593,
-0.07251905649900436,
-0.026286574080586433,
-0.09926189482212067,
-4.2502172918528826e-33,
0.009052161127328873,
-0.05834238603711128,
0.04873766377568245,
0.01184440590441227,
-0.011234917677938938,
-0.033914715051651,
0.041806358844041824,
-0.03654197230935097,
0.01926344633102417,
0.05734656751155853,
-0.002273889258503914,
0.04196803271770477,
0.05024661123752594,
-0.05519998073577881,
0.048037100583314896,
0.05011783912777901,
-0.04141800105571747,
-0.09328921884298325,
0.07001034170389175,
0.009061864577233791,
-0.014556358568370342,
-0.00008180018630810082,
-0.08409387618303299,
-0.002989331027492881,
0.06330385059118271,
-0.04482065141201019,
-0.03162200748920441,
0.015232715755701065,
-0.03597629442811012,
-0.08447207510471344,
0.017597513273358345,
0.050692640244960785,
-0.08864322304725647,
0.0073647527024149895,
0.013389271683990955,
0.01796511933207512,
0.00843409076333046,
0.10670047253370285,
0.013438903726637363,
0.07725998014211655,
0.08791714161634445,
-0.008942070417106152,
0.02339806780219078,
0.0026005124673247337,
0.009011400863528252,
0.02211199514567852,
-0.05708343908190727,
-0.04362041875720024,
-0.023548662662506104,
-0.0025437818840146065,
0.044414736330509186,
0.04829976335167885,
-0.061681341379880905,
-0.019392095506191254,
0.02169940248131752,
-0.028939420357346535,
0.02549363113939762,
0.005366757046431303,
0.007379475515335798,
-0.06198307126760483,
-0.032949309796094894,
-0.0443619079887867,
-0.05552678182721138,
0.1292533129453659,
-0.018858805298805237,
-0.019999705255031586,
-0.0590154305100441,
0.042237747460603714,
-0.04080092906951904,
-0.050069015473127365,
-0.062325529754161835,
-0.008210279047489166,
0.06889268755912781,
-0.037053171545267105,
0.036145713180303574,
-0.058888763189315796,
-0.0007635799120180309,
0.025247717276215553,
0.03834217041730881,
0.0666966438293457,
0.015808982774615288,
0.06812264770269394,
0.05648581311106682,
-0.04251289367675781,
-0.017633773386478424,
0.013893063180148602,
-0.025921529158949852,
0.15883412957191467,
-0.011949393898248672,
0.01715627685189247,
-0.04674916714429855,
-0.02066752128303051,
-0.06306307762861252,
0.016011051833629608,
0.055342551320791245,
-5.066987185387006e-8,
-0.05883924663066864,
0.020834269002079964,
-0.03380535542964935,
0.06803250312805176,
0.038940366357564926,
0.03340822085738182,
0.009728758595883846,
0.051118385046720505,
-0.03357897326350212,
0.04256203770637512,
0.0702359527349472,
0.07093781977891922,
-0.06950812041759491,
0.06362657248973846,
-0.1057615652680397,
0.03135177120566368,
-0.020583201199769974,
-0.04146632179617882,
0.06685690581798553,
-0.05394602194428444,
0.01626012846827507,
0.025399591773748398,
0.019975777715444565,
-0.023078659549355507,
0.03438287973403931,
-0.026645252481102943,
-0.08251141756772995,
0.012804051861166954,
-0.05120381340384483,
0.00540608074516058,
-0.053855106234550476,
-0.02326718345284462,
-0.001165385008789599,
-0.05590922757983208,
-0.0045381090603768826,
-0.02410527877509594,
0.0005915965302847326,
-0.020203135907649994,
-0.09148463606834412,
0.014539810828864574,
0.09412772953510284,
0.10122479498386383,
-0.030871190130710602,
-0.04609646275639534,
0.03314781188964844,
0.05089055746793747,
0.014537620358169079,
-0.018311714753508568,
0.08355635404586792,
-0.07245371490716934,
-0.006150506902486086,
-0.023348312824964523,
0.05945979431271553,
0.05454392358660698,
0.005395947024226189,
0.03387163206934929,
-0.0067420764826238155,
-0.016020921990275383,
-0.019206184893846512,
0.02468431368470192,
0.06972870230674744,
0.010496341623365879,
0.005678014829754829,
-0.05696883052587509
] | 0.044248 |
# Multi-Agent Sandbox & Tools Configuration ## Overview Each agent in a multi-agent setup can now have its own: - \*\*Sandbox configuration\*\* (`agents.list[].sandbox` overrides `agents.defaults.sandbox`) - \*\*Tool restrictions\*\* (`tools.allow` / `tools.deny`, plus `agents.list[].tools`) This allows you to run multiple agents with different security profiles: - Personal assistant with full access - Family/work agents with restricted tools - Public-facing agents in sandboxes `setupCommand` belongs under `sandbox.docker` (global or per-agent) and runs once when the container is created. Auth is per-agent: each agent reads from its own `agentDir` auth store at: ``` ~/.openclaw/agents//agent/auth-profiles.json ``` Credentials are \*\*not\*\* shared between agents. Never reuse `agentDir` across agents. If you want to share creds, copy `auth-profiles.json` into the other agent's `agentDir`. For how sandboxing behaves at runtime, see [Sandboxing](/gateway/sandboxing). For debugging “why is this blocked?”, see [Sandbox vs Tool Policy vs Elevated](/gateway/sandbox-vs-tool-policy-vs-elevated) and `openclaw sandbox explain`. --- ## Configuration Examples ### Example 1: Personal + Restricted Family Agent ```json { "agents": { "list": [ { "id": "main", "default": true, "name": "Personal Assistant", "workspace": "~/.openclaw/workspace", "sandbox": { "mode": "off" } }, { "id": "family", "name": "Family Bot", "workspace": "~/.openclaw/workspace-family", "sandbox": { "mode": "all", "scope": "agent" }, "tools": { "allow": ["read"], "deny": ["exec", "write", "edit", "apply\_patch", "process", "browser"] } } ] }, "bindings": [ { "agentId": "family", "match": { "provider": "whatsapp", "accountId": "\*", "peer": { "kind": "group", "id": "120363424282127706@g.us" } } } ] } ``` \*\*Result:\*\* - `main` agent: Runs on host, full tool access - `family` agent: Runs in Docker (one container per agent), only `read` tool --- ### Example 2: Work Agent with Shared Sandbox ```json { "agents": { "list": [ { "id": "personal", "workspace": "~/.openclaw/workspace-personal", "sandbox": { "mode": "off" } }, { "id": "work", "workspace": "~/.openclaw/workspace-work", "sandbox": { "mode": "all", "scope": "shared", "workspaceRoot": "/tmp/work-sandboxes" }, "tools": { "allow": ["read", "write", "apply\_patch", "exec"], "deny": ["browser", "gateway", "discord"] } } ] } } ``` --- ### Example 2b: Global coding profile + messaging-only agent ```json { "tools": { "profile": "coding" }, "agents": { "list": [ { "id": "support", "tools": { "profile": "messaging", "allow": ["slack"] } } ] } } ``` \*\*Result:\*\* - default agents get coding tools - `support` agent is messaging-only (+ Slack tool) --- ### Example 3: Different Sandbox Modes per Agent ```json { "agents": { "defaults": { "sandbox": { "mode": "non-main", // Global default "scope": "session" } }, "list": [ { "id": "main", "workspace": "~/.openclaw/workspace", "sandbox": { "mode": "off" // Override: main never sandboxed } }, { "id": "public", "workspace": "~/.openclaw/workspace-public", "sandbox": { "mode": "all", // Override: public always sandboxed "scope": "agent" }, "tools": { "allow": ["read"], "deny": ["exec", "write", "edit", "apply\_patch"] } } ] } } ``` --- ## Configuration Precedence When both global (`agents.defaults.\*`) and agent-specific (`agents.list[].\*`) configs exist: ### Sandbox Config Agent-specific settings override global: ``` agents.list[].sandbox.mode > agents.defaults.sandbox.mode agents.list[].sandbox.scope > agents.defaults.sandbox.scope agents.list[].sandbox.workspaceRoot > agents.defaults.sandbox.workspaceRoot agents.list[].sandbox.workspaceAccess > agents.defaults.sandbox.workspaceAccess agents.list[].sandbox.docker.\* > agents.defaults.sandbox.docker.\* agents.list[].sandbox.browser.\* > agents.defaults.sandbox.browser.\* agents.list[].sandbox.prune.\* > agents.defaults.sandbox.prune.\* ``` \*\*Notes:\*\* - `agents.list[].sandbox.{docker,browser,prune}.\*` overrides `agents.defaults.sandbox.{docker,browser,prune}.\*` for that agent (ignored when sandbox scope resolves to `"shared"`). ### Tool Restrictions The filtering order is: 1. \*\*Tool profile\*\* (`tools.profile` or `agents.list[].tools.profile`) 2. \*\*Provider tool profile\*\* (`tools.byProvider[provider].profile` or `agents.list[].tools.byProvider[provider].profile`) 3. \*\*Global tool policy\*\* (`tools.allow` / `tools.deny`) 4. \*\*Provider tool policy\*\* (`tools.byProvider[provider].allow/deny`) 5. \*\*Agent-specific tool policy\*\* (`agents.list[].tools.allow/deny`) 6. \*\*Agent provider policy\*\* (`agents.list[].tools.byProvider[provider].allow/deny`) 7. \*\*Sandbox tool policy\*\* (`tools.sandbox.tools` or `agents.list[].tools.sandbox.tools`) 8. \*\*Subagent tool policy\*\* (`tools.subagents.tools`, if applicable) Each level can further restrict tools, but cannot grant back denied tools from earlier levels. If `agents.list[].tools.sandbox.tools` is set, it replaces `tools.sandbox.tools` for that agent. If `agents.list[].tools.profile` is set, it overrides `tools.profile` for that agent. Provider tool keys accept either `provider` (e.g. `google-antigravity`) or `provider/model` (e.g. `openai/gpt-5.2`). ### Tool groups (shorthands) | https://github.com/openclaw/openclaw/blob/main//docs/multi-agent-sandbox-tools.md | main | opebclaw | [
0.011356196366250515,
-0.014074437320232391,
-0.09670274704694748,
-0.024861570447683334,
0.03236144036054611,
-0.02822933718562126,
-0.0026247904170304537,
-0.037234943360090256,
-0.02465617097914219,
-0.024281347170472145,
0.01596078649163246,
-0.08001530170440674,
0.08556008338928223,
0.028143014758825302,
0.04175649210810661,
0.01219160296022892,
0.05780041590332985,
0.038115549832582474,
-0.016008129343390465,
-0.0373200848698616,
-0.02323312871158123,
-0.012302306480705738,
0.008505952544510365,
-0.06991679221391678,
-0.12621527910232544,
-0.025338109582662582,
-0.01790529116988182,
-0.06198257580399513,
-0.051150258630514145,
-0.009369971230626106,
0.06744471937417984,
-0.03588765487074852,
-0.028029125183820724,
0.06068873032927513,
0.09128852188587189,
0.05386859551072121,
-0.0059495833702385426,
0.024213606491684914,
0.049936700612306595,
0.02879568561911583,
0.016954250633716583,
0.021056286990642548,
-0.05492930859327316,
-0.08622103929519653,
-0.08472821116447449,
-0.07626067847013474,
-0.018433384597301483,
-0.06836385279893875,
0.03078606352210045,
0.04040893539786339,
-0.021416692063212395,
-0.066652812063694,
0.010580037720501423,
0.029296284541487694,
-0.010989785194396973,
0.032008133828639984,
0.011898215860128403,
0.014469655230641365,
0.0402107872068882,
-0.07123284041881561,
0.005445331335067749,
0.006656348705291748,
-0.0037777868565171957,
-0.005629030987620354,
0.002990090986713767,
0.0037244195118546486,
-0.055356644093990326,
-0.014406452886760235,
-0.0426487997174263,
-0.05183044821023941,
-0.053118180483579636,
-0.007099032402038574,
-0.05251340940594673,
-0.07800082117319107,
0.028410805389285088,
-0.013791459612548351,
-0.05023197457194328,
0.023718276992440224,
-0.003748589660972357,
-0.07420232146978378,
-0.04765769839286804,
-0.0024338411167263985,
0.028666025027632713,
0.008559076115489006,
-0.0708063542842865,
0.0879707857966423,
0.04488162323832512,
0.017629040405154228,
0.10505221784114838,
0.009383250959217548,
0.046923328191041946,
0.009363639168441296,
0.053966742008924484,
-0.0099045904353261,
0.12169144302606583,
-0.014601945877075195,
-0.055261313915252686,
0.01734148897230625,
-0.066078782081604,
0.03595467656850815,
-0.035363540053367615,
-0.06663727760314941,
0.031271032989025116,
0.03956332430243492,
0.05342331901192665,
0.030528584495186806,
-0.009138863533735275,
-0.033742085099220276,
-0.05257413163781166,
0.0017227117205038667,
-0.033296335488557816,
0.021001366898417473,
0.01974400319159031,
0.029507864266633987,
0.07030016928911209,
0.03620453178882599,
0.0024075976107269526,
0.06783021241426468,
0.04731535166501999,
0.029979603365063667,
0.1322934925556183,
-0.04244492948055267,
0.10728805512189865,
-0.013323220424354076,
0.14062899351119995,
0.10290922224521637,
-0.024660717695951462,
4.506408571432923e-33,
0.03987753391265869,
-0.01196008175611496,
0.02576020173728466,
0.041970573365688324,
0.11027935147285461,
-0.006090027280151844,
-0.00766900135204196,
-0.003644455224275589,
-0.043616779148578644,
-0.003823978593572974,
0.024108726531267166,
0.12914761900901794,
-0.04540960490703583,
0.01160606648772955,
0.01833975501358509,
0.030109906569123268,
-0.005696138367056847,
0.004102286417037249,
0.06325052678585052,
0.04834676906466484,
-0.007198004983365536,
0.0009770393371582031,
-0.03718873858451843,
0.07055697590112686,
0.00905210804194212,
-0.002485845470800996,
-0.0038962808903306723,
-0.014302372932434082,
0.074296735227108,
0.006002502515912056,
0.030266040936112404,
0.0692141056060791,
-0.00485225860029459,
0.09877913445234299,
-0.05882760509848595,
0.031643763184547424,
-0.038682788610458374,
-0.010663104243576527,
-0.05211545154452324,
-0.01137789711356163,
-0.007946137338876724,
-0.024122197180986404,
0.10044495016336441,
-0.09418493509292603,
-0.01090291142463684,
-0.1418617218732834,
-0.03639639541506767,
0.03652196004986763,
0.07068801671266556,
0.02109784632921219,
-0.01993628777563572,
-0.023488838225603104,
0.022582992911338806,
0.020181704312562943,
-0.011433540843427181,
-0.07428967207670212,
-0.048684533685445786,
-0.012117775157094002,
0.014458557590842247,
-0.005940175149589777,
-0.06447895616292953,
-0.00095597212202847,
0.03969459608197212,
0.08282221108675003,
0.0023393782321363688,
-0.02366860769689083,
0.008738044649362564,
0.0832277238368988,
0.06112352013587952,
0.06551868468523026,
-0.06099901720881462,
0.030849501490592957,
0.015389999374747276,
0.01793452724814415,
-0.07627470046281815,
-0.10648085176944733,
0.04452712833881378,
-0.0009442222653888166,
0.017865194007754326,
-0.03266465663909912,
-0.02498685009777546,
0.09340982884168625,
0.02013942040503025,
0.03874664008617401,
-0.04096883162856102,
-0.03281356394290924,
-0.08975045382976532,
0.030307408422231674,
0.04073009267449379,
0.03976859152317047,
0.0034216539934277534,
0.01205117255449295,
-0.05189206451177597,
0.05528097227215767,
-0.12229600548744202,
-6.1266137410063904e-33,
-0.052552010864019394,
-0.08826713263988495,
-0.05567943677306175,
0.008601836860179901,
0.02623378299176693,
0.012638176791369915,
0.012074343860149384,
-0.04405830428004265,
0.020522428676486015,
-0.046725474298000336,
-0.03932624310255051,
0.026958616450428963,
0.05740611255168915,
-0.04485177621245384,
0.01128377951681614,
-0.03591020032763481,
0.03303183987736702,
-0.0498073473572731,
0.03209270164370537,
-0.06867211312055588,
0.011680936440825462,
0.032117947936058044,
0.04474036395549774,
0.039109524339437485,
0.05470781400799751,
-0.017359847202897072,
-0.03513708710670471,
0.004195798188447952,
0.0067907096818089485,
-0.005269011948257685,
0.05037379637360573,
-0.004156632348895073,
-0.02519996650516987,
-0.002761279931291938,
-0.03286346420645714,
-0.023060841485857964,
-0.10663782805204391,
0.13559535145759583,
-0.05290773883461952,
0.03738362342119217,
0.04195167496800423,
-0.11789142340421677,
-0.07455722987651825,
-0.033695563673973083,
-0.018889490514993668,
0.049717340618371964,
-0.015458025969564915,
-0.016620637848973274,
-0.05422135442495346,
0.04455884173512459,
-0.06256289035081863,
-0.020230593159794807,
0.05328289419412613,
-0.06143118068575859,
-0.03355367109179497,
0.03146888688206673,
0.05699190869927406,
0.013490169309079647,
0.07074414193630219,
0.02108716405928135,
0.07838623225688934,
-0.01766592264175415,
-0.015640661120414734,
0.15858739614486694,
-0.06044938787817955,
-0.03205351158976555,
-0.0686190277338028,
0.05762677267193794,
-0.03962399810552597,
0.008460630662739277,
0.028877297416329384,
-0.07947099953889847,
-0.0005354027962312102,
-0.012392103672027588,
0.022053541615605354,
-0.06096494570374489,
-0.046198856085538864,
-0.10670395940542221,
-0.008393852040171623,
0.054898232221603394,
-0.08346718549728394,
0.07624202966690063,
-0.01872067339718342,
-0.03886917233467102,
-0.0870736688375473,
-0.030053315684199333,
0.01030749175697565,
0.07500351220369339,
0.08457068353891373,
0.027875224128365517,
0.01590093970298767,
-0.038287632167339325,
-0.06657472997903824,
-0.03550634905695915,
-0.05592813342809677,
-5.017012583152791e-8,
0.09946028143167496,
0.0036163958720862865,
0.01151712890714407,
-0.002158679300919175,
-0.05683979392051697,
-0.05523853749036789,
0.02064785547554493,
0.0585453175008297,
-0.014322962611913681,
0.028706727549433708,
0.05540892481803894,
-0.029283758252859116,
-0.018403207883238792,
0.01175392884761095,
-0.020804423838853836,
0.07471071183681488,
0.012735061347484589,
-0.008310281671583652,
-0.020754843950271606,
-0.09679511189460754,
-0.032726045697927475,
-0.03682785481214523,
0.037595462054014206,
0.004852448124438524,
-0.05406108871102333,
0.04689827561378479,
-0.04000021889805794,
-0.02683235891163349,
-0.0479583665728569,
0.12042155861854553,
-0.0385204516351223,
-0.06716202199459076,
0.005027859937399626,
-0.04196279123425484,
-0.07453508675098419,
0.036323726177215576,
-0.07135514169931412,
-0.00806343462318182,
0.04439963027834892,
-0.02643570676445961,
-0.04843801632523537,
-0.03042592667043209,
0.0278438962996006,
-0.07448925822973251,
0.005108610726892948,
-0.022792097181081772,
-0.057941216975450516,
-0.04053909331560135,
0.07655475288629532,
-0.014249864034354687,
-0.03935622051358223,
0.04212165251374245,
0.0167140681296587,
0.08591971546411514,
0.1196415051817894,
0.027281833812594414,
0.05381375178694725,
-0.09718523919582367,
0.1389939934015274,
0.02480478771030903,
-0.07228211313486099,
-0.012699759565293789,
0.0247120913118124,
-0.004566092509776354
] | 0.061965 |
level can further restrict tools, but cannot grant back denied tools from earlier levels. If `agents.list[].tools.sandbox.tools` is set, it replaces `tools.sandbox.tools` for that agent. If `agents.list[].tools.profile` is set, it overrides `tools.profile` for that agent. Provider tool keys accept either `provider` (e.g. `google-antigravity`) or `provider/model` (e.g. `openai/gpt-5.2`). ### Tool groups (shorthands) Tool policies (global, agent, sandbox) support `group:\*` entries that expand to multiple concrete tools: - `group:runtime`: `exec`, `bash`, `process` - `group:fs`: `read`, `write`, `edit`, `apply\_patch` - `group:sessions`: `sessions\_list`, `sessions\_history`, `sessions\_send`, `sessions\_spawn`, `session\_status` - `group:memory`: `memory\_search`, `memory\_get` - `group:ui`: `browser`, `canvas` - `group:automation`: `cron`, `gateway` - `group:messaging`: `message` - `group:nodes`: `nodes` - `group:openclaw`: all built-in OpenClaw tools (excludes provider plugins) ### Elevated Mode `tools.elevated` is the global baseline (sender-based allowlist). `agents.list[].tools.elevated` can further restrict elevated for specific agents (both must allow). Mitigation patterns: - Deny `exec` for untrusted agents (`agents.list[].tools.deny: ["exec"]`) - Avoid allowlisting senders that route to restricted agents - Disable elevated globally (`tools.elevated.enabled: false`) if you only want sandboxed execution - Disable elevated per agent (`agents.list[].tools.elevated.enabled: false`) for sensitive profiles --- ## Migration from Single Agent \*\*Before (single agent):\*\* ```json { "agents": { "defaults": { "workspace": "~/.openclaw/workspace", "sandbox": { "mode": "non-main" } } }, "tools": { "sandbox": { "tools": { "allow": ["read", "write", "apply\_patch", "exec"], "deny": [] } } } } ``` \*\*After (multi-agent with different profiles):\*\* ```json { "agents": { "list": [ { "id": "main", "default": true, "workspace": "~/.openclaw/workspace", "sandbox": { "mode": "off" } } ] } } ``` Legacy `agent.\*` configs are migrated by `openclaw doctor`; prefer `agents.defaults` + `agents.list` going forward. --- ## Tool Restriction Examples ### Read-only Agent ```json { "tools": { "allow": ["read"], "deny": ["exec", "write", "edit", "apply\_patch", "process"] } } ``` ### Safe Execution Agent (no file modifications) ```json { "tools": { "allow": ["read", "exec", "process"], "deny": ["write", "edit", "apply\_patch", "browser", "gateway"] } } ``` ### Communication-only Agent ```json { "tools": { "allow": ["sessions\_list", "sessions\_send", "sessions\_history", "session\_status"], "deny": ["exec", "write", "edit", "apply\_patch", "read", "browser"] } } ``` --- ## Common Pitfall: "non-main" `agents.defaults.sandbox.mode: "non-main"` is based on `session.mainKey` (default `"main"`), not the agent id. Group/channel sessions always get their own keys, so they are treated as non-main and will be sandboxed. If you want an agent to never sandbox, set `agents.list[].sandbox.mode: "off"`. --- ## Testing After configuring multi-agent sandbox and tools: 1. \*\*Check agent resolution:\*\* ```exec openclaw agents list --bindings ``` 2. \*\*Verify sandbox containers:\*\* ```exec docker ps --filter "name=openclaw-sbx-" ``` 3. \*\*Test tool restrictions:\*\* - Send a message requiring restricted tools - Verify the agent cannot use denied tools 4. \*\*Monitor logs:\*\* ```exec tail -f "${OPENCLAW\_STATE\_DIR:-$HOME/.openclaw}/logs/gateway.log" | grep -E "routing|sandbox|tools" ``` --- ## Troubleshooting ### Agent not sandboxed despite `mode: "all"` - Check if there's a global `agents.defaults.sandbox.mode` that overrides it - Agent-specific config takes precedence, so set `agents.list[].sandbox.mode: "all"` ### Tools still available despite deny list - Check tool filtering order: global → agent → sandbox → subagent - Each level can only further restrict, not grant back - Verify with logs: `[tools] filtering tools for agent:${agentId}` ### Container not isolated per agent - Set `scope: "agent"` in agent-specific sandbox config - Default is `"session"` which creates one container per session --- ## See Also - [Multi-Agent Routing](/concepts/multi-agent) - [Sandbox Configuration](/gateway/configuration#agentsdefaults-sandbox) - [Session Management](/concepts/session) | https://github.com/openclaw/openclaw/blob/main//docs/multi-agent-sandbox-tools.md | main | opebclaw | [
-0.06593631207942963,
-0.005535058211535215,
-0.03521828353404999,
0.011727182194590569,
0.035148099064826965,
-0.0570947639644146,
0.019887225702404976,
-0.022832032293081284,
-0.04389433562755585,
-0.020405951887369156,
0.019033027812838554,
-0.04475420340895653,
0.08167646825313568,
0.006654779426753521,
0.05286062881350517,
0.03179101273417473,
0.05998493358492851,
0.0315929651260376,
0.01150389201939106,
-0.0784645602107048,
-0.006870147306472063,
0.05426166206598282,
0.05113966017961502,
-0.015201524831354618,
-0.08586307615041733,
-0.049788862466812134,
-0.07834136486053467,
-0.04414721205830574,
0.007571815978735685,
-0.013930684886872768,
0.004785818047821522,
-0.0018655637977644801,
-0.07997839897871017,
-0.016901038587093353,
0.08595763891935349,
0.11211997270584106,
-0.048776574432849884,
-0.030192729085683823,
-0.014200202189385891,
-0.025439048185944557,
-0.015801863744854927,
0.010907399468123913,
-0.045755039900541306,
-0.05111699923872948,
-0.04903138428926468,
-0.0976756289601326,
0.049508582800626755,
-0.11343193799257278,
-0.05231960490345955,
-0.0009432487422600389,
0.03510802611708641,
-0.022122463211417198,
0.021215278655290604,
-0.03226236626505852,
-0.0015095701673999429,
0.053774669766426086,
-0.03089750185608864,
0.011426619254052639,
0.04983814060688019,
0.008362403139472008,
-0.029054000973701477,
-0.007872437126934528,
-0.10627616196870804,
-0.05742309242486954,
-0.08026736229658127,
0.04837274178862572,
-0.03332309424877167,
-0.060883164405822754,
-0.032522670924663544,
-0.02099812962114811,
0.004046004265546799,
0.022598562762141228,
-0.04723880812525749,
-0.0015062113525345922,
0.067693792283535,
-0.008999248966574669,
-0.05072382092475891,
0.06266507506370544,
0.042765047401189804,
-0.10339155048131943,
-0.004178732633590698,
-0.03036203235387802,
0.053107280284166336,
0.02621890977025032,
-0.08401930332183838,
0.05744649097323418,
0.04774412885308266,
0.02966814674437046,
0.12144549936056137,
0.04990830272436142,
0.058616187423467636,
-0.009906047955155373,
0.07744652777910233,
0.05011855810880661,
0.08019519597291946,
-0.11000528931617737,
-0.0185143630951643,
-0.008461516350507736,
-0.08130427449941635,
0.04572543501853943,
-0.04691115766763687,
-0.0627276673913002,
-0.004615117330104113,
0.05477658286690712,
0.015926161780953407,
0.04727580398321152,
-0.010811424814164639,
-0.04984317719936371,
-0.03956570476293564,
0.02211826667189598,
-0.02621738240122795,
0.023245148360729218,
0.07328832894563675,
-0.04912213981151581,
0.04843926429748535,
0.007886214181780815,
0.012046905234456062,
0.014402195811271667,
-0.03008105233311653,
-0.00048474804498255253,
0.0677499920129776,
0.03764002025127411,
0.07263398170471191,
-0.028196189552545547,
0.09798677265644073,
0.11023762077093124,
-0.03682313859462738,
-1.4758152495356312e-33,
0.12083805352449417,
-0.07176198810338974,
-0.015434193424880505,
0.030950330197811127,
0.0656936839222908,
0.09545076638460159,
0.011099370196461678,
-0.004848778247833252,
-0.03275462985038757,
0.022145524621009827,
0.0030367167200893164,
0.045591942965984344,
-0.08637969195842743,
0.011558949947357178,
0.0903579369187355,
0.04145541042089462,
0.04463431239128113,
0.014728710986673832,
0.03820151463150978,
-0.021429134532809258,
-0.08780530840158463,
-0.023217124864459038,
-0.04530858248472214,
0.07968244701623917,
-0.05375184118747711,
0.07404264807701111,
-0.02467765100300312,
-0.06185828149318695,
0.12181852757930756,
0.04274957254528999,
-0.05216046795248985,
-0.009530916810035706,
0.02338525839149952,
0.08136248588562012,
-0.05004133656620979,
0.05304309353232384,
-0.016514023765921593,
-0.03703511878848076,
0.030773349106311798,
-0.02624771185219288,
0.028597185388207436,
-0.022502822801470757,
0.005045526195317507,
-0.0846206545829773,
-0.01507828664034605,
-0.12288586050271988,
-0.008596468716859818,
0.09733311086893082,
0.02305392548441887,
0.07497848570346832,
-0.08228050172328949,
0.04023744538426399,
0.02411198429763317,
-0.004802905488759279,
0.004861610941588879,
-0.11505862325429916,
-0.06289756298065186,
0.08067428320646286,
0.0287471916526556,
0.02686750330030918,
0.024006204679608345,
0.046010568737983704,
-0.001773027004674077,
0.07832285761833191,
-0.03723102807998657,
-0.015748269855976105,
-0.0022370994556695223,
0.04593449458479881,
0.0015766986180096865,
0.03790077567100525,
-0.07440895587205887,
-0.006917278748005629,
0.00976585317403078,
0.02690843679010868,
-0.07930681109428406,
-0.11451486498117447,
0.06980864703655243,
0.030376233160495758,
0.050650618970394135,
-0.054077327251434326,
-0.04264390096068382,
0.0068174987100064754,
0.021694598719477654,
-0.019710829481482506,
-0.03349081799387932,
-0.016782715916633606,
-0.04991850256919861,
0.017824849113821983,
0.021829187870025635,
-0.027491020038723946,
-0.1050567552447319,
-0.10536359250545502,
-0.018115054816007614,
0.08551996201276779,
-0.09411980956792831,
-2.947558513171617e-33,
0.016283800825476646,
-0.039755385369062424,
-0.025370443239808083,
0.017252711579203606,
0.0030236318707466125,
-0.061348725110292435,
0.0032440952491015196,
-0.06771788001060486,
0.04571777582168579,
-0.021702246740460396,
0.009589639492332935,
0.058418527245521545,
0.04774349182844162,
-0.08446689695119858,
0.05480872467160225,
-0.06012902781367302,
-0.11426182091236115,
-0.04982161521911621,
-0.03530322015285492,
-0.03574153035879135,
-0.054084230214357376,
0.04876479133963585,
-0.013743460178375244,
0.11593900620937347,
0.03862307593226433,
-0.057647187262773514,
-0.05396277830004692,
-0.026812439784407616,
0.014003616757690907,
0.004023526329547167,
0.051827382296323776,
0.015680549666285515,
-0.10311650484800339,
-0.02570336125791073,
-0.01011237408965826,
-0.04850936308503151,
-0.022231651470065117,
0.0865253284573555,
-0.04862929508090019,
0.013963603414595127,
0.0641975924372673,
-0.04075753688812256,
0.014347649179399014,
-0.016691388562321663,
-0.007316167000681162,
0.08341232687234879,
0.020995886996388435,
-0.06664079427719116,
-0.014898646622896194,
0.03367714211344719,
0.0029714086558669806,
0.0036538892891258,
0.13832493126392365,
-0.03544711321592331,
-0.02562621235847473,
-0.009011032059788704,
0.05327668413519859,
-0.05488225445151329,
0.026007240638136864,
0.005621968302875757,
0.09032455831766129,
-0.045886244624853134,
-0.022661734372377396,
0.09259600192308426,
-0.03638918697834015,
-0.02915075607597828,
-0.025585463270545006,
0.08917739987373352,
0.02958051860332489,
0.007945097051560879,
-0.001751546747982502,
-0.09725475311279297,
0.06372779607772827,
-0.009363220073282719,
0.011218835599720478,
0.0021973922848701477,
-0.07091811299324036,
-0.0684216246008873,
-0.007158646360039711,
0.022525729611516,
-0.01001434214413166,
0.026314174756407738,
0.039796169847249985,
-0.017208540812134743,
-0.05339789018034935,
-0.05223474279046059,
-0.008276826702058315,
0.050812046974897385,
0.07668529450893402,
0.03407412767410278,
-0.042076077312231064,
-0.08831562846899033,
-0.04721692204475403,
0.03413375839591026,
-0.047934390604496,
-4.997621161351162e-8,
0.08393336832523346,
0.01521941926330328,
-0.057828839868307114,
0.03622964397072792,
0.019570350646972656,
-0.00014420910156331956,
-0.05030398443341255,
0.05794462934136391,
0.004436497576534748,
0.04291195422410965,
0.08070195466279984,
-0.03167393431067467,
-0.048078399151563644,
-0.025487765669822693,
-0.00275592552497983,
0.004193686414510012,
-0.021018367260694504,
0.0705379843711853,
-0.009944397956132889,
-0.10910200327634811,
-0.05897184833884239,
-0.039077527821063995,
0.03000779263675213,
-0.02460091933608055,
-0.04497550427913666,
-0.051288966089487076,
-0.05829886347055435,
-0.025684896856546402,
-0.0390968956053257,
0.09042084962129593,
0.005223095882683992,
-0.0442194826900959,
0.02875039167702198,
0.006766469683498144,
-0.034336235374212265,
0.03898666054010391,
-0.04429445415735245,
0.050851330161094666,
0.01948232203722,
0.024648718535900116,
-0.033748213201761246,
0.015270691365003586,
0.02668805792927742,
-0.01985551416873932,
-0.07886628806591034,
0.002412384143099189,
-0.02712748944759369,
-0.0048487866297364235,
0.07123291492462158,
0.004501586779952049,
-0.06071077287197113,
0.07643550634384155,
0.0006356501253321767,
0.09697049856185913,
0.048421427607536316,
0.04070652648806572,
0.01509077474474907,
-0.0320766419172287,
-0.01657961867749691,
-0.0010470307897776365,
-0.05940974876284599,
-0.026013577356934547,
0.04326707497239113,
-0.0003632571897469461
] | 0.001863 |
# Fly.io Deployment \*\*Goal:\*\* OpenClaw Gateway running on a [Fly.io](https://fly.io) machine with persistent storage, automatic HTTPS, and Discord/channel access. ## What you need - [flyctl CLI](https://fly.io/docs/hands-on/install-flyctl/) installed - Fly.io account (free tier works) - Model auth: Anthropic API key (or other provider keys) - Channel credentials: Discord bot token, Telegram token, etc. ## Beginner quick path 1. Clone repo → customize `fly.toml` 2. Create app + volume → set secrets 3. Deploy with `fly deploy` 4. SSH in to create config or use Control UI ## 1) Create the Fly app ```bash # Clone the repo git clone https://github.com/openclaw/openclaw.git cd openclaw # Create a new Fly app (pick your own name) fly apps create my-openclaw # Create a persistent volume (1GB is usually enough) fly volumes create openclaw\_data --size 1 --region iad ``` \*\*Tip:\*\* Choose a region close to you. Common options: `lhr` (London), `iad` (Virginia), `sjc` (San Jose). ## 2) Configure fly.toml Edit `fly.toml` to match your app name and requirements. \*\*Security note:\*\* The default config exposes a public URL. For a hardened deployment with no public IP, see [Private Deployment](#private-deployment-hardened) or use `fly.private.toml`. ```toml app = "my-openclaw" # Your app name primary\_region = "iad" [build] dockerfile = "Dockerfile" [env] NODE\_ENV = "production" OPENCLAW\_PREFER\_PNPM = "1" OPENCLAW\_STATE\_DIR = "/data" NODE\_OPTIONS = "--max-old-space-size=1536" [processes] app = "node dist/index.js gateway --allow-unconfigured --port 3000 --bind lan" [http\_service] internal\_port = 3000 force\_https = true auto\_stop\_machines = false auto\_start\_machines = true min\_machines\_running = 1 processes = ["app"] [[vm]] size = "shared-cpu-2x" memory = "2048mb" [mounts] source = "openclaw\_data" destination = "/data" ``` \*\*Key settings:\*\* | Setting | Why | | ------------------------------ | --------------------------------------------------------------------------- | | `--bind lan` | Binds to `0.0.0.0` so Fly's proxy can reach the gateway | | `--allow-unconfigured` | Starts without a config file (you'll create one after) | | `internal\_port = 3000` | Must match `--port 3000` (or `OPENCLAW\_GATEWAY\_PORT`) for Fly health checks | | `memory = "2048mb"` | 512MB is too small; 2GB recommended | | `OPENCLAW\_STATE\_DIR = "/data"` | Persists state on the volume | ## 3) Set secrets ```bash # Required: Gateway token (for non-loopback binding) fly secrets set OPENCLAW\_GATEWAY\_TOKEN=$(openssl rand -hex 32) # Model provider API keys fly secrets set ANTHROPIC\_API\_KEY=sk-ant-... # Optional: Other providers fly secrets set OPENAI\_API\_KEY=sk-... fly secrets set GOOGLE\_API\_KEY=... # Channel tokens fly secrets set DISCORD\_BOT\_TOKEN=MTQ... ``` \*\*Notes:\*\* - Non-loopback binds (`--bind lan`) require `OPENCLAW\_GATEWAY\_TOKEN` for security. - Treat these tokens like passwords. - \*\*Prefer env vars over config file\*\* for all API keys and tokens. This keeps secrets out of `openclaw.json` where they could be accidentally exposed or logged. ## 4) Deploy ```bash fly deploy ``` First deploy builds the Docker image (~2-3 minutes). Subsequent deploys are faster. After deployment, verify: ```bash fly status fly logs ``` You should see: ``` [gateway] listening on ws://0.0.0.0:3000 (PID xxx) [discord] logged in to discord as xxx ``` ## 5) Create config file SSH into the machine to create a proper config: ```bash fly ssh console ``` Create the config directory and file: ```bash mkdir -p /data cat > /data/openclaw.json << 'EOF' { "agents": { "defaults": { "model": { "primary": "anthropic/claude-opus-4-5", "fallbacks": ["anthropic/claude-sonnet-4-5", "openai/gpt-4o"] }, "maxConcurrent": 4 }, "list": [ { "id": "main", "default": true } ] }, "auth": { "profiles": { "anthropic:default": { "mode": "token", "provider": "anthropic" }, "openai:default": { "mode": "token", "provider": "openai" } } }, "bindings": [ { "agentId": "main", "match": { "channel": "discord" } } ], "channels": { "discord": { "enabled": true, "groupPolicy": "allowlist", "guilds": { "YOUR\_GUILD\_ID": { "channels": { "general": { "allow": true } }, "requireMention": false } } } }, "gateway": { "mode": "local", "bind": "auto" }, "meta": | https://github.com/openclaw/openclaw/blob/main//docs/platforms/fly.md | main | opebclaw | [
-0.033388879150152206,
-0.010002829134464264,
-0.0865672305226326,
0.008698644116520882,
-0.040418993681669235,
-0.08009007573127747,
0.003067895770072937,
-0.011863209307193756,
-0.010082845576107502,
0.03686654195189476,
0.046238936483860016,
-0.02983081340789795,
0.03717122972011566,
-0.014814655296504498,
0.07046179473400116,
0.08664165437221527,
0.03596072643995285,
-0.0795421227812767,
-0.005918258801102638,
-0.04969654232263565,
0.022097812965512276,
0.06179490685462952,
0.0018438741099089384,
-0.00185291632078588,
-0.017744703218340874,
-0.09029807895421982,
0.00827634148299694,
0.03690894693136215,
-0.03488593548536301,
-0.10185541212558746,
0.10175808519124985,
0.09002896398305893,
-0.11035622656345367,
0.009028100408613682,
0.044166333973407745,
0.06851832568645477,
0.07373204082250595,
0.029680954292416573,
-0.0013184486888349056,
-0.05605605989694595,
0.09024419635534286,
-0.03877789527177811,
-0.052856508642435074,
-0.0013161401730030775,
-0.06870128959417343,
0.0054809655994176865,
-0.00019284649170003831,
0.0006607503164559603,
0.06729330122470856,
0.057223156094551086,
-0.040342722088098526,
-0.11431525647640228,
0.015579089522361755,
0.05084570497274399,
0.004758134484291077,
0.03206793963909149,
-0.01936226524412632,
0.027565641328692436,
0.0021707541309297085,
-0.16072335839271545,
0.01068531908094883,
0.05361494794487953,
0.03846390172839165,
0.013972186483442783,
-0.07471604645252228,
-0.007716471329331398,
-0.05570143461227417,
-0.021502193063497543,
0.046152614057064056,
-0.0572681725025177,
-0.021855851635336876,
0.033739689737558365,
-0.04406542703509331,
0.0007660710252821445,
-0.07684656232595444,
0.009089641273021698,
0.07420206069946289,
0.016771381720900536,
-0.04586245119571686,
0.010119318030774593,
0.007056719157844782,
0.013186822645366192,
-0.09457869827747345,
0.039230603724718094,
-0.023941563442349434,
0.06990887224674225,
0.04907893389463425,
-0.012821254320442677,
0.003961209207773209,
0.04821734502911568,
0.027794133871793747,
-0.01098260935395956,
-0.002351609990000725,
-0.05329754576086998,
0.018822040408849716,
0.03221084550023079,
-0.018597515299916267,
-0.06560461968183517,
-0.05502942204475403,
0.025179460644721985,
-0.022468654438853264,
-0.05283341929316521,
0.0589599534869194,
-0.03707810863852501,
-0.019342361018061638,
0.01004350371658802,
0.071476049721241,
0.01139357965439558,
0.0702413022518158,
0.02895749919116497,
-0.07382255792617798,
0.024470457807183266,
0.0007269655470736325,
-0.03037644736468792,
0.011626108549535275,
0.1066216304898262,
-0.049355655908584595,
-0.0035324341151863337,
0.05448966100811958,
0.005801870487630367,
0.09555179625749588,
-0.01711859367787838,
0.038292594254016876,
0.004534182138741016,
0.07719419151544571,
0.06370709091424942,
0.013232244178652763,
5.3116453442912217e-33,
0.07748726010322571,
0.035014063119888306,
-0.10931339859962463,
0.10469754040241241,
0.11384741216897964,
-0.05037585645914078,
0.08326525241136551,
-0.020260039716959,
-0.1182340458035469,
0.010248838923871517,
-0.07452051341533661,
0.008500182069838047,
0.003905643941834569,
-0.043295081704854965,
0.014730539172887802,
-0.11718083173036575,
-0.027777688577771187,
-0.016008544713258743,
0.14348551630973816,
-0.06533650308847427,
-0.017191188409924507,
-0.06436808407306671,
-0.014801722019910812,
-0.014030821621418,
0.09724487364292145,
0.016579438000917435,
0.010314982384443283,
-0.04861081764101982,
0.019384460523724556,
0.02868485078215599,
0.026149732992053032,
0.06728257983922958,
-0.021057581529021263,
0.022282639518380165,
-0.03278366103768349,
-0.02846311591565609,
-0.06421273201704025,
-0.05903138965368271,
-0.031962983310222626,
-0.006164718419313431,
-0.0025628465227782726,
-0.01586952619254589,
-0.05816170573234558,
-0.05319579318165779,
-0.045376256108284,
-0.09317611902952194,
-0.026546502485871315,
0.01542613934725523,
0.09993499517440796,
0.008540557697415352,
-0.04117568954825401,
-0.01800914667546749,
0.01706666313111782,
-0.026810577139258385,
0.026022998616099358,
-0.07068952918052673,
-0.015420467592775822,
-0.052397243678569794,
0.04406234994530678,
-0.055418338626623154,
-0.011493063531816006,
0.06459721177816391,
-0.05433531478047371,
0.06141778081655502,
0.07758651673793793,
-0.016884760931134224,
-0.0469248965382576,
0.022268636152148247,
0.019475208595395088,
0.011549095623195171,
0.014181830920279026,
-0.03668719157576561,
-0.0035125950817018747,
0.019462421536445618,
-0.03302069753408432,
-0.0727885365486145,
-0.0023737798910588026,
-0.03548616170883179,
0.06459061801433563,
0.03326556459069252,
0.058429017663002014,
-0.012099899351596832,
-0.0640849843621254,
0.030747584998607635,
0.06326442956924438,
-0.0017734970897436142,
0.05899989977478981,
-0.005901319906115532,
-0.005920324008911848,
0.012874947860836983,
-0.047584958374500275,
-0.02012728527188301,
0.07092367857694626,
-0.06562548130750656,
-0.05964123457670212,
-4.638363689784479e-33,
-0.03298170119524002,
-0.04160144552588463,
0.006755318026989698,
0.056935958564281464,
0.05765044316649437,
0.005309500731527805,
0.03105543740093708,
-0.03828330710530281,
-0.06775637716054916,
0.02042740024626255,
-0.14127109944820404,
0.05925663560628891,
0.00401326036080718,
-0.0734008252620697,
0.06075984984636307,
-0.059633031487464905,
-0.056584376841783524,
-0.07333487272262573,
0.0874360129237175,
0.010723954997956753,
-0.048434603959321976,
0.04602745920419693,
-0.04191247746348381,
0.036893464624881744,
0.008768809027969837,
0.0015796610387042165,
0.02666391246020794,
0.08546242117881775,
-0.01767970435321331,
-0.04908411577343941,
0.0026615385431796312,
0.002723718760535121,
-0.004971692338585854,
-0.016824014484882355,
-0.03719362989068031,
-0.018483534455299377,
0.047578759491443634,
0.1429131180047989,
0.0050550964660942554,
-0.07906392216682434,
0.05542018637061119,
-0.0874866172671318,
-0.08672487735748291,
-0.08495583385229111,
-0.02216971106827259,
0.0031877814326435328,
-0.02048315666615963,
0.002329242881387472,
-0.08343301713466644,
0.0059961280785501,
0.004874193575233221,
-0.006070042494684458,
0.004277660511434078,
0.034154538065195084,
0.011643367819488049,
0.05757065489888191,
0.09144799411296844,
0.011858983896672726,
0.06348199397325516,
-0.09748855233192444,
0.0110220517963171,
-0.09186767041683197,
0.03890161216259003,
0.05677073821425438,
-0.028398245573043823,
-0.0435994528234005,
0.024902069941163063,
0.0826544463634491,
-0.10563509911298752,
0.05630726367235184,
-0.1169767901301384,
-0.022264724597334862,
0.06059722229838371,
-0.031374454498291016,
0.014513032510876656,
-0.07590548694133759,
0.02758762426674366,
-0.016390826553106308,
0.05031883716583252,
0.03974016755819321,
0.004461362957954407,
0.0057083298452198505,
-0.00777815654873848,
-0.035072263330221176,
0.017737403512001038,
0.010531613603234291,
-0.008189583197236061,
0.07996869087219238,
0.03795696794986725,
0.01862705498933792,
-0.06618870049715042,
-0.03266996517777443,
0.03056054189801216,
0.022034503519535065,
0.06233653426170349,
-4.6872621339844045e-8,
-0.025036798790097237,
0.03132409229874611,
-0.022115489467978477,
0.059960346668958664,
-0.05876560136675835,
0.015841633081436157,
0.08611784130334854,
-0.03146836534142494,
0.03668902814388275,
-0.01591862179338932,
0.0040071578696370125,
0.026071546599268913,
0.010183868929743767,
0.07233414053916931,
-0.06632901728153229,
0.07438403367996216,
-0.04113428667187691,
0.020737044513225555,
0.03908689692616463,
-0.043526992201805115,
-0.012006447650492191,
0.043196965008974075,
-0.019287455826997757,
0.026014400646090508,
-0.01973435841500759,
0.054955050349235535,
-0.001257405150681734,
-0.057901035994291306,
-0.03969147056341171,
-0.01990402303636074,
-0.08454829454421997,
0.007173656485974789,
0.03617541864514351,
-0.01662513054907322,
-0.0575588122010231,
-0.009636089205741882,
-0.08160722255706787,
0.007506318856030703,
0.020515983924269676,
0.01098890881985426,
0.031118473038077354,
0.09123574942350388,
0.02121160365641117,
-0.0761210098862648,
-0.020983848720788956,
-0.018256695941090584,
-0.05057526007294655,
-0.02340068481862545,
-0.02357720211148262,
0.027324160560965538,
0.026278764009475708,
0.010546118952333927,
0.034616801887750626,
0.10070138424634933,
0.08746571838855743,
0.10521488636732101,
0.015778301283717155,
-0.05250653252005577,
0.09008699655532837,
0.04126511141657829,
0.03283314406871796,
0.04922984540462494,
-0.022722087800502777,
-0.07469381392002106
] | 0.025408 |
"openai" } } }, "bindings": [ { "agentId": "main", "match": { "channel": "discord" } } ], "channels": { "discord": { "enabled": true, "groupPolicy": "allowlist", "guilds": { "YOUR\_GUILD\_ID": { "channels": { "general": { "allow": true } }, "requireMention": false } } } }, "gateway": { "mode": "local", "bind": "auto" }, "meta": { "lastTouchedVersion": "2026.1.29" } } EOF ``` \*\*Note:\*\* With `OPENCLAW\_STATE\_DIR=/data`, the config path is `/data/openclaw.json`. \*\*Note:\*\* The Discord token can come from either: - Environment variable: `DISCORD\_BOT\_TOKEN` (recommended for secrets) - Config file: `channels.discord.token` If using env var, no need to add token to config. The gateway reads `DISCORD\_BOT\_TOKEN` automatically. Restart to apply: ```bash exit fly machine restart ``` ## 6) Access the Gateway ### Control UI Open in browser: ```bash fly open ``` Or visit `https://my-openclaw.fly.dev/` Paste your gateway token (the one from `OPENCLAW\_GATEWAY\_TOKEN`) to authenticate. ### Logs ```bash fly logs # Live logs fly logs --no-tail # Recent logs ``` ### SSH Console ```bash fly ssh console ``` ## Troubleshooting ### "App is not listening on expected address" The gateway is binding to `127.0.0.1` instead of `0.0.0.0`. \*\*Fix:\*\* Add `--bind lan` to your process command in `fly.toml`. ### Health checks failing / connection refused Fly can't reach the gateway on the configured port. \*\*Fix:\*\* Ensure `internal\_port` matches the gateway port (set `--port 3000` or `OPENCLAW\_GATEWAY\_PORT=3000`). ### OOM / Memory Issues Container keeps restarting or getting killed. Signs: `SIGABRT`, `v8::internal::Runtime\_AllocateInYoungGeneration`, or silent restarts. \*\*Fix:\*\* Increase memory in `fly.toml`: ```toml [[vm]] memory = "2048mb" ``` Or update an existing machine: ```bash fly machine update --vm-memory 2048 -y ``` \*\*Note:\*\* 512MB is too small. 1GB may work but can OOM under load or with verbose logging. \*\*2GB is recommended.\*\* ### Gateway Lock Issues Gateway refuses to start with "already running" errors. This happens when the container restarts but the PID lock file persists on the volume. \*\*Fix:\*\* Delete the lock file: ```bash fly ssh console --command "rm -f /data/gateway.\*.lock" fly machine restart ``` The lock file is at `/data/gateway.\*.lock` (not in a subdirectory). ### Config Not Being Read If using `--allow-unconfigured`, the gateway creates a minimal config. Your custom config at `/data/openclaw.json` should be read on restart. Verify the config exists: ```bash fly ssh console --command "cat /data/openclaw.json" ``` ### Writing Config via SSH The `fly ssh console -C` command doesn't support shell redirection. To write a config file: ```bash # Use echo + tee (pipe from local to remote) echo '{"your":"config"}' | fly ssh console -C "tee /data/openclaw.json" # Or use sftp fly sftp shell > put /local/path/config.json /data/openclaw.json ``` \*\*Note:\*\* `fly sftp` may fail if the file already exists. Delete first: ```bash fly ssh console --command "rm /data/openclaw.json" ``` ### State Not Persisting If you lose credentials or sessions after a restart, the state dir is writing to the container filesystem. \*\*Fix:\*\* Ensure `OPENCLAW\_STATE\_DIR=/data` is set in `fly.toml` and redeploy. ## Updates ```bash # Pull latest changes git pull # Redeploy fly deploy # Check health fly status fly logs ``` ### Updating Machine Command If you need to change the startup command without a full redeploy: ```bash # Get machine ID fly machines list # Update command fly machine update --command "node dist/index.js gateway --port 3000 --bind lan" -y # Or with memory increase fly machine update --vm-memory 2048 --command "node dist/index.js gateway --port 3000 --bind lan" -y ``` \*\*Note:\*\* After `fly deploy`, the machine command may reset to what's in `fly.toml`. If you made manual changes, re-apply them after deploy. ## Private Deployment (Hardened) By default, Fly allocates public IPs, making your gateway accessible at `https://your-app.fly.dev`. This is convenient but means your deployment is discoverable by internet | https://github.com/openclaw/openclaw/blob/main//docs/platforms/fly.md | main | opebclaw | [
-0.005873567890375853,
0.002166582504287362,
-0.06383170932531357,
0.06428439915180206,
0.004669577348977327,
-0.01231527328491211,
0.030411118641495705,
-0.02326718345284462,
0.013574021868407726,
-0.007429017219692469,
0.005731995217502117,
-0.07226626574993134,
-0.006161228753626347,
0.05982198566198349,
0.14038214087486267,
0.10380241274833679,
-0.02984726056456566,
-0.06958773732185364,
-0.039011240005493164,
-0.10155202448368073,
0.009350549429655075,
0.05734679102897644,
-0.025020712986588478,
-0.056418027728796005,
-0.0633452981710434,
-0.09377480298280716,
-0.050830718129873276,
-0.005404593888670206,
-0.015359642915427685,
0.01823974959552288,
0.053618259727954865,
-0.008462508209049702,
-0.004116655793040991,
0.045356493443250656,
0.05997411534190178,
0.0758504644036293,
0.03031291253864765,
-0.04327273741364479,
-0.018135886639356613,
0.06870811432600021,
0.12731070816516876,
0.024222979322075844,
-0.019260501489043236,
-0.06996644288301468,
-0.03503413870930672,
-0.07935309410095215,
-0.04224751889705658,
-0.02711198665201664,
-0.02855999767780304,
0.06342466175556183,
-0.049727823585271835,
-0.08369193971157074,
0.011411185376346111,
-0.005311233922839165,
-0.0038973281625658274,
0.02327938936650753,
-0.0717398002743721,
0.02683247998356819,
0.05539543181657791,
-0.1343521624803543,
0.09869125485420227,
-0.09312079846858978,
0.004116925410926342,
-0.031113658100366592,
-0.08136916160583496,
-0.054209332913160324,
-0.04742477461695671,
0.007513667922466993,
0.006812138017266989,
-0.0462014339864254,
-0.024434735998511314,
0.01808280311524868,
-0.03977290540933609,
-0.0669904500246048,
0.03128108009696007,
0.011903028003871441,
-0.025196697562932968,
0.017400594428181648,
0.02968878298997879,
-0.09684961289167404,
0.02701982855796814,
-0.045532360672950745,
-0.011449916288256645,
0.06409142166376114,
0.013572350144386292,
0.10318731516599655,
-0.02555631846189499,
-0.05332301929593086,
-0.04397978261113167,
-0.019954072311520576,
-0.06307856738567352,
-0.07460726797580719,
0.03494787961244583,
-0.007075049914419651,
0.01232972089201212,
0.10984930396080017,
-0.09511187672615051,
0.0010055142920464277,
-0.03344336152076721,
0.08351234346628189,
-0.013896911405026913,
-0.015294759534299374,
0.009476137347519398,
0.04891330748796463,
0.008815689943730831,
0.012883520685136318,
-0.014322957023978233,
0.081992968916893,
-0.03090609237551689,
0.02755671925842762,
-0.026241183280944824,
0.068417988717556,
0.037789907306432724,
-0.010585266165435314,
0.014374512247741222,
0.05506058409810066,
0.01893586479127407,
0.04651973396539688,
0.06480301916599274,
0.11086303740739822,
0.14933334290981293,
-0.05932651460170746,
-0.05422310531139374,
0.028406500816345215,
0.04163990169763565,
0.04504091665148735,
0.06931571662425995,
2.3828074970114112e-33,
0.08497177064418793,
-0.04329993203282356,
-0.07990993559360504,
-0.0005268396926112473,
0.11837360262870789,
-0.010874465107917786,
0.016011208295822144,
0.009518603794276714,
-0.10791543871164322,
0.049555882811546326,
-0.03583984822034836,
0.06293850392103195,
-0.0023783717770129442,
-0.028105299919843674,
-0.033032938838005066,
0.004955205600708723,
-0.009591780602931976,
0.021484002470970154,
0.08364521712064743,
-0.053166769444942474,
-0.013972037471830845,
0.03911345824599266,
-0.04913216456770897,
0.03852548822760582,
-0.03731556609272957,
0.0022695036605000496,
-0.019633576273918152,
-0.023523179814219475,
0.033316779881715775,
-0.00491115590557456,
0.051953814923763275,
0.019995665177702904,
0.04130662605166435,
0.07057225704193115,
-0.03180045634508133,
-0.011980023235082626,
-0.012968230061233044,
-0.024836229160428047,
-0.0858873650431633,
-0.059402789920568466,
0.007156992331147194,
-0.01969919353723526,
-0.07762996107339859,
-0.049789994955062866,
-0.07469694316387177,
-0.082783542573452,
-0.006512151565402746,
-0.01566418446600437,
0.06430447101593018,
-0.006488804239779711,
-0.07555289566516876,
0.06845830380916595,
-0.007035177666693926,
-0.04324307665228844,
0.061818696558475494,
-0.11000730842351913,
-0.06521983444690704,
0.06015676632523537,
0.030008332803845406,
-0.09872302412986755,
-0.016268959268927574,
0.05200860649347305,
0.04818972945213318,
0.0220926683396101,
0.02238372154533863,
0.021085841581225395,
0.005861011799424887,
0.055303946137428284,
0.014837036840617657,
-0.053470954298973083,
-0.024649012833833694,
0.0631561204791069,
-0.03993285819888115,
0.04158709570765495,
-0.07702984660863876,
-0.10404007881879807,
0.007772640325129032,
-0.022345343604683876,
0.036621127277612686,
0.013250607065856457,
-0.005186561029404402,
-0.05868883803486824,
-0.06475111842155457,
0.0958198681473732,
-0.010445615276694298,
-0.005610072985291481,
0.04112406075000763,
-0.04853706806898117,
0.054112646728754044,
-0.021433662623167038,
-0.11033617705106735,
0.0321170948445797,
-0.026508839800953865,
0.006366450805217028,
-0.03061758168041706,
-3.130310966855027e-33,
0.06811974942684174,
0.007122237700968981,
0.00764781329780817,
-0.02078990638256073,
0.017411597073078156,
-0.03776080906391144,
0.09179320931434631,
-0.02540207840502262,
0.03544122353196144,
0.04353141412138939,
0.04869724065065384,
0.0034941385965794325,
0.02482275478541851,
-0.060619983822107315,
0.04158811643719673,
-0.03333272412419319,
-0.07113030552864075,
-0.038712963461875916,
0.022157518193125725,
-0.028717728331685066,
-0.0311202984303236,
0.03022841550409794,
-0.015279946848750114,
0.0712009146809578,
0.005921983625739813,
-0.03298117592930794,
0.039263490587472916,
-0.012598797678947449,
-0.12013756483793259,
-0.018974119797348976,
0.0490378737449646,
0.046807438135147095,
-0.0754295140504837,
0.038262031972408295,
-0.04385296255350113,
-0.007260025478899479,
0.013285785913467407,
0.10437870025634766,
-0.0338195264339447,
-0.02670668251812458,
0.052702877670526505,
-0.0028141422662883997,
-0.09162256866693497,
0.01051874365657568,
-0.02063027210533619,
0.05203338339924812,
0.05979784205555916,
0.04792490229010582,
-0.047996532171964645,
0.005247943568974733,
0.06006511673331261,
-0.02249838225543499,
0.016233069822192192,
0.029802413657307625,
0.030324995517730713,
0.07712672650814056,
0.07587303966283798,
-0.07152454555034637,
-0.0040587447583675385,
-0.050604306161403656,
-0.03689667955040932,
-0.08410480618476868,
-0.05029024928808212,
0.07486606389284134,
0.06501482427120209,
-0.07813284546136856,
-0.05544133856892586,
0.08856723457574844,
-0.013920869678258896,
-0.061913032084703445,
0.0020178535487502813,
-0.05108286440372467,
0.001374201849102974,
0.018340859562158585,
0.03632592037320137,
-0.013400019146502018,
0.03432615101337433,
-0.05817326158285141,
0.025033066049218178,
0.10297531634569168,
-0.023813072592020035,
0.008118783123791218,
0.021335477009415627,
0.02179156243801117,
0.024709807708859444,
-0.009310913272202015,
0.008053379133343697,
0.16092908382415771,
-0.0005586159531958401,
0.09549644589424133,
-0.033000361174345016,
-0.009029785171151161,
0.019565384835004807,
-0.046733397990465164,
0.018932590261101723,
-4.675608522575203e-8,
-0.1448991447687149,
-0.0047463541850447655,
-0.0850246399641037,
0.01809772476553917,
-0.036609355360269547,
-0.01859092153608799,
0.059120386838912964,
-0.03606627881526947,
0.007638243492692709,
0.024645380675792694,
0.0396847240626812,
0.071459099650383,
-0.0515877828001976,
-0.0007039304473437369,
-0.06190764158964157,
0.0010821919422596693,
-0.02603640779852867,
0.06271211057901382,
0.032260578125715256,
-0.002589003648608923,
0.04434024170041084,
-0.027395354583859444,
0.06338924914598465,
-0.0009886863408610225,
-0.0020811655558645725,
0.01042366772890091,
-0.051908981055021286,
0.009478888474404812,
-0.07513269037008286,
0.04552466422319412,
-0.04420660436153412,
-0.042193252593278885,
0.06327643245458603,
-0.037999752908945084,
-0.10553208738565445,
0.034592751413583755,
0.008541855961084366,
0.014081582427024841,
-0.008636252954602242,
0.0047024888917803764,
0.06385478377342224,
0.0033388682641088963,
-0.04889117181301117,
-0.035764649510383606,
-0.04267833009362221,
0.008247428573668003,
0.0020274403505027294,
0.06483745574951172,
0.0911756306886673,
-0.013748055323958397,
-0.048740994185209274,
-0.014339404180645943,
0.07221666723489761,
0.03634878620505333,
-0.019067127257585526,
-0.01888369582593441,
0.03753586858510971,
0.005900018848478794,
-0.012707656249403954,
0.02913643606007099,
0.019399093464016914,
0.019313381984829903,
-0.023803239688277245,
-0.05804968625307083
] | 0.093561 |
``` \*\*Note:\*\* After `fly deploy`, the machine command may reset to what's in `fly.toml`. If you made manual changes, re-apply them after deploy. ## Private Deployment (Hardened) By default, Fly allocates public IPs, making your gateway accessible at `https://your-app.fly.dev`. This is convenient but means your deployment is discoverable by internet scanners (Shodan, Censys, etc.). For a hardened deployment with \*\*no public exposure\*\*, use the private template. ### When to use private deployment - You only make \*\*outbound\*\* calls/messages (no inbound webhooks) - You use \*\*ngrok or Tailscale\*\* tunnels for any webhook callbacks - You access the gateway via \*\*SSH, proxy, or WireGuard\*\* instead of browser - You want the deployment \*\*hidden from internet scanners\*\* ### Setup Use `fly.private.toml` instead of the standard config: ```bash # Deploy with private config fly deploy -c fly.private.toml ``` Or convert an existing deployment: ```bash # List current IPs fly ips list -a my-openclaw # Release public IPs fly ips release -a my-openclaw fly ips release -a my-openclaw # Switch to private config so future deploys don't re-allocate public IPs # (remove [http\_service] or deploy with the private template) fly deploy -c fly.private.toml # Allocate private-only IPv6 fly ips allocate-v6 --private -a my-openclaw ``` After this, `fly ips list` should show only a `private` type IP: ``` VERSION IP TYPE REGION v6 fdaa:x:x:x:x::x private global ``` ### Accessing a private deployment Since there's no public URL, use one of these methods: \*\*Option 1: Local proxy (simplest)\*\* ```bash # Forward local port 3000 to the app fly proxy 3000:3000 -a my-openclaw # Then open http://localhost:3000 in browser ``` \*\*Option 2: WireGuard VPN\*\* ```bash # Create WireGuard config (one-time) fly wireguard create # Import to WireGuard client, then access via internal IPv6 # Example: http://[fdaa:x:x:x:x::x]:3000 ``` \*\*Option 3: SSH only\*\* ```bash fly ssh console -a my-openclaw ``` ### Webhooks with private deployment If you need webhook callbacks (Twilio, Telnyx, etc.) without public exposure: 1. \*\*ngrok tunnel\*\* - Run ngrok inside the container or as a sidecar 2. \*\*Tailscale Funnel\*\* - Expose specific paths via Tailscale 3. \*\*Outbound-only\*\* - Some providers (Twilio) work fine for outbound calls without webhooks Example voice-call config with ngrok: ```json { "plugins": { "entries": { "voice-call": { "enabled": true, "config": { "provider": "twilio", "tunnel": { "provider": "ngrok" }, "webhookSecurity": { "allowedHosts": ["example.ngrok.app"] } } } } } } ``` The ngrok tunnel runs inside the container and provides a public webhook URL without exposing the Fly app itself. Set `webhookSecurity.allowedHosts` to the public tunnel hostname so forwarded host headers are accepted. ### Security benefits | Aspect | Public | Private | | ----------------- | ------------ | ---------- | | Internet scanners | Discoverable | Hidden | | Direct attacks | Possible | Blocked | | Control UI access | Browser | Proxy/VPN | | Webhook delivery | Direct | Via tunnel | ## Notes - Fly.io uses \*\*x86 architecture\*\* (not ARM) - The Dockerfile is compatible with both architectures - For WhatsApp/Telegram onboarding, use `fly ssh console` - Persistent data lives on the volume at `/data` - Signal requires Java + signal-cli; use a custom image and keep memory at 2GB+. ## Cost With the recommended config (`shared-cpu-2x`, 2GB RAM): - ~$10-15/month depending on usage - Free tier includes some allowance See [Fly.io pricing](https://fly.io/docs/about/pricing/) for details. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/fly.md | main | opebclaw | [
-0.0567065067589283,
0.07593291997909546,
-0.044587135314941406,
-0.020904788747429848,
-0.015366966836154461,
-0.08188332617282867,
-0.00752722192555666,
-0.03585616499185562,
-0.05382498726248741,
0.005210410803556442,
0.09638480842113495,
-0.04630179703235626,
0.029853640124201775,
-0.05608660355210304,
0.056738175451755524,
0.06790987402200699,
0.048286907374858856,
-0.04478215426206589,
-0.021775629371404648,
-0.035526640713214874,
-0.012562763877213001,
0.065358005464077,
-0.02456911839544773,
0.037623025476932526,
-0.01835949905216694,
-0.0181464534252882,
0.018619664013385773,
0.05249343439936638,
0.008781075477600098,
-0.05931735783815384,
0.002067550318315625,
0.012409749440848827,
-0.16634602844715118,
0.019249068573117256,
0.026884417980909348,
0.08640313148498535,
0.0683785155415535,
0.05165155977010727,
-0.009252757765352726,
-0.035254720598459244,
0.12635795772075653,
-0.0469353012740612,
-0.017589202150702477,
-0.06273939460515976,
-0.030671024695038795,
-0.042984236031770706,
0.0019439510069787502,
-0.025459809228777885,
0.013863785192370415,
-0.002388355555012822,
-0.02578127384185791,
-0.04900733754038811,
-0.0004098631616216153,
0.04830264672636986,
0.023108091205358505,
-0.03412479907274246,
0.04723918437957764,
0.013154059648513794,
-0.004193425644189119,
-0.07723928987979889,
-0.014170552603900433,
0.028787489980459213,
0.04645458236336708,
0.02572256699204445,
-0.04732682183384895,
-0.05200381577014923,
-0.048328496515750885,
-0.039366353303194046,
0.06360955536365509,
-0.0017067593289539218,
-0.09030789881944656,
0.06637781858444214,
-0.0072665102779865265,
-0.023609625175595284,
-0.044876374304294586,
0.007675119210034609,
0.024916015565395355,
0.00793280079960823,
0.05505188927054405,
-0.05618320778012276,
0.12776154279708862,
-0.03575080633163452,
-0.0006012775702401996,
0.08993712067604065,
-0.005581184756010771,
0.017504634335637093,
0.003968047443777323,
-0.016833065077662468,
0.10264979302883148,
0.08836852014064789,
0.035775743424892426,
-0.06910628080368042,
-0.03350204601883888,
0.03254154324531555,
-0.020072663202881813,
-0.004953920375555754,
-0.005850209854543209,
-0.032363709062337875,
-0.07427938282489777,
0.031446993350982666,
0.013300714083015919,
-0.08077669888734818,
0.08481701463460922,
-0.01744392141699791,
0.025029148906469345,
0.011002343147993088,
0.06234070286154747,
-0.0386568121612072,
0.08134020864963531,
0.007422100752592087,
-0.041742563247680664,
0.004214228130877018,
-0.016482017934322357,
-0.10331954061985016,
-0.03955348953604698,
0.0635409876704216,
-0.0008150118519552052,
-0.016419952735304832,
0.01601695641875267,
0.04637638106942177,
0.004778815899044275,
0.03763144090771675,
0.07604093849658966,
0.0020150861237198114,
0.08307993412017822,
0.03525417298078537,
-0.0046829418279230595,
2.4820192202208122e-33,
0.08063267171382904,
-0.032109491527080536,
-0.11279964447021484,
0.092565156519413,
0.08527640253305435,
-0.08894123136997223,
0.06350751966238022,
-0.027769461274147034,
-0.031045516952872276,
-0.01802455261349678,
0.023493509739637375,
-0.025636306032538414,
0.028780408203601837,
-0.018071189522743225,
0.006388989742845297,
-0.015505985356867313,
0.001391806174069643,
0.006413797382265329,
0.12287549674510956,
-0.0023616391699761152,
-0.030552580952644348,
-0.13432617485523224,
-0.05652332678437233,
-0.0037372950464487076,
0.031204601749777794,
-0.006941183935850859,
-0.00826963409781456,
-0.022789137437939644,
-0.06257554888725281,
0.07910104840993881,
0.04858071357011795,
0.06443536281585693,
0.024962391704320908,
0.02173217386007309,
-0.039831191301345825,
-0.019610492512583733,
-0.03828408941626549,
-0.0946531891822815,
0.007783967070281506,
0.04472007602453232,
-0.020166434347629547,
-0.07428477704524994,
-0.09078607708215714,
-0.01793098635971546,
-0.05960095301270485,
-0.06776345521211624,
-0.07011077553033829,
-0.006704990286380053,
0.1144825741648674,
-0.0510186143219471,
-0.07917291671037674,
-0.012961299158632755,
0.03971445560455322,
-0.05863145366311073,
0.037382856011390686,
0.007692000363022089,
0.010587118566036224,
-0.029399748891592026,
-0.011783321388065815,
-0.014618560671806335,
-0.031264811754226685,
0.07908709347248077,
-0.04907054081559181,
0.035196732729673386,
0.10465970635414124,
-0.005447181407362223,
-0.03156359866261482,
0.08470958471298218,
-0.10005293041467667,
-0.02584785781800747,
-0.009023947641253471,
-0.03469981998205185,
0.06719780713319778,
0.046428270637989044,
-0.008524030447006226,
-0.065684475004673,
0.01586824096739292,
0.04661499708890915,
0.01247255876660347,
-0.00718065956607461,
0.07071921229362488,
0.037692297250032425,
-0.06395716965198517,
0.04698474332690239,
0.003000186290591955,
-0.026246769353747368,
0.07377788424491882,
-0.031654927879571915,
-0.030551766976714134,
0.061274390667676926,
-0.011444639414548874,
-0.040299903601408005,
0.01527990773320198,
-0.05919933319091797,
-0.14818845689296722,
-4.320413773722159e-33,
-0.04518376290798187,
0.06543000042438507,
-0.08630314469337463,
0.019608277827501297,
-0.03159836307168007,
-0.010046768933534622,
0.080410897731781,
0.01024432573467493,
-0.00441745575517416,
0.009830836206674576,
-0.03609732910990715,
0.09509476274251938,
-0.03402084484696388,
-0.054813452064991,
0.019129281863570213,
-0.011633886024355888,
-0.052008844912052155,
-0.05429686978459358,
0.05054262652993202,
0.015567741356790066,
0.028066789731383324,
0.0034649898298084736,
-0.02786043845117092,
0.044400911778211594,
0.00890380423516035,
-0.0647396668791771,
-0.03297784551978111,
0.09880919754505157,
-0.06449431926012039,
-0.01407144870609045,
0.04128304123878479,
0.044564153999090195,
-0.00797958392649889,
0.031720444560050964,
-0.05562371388077736,
-0.030432885512709618,
-0.018862387165427208,
0.07999806851148605,
0.0790630653500557,
-0.08560776710510254,
0.038827333599328995,
-0.07414466142654419,
-0.056975916028022766,
-0.009624198079109192,
-0.02430085651576519,
0.009932165965437889,
-0.04263821616768837,
-0.02437620609998703,
-0.0211502593010664,
-0.002280883491039276,
-0.03883832320570946,
0.05725562199950218,
-0.011317209340631962,
0.10049126297235489,
-0.04480848088860512,
0.13953012228012085,
0.05305448919534683,
-0.018503185361623764,
0.000040199818613473326,
0.034384023398160934,
0.030314581468701363,
-0.1011519581079483,
-0.04713154956698418,
0.06680294126272202,
-0.04468543455004692,
-0.01490849256515503,
-0.029119327664375305,
0.07438544183969498,
-0.04009899124503136,
0.031787388026714325,
-0.10372185707092285,
-0.017864955589175224,
0.02888893522322178,
-0.01532654743641615,
-0.007208638358861208,
-0.03652546927332878,
0.1024336963891983,
-0.008409981615841389,
-0.018171582370996475,
0.009945758618414402,
-0.002904379041865468,
-0.010242538526654243,
-0.07830864191055298,
-0.10314763337373734,
0.05527063459157944,
-0.041082076728343964,
-0.03471677005290985,
0.035847462713718414,
0.01671627350151539,
-0.05305590480566025,
-0.03103015571832657,
-0.03455241024494171,
-0.08459226787090302,
-0.010704013518989086,
0.012532760389149189,
-5.587719087429832e-8,
-0.010286550968885422,
0.027523955330252647,
0.006780939642339945,
0.008980941958725452,
0.024779679253697395,
0.028179164975881577,
0.0688287615776062,
-0.07052654027938843,
0.004004232119768858,
-0.004235763568431139,
-0.030853796750307083,
0.04222641885280609,
0.009417057037353516,
0.06745636463165283,
-0.061923880130052567,
0.0130518339574337,
-0.05761447548866272,
0.0007336485432460904,
0.015105816535651684,
-0.08461733907461166,
-0.06271341443061829,
-0.032702378928661346,
-0.030186880379915237,
0.019993603229522705,
0.015110880136489868,
0.1299169808626175,
0.008886582218110561,
-0.10358453541994095,
-0.02790542133152485,
0.08893656730651855,
-0.07586362957954407,
0.003853047266602516,
-0.010093611665070057,
0.044290442019701004,
-0.10283727198839188,
0.061479900032281876,
-0.052234433591365814,
0.020129075273871422,
0.01799118146300316,
0.06925974786281586,
0.007386742625385523,
0.036607034504413605,
0.045951925218105316,
-0.026492826640605927,
0.020060837268829346,
0.04560788348317146,
-0.01871057040989399,
0.001289931358769536,
0.012959575280547142,
0.006629360374063253,
0.018054494634270668,
-0.0017308982787653804,
0.08735902607440948,
0.003447606461122632,
0.06674756109714508,
0.07865230739116669,
0.05134253576397896,
-0.07317505031824112,
0.07250137627124786,
0.0524427555501461,
0.03364133462309837,
0.008892475627362728,
-0.016226114705204964,
-0.04146827757358551
] | -0.005627 |
# Android App (Node) ## Support snapshot - Role: companion node app (Android does not host the Gateway). - Gateway required: yes (run it on macOS, Linux, or Windows via WSL2). - Install: [Getting Started](/start/getting-started) + [Pairing](/gateway/pairing). - Gateway: [Runbook](/gateway) + [Configuration](/gateway/configuration). - Protocols: [Gateway protocol](/gateway/protocol) (nodes + control plane). ## System control System control (launchd/systemd) lives on the Gateway host. See [Gateway](/gateway). ## Connection Runbook Android node app ⇄ (mDNS/NSD + WebSocket) ⇄ \*\*Gateway\*\* Android connects directly to the Gateway WebSocket (default `ws://:18789`) and uses Gateway-owned pairing. ### Prerequisites - You can run the Gateway on the “master” machine. - Android device/emulator can reach the gateway WebSocket: - Same LAN with mDNS/NSD, \*\*or\*\* - Same Tailscale tailnet using Wide-Area Bonjour / unicast DNS-SD (see below), \*\*or\*\* - Manual gateway host/port (fallback) - You can run the CLI (`openclaw`) on the gateway machine (or via SSH). ### 1) Start the Gateway ```bash openclaw gateway --port 18789 --verbose ``` Confirm in logs you see something like: - `listening on ws://0.0.0.0:18789` For tailnet-only setups (recommended for Vienna ⇄ London), bind the gateway to the tailnet IP: - Set `gateway.bind: "tailnet"` in `~/.openclaw/openclaw.json` on the gateway host. - Restart the Gateway / macOS menubar app. ### 2) Verify discovery (optional) From the gateway machine: ```bash dns-sd -B \_openclaw-gw.\_tcp local. ``` More debugging notes: [Bonjour](/gateway/bonjour). #### Tailnet (Vienna ⇄ London) discovery via unicast DNS-SD Android NSD/mDNS discovery won’t cross networks. If your Android node and the gateway are on different networks but connected via Tailscale, use Wide-Area Bonjour / unicast DNS-SD instead: 1. Set up a DNS-SD zone (example `openclaw.internal.`) on the gateway host and publish `\_openclaw-gw.\_tcp` records. 2. Configure Tailscale split DNS for your chosen domain pointing at that DNS server. Details and example CoreDNS config: [Bonjour](/gateway/bonjour). ### 3) Connect from Android In the Android app: - The app keeps its gateway connection alive via a \*\*foreground service\*\* (persistent notification). - Open \*\*Settings\*\*. - Under \*\*Discovered Gateways\*\*, select your gateway and hit \*\*Connect\*\*. - If mDNS is blocked, use \*\*Advanced → Manual Gateway\*\* (host + port) and \*\*Connect (Manual)\*\*. After the first successful pairing, Android auto-reconnects on launch: - Manual endpoint (if enabled), otherwise - The last discovered gateway (best-effort). ### 4) Approve pairing (CLI) On the gateway machine: ```bash openclaw nodes pending openclaw nodes approve ``` Pairing details: [Gateway pairing](/gateway/pairing). ### 5) Verify the node is connected - Via nodes status: ```bash openclaw nodes status ``` - Via Gateway: ```bash openclaw gateway call node.list --params "{}" ``` ### 6) Chat + history The Android node’s Chat sheet uses the gateway’s \*\*primary session key\*\* (`main`), so history and replies are shared with WebChat and other clients: - History: `chat.history` - Send: `chat.send` - Push updates (best-effort): `chat.subscribe` → `event:"chat"` ### 7) Canvas + camera #### Gateway Canvas Host (recommended for web content) If you want the node to show real HTML/CSS/JS that the agent can edit on disk, point the node at the Gateway canvas host. Note: nodes use the standalone canvas host on `canvasHost.port` (default `18793`). 1. Create `~/.openclaw/workspace/canvas/index.html` on the gateway host. 2. Navigate the node to it (LAN): ```bash openclaw nodes invoke --node "" --command canvas.navigate --params '{"url":"http://.local:18793/\_\_openclaw\_\_/canvas/"}' ``` Tailnet (optional): if both devices are on Tailscale, use a MagicDNS name or tailnet IP instead of `.local`, e.g. `http://:18793/\_\_openclaw\_\_/canvas/`. This server injects a live-reload client into HTML and reloads on file changes. The A2UI host lives at `http://:18793/\_\_openclaw\_\_/a2ui/`. Canvas commands (foreground only): - `canvas.eval`, `canvas.snapshot`, `canvas.navigate` (use `{"url":""}` or `{"url":"/"}` to return to the default scaffold). `canvas.snapshot` returns `{ format, base64 }` (default `format="jpeg"`). - A2UI: `canvas.a2ui.push`, `canvas.a2ui.reset` (`canvas.a2ui.pushJSONL` legacy | https://github.com/openclaw/openclaw/blob/main//docs/platforms/android.md | main | opebclaw | [
-0.028294814750552177,
0.012731052003800869,
-0.0007609020103700459,
-0.09940477460622787,
-0.031078141182661057,
-0.04171227663755417,
-0.0948629304766655,
0.041375771164894104,
0.0191115140914917,
-0.01618359051644802,
0.022741034626960754,
-0.023489689454436302,
0.10367251187562943,
-0.08711247891187668,
0.06504517793655396,
0.01812252774834633,
0.04879067838191986,
0.002181724179536104,
0.07121245563030243,
-0.012815318070352077,
-0.029177894815802574,
-0.07021011412143707,
-0.012515551410615444,
-0.10323703289031982,
0.010309682227671146,
-0.059043899178504944,
0.05941911041736603,
0.013802365399897099,
0.0017703624907881021,
0.038147855550050735,
0.08113975822925568,
-0.02618570625782013,
-0.06377732008695602,
0.06774003058671951,
-0.07528874278068542,
0.007848979905247688,
0.08610954880714417,
0.043917253613471985,
-0.1077398881316185,
-0.012555339373648167,
0.07302799075841904,
-0.007926958613097668,
0.0014914541970938444,
0.014123407192528248,
-0.013761988840997219,
-0.016016624867916107,
-0.010507283732295036,
-0.018803058192133904,
-0.062145452946424484,
0.021203532814979553,
0.003104414325207472,
-0.034734584391117096,
0.03604637458920479,
0.07060837745666504,
-0.0473475307226181,
0.07151155918836594,
-0.023212909698486328,
0.043890226632356644,
0.07846582680940628,
-0.029602931812405586,
0.020310712978243828,
-0.00885644182562828,
0.0027120737358927727,
0.019752053543925285,
-0.12788322567939758,
0.012112921103835106,
0.03263559564948082,
-0.023005634546279907,
0.04879269376397133,
-0.006108936853706837,
-0.0206548310816288,
0.007753187790513039,
0.002376643707975745,
-0.04729795455932617,
-0.12184516340494156,
0.053432121872901917,
0.04633853957056999,
-0.025050083175301552,
-0.11312153935432434,
-0.006047929637134075,
0.04952186718583107,
0.0774277076125145,
-0.09224235266447067,
0.08278489857912064,
-0.04615014046430588,
-0.015692945569753647,
-0.06532648205757141,
0.03666718676686287,
-0.021913966163992882,
0.06277580559253693,
0.0027359204832464457,
-0.006862177513539791,
-0.06600141525268555,
-0.00350814126431942,
0.025974543765187263,
0.04432416707277298,
-0.02193860523402691,
0.022715477272868156,
-0.07506383955478668,
0.041618507355451584,
-0.0838383361697197,
0.05401886999607086,
-0.00824881624430418,
-0.011547569185495377,
-0.0154136773198843,
-0.044172253459692,
0.016165629029273987,
0.0298564862459898,
0.0562896728515625,
0.012469731271266937,
-0.03639353811740875,
-0.05392955243587494,
0.010595620609819889,
0.035928480327129364,
0.0019578924402594566,
0.05897614359855652,
0.03826698660850525,
-0.005577385891228914,
-0.038529280573129654,
0.06169495731592178,
0.00728205731138587,
-0.03540785238146782,
-0.03611031547188759,
-0.0585029311478138,
0.03275224566459656,
0.006338834296911955,
0.026546189561486244,
4.8478595583040576e-33,
0.06401398777961731,
-0.004617710597813129,
-0.0073685068637132645,
0.02799820899963379,
0.05948048084974289,
-0.0022375399712473154,
0.04310714453458786,
-0.06935513764619827,
-0.04634546861052513,
-0.05638888478279114,
-0.05220244079828262,
-0.04345923662185669,
-0.015272038988769054,
-0.012062514200806618,
-0.02541630156338215,
-0.007856443524360657,
0.0019164492841809988,
-0.04436015710234642,
0.09045383334159851,
0.09956660121679306,
0.016717059537768364,
-0.09840613603591919,
0.014640524983406067,
-0.04092762619256973,
-0.045305393636226654,
0.03285527974367142,
0.022585459053516388,
0.030649349093437195,
0.09684132039546967,
0.012975268065929413,
0.00047239885316230357,
0.0005742553621530533,
-0.07446315139532089,
0.01716526411473751,
-0.04219239577651024,
-0.032018307596445084,
-0.08503548800945282,
-0.029745226725935936,
-0.007884185761213303,
-0.05811867117881775,
-0.10034500062465668,
-0.03058675117790699,
-0.07445251196622849,
0.0008253869018517435,
-0.01959163136780262,
-0.12809796631336212,
-0.09089763462543488,
-0.010310514830052853,
0.07186052948236465,
0.0022972915321588516,
-0.00009909669461194426,
-0.011552765034139156,
0.02091800980269909,
-0.08319724351167679,
0.006286759860813618,
-0.06931409239768982,
-0.07083949446678162,
0.06213676929473877,
-0.10794229805469513,
0.039297208189964294,
0.017677156254649162,
0.03400669991970062,
-0.001141752814874053,
0.04273560270667076,
0.0547010600566864,
0.07561761885881424,
-0.0547843761742115,
-0.054052192717790604,
-0.041893891990184784,
0.016540775075554848,
-0.013446599245071411,
-0.00007417562301270664,
0.021056897938251495,
0.057106148451566696,
-0.053284574300050735,
0.06415222585201263,
0.007578112650662661,
-0.03644927963614464,
0.009872831404209137,
-0.0012724152766168118,
-0.03844551742076874,
-0.00380943575873971,
0.021132173016667366,
-0.0035777611192315817,
0.0024453476071357727,
-0.02635764144361019,
-0.05056896433234215,
-0.07564938813447952,
0.028653817251324654,
0.10240156203508377,
-0.04496835544705391,
0.06518317759037018,
0.053960252553224564,
0.11644674837589264,
-0.06196204200387001,
-7.017930495807467e-33,
-0.056210536509752274,
-0.008421574719250202,
-0.03988489508628845,
0.012928754091262817,
0.020474830642342567,
0.023986566811800003,
-0.0054772160947322845,
0.018060848116874695,
-0.040672723203897476,
0.022562598809599876,
0.013085835613310337,
0.030857549980282784,
0.05279083549976349,
-0.07044437527656555,
0.04985317215323448,
-0.06749262660741806,
0.08672753721475601,
-0.04106396064162254,
0.025972634553909302,
-0.03590977564454079,
-0.04027964919805527,
0.04900520294904709,
0.0663672387599945,
-0.0451190285384655,
0.024947281926870346,
0.03286999464035034,
0.07973209768533707,
0.03844010829925537,
-0.09939702600240707,
-0.028765011578798294,
0.07392407208681107,
0.04536442458629608,
0.027129467576742172,
-0.0026635504327714443,
0.045615486800670624,
0.10421276837587357,
-0.06596826016902924,
-0.020779630169272423,
0.03551241010427475,
-0.05892525613307953,
0.0854746624827385,
-0.08733202517032623,
0.0004591107426676899,
-0.026968736201524734,
0.10224210470914841,
-0.029750926420092583,
-0.041998911648988724,
0.04119855538010597,
-0.02191470004618168,
-0.06851615756750107,
0.02835858054459095,
0.045135799795389175,
-0.014131763018667698,
0.07179559022188187,
0.08269504457712173,
0.11168186366558075,
0.05632276460528374,
0.01752573810517788,
0.03630301356315613,
-0.061139460653066635,
0.06547634303569794,
-0.08985055983066559,
-0.062213148921728134,
0.06975173205137253,
-0.050418030470609665,
-0.020885039120912552,
0.022151129320263863,
0.015897411853075027,
-0.04457056522369385,
0.07920243591070175,
-0.015601023100316525,
0.036515168845653534,
0.044735923409461975,
0.041692133992910385,
0.06428223103284836,
0.009403521195054054,
-0.010563081130385399,
-0.02340717986226082,
-0.05176784470677376,
-0.07644214481115341,
-0.057800665497779846,
0.08216844499111176,
-0.01793401502072811,
-0.04588297754526138,
0.007785007357597351,
-0.01622581295669079,
-0.04162786528468132,
0.07585844397544861,
0.024584146216511726,
-0.036843638867139816,
-0.075450100004673,
-0.023902086541056633,
-0.028645440936088562,
-0.028816012665629387,
0.0015919454162940383,
-5.2908688985553454e-8,
0.04287051409482956,
0.015151056461036205,
-0.0721651092171669,
-0.03618181124329567,
-0.07209736853837967,
0.028618285432457924,
0.031324755400419235,
-0.13000187277793884,
0.07393316179513931,
0.04215305671095848,
-0.03433394059538841,
-0.007938780821859837,
-0.022954409942030907,
0.02651960961520672,
0.048748429864645004,
0.020295409485697746,
0.04152359440922737,
-0.01757303811609745,
0.002455285983160138,
0.007531062234193087,
0.008248800411820412,
-0.08356020599603653,
-0.014274614863097668,
0.12859076261520386,
0.017690418288111687,
0.011337020434439182,
0.055171672254800797,
-0.009868709370493889,
-0.018791668117046356,
0.01820746622979641,
-0.06583283841609955,
-0.016001394018530846,
0.019272366538643837,
0.012199352495372295,
-0.03530718758702278,
0.07069673389196396,
-0.06122566759586334,
0.009043142199516296,
0.086049884557724,
0.04226992651820183,
-0.07117854803800583,
0.01185005996376276,
-0.000017151423890027218,
-0.030019961297512054,
-0.02845618687570095,
0.022890174761414528,
-0.02074461616575718,
0.09201323240995407,
-0.03389061614871025,
0.14003321528434753,
0.02223183400928974,
-0.08027121424674988,
-0.0022062917705625296,
-0.09049293398857117,
-0.001888986094854772,
-0.013498611748218536,
-0.025119394063949585,
-0.15243080258369446,
0.0119935879483819,
-0.025735093280673027,
0.07340984791517258,
0.04197441786527634,
-0.020545337349176407,
-0.029051998630166054
] | 0.003687 |
server injects a live-reload client into HTML and reloads on file changes. The A2UI host lives at `http://:18793/\_\_openclaw\_\_/a2ui/`. Canvas commands (foreground only): - `canvas.eval`, `canvas.snapshot`, `canvas.navigate` (use `{"url":""}` or `{"url":"/"}` to return to the default scaffold). `canvas.snapshot` returns `{ format, base64 }` (default `format="jpeg"`). - A2UI: `canvas.a2ui.push`, `canvas.a2ui.reset` (`canvas.a2ui.pushJSONL` legacy alias) Camera commands (foreground only; permission-gated): - `camera.snap` (jpg) - `camera.clip` (mp4) See [Camera node](/nodes/camera) for parameters and CLI helpers. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/android.md | main | opebclaw | [
-0.0795060470700264,
-0.03562987595796585,
0.007004113402217627,
-0.012072574347257614,
0.027804488316178322,
-0.07638148218393326,
-0.056230075657367706,
0.029884200543165207,
0.04370548203587532,
0.005805304739624262,
0.05633237585425377,
0.061839569360017776,
-0.026509622111916542,
0.09335880726575851,
0.050684668123722076,
0.0462224967777729,
0.002524293726310134,
-0.04362348094582558,
-0.0019593797624111176,
0.05891209840774536,
-0.07368969917297363,
-0.05989152565598488,
0.05288948118686676,
-0.04418744146823883,
0.08918588608503342,
-0.0682033821940422,
-0.0410621240735054,
-0.0076120574958622456,
0.03153056651353836,
-0.012878241948783398,
0.015451663173735142,
0.026005487889051437,
-0.05259481444954872,
-0.006911825854331255,
0.01281572412699461,
0.11789148300886154,
0.009520997293293476,
-0.05033053457736969,
-0.03259212523698807,
0.0008650626405142248,
0.07240038365125656,
0.09087061136960983,
-0.043512310832738876,
-0.029070427641272545,
0.005514100193977356,
-0.027638355270028114,
-0.014730231836438179,
-0.00904879067093134,
0.0015623188810423017,
0.037072014063596725,
-0.11507745087146759,
-0.037342458963394165,
-0.03590981289744377,
0.006556136533617973,
-0.009912686422467232,
0.051441892981529236,
-0.04830922558903694,
0.1418762356042862,
0.07311075180768967,
0.128963440656662,
-0.07154738157987595,
0.005314238835126162,
0.02625279873609543,
0.04642238840460777,
0.05078709125518799,
0.0893719419836998,
0.019174549728631973,
-0.07532686740159988,
-0.029589708894491196,
-0.04009600356221199,
0.007168088108301163,
0.00844524335116148,
0.025293836370110512,
-0.07189803570508957,
-0.012455206364393234,
-0.1098664328455925,
-0.035617172718048096,
0.038297295570373535,
-0.10410012304782867,
-0.09398249536752701,
0.1009983941912651,
-0.11179261654615402,
-0.040159616619348526,
0.052145276218652725,
0.053770121186971664,
0.04723193123936653,
0.0051096221432089806,
-0.07920435070991516,
-0.0020167750772088766,
0.01872175559401512,
-0.0897044837474823,
-0.042577505111694336,
-0.01461087167263031,
0.03899316489696503,
-0.03532073274254799,
-0.002711167559027672,
0.05327113717794418,
0.09314223378896713,
-0.07678050547838211,
0.0462382547557354,
0.03833147883415222,
-0.011845041997730732,
-0.004696193616837263,
-0.014472393319010735,
0.04707753285765648,
-0.03976358845829964,
0.046531982719898224,
0.055595606565475464,
0.039750900119543076,
0.05999903380870819,
0.022343074902892113,
-0.0001994544145418331,
-0.004102970007807016,
-0.017730748280882835,
-0.027387864887714386,
0.0006232484593056142,
-0.058564357459545135,
0.04204821586608887,
-0.07436782866716385,
0.028022199869155884,
0.09087754040956497,
-0.020452028140425682,
-0.034083470702171326,
-0.09360791742801666,
0.05651222914457321,
-0.0512007437646389,
0.09287691116333008,
2.0799470254050625e-34,
0.029035517945885658,
-0.02648121863603592,
-0.017487943172454834,
0.09361284971237183,
0.030730146914720535,
-0.09066750109195709,
0.03739048168063164,
0.0384233221411705,
-0.07766996324062347,
-0.04755077511072159,
0.02398698963224888,
0.032881125807762146,
-0.016964681446552277,
0.0568627305328846,
0.030344603583216667,
-0.019316943362355232,
-0.021462194621562958,
-0.028776736930012703,
0.09811018407344818,
0.036351487040519714,
-0.010259794071316719,
-0.020732402801513672,
-0.08360740542411804,
0.048781584948301315,
-0.029461810365319252,
0.07415487617254257,
0.00413224333897233,
0.07444378733634949,
-0.03562825918197632,
0.017764737829566002,
0.0385514497756958,
0.05560746043920517,
-0.03181685134768486,
0.03899640962481499,
-0.04619147628545761,
-0.054766833782196045,
-0.025294750928878784,
-0.0004251167119946331,
-0.09099874645471573,
-0.023615190759301186,
0.06760013103485107,
0.017223984003067017,
-0.1393904685974121,
0.010945495218038559,
-0.01993044652044773,
-0.1413060575723648,
-0.0918806865811348,
0.04925835505127907,
-0.027781104668974876,
0.03693334385752678,
-0.07147176563739777,
-0.004937967751175165,
0.06018422544002533,
0.006635916419327259,
-0.045283243060112,
-0.02668377384543419,
-0.06886059045791626,
-0.02569214068353176,
-0.03615892678499222,
-0.0007073578308336437,
0.09128005802631378,
0.04186496511101723,
-0.052623093128204346,
0.04982556775212288,
0.00011145683674840257,
0.04106837511062622,
0.008338973857462406,
-0.009592900983989239,
-0.0013440113980323076,
-0.03950874134898186,
-0.02093159407377243,
0.020489882677793503,
-0.004746591672301292,
-0.021992210298776627,
0.040211521089076996,
0.0030468725599348545,
-0.09790316224098206,
0.025908317416906357,
0.02579479105770588,
-0.0018127657240256667,
-0.010512332431972027,
-0.04702511429786682,
-0.005585737060755491,
0.04200999438762665,
-0.01281729992479086,
-0.050145260989665985,
0.06484510004520416,
0.03353186324238777,
-0.04115349054336548,
0.01811595819890499,
0.061521016061306,
-0.028268296271562576,
0.03151489794254303,
-0.07666921615600586,
0.005586892366409302,
-6.72172098042162e-34,
0.04923601076006889,
0.07956220954656601,
-0.11326564103364944,
0.0363539420068264,
-0.03174808621406555,
-0.05676151439547539,
0.08235592395067215,
0.08277515321969986,
-0.029457658529281616,
-0.03471115604043007,
-0.01900945045053959,
0.012737409211695194,
-0.02057993784546852,
0.023774009197950363,
-0.0684252381324768,
0.07140093296766281,
-0.04361094534397125,
-0.13175657391548157,
-0.08843564242124557,
-0.07150302082300186,
0.01252142433077097,
0.018187200650572777,
0.1127888634800911,
0.07658971846103668,
0.023552194237709045,
0.09138352423906326,
0.04404418170452118,
0.014976832084357738,
-0.05670435354113579,
-0.04356588050723076,
0.03185660019516945,
0.01471745502203703,
-0.07320629805326462,
-0.020182408392429352,
0.06315387040376663,
0.04078104346990585,
0.04305265098810196,
0.04946831613779068,
-0.019273405894637108,
-0.024790281429886818,
0.060797564685344696,
-0.03795985132455826,
-0.02036680094897747,
0.08119593560695648,
0.06266305595636368,
0.03650757670402527,
-0.021494554355740547,
0.02310640551149845,
-0.009291449561715126,
-0.01726388931274414,
0.011699749156832695,
0.010994902811944485,
0.066678486764431,
-0.05827423930168152,
0.06392685323953629,
-0.02926267869770527,
0.019116709008812904,
-0.0758802518248558,
-0.0434807650744915,
-0.008081967942416668,
0.13486069440841675,
-0.05179747939109802,
-0.0987313836812973,
0.03452491760253906,
-0.07004831731319427,
-0.009940282441675663,
-0.03770419582724571,
-0.004609963856637478,
0.008363635279238224,
-0.014947300776839256,
-0.02270953170955181,
-0.013893842697143555,
0.06114456057548523,
-0.0008665077039040625,
-0.0067205470986664295,
-0.0031785585451871157,
0.039732757955789566,
-0.0577542744576931,
0.037535905838012695,
-0.010496311821043491,
0.0200599767267704,
0.00926398765295744,
-0.06984041631221771,
0.014947798103094101,
0.029586471617221832,
-0.018947523087263107,
-0.0785958468914032,
0.027350014075636864,
-0.00051225716015324,
-0.048701975494623184,
-0.008235792629420757,
0.041908908635377884,
-0.0028511222917586565,
0.01781313493847847,
0.05507776886224747,
-4.453195856513048e-8,
-0.04312737286090851,
0.04545461758971214,
0.013521482236683369,
0.009603741578757763,
0.029686590656638145,
-0.05122755840420723,
-0.017208226025104523,
0.051377564668655396,
0.10508739203214645,
-0.07487450540065765,
-0.010090517811477184,
0.006697078235447407,
0.015089379623532295,
0.03496818244457245,
-0.02910662442445755,
0.006983256433159113,
0.029206855222582817,
0.03129357099533081,
-0.011814900673925877,
-0.05013734847307205,
-0.05080446973443031,
-0.1065487489104271,
-0.013257157057523727,
-0.01957501471042633,
0.012975084595382214,
-0.06617645174264908,
-0.0306507907807827,
-0.030925123021006584,
-0.0462709441781044,
-0.02391437627375126,
-0.06918088346719742,
-0.01011962816119194,
0.07800517231225967,
0.008722290396690369,
-0.09502165019512177,
-0.010138290002942085,
-0.013132776133716106,
-0.04405420273542404,
-0.01066981814801693,
-0.04239339008927345,
0.06083640828728676,
-0.006554239429533482,
0.011660069227218628,
-0.02501767687499523,
-0.0012385634472593665,
-0.03750871121883392,
0.08887077122926712,
0.014259064570069313,
0.021420981734991074,
0.02608000487089157,
-0.04732105880975723,
-0.07271675765514374,
0.04189341515302658,
0.05373428389430046,
0.0776277557015419,
-0.05195596069097519,
0.07057201862335205,
-0.030012572184205055,
0.06027597934007645,
0.08917740732431412,
-0.0025405746418982744,
0.05480436980724335,
-0.0039551034569740295,
0.037298522889614105
] | 0.044376 |
# OpenClaw on Oracle Cloud (OCI) ## Goal Run a persistent OpenClaw Gateway on Oracle Cloud's \*\*Always Free\*\* ARM tier. Oracle’s free tier can be a great fit for OpenClaw (especially if you already have an OCI account), but it comes with tradeoffs: - ARM architecture (most things work, but some binaries may be x86-only) - Capacity and signup can be finicky ## Cost Comparison (2026) | Provider | Plan | Specs | Price/mo | Notes | | ------------ | --------------- | ---------------------- | -------- | --------------------- | | Oracle Cloud | Always Free ARM | up to 4 OCPU, 24GB RAM | $0 | ARM, limited capacity | | Hetzner | CX22 | 2 vCPU, 4GB RAM | ~ $4 | Cheapest paid option | | DigitalOcean | Basic | 1 vCPU, 1GB RAM | $6 | Easy UI, good docs | | Vultr | Cloud Compute | 1 vCPU, 1GB RAM | $6 | Many locations | | Linode | Nanode | 1 vCPU, 1GB RAM | $5 | Now part of Akamai | --- ## Prerequisites - Oracle Cloud account ([signup](https://www.oracle.com/cloud/free/)) — see [community signup guide](https://gist.github.com/rssnyder/51e3cfedd730e7dd5f4a816143b25dbd) if you hit issues - Tailscale account (free at [tailscale.com](https://tailscale.com)) - ~30 minutes ## 1) Create an OCI Instance 1. Log into [Oracle Cloud Console](https://cloud.oracle.com/) 2. Navigate to \*\*Compute → Instances → Create Instance\*\* 3. Configure: - \*\*Name:\*\* `openclaw` - \*\*Image:\*\* Ubuntu 24.04 (aarch64) - \*\*Shape:\*\* `VM.Standard.A1.Flex` (Ampere ARM) - \*\*OCPUs:\*\* 2 (or up to 4) - \*\*Memory:\*\* 12 GB (or up to 24 GB) - \*\*Boot volume:\*\* 50 GB (up to 200 GB free) - \*\*SSH key:\*\* Add your public key 4. Click \*\*Create\*\* 5. Note the public IP address \*\*Tip:\*\* If instance creation fails with "Out of capacity", try a different availability domain or retry later. Free tier capacity is limited. ## 2) Connect and Update ```bash # Connect via public IP ssh ubuntu@YOUR\_PUBLIC\_IP # Update system sudo apt update && sudo apt upgrade -y sudo apt install -y build-essential ``` \*\*Note:\*\* `build-essential` is required for ARM compilation of some dependencies. ## 3) Configure User and Hostname ```bash # Set hostname sudo hostnamectl set-hostname openclaw # Set password for ubuntu user sudo passwd ubuntu # Enable lingering (keeps user services running after logout) sudo loginctl enable-linger ubuntu ``` ## 4) Install Tailscale ```bash curl -fsSL https://tailscale.com/install.sh | sh sudo tailscale up --ssh --hostname=openclaw ``` This enables Tailscale SSH, so you can connect via `ssh openclaw` from any device on your tailnet — no public IP needed. Verify: ```bash tailscale status ``` \*\*From now on, connect via Tailscale:\*\* `ssh ubuntu@openclaw` (or use the Tailscale IP). ## 5) Install OpenClaw ```bash curl -fsSL https://openclaw.ai/install.sh | bash source ~/.bashrc ``` When prompted "How do you want to hatch your bot?", select \*\*"Do this later"\*\*. > Note: If you hit ARM-native build issues, start with system packages (e.g. `sudo apt install -y build-essential`) before reaching for Homebrew. ## 6) Configure Gateway (loopback + token auth) and enable Tailscale Serve Use token auth as the default. It’s predictable and avoids needing any “insecure auth” Control UI flags. ```bash # Keep the Gateway private on the VM openclaw config set gateway.bind loopback # Require auth for the Gateway + Control UI openclaw config set gateway.auth.mode token openclaw doctor --generate-gateway-token # Expose over Tailscale Serve (HTTPS + tailnet access) openclaw config set gateway.tailscale.mode serve openclaw config set gateway.trustedProxies '["127.0.0.1"]' systemctl --user restart openclaw-gateway ``` ## 7) Verify ```bash # Check version openclaw --version # Check daemon status systemctl --user status openclaw-gateway # Check Tailscale Serve tailscale serve status # Test local response curl http://localhost:18789 ``` ## | https://github.com/openclaw/openclaw/blob/main//docs/platforms/oracle.md | main | opebclaw | [
-0.04705800116062164,
-0.001960239140316844,
-0.019047662615776062,
0.006846288684755564,
-0.002621668390929699,
-0.08089233189821243,
-0.06598341464996338,
0.013720435090363026,
-0.032335493713617325,
0.0456075482070446,
0.0070138853043317795,
-0.027911333367228508,
-0.007258382625877857,
-0.06859299540519714,
0.06552515923976898,
0.07988836616277695,
0.06130138039588928,
-0.06251987814903259,
0.026314590126276016,
-0.015400482341647148,
-0.02240033820271492,
0.009638309478759766,
-0.029862651601433754,
-0.0942748412489891,
-0.04336027801036835,
0.004513673949986696,
-0.04029616340994835,
-0.0018072621896862984,
-0.0014020928647369146,
-0.057527825236320496,
0.02385898493230343,
0.03705163300037384,
-0.039358749985694885,
0.046605855226516724,
0.035704925656318665,
0.002005763817578554,
0.050992950797080994,
-0.08469129353761673,
-0.10688553750514984,
0.007542135659605265,
0.03413384407758713,
-0.03257489949464798,
-0.11070726066827774,
-0.04231974855065346,
-0.07056450098752975,
-0.021874502301216125,
0.031076643615961075,
-0.059966228902339935,
0.0248954426497221,
0.01885383017361164,
-0.011772424913942814,
-0.10049524158239365,
-0.024060165509581566,
-0.01730426959693432,
-0.042519133538007736,
-0.006457927171140909,
-0.03157912194728851,
-0.04735339805483818,
0.00605383375659585,
-0.061014141887426376,
0.03067086637020111,
-0.0472046323120594,
-0.0014762073988094926,
0.051323868334293365,
-0.08377689868211746,
0.02553849294781685,
0.015076219104230404,
-0.0519193597137928,
-0.028607074171304703,
-0.024577446281909943,
-0.012689144350588322,
-0.02479984611272812,
-0.004025883972644806,
-0.004811703227460384,
-0.08256644010543823,
0.0077323755249381065,
0.15229716897010803,
-0.032959964126348495,
0.024150455370545387,
0.0009446457261219621,
-0.008307002484798431,
0.08228075504302979,
-0.14476631581783295,
0.006715977098792791,
-0.03700762242078781,
0.03545026108622551,
0.03674653172492981,
0.03453013673424721,
0.04254951700568199,
-0.026002226397395134,
0.0795285701751709,
-0.017878884449601173,
0.015258008614182472,
-0.050563644617795944,
0.05554359033703804,
-0.023145532235503197,
0.029140520840883255,
-0.06159936264157295,
-0.039644405245780945,
0.053835369646549225,
0.02496154233813286,
0.03874602168798447,
0.06146407499909401,
0.012616483494639397,
-0.088544562458992,
0.07926807552576065,
-0.0398823507130146,
0.06209399551153183,
0.023086199536919594,
0.01405838131904602,
0.01532017532736063,
-0.0334857814013958,
0.03998464718461037,
-0.07033216208219528,
-0.0245523564517498,
0.036430083215236664,
-0.14501796662807465,
-0.09782449156045914,
0.01872122287750244,
0.027092624455690384,
0.008329981938004494,
-0.06599879264831543,
0.04124900698661804,
0.03182698041200638,
0.0345909483730793,
0.05604653060436249,
-0.004210730083286762,
1.810499705214349e-33,
-0.030104950070381165,
0.02686225064098835,
-0.05511799082159996,
-0.15565793216228485,
0.13252875208854675,
0.02080715447664261,
0.052243925631046295,
0.009820626117289066,
-0.10499613732099533,
0.04848487675189972,
-0.07016017287969589,
0.024763822555541992,
-0.07923316210508347,
-0.0014819020871073008,
0.13980787992477417,
-0.00769231328740716,
-0.019535716623067856,
0.03228931501507759,
0.03179465979337692,
0.017642639577388763,
0.03044777922332287,
-0.059293393045663834,
-0.03196736052632332,
-0.0004496957117225975,
0.112425297498703,
-0.05747861787676811,
0.055947840213775635,
-0.03744254633784294,
0.010891116224229336,
0.02810405008494854,
0.05095428228378296,
-0.07600084692239761,
-0.03473581001162529,
-0.031544242054224014,
-0.005552926566451788,
-0.0289472583681345,
-0.17907561361789703,
-0.019320055842399597,
-0.0015643605729565024,
-0.02240142598748207,
-0.004275315906852484,
0.09881802648305893,
-0.03378439322113991,
-0.050430379807949066,
0.04383265599608421,
-0.07456759363412857,
-0.008417332544922829,
0.08329696208238602,
-0.026934312656521797,
0.0014734533615410328,
0.012286117300391197,
0.024541201069951057,
0.00995700154453516,
0.07413575798273087,
-0.014348994009196758,
-0.00456513836979866,
0.03304719179868698,
-0.02952645532786846,
0.009088052436709404,
0.06690316647291183,
-0.06171414628624916,
-0.06165443733334541,
-0.018767790868878365,
0.02952590212225914,
-0.039370711892843246,
0.007916294038295746,
0.01979185827076435,
0.06927655637264252,
-0.0013446231605485082,
0.0021902420558035374,
0.020666319876909256,
-0.08577045798301697,
0.06355448812246323,
0.03444506227970123,
-0.05353524163365364,
0.01949717476963997,
-0.02324458211660385,
-0.06270851939916611,
-0.023038072511553764,
0.005636951886117458,
-0.035259850323200226,
0.09757924824953079,
-0.013591432943940163,
0.018573174253106117,
-0.0358072929084301,
0.03486244007945061,
0.04537580534815788,
-0.010249476879835129,
-0.07795574516057968,
0.1028980016708374,
0.007001345045864582,
-0.025681156665086746,
0.040474437177181244,
-0.016484985128045082,
0.0058456407859921455,
-3.996299124473745e-33,
-0.058138467371463776,
-0.016734231263399124,
0.009426901116967201,
0.004575721919536591,
0.04829028993844986,
-0.03021794743835926,
0.06880609691143036,
0.004440904129296541,
-0.07769403606653214,
-0.024374838918447495,
-0.09521317481994629,
0.0411653071641922,
0.041555069386959076,
-0.01397718209773302,
0.0730714201927185,
-0.07244882732629776,
-0.0263508390635252,
-0.06748788803815842,
0.01891791634261608,
0.07587354630231857,
-0.006437384057790041,
0.058400653302669525,
0.03863869607448578,
-0.022132322192192078,
0.06666582077741623,
0.03785748407244682,
-0.022201554849743843,
0.004259121138602495,
-0.025786178186535835,
-0.001262200647033751,
-0.061837054789066315,
-0.008349341340363026,
0.03318000212311745,
-0.010815742425620556,
0.018839223310351372,
-0.011351943016052246,
0.036857545375823975,
0.032506588846445084,
0.010149277746677399,
0.05264520272612572,
0.06002321094274521,
-0.07393327355384827,
-0.04723738878965378,
-0.04816717281937599,
-0.03668338432908058,
0.06874333322048187,
-0.081550732254982,
0.028636615723371506,
-0.06261632591485977,
-0.04976775124669075,
-0.05460727587342262,
0.09052802622318268,
-0.0023459626827389,
0.05307035520672798,
0.04060154780745506,
-0.005592959932982922,
-0.022827574983239174,
0.039585091173648834,
-0.07955258339643478,
-0.06653793901205063,
0.049499958753585815,
-0.01894204132258892,
0.00377454562112689,
0.10785842686891556,
0.016750307753682137,
0.018725018948316574,
0.05157355219125748,
-0.00532230269163847,
-0.1476755142211914,
-0.039541639387607574,
-0.13121411204338074,
-0.06651481986045837,
0.023625649511814117,
-0.01733938232064247,
-0.013708350248634815,
0.037408482283353806,
-0.031944919377565384,
-0.0522037148475647,
0.030367830768227577,
0.008978371508419514,
-0.11167264729738235,
0.005454849451780319,
0.008907887153327465,
-0.00892527587711811,
-0.04072950407862663,
0.012680796906352043,
0.004069906193763018,
-0.04595797508955002,
0.040583085268735886,
0.08009854704141617,
-0.11157387495040894,
-0.03675489500164986,
-0.009524485096335411,
0.0073383464477956295,
0.005092578940093517,
-4.677164611166518e-8,
0.04840832203626633,
-0.04312356561422348,
0.039626531302928925,
0.0758708268404007,
0.02476465329527855,
-0.036530349403619766,
0.030254868790507317,
0.03805730491876602,
-0.0014267555670812726,
0.09600909054279327,
0.09718315303325653,
-0.018929287791252136,
-0.09232544153928757,
0.012967665679752827,
-0.022260557860136032,
0.09754640609025955,
0.03478476405143738,
-0.04850364103913307,
-0.009888704866170883,
-0.10033883154392242,
-0.00254598306491971,
0.04211157560348511,
0.023849952965974808,
0.03242681547999382,
-0.07378653436899185,
0.013336771167814732,
0.038457680493593216,
0.02616151235997677,
0.016918865963816643,
0.008572821505367756,
-0.024089612066745758,
-0.03133117035031319,
0.0276680625975132,
-0.03546451777219772,
0.04130036383867264,
0.005166316870599985,
-0.08320760726928711,
0.08932825922966003,
-0.004870433825999498,
0.016018401831388474,
0.04434056580066681,
0.05426197499036789,
-0.005535621661692858,
-0.023702239617705345,
0.012879610992968082,
0.049994777888059616,
-0.08862127363681793,
-0.011353302747011185,
0.014897690154612064,
0.0546676330268383,
0.011190881952643394,
-0.03126993402838707,
0.0013552161399275064,
0.07936756312847137,
0.04099929332733154,
0.04173287749290466,
0.003105193143710494,
-0.030219076201319695,
0.03502334654331207,
0.1070658341050148,
0.04173201322555542,
-0.04888451471924782,
0.03514228016138077,
-0.01103132776916027
] | 0.053241 |
+ tailnet access) openclaw config set gateway.tailscale.mode serve openclaw config set gateway.trustedProxies '["127.0.0.1"]' systemctl --user restart openclaw-gateway ``` ## 7) Verify ```bash # Check version openclaw --version # Check daemon status systemctl --user status openclaw-gateway # Check Tailscale Serve tailscale serve status # Test local response curl http://localhost:18789 ``` ## 8) Lock Down VCN Security Now that everything is working, lock down the VCN to block all traffic except Tailscale. OCI's Virtual Cloud Network acts as a firewall at the network edge — traffic is blocked before it reaches your instance. 1. Go to \*\*Networking → Virtual Cloud Networks\*\* in the OCI Console 2. Click your VCN → \*\*Security Lists\*\* → Default Security List 3. \*\*Remove\*\* all ingress rules except: - `0.0.0.0/0 UDP 41641` (Tailscale) 4. Keep default egress rules (allow all outbound) This blocks SSH on port 22, HTTP, HTTPS, and everything else at the network edge. From now on, you can only connect via Tailscale. --- ## Access the Control UI From any device on your Tailscale network: ``` https://openclaw..ts.net/ ``` Replace `` with your tailnet name (visible in `tailscale status`). No SSH tunnel needed. Tailscale provides: - HTTPS encryption (automatic certs) - Authentication via Tailscale identity - Access from any device on your tailnet (laptop, phone, etc.) --- ## Security: VCN + Tailscale (recommended baseline) With the VCN locked down (only UDP 41641 open) and the Gateway bound to loopback, you get strong defense-in-depth: public traffic is blocked at the network edge, and admin access happens over your tailnet. This setup often removes the \_need\_ for extra host-based firewall rules purely to stop Internet-wide SSH brute force — but you should still keep the OS updated, run `openclaw security audit`, and verify you aren’t accidentally listening on public interfaces. ### What's Already Protected | Traditional Step | Needed? | Why | | ------------------ | ----------- | ---------------------------------------------------------------------------- | | UFW firewall | No | VCN blocks before traffic reaches instance | | fail2ban | No | No brute force if port 22 blocked at VCN | | sshd hardening | No | Tailscale SSH doesn't use sshd | | Disable root login | No | Tailscale uses Tailscale identity, not system users | | SSH key-only auth | No | Tailscale authenticates via your tailnet | | IPv6 hardening | Usually not | Depends on your VCN/subnet settings; verify what’s actually assigned/exposed | ### Still Recommended - \*\*Credential permissions:\*\* `chmod 700 ~/.openclaw` - \*\*Security audit:\*\* `openclaw security audit` - \*\*System updates:\*\* `sudo apt update && sudo apt upgrade` regularly - \*\*Monitor Tailscale:\*\* Review devices in [Tailscale admin console](https://login.tailscale.com/admin) ### Verify Security Posture ```bash # Confirm no public ports listening sudo ss -tlnp | grep -v '127.0.0.1\|::1' # Verify Tailscale SSH is active tailscale status | grep -q 'offers: ssh' && echo "Tailscale SSH active" # Optional: disable sshd entirely sudo systemctl disable --now ssh ``` --- ## Fallback: SSH Tunnel If Tailscale Serve isn't working, use an SSH tunnel: ```bash # From your local machine (via Tailscale) ssh -L 18789:127.0.0.1:18789 ubuntu@openclaw ``` Then open `http://localhost:18789`. --- ## Troubleshooting ### Instance creation fails ("Out of capacity") Free tier ARM instances are popular. Try: - Different availability domain - Retry during off-peak hours (early morning) - Use the "Always Free" filter when selecting shape ### Tailscale won't connect ```bash # Check status sudo tailscale status # Re-authenticate sudo tailscale up --ssh --hostname=openclaw --reset ``` ### Gateway won't start ```bash openclaw gateway status openclaw doctor --non-interactive journalctl --user -u openclaw-gateway -n 50 ``` ### Can't reach Control UI ```bash # Verify Tailscale Serve is running tailscale serve status # Check | https://github.com/openclaw/openclaw/blob/main//docs/platforms/oracle.md | main | opebclaw | [
-0.014042667113244534,
0.022653678432106972,
0.00012434905511327088,
-0.00413389690220356,
0.027961011976003647,
-0.0890018567442894,
-0.044812239706516266,
-0.020410262048244476,
0.038660768419504166,
0.009165642783045769,
0.05114784091711044,
-0.02566162869334221,
-0.0314030684530735,
-0.024997035041451454,
-0.00954284518957138,
0.07173357158899307,
0.09814583510160446,
-0.04859684407711029,
0.013841069303452969,
-0.02213830128312111,
0.024044593796133995,
0.032001420855522156,
-0.002032100921496749,
0.003621398936957121,
-0.10468331724405289,
-0.07078206539154053,
-0.06702396273612976,
0.05219413712620735,
-0.019811799749732018,
-0.06866258382797241,
0.05692433938384056,
-0.02445615828037262,
-0.021066581830382347,
0.01834607683122158,
0.061272501945495605,
-0.05727175250649452,
0.09049801528453827,
-0.03138449415564537,
-0.05704944208264351,
0.045647814869880676,
0.13378740847110748,
-0.023035680875182152,
-0.027980152517557144,
-0.06949924677610397,
0.0040310584008693695,
-0.0409843884408474,
0.07972975820302963,
-0.08248337358236313,
0.05215706303715706,
0.0348363034427166,
-0.016074981540441513,
-0.02291715331375599,
-0.007142039015889168,
-0.023073403164744377,
-0.0522698312997818,
0.01820966601371765,
0.05187545344233513,
0.0225377157330513,
0.07645222544670105,
-0.051715102046728134,
0.08195017278194427,
-0.04189345985651016,
-0.013170106336474419,
0.0158144012093544,
-0.10516797751188278,
-0.0017702144104987383,
-0.037992216646671295,
-0.028394252061843872,
-0.028978321701288223,
0.05108895152807236,
0.03468207269906998,
0.029893653467297554,
-0.031750429421663284,
0.04032885655760765,
0.054052408784627914,
0.07177801430225372,
0.0273427776992321,
-0.015447592362761497,
0.01850419119000435,
-0.028660623356699944,
-0.019040536135435104,
-0.06796430051326752,
-0.0627981498837471,
0.06153010204434395,
-0.07477163523435593,
0.062104418873786926,
0.063069649040699,
0.023012148216366768,
0.11752121895551682,
0.03106381930410862,
-0.004481728654354811,
-0.00986145343631506,
0.05826156586408615,
0.019843699410557747,
0.11430187523365021,
-0.03868016228079796,
0.05885414406657219,
-0.02031942456960678,
-0.04492507502436638,
0.04858248308300972,
-0.04147575423121452,
-0.05291919782757759,
0.09595116227865219,
0.04970388114452362,
-0.01930590532720089,
0.07987856864929199,
0.021319972351193428,
0.03865393251180649,
0.00922162365168333,
-0.030708912760019302,
0.03940899297595024,
-0.014407632872462273,
0.08781550824642181,
-0.04017753154039383,
-0.07178080826997757,
0.041032712906599045,
-0.06698639690876007,
-0.010201909579336643,
-0.06338214874267578,
0.007060648873448372,
0.03269869089126587,
0.014793317764997482,
0.016193144023418427,
-0.0023008850403130054,
0.012796442024409771,
0.05085016041994095,
0.026402875781059265,
7.324260650211909e-33,
0.01765994355082512,
-0.013230109587311745,
-0.07929044216871262,
-0.10297254472970963,
0.1436166763305664,
0.04424028843641281,
0.08232371509075165,
-0.007781354244798422,
-0.05787619203329086,
0.0235435850918293,
-0.04381674900650978,
-0.03137383237481117,
0.008142240345478058,
-0.032290518283843994,
0.034488480538129807,
-0.005999450571835041,
0.02726140432059765,
-0.014760885387659073,
0.06031932681798935,
-0.023902978748083115,
0.0547826886177063,
-0.14998941123485565,
-0.02827935665845871,
-0.08273769915103912,
0.02023068629205227,
-0.03591220825910568,
-0.03389633074402809,
-0.04465018957853317,
0.06614650040864944,
0.03322705999016762,
0.08111195266246796,
0.050540242344141006,
0.04088804870843887,
-0.013871360570192337,
0.010643764398992062,
-0.011912229470908642,
-0.05908939242362976,
-0.03373102843761444,
-0.001500425860285759,
0.024894407019019127,
0.021632347255945206,
0.038238052278757095,
-0.08493996411561966,
-0.006709048058837652,
-0.06240909546613693,
-0.07065565884113312,
-0.03890116885304451,
0.04241484776139259,
0.03597287833690643,
0.03658796474337578,
-0.040850527584552765,
-0.02400379069149494,
-0.01936156116425991,
-0.04681604355573654,
0.06241608038544655,
0.0079656932502985,
0.01955452933907509,
-0.006104240659624338,
-0.029785463586449623,
-0.0107957161962986,
0.02116425521671772,
0.009034139104187489,
0.002868441166356206,
-0.017855294048786163,
-0.0034505734220147133,
0.026370028033852577,
-0.0089366864413023,
0.030536813661456108,
-0.03235086798667908,
-0.03279229998588562,
-0.04284892976284027,
0.045714300125837326,
0.03535421937704086,
0.03434311971068382,
-0.03672852739691734,
-0.03739265725016594,
-0.03954772651195526,
0.013527811504900455,
0.03617529198527336,
-0.022613953799009323,
0.01682276837527752,
0.016681021079421043,
0.005583363119512796,
-0.03148169070482254,
-0.040542252361774445,
0.03524745628237724,
0.02130400575697422,
0.029608104377985,
-0.02388387732207775,
0.08160460740327835,
-0.07856067270040512,
-0.08699570596218109,
0.05456113815307617,
0.034134674817323685,
-0.07233987748622894,
-5.912225611935483e-33,
-0.06137622892856598,
0.052137505263090134,
-0.02185833640396595,
0.03244400769472122,
0.0047868406400084496,
0.0440421998500824,
0.015726305544376373,
-0.0081787733361125,
-0.07844983041286469,
-0.049343958497047424,
0.020337682217359543,
0.050035085529088974,
0.017133213579654694,
-0.027073146775364876,
0.029371289536356926,
-0.04506518691778183,
0.05398854240775108,
-0.02814796194434166,
-0.014991581439971924,
-0.014458741061389446,
-0.05154629796743393,
-0.013711399398744106,
-0.04757922515273094,
-0.0036260667257010937,
-0.017186226323246956,
0.014270336367189884,
0.04825685918331146,
0.017867648974061012,
-0.057989150285720825,
0.021414516493678093,
0.0039705135859549046,
0.06667918711900711,
0.026309030130505562,
-0.02889944426715374,
-0.011677457951009274,
0.028997989371418953,
0.0679757371544838,
0.0448983795940876,
0.02821817621588707,
-0.08916475623846054,
0.03121601790189743,
-0.07178018987178802,
-0.034813981503248215,
-0.0176360085606575,
-0.04081058129668236,
0.10236705094575882,
-0.0009161437628790736,
-0.00444449158385396,
-0.0754208117723465,
0.020191054791212082,
0.017743678763508797,
0.011103161610662937,
0.07695791125297546,
0.0864105150103569,
0.029386142268776894,
0.08204378932714462,
0.06974423676729202,
-0.011699015274643898,
-0.06580501794815063,
-0.11163827776908875,
0.07206693291664124,
-0.08592478930950165,
-0.041111014783382416,
0.09889601916074753,
0.015888366848230362,
-0.0012700507650151849,
-0.09136636555194855,
0.05021250620484352,
-0.017526306211948395,
-0.08437331020832062,
-0.11440610140562057,
-0.01718810945749283,
0.04084889963269234,
-0.042627401649951935,
-0.005545994266867638,
-0.00956873968243599,
0.021580306813120842,
-0.03836728259921074,
0.025703171268105507,
0.09057067334651947,
-0.10160885751247406,
-0.00949910283088684,
-0.05945158377289772,
-0.0686715841293335,
0.05818600207567215,
0.03187848627567291,
-0.008107748813927174,
0.04029916226863861,
0.09656887501478195,
0.0979037657380104,
-0.1382095217704773,
-0.044628262519836426,
-0.03700903430581093,
0.014801230281591415,
0.06213195249438286,
-4.6979636181276874e-8,
0.052476756274700165,
-0.04697544500231743,
-0.0403253547847271,
0.09979595243930817,
0.004385011270642281,
0.08118025213479996,
0.02467583306133747,
-0.0025512264110147953,
-0.06371650099754333,
0.04079854115843773,
0.02517607994377613,
0.05271962657570839,
-0.06913492828607559,
0.010305024683475494,
0.008260034024715424,
0.03149037063121796,
0.020804403349757195,
-0.008626925759017467,
0.025063462555408478,
-0.1258327066898346,
-0.01953185722231865,
-0.02107446826994419,
0.007306662388145924,
0.07326339930295944,
-0.05974044278264046,
0.0009666721452958882,
0.021298794075846672,
-0.06090748682618141,
-0.06407474726438522,
0.03312455490231514,
-0.09967958182096481,
-0.057337865233421326,
-0.05310068279504776,
-0.04426276683807373,
-0.07960361242294312,
0.040391143411397934,
-0.10468652099370956,
0.0813262015581131,
0.05653276666998863,
0.045362893491983414,
0.06129088252782822,
0.075769804418087,
-0.018059944733977318,
-0.04255956783890724,
-0.015627505257725716,
0.06734384596347809,
-0.01053812075406313,
0.08707692474126816,
0.004594038240611553,
0.0073228138498961926,
0.02398032322525978,
-0.042068298906087875,
0.007761034648865461,
0.07399922609329224,
-0.03528805822134018,
0.038779016584157944,
0.07193931937217712,
-0.0958142876625061,
-0.06888628751039505,
0.10223440825939178,
-0.012818099930882454,
-0.09473744034767151,
0.046566739678382874,
-0.01034017838537693
] | -0.008487 |
# Check status sudo tailscale status # Re-authenticate sudo tailscale up --ssh --hostname=openclaw --reset ``` ### Gateway won't start ```bash openclaw gateway status openclaw doctor --non-interactive journalctl --user -u openclaw-gateway -n 50 ``` ### Can't reach Control UI ```bash # Verify Tailscale Serve is running tailscale serve status # Check gateway is listening curl http://localhost:18789 # Restart if needed systemctl --user restart openclaw-gateway ``` ### ARM binary issues Some tools may not have ARM builds. Check: ```bash uname -m # Should show aarch64 ``` Most npm packages work fine. For binaries, look for `linux-arm64` or `aarch64` releases. --- ## Persistence All state lives in: - `~/.openclaw/` — config, credentials, session data - `~/.openclaw/workspace/` — workspace (SOUL.md, memory, artifacts) Back up periodically: ```bash tar -czvf openclaw-backup.tar.gz ~/.openclaw ~/.openclaw/workspace ``` --- ## See Also - [Gateway remote access](/gateway/remote) — other remote access patterns - [Tailscale integration](/gateway/tailscale) — full Tailscale docs - [Gateway configuration](/gateway/configuration) — all config options - [DigitalOcean guide](/platforms/digitalocean) — if you want paid + easier signup - [Hetzner guide](/platforms/hetzner) — Docker-based alternative | https://github.com/openclaw/openclaw/blob/main//docs/platforms/oracle.md | main | opebclaw | [
0.04440251365303993,
-0.012869605794548988,
-0.024453287944197655,
-0.00047543688560836017,
-0.004000380635261536,
-0.04536186158657074,
-0.09550634026527405,
-0.003374270861968398,
0.0010132285533472896,
0.024830851703882217,
0.04438232257962227,
-0.03220735490322113,
-0.030611971393227577,
0.044071488082408905,
0.043102625757455826,
0.052932776510715485,
0.06584302335977554,
-0.07156116515398026,
0.037571292370557785,
-0.009676586836576462,
-0.03763435781002045,
0.042862843722105026,
0.022601673379540443,
-0.03772827237844467,
-0.04551951587200165,
-0.061407797038555145,
-0.05291394144296646,
-0.01979163847863674,
-0.07545559108257294,
-0.057646870613098145,
0.04354475438594818,
0.0665278509259224,
-0.04499432072043419,
-0.07040993869304657,
0.06118161976337433,
0.07533451169729233,
0.09982869774103165,
-0.013626854866743088,
-0.071297787129879,
-0.029694149270653725,
0.10886179655790329,
-0.04993106424808502,
0.011730068363249302,
-0.06796220690011978,
-0.0014035749481990933,
-0.057260625064373016,
0.01886637881398201,
-0.07529237121343613,
0.054492153227329254,
0.06991059333086014,
-0.028660302981734276,
-0.026089852675795555,
0.06367003172636032,
-0.022687001153826714,
0.028875580057501793,
0.08214329928159714,
0.0422225221991539,
0.013934604823589325,
0.04240129142999649,
-0.04951468110084534,
0.05323942005634308,
-0.013192844577133656,
-0.07149024307727814,
0.028836717829108238,
-0.0650656670331955,
-0.0019526660908013582,
-0.023102832958102226,
-0.10986539721488953,
-0.022717127576470375,
0.012442694045603275,
0.014066463336348534,
-0.022679664194583893,
-0.009413431398570538,
0.052134450525045395,
-0.04111216962337494,
0.012845228426158428,
0.11084748804569244,
-0.033643078058958054,
-0.03992171213030815,
0.03700612112879753,
-0.11818315833806992,
-0.03155927360057831,
-0.08281960338354111,
0.04709813743829727,
0.001778021571226418,
0.1340782195329666,
0.012312409467995167,
0.04406334459781647,
0.02038920857012272,
0.031832899898290634,
0.0032149238977581263,
0.0026255170814692974,
-0.0013215263606980443,
-0.04933030530810356,
0.03962454944849014,
-0.016384832561016083,
0.0029826255049556494,
0.05446120351552963,
-0.09806691855192184,
0.0692431852221489,
-0.039652373641729355,
-0.03239743411540985,
0.10139178484678268,
0.03772902861237526,
-0.08081460744142532,
0.051626235246658325,
-0.008000418543815613,
0.051105137914419174,
-0.005789416376501322,
-0.02513067051768303,
0.0856250748038292,
-0.08597522974014282,
0.08702313154935837,
0.056386273354291916,
0.018872588872909546,
0.01959613896906376,
-0.062022171914577484,
-0.02854929305613041,
-0.024960843846201897,
0.05519687384366989,
0.0777595117688179,
0.05304868891835213,
0.011317604221403599,
0.015407084487378597,
0.048640113323926926,
0.0842321515083313,
0.10576038062572479,
2.7739910784719444e-33,
0.06265142560005188,
-0.04507014527916908,
-0.03705942630767822,
0.0015263683162629604,
0.13449148833751678,
0.04343511164188385,
0.03483957424759865,
-0.014834917150437832,
-0.05785896256566048,
0.0703672394156456,
0.008530665189027786,
0.025802692398428917,
0.014603055082261562,
-0.06622583419084549,
0.004569045267999172,
-0.04005304351449013,
0.013450689613819122,
0.005253850482404232,
0.056962814182043076,
-0.022696534171700478,
0.06477119028568268,
-0.0934603214263916,
-0.0723005011677742,
-0.04943571612238884,
-0.009082154370844364,
-0.02295202948153019,
0.026631353422999382,
-0.020235424861311913,
0.06639979779720306,
0.02665858529508114,
0.027164675295352936,
0.015890024602413177,
0.0038643390871584415,
-0.0977851152420044,
-0.04751969128847122,
-0.04701628163456917,
-0.07479366660118103,
-0.0371117927134037,
-0.062465667724609375,
-0.03477948531508446,
0.044673409312963486,
0.04334224388003349,
-0.07968247681856155,
0.012734118849039078,
0.012103675864636898,
-0.0916433185338974,
-0.05952032655477524,
0.051800649613142014,
0.06702126562595367,
0.019826212897896767,
-0.05084780976176262,
-0.016933204606175423,
0.07332763075828552,
-0.02421756274998188,
0.03325480595231056,
0.03935106098651886,
-0.0333084911108017,
-0.010965925641357899,
-0.017366494983434677,
0.00787818618118763,
0.028409114107489586,
0.04889171943068504,
0.0032463616225868464,
-0.020152781158685684,
0.08876106888055801,
-0.02681264840066433,
-0.031484633684158325,
0.06986205279827118,
-0.07251917570829391,
0.0566687248647213,
-0.03749105706810951,
-0.04397352412343025,
0.043831873685121536,
0.10684466361999512,
0.020245550200343132,
-0.02117125876247883,
0.0017544494476169348,
-0.008983279578387737,
-0.0048124645836651325,
-0.016943354159593582,
0.023931624367833138,
0.00415407121181488,
-0.022512264549732208,
0.03586249798536301,
0.050373371690511703,
0.059909284114837646,
0.013493901118636131,
-0.010607671923935413,
-0.0794365182518959,
0.09705909341573715,
-0.04624690115451813,
0.0049791280180215836,
-0.005486661102622747,
0.0341905802488327,
-0.1008983850479126,
-4.361756277382563e-33,
-0.07502074539661407,
0.035665709525346756,
-0.048655908554792404,
-0.018333321437239647,
-0.004871041513979435,
-0.009236662648618221,
-0.01435225922614336,
-0.02275918796658516,
-0.07835213840007782,
-0.10358159244060516,
0.016856595873832703,
0.1270906776189804,
0.020320728421211243,
-0.08391673862934113,
0.032592132687568665,
-0.021963967010378838,
-0.006711604073643684,
-0.10336415469646454,
0.02745252475142479,
0.0001301385636907071,
-0.041262537240982056,
0.06256469339132309,
-0.010187881998717785,
0.023894894868135452,
0.011335263960063457,
0.02661881037056446,
0.12477021664381027,
0.03435266762971878,
-0.05595075711607933,
0.04277798533439636,
0.08430714905261993,
0.033484239131212234,
-0.006483706180006266,
0.0709940567612648,
-0.01551954448223114,
0.04008879512548447,
0.0035356541629880667,
-0.009343165904283524,
0.018201099708676338,
-0.03051208332180977,
0.06513570994138718,
-0.016385957598686218,
-0.0397225022315979,
-0.056565407663583755,
-0.010925931856036186,
0.017184901982545853,
-0.028006600216031075,
-0.016999581828713417,
-0.052655547857284546,
-0.03175334259867668,
-0.013209613971412182,
-0.01727832853794098,
0.0700179785490036,
0.011571506969630718,
0.0038745757192373276,
0.0475686639547348,
0.03656001016497612,
-0.06528788805007935,
-0.026643432676792145,
-0.1448165327310562,
0.026588913053274155,
-0.03582470491528511,
-0.043874215334653854,
0.07016648352146149,
-0.06281370669603348,
-0.10361684858798981,
-0.05528292804956436,
0.03732271492481232,
-0.05485668405890465,
-0.04147928208112717,
-0.07447324693202972,
0.02200949378311634,
0.05917724221944809,
-0.03296656161546707,
0.008092796429991722,
0.03444453701376915,
-0.006304791662842035,
-0.03264753520488739,
-0.010031094774603844,
0.02255255915224552,
-0.06810785830020905,
0.02899695187807083,
-0.04056565463542938,
-0.05223379656672478,
0.014420808292925358,
-0.008361640386283398,
-0.06549730896949768,
0.08530020713806152,
0.09392548352479935,
0.05921326205134392,
-0.09521374851465225,
-0.03295842185616493,
-0.05661401152610779,
0.029559409245848656,
0.011440340429544449,
-4.903308692405517e-8,
0.06491350382566452,
-0.023103194311261177,
-0.025269655510783195,
0.06918518245220184,
0.018498577177524567,
0.019230112433433533,
0.04161472246050835,
-0.05226067826151848,
-0.04918426275253296,
0.022768815979361534,
0.016338201239705086,
0.04295504838228226,
-0.06674354523420334,
0.08786351978778839,
0.0039429813623428345,
0.033642224967479706,
-0.031277481466531754,
0.01882932148873806,
-0.011062690056860447,
-0.12868134677410126,
-0.03472408279776573,
-0.04629816114902496,
0.01658746786415577,
0.036280784755945206,
-0.0482645258307457,
-0.01767042651772499,
-0.013348950073122978,
-0.033834971487522125,
-0.06781983375549316,
0.03468996658921242,
-0.06781245023012161,
-0.023789307102560997,
0.0004563772235997021,
-0.03217003867030144,
-0.005726846866309643,
-0.02249976247549057,
-0.06845955550670624,
0.08087043464183807,
0.04670892655849457,
-0.039807576686143875,
0.02540961094200611,
0.08240251243114471,
0.006883604452013969,
-0.024290435016155243,
-0.07865229994058609,
-0.01546995434910059,
-0.01455962099134922,
0.11454938352108002,
0.008650800213217735,
-0.029280181974172592,
0.0026009390130639076,
-0.015601609833538532,
0.0010375031270086765,
0.04198445752263069,
0.030893884599208832,
0.08019443601369858,
0.0008853452163748443,
-0.09958546608686447,
-0.07909298688173294,
0.013477450236678123,
0.07950881123542786,
-0.06938054412603378,
0.035137347877025604,
-0.04269601032137871
] | 0.030117 |
# Windows (WSL2) OpenClaw on Windows is recommended \*\*via WSL2\*\* (Ubuntu recommended). The CLI + Gateway run inside Linux, which keeps the runtime consistent and makes tooling far more compatible (Node/Bun/pnpm, Linux binaries, skills). Native Windows might be trickier. WSL2 gives you the full Linux experience — one command to install: `wsl --install`. Native Windows companion apps are planned. ## Install (WSL2) - [Getting Started](/start/getting-started) (use inside WSL) - [Install & updates](/install/updating) - Official WSL2 guide (Microsoft): https://learn.microsoft.com/windows/wsl/install ## Gateway - [Gateway runbook](/gateway) - [Configuration](/gateway/configuration) ## Gateway service install (CLI) Inside WSL2: ``` openclaw onboard --install-daemon ``` Or: ``` openclaw gateway install ``` Or: ``` openclaw configure ``` Select \*\*Gateway service\*\* when prompted. Repair/migrate: ``` openclaw doctor ``` ## Advanced: expose WSL services over LAN (portproxy) WSL has its own virtual network. If another machine needs to reach a service running \*\*inside WSL\*\* (SSH, a local TTS server, or the Gateway), you must forward a Windows port to the current WSL IP. The WSL IP changes after restarts, so you may need to refresh the forwarding rule. Example (PowerShell \*\*as Administrator\*\*): ```powershell $Distro = "Ubuntu-24.04" $ListenPort = 2222 $TargetPort = 22 $WslIp = (wsl -d $Distro -- hostname -I).Trim().Split(" ")[0] if (-not $WslIp) { throw "WSL IP not found." } netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=$ListenPort ` connectaddress=$WslIp connectport=$TargetPort ``` Allow the port through Windows Firewall (one-time): ```powershell New-NetFirewallRule -DisplayName "WSL SSH $ListenPort" -Direction Inbound ` -Protocol TCP -LocalPort $ListenPort -Action Allow ``` Refresh the portproxy after WSL restarts: ```powershell netsh interface portproxy delete v4tov4 listenport=$ListenPort listenaddress=0.0.0.0 | Out-Null netsh interface portproxy add v4tov4 listenport=$ListenPort listenaddress=0.0.0.0 ` connectaddress=$WslIp connectport=$TargetPort | Out-Null ``` Notes: - SSH from another machine targets the \*\*Windows host IP\*\* (example: `ssh user@windows-host -p 2222`). - Remote nodes must point at a \*\*reachable\*\* Gateway URL (not `127.0.0.1`); use `openclaw status --all` to confirm. - Use `listenaddress=0.0.0.0` for LAN access; `127.0.0.1` keeps it local only. - If you want this automatic, register a Scheduled Task to run the refresh step at login. ## Step-by-step WSL2 install ### 1) Install WSL2 + Ubuntu Open PowerShell (Admin): ```powershell wsl --install # Or pick a distro explicitly: wsl --list --online wsl --install -d Ubuntu-24.04 ``` Reboot if Windows asks. ### 2) Enable systemd (required for gateway install) In your WSL terminal: ```bash sudo tee /etc/wsl.conf >/dev/null <<'EOF' [boot] systemd=true EOF ``` Then from PowerShell: ```powershell wsl --shutdown ``` Re-open Ubuntu, then verify: ```bash systemctl --user status ``` ### 3) Install OpenClaw (inside WSL) Follow the Linux Getting Started flow inside WSL: ```bash git clone https://github.com/openclaw/openclaw.git cd openclaw pnpm install pnpm ui:build # auto-installs UI deps on first run pnpm build openclaw onboard ``` Full guide: [Getting Started](/start/getting-started) ## Windows companion app We do not have a Windows companion app yet. Contributions are welcome if you want contributions to make it happen. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/windows.md | main | opebclaw | [
0.016358239576220512,
-0.02799956314265728,
-0.08831438422203064,
0.01721041277050972,
-0.01293054036796093,
-0.06432076543569565,
-0.09483092278242111,
0.055314987897872925,
-0.032751068472862244,
-0.048334307968616486,
0.02695765346288681,
0.002441277727484703,
-0.04393685609102249,
-0.03150138258934021,
0.05997053533792496,
0.07766245305538177,
0.04529176652431488,
-0.02053806558251381,
0.03646783158183098,
-0.09728798270225525,
-0.07562658935785294,
-0.03451123833656311,
-0.012594555504620075,
-0.06389918923377991,
-0.10478005558252335,
-0.013040340505540371,
-0.008752952329814434,
0.021699026226997375,
0.030209969729185104,
-0.0002379582729190588,
0.037250470370054245,
-0.0055672964081168175,
-0.07500983029603958,
0.045115817338228226,
-0.02383100986480713,
0.061183538287878036,
0.09520667046308517,
-0.000645887921564281,
-0.06700844317674637,
-0.04812119901180267,
0.0739411860704422,
0.009892269037663937,
-0.01040639728307724,
-0.047980498522520065,
0.014171701855957508,
-0.05752352997660637,
-0.01473491545766592,
-0.061304133385419846,
-0.02761431224644184,
0.03480864688754082,
-0.030348533764481544,
-0.07473335415124893,
0.051904141902923584,
-0.023486560210585594,
0.005247646942734718,
0.007403546944260597,
0.026297880336642265,
-0.02522291988134384,
0.030148888006806374,
-0.1198076456785202,
0.022221945226192474,
-0.048827722668647766,
-0.04552822932600975,
0.05170474573969841,
-0.16721805930137634,
-0.0013648532330989838,
-0.03923197463154793,
-0.04243950545787811,
0.04538847133517265,
-0.05111042782664299,
-0.1216464415192604,
0.014380265027284622,
-0.007898936979472637,
0.01129953097552061,
-0.06779374182224274,
0.002594016259536147,
0.061617154628038406,
-0.00691625289618969,
-0.03965355083346367,
-0.01722455583512783,
0.028930887579917908,
0.13172547519207,
-0.10096178948879242,
0.03356968238949776,
0.017905380576848984,
0.06952845305204391,
-0.06939686834812164,
0.048440054059028625,
-0.014933142811059952,
-0.030879002064466476,
0.0655888244509697,
-0.08268152922391891,
-0.034515608102083206,
0.012715296819806099,
0.0405782125890255,
0.05194522812962532,
0.03994223102927208,
-0.059401270002126694,
-0.015306565910577774,
0.030799925327301025,
-0.07758881896734238,
-0.027561018243432045,
0.012042607180774212,
0.044118914753198624,
-0.06199256703257561,
0.03835734352469444,
0.03951788693666458,
0.10799571871757507,
0.029309384524822235,
-0.06080970913171768,
-0.003745089750736952,
-0.04344799742102623,
0.03193610906600952,
-0.032169159501791,
0.0003874337417073548,
0.019944176077842712,
0.027971092611551285,
-0.03178148716688156,
-0.013332047499716282,
0.07061952352523804,
0.013490736484527588,
0.014912674203515053,
-0.02637002430856228,
-0.03548534959554672,
0.051255904138088226,
0.02145032398402691,
0.07486371695995331,
3.802170273197275e-33,
0.07149791717529297,
0.02193414606153965,
-0.0489310659468174,
0.050993576645851135,
0.14875899255275726,
-0.034593481570482254,
0.1079246923327446,
-0.05986848101019859,
-0.02727258764207363,
0.030221005901694298,
-0.009552327916026115,
0.02303495816886425,
-0.06495428830385208,
-0.010800336487591267,
0.0721319392323494,
-0.04076068103313446,
-0.027855511754751205,
0.03539365530014038,
0.027860034257173538,
0.020993085578083992,
0.0796923041343689,
-0.08792752027511597,
0.01576407626271248,
0.004151401109993458,
0.06399168074131012,
-0.0595845989882946,
0.049101389944553375,
0.0004665955784730613,
0.07948046177625656,
-0.002012209501117468,
0.0429006926715374,
0.030947990715503693,
-0.08464039862155914,
-0.0018460758728906512,
-0.05662039667367935,
-0.030618546530604362,
-0.13306178152561188,
-0.023884577676653862,
0.010544703342020512,
0.009069578722119331,
-0.05584678798913956,
0.037331998348236084,
0.04182674363255501,
-0.0460631437599659,
0.06488150358200073,
-0.1144787147641182,
-0.0277742650359869,
0.04200813174247742,
0.12156080454587936,
-0.05132709816098213,
0.024024326354265213,
0.05700138956308365,
0.034407131373882294,
0.04366939514875412,
-0.02395452745258808,
0.009040169417858124,
0.03407185152173042,
-0.015547339804470539,
-0.01600365713238716,
-0.000591911026276648,
-0.03255869075655937,
0.0250454843044281,
-0.03192098066210747,
0.02059432864189148,
0.022261573001742363,
-0.027457691729068756,
-0.022823072969913483,
0.046638697385787964,
-0.09997954964637756,
0.06362374126911163,
-0.0038873020093888044,
-0.028043562546372414,
-0.018291587010025978,
0.07346764951944351,
0.004375744145363569,
-0.018941674381494522,
0.0531182661652565,
-0.074790358543396,
0.08071368932723999,
0.0007285728352144361,
-0.002286984119564295,
0.11204684525728226,
-0.0014421890955418348,
0.01194080337882042,
0.06743482500314713,
-0.02357214316725731,
-0.02614605985581875,
-0.08925651013851166,
0.033811330795288086,
0.04267206788063049,
-0.024815579876303673,
0.05350573733448982,
-0.020354092121124268,
0.06273805350065231,
-0.038784921169281006,
-5.067584431727698e-33,
-0.018539072945713997,
-0.010867838747799397,
0.07322722673416138,
0.030989812687039375,
-0.03909431770443916,
0.04058856517076492,
-0.06413634866476059,
-0.03403276577591896,
0.027920769527554512,
0.019489075988531113,
-0.00817769207060337,
0.12164120376110077,
0.07622381299734116,
-0.017240311950445175,
0.07437433302402496,
-0.05353408679366112,
0.017061015591025352,
0.0023466378916054964,
0.05233978480100632,
0.008604574017226696,
-0.018177416175603867,
0.0526975579559803,
0.009150068275630474,
-0.11722031980752945,
0.014564283192157745,
0.021212494000792503,
0.07405262440443039,
0.041114695370197296,
-0.07245156913995743,
-0.016895197331905365,
-0.0021845242008566856,
0.05265584960579872,
0.020009078085422516,
-0.054080694913864136,
0.0809553936123848,
0.0559980534017086,
0.0018798247911036015,
0.0018978915177285671,
0.0070032947696745396,
0.007164145819842815,
0.06504523009061813,
-0.06323036551475525,
-0.04827495664358139,
-0.04379625990986824,
0.013920461758971214,
-0.013841910287737846,
-0.04997120052576065,
0.006466814782470465,
-0.04894852265715599,
0.015109623782336712,
-0.0750211700797081,
0.018640849739313126,
-0.02101679891347885,
0.10650856792926788,
0.061231594532728195,
0.03539123013615608,
-0.01641138643026352,
0.020352309569716454,
0.017191819846630096,
-0.11668554693460464,
-0.028704844415187836,
-0.007635730318725109,
-0.03781842812895775,
0.10042287409305573,
-0.08211018145084381,
-0.02504732646048069,
-0.04741830751299858,
-0.01742718555033207,
-0.10347839444875717,
0.0006131159025244415,
-0.10127130895853043,
0.03740953281521797,
0.03765438497066498,
-0.0557231679558754,
0.03422848880290985,
-0.004807088524103165,
0.039483170956373215,
-0.027156857773661613,
-0.02367309294641018,
0.01567649096250534,
0.005304995458573103,
0.02035074308514595,
0.02731041982769966,
-0.06316711753606796,
-0.058222800493240356,
-0.026460567489266396,
-0.029758069664239883,
0.015718897804617882,
0.00003116621155641042,
0.005799359176307917,
-0.0213072020560503,
-0.028421126306056976,
0.020963136106729507,
-0.04407939314842224,
0.035444047302007675,
-4.963391475598655e-8,
-0.03312258422374725,
-0.027245253324508667,
-0.0973958969116211,
-0.015662919729948044,
-0.0789589136838913,
-0.003689636243507266,
0.036063771694898605,
-0.02884725108742714,
-0.06988243758678436,
0.03490101918578148,
0.04398690164089203,
0.0035005395766347647,
-0.06406895816326141,
-0.0134802907705307,
-0.06225211173295975,
0.13172504305839539,
-0.005548291839659214,
-0.04682689905166626,
0.03144432231783867,
-0.038357049226760864,
0.034337662160396576,
-0.023319333791732788,
0.13747912645339966,
0.09635361284017563,
-0.02953675575554371,
0.01716398075222969,
0.0297735333442688,
-0.07106246054172516,
0.016704754903912544,
-0.0088229114189744,
-0.014867419376969337,
-0.014217717573046684,
0.039101261645555496,
0.05918387696146965,
0.05665452405810356,
-0.015222422778606415,
-0.09006572514772415,
0.0757654532790184,
0.053275346755981445,
0.022669686004519463,
0.07298210263252258,
0.04612036421895027,
-0.00964970514178276,
-0.024869432672858238,
-0.041902266442775726,
0.03695375472307205,
-0.09637092798948288,
0.04189346358180046,
-0.009755145758390427,
-0.013940098695456982,
-0.0271514393389225,
-0.030635878443717957,
0.047919485718011856,
0.013196767307817936,
0.00702415406703949,
0.06390377879142761,
0.0021029296331107616,
-0.12426699697971344,
0.01655767671763897,
-0.0060437447391450405,
-0.04845679551362991,
-0.015830012038350105,
0.04104585573077202,
-0.019976213574409485
] | 0.008388 |
# OpenClaw on GCP Compute Engine (Docker, Production VPS Guide) ## Goal Run a persistent OpenClaw Gateway on a GCP Compute Engine VM using Docker, with durable state, baked-in binaries, and safe restart behavior. If you want "OpenClaw 24/7 for ~$5-12/mo", this is a reliable setup on Google Cloud. Pricing varies by machine type and region; pick the smallest VM that fits your workload and scale up if you hit OOMs. ## What are we doing (simple terms)? - Create a GCP project and enable billing - Create a Compute Engine VM - Install Docker (isolated app runtime) - Start the OpenClaw Gateway in Docker - Persist `~/.openclaw` + `~/.openclaw/workspace` on the host (survives restarts/rebuilds) - Access the Control UI from your laptop via an SSH tunnel The Gateway can be accessed via: - SSH port forwarding from your laptop - Direct port exposure if you manage firewalling and tokens yourself This guide uses Debian on GCP Compute Engine. Ubuntu also works; map packages accordingly. For the generic Docker flow, see [Docker](/install/docker). --- ## Quick path (experienced operators) 1. Create GCP project + enable Compute Engine API 2. Create Compute Engine VM (e2-small, Debian 12, 20GB) 3. SSH into the VM 4. Install Docker 5. Clone OpenClaw repository 6. Create persistent host directories 7. Configure `.env` and `docker-compose.yml` 8. Bake required binaries, build, and launch --- ## What you need - GCP account (free tier eligible for e2-micro) - gcloud CLI installed (or use Cloud Console) - SSH access from your laptop - Basic comfort with SSH + copy/paste - ~20-30 minutes - Docker and Docker Compose - Model auth credentials - Optional provider credentials - WhatsApp QR - Telegram bot token - Gmail OAuth --- ## 1) Install gcloud CLI (or use Console) \*\*Option A: gcloud CLI\*\* (recommended for automation) Install from https://cloud.google.com/sdk/docs/install Initialize and authenticate: ```bash gcloud init gcloud auth login ``` \*\*Option B: Cloud Console\*\* All steps can be done via the web UI at https://console.cloud.google.com --- ## 2) Create a GCP project \*\*CLI:\*\* ```bash gcloud projects create my-openclaw-project --name="OpenClaw Gateway" gcloud config set project my-openclaw-project ``` Enable billing at https://console.cloud.google.com/billing (required for Compute Engine). Enable the Compute Engine API: ```bash gcloud services enable compute.googleapis.com ``` \*\*Console:\*\* 1. Go to IAM & Admin > Create Project 2. Name it and create 3. Enable billing for the project 4. Navigate to APIs & Services > Enable APIs > search "Compute Engine API" > Enable --- ## 3) Create the VM \*\*Machine types:\*\* | Type | Specs | Cost | Notes | | -------- | ------------------------ | ------------------ | ------------------ | | e2-small | 2 vCPU, 2GB RAM | ~$12/mo | Recommended | | e2-micro | 2 vCPU (shared), 1GB RAM | Free tier eligible | May OOM under load | \*\*CLI:\*\* ```bash gcloud compute instances create openclaw-gateway \ --zone=us-central1-a \ --machine-type=e2-small \ --boot-disk-size=20GB \ --image-family=debian-12 \ --image-project=debian-cloud ``` \*\*Console:\*\* 1. Go to Compute Engine > VM instances > Create instance 2. Name: `openclaw-gateway` 3. Region: `us-central1`, Zone: `us-central1-a` 4. Machine type: `e2-small` 5. Boot disk: Debian 12, 20GB 6. Create --- ## 4) SSH into the VM \*\*CLI:\*\* ```bash gcloud compute ssh openclaw-gateway --zone=us-central1-a ``` \*\*Console:\*\* Click the "SSH" button next to your VM in the Compute Engine dashboard. Note: SSH key propagation can take 1-2 minutes after VM creation. If connection is refused, wait and retry. --- ## 5) Install Docker (on the VM) ```bash sudo apt-get update sudo apt-get install -y git curl ca-certificates curl -fsSL https://get.docker.com | sudo sh sudo usermod -aG docker $USER ``` Log out and back in for the group change to | https://github.com/openclaw/openclaw/blob/main//docs/platforms/gcp.md | main | opebclaw | [
-0.056104693561792374,
0.01796681247651577,
0.020836863666772842,
-0.02999999187886715,
-0.07442649453878403,
-0.03071688301861286,
-0.08470296859741211,
0.019984453916549683,
-0.05329312011599541,
0.030676167458295822,
0.004342757631093264,
-0.06332563608884811,
0.03692878410220146,
-0.06457193195819855,
0.017812713980674744,
0.010756334289908409,
0.15606819093227386,
-0.01966474950313568,
0.031136371195316315,
-0.02598477713763714,
-0.06110117584466934,
0.07786053419113159,
-0.013026571832597256,
-0.06265532970428467,
-0.02506978251039982,
-0.0031490474939346313,
-0.021822800859808922,
-0.04704459011554718,
-0.017387617379426956,
0.001812265021726489,
0.004158137831836939,
-0.03584761545062065,
-0.06413339078426361,
0.10203094035387039,
0.032211896032094955,
0.060120053589344025,
-0.006693956442177296,
-0.005201691761612892,
-0.04361637309193611,
-0.028252828866243362,
0.052651405334472656,
-0.1041373535990715,
-0.05365190654993057,
-0.07326473295688629,
0.04240390658378601,
0.03285503387451172,
0.03400591388344765,
-0.06556155532598495,
0.035235051065683365,
-0.005150646436959505,
0.009599999524652958,
-0.10851430892944336,
0.019479850307106972,
-0.02047366462647915,
-0.04660036042332649,
0.003424312686547637,
0.03455793857574463,
-0.011924857273697853,
0.02512228675186634,
-0.02510044537484646,
-0.008382034488022327,
-0.04414026811718941,
-0.047897838056087494,
0.007716238498687744,
-0.08628324419260025,
-0.026652202010154724,
0.0808665081858635,
-0.011224775575101376,
-0.015125926584005356,
-0.009971545077860355,
0.06433454900979996,
0.051963504403829575,
-0.023298215121030807,
-0.10139021277427673,
-0.14252117276191711,
-0.018341444432735443,
-0.0020826482214033604,
-0.009462745860219002,
0.05894099175930023,
0.04797302931547165,
0.0611371174454689,
0.06014954671263695,
-0.05961303412914276,
0.05971624329686165,
-0.08604785799980164,
0.010708400048315525,
0.021557629108428955,
0.11073433607816696,
0.08532757312059402,
-0.06162898615002632,
0.03583034500479698,
-0.011444022879004478,
-0.024849601089954376,
-0.022216971963644028,
0.07615409791469574,
-0.06436378508806229,
0.0069328416138887405,
-0.06038183346390724,
0.005744262598454952,
0.014282160438597202,
0.004702867474406958,
0.0018196612363681197,
0.038523510098457336,
-0.023272480815649033,
0.010246620513498783,
0.1096145510673523,
-0.03477788716554642,
0.09744083136320114,
0.013144209049642086,
-0.008929576724767685,
-0.046524450182914734,
0.02583174593746662,
0.005986302625387907,
-0.011644786223769188,
-0.037864428013563156,
0.031174983829259872,
-0.015962541103363037,
-0.0653647780418396,
0.023993458598852158,
0.057310402393341064,
0.04678654298186302,
0.007822556421160698,
0.07523861527442932,
-0.023232461884617805,
-0.03490046039223671,
0.06994981318712234,
-0.007970770820975304,
5.0974008459363054e-33,
0.04640793427824974,
-0.04592671990394592,
0.01634129509329796,
-0.07877139747142792,
0.15159814059734344,
0.10061690956354141,
-0.014376338571310043,
0.020881514996290207,
-0.062240343540906906,
0.022366506978869438,
-0.02262912131845951,
0.013428755104541779,
-0.03663776069879532,
0.00780840590596199,
0.041007209569215775,
-0.0019749929197132587,
-0.015367183834314346,
0.01668737083673477,
0.043975017964839935,
-0.02788526937365532,
-0.024769682437181473,
-0.10655094683170319,
0.018964676186442375,
-0.03211567550897598,
0.04132400453090668,
-0.013961279764771461,
0.009122810326516628,
-0.030986430123448372,
0.003720723558217287,
0.019103998318314552,
0.0413074791431427,
-0.017247049137949944,
-0.020613599568605423,
0.04911378398537636,
-0.13900262117385864,
-0.03527602553367615,
-0.16690438985824585,
-0.04590846970677376,
0.011754410341382027,
0.03408235311508179,
-0.01203533262014389,
-0.00232021720148623,
0.01450862642377615,
-0.10214284807443619,
0.004397016484290361,
0.0028728411998599768,
0.06605036556720734,
-0.00009060500451596454,
0.01557071227580309,
0.06774478405714035,
0.05804254859685898,
-0.024002306163311005,
-0.08778880536556244,
-0.04425965994596481,
-0.07341066002845764,
0.029822969809174538,
0.0026657634880393744,
-0.04379109665751457,
0.004818952176719904,
0.0287778377532959,
-0.07433183491230011,
0.05545521900057793,
-0.01582293212413788,
0.043459925800561905,
-0.068838931620121,
-0.008077400736510754,
-0.08542025834321976,
0.07960633188486099,
-0.03553158417344093,
0.04224584251642227,
0.00031494919676333666,
-0.035182610154151917,
0.056291572749614716,
-0.008204448036849499,
0.03157201409339905,
0.007870703935623169,
0.02253473550081253,
-0.037538230419158936,
-0.039483990520238876,
-0.04292701929807663,
0.005103187169879675,
0.03306521102786064,
-0.021561162546277046,
0.07192596793174744,
0.009798934683203697,
0.02446030266582966,
0.028988037258386612,
0.016900088638067245,
-0.01431690901517868,
0.07111203670501709,
-0.08895446360111237,
-0.0768972709774971,
0.02440537139773369,
-0.00931473821401596,
-0.01879695989191532,
-6.64889359525841e-33,
-0.020340463146567345,
0.0015330987516790628,
-0.01799468882381916,
0.03612988442182541,
0.09014654159545898,
-0.021732566878199577,
0.08596590906381607,
-0.007590863388031721,
-0.07011725753545761,
-0.019024882465600967,
-0.0898858979344368,
0.09137436002492905,
0.07973116636276245,
0.0622088797390461,
0.014030836522579193,
-0.054191507399082184,
-0.0388743057847023,
-0.0907682403922081,
-0.0147941205650568,
0.02703833393752575,
0.0215395949780941,
0.010251014493405819,
0.04333877936005592,
-0.025744032114744186,
-0.010823157615959644,
0.0025834543630480766,
0.016114944592118263,
-0.004700312856584787,
0.0018597247544676065,
0.05201806128025055,
-0.04289305582642555,
0.011734750121831894,
0.009494714438915253,
-0.0066598085686564445,
0.09603177011013031,
0.028185293078422546,
0.016751710325479507,
0.03962423652410507,
0.054324790835380554,
-0.0019349297508597374,
0.005204256623983383,
-0.07779017835855484,
-0.009418312460184097,
-0.05045032501220703,
-0.004180592950433493,
0.06116648018360138,
-0.022881433367729187,
0.023005425930023193,
-0.07439806312322617,
-0.057053640484809875,
-0.10391207039356232,
0.06023596227169037,
-0.0700082927942276,
0.07831432670354843,
-0.017086977139115334,
0.007943780161440372,
0.011200712993741035,
0.00532777002081275,
-0.06402232497930527,
-0.042949892580509186,
0.026039162650704384,
-0.06987160444259644,
0.014110416173934937,
0.09894655644893646,
-0.027567874640226364,
-0.009895599447190762,
0.019208014011383057,
0.02675226517021656,
-0.026569264009594917,
-0.0026241920422762632,
-0.08784697204828262,
-0.07663575559854507,
0.06247412785887718,
-0.008501897566020489,
-0.023656120523810387,
-0.02628890424966812,
0.009607702493667603,
-0.10680250823497772,
0.01874481700360775,
0.0002545540628489107,
0.09264545142650604,
-0.011210095137357712,
0.04362368583679199,
-0.08300169557332993,
0.020061811432242393,
-0.04056470841169357,
0.015304542146623135,
0.017651859670877457,
0.12499959766864777,
0.06496814638376236,
-0.14864273369312286,
-0.04132284224033356,
-0.04960505664348602,
0.006458611693233252,
-0.0183322262018919,
-4.9900261700486226e-8,
0.03464774414896965,
0.04731403663754463,
0.04657949134707451,
0.043949902057647705,
-0.0640038326382637,
-0.058267854154109955,
0.06428435444831848,
0.02077280730009079,
0.0200913418084383,
0.035669807344675064,
0.023281820118427277,
-0.016104601323604584,
-0.03720638155937195,
0.02449388988316059,
-0.06504128128290176,
0.11170033365488052,
0.03071974217891693,
-0.04020415619015694,
0.02899383381009102,
-0.0356048084795475,
-0.02480022981762886,
-0.012643864378333092,
0.047870244830846786,
0.04452502354979515,
-0.05438888072967529,
-0.005954580381512642,
0.019993387162685394,
-0.014330809004604816,
-0.028155973181128502,
0.021985741332173347,
0.04277459904551506,
0.00011738191824406385,
-0.006727329455316067,
0.03496798500418663,
0.015939444303512573,
-0.05242644250392914,
-0.13217726349830627,
0.008440549485385418,
0.07341787964105606,
-0.0013182515976950526,
0.012203210964798927,
-0.02746446058154106,
0.016671989113092422,
-0.07165113836526871,
-0.018424760550260544,
0.016615020111203194,
-0.0251427311450243,
-0.0412115752696991,
-0.008333543315529823,
0.16338656842708588,
0.03718023747205734,
0.004644240252673626,
0.002890849020332098,
0.12860222160816193,
0.12823499739170074,
0.03921464458107948,
0.0050324928015470505,
-0.05607980862259865,
0.05157417804002762,
0.039974309504032135,
-0.0046779438853263855,
0.07383109629154205,
0.014440855011343956,
-0.044749319553375244
] | -0.019607 |
VM creation. If connection is refused, wait and retry. --- ## 5) Install Docker (on the VM) ```bash sudo apt-get update sudo apt-get install -y git curl ca-certificates curl -fsSL https://get.docker.com | sudo sh sudo usermod -aG docker $USER ``` Log out and back in for the group change to take effect: ```bash exit ``` Then SSH back in: ```bash gcloud compute ssh openclaw-gateway --zone=us-central1-a ``` Verify: ```bash docker --version docker compose version ``` --- ## 6) Clone the OpenClaw repository ```bash git clone https://github.com/openclaw/openclaw.git cd openclaw ``` This guide assumes you will build a custom image to guarantee binary persistence. --- ## 7) Create persistent host directories Docker containers are ephemeral. All long-lived state must live on the host. ```bash mkdir -p ~/.openclaw mkdir -p ~/.openclaw/workspace ``` --- ## 8) Configure environment variables Create `.env` in the repository root. ```bash OPENCLAW\_IMAGE=openclaw:latest OPENCLAW\_GATEWAY\_TOKEN=change-me-now OPENCLAW\_GATEWAY\_BIND=lan OPENCLAW\_GATEWAY\_PORT=18789 OPENCLAW\_CONFIG\_DIR=/home/$USER/.openclaw OPENCLAW\_WORKSPACE\_DIR=/home/$USER/.openclaw/workspace GOG\_KEYRING\_PASSWORD=change-me-now XDG\_CONFIG\_HOME=/home/node/.openclaw ``` Generate strong secrets: ```bash openssl rand -hex 32 ``` \*\*Do not commit this file.\*\* --- ## 9) Docker Compose configuration Create or update `docker-compose.yml`. ```yaml services: openclaw-gateway: image: ${OPENCLAW\_IMAGE} build: . restart: unless-stopped env\_file: - .env environment: - HOME=/home/node - NODE\_ENV=production - TERM=xterm-256color - OPENCLAW\_GATEWAY\_BIND=${OPENCLAW\_GATEWAY\_BIND} - OPENCLAW\_GATEWAY\_PORT=${OPENCLAW\_GATEWAY\_PORT} - OPENCLAW\_GATEWAY\_TOKEN=${OPENCLAW\_GATEWAY\_TOKEN} - GOG\_KEYRING\_PASSWORD=${GOG\_KEYRING\_PASSWORD} - XDG\_CONFIG\_HOME=${XDG\_CONFIG\_HOME} - PATH=/home/linuxbrew/.linuxbrew/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin volumes: - ${OPENCLAW\_CONFIG\_DIR}:/home/node/.openclaw - ${OPENCLAW\_WORKSPACE\_DIR}:/home/node/.openclaw/workspace ports: # Recommended: keep the Gateway loopback-only on the VM; access via SSH tunnel. # To expose it publicly, remove the `127.0.0.1:` prefix and firewall accordingly. - "127.0.0.1:${OPENCLAW\_GATEWAY\_PORT}:18789" # Optional: only if you run iOS/Android nodes against this VM and need Canvas host. # If you expose this publicly, read /gateway/security and firewall accordingly. # - "18793:18793" command: [ "node", "dist/index.js", "gateway", "--bind", "${OPENCLAW\_GATEWAY\_BIND}", "--port", "${OPENCLAW\_GATEWAY\_PORT}", ] ``` --- ## 10) Bake required binaries into the image (critical) Installing binaries inside a running container is a trap. Anything installed at runtime will be lost on restart. All external binaries required by skills must be installed at image build time. The examples below show three common binaries only: - `gog` for Gmail access - `goplaces` for Google Places - `wacli` for WhatsApp These are examples, not a complete list. You may install as many binaries as needed using the same pattern. If you add new skills later that depend on additional binaries, you must: 1. Update the Dockerfile 2. Rebuild the image 3. Restart the containers \*\*Example Dockerfile\*\* ```dockerfile FROM node:22-bookworm RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/\* # Example binary 1: Gmail CLI RUN curl -L https://github.com/steipete/gog/releases/latest/download/gog\_Linux\_x86\_64.tar.gz \ | tar -xz -C /usr/local/bin && chmod +x /usr/local/bin/gog # Example binary 2: Google Places CLI RUN curl -L https://github.com/steipete/goplaces/releases/latest/download/goplaces\_Linux\_x86\_64.tar.gz \ | tar -xz -C /usr/local/bin && chmod +x /usr/local/bin/goplaces # Example binary 3: WhatsApp CLI RUN curl -L https://github.com/steipete/wacli/releases/latest/download/wacli\_Linux\_x86\_64.tar.gz \ | tar -xz -C /usr/local/bin && chmod +x /usr/local/bin/wacli # Add more binaries below using the same pattern WORKDIR /app COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./ COPY ui/package.json ./ui/package.json COPY scripts ./scripts RUN corepack enable RUN pnpm install --frozen-lockfile COPY . . RUN pnpm build RUN pnpm ui:install RUN pnpm ui:build ENV NODE\_ENV=production CMD ["node","dist/index.js"] ``` --- ## 11) Build and launch ```bash docker compose build docker compose up -d openclaw-gateway ``` Verify binaries: ```bash docker compose exec openclaw-gateway which gog docker compose exec openclaw-gateway which goplaces docker compose exec openclaw-gateway which wacli ``` Expected output: ``` /usr/local/bin/gog /usr/local/bin/goplaces /usr/local/bin/wacli ``` --- ## 12) Verify Gateway ```bash docker compose logs -f openclaw-gateway ``` Success: ``` [gateway] listening on ws://0.0.0.0:18789 ``` --- ## 13) Access from your laptop Create an SSH tunnel to forward the Gateway port: ```bash gcloud compute ssh openclaw-gateway --zone=us-central1-a -- -L 18789:127.0.0.1:18789 ``` | https://github.com/openclaw/openclaw/blob/main//docs/platforms/gcp.md | main | opebclaw | [
0.036425743252038956,
0.024633901193737984,
-0.0316416397690773,
-0.0038094492629170418,
0.009526708163321018,
-0.08079711347818375,
-0.08888477087020874,
-0.05630401521921158,
0.010452075861394405,
0.0481397844851017,
0.01807544194161892,
-0.09697239100933075,
0.05758610740303993,
0.00691773509606719,
0.016651790589094162,
-0.0022517454344779253,
0.06881257891654968,
-0.002333475509658456,
0.040131062269210815,
0.02632514014840126,
-0.11319202184677124,
0.07935559749603271,
-0.00396107928827405,
-0.060654837638139725,
-0.0363316535949707,
-0.01814190484583378,
-0.08604035526514053,
-0.030979465693235397,
-0.022847844287753105,
-0.02450106292963028,
0.01911257952451706,
0.015194924548268318,
-0.002982600126415491,
0.021646616980433464,
0.07309845089912415,
0.1311456561088562,
0.03219877928495407,
0.01916760392487049,
-0.12083723396062851,
-0.028829677030444145,
0.09090714901685715,
-0.08726750314235687,
-0.04512656107544899,
-0.08706392347812653,
-0.005524400155991316,
0.012021433562040329,
0.02708922140300274,
-0.09749399125576019,
0.02579118311405182,
0.05428929626941681,
-0.054087571799755096,
-0.09299676865339279,
0.020652446895837784,
0.003329227212816477,
0.0073084756731987,
0.027380630373954773,
0.008270664140582085,
0.06910347938537598,
0.02584257163107395,
-0.0838237851858139,
0.034921254962682724,
0.021774152293801308,
-0.08169607818126678,
0.006646552123129368,
-0.034660521894693375,
-0.02831709384918213,
0.07834392040967941,
-0.01544129941612482,
-0.012346039526164532,
0.021531473845243454,
0.11489839851856232,
0.04265253245830536,
-0.045365605503320694,
-0.0781339704990387,
-0.08562368154525757,
0.0022556856274604797,
0.005115512292832136,
0.014232318848371506,
0.032680004835128784,
0.09691135585308075,
-0.032798394560813904,
0.015745112672448158,
-0.0721953734755516,
-0.0000625484244665131,
-0.12434832751750946,
0.0811639353632927,
0.0481424406170845,
0.06754038482904434,
0.04088171198964119,
-0.0829804465174675,
0.023226149380207062,
0.0057760910131037235,
-0.0178163331001997,
-0.047280453145504,
0.06493670493364334,
-0.052659839391708374,
0.028280766680836678,
-0.011272703297436237,
0.047885894775390625,
0.028707142919301987,
-0.007198336999863386,
-0.023737827315926552,
0.027326170355081558,
-0.02272314950823784,
0.004225661046802998,
0.067764051258564,
-0.004674159921705723,
0.058181170374155045,
-0.07285856455564499,
0.005576594732701778,
-0.00926649384200573,
0.002614536788314581,
0.033342573791742325,
0.004346934612840414,
-0.027249205857515335,
0.017448564991354942,
-0.02884592115879059,
-0.029646849259734154,
-0.03347432613372803,
0.01082670409232378,
0.09996303915977478,
-0.01114314328879118,
0.1021912544965744,
-0.011774900369346142,
-0.061479680240154266,
0.07259727269411087,
0.013992849737405777,
2.453722867144612e-33,
0.07462286204099655,
-0.0576946847140789,
0.04663945734500885,
0.006116560194641352,
0.1582283228635788,
0.03097219578921795,
-0.006519078742712736,
-0.02470504119992256,
-0.06981997191905975,
0.020078180357813835,
-0.025741521269083023,
-0.0027223455253988504,
0.014707565307617188,
0.01702859252691269,
0.06282442808151245,
-0.05359523370862007,
-0.011345241218805313,
-0.03109476901590824,
0.053616639226675034,
-0.04796440526843071,
-0.04534222185611725,
-0.09121768176555634,
-0.006770753767341375,
-0.03055870719254017,
0.008483030833303928,
-0.06261937320232391,
0.02749578095972538,
-0.07272697240114212,
-0.01875033602118492,
-0.019255107268691063,
0.06282392889261246,
0.010791471228003502,
0.008862508460879326,
-0.005378208588808775,
-0.08047569543123245,
-0.028145715594291687,
-0.07684731483459473,
0.05636623501777649,
-0.03563676029443741,
0.008605843409895897,
0.044160615652799606,
0.0005201726453378797,
0.0015211181016638875,
0.001570125576108694,
0.08632990717887878,
-0.034460898488759995,
0.06218460947275162,
-0.0056611779145896435,
0.03571252524852753,
0.14175927639007568,
0.017763204872608185,
-0.09274351596832275,
-0.07865284383296967,
-0.04165973514318466,
-0.05019422620534897,
0.04439298063516617,
-0.02084234543144703,
-0.04694671183824539,
-0.04690903052687645,
-0.009186715818941593,
-0.09689109772443771,
0.0723547488451004,
0.008886315859854221,
0.011316373944282532,
-0.0177086740732193,
-0.004738506395369768,
-0.08000238984823227,
0.07761950045824051,
-0.02103455178439617,
0.06875094026327133,
0.013149457052350044,
-0.01478006225079298,
0.013295906595885754,
0.043615784496068954,
0.012274526990950108,
-0.03896187245845795,
0.04538986459374428,
-0.04407716542482376,
-0.027299467474222183,
-0.026990314945578575,
0.031205059960484505,
0.02688249945640564,
-0.13159002363681793,
0.032865963876247406,
-0.03757629916071892,
0.041536845266819,
0.04898684844374657,
0.030188770964741707,
-0.037549011409282684,
0.06368428468704224,
-0.00047952018212527037,
-0.0026637453120201826,
0.06555826961994171,
-0.03992508724331856,
-0.07494960725307465,
-4.2449242611963206e-33,
-0.013945579528808594,
-0.0016545085236430168,
-0.007441134657710791,
0.02165541611611843,
0.14128132164478302,
-0.0076452032662928104,
0.04972346872091293,
-0.030476508662104607,
-0.06485956162214279,
-0.07067076861858368,
-0.05186564847826958,
0.10231596231460571,
0.04646986350417137,
0.07069279998540878,
-0.07657971233129501,
-0.042839329689741135,
-0.04297369718551636,
-0.0637483298778534,
0.007229653652757406,
0.03645521402359009,
0.03473622351884842,
0.037442490458488464,
0.0378173291683197,
0.029380975291132927,
-0.023042531684041023,
0.018333354964852333,
0.06870106607675552,
-0.0003861973818857223,
-0.013802362605929375,
0.047619495540857315,
0.056337203830480576,
0.012858626432716846,
-0.060252945870161057,
0.06664024293422699,
0.06923981755971909,
0.05278368294239044,
0.02212482877075672,
0.08290320634841919,
-0.048332925885915756,
-0.008936210535466671,
0.0027249676641076803,
-0.03958814963698387,
-0.05875851586461067,
-0.047338247299194336,
-0.026975339278578758,
0.05816589668393135,
0.061867304146289825,
-0.012132178992033005,
-0.0896807387471199,
-0.017736613750457764,
-0.05709115043282509,
-0.0299532487988472,
0.00991523452103138,
0.06804859638214111,
0.022652970626950264,
0.012078853324055672,
-0.041858840733766556,
-0.00902106799185276,
-0.04721362516283989,
-0.03466130420565605,
0.05266674607992172,
-0.04186049476265907,
0.022185761481523514,
0.10482696443796158,
-0.05464555323123932,
-0.07902050763368607,
-0.009486167691648006,
0.04972614720463753,
-0.0674372985959053,
0.024915823712944984,
-0.050326187163591385,
-0.022702740505337715,
0.03327832743525505,
-0.02218933030962944,
-0.001805238425731659,
-0.04266711324453354,
-0.060733769088983536,
-0.05164340138435364,
-0.0036091443616896868,
0.005348397884517908,
0.03518308699131012,
0.056021567434072495,
-0.0217566080391407,
-0.06937737762928009,
0.0027555611450225115,
0.026548653841018677,
0.034281086176633835,
0.008026703260838985,
0.08862321078777313,
0.07773908227682114,
-0.09050101786851883,
-0.05762216076254845,
-0.06063758581876755,
0.07298455387353897,
0.0135600371286273,
-4.832314104419311e-8,
0.0676269456744194,
0.018833916634321213,
0.0038777836598455906,
0.0404057577252388,
0.0185875091701746,
-0.04604810103774071,
0.07720379531383514,
-0.03260860964655876,
-0.02454761043190956,
-0.004442193545401096,
-0.04435128718614578,
0.019138025119900703,
-0.06803929805755615,
0.035392601042985916,
-0.021523339673876762,
0.11075477302074432,
0.008445176295936108,
-0.045175451785326004,
0.015554063022136688,
-0.07876933366060257,
-0.04733851179480553,
-0.03931843861937523,
0.033193714916706085,
0.004644215572625399,
-0.06512469798326492,
-0.02918579801917076,
0.024448968470096588,
-0.034855082631111145,
-0.09725304692983627,
0.03150469437241554,
0.06718137115240097,
-0.00811330322176218,
-0.06149451434612274,
0.0034249965101480484,
0.03352430835366249,
-0.06630382686853409,
-0.08495398610830307,
0.006167484447360039,
0.05690693110227585,
-0.05945178121328354,
-0.047158822417259216,
0.04900609329342842,
0.02999279275536537,
-0.06720631569623947,
-0.05821163207292557,
0.01038587000221014,
0.041226472705602646,
0.002968765562400222,
-0.049310725182294846,
0.06631308794021606,
0.09047392755746841,
-0.01629037596285343,
-0.02918318286538124,
0.09144362062215805,
0.09264044463634491,
0.059196587651968,
-0.0016349401557818055,
-0.0004988316213712096,
0.04750266671180725,
0.014314214698970318,
0.012229995802044868,
0.07932842522859573,
0.02901691012084484,
-0.04311304911971092
] | -0.032226 |
``` /usr/local/bin/gog /usr/local/bin/goplaces /usr/local/bin/wacli ``` --- ## 12) Verify Gateway ```bash docker compose logs -f openclaw-gateway ``` Success: ``` [gateway] listening on ws://0.0.0.0:18789 ``` --- ## 13) Access from your laptop Create an SSH tunnel to forward the Gateway port: ```bash gcloud compute ssh openclaw-gateway --zone=us-central1-a -- -L 18789:127.0.0.1:18789 ``` Open in your browser: `http://127.0.0.1:18789/` Paste your gateway token. --- ## What persists where (source of truth) OpenClaw runs in Docker, but Docker is not the source of truth. All long-lived state must survive restarts, rebuilds, and reboots. | Component | Location | Persistence mechanism | Notes | | ------------------- | --------------------------------- | ---------------------- | -------------------------------- | | Gateway config | `/home/node/.openclaw/` | Host volume mount | Includes `openclaw.json`, tokens | | Model auth profiles | `/home/node/.openclaw/` | Host volume mount | OAuth tokens, API keys | | Skill configs | `/home/node/.openclaw/skills/` | Host volume mount | Skill-level state | | Agent workspace | `/home/node/.openclaw/workspace/` | Host volume mount | Code and agent artifacts | | WhatsApp session | `/home/node/.openclaw/` | Host volume mount | Preserves QR login | | Gmail keyring | `/home/node/.openclaw/` | Host volume + password | Requires `GOG\_KEYRING\_PASSWORD` | | External binaries | `/usr/local/bin/` | Docker image | Must be baked at build time | | Node runtime | Container filesystem | Docker image | Rebuilt every image build | | OS packages | Container filesystem | Docker image | Do not install at runtime | | Docker container | Ephemeral | Restartable | Safe to destroy | --- ## Updates To update OpenClaw on the VM: ```bash cd ~/openclaw git pull docker compose build docker compose up -d ``` --- ## Troubleshooting \*\*SSH connection refused\*\* SSH key propagation can take 1-2 minutes after VM creation. Wait and retry. \*\*OS Login issues\*\* Check your OS Login profile: ```bash gcloud compute os-login describe-profile ``` Ensure your account has the required IAM permissions (Compute OS Login or Compute OS Admin Login). \*\*Out of memory (OOM)\*\* If using e2-micro and hitting OOM, upgrade to e2-small or e2-medium: ```bash # Stop the VM first gcloud compute instances stop openclaw-gateway --zone=us-central1-a # Change machine type gcloud compute instances set-machine-type openclaw-gateway \ --zone=us-central1-a \ --machine-type=e2-small # Start the VM gcloud compute instances start openclaw-gateway --zone=us-central1-a ``` --- ## Service accounts (security best practice) For personal use, your default user account works fine. For automation or CI/CD pipelines, create a dedicated service account with minimal permissions: 1. Create a service account: ```bash gcloud iam service-accounts create openclaw-deploy \ --display-name="OpenClaw Deployment" ``` 2. Grant Compute Instance Admin role (or narrower custom role): ```bash gcloud projects add-iam-policy-binding my-openclaw-project \ --member="serviceAccount:openclaw-deploy@my-openclaw-project.iam.gserviceaccount.com" \ --role="roles/compute.instanceAdmin.v1" ``` Avoid using the Owner role for automation. Use the principle of least privilege. See https://cloud.google.com/iam/docs/understanding-roles for IAM role details. --- ## Next steps - Set up messaging channels: [Channels](/channels) - Pair local devices as nodes: [Nodes](/nodes) - Configure the Gateway: [Gateway configuration](/gateway/configuration) | https://github.com/openclaw/openclaw/blob/main//docs/platforms/gcp.md | main | opebclaw | [
-0.013794345781207085,
0.06643610447645187,
-0.05522565543651581,
-0.020205531269311905,
-0.013640888035297394,
-0.08351477235555649,
-0.054693374782800674,
-0.05175846070051193,
0.048153966665267944,
0.004888822790235281,
0.014526416547596455,
-0.07800079882144928,
0.03774436190724373,
0.02981356903910637,
0.014936544001102448,
0.020622188225388527,
0.02096627838909626,
-0.07456530630588531,
0.026377828791737556,
-0.04684549942612648,
-0.07810502499341965,
0.08607014268636703,
0.006149786524474621,
-0.04856077954173088,
-0.06400146335363388,
-0.04812381789088249,
-0.01734839379787445,
-0.03572588786482811,
-0.015041018836200237,
0.0228124912828207,
0.03704420477151871,
0.04529017210006714,
-0.12439636141061783,
0.025320077314972878,
0.05766117572784424,
0.09623677283525467,
0.04432117938995361,
0.042205825448036194,
-0.020586799830198288,
-0.05349311977624893,
0.13047392666339874,
-0.07901600003242493,
0.033157918602228165,
-0.06931383162736893,
0.011887195520102978,
-0.003230143105611205,
-0.021515797823667526,
-0.09739769250154495,
0.04081890732049942,
0.0578424409031868,
-0.06684708595275879,
-0.07141591608524323,
-0.002595065161585808,
0.042719531804323196,
0.0002684687788132578,
0.05332550033926964,
0.013013837859034538,
0.06753163784742355,
0.05836154520511627,
-0.06892852485179901,
-0.015283819288015366,
-0.05037485435605049,
-0.04160401225090027,
0.003839171724393964,
-0.0707550123333931,
-0.06413210928440094,
-0.013670840300619602,
-0.0522775836288929,
-0.010445032268762589,
0.052160076797008514,
0.04390215501189232,
0.02329568937420845,
-0.03966493532061577,
-0.12420029938220978,
-0.033164750784635544,
0.011148542165756226,
0.015217729844152927,
0.022624507546424866,
-0.06107020750641823,
0.04922075197100639,
0.0395113006234169,
0.017738262191414833,
-0.00956545490771532,
0.05739254504442215,
-0.04260685667395592,
0.03426915034651756,
-0.014403517358005047,
-0.0016619329107925296,
0.1120821014046669,
-0.09016739577054977,
0.022596703842282295,
-0.09675944596529007,
-0.006862993817776442,
-0.0016965168761089444,
0.06178375706076622,
-0.035984911024570465,
-0.007945104502141476,
-0.0320909284055233,
-0.006002277135848999,
0.04626191034913063,
-0.04112834110856056,
-0.029041189700365067,
0.054624125361442566,
-0.037997689098119736,
0.01638837903738022,
0.06423034518957138,
-0.009096812456846237,
0.10973140597343445,
0.006772324442863464,
-0.013974604196846485,
-0.017119964584708214,
-0.03283310309052467,
0.058132972568273544,
0.02513406053185463,
-0.015496056526899338,
0.024385439231991768,
0.026003429666161537,
-0.03803464025259018,
-0.08399536460638046,
0.04360305145382881,
0.020000625401735306,
0.006334871053695679,
0.05552978813648224,
0.0038720371667295694,
-0.019459307193756104,
0.010256758891046047,
0.02832680568099022,
4.8656940116579395e-33,
0.0905013456940651,
-0.1025412529706955,
0.024063054472208023,
-0.04677349328994751,
0.18564186990261078,
-0.0008516782545484602,
0.022357961162924767,
-0.059326883405447006,
-0.01174310315400362,
0.03859525918960571,
-0.04537969082593918,
0.04426677152514458,
-0.052966032177209854,
-0.013085511513054371,
0.008985993452370167,
0.012259525246918201,
-0.03309180587530136,
-0.0005859668017365038,
0.030019519850611687,
-0.008987493813037872,
0.018020659685134888,
-0.13049809634685516,
-0.013046464882791042,
-0.0704120546579361,
0.025108616799116135,
-0.0172219630330801,
0.023699190467596054,
-0.0802227035164833,
-0.007091121282428503,
-0.015329166315495968,
0.04905274882912636,
-0.04774414375424385,
-0.047672517597675323,
-0.05932760238647461,
-0.0950937569141388,
0.0036039352416992188,
-0.12503200769424438,
-0.014058129861950874,
-0.011492959223687649,
-0.007502610329538584,
-0.011874206364154816,
-0.04959023743867874,
-0.013973399065434933,
0.03205025568604469,
0.04992397129535675,
-0.06730196624994278,
-0.02598729357123375,
0.01757478527724743,
0.05473562330007553,
0.13520468771457672,
-0.04676098749041557,
-0.05140790715813637,
-0.08555068075656891,
0.012828118167817593,
-0.09543250501155853,
0.012305626645684242,
-0.032771892845630646,
-0.011210208758711815,
0.009894246235489845,
0.02872941829264164,
-0.07966365665197372,
0.04397095367312431,
-0.02677340805530548,
0.01033258717507124,
-0.022999605163931847,
0.024726253002882004,
-0.0661126896739006,
0.08443653583526611,
-0.03306899592280388,
0.0735001415014267,
0.011044515296816826,
-0.050451554358005524,
0.061117589473724365,
0.092498280107975,
0.0274241641163826,
-0.013715337961912155,
-0.0275264922529459,
-0.02936088852584362,
0.01643526554107666,
-0.03600084036588669,
0.03545071557164192,
0.048906274139881134,
-0.1009969636797905,
0.10827314853668213,
-0.044489938765764236,
0.06465776264667511,
0.04107547178864479,
-0.06307382881641388,
-0.010303562507033348,
0.06326182931661606,
-0.045275699347257614,
0.0483446940779686,
0.048650532960891724,
-0.02801622822880745,
-0.08261959254741669,
-7.284985914582997e-33,
-0.01063187699764967,
0.00986388698220253,
0.016491809859871864,
-0.0036481546703726053,
0.08478900045156479,
-0.031136663630604744,
0.08195190131664276,
-0.00988389365375042,
-0.03962370380759239,
0.007308132015168667,
-0.024661140516400337,
0.1385144591331482,
0.06515513360500336,
0.017982985824346542,
-0.01662285625934601,
-0.04933874309062958,
0.006100931204855442,
-0.009413307532668114,
0.02278711460530758,
0.04545039311051369,
0.016894878819584846,
0.02059432677924633,
-0.011831628158688545,
-0.04955648258328438,
-0.012124077416956425,
0.03835846856236458,
0.0695384219288826,
0.011321482248604298,
-0.06738472729921341,
0.044377755373716354,
-0.03891114890575409,
0.02341337315738201,
-0.036849845200777054,
0.026557346805930138,
0.08988208323717117,
0.03794707730412483,
-0.012049478478729725,
0.07857124507427216,
-0.008853498846292496,
-0.05422889441251755,
0.032655633985996246,
-0.05041157454252243,
-0.0341995432972908,
-0.005208391696214676,
-0.020665133371949196,
0.056213147938251495,
-0.007916461676359177,
0.0058030323125422,
-0.08941204100847244,
-0.05345157906413078,
-0.014252431690692902,
0.015891095623373985,
0.02308645471930504,
0.10984434932470322,
0.054698601365089417,
0.0954563170671463,
0.02067636325955391,
-0.04693932458758354,
-0.09550002962350845,
-0.06156342476606369,
0.032677020877599716,
-0.05699616298079491,
-0.03479670733213425,
0.08259931951761246,
-0.002219845773652196,
-0.04345141351222992,
-0.0063987113535404205,
0.011331259272992611,
-0.03124983049929142,
0.002854567486792803,
-0.018515542149543762,
-0.03484448790550232,
0.07003329694271088,
0.01219021063297987,
0.017638863995671272,
-0.027216177433729172,
-0.0007481763022951782,
-0.08115403354167938,
0.012848773039877415,
-0.010694785974919796,
0.025515764951705933,
0.0011562941363081336,
-0.020645806565880775,
-0.14694024622440338,
0.06203099712729454,
-0.04116165637969971,
0.021363938227295876,
0.024771323427557945,
0.06494000554084778,
0.06692148745059967,
-0.09422016888856888,
-0.004984902683645487,
-0.049423862248659134,
0.0035651340149343014,
0.057172004133462906,
-5.5306106361285856e-8,
0.020494772121310234,
-0.0020214191172271967,
-0.019043119624257088,
0.03358171880245209,
-0.03281933069229126,
-0.03145403414964676,
0.05898485705256462,
-0.01683547906577587,
-0.084043949842453,
0.00995116587728262,
0.005443795118480921,
-0.029708068817853928,
-0.06392902880907059,
0.00806962139904499,
-0.04454463720321655,
0.08816218376159668,
0.021410992369055748,
-0.04757516086101532,
0.009432222694158554,
-0.09259364753961563,
-0.03540129214525223,
-0.01776907406747341,
0.04392256960272789,
0.013652805238962173,
-0.08341673761606216,
0.02985001914203167,
0.027017638087272644,
-0.02343747392296791,
-0.12789574265480042,
0.0029696582350879908,
-0.0024101175367832184,
0.003826512722298503,
-0.023939361795783043,
0.03923140466213226,
-0.022045191377401352,
-0.0152923334389925,
-0.07489356398582458,
0.02141829952597618,
0.013294650241732597,
0.0021621629130095243,
-0.06509803235530853,
0.053168151527643204,
0.010661963373422623,
-0.05224990472197533,
-0.017399193719029427,
0.013896514661610126,
0.012391717173159122,
0.035054076462984085,
-0.006719461642205715,
0.09782879054546356,
0.07530905306339264,
-0.026521742343902588,
0.07578622549772263,
0.04291516914963722,
0.08064921945333481,
0.04305263236165047,
-0.05322016403079033,
-0.09336979687213898,
-0.06261353939771652,
0.04926358908414841,
0.031757961958646774,
0.08776960521936417,
0.05441883206367493,
-0.06705145537853241
] | -0.04309 |
# Linux App The Gateway is fully supported on Linux. \*\*Node is the recommended runtime\*\*. Bun is not recommended for the Gateway (WhatsApp/Telegram bugs). Native Linux companion apps are planned. Contributions are welcome if you want to help build one. ## Beginner quick path (VPS) 1. Install Node 22+ 2. `npm i -g openclaw@latest` 3. `openclaw onboard --install-daemon` 4. From your laptop: `ssh -N -L 18789:127.0.0.1:18789 @` 5. Open `http://127.0.0.1:18789/` and paste your token Step-by-step VPS guide: [exe.dev](/platforms/exe-dev) ## Install - [Getting Started](/start/getting-started) - [Install & updates](/install/updating) - Optional flows: [Bun (experimental)](/install/bun), [Nix](/install/nix), [Docker](/install/docker) ## Gateway - [Gateway runbook](/gateway) - [Configuration](/gateway/configuration) ## Gateway service install (CLI) Use one of these: ``` openclaw onboard --install-daemon ``` Or: ``` openclaw gateway install ``` Or: ``` openclaw configure ``` Select \*\*Gateway service\*\* when prompted. Repair/migrate: ``` openclaw doctor ``` ## System control (systemd user unit) OpenClaw installs a systemd \*\*user\*\* service by default. Use a \*\*system\*\* service for shared or always-on servers. The full unit example and guidance live in the [Gateway runbook](/gateway). Minimal setup: Create `~/.config/systemd/user/openclaw-gateway[-].service`: ``` [Unit] Description=OpenClaw Gateway (profile: , v) After=network-online.target Wants=network-online.target [Service] ExecStart=/usr/local/bin/openclaw gateway --port 18789 Restart=always RestartSec=5 [Install] WantedBy=default.target ``` Enable it: ``` systemctl --user enable --now openclaw-gateway[-].service ``` | https://github.com/openclaw/openclaw/blob/main//docs/platforms/linux.md | main | opebclaw | [
-0.003253161208704114,
0.01808343268930912,
-0.03889692947268486,
-0.04292893409729004,
0.017117507755756378,
-0.024890340864658356,
-0.08357908576726913,
0.06629416346549988,
0.0007724366732873023,
0.09442369639873505,
0.04188555106520653,
-0.01934608817100525,
-0.009650199674069881,
0.009831864386796951,
0.11464063078165054,
0.04085187986493111,
0.05783599615097046,
-0.14304649829864502,
0.10288992524147034,
-0.034912802278995514,
-0.04103870317339897,
-0.014976049773395061,
0.033297162503004074,
-0.040483683347702026,
-0.03545660153031349,
-0.06508806347846985,
-0.017057273536920547,
0.007866374216973782,
-0.01732010208070278,
0.052700337022542953,
0.01174778863787651,
-0.0032105299178510904,
-0.07539363205432892,
0.04213789105415344,
-0.02045486867427826,
0.030886774882674217,
0.10472231358289719,
0.04163731634616852,
0.005929525010287762,
-0.00703460955992341,
0.030042054131627083,
-0.054562896490097046,
-0.04089781269431114,
-0.07263939827680588,
0.11793383210897446,
-0.029276497662067413,
-0.01907646469771862,
-0.015112295746803284,
0.02281159721314907,
-0.06736782938241959,
0.03305063024163246,
-0.03245436027646065,
0.03632678464055061,
0.005342027172446251,
-0.05506489425897598,
0.08113698661327362,
-0.024095438420772552,
0.062126386910676956,
0.03880675882101059,
-0.0522964783012867,
0.013955632224678993,
-0.05929123982787132,
-0.015540963970124722,
-0.02399630844593048,
-0.1290779709815979,
-0.0321967639029026,
-0.006853015627712011,
-0.0412871427834034,
0.0002115733950631693,
-0.007644180674105883,
-0.02498847059905529,
0.023735184222459793,
-0.05284925550222397,
-0.02876186929643154,
-0.11113223433494568,
0.010474355891346931,
0.06889074295759201,
0.03462600335478783,
-0.0929054543375969,
0.00621848413720727,
0.015494941733777523,
0.06642793864011765,
-0.09941044449806213,
0.0427851602435112,
-0.07339192926883698,
0.050167620182037354,
-0.005128361284732819,
-0.030233291909098625,
0.0044351606629788876,
-0.054309677332639694,
0.06191634386777878,
-0.10125963389873505,
-0.05411906540393829,
0.05806148797273636,
0.03254721313714981,
-0.021294675767421722,
-0.0023808067198842764,
-0.045751459896564484,
-0.03076542355120182,
0.028405530378222466,
-0.05190409719944,
-0.047007009387016296,
0.007884197868406773,
-0.06120989844202995,
0.014085670933127403,
0.10155920684337616,
0.06383604556322098,
0.055329300463199615,
0.1331532597541809,
-0.03731781989336014,
-0.08433956652879715,
-0.047724757343530655,
0.030090579763054848,
0.040822625160217285,
-0.07262306660413742,
0.018082862719893456,
-0.007610721047967672,
-0.07465140521526337,
-0.032465413212776184,
0.07602334767580032,
0.10093719512224197,
-0.032287273555994034,
-0.018181035295128822,
0.04764103889465332,
-0.07894442230463028,
0.06999097764492035,
0.111580029129982,
3.310993264784044e-33,
0.020180147141218185,
0.006287196651101112,
-0.02926703356206417,
0.013289184309542179,
0.12686216831207275,
0.03392169997096062,
0.0013930979184806347,
-0.05206398665904999,
-0.06585460901260376,
0.012825923040509224,
-0.08593980222940445,
-0.04475142061710358,
-0.005941029172390699,
-0.006860657595098019,
-0.039150260388851166,
-0.04403425008058548,
-0.019156048074364662,
0.011465406976640224,
0.09741699695587158,
-0.02996145188808441,
-0.04666627570986748,
-0.10104769468307495,
-0.006192177068442106,
-0.059842731803655624,
0.06547175347805023,
0.0448969304561615,
0.039217039942741394,
-0.0647297129034996,
0.06811018288135529,
-0.020846625789999962,
0.0170802753418684,
0.005818114150315523,
-0.05627899989485741,
-0.04127226397395134,
-0.056157082319259644,
-0.04671761766076088,
-0.07764986902475357,
-0.006695326883345842,
-0.02253103069961071,
-0.0003885125042870641,
0.011722036637365818,
0.016210010275244713,
-0.008923456072807312,
-0.050262175500392914,
0.04414641112089157,
-0.03576873615384102,
0.009155035950243473,
0.044971197843551636,
0.052077069878578186,
0.0979168713092804,
-0.11265932768583298,
-0.043974701315164566,
-0.027483593672513962,
0.013675088062882423,
-0.01833752728998661,
0.007847490720450878,
-0.022712571546435356,
-0.0350017212331295,
0.02966761402785778,
-0.02281571552157402,
-0.022979499772191048,
0.009837737306952477,
-0.02189418114721775,
-0.05955590680241585,
0.03276573494076729,
0.03392516449093819,
-0.1126706674695015,
0.06043612211942673,
-0.030227338895201683,
0.06326243281364441,
-0.04017680138349533,
0.012566205114126205,
0.034602317959070206,
0.09922380745410919,
-0.03697885572910309,
0.0005416860221885145,
-0.03596287965774536,
0.04292861744761467,
0.05078661069273949,
0.0005031712353229523,
-0.03994963318109512,
0.0326436348259449,
0.027492104098200798,
-0.00012801626871805638,
0.08487256616353989,
0.07534471154212952,
0.03458680957555771,
-0.07862995564937592,
0.00752538675442338,
0.10015027970075607,
-0.01263196486979723,
0.09744282066822052,
0.03329188749194145,
0.03629734739661217,
-0.09205671399831772,
-3.937780444295919e-33,
-0.0548812597990036,
0.04883282259106636,
-0.06533399969339371,
0.01210752036422491,
0.07095684856176376,
0.031373560428619385,
0.007144058123230934,
-0.027541037648916245,
-0.04554186016321182,
0.029844937846064568,
-0.05431558936834335,
0.06304284185171127,
0.06820663064718246,
-0.11636561900377274,
0.089784637093544,
-0.009770343080163002,
0.005343303084373474,
0.01813451759517193,
0.03217185661196709,
0.00310699176043272,
-0.07001185417175293,
0.030024854466319084,
-0.0324588343501091,
-0.016543954610824585,
0.031660739332437515,
0.03041352890431881,
0.0684722512960434,
0.06805304437875748,
-0.0754295364022255,
-0.01962588168680668,
0.023529328405857086,
-0.030700527131557465,
-0.040427520871162415,
0.04908044636249542,
0.09980388730764389,
-0.0007530446746386588,
0.05800184607505798,
0.07493647187948227,
0.07563546299934387,
-0.05840862914919853,
0.1015792042016983,
-0.06718172132968903,
-0.08538933843374252,
-0.03441048413515091,
-0.000776958535425365,
0.02330857701599598,
-0.02665468491613865,
0.015022980980575085,
-0.13854435086250305,
-0.01546299085021019,
0.00453777052462101,
-0.07080642879009247,
0.048753686249256134,
0.10938680917024612,
0.050338972359895706,
0.023066066205501556,
0.0395236536860466,
0.06417477130889893,
0.014622409828007221,
-0.0867665708065033,
0.03770820423960686,
-0.06869557499885559,
0.026905393227934837,
0.07259053736925125,
0.025599965825676918,
-0.10199662297964096,
-0.03867614269256592,
0.025477280840277672,
-0.04376596212387085,
-0.0027249620761722326,
-0.05381087586283684,
-0.02737731859087944,
0.021159177646040916,
-0.009364459663629532,
0.025560352951288223,
-0.004891539923846722,
-0.012700856663286686,
-0.08559063822031021,
-0.04783400893211365,
-0.004757723771035671,
-0.053906239569187164,
-0.0012455187970772386,
0.03101743385195732,
-0.0639544278383255,
0.012721667066216469,
0.028836185112595558,
0.022549673914909363,
0.03233831003308296,
0.023504313081502914,
0.026899738237261772,
-0.06598039716482162,
-0.030642934143543243,
0.01451899018138647,
0.035759009420871735,
0.09397030621767044,
-5.931913804602118e-8,
0.04054483771324158,
-0.034607090055942535,
-0.08084040880203247,
0.022215064615011215,
-0.06995107978582382,
-0.00565246120095253,
0.05595412477850914,
-0.06921754032373428,
-0.001737499493174255,
-0.0003261282981839031,
0.011273740790784359,
-0.07520168274641037,
-0.02726641856133938,
0.02615439146757126,
-0.04352550208568573,
0.025481654331088066,
-0.05390617251396179,
0.03662161901593208,
0.006243668030947447,
-0.004066506400704384,
0.013015219010412693,
-0.020938288420438766,
0.01128566823899746,
0.04667704924941063,
0.016798485070466995,
-0.03420771285891533,
0.04267609491944313,
0.011929314583539963,
-0.0657379999756813,
-0.03538304939866066,
-0.08627722412347794,
-0.02131032571196556,
-0.03388255089521408,
0.0329793281853199,
0.018908511847257614,
-0.0012426598696038127,
-0.05590161681175232,
0.026343250647187233,
0.02787182293832302,
0.03516918048262596,
0.060564588755369186,
0.031819988042116165,
0.027788661420345306,
-0.07538220286369324,
-0.0018192391144111753,
0.016726355999708176,
-0.010534440167248249,
0.02619452029466629,
0.03694453090429306,
0.08265130966901779,
0.07123234122991562,
0.018725374713540077,
0.038167547434568405,
0.02618373930454254,
0.03777042403817177,
0.01924549974501133,
-0.004856296814978123,
-0.024825165048241615,
-0.020032763481140137,
-0.009223808534443378,
0.03133148327469826,
0.09363453090190887,
0.02713036723434925,
-0.031087659299373627
] | 0.047345 |
# OpenClaw on Raspberry Pi ## Goal Run a persistent, always-on OpenClaw Gateway on a Raspberry Pi for \*\*~$35-80\*\* one-time cost (no monthly fees). Perfect for: - 24/7 personal AI assistant - Home automation hub - Low-power, always-available Telegram/WhatsApp bot ## Hardware Requirements | Pi Model | RAM | Works? | Notes | | --------------- | ------- | -------- | ---------------------------------- | | \*\*Pi 5\*\* | 4GB/8GB | ✅ Best | Fastest, recommended | | \*\*Pi 4\*\* | 4GB | ✅ Good | Sweet spot for most users | | \*\*Pi 4\*\* | 2GB | ✅ OK | Works, add swap | | \*\*Pi 4\*\* | 1GB | ⚠️ Tight | Possible with swap, minimal config | | \*\*Pi 3B+\*\* | 1GB | ⚠️ Slow | Works but sluggish | | \*\*Pi Zero 2 W\*\* | 512MB | ❌ | Not recommended | \*\*Minimum specs:\*\* 1GB RAM, 1 core, 500MB disk \*\*Recommended:\*\* 2GB+ RAM, 64-bit OS, 16GB+ SD card (or USB SSD) ## What You'll Need - Raspberry Pi 4 or 5 (2GB+ recommended) - MicroSD card (16GB+) or USB SSD (better performance) - Power supply (official Pi PSU recommended) - Network connection (Ethernet or WiFi) - ~30 minutes ## 1) Flash the OS Use \*\*Raspberry Pi OS Lite (64-bit)\*\* — no desktop needed for a headless server. 1. Download [Raspberry Pi Imager](https://www.raspberrypi.com/software/) 2. Choose OS: \*\*Raspberry Pi OS Lite (64-bit)\*\* 3. Click the gear icon (⚙️) to pre-configure: - Set hostname: `gateway-host` - Enable SSH - Set username/password - Configure WiFi (if not using Ethernet) 4. Flash to your SD card / USB drive 5. Insert and boot the Pi ## 2) Connect via SSH ```bash ssh user@gateway-host # or use the IP address ssh user@192.168.x.x ``` ## 3) System Setup ```bash # Update system sudo apt update && sudo apt upgrade -y # Install essential packages sudo apt install -y git curl build-essential # Set timezone (important for cron/reminders) sudo timedatectl set-timezone America/Chicago # Change to your timezone ``` ## 4) Install Node.js 22 (ARM64) ```bash # Install Node.js via NodeSource curl -fsSL https://deb.nodesource.com/setup\_22.x | sudo -E bash - sudo apt install -y nodejs # Verify node --version # Should show v22.x.x npm --version ``` ## 5) Add Swap (Important for 2GB or less) Swap prevents out-of-memory crashes: ```bash # Create 2GB swap file sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile # Make permanent echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab # Optimize for low RAM (reduce swappiness) echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf sudo sysctl -p ``` ## 6) Install OpenClaw ### Option A: Standard Install (Recommended) ```bash curl -fsSL https://openclaw.ai/install.sh | bash ``` ### Option B: Hackable Install (For tinkering) ```bash git clone https://github.com/openclaw/openclaw.git cd openclaw npm install npm run build npm link ``` The hackable install gives you direct access to logs and code — useful for debugging ARM-specific issues. ## 7) Run Onboarding ```bash openclaw onboard --install-daemon ``` Follow the wizard: 1. \*\*Gateway mode:\*\* Local 2. \*\*Auth:\*\* API keys recommended (OAuth can be finicky on headless Pi) 3. \*\*Channels:\*\* Telegram is easiest to start with 4. \*\*Daemon:\*\* Yes (systemd) ## 8) Verify Installation ```bash # Check status openclaw status # Check service sudo systemctl status openclaw # View logs journalctl -u openclaw -f ``` ## 9) Access the Dashboard Since the Pi is headless, use an SSH tunnel: ```bash # From your laptop/desktop ssh -L 18789:localhost:18789 user@gateway-host # Then open in browser open http://localhost:18789 ``` Or use Tailscale for always-on access: ```bash # On the Pi curl -fsSL https://tailscale.com/install.sh | | https://github.com/openclaw/openclaw/blob/main//docs/platforms/raspberry-pi.md | main | opebclaw | [
-0.04607901722192764,
-0.02607853151857853,
-0.011880365200340748,
0.007575467228889465,
-0.005049922503530979,
-0.012782201170921326,
-0.057025276124477386,
0.038239676505327225,
-0.057044271379709244,
0.04798942059278488,
0.02161255292594433,
0.03509459272027016,
0.032643623650074005,
-0.04021385312080383,
0.028020162135362625,
0.1398729532957077,
0.11835416406393051,
-0.12675215303897858,
-0.0006506579229608178,
-0.059491582214832306,
-0.01019517332315445,
-0.027172314003109932,
-0.013936951756477356,
-0.07734523713588715,
-0.008861253969371319,
0.018723387271165848,
0.014264498837292194,
-0.04176885634660721,
-0.057424187660217285,
-0.031838785856962204,
-0.03008321300148964,
0.007985623553395271,
-0.036003805696964264,
0.025852931663393974,
0.06211768463253975,
-0.019655345007777214,
-0.014588038437068462,
-0.012403086759150028,
0.013711542822420597,
-0.02726108580827713,
0.04351075366139412,
-0.038395583629608154,
-0.017209168523550034,
-0.016842924058437347,
0.0026869813445955515,
0.016272371634840965,
-0.038542360067367554,
-0.02935275062918663,
0.06435311585664749,
-0.02494124509394169,
-0.031218480318784714,
-0.01618655025959015,
-0.018665341660380363,
0.019931640475988388,
-0.0061382753774523735,
0.05013127997517586,
-0.0040426175110042095,
-0.017699606716632843,
0.04696979746222496,
0.00700501399114728,
0.037216152995824814,
-0.03558366373181343,
0.020469358190894127,
0.04051351547241211,
-0.08061724901199341,
-0.009678817354142666,
-0.01605517603456974,
-0.05805749446153641,
-0.014759254641830921,
0.02425481751561165,
-0.030193479731678963,
0.08950705826282501,
-0.0066764517687261105,
0.016084235161542892,
-0.07328642904758453,
-0.054286520928144455,
0.0753604844212532,
-0.058428939431905746,
-0.04273576661944389,
-0.0443861149251461,
-0.0827726200222969,
0.005616501905024052,
-0.10119572281837463,
-0.013848967850208282,
0.017843279987573624,
0.09324812144041061,
-0.022654589265584946,
0.0021183777134865522,
-0.0013044230872765183,
-0.08265608549118042,
0.03408751264214516,
-0.0305424053221941,
0.02263656072318554,
0.007664363365620375,
0.019702602177858353,
-0.020441053435206413,
0.025279106572270393,
-0.08231650292873383,
-0.12691202759742737,
0.04586678370833397,
0.010702175088226795,
-0.029090091586112976,
0.022616276517510414,
-0.05962328240275383,
-0.04173924773931503,
-0.004096821416169405,
0.03537715971469879,
0.08634194731712341,
0.0355251282453537,
0.007173169404268265,
-0.00209388742223382,
-0.04932377114892006,
0.03955988585948944,
0.01391129195690155,
0.0009848731569945812,
0.03289741650223732,
-0.061006635427474976,
-0.041074298322200775,
0.05234815180301666,
0.047675494104623795,
0.053993407636880875,
-0.01572182960808277,
0.010775004513561726,
0.010441908612847328,
-0.011214107275009155,
0.03350677713751793,
0.04331444948911667,
7.538460883857677e-34,
-0.017256874591112137,
0.020366070792078972,
-0.07209107279777527,
-0.04997556284070015,
0.04374226555228233,
0.06043922156095505,
0.01722589135169983,
0.03279249742627144,
-0.04894848167896271,
0.032565291970968246,
-0.05740273371338844,
0.02931009791791439,
-0.09114222973585129,
-0.00013927067629992962,
0.06884773075580597,
-0.055905912071466446,
0.007661408744752407,
0.04068266972899437,
0.10239695757627487,
-0.05075497925281525,
0.04503432288765907,
-0.017401978373527527,
-0.04630950465798378,
0.009822710417211056,
0.03257986903190613,
0.006455606315284967,
0.09499284625053406,
-0.09905477613210678,
0.07739312946796417,
0.022404145449399948,
-0.04666416719555855,
-0.01419601496309042,
-0.05767863988876343,
-0.0036548348143696785,
-0.021148832514882088,
-0.02121135964989662,
-0.16167812049388885,
-0.041634056717157364,
-0.052180465310811996,
-0.0044855703599750996,
-0.03250729292631149,
0.03279083967208862,
-0.02909468486905098,
-0.14140833914279938,
0.027168842032551765,
-0.0802011787891388,
-0.007609743624925613,
0.07531815767288208,
-0.03532734140753746,
0.06021159142255783,
-0.008005935698747635,
0.00478058448061347,
0.0021333058830350637,
0.08507613092660904,
-0.024311693385243416,
-0.04833826422691345,
0.0380467064678669,
-0.007964049465954304,
0.08867890387773514,
0.07683871686458588,
-0.01537181343883276,
-0.06449726969003677,
-0.021897628903388977,
0.015896452590823174,
-0.008989954367280006,
0.000023397034965455532,
0.11444452404975891,
0.020466718822717667,
-0.06423763185739517,
0.07214868068695068,
0.008696120232343674,
-0.06333144754171371,
0.03689957410097122,
0.0583435483276844,
-0.04295273497700691,
0.010310027748346329,
-0.03671272471547127,
-0.04602399468421936,
-0.07600217312574387,
-0.03738785907626152,
-0.022706951946020126,
0.01198891643434763,
-0.007433060556650162,
0.025056317448616028,
0.09137503802776337,
0.04324791207909584,
0.040355682373046875,
-0.015407057479023933,
-0.04564090818166733,
0.1537993848323822,
-0.04138878732919693,
0.023795858025550842,
0.014629082754254341,
0.011618626303970814,
-0.02237575501203537,
-2.3011863120780964e-33,
-0.07545039057731628,
0.00507105328142643,
0.0031783762387931347,
0.06762000918388367,
0.04914195090532303,
-0.032287225127220154,
0.02870260924100876,
-0.029719412326812744,
-0.037711452692747116,
0.006951868999749422,
-0.09752669185400009,
0.0019040225306525826,
0.05768149346113205,
-0.05914243683218956,
0.07300221174955368,
-0.03262706100940704,
-0.07501060515642166,
-0.09436006844043732,
0.00903791468590498,
0.06126527488231659,
-0.058222051709890366,
0.09069623798131943,
-0.06188992038369179,
-0.021963104605674744,
0.05097914859652519,
0.06637059897184372,
-0.02654443308711052,
0.04400710016489029,
-0.04848216846585274,
-0.0012757538352161646,
-0.02713083103299141,
-0.04456653073430061,
-0.025694120675325394,
0.05687423422932625,
0.04350144788622856,
0.03127719461917877,
0.07368287444114685,
0.05624820291996002,
0.024558333680033684,
0.03519746661186218,
0.12210510671138763,
-0.06936904042959213,
-0.08061463385820389,
-0.041598230600357056,
-0.02693588100373745,
0.01896391250193119,
-0.09620368480682373,
-0.015318150632083416,
-0.12328711152076721,
0.05315976217389107,
-0.036187544465065,
-0.007420775480568409,
-0.014599833637475967,
0.010347886011004448,
-0.012392706237733364,
-0.047937460243701935,
0.05738433077931404,
0.05382261425256729,
-0.02197130210697651,
-0.06206074729561806,
0.0585479773581028,
-0.09579108655452728,
0.022734614089131355,
0.08415177464485168,
0.002029945608228445,
-0.02594674937427044,
0.07583405077457428,
0.04652906954288483,
-0.12246578186750412,
-0.015297231264412403,
-0.029285728931427002,
-0.033938515931367874,
0.06385686993598938,
-0.008998050354421139,
-0.018850961700081825,
0.03139127418398857,
0.00610011862590909,
-0.03952899947762489,
0.0024761708918958902,
-0.024782605469226837,
-0.11348631232976913,
-0.0003652617451734841,
0.05342112109065056,
-0.03456468507647514,
-0.0480697825551033,
-0.019604921340942383,
-0.011624796316027641,
0.029988152906298637,
0.0377713218331337,
0.06377416849136353,
-0.10691551864147186,
-0.0017446923302486539,
-0.01362492423504591,
0.004974230658262968,
-0.03037598729133606,
-5.466165831080616e-8,
-0.023805471137166023,
0.0029400652274489403,
0.019901791587471962,
0.06644453853368759,
-0.018875950947403908,
-0.11707727611064911,
0.03731074929237366,
0.022017324343323708,
0.036305878311395645,
0.03921051695942879,
0.1041579470038414,
-0.08125380426645279,
-0.054441504180431366,
0.03813578560948372,
-0.010586126707494259,
0.07229989022016525,
0.008204787969589233,
-0.04147891700267792,
0.03843763843178749,
-0.0282182227820158,
0.026510657742619514,
0.014779184013605118,
0.005696090403944254,
-0.006511487532407045,
-0.025722984224557877,
-0.05424201861023903,
0.028101304545998573,
0.08600626140832901,
-0.0505753755569458,
0.004279648885130882,
-0.026254918426275253,
-0.043737899512052536,
0.07036632299423218,
-0.050393689423799515,
-0.0020929360762238503,
0.016632743179798126,
-0.03228415548801422,
0.0002854647464118898,
0.005543663632124662,
0.038183316588401794,
0.06162695959210396,
0.024679383262991905,
-0.07157587260007858,
-0.08437962085008621,
-0.0010622611735016108,
-0.06806323677301407,
-0.08197586983442307,
-0.1108868196606636,
0.04365487024188042,
0.09644114971160889,
-0.08043785393238068,
-0.021320320665836334,
0.07300065457820892,
0.04834281653165817,
0.12426861375570297,
0.016712063923478127,
0.06057218089699745,
-0.03871897608041763,
0.038219816982746124,
0.12021590024232864,
0.01692647486925125,
0.05291690304875374,
0.008600568398833275,
0.004631310235708952
] | 0.126014 |
-u openclaw -f ``` ## 9) Access the Dashboard Since the Pi is headless, use an SSH tunnel: ```bash # From your laptop/desktop ssh -L 18789:localhost:18789 user@gateway-host # Then open in browser open http://localhost:18789 ``` Or use Tailscale for always-on access: ```bash # On the Pi curl -fsSL https://tailscale.com/install.sh | sh sudo tailscale up # Update config openclaw config set gateway.bind tailnet sudo systemctl restart openclaw ``` --- ## Performance Optimizations ### Use a USB SSD (Huge Improvement) SD cards are slow and wear out. A USB SSD dramatically improves performance: ```bash # Check if booting from USB lsblk ``` See [Pi USB boot guide](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#usb-mass-storage-boot) for setup. ### Reduce Memory Usage ```bash # Disable GPU memory allocation (headless) echo 'gpu\_mem=16' | sudo tee -a /boot/config.txt # Disable Bluetooth if not needed sudo systemctl disable bluetooth ``` ### Monitor Resources ```bash # Check memory free -h # Check CPU temperature vcgencmd measure\_temp # Live monitoring htop ``` --- ## ARM-Specific Notes ### Binary Compatibility Most OpenClaw features work on ARM64, but some external binaries may need ARM builds: | Tool | ARM64 Status | Notes | | ------------------ | ------------ | ----------------------------------- | | Node.js | ✅ | Works great | | WhatsApp (Baileys) | ✅ | Pure JS, no issues | | Telegram | ✅ | Pure JS, no issues | | gog (Gmail CLI) | ⚠️ | Check for ARM release | | Chromium (browser) | ✅ | `sudo apt install chromium-browser` | If a skill fails, check if its binary has an ARM build. Many Go/Rust tools do; some don't. ### 32-bit vs 64-bit \*\*Always use 64-bit OS.\*\* Node.js and many modern tools require it. Check with: ```bash uname -m # Should show: aarch64 (64-bit) not armv7l (32-bit) ``` --- ## Recommended Model Setup Since the Pi is just the Gateway (models run in the cloud), use API-based models: ```json { "agents": { "defaults": { "model": { "primary": "anthropic/claude-sonnet-4-20250514", "fallbacks": ["openai/gpt-4o-mini"] } } } } ``` \*\*Don't try to run local LLMs on a Pi\*\* — even small models are too slow. Let Claude/GPT do the heavy lifting. --- ## Auto-Start on Boot The onboarding wizard sets this up, but to verify: ```bash # Check service is enabled sudo systemctl is-enabled openclaw # Enable if not sudo systemctl enable openclaw # Start on boot sudo systemctl start openclaw ``` --- ## Troubleshooting ### Out of Memory (OOM) ```bash # Check memory free -h # Add more swap (see Step 5) # Or reduce services running on the Pi ``` ### Slow Performance - Use USB SSD instead of SD card - Disable unused services: `sudo systemctl disable cups bluetooth avahi-daemon` - Check CPU throttling: `vcgencmd get\_throttled` (should return `0x0`) ### Service Won't Start ```bash # Check logs journalctl -u openclaw --no-pager -n 100 # Common fix: rebuild cd ~/openclaw # if using hackable install npm run build sudo systemctl restart openclaw ``` ### ARM Binary Issues If a skill fails with "exec format error": 1. Check if the binary has an ARM64 build 2. Try building from source 3. Or use a Docker container with ARM support ### WiFi Drops For headless Pis on WiFi: ```bash # Disable WiFi power management sudo iwconfig wlan0 power off # Make permanent echo 'wireless-power off' | sudo tee -a /etc/network/interfaces ``` --- ## Cost Comparison | Setup | One-Time Cost | Monthly Cost | Notes | | -------------- | ------------- | ------------ | ------------------------- | | \*\*Pi 4 (2GB)\*\* | ~$45 | $0 | + power (~$5/yr) | | \*\*Pi 4 (4GB)\*\* | ~$55 | $0 | Recommended | | \*\*Pi | https://github.com/openclaw/openclaw/blob/main//docs/platforms/raspberry-pi.md | main | opebclaw | [
0.036497436463832855,
0.041795484721660614,
-0.03688250854611397,
0.020415863022208214,
0.02267049252986908,
-0.028577979654073715,
-0.13000911474227905,
0.07144774496555328,
-0.03221799433231354,
-0.007419611793011427,
0.04180877283215523,
0.007795526180416346,
0.02443852461874485,
0.0025637235958129168,
0.03709227964282036,
0.04192076250910759,
0.1077360287308693,
-0.047920793294906616,
0.04189137741923332,
-0.04141916334629059,
-0.025201667100191116,
-0.029872510582208633,
-0.011491511017084122,
-0.09561027586460114,
-0.049974992871284485,
-0.06872044503688812,
-0.03513234481215477,
-0.06862107664346695,
-0.05432727187871933,
-0.014686405658721924,
0.044186219573020935,
-0.009879122488200665,
-0.062338270246982574,
0.01165807992219925,
0.019865835085511208,
0.01403836254030466,
0.09828434884548187,
-0.0011041371617466211,
-0.03839629516005516,
-0.025712287053465843,
0.09837744385004044,
-0.018183499574661255,
0.023219937458634377,
-0.0709754079580307,
0.025894733145833015,
-0.030822964385151863,
-0.00012182598584331572,
-0.054533228278160095,
0.06288610398769379,
-0.03014918603003025,
-0.049816571176052094,
0.015236643142998219,
0.0014888719888404012,
-0.04952731728553772,
-0.028442872688174248,
0.03140386939048767,
0.07857654988765717,
-0.03860186040401459,
0.05110529065132141,
-0.041271161288022995,
0.08868511021137238,
-0.021534694358706474,
-0.011847438290715218,
0.032475315034389496,
-0.09971053153276443,
-0.054447222501039505,
-0.002389684086665511,
-0.06733351200819016,
-0.008078533224761486,
0.09155286103487015,
0.022746168076992035,
0.04837470501661301,
-0.06066935881972313,
-0.006932787597179413,
-0.05171426758170128,
-0.023131035268306732,
0.07757227122783661,
0.007572161499410868,
-0.03574437275528908,
0.012448368594050407,
-0.10707779973745346,
-0.018869835883378983,
-0.06610111892223358,
0.02798890881240368,
-0.028508149087429047,
0.10304524004459381,
0.0019891441334038973,
0.03459903597831726,
-0.034957535564899445,
-0.0651496946811676,
0.05395311117172241,
-0.0034989318810403347,
-0.07994528859853745,
-0.025306792929768562,
-0.01585693098604679,
-0.017974017187952995,
0.029369113966822624,
0.015191812999546528,
-0.10685571283102036,
0.04775698482990265,
-0.030247202143073082,
0.04013311117887497,
0.04608192667365074,
-0.013487518765032291,
-0.08080528676509857,
0.06997843086719513,
0.0548190101981163,
0.09944983571767807,
-0.054207757115364075,
-0.04754193499684334,
0.05365587770938873,
-0.021069422364234924,
0.03051973506808281,
0.09431347995996475,
-0.03708985075354576,
0.028363652527332306,
-0.07258877158164978,
-0.005551064852625132,
0.003316145855933428,
0.10174762457609177,
0.08988431841135025,
0.04820710048079491,
0.007277249824255705,
-0.003355617867782712,
0.08193306624889374,
0.08082816749811172,
0.07108546793460846,
9.318594080241432e-33,
0.0964391753077507,
-0.01878962479531765,
-0.047566138207912445,
-0.08091221004724503,
0.12761247158050537,
0.02188863232731819,
0.05478598549962044,
-0.05349100008606911,
-0.030331095680594444,
0.0806828960776329,
-0.0329032838344574,
0.04371913522481918,
-0.027216153219342232,
-0.04949629679322243,
0.01582472398877144,
-0.054059866815805435,
-0.0043030777014791965,
0.020053274929523468,
0.092774897813797,
-0.06508751958608627,
0.07614285498857498,
-0.11005571484565735,
-0.03980033099651337,
-0.07772917300462723,
0.08066485077142715,
-0.010095576755702496,
-0.002065653447061777,
-0.026533296331763268,
0.035847242921590805,
0.03921026736497879,
0.020862391218543053,
0.009563443250954151,
-0.06445091962814331,
-0.06430096179246902,
-0.06275917589664459,
-0.08819147944450378,
-0.11218926310539246,
-0.026156334206461906,
-0.010465390048921108,
-0.021438969299197197,
0.02670484408736229,
0.012364951893687248,
-0.05049145221710205,
-0.007050528656691313,
-0.07207444310188293,
-0.041119497269392014,
-0.035853590816259384,
0.08989128470420837,
0.030484618619084358,
0.04517212137579918,
-0.049643583595752716,
-0.05400731787085533,
0.036567434668540955,
-0.018139230087399483,
-0.01638175919651985,
-0.011020774021744728,
0.007678143214434385,
-0.03360158950090408,
0.004230461549013853,
0.029719308018684387,
-0.005467209033668041,
0.0210821945220232,
-0.010535943321883678,
0.003965070471167564,
0.010243060998618603,
-0.07174976915121078,
0.03264741599559784,
0.09939554333686829,
-0.048983875662088394,
0.0036405359860509634,
-0.018939903005957603,
-0.04884256049990654,
0.07824662327766418,
0.042304664850234985,
0.03405562788248062,
-0.04871371388435364,
-0.008247251622378826,
-0.02964075654745102,
-0.014427058398723602,
-0.029990239068865776,
-0.027831392362713814,
0.030822930857539177,
-0.015841154381632805,
0.0024247753899544477,
0.07782351970672607,
0.07205348461866379,
-0.011250020004808903,
0.000592817144934088,
0.0021949419751763344,
0.07858829945325851,
-0.06916184723377228,
0.015137200243771076,
0.03573660925030708,
0.0028202671092003584,
-0.05685044080018997,
-9.075064711529671e-33,
-0.041344184428453445,
-0.016934994608163834,
0.06646141409873962,
0.011307182721793652,
0.04371778666973114,
0.032097697257995605,
0.013701033778488636,
-0.02939690835773945,
-0.06285092234611511,
-0.08328627049922943,
-0.06631843000650406,
0.06389673054218292,
0.002852044301107526,
-0.09315115958452225,
0.0362955741584301,
-0.0400179922580719,
0.00262563768774271,
-0.06784793734550476,
0.00800508912652731,
0.0018277171766385436,
-0.12203158438205719,
0.07114042341709137,
0.0022248257882893085,
-0.003447071649134159,
0.015423847362399101,
0.050072114914655685,
0.06029872968792915,
0.037642039358615875,
-0.09243353456258774,
-0.0016282324213534594,
0.008445239625871181,
0.03381281718611717,
0.012572339735925198,
0.0020896818023175,
0.030183425173163414,
0.07896485924720764,
0.03833772987127304,
0.014903607778251171,
0.046820707619190216,
0.012876870110630989,
0.0799124538898468,
-0.045857448130846024,
-0.036025479435920715,
-0.02790794149041176,
0.005361895076930523,
0.02352658286690712,
-0.06174818426370621,
-0.06920091062784195,
-0.08272507041692734,
0.056235507130622864,
-0.01121434848755598,
-0.005120889749377966,
0.0032585833687335253,
0.0694463849067688,
0.026792462915182114,
0.020023468881845474,
0.010184009559452534,
-0.05539364740252495,
-0.024984795600175858,
-0.08968033641576767,
-0.00529908575117588,
-0.037752315402030945,
-0.06415220350027084,
0.11912600696086884,
-0.020661503076553345,
-0.06511451303958893,
-0.02727437950670719,
0.06630262732505798,
-0.057776179164648056,
-0.02472231537103653,
-0.0866403728723526,
0.00493097398430109,
0.07680734992027283,
0.019112013280391693,
0.008358084596693516,
-0.0022627231664955616,
0.059097353368997574,
-0.010288942605257034,
-0.01364143192768097,
0.04623265936970711,
-0.007919713854789734,
0.014612270519137383,
-0.07830645143985748,
-0.07857851684093475,
-0.009295252151787281,
-0.011339747346937656,
-0.0769491121172905,
0.08250846713781357,
0.10183848440647125,
0.05092822015285492,
-0.12319585680961609,
-0.014718042686581612,
-0.02597799152135849,
0.020512834191322327,
0.06694525480270386,
-5.5515155139573835e-8,
0.01961517333984375,
-0.016040988266468048,
0.03678152710199356,
0.11804751306772232,
-0.029015982523560524,
-0.02383553795516491,
0.0035988863091915846,
0.046331025660037994,
-0.04371445253491402,
0.01756272464990616,
0.0714869573712349,
0.01456143707036972,
-0.040841054171323776,
0.004397081211209297,
-0.06060641258955002,
0.09847316890954971,
0.04681847244501114,
0.01969568245112896,
0.03519253060221672,
-0.06374029815196991,
-0.005028798244893551,
-0.04084936901926994,
0.039695855230093,
0.042515598237514496,
0.0057192579843103886,
-0.03166227415204048,
0.015464638359844685,
-0.0362737812101841,
-0.07099168002605438,
-0.013107006438076496,
-0.11065983772277832,
-0.04450325295329094,
0.02506554126739502,
0.016046540811657906,
0.05920516327023506,
-0.0036966167390346527,
-0.05779416486620903,
0.062132421880960464,
0.08024255931377411,
0.03248193487524986,
0.025020111352205276,
0.08344705402851105,
-0.04529350996017456,
-0.07046087831258774,
-0.06523112207651138,
0.004093925002962351,
-0.09108449518680573,
0.07774399220943451,
-0.011595511808991432,
0.025961430743336678,
-0.02073960192501545,
-0.0636197030544281,
0.021824944764375687,
0.05247262120246887,
0.03442957624793053,
0.07481525838375092,
0.013601317070424557,
-0.07127238810062408,
-0.013322032988071442,
0.07034114003181458,
0.040151797235012054,
-0.002552721183747053,
0.012585040181875229,
-0.025617463514208794
] | 0.018635 |
--- ## Cost Comparison | Setup | One-Time Cost | Monthly Cost | Notes | | -------------- | ------------- | ------------ | ------------------------- | | \*\*Pi 4 (2GB)\*\* | ~$45 | $0 | + power (~$5/yr) | | \*\*Pi 4 (4GB)\*\* | ~$55 | $0 | Recommended | | \*\*Pi 5 (4GB)\*\* | ~$60 | $0 | Best performance | | \*\*Pi 5 (8GB)\*\* | ~$80 | $0 | Overkill but future-proof | | DigitalOcean | $0 | $6/mo | $72/year | | Hetzner | $0 | €3.79/mo | ~$50/year | \*\*Break-even:\*\* A Pi pays for itself in ~6-12 months vs cloud VPS. --- ## See Also - [Linux guide](/platforms/linux) — general Linux setup - [DigitalOcean guide](/platforms/digitalocean) — cloud alternative - [Hetzner guide](/platforms/hetzner) — Docker setup - [Tailscale](/gateway/tailscale) — remote access - [Nodes](/nodes) — pair your laptop/phone with the Pi gateway | https://github.com/openclaw/openclaw/blob/main//docs/platforms/raspberry-pi.md | main | opebclaw | [
-0.007634484209120274,
0.04375380277633667,
-0.07529084384441376,
0.014973371289670467,
-0.03652096539735794,
-0.07662729173898697,
-0.08810360729694366,
0.06971574574708939,
-0.11383584886789322,
0.04491206631064415,
0.0029103332199156284,
-0.10139572620391846,
0.05752319097518921,
0.03565870225429535,
-0.029452001675963402,
0.020311430096626282,
0.02934993989765644,
-0.05238698795437813,
-0.005183725617825985,
-0.007864061743021011,
0.03155206888914108,
-0.11714783310890198,
-0.04158275946974754,
-0.08569945394992828,
0.059564508497714996,
0.03553757071495056,
0.007493137381970882,
0.023474164307117462,
-0.01211836189031601,
0.021776458248496056,
-0.10593166202306747,
0.0849207267165184,
-0.023491594940423965,
-0.05341681092977524,
0.08539100736379623,
-0.021270234137773514,
0.030019612982869148,
0.019635524600744247,
-0.04606732726097107,
0.012577221728861332,
-0.05177823081612587,
-0.03485716134309769,
-0.019794676452875137,
0.03358462080359459,
-0.0604671984910965,
0.0341573990881443,
-0.02330315299332142,
0.10431572049856186,
0.0007709019118919969,
-0.015318034216761589,
-0.021435540169477463,
-0.01719369739294052,
-0.05828148499131203,
-0.027701187878847122,
-0.04560508951544762,
-0.0027994727715849876,
0.02100677601993084,
0.01530028972774744,
0.014017305336892605,
-0.0042755794711411,
-0.03438544645905495,
-0.07448502629995346,
-0.07209649682044983,
-0.008003240451216698,
0.022054489701986313,
0.028244629502296448,
-0.035894375294446945,
0.01860085129737854,
-0.11590759456157684,
0.04010618478059769,
-0.02692863531410694,
-0.05351293459534645,
-0.0004934162134304643,
-0.028699859976768494,
0.006501196417957544,
0.01790427416563034,
0.14530694484710693,
-0.014064036309719086,
-0.027786897495388985,
-0.048118893057107925,
-0.0037111975252628326,
0.0045631276443600655,
-0.09080789238214493,
-0.05250271409749985,
0.028741106390953064,
0.0045247250236570835,
0.04033804312348366,
0.0105323176831007,
0.09488913416862488,
-0.13191409409046173,
0.07451507449150085,
0.03237304836511612,
-0.006589499767869711,
0.0011061400873586535,
0.05551120266318321,
0.052120525389909744,
-0.01010374166071415,
-0.010048259049654007,
-0.004069567192345858,
0.0008276115986518562,
0.08590875566005707,
-0.053980544209480286,
0.05415286496281624,
-0.11514430493116379,
-0.026563014835119247,
-0.005281803198158741,
0.02381727285683155,
0.0837801918387413,
0.02459924854338169,
-0.019781289622187614,
-0.06457975506782532,
-0.020888008177280426,
-0.004307364113628864,
-0.030837014317512512,
-0.001815054565668106,
0.01821592077612877,
0.0011047167936339974,
-0.0334027074277401,
0.08643655478954315,
0.005105199757963419,
0.0299863051623106,
-0.056599173694849014,
0.03973307088017464,
0.053608883172273636,
-0.05937274917960167,
-0.04323376715183258,
-0.008074566721916199,
-4.335558549064565e-33,
-0.09377017617225647,
0.060162968933582306,
-0.05140916258096695,
-0.09071332961320877,
-0.03231343999505043,
0.07276306301355362,
-0.006572830490767956,
0.061232782900333405,
-0.010003705509006977,
0.03281725198030472,
0.026658326387405396,
0.06874863058328629,
-0.06185577064752579,
0.04257536306977272,
0.1418071985244751,
-0.05563582852482796,
0.06983061879873276,
0.004290895536541939,
0.047636911273002625,
0.02772538550198078,
0.010953281074762344,
-0.032354094088077545,
0.020426427945494652,
-0.021152697503566742,
0.07961950451135635,
-0.03748574107885361,
0.08156564086675644,
-0.03770994022488594,
0.08162784576416016,
-0.008032407611608505,
-0.01539190299808979,
-0.05121617764234543,
-0.004808335565030575,
-0.04127044975757599,
-0.03502870351076126,
0.024597786366939545,
-0.03700437769293785,
-0.019698666408658028,
-0.05138933286070824,
-0.013739638961851597,
-0.10353686660528183,
0.02507423609495163,
-0.003706469899043441,
0.02559354528784752,
0.02688206173479557,
0.03447922691702843,
0.050479400902986526,
0.009690982289612293,
0.02444702759385109,
-0.026783742010593414,
-0.08505438268184662,
-0.008453373797237873,
-0.11800607293844223,
0.019093167036771774,
0.01833040453493595,
-0.014773422852158546,
0.05162721499800682,
-0.0099202124401927,
0.04993745684623718,
0.06597836315631866,
-0.10072506964206696,
-0.017520038411021233,
0.013739471323788166,
-0.03831429034471512,
-0.0545964278280735,
0.04559396207332611,
0.0027190805412828922,
-0.006795793306082487,
-0.0023400296922773123,
0.022534498944878578,
-0.07395020872354507,
-0.075337715446949,
0.09395905584096909,
0.030806154012680054,
0.09004316478967667,
0.044272881001234055,
0.0032314308919012547,
0.027379095554351807,
-0.03437816724181175,
-0.0315740630030632,
-0.09066419303417206,
0.05172405764460564,
-0.01932666078209877,
0.028965912759304047,
0.01314394548535347,
0.03138317912817001,
0.04338313639163971,
0.07315220683813095,
-0.06479299068450928,
0.010691635310649872,
-0.02733352594077587,
0.01372604165226221,
-0.013241385109722614,
-0.05392952263355255,
0.05628320947289467,
9.448373799359997e-34,
-0.05959736555814743,
0.053271811455488205,
0.04901149123907089,
0.10959375649690628,
0.04953047260642052,
-0.039694976061582565,
-0.021699486300349236,
-0.01735484041273594,
0.05852106213569641,
-0.014626487158238888,
-0.10189331322908401,
0.0011127071920782328,
0.04074297845363617,
0.0027067814953625202,
-0.09371734410524368,
0.02438339963555336,
-0.04763328656554222,
-0.04892585426568985,
0.04433443769812584,
0.013411512598395348,
-0.08656652271747589,
0.13095341622829437,
-0.04032977670431137,
0.011003552936017513,
-0.021085679531097412,
0.07073219120502472,
-0.03983656316995621,
-0.05676930397748947,
0.003246715059503913,
0.052448537200689316,
-0.07688859105110168,
-0.04812125116586685,
0.0031964676454663277,
0.02104252204298973,
-0.05673874542117119,
-0.0013202291447669268,
0.05635194107890129,
0.052392952144145966,
-0.012628603726625443,
0.06695306301116943,
0.04384509474039078,
-0.06889331340789795,
-0.009404674172401428,
-0.05595181882381439,
-0.009876991622149944,
-0.03393581137061119,
-0.018846435472369194,
-0.047683510929346085,
0.00015413151413667947,
0.013857989571988583,
0.06373067200183868,
0.017101144418120384,
-0.045700110495090485,
-0.01802230067551136,
-0.03984809294342995,
-0.06343787163496017,
0.04894986376166344,
0.05141302943229675,
-0.059362754225730896,
-0.04285544529557228,
0.05513837933540344,
0.013655257411301136,
0.02092858776450157,
0.09810469299554825,
-0.015188653953373432,
-0.028066975995898247,
0.09541302919387817,
0.0031046986114233732,
0.013613451272249222,
-0.00901665911078453,
-0.013140915893018246,
0.04261499270796776,
0.012965355068445206,
-0.03738560155034065,
-0.009274348616600037,
0.07546471804380417,
0.04646163806319237,
0.06558996438980103,
0.08607114851474762,
0.07212797552347183,
-0.10672733932733536,
0.0483575277030468,
0.06269621104001999,
0.0059543270617723465,
-0.057214219123125076,
-0.03985525295138359,
0.008031035773456097,
-0.06504660099744797,
-0.005345878191292286,
0.028134522959589958,
-0.08374347537755966,
-0.011938204988837242,
0.01866685226559639,
-0.0015587590169161558,
-0.017381828278303146,
-5.120795520952015e-8,
0.010964499786496162,
0.010923678055405617,
0.012936372309923172,
0.03601294010877609,
-0.00471829017624259,
-0.10099227726459503,
0.01676310785114765,
0.03248309716582298,
0.00005159736247151159,
0.04747643321752548,
0.05914497748017311,
-0.053978871554136276,
-0.022945167496800423,
-0.018651308491826057,
-0.08852295577526093,
0.00010196087532676756,
-0.006381617859005928,
0.07613623887300491,
-0.0008116341778077185,
0.007342595141381025,
0.051136329770088196,
0.06683684140443802,
-0.028644375503063202,
-0.03671065345406532,
0.0033318623900413513,
0.03572963550686836,
0.008362766355276108,
0.06982556730508804,
0.005810218397527933,
0.015468436293303967,
0.014407504349946976,
-0.07185044139623642,
0.021776635199785233,
-0.0534367561340332,
-0.00628794776275754,
-0.073870450258255,
-0.10425575077533722,
0.03153907507658005,
0.03002842515707016,
0.044111426919698715,
0.010720042511820793,
0.0032611272763460875,
-0.05764605477452278,
0.006793090142309666,
0.07483293861150742,
-0.06700167804956436,
-0.10504232347011566,
-0.12180737406015396,
0.05260470509529114,
0.04642397537827492,
-0.05170238018035889,
0.05086120218038559,
0.03297978267073631,
0.01346305850893259,
0.11930191516876221,
-0.006732272449880838,
-0.014936148189008236,
0.03997902199625969,
-0.07387635856866837,
0.12850776314735413,
-0.009279227815568447,
-0.08523852378129959,
-0.021921325474977493,
0.03434113785624504
] | 0.041923 |
# OpenClaw macOS Companion (menu bar + gateway broker) The macOS app is the \*\*menu‑bar companion\*\* for OpenClaw. It owns permissions, manages/attaches to the Gateway locally (launchd or manual), and exposes macOS capabilities to the agent as a node. ## What it does - Shows native notifications and status in the menu bar. - Owns TCC prompts (Notifications, Accessibility, Screen Recording, Microphone, Speech Recognition, Automation/AppleScript). - Runs or connects to the Gateway (local or remote). - Exposes macOS‑only tools (Canvas, Camera, Screen Recording, `system.run`). - Starts the local node host service in \*\*remote\*\* mode (launchd), and stops it in \*\*local\*\* mode. - Optionally hosts \*\*PeekabooBridge\*\* for UI automation. - Installs the global CLI (`openclaw`) via npm/pnpm on request (bun not recommended for the Gateway runtime). ## Local vs remote mode - \*\*Local\*\* (default): the app attaches to a running local Gateway if present; otherwise it enables the launchd service via `openclaw gateway install`. - \*\*Remote\*\*: the app connects to a Gateway over SSH/Tailscale and never starts a local process. The app starts the local \*\*node host service\*\* so the remote Gateway can reach this Mac. The app does not spawn the Gateway as a child process. ## Launchd control The app manages a per‑user LaunchAgent labeled `bot.molt.gateway` (or `bot.molt.` when using `--profile`/`OPENCLAW\_PROFILE`; legacy `com.openclaw.\*` still unloads). ```bash launchctl kickstart -k gui/$UID/bot.molt.gateway launchctl bootout gui/$UID/bot.molt.gateway ``` Replace the label with `bot.molt.` when running a named profile. If the LaunchAgent isn’t installed, enable it from the app or run `openclaw gateway install`. ## Node capabilities (mac) The macOS app presents itself as a node. Common commands: - Canvas: `canvas.present`, `canvas.navigate`, `canvas.eval`, `canvas.snapshot`, `canvas.a2ui.\*` - Camera: `camera.snap`, `camera.clip` - Screen: `screen.record` - System: `system.run`, `system.notify` The node reports a `permissions` map so agents can decide what’s allowed. Node service + app IPC: - When the headless node host service is running (remote mode), it connects to the Gateway WS as a node. - `system.run` executes in the macOS app (UI/TCC context) over a local Unix socket; prompts + output stay in-app. Diagram (SCI): ``` Gateway -> Node Service (WS) | IPC (UDS + token + HMAC + TTL) v Mac App (UI + TCC + system.run) ``` ## Exec approvals (system.run) `system.run` is controlled by \*\*Exec approvals\*\* in the macOS app (Settings → Exec approvals). Security + ask + allowlist are stored locally on the Mac in: ``` ~/.openclaw/exec-approvals.json ``` Example: ```json { "version": 1, "defaults": { "security": "deny", "ask": "on-miss" }, "agents": { "main": { "security": "allowlist", "ask": "on-miss", "allowlist": [{ "pattern": "/opt/homebrew/bin/rg" }] } } } ``` Notes: - `allowlist` entries are glob patterns for resolved binary paths. - Choosing “Always Allow” in the prompt adds that command to the allowlist. - `system.run` environment overrides are filtered (drops `PATH`, `DYLD\_\*`, `LD\_\*`, `NODE\_OPTIONS`, `PYTHON\*`, `PERL\*`, `RUBYOPT`) and then merged with the app’s environment. ## Deep links The app registers the `openclaw://` URL scheme for local actions. ### `openclaw://agent` Triggers a Gateway `agent` request. ```bash open 'openclaw://agent?message=Hello%20from%20deep%20link' ``` Query parameters: - `message` (required) - `sessionKey` (optional) - `thinking` (optional) - `deliver` / `to` / `channel` (optional) - `timeoutSeconds` (optional) - `key` (optional unattended mode key) Safety: - Without `key`, the app prompts for confirmation. - With a valid `key`, the run is unattended (intended for personal automations). ## Onboarding flow (typical) 1. Install and launch \*\*OpenClaw.app\*\*. 2. Complete the permissions checklist (TCC prompts). 3. Ensure \*\*Local\*\* mode is active and the Gateway is running. 4. Install the CLI if you want terminal access. ## Build & dev workflow (native) - `cd apps/macos && swift build` - `swift run OpenClaw` (or Xcode) - Package | https://github.com/openclaw/openclaw/blob/main//docs/platforms/macos.md | main | opebclaw | [
-0.009136524051427841,
-0.032271429896354675,
-0.04277964308857918,
-0.01815333217382431,
0.022607702761888504,
-0.07068145275115967,
-0.020129932090640068,
-0.004885321948677301,
0.006740709766745567,
0.007413049694150686,
0.002680713078007102,
-0.035347968339920044,
0.022877104580402374,
-0.01087030116468668,
0.09417449682950974,
0.03490699827671051,
0.15684150159358978,
-0.04654046148061752,
0.07050596922636032,
-0.023465842008590698,
-0.02734445221722126,
-0.010085862129926682,
-0.014275344088673592,
0.007281049154698849,
-0.10279376059770584,
-0.06233527138829231,
0.0698046162724495,
-0.03396602347493172,
-0.04107862710952759,
0.024953346699476242,
0.02272593230009079,
0.0014624856412410736,
0.0046313004568219185,
0.004082392435520887,
-0.005467292852699757,
0.0010291138896718621,
0.13012750446796417,
-0.005673338193446398,
-0.15739960968494415,
-0.07596557587385178,
0.08160122483968735,
0.0028290499467402697,
0.016646992415189743,
-0.01042882539331913,
0.015123571269214153,
-0.058149997144937515,
-0.03674517199397087,
-0.06582783907651901,
0.04053691774606705,
-0.008988353423774242,
-0.028738144785165787,
-0.10462071001529694,
0.01536383107304573,
0.024451427161693573,
0.01949327625334263,
0.05995819717645645,
-0.012521830387413502,
-0.05058936029672623,
0.04279635474085808,
0.006412720773369074,
-0.0496990792453289,
-0.041941531002521515,
-0.03496447205543518,
0.07877935469150543,
-0.043075572699308395,
0.03368519991636276,
-0.02908744476735592,
0.006519533693790436,
-0.016760630533099174,
-0.08434679359197617,
0.0086708078160882,
-0.0311517845839262,
0.049037136137485504,
-0.04310742765665054,
-0.05275614187121391,
-0.06282384693622589,
0.04845162108540535,
-0.016476834192872047,
-0.04506991431117058,
-0.08367626368999481,
0.00311657483689487,
0.03471176326274872,
-0.07231973856687546,
0.06424129009246826,
-0.023166881874203682,
0.09275370836257935,
-0.016971522942185402,
-0.0004234885855112225,
0.019498351961374283,
0.11472613364458084,
-0.03350329399108887,
-0.07514356076717377,
-0.07113322615623474,
-0.05959993228316307,
-0.0027887914329767227,
-0.029280342161655426,
-0.027301780879497528,
-0.04726021736860275,
-0.03696223720908165,
0.06071154400706291,
-0.04536856338381767,
-0.010285125114023685,
0.053217966109514236,
0.0052834004163742065,
-0.008236274123191833,
0.06318362057209015,
0.016219545155763626,
0.053065478801727295,
0.08943755179643631,
0.04534197598695755,
-0.06687024980783463,
-0.037898071110248566,
0.015352866612374783,
-0.01215430162847042,
-0.0015595261938869953,
0.020996712148189545,
0.02230435237288475,
0.009325573220849037,
0.06615372002124786,
0.02076411060988903,
0.07877632230520248,
0.025522151961922646,
-0.0050762854516506195,
0.01585014909505844,
0.09415852278470993,
0.058835241943597794,
0.052791498601436615,
2.483038594228166e-33,
0.004943868611007929,
-0.048840414732694626,
-0.004234155174344778,
0.053783297538757324,
0.14921222627162933,
0.004102129954844713,
0.07056793570518494,
-0.03511182591319084,
-0.07160037755966187,
-0.0017012624302878976,
-0.035333890467882156,
0.04721655696630478,
-0.01980433240532875,
-0.013060938566923141,
0.03397733345627785,
-0.005052823573350906,
-0.05198841914534569,
0.031418927013874054,
0.04394565522670746,
-0.034720998257398605,
0.010607347823679447,
-0.04909651353955269,
-0.005564385559409857,
0.08052501827478409,
0.05714559927582741,
0.015331137925386429,
-0.011256529949605465,
0.00041665774188004434,
0.05120320990681648,
0.03989265486598015,
0.013745125383138657,
0.05167918652296066,
-0.05039773881435394,
0.0003814353549387306,
-0.09733305126428604,
-0.005420397967100143,
-0.10184109210968018,
-0.0901838168501854,
-0.02281899005174637,
-0.001755080884322524,
-0.0891752764582634,
-0.07299032062292099,
-0.05772323161363602,
-0.04452960565686226,
-0.07125282287597656,
-0.14997483789920807,
-0.09643842279911041,
0.038916293531656265,
0.05903293937444687,
0.07911994308233261,
-0.0370355062186718,
0.005524470936506987,
0.03709739074110985,
-0.013519739732146263,
-0.01566540077328682,
-0.03439118713140488,
-0.007352442480623722,
-0.007566998712718487,
0.023752368986606598,
-0.039928022772073746,
0.009803887456655502,
0.07181115448474884,
0.019231675192713737,
0.021427739411592484,
0.005162444896996021,
0.060628555715084076,
0.0011925933649763465,
0.0008354066521860659,
-0.03059510886669159,
0.018781868740916252,
-0.09992378950119019,
0.053887348622083664,
-0.007316636387258768,
0.05585927516222,
0.013735358603298664,
-0.03328566998243332,
-0.03861983120441437,
-0.028655320405960083,
0.04243249446153641,
0.019763657823204994,
0.037175241857767105,
-0.03479921817779541,
0.0084418635815382,
0.10337790101766586,
0.054998986423015594,
0.03646959364414215,
0.037457626312971115,
-0.012359685264527798,
-0.003464708337560296,
0.09279076755046844,
-0.03616592288017273,
0.02344825305044651,
-0.034540820866823196,
0.07882551848888397,
-0.064003124833107,
-4.921081101416778e-33,
0.03788904845714569,
-0.019367434084415436,
-0.03837002441287041,
-0.00660115759819746,
-0.09034763276576996,
-0.035339802503585815,
-0.032763078808784485,
-0.050694432109594345,
-0.048417314887046814,
-0.025543466210365295,
-0.039925869554281235,
0.09135694801807404,
0.07464957982301712,
-0.07443951070308685,
0.014030566439032555,
-0.009516922757029533,
-0.009762482717633247,
-0.039994608610868454,
-0.06749740988016129,
-0.021953823044896126,
-0.027249393984675407,
0.006108870729804039,
0.023387758061289787,
-0.06386864930391312,
0.005964082200080156,
-0.04927947744727135,
0.06944397836923599,
0.09231027215719223,
-0.015302026644349098,
-0.08767493814229965,
-0.015969587489962578,
0.05040882155299187,
0.004842198453843594,
-0.034506309777498245,
0.054891325533390045,
0.11078472435474396,
-0.010759638622403145,
0.0779619812965393,
-0.015340271405875683,
0.01998855732381344,
0.06137465685606003,
-0.03924662247300148,
-0.0358898788690567,
-0.008939851075410843,
0.0022053183056414127,
0.10412012040615082,
-0.0820290595293045,
0.008823415264487267,
-0.11881057918071747,
-0.051821574568748474,
0.015567464753985405,
0.01842690072953701,
0.04965798556804657,
0.08683131635189056,
0.027329280972480774,
0.0667315348982811,
0.045517776161432266,
0.004514497704803944,
0.01893281191587448,
-0.08573058992624283,
0.057359423488378525,
-0.10000453144311905,
-0.08425602316856384,
0.052221380174160004,
-0.019561028108000755,
-0.03040122613310814,
-0.04155316576361656,
0.03523822873830795,
-0.057044386863708496,
0.02148519828915596,
0.004202419891953468,
-0.05659017711877823,
0.005642523057758808,
-0.0530812032520771,
-0.02299596183001995,
0.0302897859364748,
0.007392165716737509,
-0.14946682751178741,
-0.06102696433663368,
0.00563401822000742,
0.0052403854206204414,
0.012912807986140251,
0.09100623428821564,
-0.04028177633881569,
-0.007497147191315889,
0.006944387219846249,
0.00033276129397563636,
0.08289650082588196,
0.08855347335338593,
0.05596067011356354,
-0.09191715717315674,
0.052151311188936234,
-0.03341791033744812,
-0.04363865405321121,
-0.029969599097967148,
-5.645863865311185e-8,
-0.06911040097475052,
-0.07093210518360138,
-0.0630565732717514,
-0.035459067672491074,
-0.031123943626880646,
0.009973272681236267,
0.023522259667515755,
-0.009472299367189407,
0.01177225261926651,
0.0789945051074028,
0.06569449603557587,
-0.02003367803990841,
-0.05911235883831978,
0.005313655361533165,
0.03170683607459068,
0.11625195294618607,
0.019374096766114235,
0.024492768570780754,
0.01943170838057995,
-0.02454865351319313,
-0.02398047223687172,
-0.006609921809285879,
0.020261358469724655,
0.028293896466493607,
-0.06840638816356659,
-0.018257109448313713,
-0.011570491828024387,
0.01066685188561678,
-0.061848852783441544,
0.009758755564689636,
-0.03858550265431404,
-0.04007912799715996,
0.009807057678699493,
0.023449014872312546,
-0.029257556423544884,
0.06867576390504837,
-0.09072674065828323,
0.013526199385523796,
0.05686814337968826,
0.008361509069800377,
-0.027310524135828018,
-0.038292188197374344,
-0.04684225842356682,
-0.029396748170256615,
-0.0506591834127903,
0.06703857332468033,
-0.022882232442498207,
0.024039283394813538,
-0.03851541131734848,
0.04567427188158035,
0.013273206539452076,
-0.02154356986284256,
0.03315899893641472,
0.01943270117044449,
-0.00822458416223526,
0.06561455875635147,
0.08612117171287537,
-0.17237195372581482,
0.024762887507677078,
0.05355691909790039,
0.0045500039122998714,
0.05746208876371384,
0.010602615773677826,
-0.002127052051946521
] | 0.176087 |
and launch \*\*OpenClaw.app\*\*. 2. Complete the permissions checklist (TCC prompts). 3. Ensure \*\*Local\*\* mode is active and the Gateway is running. 4. Install the CLI if you want terminal access. ## Build & dev workflow (native) - `cd apps/macos && swift build` - `swift run OpenClaw` (or Xcode) - Package app: `scripts/package-mac-app.sh` ## Debug gateway connectivity (macOS CLI) Use the debug CLI to exercise the same Gateway WebSocket handshake and discovery logic that the macOS app uses, without launching the app. ```bash cd apps/macos swift run openclaw-mac connect --json swift run openclaw-mac discover --timeout 3000 --json ``` Connect options: - `--url `: override config - `--mode `: resolve from config (default: config or local) - `--probe`: force a fresh health probe - `--timeout `: request timeout (default: `15000`) - `--json`: structured output for diffing Discovery options: - `--include-local`: include gateways that would be filtered as “local” - `--timeout `: overall discovery window (default: `2000`) - `--json`: structured output for diffing Tip: compare against `openclaw gateway discover --json` to see whether the macOS app’s discovery pipeline (NWBrowser + tailnet DNS‑SD fallback) differs from the Node CLI’s `dns-sd` based discovery. ## Remote connection plumbing (SSH tunnels) When the macOS app runs in \*\*Remote\*\* mode, it opens an SSH tunnel so local UI components can talk to a remote Gateway as if it were on localhost. ### Control tunnel (Gateway WebSocket port) - \*\*Purpose:\*\* health checks, status, Web Chat, config, and other control-plane calls. - \*\*Local port:\*\* the Gateway port (default `18789`), always stable. - \*\*Remote port:\*\* the same Gateway port on the remote host. - \*\*Behavior:\*\* no random local port; the app reuses an existing healthy tunnel or restarts it if needed. - \*\*SSH shape:\*\* `ssh -N -L :127.0.0.1:` with BatchMode + ExitOnForwardFailure + keepalive options. - \*\*IP reporting:\*\* the SSH tunnel uses loopback, so the gateway will see the node IP as `127.0.0.1`. Use \*\*Direct (ws/wss)\*\* transport if you want the real client IP to appear (see [macOS remote access](/platforms/mac/remote)). For setup steps, see [macOS remote access](/platforms/mac/remote). For protocol details, see [Gateway protocol](/gateway/protocol). ## Related docs - [Gateway runbook](/gateway) - [Gateway (macOS)](/platforms/mac/bundled-gateway) - [macOS permissions](/platforms/mac/permissions) - [Canvas](/platforms/mac/canvas) | https://github.com/openclaw/openclaw/blob/main//docs/platforms/macos.md | main | opebclaw | [
0.002131582936272025,
-0.059649091213941574,
-0.04978154972195625,
0.018934037536382675,
-0.00764403585344553,
-0.11686620116233826,
-0.04744642600417137,
-0.011314366944134235,
0.005268328357487917,
-0.012299050576984882,
0.014559711329638958,
-0.03756953775882721,
-0.021235600113868713,
0.047945402562618256,
0.08814450353384018,
0.08772296458482742,
0.06999789923429489,
-0.09152179956436157,
0.06284522265195847,
-0.019770484417676926,
-0.017670907080173492,
0.009790005162358284,
0.005117983091622591,
-0.004205489531159401,
-0.08496903628110886,
-0.07291053980588913,
0.021390261128544807,
-0.050394315272569656,
-0.019013594835996628,
0.03786792233586311,
0.017106017097830772,
0.01878407970070839,
-0.038863055408000946,
0.015940412878990173,
0.053889814764261246,
-0.03643268346786499,
0.14292708039283752,
0.007049824111163616,
-0.08149763941764832,
-0.027212124317884445,
0.06375870853662491,
0.005720102693885565,
0.017068544402718544,
0.015093415975570679,
0.005526597611606121,
-0.06661852449178696,
-0.022694775834679604,
-0.06699228286743164,
0.032619282603263855,
-0.015787653625011444,
-0.006259493064135313,
-0.06094834953546524,
-0.021147368475794792,
0.022546246647834778,
0.08958163857460022,
0.05111492797732353,
-0.004578888416290283,
-0.047299206256866455,
0.08563610911369324,
-0.048973191529512405,
0.002717597410082817,
-0.017359677702188492,
-0.0036675455048680305,
0.038363512605428696,
-0.10719668120145798,
0.008602064102888107,
-0.007660161703824997,
-0.004454060457646847,
-0.0013774300459772348,
0.01846521720290184,
0.06177694350481033,
0.014253373257815838,
0.020923512056469917,
-0.06299691647291183,
-0.026288434863090515,
-0.036398995667696,
0.0950552225112915,
-0.037996694445610046,
-0.058663949370384216,
-0.03256819769740105,
-0.06150835379958153,
0.053397927433252335,
-0.04707595333456993,
0.09240136295557022,
-0.030671175569295883,
0.09889116138219833,
-0.010998455807566643,
-0.007423206698149443,
0.026240669190883636,
0.08140846341848373,
-0.0036584280896931887,
-0.08849974721670151,
-0.08741985261440277,
-0.056481409817934036,
0.027966488152742386,
-0.018872153013944626,
0.0568808913230896,
-0.03415936231613159,
-0.06382469087839127,
0.035391706973314285,
-0.08230483531951904,
-0.02109002135694027,
0.03379308059811592,
0.03323415294289589,
-0.022837337106466293,
0.07440076768398285,
0.049613457173109055,
0.053362682461738586,
0.05726078525185585,
0.05603981763124466,
0.026637256145477295,
-0.03944597765803337,
0.1122124195098877,
0.05898033455014229,
-0.043291524052619934,
0.028740130364894867,
-0.012172245420515537,
0.023050842806696892,
0.0014633357059210539,
0.10522783547639847,
0.06119592487812042,
0.06275227665901184,
0.0018627217505127192,
-0.03142789751291275,
0.021607395261526108,
0.022212231531739235,
0.0844941958785057,
3.3976132394442305e-33,
0.01733330264687538,
-0.03479807823896408,
-0.01632389985024929,
-0.0024636248126626015,
0.1271641105413437,
-0.06673350930213928,
0.0854991003870964,
-0.004328809212893248,
-0.017189577221870422,
0.08222418278455734,
-0.054080478847026825,
0.029990345239639282,
-0.04237478971481323,
-0.029218629002571106,
-0.0035321651957929134,
0.033886220306158066,
-0.06260363012552261,
-0.02577059529721737,
0.09839210659265518,
0.002188857411965728,
0.0661863386631012,
-0.13350656628608704,
-0.023303497582674026,
-0.0174946878105402,
-0.0031695477664470673,
0.008424890227615833,
-0.00254992232657969,
0.009203052148222923,
0.016719548031687737,
0.05768837407231331,
0.03380386531352997,
0.03421429172158241,
-0.03021569922566414,
-0.0033829452004283667,
-0.07850031554698944,
-0.04216873273253441,
-0.022669652476906776,
-0.006328914314508438,
-0.022001981735229492,
0.04361535981297493,
-0.026657231152057648,
-0.03444715589284897,
-0.11835223436355591,
-0.00911684613674879,
0.04255038872361183,
-0.10662294924259186,
-0.06995952874422073,
0.04213523492217064,
0.045671653002500534,
0.04739195480942726,
-0.05633166432380676,
-0.055444493889808655,
0.013269622810184956,
-0.0580284558236599,
0.01760019175708294,
-0.02443249709904194,
-0.02235599234700203,
-0.05740571394562721,
0.01059140358120203,
-0.00885089673101902,
-0.0536862351000309,
0.05069982632994652,
-0.03972109407186508,
0.02412549965083599,
0.03327156975865364,
0.05005038157105446,
-0.06571650505065918,
-0.051861900836229324,
-0.06614585220813751,
-0.004571785219013691,
-0.07947515696287155,
0.016766877844929695,
-0.02582124061882496,
-0.007163703441619873,
-0.021323224529623985,
-0.0342160165309906,
0.014669586904346943,
0.020286621525883675,
0.05399182066321373,
0.006667485926300287,
0.07438366115093231,
-0.027974173426628113,
0.015958212316036224,
0.07696126401424408,
0.03846016153693199,
0.07710558921098709,
0.00740814721211791,
-0.001991035882383585,
-0.047234706580638885,
0.1358717381954193,
-0.05568813532590866,
-0.004710699897259474,
0.02766847051680088,
0.008919524028897285,
-0.03877830505371094,
-5.1359309793623676e-33,
0.028660444542765617,
-0.00405281875282526,
-0.007544260006397963,
-0.0017163028242066503,
-0.05466868728399277,
-0.026627762243151665,
-0.03356562927365303,
-0.047506850212812424,
-0.008282624185085297,
-0.04131786525249481,
-0.007012481335550547,
0.0843740850687027,
0.03227996826171875,
-0.07082169502973557,
0.019289983436465263,
-0.00713444035500288,
-0.0054521323181688786,
-0.026270467787981033,
-0.039620283991098404,
0.06275394558906555,
-0.031132647767663002,
-0.02863079495728016,
-0.0077327038161456585,
-0.06473426520824432,
0.006257560104131699,
-0.024742236360907555,
0.07599924504756927,
0.03242039307951927,
-0.053826164454221725,
-0.05859364941716194,
-0.004356959369033575,
0.0379490964114666,
0.03379053995013237,
-0.034848786890506744,
-0.0008721248595975339,
0.08544560521841049,
0.009307877160608768,
0.034642960876226425,
0.031379327178001404,
-0.007649550214409828,
0.05706903338432312,
0.000722638622391969,
-0.05126536637544632,
0.007618702482432127,
-0.046438973397016525,
0.11829554289579391,
-0.045476462692022324,
-0.002187908161431551,
-0.05842249095439911,
-0.05369613692164421,
0.009654078632593155,
0.003925291821360588,
0.01519432757049799,
0.065619096159935,
0.016183262690901756,
0.11224381625652313,
0.1127447858452797,
-0.05270400643348694,
0.0008842711104080081,
-0.08158273249864578,
0.029661398380994797,
-0.06845670193433762,
-0.03264454007148743,
0.05411716178059578,
0.015761010348796844,
-0.09549671411514282,
-0.052486270666122437,
0.0430547334253788,
0.014467524364590645,
0.02491047792136669,
-0.05474359542131424,
-0.02433502860367298,
0.02563958615064621,
-0.05487879738211632,
-0.026726994663476944,
-0.011150553822517395,
-0.02927333302795887,
-0.102424755692482,
-0.0038461165968328714,
0.03924071788787842,
0.00377638335339725,
0.06536160409450531,
0.057749852538108826,
-0.091866135597229,
0.0077093723230063915,
0.049389518797397614,
0.013717778027057648,
0.06565971672534943,
0.08277445286512375,
0.07704129815101624,
-0.10202882438898087,
-0.001250178785994649,
-0.021056950092315674,
-0.05626669526100159,
0.01121613010764122,
-5.3357343432480775e-8,
-0.03876369073987007,
-0.05654740333557129,
-0.08674392849206924,
0.009380942210555077,
-0.016820944845676422,
0.013171778060495853,
-0.030545229092240334,
0.009715214371681213,
0.033985435962677,
0.05266455560922623,
0.032457515597343445,
0.07954272627830505,
-0.1117497906088829,
0.051305290311574936,
0.001703333924524486,
0.09491976350545883,
0.014858843758702278,
-0.04218762367963791,
0.03550396487116814,
-0.08314201980829239,
0.0010656799422577024,
-0.03987763822078705,
0.015869325026869774,
0.055709272623062134,
-0.09227851033210754,
-0.022814638912677765,
-0.01396443322300911,
-0.05419227480888367,
-0.06110810860991478,
0.0050963144749403,
-0.11858697235584259,
-0.056335799396038055,
-0.018446339294314384,
0.03808757662773132,
0.008218749426305294,
0.018877651542425156,
-0.04747994616627693,
-0.009030438028275967,
0.01884492114186287,
-0.018301211297512054,
0.03640260919928551,
0.0466640442609787,
-0.020890461280941963,
-0.04904355853796005,
-0.08803561329841614,
0.028323564678430557,
0.0018624855438247323,
0.0966297909617424,
0.001905439654365182,
0.045254264026880264,
0.08520111441612244,
-0.06178310886025429,
0.0012718483339995146,
0.006135373841971159,
-0.02455609105527401,
0.12142384797334671,
0.03495927155017853,
-0.16720682382583618,
-0.10710034519433975,
0.015274332836270332,
0.02783154509961605,
0.022963477298617363,
-0.0017519639804959297,
-0.04225298762321472
] | 0.051182 |
# Platforms OpenClaw core is written in TypeScript. \*\*Node is the recommended runtime\*\*. Bun is not recommended for the Gateway (WhatsApp/Telegram bugs). Companion apps exist for macOS (menu bar app) and mobile nodes (iOS/Android). Windows and Linux companion apps are planned, but the Gateway is fully supported today. Native companion apps for Windows are also planned; the Gateway is recommended via WSL2. ## Choose your OS - macOS: [macOS](/platforms/macos) - iOS: [iOS](/platforms/ios) - Android: [Android](/platforms/android) - Windows: [Windows](/platforms/windows) - Linux: [Linux](/platforms/linux) ## VPS & hosting - VPS hub: [VPS hosting](/vps) - Fly.io: [Fly.io](/platforms/fly) - Hetzner (Docker): [Hetzner](/platforms/hetzner) - GCP (Compute Engine): [GCP](/platforms/gcp) - exe.dev (VM + HTTPS proxy): [exe.dev](/platforms/exe-dev) ## Common links - Install guide: [Getting Started](/start/getting-started) - Gateway runbook: [Gateway](/gateway) - Gateway configuration: [Configuration](/gateway/configuration) - Service status: `openclaw gateway status` ## Gateway service install (CLI) Use one of these (all supported): - Wizard (recommended): `openclaw onboard --install-daemon` - Direct: `openclaw gateway install` - Configure flow: `openclaw configure` → select \*\*Gateway service\*\* - Repair/migrate: `openclaw doctor` (offers to install or fix the service) The service target depends on OS: - macOS: LaunchAgent (`bot.molt.gateway` or `bot.molt.`; legacy `com.openclaw.\*`) - Linux/WSL2: systemd user service (`openclaw-gateway[-].service`) | https://github.com/openclaw/openclaw/blob/main//docs/platforms/index.md | main | opebclaw | [
-0.03882966935634613,
0.018184438347816467,
-0.0018556809518486261,
-0.029512017965316772,
0.022322136908769608,
-0.06898074597120285,
-0.08266345411539078,
0.052912794053554535,
-0.00894963089376688,
0.06592725217342377,
0.031666211783885956,
-0.011057722382247448,
-0.029187297448515892,
0.024811428040266037,
0.1421208530664444,
0.04273509606719017,
0.06722823530435562,
-0.08451453596353531,
0.08092639595270157,
0.000906043394934386,
-0.01846114918589592,
-0.007744444068521261,
0.01131931971758604,
-0.015914054587483406,
-0.03607563674449921,
-0.04683887958526611,
-0.0634593740105629,
-0.006785742938518524,
0.025242578238248825,
0.03304130956530571,
0.03858109191060066,
0.011783696711063385,
-0.08426739275455475,
0.06685246527194977,
-0.015742672607302666,
0.020795123651623726,
0.061817776411771774,
0.0026703851763159037,
-0.12105567753314972,
-0.028811590746045113,
0.039270106703042984,
0.021152814850211143,
-0.01903299055993557,
-0.003467528847977519,
0.013689544051885605,
-0.08059374988079071,
-0.03787439689040184,
-0.016342516988515854,
-0.03152943775057793,
0.0385008230805397,
0.029858019202947617,
-0.07537978142499924,
0.00720383832231164,
0.038643788546323776,
-0.03251229599118233,
0.050933174788951874,
-0.05060620978474617,
0.05353810265660286,
0.10610092431306839,
-0.00711776502430439,
0.013833259232342243,
-0.07098806649446487,
-0.045319706201553345,
0.01852697692811489,
-0.14335815608501434,
0.018519476056098938,
-0.02635962702333927,
0.010528129525482655,
0.013045620173215866,
-0.043563831597566605,
-0.023386413231492043,
-0.029173946008086205,
0.002458767034113407,
-0.031637392938137054,
-0.062386855483055115,
-0.008788288570940495,
0.08098109811544418,
-0.0012709503062069416,
-0.10928615182638168,
-0.06117349490523338,
0.03336477279663086,
0.06815730035305023,
-0.1223384365439415,
0.06988617777824402,
-0.012962079606950283,
0.11350800842046738,
-0.04078994318842888,
0.0331190750002861,
-0.011863048188388348,
0.017494050785899162,
0.04193300008773804,
-0.08465701341629028,
-0.009760493412613869,
0.021153483539819717,
0.045021142810583115,
0.007561985868960619,
-0.030514687299728394,
-0.04388631135225296,
-0.05457146838307381,
0.061695802956819534,
-0.05992204695940018,
-0.027625486254692078,
0.04255077987909317,
0.003312488319352269,
-0.01254989393055439,
0.06996248662471771,
0.0407719723880291,
0.07018507272005081,
0.07157589495182037,
0.015600491315126419,
-0.05597713217139244,
-0.04319145902991295,
0.020279718562960625,
-0.05427791550755501,
-0.054295897483825684,
0.0065950388088822365,
0.02288021892309189,
-0.045931145548820496,
0.025547243654727936,
0.07890195399522781,
0.05061359703540802,
-0.027832744643092155,
-0.03532111644744873,
-0.02490776591002941,
-0.0029228359926491976,
0.022330589592456818,
0.0855851024389267,
3.14980139787563e-33,
0.021218018606305122,
-0.014077364467084408,
-0.02327391877770424,
-0.003690993180498481,
0.09945035725831985,
-0.04158404469490051,
0.0493931844830513,
-0.038527194410562515,
-0.08353430777788162,
-0.016211241483688354,
-0.06289908289909363,
-0.026406826451420784,
-0.05181553587317467,
0.002537887077778578,
0.032407406717538834,
-0.026869045570492744,
0.004848914686590433,
0.03554069623351097,
0.09748266637325287,
0.021036554127931595,
-0.022094469517469406,
-0.05232250317931175,
-0.038889329880476,
-0.039201393723487854,
-0.0007886046660132706,
0.0541815422475338,
0.027689848095178604,
-0.07416541129350662,
0.05596640333533287,
0.005457217805087566,
0.03374689072370529,
0.0035263008903712034,
-0.056539490818977356,
-0.013416752219200134,
-0.06570089608430862,
0.001083637005649507,
-0.0862586498260498,
-0.03011183999478817,
-0.03054463490843773,
0.0026609560009092093,
-0.06454319506883621,
0.006272087339311838,
-0.0383501835167408,
-0.011432643048465252,
0.0992891937494278,
-0.1015126183629036,
-0.027460820972919464,
0.023060346022248268,
0.02093767561018467,
0.046287670731544495,
-0.02335360087454319,
-0.01903885416686535,
0.022153720259666443,
0.036210279911756516,
0.010643860325217247,
0.0196851696819067,
-0.015515625476837158,
-0.02708495408296585,
-0.009657444432377815,
-0.03509117290377617,
-0.02390115335583687,
-0.0020617146510630846,
-0.029096798971295357,
-0.031777236610651016,
-0.004947371780872345,
0.008561686612665653,
-0.046863410621881485,
0.0009374502114951611,
-0.0909283235669136,
0.09479944407939911,
-0.03773043304681778,
0.034706588834524155,
0.017767343670129776,
0.12324214726686478,
-0.058247748762369156,
0.012751814909279346,
-0.026101743802428246,
0.02078130468726158,
0.03303101286292076,
0.010254761204123497,
-0.022727984935045242,
0.040383413434028625,
0.03916144743561745,
0.05227898433804512,
0.013272413983941078,
0.013193834573030472,
0.026902208104729652,
-0.08966562151908875,
0.04505647346377373,
0.1380106806755066,
-0.07569286972284317,
0.0823429524898529,
0.03089902736246586,
0.03383270278573036,
-0.10759952664375305,
-3.803071363085577e-33,
-0.06158960983157158,
0.038810331374406815,
-0.02776409313082695,
0.01865619793534279,
-0.03350882977247238,
0.007359663490206003,
0.021608619019389153,
-0.06096725910902023,
-0.03359419107437134,
0.0003134652797598392,
-0.02861463651061058,
0.07965827733278275,
0.11452741920948029,
-0.10779321938753128,
0.04945489764213562,
-0.005460554268211126,
-0.021951179951429367,
-0.0540870763361454,
0.04448448121547699,
-0.02363801933825016,
-0.05169903114438057,
0.016760144382715225,
0.040049150586128235,
0.000190664068213664,
0.07016207277774811,
-0.016089830547571182,
0.053054988384246826,
0.04813472554087639,
-0.014195367693901062,
-0.05957871675491333,
0.050835877656936646,
-0.0005163252353668213,
-0.008181481622159481,
-0.014132660813629627,
0.14586833119392395,
0.04931383952498436,
-0.06573482602834702,
0.08687987178564072,
0.04304026439785957,
-0.05830315127968788,
0.07314839214086533,
-0.09724877774715424,
-0.04152296483516693,
-0.019372310489416122,
0.047358956187963486,
0.026655014604330063,
-0.06278839707374573,
0.048444315791130066,
-0.07254283130168915,
-0.04141371697187424,
0.04224775731563568,
-0.019954346120357513,
0.003505864180624485,
0.05700506269931793,
0.06580028682947159,
0.09594595432281494,
0.03455188497900963,
-0.019676195457577705,
-0.04222486913204193,
-0.10224778205156326,
0.07244855910539627,
-0.10550309717655182,
-0.015028099529445171,
0.06493515521287918,
-0.012329545803368092,
-0.06070785969495773,
-0.04092376306653023,
0.0023486686404794455,
-0.10810280591249466,
0.017081331461668015,
-0.060167428106069565,
-0.05157310888171196,
0.0012316874926909804,
-0.04286777973175049,
0.007017425261437893,
0.011260061524808407,
0.0634254589676857,
-0.07775041460990906,
0.005322977434843779,
0.0020330329425632954,
-0.03076625056564808,
0.12234365195035934,
0.07109976559877396,
-0.05363260209560394,
0.01580183207988739,
0.007636754307895899,
-0.013821075670421124,
0.0020668997894972563,
0.023206723853945732,
0.03909225016832352,
-0.10568446666002274,
0.022917507216334343,
0.0026572677306830883,
0.00020981888519600034,
0.018770113587379456,
-5.590359108964549e-8,
0.01168126706033945,
-0.013505537994205952,
-0.13593795895576477,
-0.026087980717420578,
-0.10998057574033737,
-0.0020254014525562525,
0.03802771866321564,
-0.08609716594219208,
0.021740520372986794,
0.06885195523500443,
0.001604994642548263,
-0.041041482239961624,
-0.08591809123754501,
0.03435015305876732,
0.0005788038833998144,
0.0471998006105423,
-0.007992666214704514,
-0.0018437029793858528,
0.0006311772740446031,
-0.03676202520728111,
-0.01653965748846531,
0.04002079740166664,
0.00822173897176981,
0.03202337399125099,
-0.06108705699443817,
0.01934828981757164,
0.09045632928609848,
-0.011979184113442898,
-0.0031932920683175325,
0.02157628908753395,
-0.06876562535762787,
-0.020836396142840385,
-0.018802762031555176,
-0.005239562131464481,
0.02023640088737011,
0.05690114572644234,
-0.07320982217788696,
0.04772496968507767,
0.046890974044799805,
0.054656967520713806,
0.05657580494880676,
0.008001592010259628,
0.027600951492786407,
-0.053412213921546936,
-0.04714827984571457,
0.0020607186015695333,
-0.0017896350473165512,
0.0704537034034729,
0.013111798092722893,
0.0797518789768219,
0.020324284210801125,
-0.0009398513939231634,
0.017572928220033646,
-0.009514344856142998,
-0.0014547917526215315,
0.05537942796945572,
0.040240515023469925,
-0.17921201884746552,
-0.015254275873303413,
-0.020454172044992447,
0.034001853317022324,
0.013435828499495983,
0.09132511168718338,
0.04610414057970047
] | 0.056474 |
# OpenClaw on macOS VMs (Sandboxing) ## Recommended default (most users) - \*\*Small Linux VPS\*\* for an always-on Gateway and low cost. See [VPS hosting](/vps). - \*\*Dedicated hardware\*\* (Mac mini or Linux box) if you want full control and a \*\*residential IP\*\* for browser automation. Many sites block data center IPs, so local browsing often works better. - \*\*Hybrid:\*\* keep the Gateway on a cheap VPS, and connect your Mac as a \*\*node\*\* when you need browser/UI automation. See [Nodes](/nodes) and [Gateway remote](/gateway/remote). Use a macOS VM when you specifically need macOS-only capabilities (iMessage/BlueBubbles) or want strict isolation from your daily Mac. ## macOS VM options ### Local VM on your Apple Silicon Mac (Lume) Run OpenClaw in a sandboxed macOS VM on your existing Apple Silicon Mac using [Lume](https://cua.ai/docs/lume). This gives you: - Full macOS environment in isolation (your host stays clean) - iMessage support via BlueBubbles (impossible on Linux/Windows) - Instant reset by cloning VMs - No extra hardware or cloud costs ### Hosted Mac providers (cloud) If you want macOS in the cloud, hosted Mac providers work too: - [MacStadium](https://www.macstadium.com/) (hosted Macs) - Other hosted Mac vendors also work; follow their VM + SSH docs Once you have SSH access to a macOS VM, continue at step 6 below. --- ## Quick path (Lume, experienced users) 1. Install Lume 2. `lume create openclaw --os macos --ipsw latest` 3. Complete Setup Assistant, enable Remote Login (SSH) 4. `lume run openclaw --no-display` 5. SSH in, install OpenClaw, configure channels 6. Done --- ## What you need (Lume) - Apple Silicon Mac (M1/M2/M3/M4) - macOS Sequoia or later on the host - ~60 GB free disk space per VM - ~20 minutes --- ## 1) Install Lume ```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)" ``` If `~/.local/bin` isn't in your PATH: ```bash echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.zshrc && source ~/.zshrc ``` Verify: ```bash lume --version ``` Docs: [Lume Installation](https://cua.ai/docs/lume/guide/getting-started/installation) --- ## 2) Create the macOS VM ```bash lume create openclaw --os macos --ipsw latest ``` This downloads macOS and creates the VM. A VNC window opens automatically. Note: The download can take a while depending on your connection. --- ## 3) Complete Setup Assistant In the VNC window: 1. Select language and region 2. Skip Apple ID (or sign in if you want iMessage later) 3. Create a user account (remember the username and password) 4. Skip all optional features After setup completes, enable SSH: 1. Open System Settings → General → Sharing 2. Enable "Remote Login" --- ## 4) Get the VM's IP address ```bash lume get openclaw ``` Look for the IP address (usually `192.168.64.x`). --- ## 5) SSH into the VM ```bash ssh youruser@192.168.64.X ``` Replace `youruser` with the account you created, and the IP with your VM's IP. --- ## 6) Install OpenClaw Inside the VM: ```bash npm install -g openclaw@latest openclaw onboard --install-daemon ``` Follow the onboarding prompts to set up your model provider (Anthropic, OpenAI, etc.). --- ## 7) Configure channels Edit the config file: ```bash nano ~/.openclaw/openclaw.json ``` Add your channels: ```json { "channels": { "whatsapp": { "dmPolicy": "allowlist", "allowFrom": ["+15551234567"] }, "telegram": { "botToken": "YOUR\_BOT\_TOKEN" } } } ``` Then login to WhatsApp (scan QR): ```bash openclaw channels login ``` --- ## 8) Run the VM headlessly Stop the VM and restart without display: ```bash lume stop openclaw lume run openclaw --no-display ``` The VM runs in the background. OpenClaw's daemon keeps the gateway running. To check status: ```bash ssh youruser@192.168.64.X "openclaw status" ``` --- ## Bonus: iMessage integration This is the killer feature of running on macOS. Use [BlueBubbles](https://bluebubbles.app) to add iMessage | https://github.com/openclaw/openclaw/blob/main//docs/platforms/macos-vm.md | main | opebclaw | [
0.021704891696572304,
-0.019732097163796425,
0.04348735511302948,
-0.004647419322282076,
0.03669317439198494,
-0.0352947935461998,
-0.05815553292632103,
0.010915166698396206,
-0.04966902732849121,
-0.001866009784862399,
0.07458672672510147,
-0.03751601651310921,
0.006994178518652916,
-0.012927292846143246,
0.07814551144838333,
0.09720145910978317,
0.1422911435365677,
-0.020448319613933563,
0.07239022850990295,
0.037451960146427155,
-0.002471016487106681,
-0.04304477572441101,
-0.016843698918819427,
-0.02628541737794876,
-0.06883344054222107,
0.0707462802529335,
0.060080427676439285,
0.00003406291943974793,
-0.04203369468450546,
0.001290942425839603,
-0.03489363566040993,
-0.05984000116586685,
-0.004064579959958792,
0.030589843168854713,
0.023646382614970207,
-0.03146670386195183,
0.019799379631876945,
0.019822757691144943,
-0.13802839815616608,
-0.014819185249507427,
0.015303945168852806,
-0.018670985475182533,
0.022526057437062263,
0.010427278466522694,
0.019752318039536476,
-0.019091371446847916,
0.03583527356386185,
-0.01992114819586277,
0.08745851367712021,
-0.022546259686350822,
0.02487390860915184,
-0.06610336154699326,
-0.004316345322877169,
0.04431340470910072,
-0.028205379843711853,
0.04084465280175209,
0.008344029076397419,
-0.09823969006538391,
0.08275889605283737,
-0.018006762489676476,
0.011892719194293022,
0.01651099883019924,
0.004699071869254112,
0.0547964870929718,
-0.13090267777442932,
-0.022817488759756088,
0.06343374401330948,
0.05636189505457878,
-0.03657304123044014,
0.014505458064377308,
-0.020553071051836014,
0.04207765683531761,
0.0030357795767486095,
0.07434011995792389,
-0.05342313274741173,
-0.06209680810570717,
0.06130469962954521,
-0.09575342386960983,
0.009866856038570404,
0.017521318048238754,
-0.01605278067290783,
0.02237873151898384,
-0.11155635118484497,
0.020299939438700676,
-0.05830194801092148,
0.058173004537820816,
-0.0048608374781906605,
0.029637660831212997,
0.04297130927443504,
0.06087452918291092,
0.021683678030967712,
-0.021548759192228317,
-0.03565163537859917,
0.008127214387059212,
0.1239778995513916,
-0.06432934105396271,
-0.00022650478058494627,
-0.022676417604088783,
0.013968550600111485,
0.04450757056474686,
-0.02098449133336544,
-0.006281150504946709,
0.02005617506802082,
-0.027649901807308197,
0.025656377896666527,
0.0520632304251194,
0.009796485304832458,
0.07412468641996384,
0.09271953999996185,
0.03994086757302284,
-0.02758968621492386,
-0.0497259721159935,
0.0001654076622799039,
0.029953736811876297,
-0.011105671525001526,
0.01763693243265152,
0.04795733839273453,
0.001141403685323894,
0.04274074360728264,
0.036988288164138794,
0.06267330795526505,
-0.016102518886327744,
-0.023115653544664383,
-0.04939243569970131,
0.07669348269701004,
0.012598896399140358,
0.02504502795636654,
6.25479662451776e-33,
0.014779702760279179,
-0.006597529631108046,
-0.04651448875665665,
-0.041987642645835876,
0.1167982891201973,
-0.001599852810613811,
0.09048468619585037,
0.002322162501513958,
-0.06667032837867737,
-0.015057043172419071,
-0.013688573613762856,
-0.054699063301086426,
-0.0010931049473583698,
-0.014098788611590862,
0.045164916664361954,
-0.030401067808270454,
0.009700826369225979,
-0.03500095009803772,
0.07694058120250702,
0.022579433396458626,
-0.03896196931600571,
-0.028555037453770638,
0.026254015043377876,
-0.025949925184249878,
-0.04224894940853119,
-0.013945345766842365,
-0.0023797519970685244,
-0.022490119561553,
0.0036575854755938053,
0.013506174087524414,
-0.01058461144566536,
-0.001711361575871706,
-0.05337891727685928,
0.03282618895173073,
-0.08485764265060425,
0.02041247859597206,
-0.061739321798086166,
-0.07054867595434189,
-0.05305149406194687,
0.03887752443552017,
-0.0975644662976265,
0.012533520348370075,
-0.060850877314805984,
-0.1051732525229454,
0.04189489036798477,
-0.032064519822597504,
-0.09212798625230789,
0.04630528762936592,
-0.038177113980054855,
0.02366444282233715,
-0.07234495878219604,
-0.02845829911530018,
0.03342282399535179,
0.004711207468062639,
-0.017139798030257225,
0.032446783035993576,
0.021847574040293694,
-0.0501517653465271,
-0.02569607086479664,
0.002425922779366374,
-0.04041389748454094,
0.02430727705359459,
0.0052309343591332436,
0.031002726405858994,
-0.021158039569854736,
0.030298231169581413,
-0.022642243653535843,
-0.007789004128426313,
-0.04273638501763344,
-0.026082627475261688,
-0.06525884568691254,
0.023702479898929596,
0.008241751231253147,
0.010131441056728363,
-0.05651749670505524,
-0.027779588475823402,
-0.02497151680290699,
0.01324124913662672,
-0.044705599546432495,
0.014372964389622211,
0.07494089752435684,
0.0806109681725502,
0.054935988038778305,
0.08138789981603622,
0.03599754720926285,
0.06235586851835251,
0.021628351882100105,
0.044048696756362915,
0.00879164133220911,
0.09745770692825317,
-0.029764942824840546,
0.005382178351283073,
0.012368148192763329,
-0.0034094597212970257,
-0.09508240967988968,
-7.446290922822678e-33,
-0.030151624232530594,
-0.032344039529561996,
-0.01707853190600872,
0.08151612430810928,
-0.04451823607087135,
0.07287338376045227,
0.03850137069821358,
-0.030469805002212524,
-0.09884980320930481,
-0.08788347244262695,
-0.10078094899654388,
0.05655782297253609,
0.08297871798276901,
-0.09341613203287125,
-0.03982812166213989,
-0.0027636177837848663,
-0.013331972993910313,
-0.07970879971981049,
-0.029339004307985306,
-0.0038737624417990446,
-0.03677719831466675,
0.0788901075720787,
-0.004531061742454767,
-0.03740581125020981,
-0.010082723572850227,
-0.05234742537140846,
-0.02992290072143078,
0.0778832957148552,
-0.11358848959207535,
-0.003797964658588171,
-0.03635866567492485,
0.0323408767580986,
0.046587925404310226,
-0.06747229397296906,
0.11921969056129456,
0.0784318670630455,
-0.03958097845315933,
0.07945622503757477,
0.03976139798760414,
0.06596395373344421,
0.019171137362718582,
-0.08597676455974579,
-0.08253210783004761,
-0.053690385073423386,
-0.01386592909693718,
0.11042828857898712,
-0.12518315017223358,
0.03616539016366005,
-0.0595548115670681,
-0.03642599284648895,
-0.07487674802541733,
-0.004570451565086842,
-0.046505559235811234,
0.09368258714675903,
-0.000513397972099483,
0.015894124284386635,
-0.03750120475888252,
0.05466296896338463,
0.01463350746780634,
-0.004921918734908104,
-0.015199661254882812,
-0.09231254458427429,
-0.057078514248132706,
0.06424184888601303,
0.008028782904148102,
-0.030244717374444008,
-0.022903967648744583,
0.025300581008195877,
-0.024302229285240173,
-0.003517598146572709,
-0.06887509673833847,
0.02913627400994301,
0.005800577811896801,
-0.03156207501888275,
0.006214439403265715,
-0.034675318747758865,
0.05787535756826401,
-0.07931623607873917,
-0.08316314965486526,
0.06542638689279556,
0.034272752702236176,
0.08036015182733536,
0.012326929718255997,
-0.038060933351516724,
-0.03734691068530083,
0.05457637086510658,
-0.014118100516498089,
-0.02600160799920559,
0.08467676490545273,
0.007126673590391874,
-0.10170379281044006,
-0.028269290924072266,
-0.07188349962234497,
-0.03721850365400314,
-0.04493599385023117,
-5.097516009300307e-8,
-0.03894347697496414,
-0.012092702090740204,
0.018552767112851143,
0.04037836939096451,
-0.05662868544459343,
0.030890192836523056,
0.01629541628062725,
-0.016291052103042603,
0.0495065301656723,
0.09557212144136429,
0.06620839983224869,
-0.03774675354361534,
-0.010814898647367954,
0.01450665295124054,
-0.0315023772418499,
0.07083367556333542,
0.041673772037029266,
0.047832317650318146,
0.03373616933822632,
-0.025994064286351204,
0.030576074495911598,
0.01156880147755146,
-0.009263008832931519,
0.07368303835391998,
0.0006028520292602479,
0.031582847237586975,
0.015774231404066086,
-0.01583811268210411,
-0.08532898128032684,
0.049179136753082275,
-0.07496462017297745,
-0.04024467244744301,
-0.07835184782743454,
0.006659374572336674,
-0.033424895256757736,
-0.0070920889265835285,
-0.1465655416250229,
0.031512219458818436,
-0.015721777454018593,
-0.012757020071148872,
0.006535347085446119,
-0.05482490360736847,
-0.013404459692537785,
-0.08436998724937439,
-0.04835783690214157,
-0.023138489574193954,
-0.10195719450712204,
-0.001240187673829496,
-0.004331481643021107,
0.07559020817279816,
0.12746433913707733,
-0.009232484735548496,
0.05206940695643425,
0.06691619008779526,
0.05779649317264557,
-0.017214665189385414,
0.1292368769645691,
-0.13815343379974365,
0.008640005253255367,
0.07840471714735031,
0.015664556995034218,
0.017521942034363747,
-0.030616693198680878,
0.023103371262550354
] | 0.097639 |
display: ```bash lume stop openclaw lume run openclaw --no-display ``` The VM runs in the background. OpenClaw's daemon keeps the gateway running. To check status: ```bash ssh youruser@192.168.64.X "openclaw status" ``` --- ## Bonus: iMessage integration This is the killer feature of running on macOS. Use [BlueBubbles](https://bluebubbles.app) to add iMessage to OpenClaw. Inside the VM: 1. Download BlueBubbles from bluebubbles.app 2. Sign in with your Apple ID 3. Enable the Web API and set a password 4. Point BlueBubbles webhooks at your gateway (example: `https://your-gateway-host:3000/bluebubbles-webhook?password=`) Add to your OpenClaw config: ```json { "channels": { "bluebubbles": { "serverUrl": "http://localhost:1234", "password": "your-api-password", "webhookPath": "/bluebubbles-webhook" } } } ``` Restart the gateway. Now your agent can send and receive iMessages. Full setup details: [BlueBubbles channel](/channels/bluebubbles) --- ## Save a golden image Before customizing further, snapshot your clean state: ```bash lume stop openclaw lume clone openclaw openclaw-golden ``` Reset anytime: ```bash lume stop openclaw && lume delete openclaw lume clone openclaw-golden openclaw lume run openclaw --no-display ``` --- ## Running 24/7 Keep the VM running by: - Keeping your Mac plugged in - Disabling sleep in System Settings → Energy Saver - Using `caffeinate` if needed For true always-on, consider a dedicated Mac mini or a small VPS. See [VPS hosting](/vps). --- ## Troubleshooting | Problem | Solution | | ------------------------ | ---------------------------------------------------------------------------------- | | Can't SSH into VM | Check "Remote Login" is enabled in VM's System Settings | | VM IP not showing | Wait for VM to fully boot, run `lume get openclaw` again | | Lume command not found | Add `~/.local/bin` to your PATH | | WhatsApp QR not scanning | Ensure you're logged into the VM (not host) when running `openclaw channels login` | --- ## Related docs - [VPS hosting](/vps) - [Nodes](/nodes) - [Gateway remote](/gateway/remote) - [BlueBubbles channel](/channels/bluebubbles) - [Lume Quickstart](https://cua.ai/docs/lume/guide/getting-started/quickstart) - [Lume CLI Reference](https://cua.ai/docs/lume/reference/cli-reference) - [Unattended VM Setup](https://cua.ai/docs/lume/guide/fundamentals/unattended-setup) (advanced) - [Docker Sandboxing](/install/docker) (alternative isolation approach) | https://github.com/openclaw/openclaw/blob/main//docs/platforms/macos-vm.md | main | opebclaw | [
0.03677648305892944,
-0.018084049224853516,
-0.040437035262584686,
-0.0020827448461204767,
0.007917819544672966,
-0.060883600264787674,
-0.0736912190914154,
-0.04838571324944496,
-0.009082275442779064,
-0.03431641310453415,
0.044279396533966064,
-0.044537533074617386,
0.028221216052770615,
0.02505786530673504,
0.0969625785946846,
0.14222095906734467,
0.09599125385284424,
-0.07590531557798386,
0.040253885090351105,
0.01373504288494587,
-0.007439098320901394,
0.06193232536315918,
0.027886562049388885,
-0.024442700669169426,
-0.08469142764806747,
-0.014223413541913033,
-0.008152828551828861,
0.04594418779015541,
-0.051795341074466705,
0.002146937884390354,
0.06727010011672974,
-0.004877784289419651,
-0.0131162628531456,
0.04426717758178711,
0.05407991260290146,
-0.014879368245601654,
0.03427628427743912,
-0.03339040279388428,
-0.10205399990081787,
0.022886725142598152,
0.039928823709487915,
0.018930625170469284,
-0.03755421191453934,
-0.04109564796090126,
-0.031801413744688034,
-0.03904159367084503,
-0.043263450264930725,
-0.0391479954123497,
0.06470648944377899,
0.036182504147291183,
-0.03147917985916138,
-0.04744379594922066,
0.0067315236665308475,
0.06273451447486877,
-0.01253504678606987,
0.039306364953517914,
-0.019770340994000435,
0.009251744486391544,
0.05980800464749336,
-0.032547883689403534,
0.050619352608919144,
0.026307135820388794,
0.009895622730255127,
0.00529968086630106,
-0.13441908359527588,
0.00761968782171607,
0.0036430777981877327,
-0.0020624997559934855,
-0.08480779081583023,
-0.012548096477985382,
0.03282361850142479,
-0.007256141863763332,
-0.021255530416965485,
-0.04418652132153511,
-0.023634016513824463,
-0.060574840754270554,
0.08178643882274628,
-0.07543165981769562,
-0.02575714699923992,
0.03258590027689934,
-0.10745315998792648,
-0.0517427995800972,
-0.08886771649122238,
0.056833039969205856,
-0.00655663525685668,
0.1283731460571289,
0.023047277703881264,
0.030303338542580605,
-0.013551748357713223,
0.0714661180973053,
-0.025241447612643242,
-0.10412749648094177,
-0.08064484596252441,
-0.02696923352777958,
0.011428490281105042,
-0.0008810958242975175,
-0.010824133642017841,
0.00014631336671300232,
-0.025268398225307465,
0.06904936581850052,
-0.04579930752515793,
-0.005857221782207489,
0.035591091960668564,
-0.037933558225631714,
0.01616082154214382,
0.025546126067638397,
0.06394105404615402,
0.11459095031023026,
0.04340923950076103,
-0.010539495386183262,
0.050944097340106964,
-0.0822201743721962,
0.13040980696678162,
0.035099029541015625,
-0.03752521052956581,
0.10226405411958694,
0.01641051098704338,
0.033444974571466446,
0.05318360775709152,
0.011876346543431282,
0.1738191545009613,
0.004438778385519981,
-0.009720486588776112,
0.014174854382872581,
0.05593143031001091,
0.017046494409441948,
0.061676230281591415,
6.0209999816888235e-33,
0.08670744299888611,
-0.007384882774204016,
-0.000051499271648935974,
0.007983667775988579,
0.11688002943992615,
-0.002513841725885868,
0.051385942846536636,
0.016145264729857445,
-0.060535356402397156,
0.012805665843188763,
-0.0022442967165261507,
0.034387942403554916,
0.02509775385260582,
-0.0620744563639164,
-0.005173834506422281,
-0.04189044609665871,
-0.06571915000677109,
-0.013355078175663948,
0.06503630429506302,
0.031033281236886978,
-0.0173944104462862,
-0.13960784673690796,
0.02764260023832321,
-0.02398298680782318,
-0.0308033786714077,
0.04517427086830139,
0.021945936605334282,
-0.02863299287855625,
0.01530385110527277,
0.03381170332431793,
0.055448200553655624,
0.03997506946325302,
-0.06618839502334595,
-0.015825584530830383,
-0.09539318829774857,
-0.07518734037876129,
-0.09078221023082733,
-0.04479213431477547,
-0.08319728076457977,
-0.01895793341100216,
0.016288917511701584,
-0.01572692021727562,
-0.13961929082870483,
-0.005820777732878923,
-0.020547902211546898,
-0.03759640082716942,
-0.038271766155958176,
0.028468947857618332,
0.027438586577773094,
0.07356590777635574,
-0.06990226358175278,
-0.08074411004781723,
0.039533793926239014,
-0.030850758776068687,
0.002633302705362439,
-0.0002958454715553671,
-0.0007355507696047425,
-0.041714273393154144,
-0.03388155251741409,
-0.036354441195726395,
-0.03367115929722786,
0.06112446263432503,
0.03659757599234581,
-0.003833620110526681,
0.005913769360631704,
-0.039159584790468216,
-0.025789298117160797,
0.016776612028479576,
-0.09182059019804001,
-0.08181224018335342,
-0.04002890735864639,
0.0028448174707591534,
0.021515676751732826,
-0.017124107107520103,
-0.052862681448459625,
-0.04733733832836151,
0.029974211007356644,
0.03898096829652786,
0.01229724008589983,
-0.010967716574668884,
0.1151120588183403,
-0.0032175069209188223,
0.00881989300251007,
0.022926999256014824,
0.0025252727791666985,
0.05788228288292885,
0.0530908927321434,
-0.06770717352628708,
-0.009525693021714687,
0.10241014510393143,
-0.06851667910814285,
0.01250891201198101,
0.016562271863222122,
-0.03713725134730339,
-0.09174146503210068,
-5.7078519600496124e-33,
-0.06029814854264259,
0.012135411612689495,
-0.07263268530368805,
0.036244988441467285,
0.040891751646995544,
0.032788462936878204,
0.08781297504901886,
0.013668813742697239,
-0.0747343897819519,
-0.05457078292965889,
-0.046876806765794754,
0.11021406948566437,
-0.021143710240721703,
0.0002350109425606206,
0.02632281929254532,
0.020940884947776794,
0.062210261821746826,
-0.04734702780842781,
-0.03556683287024498,
-0.013098552823066711,
-0.049221768975257874,
0.0590214766561985,
0.043617356568574905,
-0.007623756770044565,
0.04127797484397888,
0.019116535782814026,
0.061298128217458725,
0.04763752594590187,
-0.06410647183656693,
-0.039667170494794846,
0.005418004933744669,
0.07723366469144821,
-0.0078122541308403015,
-0.03613689914345741,
0.08539153635501862,
0.06946932524442673,
0.010428078472614288,
0.03285176306962967,
0.023549234494566917,
0.05085610970854759,
0.09075143933296204,
-0.025685906410217285,
-0.13845562934875488,
0.0030949946958571672,
-0.05409522354602814,
0.09696857631206512,
-0.07141875475645065,
0.016210846602916718,
-0.08941511809825897,
0.012029771693050861,
-0.014398111030459404,
0.004640432074666023,
0.00831365492194891,
0.023413773626089096,
-0.015172441489994526,
0.04339234530925751,
-0.003281989600509405,
-0.00716131366789341,
0.0020891993772238493,
-0.08822354674339294,
-0.0005703254137188196,
-0.056364938616752625,
0.0064614154398441315,
0.04362936690449715,
0.014892598614096642,
-0.07434721291065216,
-0.012102833949029446,
0.024050937965512276,
-0.026719896122813225,
-0.03440019488334656,
-0.052766017615795135,
-0.033444445580244064,
0.04031534865498543,
-0.020728405565023422,
0.03559013083577156,
-0.026549112051725388,
-0.0010133167961612344,
-0.10428549349308014,
-0.10846319794654846,
0.03212070092558861,
0.016376137733459473,
0.06250874698162079,
0.06220518425107002,
-0.05859003961086273,
0.021129118278622627,
0.02429904416203499,
-0.05891905725002289,
0.07150225341320038,
0.04888974502682686,
0.05293832719326019,
-0.08302822709083557,
0.037613432854413986,
-0.023936450481414795,
0.011618993245065212,
-0.0023489086888730526,
-5.043058948217549e-8,
-0.0694320872426033,
-0.07948661595582962,
-0.010002035647630692,
0.027842264622449875,
-0.036482203751802444,
-0.0210325438529253,
0.026323702186346054,
-0.007837891578674316,
-0.0007495351601392031,
0.024233948439359665,
0.038199033588171005,
-0.004560677334666252,
-0.030728468671441078,
0.07857393473386765,
-0.0038103582337498665,
0.10047584027051926,
0.01735169254243374,
-0.07400362938642502,
0.014287415891885757,
-0.019893841817975044,
-0.015232390724122524,
0.012974693439900875,
0.05007757246494293,
0.05117376521229744,
-0.04835920035839081,
-0.01767037808895111,
-0.05229974910616875,
-0.0532941073179245,
-0.050908561795949936,
-0.027246978133916855,
0.011678798124194145,
0.01747482642531395,
0.016509152948856354,
-0.015174582600593567,
-0.07532291114330292,
-0.007765100337564945,
-0.12336164712905884,
0.028823690488934517,
-0.014993283897638321,
0.000985215767286718,
0.009394500404596329,
-0.010018114000558853,
-0.023922912776470184,
-0.06025380641222,
-0.05905753746628761,
0.026581795886158943,
0.0038174092769622803,
0.0011103951837867498,
0.043289706110954285,
0.04118235781788826,
0.013981563970446587,
-0.03691771626472473,
0.05925020948052406,
0.053387731313705444,
0.010120353661477566,
0.014382194727659225,
0.15403322875499725,
-0.10166369378566742,
0.0426698736846447,
0.038585226982831955,
0.004336902871727943,
0.042924463748931885,
0.016516538336873055,
0.029463818296790123
] | 0.02652 |
# iOS App (Node) Availability: internal preview. The iOS app is not publicly distributed yet. ## What it does - Connects to a Gateway over WebSocket (LAN or tailnet). - Exposes node capabilities: Canvas, Screen snapshot, Camera capture, Location, Talk mode, Voice wake. - Receives `node.invoke` commands and reports node status events. ## Requirements - Gateway running on another device (macOS, Linux, or Windows via WSL2). - Network path: - Same LAN via Bonjour, \*\*or\*\* - Tailnet via unicast DNS-SD (example domain: `openclaw.internal.`), \*\*or\*\* - Manual host/port (fallback). ## Quick start (pair + connect) 1. Start the Gateway: ```bash openclaw gateway --port 18789 ``` 2. In the iOS app, open Settings and pick a discovered gateway (or enable Manual Host and enter host/port). 3. Approve the pairing request on the gateway host: ```bash openclaw nodes pending openclaw nodes approve ``` 4. Verify connection: ```bash openclaw nodes status openclaw gateway call node.list --params "{}" ``` ## Discovery paths ### Bonjour (LAN) The Gateway advertises `\_openclaw-gw.\_tcp` on `local.`. The iOS app lists these automatically. ### Tailnet (cross-network) If mDNS is blocked, use a unicast DNS-SD zone (choose a domain; example: `openclaw.internal.`) and Tailscale split DNS. See [Bonjour](/gateway/bonjour) for the CoreDNS example. ### Manual host/port In Settings, enable \*\*Manual Host\*\* and enter the gateway host + port (default `18789`). ## Canvas + A2UI The iOS node renders a WKWebView canvas. Use `node.invoke` to drive it: ```bash openclaw nodes invoke --node "iOS Node" --command canvas.navigate --params '{"url":"http://:18793/\_\_openclaw\_\_/canvas/"}' ``` Notes: - The Gateway canvas host serves `/\_\_openclaw\_\_/canvas/` and `/\_\_openclaw\_\_/a2ui/`. - The iOS node auto-navigates to A2UI on connect when a canvas host URL is advertised. - Return to the built-in scaffold with `canvas.navigate` and `{"url":""}`. ### Canvas eval / snapshot ```bash openclaw nodes invoke --node "iOS Node" --command canvas.eval --params '{"javaScript":"(() => { const {ctx} = window.\_\_openclaw; ctx.clearRect(0,0,innerWidth,innerHeight); ctx.lineWidth=6; ctx.strokeStyle=\"#ff2d55\"; ctx.beginPath(); ctx.moveTo(40,40); ctx.lineTo(innerWidth-40, innerHeight-40); ctx.stroke(); return \"ok\"; })()"}' ``` ```bash openclaw nodes invoke --node "iOS Node" --command canvas.snapshot --params '{"maxWidth":900,"format":"jpeg"}' ``` ## Voice wake + talk mode - Voice wake and talk mode are available in Settings. - iOS may suspend background audio; treat voice features as best-effort when the app is not active. ## Common errors - `NODE\_BACKGROUND\_UNAVAILABLE`: bring the iOS app to the foreground (canvas/camera/screen commands require it). - `A2UI\_HOST\_NOT\_CONFIGURED`: the Gateway did not advertise a canvas host URL; check `canvasHost` in [Gateway configuration](/gateway/configuration). - Pairing prompt never appears: run `openclaw nodes pending` and approve manually. - Reconnect fails after reinstall: the Keychain pairing token was cleared; re-pair the node. ## Related docs - [Pairing](/gateway/pairing) - [Discovery](/gateway/discovery) - [Bonjour](/gateway/bonjour) | https://github.com/openclaw/openclaw/blob/main//docs/platforms/ios.md | main | opebclaw | [
-0.044962577521800995,
-0.014403840526938438,
-0.04217550531029701,
0.005414955783635378,
-0.0507807731628418,
-0.08747534453868866,
-0.09372281283140182,
-0.0035463711246848106,
0.014220216311514378,
-0.014243544079363346,
0.051740530878305435,
-0.015310381539165974,
-0.02742568589746952,
-0.01968521438539028,
0.0761391818523407,
0.04108743742108345,
0.06098811328411102,
-0.04935302212834358,
0.062214694917201996,
-0.06241617724299431,
-0.017861245200037956,
0.004446444567292929,
0.01660662330687046,
-0.07549241185188293,
-0.0117203239351511,
-0.08379805833101273,
-0.0207925233989954,
0.025389250367879868,
0.03872174769639969,
0.0024877304676920176,
0.06138523668050766,
0.01683531142771244,
-0.08650708943605423,
0.06756588071584702,
0.018176348879933357,
-0.005268784239888191,
0.10890314728021622,
0.04693805053830147,
-0.12458641827106476,
-0.04972003027796745,
0.1555318981409073,
0.02170420065522194,
0.04214475676417351,
0.03043350577354431,
0.013349143788218498,
-0.008545968681573868,
-0.0995013490319252,
0.03489908203482628,
0.005866178777068853,
-0.02318093553185463,
-0.03071751445531845,
-0.0703989714384079,
0.013585612177848816,
0.07790102809667587,
0.03010336123406887,
0.08786652237176895,
-0.013366423547267914,
-0.03498063609004021,
0.08023786544799805,
-0.01203850470483303,
0.04586802050471306,
-0.0020143461879342794,
0.021777581423521042,
0.005039587616920471,
-0.07059165090322495,
-0.013311688788235188,
-0.027844594791531563,
-0.004777821246534586,
0.0007017405005171895,
-0.02601703628897667,
-0.00007672833453398198,
0.04296841472387314,
-0.0036868073511868715,
-0.017357969656586647,
-0.042896781116724014,
0.011550001800060272,
0.0643501728773117,
-0.02910122089087963,
-0.11455759406089783,
-0.0406140461564064,
0.044587649405002594,
0.06988736987113953,
-0.03171181678771973,
0.11718862503767014,
-0.024638250470161438,
0.07202450186014175,
-0.06617233902215958,
0.0227297842502594,
0.011794690042734146,
0.009365581907331944,
-0.07109841704368591,
-0.054242219775915146,
-0.0924956351518631,
-0.02636459842324257,
0.007048662751913071,
0.039911601692438126,
0.03683454170823097,
0.006432255730032921,
-0.0854068398475647,
0.06524398922920227,
0.017060378566384315,
-0.054135072976350784,
0.006097554694861174,
-0.054275304079055786,
-0.0458790622651577,
-0.004074963741004467,
0.03656081482768059,
0.02521783672273159,
0.09535452723503113,
0.07991433143615723,
-0.013802372850477695,
-0.030305204913020134,
0.06932831555604935,
-0.03345409408211708,
-0.046675436198711395,
0.012025055475533009,
-0.03806159272789955,
0.050894103944301605,
0.04776002839207649,
0.042469125241041183,
-0.016630589962005615,
0.030407985672354698,
-0.029789166525006294,
-0.0634431391954422,
0.03559160605072975,
0.020092014223337173,
0.0683668851852417,
5.696281422217675e-33,
0.007064832374453545,
0.003657983848825097,
-0.06660361588001251,
0.010721572674810886,
0.1180773377418518,
-0.05917452275753021,
0.09790164977312088,
-0.023574061691761017,
-0.06656855344772339,
0.018317479640245438,
-0.03461002930998802,
-0.010419405996799469,
-0.033159758895635605,
-0.10691411793231964,
-0.0047654625959694386,
-0.03421774134039879,
0.00451228953897953,
-0.006253520492464304,
0.09940743446350098,
0.0370841845870018,
0.015598664991557598,
-0.14967791736125946,
-0.02305673249065876,
-0.00180557940620929,
0.01655503734946251,
0.020675115287303925,
-0.01866621896624565,
-0.02962213009595871,
0.055735595524311066,
0.011983918026089668,
0.08395116776227951,
0.07068201154470444,
-0.04898391664028168,
-0.025914181023836136,
-0.022286653518676758,
-0.06486543267965317,
-0.04192294925451279,
-0.043386343866586685,
-0.05520664528012276,
-0.008614100515842438,
-0.05926062539219856,
-0.03212271258234978,
-0.11180630326271057,
-0.00946520920842886,
-0.012437344528734684,
-0.10095243155956268,
-0.06946082413196564,
0.01975744217634201,
0.05192352831363678,
-0.0015151904663071036,
-0.01663370616734028,
-0.045784518122673035,
-0.043715350329875946,
-0.032053932547569275,
0.008858965709805489,
0.039319951087236404,
-0.010083982720971107,
-0.024942921474575996,
-0.05185190960764885,
-0.0097272964194417,
-0.02578234113752842,
0.019335949793457985,
-0.08557707816362381,
-0.021181048825383186,
-0.005191621370613575,
0.05730760842561722,
-0.009247852489352226,
-0.013500113040208817,
-0.05133947357535362,
0.019400548189878464,
-0.0401306226849556,
0.01953267864882946,
-0.01119302585721016,
0.046849947422742844,
-0.04862380027770996,
0.07406441122293472,
-0.03903890401124954,
-0.03207072243094444,
0.07132715731859207,
0.0000276899245363893,
-0.010834038257598877,
0.03425964340567589,
-0.020776625722646713,
0.10855589061975479,
0.03899060934782028,
-0.0042323037050664425,
0.007568815723061562,
-0.07194949686527252,
-0.03398995101451874,
0.16257207095623016,
-0.043496694415807724,
0.02771040052175522,
0.006825243588536978,
-0.0030464327428489923,
-0.05743764340877533,
-6.824236210098817e-33,
-0.04483344405889511,
0.054635465145111084,
-0.07744599878787994,
-0.005369250662624836,
-0.013474426232278347,
-0.03707702085375786,
-0.009199648164212704,
-0.0008497488452121615,
-0.026768958196043968,
-0.02506214939057827,
0.022076504305005074,
0.06052982062101364,
0.066209577023983,
-0.03430796414613724,
0.013388513587415218,
-0.04368238523602486,
0.005299929995089769,
-0.030919082462787628,
0.01112240832298994,
0.06404997408390045,
-0.005243597086519003,
-0.0030340668745338917,
0.015208825469017029,
-0.04928993806242943,
-0.011854716576635838,
0.010387413203716278,
0.1095176488161087,
0.04039303585886955,
-0.0697992667555809,
-0.06865520030260086,
0.05308350548148155,
0.018291810527443886,
-0.03011137805879116,
-0.00432251300662756,
0.037367794662714005,
0.1086709201335907,
0.009784214198589325,
0.012172425165772438,
0.008579162880778313,
-0.057079214602708817,
0.08662686496973038,
-0.014000092633068562,
-0.0894431471824646,
-0.018629780039191246,
-0.015331852249801159,
0.09154016524553299,
-0.0007920825155451894,
0.025570526719093323,
-0.11201591044664383,
-0.00394867267459631,
0.03103465586900711,
0.029075074940919876,
-0.03440714254975319,
0.09966661781072617,
0.004084375686943531,
0.10846252739429474,
0.07992448657751083,
-0.016152745112776756,
-0.015395073220133781,
-0.03873327746987343,
0.08394001424312592,
-0.10801306366920471,
-0.07512414455413818,
0.09281595051288605,
0.01501508615911007,
-0.05004093796014786,
-0.03184974938631058,
0.03069246932864189,
-0.004451777786016464,
0.01690821722149849,
-0.04682645574212074,
0.01180728804320097,
0.05297935754060745,
-0.002193538472056389,
0.017413465306162834,
0.02168905921280384,
0.049788739532232285,
-0.055694036185741425,
0.0006357469828799367,
-0.008482057601213455,
-0.07936161756515503,
0.09136752039194107,
-0.01110873930156231,
-0.054024115204811096,
0.061873871833086014,
0.043432995676994324,
0.00381515477783978,
0.08325311541557312,
0.08662759512662888,
0.08078576624393463,
-0.08798518031835556,
0.017108114436268806,
-0.03070523962378502,
-0.041365645825862885,
-0.04354294762015343,
-5.580095319146494e-8,
-0.04701777920126915,
-0.007184365298599005,
-0.07104052603244781,
-0.047627728432416916,
-0.0805850699543953,
0.01655205711722374,
0.03647507354617119,
-0.058908913284540176,
0.020377833396196365,
0.02853652462363243,
-0.019779115915298462,
0.029085634276270866,
-0.06948183476924896,
0.0559890978038311,
0.01899476908147335,
0.0344652496278286,
0.057253263890743256,
-0.05121446028351784,
0.01209158543497324,
-0.060632362961769104,
-0.06650448590517044,
-0.04604353755712509,
0.01278385054320097,
0.10512004792690277,
-0.09479358047246933,
-0.024031825363636017,
0.01236166711896658,
-0.01734796166419983,
-0.037140242755413055,
0.03737577795982361,
-0.04574444517493248,
0.010201338678598404,
0.012197352945804596,
0.005912259686738253,
-0.029796775430440903,
0.07398764044046402,
-0.09034767001867294,
0.026620658114552498,
0.08058665692806244,
0.018369579687714577,
0.016601935029029846,
0.019533557817339897,
-0.015155320055782795,
-0.0215997863560915,
-0.011612990871071815,
0.0620708167552948,
-0.006304156966507435,
0.052306175231933594,
0.03402780741453171,
0.02391265146434307,
-0.030169755220413208,
-0.08853574097156525,
0.02335461787879467,
-0.056624945253133774,
0.0009802384302020073,
0.033995166420936584,
0.022815251722931862,
-0.15979567170143127,
-0.07045362144708633,
0.03519627824425697,
0.04669061675667763,
0.014786665327847004,
0.02303444966673851,
-0.00009990824764827266
] | 0.053891 |
# OpenClaw on DigitalOcean ## Goal Run a persistent OpenClaw Gateway on DigitalOcean for \*\*$6/month\*\* (or $4/mo with reserved pricing). If you want a $0/month option and don’t mind ARM + provider-specific setup, see the [Oracle Cloud guide](/platforms/oracle). ## Cost Comparison (2026) | Provider | Plan | Specs | Price/mo | Notes | | ------------ | --------------- | ---------------------- | ----------- | ------------------------------------- | | Oracle Cloud | Always Free ARM | up to 4 OCPU, 24GB RAM | $0 | ARM, limited capacity / signup quirks | | Hetzner | CX22 | 2 vCPU, 4GB RAM | €3.79 (~$4) | Cheapest paid option | | DigitalOcean | Basic | 1 vCPU, 1GB RAM | $6 | Easy UI, good docs | | Vultr | Cloud Compute | 1 vCPU, 1GB RAM | $6 | Many locations | | Linode | Nanode | 1 vCPU, 1GB RAM | $5 | Now part of Akamai | \*\*Picking a provider:\*\* - DigitalOcean: simplest UX + predictable setup (this guide) - Hetzner: good price/perf (see [Hetzner guide](/platforms/hetzner)) - Oracle Cloud: can be $0/month, but is more finicky and ARM-only (see [Oracle guide](/platforms/oracle)) --- ## Prerequisites - DigitalOcean account ([signup with $200 free credit](https://m.do.co/c/signup)) - SSH key pair (or willingness to use password auth) - ~20 minutes ## 1) Create a Droplet 1. Log into [DigitalOcean](https://cloud.digitalocean.com/) 2. Click \*\*Create → Droplets\*\* 3. Choose: - \*\*Region:\*\* Closest to you (or your users) - \*\*Image:\*\* Ubuntu 24.04 LTS - \*\*Size:\*\* Basic → Regular → \*\*$6/mo\*\* (1 vCPU, 1GB RAM, 25GB SSD) - \*\*Authentication:\*\* SSH key (recommended) or password 4. Click \*\*Create Droplet\*\* 5. Note the IP address ## 2) Connect via SSH ```bash ssh root@YOUR\_DROPLET\_IP ``` ## 3) Install OpenClaw ```bash # Update system apt update && apt upgrade -y # Install Node.js 22 curl -fsSL https://deb.nodesource.com/setup\_22.x | bash - apt install -y nodejs # Install OpenClaw curl -fsSL https://openclaw.ai/install.sh | bash # Verify openclaw --version ``` ## 4) Run Onboarding ```bash openclaw onboard --install-daemon ``` The wizard will walk you through: - Model auth (API keys or OAuth) - Channel setup (Telegram, WhatsApp, Discord, etc.) - Gateway token (auto-generated) - Daemon installation (systemd) ## 5) Verify the Gateway ```bash # Check status openclaw status # Check service systemctl --user status openclaw-gateway.service # View logs journalctl --user -u openclaw-gateway.service -f ``` ## 6) Access the Dashboard The gateway binds to loopback by default. To access the Control UI: \*\*Option A: SSH Tunnel (recommended)\*\* ```bash # From your local machine ssh -L 18789:localhost:18789 root@YOUR\_DROPLET\_IP # Then open: http://localhost:18789 ``` \*\*Option B: Tailscale Serve (HTTPS, loopback-only)\*\* ```bash # On the droplet curl -fsSL https://tailscale.com/install.sh | sh tailscale up # Configure Gateway to use Tailscale Serve openclaw config set gateway.tailscale.mode serve openclaw gateway restart ``` Open: `https:///` Notes: - Serve keeps the Gateway loopback-only and authenticates via Tailscale identity headers. - To require token/password instead, set `gateway.auth.allowTailscale: false` or use `gateway.auth.mode: "password"`. \*\*Option C: Tailnet bind (no Serve)\*\* ```bash openclaw config set gateway.bind tailnet openclaw gateway restart ``` Open: `http://:18789` (token required). ## 7) Connect Your Channels ### Telegram ```bash openclaw pairing list telegram openclaw pairing approve telegram ```` ``` ### WhatsApp ```bash openclaw channels login whatsapp # Scan QR code ``` See [Channels](/channels) for other providers. --- ## Optimizations for 1GB RAM The $6 droplet only has 1GB RAM. To keep things running smoothly: ### Add swap (recommended) ```bash fallocate -l 2G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile echo '/swapfile none swap sw 0 0' >> /etc/fstab ``` ### Use a lighter model If you're hitting OOMs, consider: - Using API-based models (Claude, GPT) instead of | https://github.com/openclaw/openclaw/blob/main//docs/platforms/digitalocean.md | main | opebclaw | [
-0.013770868070423603,
-0.012448569759726524,
-0.07204505801200867,
-0.00936524011194706,
-0.04033859074115753,
-0.07778079062700272,
-0.08670806884765625,
0.021837309002876282,
-0.047224272042512894,
0.08862529695034027,
0.04243360087275505,
-0.019665831699967384,
-0.030493132770061493,
-0.06572895497083664,
0.0464479997754097,
0.07084088027477264,
0.02773871086537838,
-0.08936165273189545,
0.04805972799658775,
-0.01629657857120037,
-0.004488938022404909,
-0.0011987828183919191,
-0.05990966781973839,
-0.11114636808633804,
0.008029348216950893,
-0.0015603923238813877,
-0.004102470353245735,
0.020010018721222878,
0.018159525468945503,
0.0032355624716728926,
-0.04610990732908249,
0.05073127523064613,
-0.053012654185295105,
-0.005177322309464216,
0.047323185950517654,
0.015276153571903706,
0.03419316187500954,
-0.05776935815811157,
-0.11142035573720932,
0.021670302376151085,
0.05316433310508728,
-0.032299794256687164,
-0.0787992924451828,
-0.05016384646296501,
-0.06640978157520294,
-0.01946496032178402,
-0.0005991664947941899,
0.013226875104010105,
0.04998268932104111,
-0.00719077605754137,
0.019091486930847168,
-0.0454210489988327,
-0.05042983591556549,
-0.0023039609659463167,
-0.03499115630984306,
-0.012838010676205158,
-0.04316570982336998,
-0.024353409186005592,
0.01588273234665394,
-0.036808114498853683,
0.029025215655565262,
-0.04848470538854599,
-0.011031792499125004,
0.07285504043102264,
-0.07762059569358826,
0.04160638898611069,
0.0074637532234191895,
-0.030768025666475296,
-0.01859929785132408,
-0.01667598821222782,
-0.046050239354372025,
-0.013415935449302197,
0.010620715096592903,
-0.023718487471342087,
-0.07860808074474335,
-0.005941716488450766,
0.1419418603181839,
-0.020847320556640625,
0.03999375179409981,
0.0030263231601566076,
0.004153697285801172,
0.08827869594097137,
-0.1608428657054901,
-0.015615805983543396,
-0.03548625484108925,
0.05274446681141853,
0.027311861515045166,
0.017573915421962738,
0.07951533794403076,
-0.089942567050457,
0.10537873208522797,
-0.025182504206895828,
0.008739410899579525,
-0.06280367076396942,
0.021082498133182526,
-0.022659527137875557,
0.011214767582714558,
-0.08098027855157852,
-0.03445380553603172,
0.028233898803591728,
0.0555691234767437,
-0.017123164609074593,
0.005121330730617046,
-0.008243917487561703,
-0.08489305526018143,
0.03222165256738663,
-0.034250129014253616,
0.06384624540805817,
0.04025476425886154,
0.07480143755674362,
-0.037956442683935165,
-0.02443493902683258,
0.018390212208032608,
-0.04838823154568672,
-0.05110904946923256,
0.0583229660987854,
-0.08948807418346405,
-0.13370922207832336,
0.04296053573489189,
-0.01584543287754059,
-0.015461845323443413,
-0.08747037500143051,
0.009658833034336567,
-0.005291442386806011,
0.01359105296432972,
0.017852280288934708,
0.01598168909549713,
8.590788222297751e-34,
-0.02970362827181816,
0.013485132716596127,
-0.02031971886754036,
-0.16786402463912964,
0.11729195713996887,
0.03615012392401695,
0.04565902426838875,
0.02603241801261902,
-0.060065530240535736,
0.05648260563611984,
-0.07562007009983063,
-0.0008842905517667532,
-0.05244508758187294,
-0.00013015957665629685,
0.08319542557001114,
-0.0069055212661623955,
0.010854079388082027,
0.022592831403017044,
0.0697912648320198,
0.05195126309990883,
0.04667949303984642,
-0.06399159878492355,
-0.02902834303677082,
-0.023300785571336746,
0.08791861683130264,
-0.025537870824337006,
0.06520238518714905,
-0.049238886684179306,
0.03727487474679947,
0.027939768508076668,
0.017160892486572266,
-0.06346923857927322,
-0.0346875861287117,
-0.05841992422938347,
0.007751760073006153,
-0.025347651913762093,
-0.1526220440864563,
-0.004209934268146753,
-0.034375667572021484,
-0.0012380244443193078,
-0.004762958735227585,
0.07184748351573944,
-0.03572722524404526,
-0.025036068633198738,
0.07634826004505157,
-0.048617299646139145,
0.03853600099682808,
0.09085246175527573,
0.006264549680054188,
-0.001428239163942635,
-0.06107550859451294,
0.03386536240577698,
-0.06398547440767288,
0.04950099065899849,
-0.007559937424957752,
0.020326977595686913,
0.01509849913418293,
-0.0164528489112854,
-0.004968535155057907,
0.0331590473651886,
-0.04445050656795502,
-0.08819349855184555,
-0.022407295182347298,
-0.008305832743644714,
-0.032214101403951645,
0.018014531582593918,
0.003709271317347884,
0.07377809286117554,
0.014952295459806919,
-0.02348879538476467,
0.009112861938774586,
-0.10975381731987,
0.0232558436691761,
0.06420636177062988,
-0.009580247104167938,
-0.018812451511621475,
0.004050247836858034,
-0.039475180208683014,
-0.0327652245759964,
0.02386024408042431,
-0.029885629191994667,
0.07255999743938446,
-0.040736909955739975,
0.04082987830042839,
-0.020255597308278084,
0.03719000890851021,
0.06367519497871399,
0.017028598114848137,
-0.06342048197984695,
0.06626345217227936,
0.010627868585288525,
0.006313546095043421,
0.021371450275182724,
-0.021617699414491653,
0.021764012053608894,
-4.698519980529794e-33,
-0.07334507256746292,
-0.003906375262886286,
-0.02488073520362377,
0.011627819389104843,
0.06213045492768288,
-0.08049222081899643,
0.048658277839422226,
0.08533640205860138,
-0.03692489489912987,
-0.03808733820915222,
-0.0769149586558342,
0.04805552214384079,
0.040178485214710236,
-0.017019063234329224,
0.02947993017733097,
-0.03806651011109352,
-0.032724056392908096,
-0.047142256051301956,
0.017067084088921547,
0.07171396166086197,
-0.025296030566096306,
0.051476217806339264,
0.02317918837070465,
-0.04531267285346985,
0.07366816699504852,
0.050545550882816315,
-0.009166114032268524,
0.025644687935709953,
-0.05896148458123207,
0.01575607620179653,
-0.10205773264169693,
-0.019167585298419,
-0.0486978143453598,
-0.014909367077052593,
-0.02157791517674923,
-0.027102762833237648,
0.04389280080795288,
0.045086782425642014,
0.013286394067108631,
0.09570775926113129,
0.0970967710018158,
-0.06314051151275635,
-0.028200604021549225,
-0.045979443937540054,
-0.028862731531262398,
0.04116542637348175,
-0.028445862233638763,
0.018104568123817444,
-0.06521529704332352,
-0.04192577302455902,
-0.04308050125837326,
0.0455685630440712,
-0.03639192879199982,
0.11512784659862518,
0.021137285977602005,
0.0021999578457325697,
-0.003618417074903846,
0.07070763409137726,
-0.06619586050510406,
-0.04787369444966316,
0.053181059658527374,
-0.026739083230495453,
-0.019512325525283813,
0.10805000364780426,
0.03737470507621765,
0.018314994871616364,
0.09202685207128525,
-0.0022472429554909468,
-0.11882956326007843,
-0.016399694606661797,
-0.10858990252017975,
-0.06284601241350174,
0.03101855143904686,
-0.029439013451337814,
0.002679605968296528,
0.018468406051397324,
-0.05178967863321304,
-0.046617429703474045,
0.021631158888339996,
-0.01268450915813446,
-0.12349773943424225,
0.0315934494137764,
-0.005028856452554464,
-0.010457663796842098,
-0.024303395301103592,
0.007605317514389753,
0.0023945975117385387,
-0.05230436846613884,
0.017177904024720192,
0.09721866995096207,
-0.11544614285230637,
-0.04203134775161743,
-0.0590675063431263,
0.016847554594278336,
-0.020742936059832573,
-4.667946029712766e-8,
0.058270178735256195,
-0.019900651648640633,
0.015978381037712097,
0.04339124262332916,
0.03769164904952049,
-0.0279950350522995,
0.03456376492977142,
0.019910598173737526,
-0.024323908612132072,
0.07016876339912415,
0.07626384496688843,
-0.0004943365347571671,
-0.06831497699022293,
0.008993260562419891,
-0.06548935174942017,
0.08523549139499664,
0.03711763769388199,
-0.04509740695357323,
-0.030617594718933105,
-0.12011206150054932,
-0.006465785671025515,
0.01568845845758915,
0.0016465684166178107,
0.010238642804324627,
-0.04215613380074501,
0.05102652311325073,
0.05331999063491821,
0.05731366574764252,
0.042639102786779404,
0.03724263980984688,
-0.04728510230779648,
-0.019279781728982925,
0.0034429479856044054,
-0.05460738390684128,
-0.021443046629428864,
0.005886204540729523,
-0.11265314370393753,
0.07543766498565674,
-0.020295090973377228,
-0.03701641410589218,
0.04386981576681137,
0.052091795951128006,
-0.02243751287460327,
-0.025718996301293373,
0.03481336683034897,
0.02565905451774597,
-0.10180120170116425,
-0.023884354159235954,
0.046746231615543365,
0.0671009048819542,
-0.0033963427413254976,
-0.033309224992990494,
0.045633114874362946,
0.0487036406993866,
0.10335508733987808,
-0.028212716802954674,
-0.022218743339180946,
-0.033848993480205536,
-0.01631966046988964,
0.14034606516361237,
-0.009057085029780865,
-0.04380050301551819,
0.027374371886253357,
0.0004312682431191206
] | 0.074869 |
RAM. To keep things running smoothly: ### Add swap (recommended) ```bash fallocate -l 2G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile echo '/swapfile none swap sw 0 0' >> /etc/fstab ``` ### Use a lighter model If you're hitting OOMs, consider: - Using API-based models (Claude, GPT) instead of local models - Setting `agents.defaults.model.primary` to a smaller model ### Monitor memory ```bash free -h htop ``` --- ## Persistence All state lives in: - `~/.openclaw/` — config, credentials, session data - `~/.openclaw/workspace/` — workspace (SOUL.md, memory, etc.) These survive reboots. Back them up periodically: ```bash tar -czvf openclaw-backup.tar.gz ~/.openclaw ~/.openclaw/workspace ``` --- ## Oracle Cloud Free Alternative Oracle Cloud offers **Always Free** ARM instances that are significantly more powerful than any paid option here — for $0/month. | What you get | Specs | | ----------------- | ---------------------- | | **4 OCPUs** | ARM Ampere A1 | | **24GB RAM** | More than enough | | **200GB storage** | Block volume | | **Forever free** | No credit card charges | **Caveats:** - Signup can be finicky (retry if it fails) - ARM architecture — most things work, but some binaries need ARM builds For the full setup guide, see [Oracle Cloud](/platforms/oracle). For signup tips and troubleshooting the enrollment process, see this [community guide](https://gist.github.com/rssnyder/51e3cfedd730e7dd5f4a816143b25dbd). --- ## Troubleshooting ### Gateway won't start ```bash openclaw gateway status openclaw doctor --non-interactive journalctl -u openclaw --no-pager -n 50 ``` ### Port already in use ```bash lsof -i :18789 kill ``` ### Out of memory ```bash # Check memory free -h # Add more swap # Or upgrade to $12/mo droplet (2GB RAM) ``` --- ## See Also - [Hetzner guide](/platforms/hetzner) — cheaper, more powerful - [Docker install](/install/docker) — containerized setup - [Tailscale](/gateway/tailscale) — secure remote access - [Configuration](/gateway/configuration) — full config reference ```` | https://github.com/openclaw/openclaw/blob/main//docs/platforms/digitalocean.md | main | opebclaw | [
-0.024241117760539055,
0.0020646401681005955,
-0.06841013580560684,
0.03622254729270935,
0.051866043359041214,
-0.02120736986398697,
-0.03660297021269798,
0.0682072788476944,
-0.015299421735107899,
0.028189783915877342,
-0.014538452960550785,
0.05163581669330597,
-0.005651318002492189,
-0.05245755612850189,
0.009981922805309296,
0.07883096486330032,
-0.02092439867556095,
-0.016667813062667847,
-0.03501357510685921,
0.0010003804927691817,
-0.046783074736595154,
-0.025375325232744217,
0.0034535208251327276,
-0.01413265336304903,
-0.05463872104883194,
0.019103871658444405,
0.0008415696211159229,
-0.02229972556233406,
-0.0431341715157032,
-0.1015913262963295,
-0.032565873116254807,
0.036407895386219025,
-0.14243832230567932,
-0.023613449186086655,
0.0331772081553936,
0.150600403547287,
-0.020074134692549706,
-0.09030325710773468,
-0.07852719724178314,
-0.007696331944316626,
0.06014633551239967,
-0.008142393082380295,
-0.08123142272233963,
-0.015531159937381744,
-0.03395330533385277,
-0.003963674884289503,
0.010795247741043568,
-0.06166677922010422,
0.02032816782593727,
-0.042637839913368225,
-0.0035882294178009033,
0.024326393380761147,
0.005737891420722008,
0.0430380143225193,
0.029020853340625763,
0.06470369547605515,
-0.00011420393275329843,
-0.03691355511546135,
0.02126174047589302,
-0.05204864963889122,
0.014967934228479862,
0.058687474578619,
-0.02673441916704178,
0.018640456721186638,
-0.02539549581706524,
0.01940707117319107,
0.04896651953458786,
-0.03042728826403618,
0.009157607331871986,
0.0016256214585155249,
-0.07837959378957748,
-0.0006651756120845675,
-0.05579958111047745,
-0.016601258888840675,
-0.047156840562820435,
-0.04353974014520645,
0.08345018327236176,
-0.0795874074101448,
0.009053711779415607,
-0.024831579998135567,
-0.06444534659385681,
-0.005531434901058674,
-0.0521402433514595,
-0.011410340666770935,
-0.006732413079589605,
0.04923553019762039,
0.05047722905874252,
0.005527281668037176,
0.05599446967244148,
-0.04032096639275551,
0.058894116431474686,
0.015710532665252686,
0.05627329275012016,
-0.04264325276017189,
0.008402609266340733,
0.036345869302749634,
0.07255135476589203,
0.038327962160110474,
-0.026779426261782646,
0.1119842454791069,
0.03464289754629135,
0.06671925634145737,
0.09243766218423843,
0.02816559374332428,
-0.054451726377010345,
0.006271728314459324,
0.0242311954498291,
0.05846059322357178,
-0.07733359932899475,
-0.025286255404353142,
0.05928836762905121,
0.03920406475663185,
0.042465224862098694,
0.05769788473844528,
0.030300764366984367,
0.008052241057157516,
-0.09874194115400314,
-0.05593328922986984,
-0.050146277993917465,
0.0868317261338234,
0.1070680022239685,
-0.022075816988945007,
0.04591874033212662,
-0.0016454075230285525,
0.000019287759641883895,
0.09918472915887833,
-0.034042514860630035,
6.52376956845307e-33,
0.055096469819545746,
-0.04950493201613426,
-0.011793379671871662,
0.022623080760240555,
0.04237387329339981,
0.08232610672712326,
-0.021447446197271347,
0.0712270513176918,
-0.02480701357126236,
0.08351898938417435,
-0.004600367043167353,
0.04445387050509453,
-0.07607004046440125,
-0.03159196302294731,
0.022013714537024498,
-0.05301512032747269,
-0.03225565701723099,
0.029732326045632362,
0.006695441901683807,
-0.0233070757240057,
0.0592401847243309,
0.017233826220035553,
-0.06074809283018112,
-0.010197143070399761,
0.02409234084188938,
0.006640502717345953,
0.021030666306614876,
-0.05332329496741295,
-0.03160342574119568,
0.012813001871109009,
-0.005062615033239126,
0.010714059695601463,
-0.04841820150613785,
-0.014393012039363384,
-0.03897111862897873,
-0.009479147382080555,
-0.13916157186031342,
-0.01875949278473854,
-0.018549468368291855,
-0.09367362409830093,
-0.00892881490290165,
0.0834093764424324,
-0.011804232373833656,
-0.08332879841327667,
0.04686442390084267,
-0.07223013043403625,
0.0617377869784832,
0.01818094216287136,
-0.046662960201501846,
0.0514841303229332,
-0.0022198809310793877,
0.0037084794603288174,
-0.012396796606481075,
0.0979737713932991,
-0.03682664781808853,
0.03822450339794159,
0.0002336138131795451,
-0.07458752393722534,
0.05705777183175087,
0.09217509627342224,
-0.035768378525972366,
-0.029483800753951073,
0.003861784702166915,
0.014135245233774185,
0.031964704394340515,
0.005830439738929272,
-0.0012708306312561035,
0.07010158896446228,
-0.00005868409789400175,
0.01537388190627098,
-0.013170354999601841,
-0.07448972761631012,
0.058583956211805344,
0.039127156138420105,
-0.026873093098402023,
-0.045074012130498886,
-0.017800072208046913,
-0.08012449741363525,
-0.14854973554611206,
-0.03047114424407482,
0.08954478800296783,
0.003117258194833994,
-0.018084237352013588,
-0.03998790308833122,
0.052119191735982895,
-0.017087377607822418,
0.0057794274762272835,
-0.09969736635684967,
-0.08358828723430634,
0.06395257264375687,
0.011248349212110043,
-0.05474419146776199,
0.09416849166154861,
-0.07255463302135468,
-0.0414263941347599,
-7.060473840415633e-33,
0.027796024456620216,
-0.06116713210940361,
0.008834549225866795,
0.022513316944241524,
0.05845208093523979,
-0.042174022644758224,
-0.018245065584778786,
0.035635724663734436,
-0.10675296187400818,
-0.09906383603811264,
-0.09283516556024551,
0.02765028178691864,
0.030591025948524475,
-0.01667165756225586,
0.04667532071471214,
-0.03205907717347145,
0.018538111820816994,
-0.11342068016529083,
0.007920055650174618,
0.06765706092119217,
-0.014692670665681362,
0.10884209722280502,
-0.0219977255910635,
0.026250306516885757,
0.017068546265363693,
0.0525367334485054,
-0.03618476539850235,
0.06504596024751663,
-0.024837316945195198,
-0.011751065030694008,
0.006607957184314728,
-0.003339353483170271,
-0.027051402255892754,
0.04440125450491905,
0.00892974715679884,
-0.010426321066915989,
-0.007800821214914322,
0.05640660971403122,
-0.03581857681274414,
0.06530017405748367,
0.14742718636989594,
-0.0314168855547905,
-0.0473531074821949,
-0.029437027871608734,
-0.017138225957751274,
0.11192186921834946,
-0.13372865319252014,
-0.030061854049563408,
-0.03890759125351906,
-0.004740528762340546,
-0.010913042351603508,
-0.03270251676440239,
-0.04857134073972702,
0.007206117734313011,
0.02717868611216545,
-0.07598807662725449,
-0.009300824254751205,
0.006779893301427364,
-0.010713748633861542,
-0.008541160263121128,
0.03854844719171524,
-0.04580812156200409,
-0.04776354879140854,
0.033372826874256134,
-0.02392074652016163,
-0.06356193870306015,
-0.009376892820000648,
-0.013562077656388283,
-0.021925322711467743,
0.0269745085388422,
-0.022714437916874886,
-0.007360810413956642,
-0.0012614390579983592,
-0.042553745210170746,
-0.01479288749396801,
0.014497499912977219,
-0.012234083376824856,
-0.12672550976276398,
0.059897441416978836,
-0.011710102669894695,
-0.12412714958190918,
-0.041074808686971664,
-0.02098916843533516,
-0.007943680509924889,
-0.053665585815906525,
0.025210686028003693,
-0.07821585983037949,
0.04881684109568596,
0.01922524720430374,
0.019841641187667847,
-0.09319546818733215,
-0.00077643315307796,
-0.014901291579008102,
0.021437887102365494,
0.015777206048369408,
-5.403093439326767e-8,
0.08904285728931427,
-0.013884740881621838,
0.10349012166261673,
0.10894867032766342,
0.01515149511396885,
-0.10209738463163376,
0.07116205990314484,
0.08573530614376068,
-0.006454796530306339,
0.04651063680648804,
0.10892505198717117,
0.004094867035746574,
-0.013309442438185215,
-0.0025275659281760454,
0.010345560498535633,
0.07464371621608734,
0.027090590447187424,
0.05124285817146301,
-0.07168681919574738,
-0.10464023798704147,
-0.030008992180228233,
0.06001894176006317,
0.05282917618751526,
0.0830824077129364,
0.012802832759916782,
-0.044453565031290054,
0.1552097052335739,
0.049862511456012726,
-0.0015776115469634533,
0.03819144517183304,
-0.028750233352184296,
-0.010066136717796326,
0.028659723699092865,
-0.031197192147374153,
-0.01694718562066555,
0.05291977524757385,
-0.028683459386229515,
0.04207185283303261,
0.06460985541343689,
-0.03459029272198677,
-0.02719053439795971,
0.04240235313773155,
-0.05883098021149635,
-0.004405180923640728,
-0.045630745589733124,
-0.01705443672835827,
-0.0628751888871193,
0.03390824794769287,
0.014398938044905663,
-0.006219747010618448,
-0.04551331326365471,
0.003719530999660492,
-0.005535251460969448,
0.04994054138660431,
0.03445148095488548,
0.020621735602617264,
0.008181369863450527,
0.0579557791352272,
0.03149213641881943,
0.04706760123372078,
0.011548387818038464,
-0.07126304507255554,
-0.05564709007740021,
-0.0564538948237896
] | 0.074338 |
# OpenClaw on Hetzner (Docker, Production VPS Guide) ## Goal Run a persistent OpenClaw Gateway on a Hetzner VPS using Docker, with durable state, baked-in binaries, and safe restart behavior. If you want “OpenClaw 24/7 for ~$5”, this is the simplest reliable setup. Hetzner pricing changes; pick the smallest Debian/Ubuntu VPS and scale up if you hit OOMs. ## What are we doing (simple terms)? - Rent a small Linux server (Hetzner VPS) - Install Docker (isolated app runtime) - Start the OpenClaw Gateway in Docker - Persist `~/.openclaw` + `~/.openclaw/workspace` on the host (survives restarts/rebuilds) - Access the Control UI from your laptop via an SSH tunnel The Gateway can be accessed via: - SSH port forwarding from your laptop - Direct port exposure if you manage firewalling and tokens yourself This guide assumes Ubuntu or Debian on Hetzner. If you are on another Linux VPS, map packages accordingly. For the generic Docker flow, see [Docker](/install/docker). --- ## Quick path (experienced operators) 1. Provision Hetzner VPS 2. Install Docker 3. Clone OpenClaw repository 4. Create persistent host directories 5. Configure `.env` and `docker-compose.yml` 6. Bake required binaries into the image 7. `docker compose up -d` 8. Verify persistence and Gateway access --- ## What you need - Hetzner VPS with root access - SSH access from your laptop - Basic comfort with SSH + copy/paste - ~20 minutes - Docker and Docker Compose - Model auth credentials - Optional provider credentials - WhatsApp QR - Telegram bot token - Gmail OAuth --- ## 1) Provision the VPS Create an Ubuntu or Debian VPS in Hetzner. Connect as root: ```bash ssh root@YOUR\_VPS\_IP ``` This guide assumes the VPS is stateful. Do not treat it as disposable infrastructure. --- ## 2) Install Docker (on the VPS) ```bash apt-get update apt-get install -y git curl ca-certificates curl -fsSL https://get.docker.com | sh ``` Verify: ```bash docker --version docker compose version ``` --- ## 3) Clone the OpenClaw repository ```bash git clone https://github.com/openclaw/openclaw.git cd openclaw ``` This guide assumes you will build a custom image to guarantee binary persistence. --- ## 4) Create persistent host directories Docker containers are ephemeral. All long-lived state must live on the host. ```bash mkdir -p /root/.openclaw mkdir -p /root/.openclaw/workspace # Set ownership to the container user (uid 1000): chown -R 1000:1000 /root/.openclaw chown -R 1000:1000 /root/.openclaw/workspace ``` --- ## 5) Configure environment variables Create `.env` in the repository root. ```bash OPENCLAW\_IMAGE=openclaw:latest OPENCLAW\_GATEWAY\_TOKEN=change-me-now OPENCLAW\_GATEWAY\_BIND=lan OPENCLAW\_GATEWAY\_PORT=18789 OPENCLAW\_CONFIG\_DIR=/root/.openclaw OPENCLAW\_WORKSPACE\_DIR=/root/.openclaw/workspace GOG\_KEYRING\_PASSWORD=change-me-now XDG\_CONFIG\_HOME=/home/node/.openclaw ``` Generate strong secrets: ```bash openssl rand -hex 32 ``` \*\*Do not commit this file.\*\* --- ## 6) Docker Compose configuration Create or update `docker-compose.yml`. ```yaml services: openclaw-gateway: image: ${OPENCLAW\_IMAGE} build: . restart: unless-stopped env\_file: - .env environment: - HOME=/home/node - NODE\_ENV=production - TERM=xterm-256color - OPENCLAW\_GATEWAY\_BIND=${OPENCLAW\_GATEWAY\_BIND} - OPENCLAW\_GATEWAY\_PORT=${OPENCLAW\_GATEWAY\_PORT} - OPENCLAW\_GATEWAY\_TOKEN=${OPENCLAW\_GATEWAY\_TOKEN} - GOG\_KEYRING\_PASSWORD=${GOG\_KEYRING\_PASSWORD} - XDG\_CONFIG\_HOME=${XDG\_CONFIG\_HOME} - PATH=/home/linuxbrew/.linuxbrew/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin volumes: - ${OPENCLAW\_CONFIG\_DIR}:/home/node/.openclaw - ${OPENCLAW\_WORKSPACE\_DIR}:/home/node/.openclaw/workspace ports: # Recommended: keep the Gateway loopback-only on the VPS; access via SSH tunnel. # To expose it publicly, remove the `127.0.0.1:` prefix and firewall accordingly. - "127.0.0.1:${OPENCLAW\_GATEWAY\_PORT}:18789" # Optional: only if you run iOS/Android nodes against this VPS and need Canvas host. # If you expose this publicly, read /gateway/security and firewall accordingly. # - "18793:18793" command: [ "node", "dist/index.js", "gateway", "--bind", "${OPENCLAW\_GATEWAY\_BIND}", "--port", "${OPENCLAW\_GATEWAY\_PORT}", ] ``` --- ## 7) Bake required binaries into the image (critical) Installing binaries inside a running container is a trap. Anything installed at runtime will be lost on restart. All external binaries required by skills must be installed at image build time. The examples below show three common binaries only: - `gog` for Gmail access - `goplaces` for Google Places - `wacli` | https://github.com/openclaw/openclaw/blob/main//docs/platforms/hetzner.md | main | opebclaw | [
-0.04975612461566925,
0.07455185055732727,
-0.06801368296146393,
0.0008871533209457994,
0.002035565674304962,
-0.07357355952262878,
-0.0894133448600769,
0.0638190507888794,
-0.029847024008631706,
0.004254714120179415,
0.017154034227132797,
-0.0011637982679530978,
0.027313202619552612,
-0.016217701137065887,
0.04613872990012169,
0.026140809059143066,
0.09242776036262512,
-0.008775906637310982,
0.042623121291399,
-0.042188119143247604,
-0.11926227807998657,
0.025217078626155853,
0.02784215286374092,
-0.13084730505943298,
-0.07979827374219894,
0.020269691944122314,
-0.01975167728960514,
-0.02453770861029625,
-0.011267295107245445,
-0.0170240830630064,
0.06527911126613617,
-0.021112706512212753,
-0.11745510250329971,
0.0348028801381588,
0.015995534136891365,
0.02758895978331566,
0.014136569574475288,
-0.030929962173104286,
-0.052135106176137924,
0.012917885556817055,
0.07105372101068497,
-0.06961549818515778,
-0.014034281484782696,
-0.06177391856908798,
-0.06173670291900635,
-0.039896294474601746,
-0.0049825445748865604,
-0.08088451623916626,
0.05405336990952492,
-0.00904855877161026,
-0.02195809595286846,
-0.09783279895782471,
0.033999133855104446,
-0.0017440326046198606,
0.00826600007712841,
-0.0031009286176413298,
0.03997161611914635,
-0.027003448456525803,
-0.00729343481361866,
-0.057663049548864365,
0.05083655193448067,
-0.011365278623998165,
-0.0883495956659317,
0.011519752442836761,
-0.13245360553264618,
-0.04248896241188049,
0.05185723304748535,
0.0235521849244833,
-0.00592292845249176,
0.018576422706246376,
-0.0467166006565094,
0.03233245387673378,
-0.02000977285206318,
-0.05878336727619171,
-0.08696194738149643,
-0.036290816962718964,
0.0675387904047966,
-0.03813949227333069,
-0.019421570003032684,
0.03994634374976158,
0.02966049127280712,
0.026742706075310707,
-0.10837937146425247,
-0.0038700622972100973,
-0.061368849128484726,
0.09346526116132736,
0.014983437024056911,
0.06068072095513344,
0.1243579238653183,
-0.06398334354162216,
0.024508414790034294,
-0.04771127551794052,
-0.02777749113738537,
-0.002235748805105686,
0.022958869114518166,
-0.08230143785476685,
0.019507797434926033,
-0.00896916538476944,
-0.023845937103033066,
0.06521114706993103,
0.014881400391459465,
-0.06301790475845337,
0.047894906252622604,
-0.04525486379861832,
-0.03345626965165138,
0.047770023345947266,
0.03767292574048042,
0.1278873085975647,
-0.024365494027733803,
0.03258117288351059,
-0.07935970276594162,
-0.04228772595524788,
0.03067672997713089,
0.013081907294690609,
-0.052716705948114395,
0.027412571012973785,
-0.014797084964811802,
-0.06071868911385536,
0.024585852399468422,
0.03945448249578476,
0.0627075806260109,
0.05410873517394066,
0.10810603201389313,
-0.020375778898596764,
0.019641127437353134,
0.08865687251091003,
0.022005541250109673,
4.9442218097386685e-33,
-0.0023510856553912163,
-0.028011443093419075,
-0.014134399592876434,
-0.03309681639075279,
0.15888631343841553,
0.10566413402557373,
0.019457940012216568,
-0.0007159200613386929,
-0.047712065279483795,
0.037473682314157486,
-0.02820686250925064,
-0.01786821149289608,
-0.05398678779602051,
-0.02842898666858673,
0.04865887016057968,
-0.05367930233478546,
-0.06448481231927872,
0.015443013049662113,
0.018122080713510513,
0.01355519238859415,
0.03944769874215126,
-0.06658702343702316,
-0.040383607149124146,
0.0030043087899684906,
0.05754642188549042,
-0.05574629828333855,
0.017133330926299095,
-0.014581108465790749,
-0.035190362483263016,
-0.001596955582499504,
0.026250015944242477,
0.0013014478608965874,
-0.023738732561469078,
-0.021183373406529427,
-0.06164488568902016,
0.002763890428468585,
-0.09168054908514023,
0.005250263027846813,
-0.010219989344477654,
-0.07139264047145844,
0.0024137876462191343,
-0.05219901725649834,
-0.04221535846590996,
-0.014844728633761406,
0.052221305668354034,
-0.04437919333577156,
0.00010912890138570219,
0.09548680484294891,
0.009602605365216732,
0.005814443342387676,
-0.022428706288337708,
-0.0381791777908802,
-0.08281931281089783,
0.03817356377840042,
-0.10869207978248596,
0.05484095960855484,
-0.00490608811378479,
-0.03750961273908615,
0.061986371874809265,
0.022633356973528862,
-0.0954386368393898,
0.06352802366018295,
-0.005692218896001577,
0.016507387161254883,
-0.01830027997493744,
0.009271543473005295,
-0.031793251633644104,
0.08011014014482498,
-0.042024314403533936,
0.06700432300567627,
-0.023427696898579597,
-0.02339291013777256,
0.038575656712055206,
0.0404093973338604,
0.025146156549453735,
0.027951106429100037,
-0.03130999207496643,
-0.021082431077957153,
0.038688987493515015,
-0.01755393110215664,
0.008738679811358452,
0.08097255975008011,
0.016155429184436798,
0.06375210732221603,
-0.004849996417760849,
-0.0029885771218687296,
-0.002098622266203165,
-0.00018417109095025808,
-0.006779290270060301,
0.09923510998487473,
0.005518217571079731,
-0.03461815044283867,
0.0015523724723607302,
-0.04192262515425682,
0.008139011450111866,
-7.855083042316545e-33,
-0.03463444858789444,
-0.0008610299555584788,
-0.020605558529496193,
0.037843216210603714,
0.10269381105899811,
0.025701086968183517,
0.027914956212043762,
0.002215176820755005,
-0.0807676911354065,
-0.0682799369096756,
-0.07638691365718842,
0.12449450045824051,
0.0712486281991005,
-0.006500910967588425,
0.026080451905727386,
-0.07503807544708252,
-0.03876537084579468,
-0.040439169853925705,
0.012318134307861328,
0.05997737869620323,
-0.006060550920665264,
0.016750769689679146,
0.0017031306633725762,
-0.006157031748443842,
-0.03147633373737335,
0.03691130876541138,
0.08147159218788147,
0.015116479247808456,
-0.07500618696212769,
0.06624052673578262,
-0.01112788263708353,
-0.05406138300895691,
0.04204544425010681,
0.007953568361699581,
0.10383187979459763,
0.05033831670880318,
-0.017782846465706825,
0.06414790451526642,
-0.0005661788745783269,
-0.04575758054852486,
0.02678406797349453,
-0.08005110174417496,
-0.027157491073012352,
0.020218392834067345,
-0.02995084412395954,
0.03145831450819969,
-0.08330105990171432,
-0.05099393427371979,
-0.12035277485847473,
-0.03834439069032669,
-0.10186871141195297,
0.0037893701810389757,
-0.021893445402383804,
0.07368980348110199,
0.05030730366706848,
0.016177788376808167,
0.002547777956351638,
-0.004348171874880791,
-0.00463875662535429,
0.006692748982459307,
0.07683241367340088,
-0.036751892417669296,
-0.03006836213171482,
0.15063825249671936,
-0.03956032171845436,
-0.11775653064250946,
0.02397232875227928,
0.022228511050343513,
-0.0241923276335001,
0.005172011908143759,
-0.036762088537216187,
0.03334523364901543,
0.033785875886678696,
-0.033250510692596436,
0.012638995423913002,
-0.03565922752022743,
0.05907981097698212,
-0.03853325545787811,
-0.040046028792858124,
0.005166635382920504,
0.008831802755594254,
-0.04733875021338463,
0.027972916141152382,
-0.15372107923030853,
0.013798066414892673,
-0.029543351382017136,
0.024393852800130844,
0.015782203525304794,
0.11629938334226608,
0.03273548558354378,
-0.10438625514507294,
-0.07785460352897644,
-0.0679716020822525,
0.014924481511116028,
0.04967724159359932,
-5.29866248655253e-8,
-0.004964421968907118,
0.020826101303100586,
0.021791616454720497,
0.04280325025320053,
-0.09066155552864075,
-0.0727071687579155,
0.03553152084350586,
0.0045401304960250854,
-0.0075213429518043995,
0.06518220156431198,
0.0759909525513649,
-0.04265103116631508,
-0.06103404238820076,
0.007837412878870964,
-0.049927935004234314,
0.11311274766921997,
0.05990799888968468,
0.02079707756638527,
0.011743031442165375,
-0.01765470579266548,
-0.025190312415361404,
-0.016849853098392487,
0.056304752826690674,
0.03775077313184738,
-0.01960662566125393,
0.014984756708145142,
-0.01965460181236267,
-0.02759542688727379,
0.004435272887349129,
0.007256451528519392,
0.02766072005033493,
-0.0032091597095131874,
-0.01618901453912258,
0.05003218725323677,
0.015426627360284328,
-0.007825599052011967,
-0.12046585232019424,
-0.012329970486462116,
0.05221334472298622,
-0.006263722199946642,
0.004625952802598476,
-0.030448067933321,
-0.037739407271146774,
-0.05985717847943306,
-0.0760418102145195,
0.035729873925447464,
-0.056406453251838684,
-0.05869024619460106,
-0.021422039717435837,
0.07412577420473099,
0.053483836352825165,
0.0043087429367005825,
0.03994625061750412,
0.06754866242408752,
0.1273094117641449,
0.08653435111045837,
-0.027533477172255516,
0.009495243430137634,
-0.0020981463603675365,
0.028195951133966446,
0.016496961936354637,
0.047284629195928574,
0.010614092461764812,
0.01301068626344204
] | -0.02392 |
binaries inside a running container is a trap. Anything installed at runtime will be lost on restart. All external binaries required by skills must be installed at image build time. The examples below show three common binaries only: - `gog` for Gmail access - `goplaces` for Google Places - `wacli` for WhatsApp These are examples, not a complete list. You may install as many binaries as needed using the same pattern. If you add new skills later that depend on additional binaries, you must: 1. Update the Dockerfile 2. Rebuild the image 3. Restart the containers \*\*Example Dockerfile\*\* ```dockerfile FROM node:22-bookworm RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/\* # Example binary 1: Gmail CLI RUN curl -L https://github.com/steipete/gog/releases/latest/download/gog\_Linux\_x86\_64.tar.gz \ | tar -xz -C /usr/local/bin && chmod +x /usr/local/bin/gog # Example binary 2: Google Places CLI RUN curl -L https://github.com/steipete/goplaces/releases/latest/download/goplaces\_Linux\_x86\_64.tar.gz \ | tar -xz -C /usr/local/bin && chmod +x /usr/local/bin/goplaces # Example binary 3: WhatsApp CLI RUN curl -L https://github.com/steipete/wacli/releases/latest/download/wacli\_Linux\_x86\_64.tar.gz \ | tar -xz -C /usr/local/bin && chmod +x /usr/local/bin/wacli # Add more binaries below using the same pattern WORKDIR /app COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./ COPY ui/package.json ./ui/package.json COPY scripts ./scripts RUN corepack enable RUN pnpm install --frozen-lockfile COPY . . RUN pnpm build RUN pnpm ui:install RUN pnpm ui:build ENV NODE\_ENV=production CMD ["node","dist/index.js"] ``` --- ## 8) Build and launch ```bash docker compose build docker compose up -d openclaw-gateway ``` Verify binaries: ```bash docker compose exec openclaw-gateway which gog docker compose exec openclaw-gateway which goplaces docker compose exec openclaw-gateway which wacli ``` Expected output: ``` /usr/local/bin/gog /usr/local/bin/goplaces /usr/local/bin/wacli ``` --- ## 9) Verify Gateway ```bash docker compose logs -f openclaw-gateway ``` Success: ``` [gateway] listening on ws://0.0.0.0:18789 ``` From your laptop: ```bash ssh -N -L 18789:127.0.0.1:18789 root@YOUR\_VPS\_IP ``` Open: `http://127.0.0.1:18789/` Paste your gateway token. --- ## What persists where (source of truth) OpenClaw runs in Docker, but Docker is not the source of truth. All long-lived state must survive restarts, rebuilds, and reboots. | Component | Location | Persistence mechanism | Notes | | ------------------- | --------------------------------- | ---------------------- | -------------------------------- | | Gateway config | `/home/node/.openclaw/` | Host volume mount | Includes `openclaw.json`, tokens | | Model auth profiles | `/home/node/.openclaw/` | Host volume mount | OAuth tokens, API keys | | Skill configs | `/home/node/.openclaw/skills/` | Host volume mount | Skill-level state | | Agent workspace | `/home/node/.openclaw/workspace/` | Host volume mount | Code and agent artifacts | | WhatsApp session | `/home/node/.openclaw/` | Host volume mount | Preserves QR login | | Gmail keyring | `/home/node/.openclaw/` | Host volume + password | Requires `GOG\_KEYRING\_PASSWORD` | | External binaries | `/usr/local/bin/` | Docker image | Must be baked at build time | | Node runtime | Container filesystem | Docker image | Rebuilt every image build | | OS packages | Container filesystem | Docker image | Do not install at runtime | | Docker container | Ephemeral | Restartable | Safe to destroy | | https://github.com/openclaw/openclaw/blob/main//docs/platforms/hetzner.md | main | opebclaw | [
0.014866466633975506,
0.016398189589381218,
0.030285898596048355,
-0.05940372869372368,
0.0397142618894577,
-0.031415682286024094,
-0.01574288308620453,
-0.019034985452890396,
-0.03870382905006409,
0.025798596441745758,
0.02521693706512451,
0.004143730271607637,
0.002601441228762269,
0.06641705334186554,
0.09716891497373581,
-0.022143322974443436,
-0.02626808173954487,
0.005651517771184444,
-0.008070559240877628,
-0.0388726145029068,
-0.05893610417842865,
0.029231712222099304,
0.061842042952775955,
-0.05376087874174118,
-0.07821206003427505,
0.04124826937913895,
-0.02363676019012928,
-0.09094228595495224,
-0.02096443995833397,
-0.03306128829717636,
-0.013130045495927334,
0.0772988349199295,
0.045092422515153885,
-0.023519765585660934,
0.06187358871102333,
0.0940987765789032,
0.05859210714697838,
0.07476340234279633,
-0.03175109252333641,
-0.03942062705755234,
-0.013019428588449955,
-0.04073191061615944,
-0.07166190445423126,
-0.07890935987234116,
0.04385244473814964,
-0.06148691102862358,
0.014772435650229454,
-0.11818376928567886,
0.04240984097123146,
-0.003909115679562092,
-0.04011375457048416,
-0.06659393757581711,
0.04251939430832863,
0.0006779557443223894,
-0.005147518124431372,
0.062407322227954865,
-0.007722084876149893,
0.13979937136173248,
0.00906906183809042,
0.0010652594501152635,
-0.014457753859460354,
0.01690617948770523,
-0.037164539098739624,
-0.019217491149902344,
0.01480454858392477,
0.00038461232907138765,
-0.014026988297700882,
-0.06831010431051254,
0.051385022699832916,
-0.04196593537926674,
0.0144249452278018,
-0.029873667284846306,
-0.0034368601627647877,
-0.09717647731304169,
-0.0384906642138958,
0.025197967886924744,
0.024996764957904816,
0.011190076358616352,
-0.08223946392536163,
0.03818855062127113,
-0.0047163390554487705,
-0.007987426593899727,
0.004700508899986744,
-0.026339981704950333,
-0.052308645099401474,
-0.0024940171279013157,
-0.028500942513346672,
-0.011876406148076057,
0.0783129557967186,
-0.04490405321121216,
0.0640845000743866,
-0.08611250668764114,
-0.030492372810840607,
0.033587466925382614,
0.12757720053195953,
0.015213009901344776,
-0.02573736011981964,
0.01933153159916401,
-0.024169202893972397,
0.0629611685872078,
-0.03740587458014488,
-0.15493689477443695,
0.018293801695108414,
0.013050474226474762,
0.05973309651017189,
0.03498537838459015,
0.010083340108394623,
-0.0394500307738781,
0.009179936721920967,
-0.04948877915740013,
-0.02658679150044918,
-0.024414584040641785,
0.004001553636044264,
0.004621933214366436,
-0.07996341586112976,
-0.011570602655410767,
-0.06836874037981033,
-0.07069236040115356,
-0.03154631331562996,
0.025392984971404076,
0.07528070360422134,
0.011502992361783981,
0.0908147394657135,
-0.0399884395301342,
-0.03033774346113205,
-0.06610233336687088,
-0.06369978934526443,
5.2511536703139375e-33,
0.045175276696681976,
-0.06840714812278748,
0.06861899793148041,
0.02822992205619812,
0.08209910988807678,
-0.05769050866365433,
0.06800221651792526,
-0.026669854298233986,
-0.02699841931462288,
-0.05487433448433876,
-0.07367608696222305,
0.039808496832847595,
-0.07789859920740128,
0.08000438660383224,
0.06348990648984909,
-0.015767190605401993,
-0.06148809194564819,
0.06677387654781342,
0.09082560986280441,
-0.02333163283765316,
-0.005727274809032679,
-0.026203608140349388,
-0.06075350567698479,
-0.03715787082910538,
0.09124734997749329,
0.005249630659818649,
0.12834809720516205,
-0.08217590302228928,
0.049277644604444504,
0.00013622746337205172,
0.04758481681346893,
-0.02792097069323063,
0.01618393324315548,
0.09699781984090805,
-0.03936375305056572,
0.01717626303434372,
-0.07431145757436752,
0.04010309278964996,
-0.036798637360334396,
0.034307658672332764,
0.06927154213190079,
0.02806546911597252,
0.010871851816773415,
0.029230374842882156,
0.12682874500751495,
-0.07652679085731506,
0.0438985712826252,
0.02354378066956997,
-0.001424825401045382,
0.08454397320747375,
-0.0047139073722064495,
-0.013641897588968277,
-0.11207261681556702,
0.03101242147386074,
-0.06824612617492676,
0.008869936689734459,
-0.04319943115115166,
0.00018278042261954397,
0.021622713655233383,
-0.030766775831580162,
-0.06083260849118233,
0.03420726954936981,
0.009721631184220314,
0.038130875676870346,
0.0871444121003151,
0.031159762293100357,
-0.06410837173461914,
0.04936424642801285,
0.017370017245411873,
0.0811162143945694,
-0.0304707083851099,
-0.021880267187952995,
0.026582298800349236,
0.042085859924554825,
-0.02843591943383217,
-0.03894494101405144,
-0.002889114199206233,
-0.02430533803999424,
-0.0944717526435852,
0.015327083878219128,
0.05460618436336517,
0.02910766378045082,
-0.06280065327882767,
0.0631839781999588,
-0.019620981067419052,
-0.007528088521212339,
0.05737881362438202,
-0.058421168476343155,
-0.029707172885537148,
0.06327971071004868,
0.038812898099422455,
0.034931182861328125,
-0.09442197531461716,
0.040136296302080154,
-0.11974509805440903,
-6.417987566506542e-33,
0.033807478845119476,
-0.044330816715955734,
0.004226766061037779,
0.008643515408039093,
0.007122935261577368,
0.0023297863081097603,
0.06444057077169418,
-0.038908667862415314,
0.03900947794318199,
-0.024039849638938904,
-0.08232846856117249,
0.03632340580224991,
0.10592442750930786,
-0.05475228652358055,
-0.15101706981658936,
0.06612430512905121,
-0.0554434135556221,
-0.022590043023228645,
0.04938774183392525,
0.044179681688547134,
0.03705320134758949,
0.04117685556411743,
0.06674879044294357,
0.05960375815629959,
-0.051438480615615845,
-0.041238389909267426,
0.0585087388753891,
-0.03242258355021477,
-0.047093503177165985,
0.043465036898851395,
0.058369506150484085,
-0.04970838874578476,
-0.0361468531191349,
0.0679849311709404,
0.06071385368704796,
-0.004490972962230444,
-0.015669584274291992,
0.010378273203969002,
-0.029760291799902916,
-0.013591872528195381,
0.03943154960870743,
-0.06539513170719147,
-0.06539499014616013,
-0.0557817742228508,
0.020844483748078346,
-0.016477175056934357,
-0.07401333004236221,
-0.001003728248178959,
-0.025583872571587563,
-0.06255585700273514,
0.035522717982530594,
0.0072445315308868885,
-0.011379960924386978,
0.007644415367394686,
0.0782826691865921,
-0.013990742154419422,
0.0465191975235939,
0.02261747047305107,
0.0026249687653034925,
-0.005300224758684635,
0.06001165136694908,
-0.009129175916314125,
0.015267916955053806,
0.013174629770219326,
0.029217632487416267,
-0.04445377364754677,
-0.10119961947202682,
0.03081590123474598,
-0.08736859261989594,
0.064188152551651,
-0.027991263195872307,
-0.01922939345240593,
-0.013357431627810001,
-0.06188962236046791,
-0.06280037760734558,
0.002461070893332362,
-0.03008520044386387,
-0.04656314477324486,
0.041053853929042816,
0.006120544858276844,
-0.045645371079444885,
0.009063507430255413,
0.02461554855108261,
-0.06866791844367981,
0.006601824425160885,
0.024797851219773293,
0.0948253720998764,
0.018809588626027107,
0.06372386962175369,
-0.0018611862324178219,
0.03322957828640938,
0.01765681803226471,
-0.033114999532699585,
0.08608683943748474,
0.038266684859991074,
-6.179169531606021e-8,
0.05413780361413956,
-0.025665365159511566,
-0.07933267951011658,
0.0712401419878006,
0.0348440520465374,
-0.043048493564128876,
0.04867145046591759,
0.07199262082576752,
0.04660777375102043,
-0.021258728578686714,
-0.006639902014285326,
-0.06610021740198135,
-0.06389067322015762,
0.004509670659899712,
0.03773230314254761,
0.046582408249378204,
-0.054131992161273956,
0.004348293412476778,
0.016565710306167603,
-0.13076245784759521,
0.0008707610541023314,
-0.02400776371359825,
0.016404500231146812,
0.001318656955845654,
-0.0008572503575123847,
-0.008436753414571285,
0.0486508309841156,
-0.022272318601608276,
-0.013996719382703304,
0.04258928447961807,
-0.008979249745607376,
-0.07766824960708618,
-0.04474393278360367,
-0.0047348858788609505,
0.119957834482193,
-0.054169151932001114,
-0.11558027565479279,
-0.02865338884294033,
0.05911102518439293,
0.04933647811412811,
-0.04960264638066292,
-0.005704901646822691,
0.058071162551641464,
-0.03668231889605522,
-0.032982394099235535,
-0.07378582656383514,
-0.020196113735437393,
0.034593913704156876,
0.01680765300989151,
0.023816043511033058,
0.09281284362077713,
0.03701508790254593,
-0.018033191561698914,
-0.017362186685204506,
0.12347456067800522,
0.10513977706432343,
0.01969987340271473,
-0.04245436191558838,
0.017852116376161575,
0.022746386006474495,
-0.02507251873612404,
-0.03331829234957695,
0.011944452300667763,
0.024097472429275513
] | -0.038506 |
# exe.dev Goal: OpenClaw Gateway running on an exe.dev VM, reachable from your laptop via: `https://.exe.xyz` This page assumes exe.dev's default \*\*exeuntu\*\* image. If you picked a different distro, map packages accordingly. ## Beginner quick path 1. [https://exe.new/openclaw](https://exe.new/openclaw) 2. Fill in your auth key/token as needed 3. Click on "Agent" next to your VM, and wait... 4. ??? 5. Profit ## What you need - exe.dev account - `ssh exe.dev` access to [exe.dev](https://exe.dev) virtual machines (optional) ## Automated Install with Shelley Shelley, [exe.dev](https://exe.dev)'s agent, can install OpenClaw instantly with our prompt. The prompt used is as below: ``` Set up OpenClaw (https://docs.openclaw.ai/install) on this VM. Use the non-interactive and accept-risk flags for openclaw onboarding. Add the supplied auth or token as needed. Configure nginx to forward from the default port 18789 to the root location on the default enabled site config, making sure to enable Websocket support. Pairing is done by "openclaw devices list" and "openclaw device approve ". Make sure the dashboard shows that OpenClaw's health is OK. exe.dev handles forwarding from port 8000 to port 80/443 and HTTPS for us, so the final "reachable" should be .exe.xyz, without port specification. ``` ## Manual installation ## 1) Create the VM From your device: ```bash ssh exe.dev new ``` Then connect: ```bash ssh .exe.xyz ``` Tip: keep this VM \*\*stateful\*\*. OpenClaw stores state under `~/.openclaw/` and `~/.openclaw/workspace/`. ## 2) Install prerequisites (on the VM) ```bash sudo apt-get update sudo apt-get install -y git curl jq ca-certificates openssl ``` ## 3) Install OpenClaw Run the OpenClaw install script: ```bash curl -fsSL https://openclaw.ai/install.sh | bash ``` ## 4) Setup nginx to proxy OpenClaw to port 8000 Edit `/etc/nginx/sites-enabled/default` with ``` server { listen 80 default\_server; listen [::]:80 default\_server; listen 8000; listen [::]:8000; server\_name \_; location / { proxy\_pass http://127.0.0.1:18789; proxy\_http\_version 1.1; # WebSocket support proxy\_set\_header Upgrade $http\_upgrade; proxy\_set\_header Connection "upgrade"; # Standard proxy headers proxy\_set\_header Host $host; proxy\_set\_header X-Real-IP $remote\_addr; proxy\_set\_header X-Forwarded-For $proxy\_add\_x\_forwarded\_for; proxy\_set\_header X-Forwarded-Proto $scheme; # Timeout settings for long-lived connections proxy\_read\_timeout 86400s; proxy\_send\_timeout 86400s; } } ``` ## 5) Access OpenClaw and grant privileges Access `https://.exe.xyz/?token=YOUR-TOKEN-FROM-TERMINAL` (see the Control UI output from onboarding). Approve devices with `openclaw devices list` and `openclaw devices approve `. When in doubt, use Shelley from your browser! ## Remote Access Remote access is handled by [exe.dev](https://exe.dev)'s authentication. By default, HTTP traffic from port 8000 is forwarded to `https://.exe.xyz` with email auth. ## Updating ```bash npm i -g openclaw@latest openclaw doctor openclaw gateway restart openclaw health ``` Guide: [Updating](/install/updating) | https://github.com/openclaw/openclaw/blob/main//docs/platforms/exe-dev.md | main | opebclaw | [
0.036106184124946594,
-0.01696157455444336,
-0.051196593791246414,
-0.012324801646173,
0.029455894604325294,
-0.06334386020898819,
-0.06611227989196777,
0.039961159229278564,
-0.020090540871024132,
0.0001910723658511415,
0.057873040437698364,
-0.09280898422002792,
0.0029592737555503845,
0.015735842287540436,
0.0935201346874237,
0.10509767383337021,
0.046783383935689926,
-0.031152868643403053,
0.08412406593561172,
0.020763101056218147,
-0.00031953424331732094,
0.0500558540225029,
-0.006490255706012249,
-0.1039016842842102,
-0.028556831181049347,
-0.07881028950214386,
-0.006370248273015022,
0.002686886116862297,
-0.03170747309923172,
-0.01791193336248398,
0.0039504473097622395,
-0.005910163279622793,
-0.07124796509742737,
0.04850109666585922,
0.09587487578392029,
0.03211895376443863,
0.06233881041407585,
0.008759601041674614,
-0.08481928706169128,
-0.06740996241569519,
0.06781962513923645,
0.02530759572982788,
-0.06301093846559525,
-0.08375326544046402,
-0.019859585911035538,
0.0010135729098692536,
0.056142132729291916,
-0.07282047718763351,
0.014609558507800102,
-0.03854386508464813,
-0.02289680391550064,
-0.05153248831629753,
0.010562952607870102,
-0.07447313517332077,
0.031364791095256805,
-0.02844884805381298,
0.10396938025951385,
-0.03617071360349655,
0.031092895194888115,
-0.06708654761314392,
0.07965680956840515,
-0.007872707210481167,
-0.0651533454656601,
0.008919410407543182,
-0.13519006967544556,
-0.031510576605796814,
0.026636561378836632,
-0.08916763216257095,
-0.06862857937812805,
-0.08308545500040054,
-0.049992550164461136,
0.01824099011719227,
-0.03453059121966362,
-0.06843873113393784,
-0.09776072949171066,
-0.010208198800683022,
0.05386747792363167,
0.05717797204852104,
0.02472054958343506,
0.039239201694726944,
-0.028647074475884438,
0.06772007048130035,
-0.08913946896791458,
0.06377573311328888,
-0.02336989901959896,
0.09986221790313721,
0.004317832179367542,
0.07464860379695892,
0.07862383127212524,
0.03593042865395546,
0.025754008442163467,
-0.09340469539165497,
-0.052762728184461594,
0.046075113117694855,
0.08328615128993988,
-0.004062568303197622,
0.03053617663681507,
-0.03446958586573601,
-0.027543114498257637,
0.051333069801330566,
-0.1052289754152298,
-0.01937137544155121,
0.031177151948213577,
-0.0193642508238554,
-0.028001461178064346,
0.10700271278619766,
0.09461241960525513,
0.07828030735254288,
-0.039478760212659836,
-0.08321984857320786,
-0.029773734509944916,
-0.08891408145427704,
0.08029615134000778,
0.01470074150711298,
-0.04885166138410568,
0.03983720764517784,
-0.010590248741209507,
0.013441404327750206,
0.0025919550098478794,
0.0003424152673687786,
0.06395180523395538,
0.08051273971796036,
0.0542195700109005,
-0.0012663283850997686,
0.07596870511770248,
0.04066968336701393,
0.08879700303077698,
4.413246603368426e-33,
0.022438013926148415,
0.031338613480329514,
0.01458643190562725,
0.0042429096065461636,
0.18057213723659515,
-0.006450389977544546,
0.08038784563541412,
0.023443147540092468,
-0.07722432911396027,
0.02307436428964138,
-0.024766383692622185,
-0.011957849375903606,
0.03246266022324562,
-0.007505039218813181,
0.005497216247022152,
-0.02941753715276718,
-0.07209082692861557,
0.04580698534846306,
0.01511833444237709,
-0.005681941751390696,
-0.03966324403882027,
-0.1432187408208847,
0.0337505117058754,
-0.0018482371233403683,
-0.07163809984922409,
-0.024429893121123314,
-0.03881726786494255,
-0.006151197943836451,
0.036103278398513794,
-0.012240411713719368,
0.028323344886302948,
0.043557967990636826,
-0.03432780131697655,
-0.009030122309923172,
-0.08635061234235764,
-0.031665608286857605,
-0.057070713490247726,
-0.03778115659952164,
-0.03209339827299118,
0.02282562665641308,
0.07504046708345413,
0.015818430110812187,
0.03179424628615379,
0.002816370688378811,
-0.015500690788030624,
-0.08136355876922607,
-0.04908345639705658,
0.03718500956892967,
0.11231330782175064,
0.04378371313214302,
-0.047168999910354614,
-0.07095110416412354,
0.02537444420158863,
-0.03777526319026947,
-0.020908236503601074,
0.027168195694684982,
-0.0060310931876301765,
0.0005592410452663898,
0.01803351193666458,
-0.00944172590970993,
-0.05938903987407684,
0.08012458682060242,
0.010048693045973778,
0.03106508031487465,
-0.03136537969112396,
-0.08246387541294098,
-0.041091401129961014,
0.042340703308582306,
-0.037235043942928314,
0.015278185717761517,
-0.014601212926208973,
-0.012413231655955315,
0.029715105891227722,
-0.033120132982730865,
-0.01542059239000082,
-0.008178881369531155,
0.03881042078137398,
-0.02428305894136429,
0.05546338111162186,
0.010765130631625652,
-0.029575960710644722,
0.0333118699491024,
-0.08602527529001236,
-0.01792166382074356,
0.04833054915070534,
0.06638128310441971,
-0.039736028760671616,
-0.022684790194034576,
0.0839686244726181,
0.050998982042074203,
-0.016633395105600357,
-0.028476858511567116,
-0.03266674652695656,
0.033428605645895004,
-0.030944688245654106,
-5.327715454092916e-33,
-0.008992750197649002,
-0.001995670609176159,
0.003046862781047821,
-0.0316828191280365,
0.09897365421056747,
0.03744463995099068,
-0.04038310796022415,
-0.03786727041006088,
-0.04987572506070137,
-0.05661313608288765,
-0.04567437991499901,
0.12866823375225067,
0.08065399527549744,
-0.06587617099285126,
0.05757606402039528,
0.0023630985524505377,
0.012293488718569279,
-0.020275447517633438,
0.05922282114624977,
-0.019425081089138985,
-0.031361695379018784,
0.03334183618426323,
-0.012416915036737919,
-0.033149998635053635,
0.05358085781335831,
0.04748153313994408,
0.057570185512304306,
0.044927943497896194,
-0.07000169157981873,
0.021089326590299606,
-0.021523965522646904,
0.03021908551454544,
-0.03715668246150017,
-0.01765286922454834,
0.07156231999397278,
0.09254654496908188,
0.058030180633068085,
0.02372674271464348,
0.06355109065771103,
0.02098487690091133,
0.017203090712428093,
-0.05955338105559349,
-0.07233084738254547,
-0.046224988996982574,
0.01223197765648365,
0.08008325099945068,
0.03212698549032211,
-0.0558956116437912,
-0.06461534649133682,
0.029343033209443092,
0.0048759072087705135,
0.047774024307727814,
0.0007679378031753004,
0.029996167868375778,
0.0013857859885320067,
0.025485903024673462,
0.005511890631169081,
0.01822967268526554,
0.010122750885784626,
-0.07275895029306412,
0.01883787475526333,
-0.015507658012211323,
0.016776619479060173,
0.06925510615110397,
-0.10063108056783676,
-0.0533561073243618,
-0.007398208137601614,
0.055501364171504974,
-0.08849361538887024,
-0.04340403154492378,
-0.14029790461063385,
-0.03366783261299133,
-0.008585698902606964,
-0.03769984096288681,
0.028057508170604706,
-0.041521891951560974,
-0.011555282399058342,
-0.03272361680865288,
-0.06983006000518799,
0.01760001853108406,
0.019789233803749084,
0.009490050375461578,
0.015160567127168179,
-0.029300907626748085,
-0.007217503152787685,
0.00894597265869379,
-0.03965270519256592,
0.02718524821102619,
0.1028045266866684,
0.01997813768684864,
-0.08794683963060379,
-0.028459079563617706,
0.025737999007105827,
0.0228465273976326,
0.051158227026462555,
-5.353295762233756e-8,
0.026038961485028267,
-0.03870498389005661,
-0.02844085730612278,
-0.011157684028148651,
-0.026423269882798195,
-0.009607312269508839,
0.007593492045998573,
0.026009205728769302,
-0.02725444734096527,
0.009075256064534187,
0.05915367230772972,
0.01977214775979519,
-0.024713890627026558,
0.08927444368600845,
-0.06352343410253525,
0.14190955460071564,
-0.023413842543959618,
0.007831020280718803,
0.02545974962413311,
-0.05519523844122887,
-0.0040355040691792965,
-0.03555861860513687,
0.07598411291837692,
0.0055865515023469925,
-0.04308925196528435,
-0.01021615695208311,
-0.02837282419204712,
-0.08033651113510132,
-0.09184962511062622,
-0.04586980119347572,
0.021670173853635788,
0.0016362356254830956,
-0.021197717636823654,
0.04256420210003853,
-0.009768759831786156,
-0.02178690768778324,
-0.029525278136134148,
0.030654698610305786,
0.04020994156599045,
-0.012289479374885559,
-0.027707936242222786,
0.05850106105208397,
0.012659642845392227,
-0.09215065091848373,
-0.07177886366844177,
0.05268104374408722,
-0.0681978240609169,
-0.0059137120842933655,
0.01658649742603302,
0.008226599544286728,
0.023032328113913536,
-0.0027090858202427626,
-0.04678951948881149,
0.10331395268440247,
0.023022593930363655,
0.06953714042901993,
-0.0117865651845932,
-0.08995352685451508,
0.029330728575587273,
0.022458547726273537,
0.002428771462291479,
0.05987131968140602,
0.04996257275342941,
-0.06297433376312256
] | -0.012325 |
# Menu Bar Status Logic ## What is shown - We surface the current agent work state in the menu bar icon and in the first status row of the menu. - Health status is hidden while work is active; it returns when all sessions are idle. - The “Nodes” block in the menu lists \*\*devices\*\* only (paired nodes via `node.list`), not client/presence entries. - A “Usage” section appears under Context when provider usage snapshots are available. ## State model - Sessions: events arrive with `runId` (per-run) plus `sessionKey` in the payload. The “main” session is the key `main`; if absent, we fall back to the most recently updated session. - Priority: main always wins. If main is active, its state is shown immediately. If main is idle, the most recently active non‑main session is shown. We do not flip‑flop mid‑activity; we only switch when the current session goes idle or main becomes active. - Activity kinds: - `job`: high‑level command execution (`state: started|streaming|done|error`). - `tool`: `phase: start|result` with `toolName` and `meta/args`. ## IconState enum (Swift) - `idle` - `workingMain(ActivityKind)` - `workingOther(ActivityKind)` - `overridden(ActivityKind)` (debug override) ### ActivityKind → glyph - `exec` → 💻 - `read` → 📄 - `write` → ✍️ - `edit` → 📝 - `attach` → 📎 - default → 🛠️ ### Visual mapping - `idle`: normal critter. - `workingMain`: badge with glyph, full tint, leg “working” animation. - `workingOther`: badge with glyph, muted tint, no scurry. - `overridden`: uses the chosen glyph/tint regardless of activity. ## Status row text (menu) - While work is active: ` · ` - Examples: `Main · exec: pnpm test`, `Other · read: apps/macos/Sources/OpenClaw/AppState.swift`. - When idle: falls back to the health summary. ## Event ingestion - Source: control‑channel `agent` events (`ControlChannel.handleAgentEvent`). - Parsed fields: - `stream: "job"` with `data.state` for start/stop. - `stream: "tool"` with `data.phase`, `name`, optional `meta`/`args`. - Labels: - `exec`: first line of `args.command`. - `read`/`write`: shortened path. - `edit`: path plus inferred change kind from `meta`/diff counts. - fallback: tool name. ## Debug override - Settings ▸ Debug ▸ “Icon override” picker: - `System (auto)` (default) - `Working: main` (per tool kind) - `Working: other` (per tool kind) - `Idle` - Stored via `@AppStorage("iconOverride")`; mapped to `IconState.overridden`. ## Testing checklist - Trigger main session job: verify icon switches immediately and status row shows main label. - Trigger non‑main session job while main idle: icon/status shows non‑main; stays stable until it finishes. - Start main while other active: icon flips to main instantly. - Rapid tool bursts: ensure badge does not flicker (TTL grace on tool results). - Health row reappears once all sessions idle. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/menu-bar.md | main | opebclaw | [
-0.06616593152284622,
0.006087200716137886,
-0.013609660789370537,
0.000480824412079528,
-0.002807628596201539,
-0.020533306524157524,
0.04996516928076744,
-0.030709542334079742,
0.03307085484266281,
0.0651148110628128,
-0.01726224645972252,
0.021188031882047653,
0.018155591562390327,
-0.022340280935168266,
0.1102607473731041,
-0.012708128429949284,
0.08230207115411758,
-0.09851417690515518,
-0.01761225238442421,
-0.047937873750925064,
0.036682091653347015,
-0.01484766136854887,
-0.02696223556995392,
-0.020988473668694496,
-0.053533587604761124,
-0.009494752623140812,
0.02462710812687874,
-0.04001772403717041,
0.020453505218029022,
-0.0095481863245368,
-0.014936251565814018,
0.049008019268512726,
-0.000785167736466974,
-0.005329149775207043,
0.016440970823168755,
0.021327629685401917,
0.029410267248749733,
-0.032793428748846054,
-0.06336513161659241,
-0.02141023613512516,
0.07958061993122101,
-0.04631611332297325,
-0.02025013603270054,
-0.0137021504342556,
0.016579553484916687,
-0.013838215731084347,
-0.10671506822109222,
-0.00743922358378768,
-0.02707585319876671,
0.039367880672216415,
-0.03712475672364235,
0.002255665371194482,
0.06554543972015381,
0.08704487234354019,
0.03338911756873131,
0.13388365507125854,
0.012377041392028332,
-0.011219006963074207,
-0.007048776838928461,
0.034573111683130264,
-0.03607733175158501,
0.0033754638861864805,
-0.06263848394155502,
-0.0037192078307271004,
0.046161990612745285,
0.0746486485004425,
-0.006048198323696852,
-0.04684660583734512,
0.0224782582372427,
-0.015764247626066208,
-0.015156243927776814,
-0.09692580997943878,
-0.03882863372564316,
-0.09877119213342667,
-0.0055054230615496635,
-0.10603523254394531,
0.023783789947628975,
-0.054382868111133575,
-0.04828592389822006,
-0.11385203152894974,
-0.02048531547188759,
-0.07742685079574585,
-0.041511014103889465,
0.028333190828561783,
-0.011871478520333767,
-0.004510212689638138,
-0.045013245195150375,
-0.002310856245458126,
0.03810879588127136,
0.042519308626651764,
-0.07783859968185425,
0.03227414935827255,
-0.0271755363792181,
-0.023533787578344345,
0.05962875857949257,
0.07718847692012787,
0.005215772427618504,
0.08954593539237976,
-0.04587453976273537,
0.0726579949259758,
0.046058520674705505,
0.008608893491327763,
0.08760346472263336,
0.034791141748428345,
-0.02830016240477562,
-0.03336760774254799,
-0.01514541357755661,
-0.01797250658273697,
-0.03820455074310303,
0.02658909559249878,
0.026103798300027847,
0.04326378181576729,
0.060017023235559464,
-0.018701661378145218,
-0.018153278157114983,
0.03201616555452347,
0.012644605711102486,
0.048130810260772705,
-0.02152732014656067,
0.02788027934730053,
0.08596248924732208,
0.003377267625182867,
0.017125356942415237,
-0.007229899521917105,
0.02368062734603882,
0.012567922472953796,
0.04581407457590103,
5.836375002238752e-33,
0.05767308920621872,
-0.11161623150110245,
-0.012546475976705551,
0.05229344964027405,
0.012797010131180286,
0.06810769438743591,
0.024393770843744278,
-0.048608921468257904,
0.0033035227097570896,
0.014093578793108463,
-0.03062538430094719,
0.10192754119634628,
-0.006425498053431511,
0.04648439586162567,
-0.04063382372260094,
-0.06582428514957428,
0.057091183960437775,
0.014491223730146885,
0.012695679441094398,
-0.006873066071420908,
0.03956044092774391,
-0.014572067186236382,
-0.06941425055265427,
0.04407212510704994,
0.05812855437397957,
0.10012482851743698,
-0.004053594544529915,
-0.011360601522028446,
-0.016400283202528954,
0.04025722295045853,
-0.007481507956981659,
0.04337023198604584,
0.005743485409766436,
-0.027537338435649872,
-0.035701390355825424,
0.03465871885418892,
-0.07220277190208435,
-0.036225754767656326,
0.01217831950634718,
-0.1158580556511879,
-0.08481896668672562,
0.007366811390966177,
-0.012900768779218197,
-0.047442562878131866,
-0.1006346046924591,
-0.12290477752685547,
-0.0469975471496582,
0.004594373516738415,
0.039013396948575974,
0.058678485453128815,
0.017026668414473534,
0.01259984914213419,
0.051452506333589554,
-0.048744965344667435,
-0.09046970307826996,
0.006341823376715183,
0.02767346054315567,
0.09978050738573074,
0.020848367363214493,
0.11403903365135193,
0.022486858069896698,
-0.006641099229454994,
-0.032861556857824326,
0.01788436807692051,
-0.020113365724682808,
0.1303759217262268,
-0.03295618295669556,
-0.027466828003525734,
0.03457723185420036,
-0.004013713449239731,
-0.055316656827926636,
0.11249081790447235,
0.04518292844295502,
0.031919896602630615,
0.05679279938340187,
-0.0013811365934088826,
0.003904457436874509,
-0.029048237949609756,
-0.1656886637210846,
0.022427210584282875,
0.04700523614883423,
-0.06512691080570221,
-0.045097872614860535,
0.07151687145233154,
0.03497399389743805,
0.0015942428726702929,
-0.023745164275169373,
-0.04438041150569916,
-0.12846869230270386,
0.07530302554368973,
-0.04107733443379402,
-0.03579825535416603,
0.07085081934928894,
0.1173522025346756,
-0.018018707633018494,
-6.390201084105011e-33,
0.028194090351462364,
-0.01707179844379425,
-0.06687697768211365,
0.026555107906460762,
0.028599437326192856,
-0.06451021879911423,
0.04031631723046303,
-0.012376281432807446,
-0.09199977666139603,
-0.027824891731142998,
0.0004341734747868031,
0.03478860482573509,
-0.01112649030983448,
-0.01685497537255287,
0.03144131228327751,
0.085072822868824,
0.016152920201420784,
-0.06748353689908981,
-0.015908386558294296,
0.06266997754573822,
-0.012736596167087555,
0.025090958923101425,
-0.04977482557296753,
0.02759462222456932,
0.021289516240358353,
-0.009405003860592842,
0.035094790160655975,
0.01370958797633648,
0.04609880596399307,
-0.09076902270317078,
0.0324568971991539,
-0.029851390048861504,
-0.049796778708696365,
0.02800804004073143,
-0.011596739292144775,
0.014728812500834465,
-0.046578459441661835,
0.025404067710042,
-0.027858426794409752,
-0.00045146344928070903,
0.146144300699234,
-0.02603158913552761,
-0.06282977014780045,
0.019363123923540115,
-0.028806041926145554,
0.09862977266311646,
-0.03008498251438141,
0.012133719399571419,
-0.17258527874946594,
-0.03657025098800659,
0.0066491225734353065,
-0.010758977383375168,
-0.04306630417704582,
0.05396777763962746,
0.028775077313184738,
-0.013545366935431957,
0.011850040405988693,
-0.01959673874080181,
-0.0696178451180458,
-0.08157306909561157,
0.07416361570358276,
-0.06199316680431366,
-0.006066492758691311,
0.027771443128585815,
0.01668557897210121,
-0.0009326614090241492,
0.007650040090084076,
0.007357066962867975,
0.017157670110464096,
-0.002963279141113162,
0.052281588315963745,
-0.02307410165667534,
-0.013035344891250134,
-0.007703560870140791,
-0.02152078039944172,
0.036777254194021225,
-0.05516906455159187,
-0.14813382923603058,
0.0018200839404016733,
0.028614623472094536,
-0.13686765730381012,
-0.022901076823472977,
-0.014594417065382004,
-0.03288121148943901,
-0.027208104729652405,
0.07296189665794373,
-0.029790470376610756,
0.09375637024641037,
0.021723411977291107,
0.05636880546808243,
-0.07901734113693237,
0.0031202645041048527,
-0.08006136119365692,
0.04486327990889549,
-0.055851876735687256,
-6.707959698815102e-8,
0.005674663931131363,
0.001490423339419067,
0.03192447870969772,
-0.012784591875970364,
-0.009448525495827198,
-0.035450827330350876,
0.07920681685209274,
-0.025642117485404015,
0.017604093998670578,
0.0255801472812891,
0.028355596587061882,
-0.08140112459659576,
0.00895692128688097,
-0.07755747437477112,
0.10280444473028183,
0.08650140464305878,
0.025075741112232208,
0.014997120946645737,
-0.05101757124066353,
-0.036904897540807724,
0.008789313957095146,
-0.034879911690950394,
0.01988695189356804,
0.07700539380311966,
-0.04013262316584587,
0.03982047736644745,
0.01948062889277935,
0.06333087384700775,
0.037562791258096695,
0.0031856258865445852,
-0.027556853368878365,
-0.009234379045665264,
0.0443587452173233,
-0.01498270221054554,
-0.0722556859254837,
0.046653956174850464,
-0.02237369865179062,
-0.024047166109085083,
0.07369159162044525,
0.0007326616905629635,
-0.0069976868107914925,
-0.05148826539516449,
-0.058488450944423676,
0.02979208528995514,
-0.04051261022686958,
0.025918761268258095,
-0.05091485753655434,
0.0423130989074707,
0.03856579214334488,
-0.030371446162462234,
-0.06922362744808197,
-0.05679066851735115,
-0.02607773244380951,
0.06882530450820923,
0.018414035439491272,
0.029373619705438614,
0.08159395307302475,
-0.08591248095035553,
0.138602152466774,
-0.00443160580471158,
0.03737686574459076,
-0.016462601721286774,
-0.10958638787269592,
-0.005561665631830692
] | 0.156493 |
# macOS permissions (TCC) macOS permission grants are fragile. TCC associates a permission grant with the app's code signature, bundle identifier, and on-disk path. If any of those change, macOS treats the app as new and may drop or hide prompts. ## Requirements for stable permissions - Same path: run the app from a fixed location (for OpenClaw, `dist/OpenClaw.app`). - Same bundle identifier: changing the bundle ID creates a new permission identity. - Signed app: unsigned or ad-hoc signed builds do not persist permissions. - Consistent signature: use a real Apple Development or Developer ID certificate so the signature stays stable across rebuilds. Ad-hoc signatures generate a new identity every build. macOS will forget previous grants, and prompts can disappear entirely until the stale entries are cleared. ## Recovery checklist when prompts disappear 1. Quit the app. 2. Remove the app entry in System Settings -> Privacy & Security. 3. Relaunch the app from the same path and re-grant permissions. 4. If the prompt still does not appear, reset TCC entries with `tccutil` and try again. 5. Some permissions only reappear after a full macOS restart. Example resets (replace bundle ID as needed): ```bash sudo tccutil reset Accessibility bot.molt.mac sudo tccutil reset ScreenCapture bot.molt.mac sudo tccutil reset AppleEvents ``` If you are testing permissions, always sign with a real certificate. Ad-hoc builds are only acceptable for quick local runs where permissions do not matter. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/permissions.md | main | opebclaw | [
-0.0777377188205719,
0.03639643266797066,
-0.01759054884314537,
-0.017050975933670998,
0.05945122614502907,
-0.10534399002790451,
0.010511068627238274,
0.023523135110735893,
0.004378343932330608,
-0.030199149623513222,
0.058995217084884644,
-0.030194366350769997,
0.032694391906261444,
0.04105890542268753,
0.057700265198946,
0.034718338400125504,
0.0700138509273529,
0.003138252068310976,
0.025107964873313904,
0.02679101563990116,
-0.06518538296222687,
0.04808088764548302,
0.041220277547836304,
0.0015299506485462189,
-0.004347078036516905,
-0.0673970878124237,
0.026370475068688393,
0.011795486323535442,
-0.0109577476978302,
0.017866794019937515,
0.0168624110519886,
0.011856378987431526,
-0.0017184207681566477,
0.014915830455720425,
0.08644482493400574,
0.027442358434200287,
0.08900488913059235,
-0.025357883423566818,
-0.08070342987775803,
-0.06040448695421219,
-0.014906634576618671,
0.05726801976561546,
-0.04661078751087189,
0.07141049951314926,
-0.05928230658173561,
-0.06128515303134918,
0.10202287137508392,
-0.0420982800424099,
0.04799538105726242,
0.0074142953380942345,
0.11306265741586685,
-0.005871709436178207,
-0.040858086198568344,
-0.016754401847720146,
-0.05332469195127487,
0.07016529887914658,
-0.002370404079556465,
0.028859823942184448,
0.0473957397043705,
0.0030980801675468683,
0.03567727655172348,
0.007191135082393885,
-0.037536803632974625,
0.06181125342845917,
-0.0017047416185960174,
0.05972626060247421,
0.005934539716690779,
-0.007954373024404049,
0.015874231234192848,
0.006837635766714811,
0.0669768676161766,
0.04017942026257515,
0.014649080112576485,
-0.042365819215774536,
0.005659890361130238,
0.05816586688160896,
-0.009551710449159145,
0.015044300816953182,
-0.0833573266863823,
-0.08412934839725494,
-0.07111746072769165,
-0.005946415942162275,
-0.10219384729862213,
0.010212676599621773,
-0.018660718575119972,
0.07859475165605545,
0.02590189129114151,
-0.01638701930642128,
0.033092305064201355,
0.1292014867067337,
0.10036544501781464,
-0.022432640194892883,
0.04237889498472214,
-0.0695045068860054,
0.03690093755722046,
-0.05786650627851486,
0.06580151617527008,
0.07308120280504227,
-0.04260710999369621,
0.04751187935471535,
-0.0918833538889885,
-0.047033824026584625,
-0.021799180656671524,
-0.003160053864121437,
0.06389661133289337,
0.03300296515226364,
0.00072160002309829,
-0.01988193765282631,
0.009305180981755257,
0.05122234299778938,
-0.015713665634393692,
-0.02578796073794365,
0.034663934260606766,
0.021710393950343132,
0.012858829461038113,
0.03884618729352951,
-0.10327847301959991,
0.000012694302313320804,
-0.0052733030170202255,
0.0002941364364232868,
0.11120165884494781,
-0.0247474554926157,
0.04265642538666725,
-0.04168614745140076,
0.035705987364053726,
0.03727804496884346,
-0.013456890359520912,
4.996457472611349e-33,
-0.015291943214833736,
0.021437805145978928,
-0.001980894710868597,
0.0842060074210167,
0.10994598269462585,
-0.08700641989707947,
0.07225040346384048,
-0.0058956630527973175,
-0.08671382069587708,
0.05569400638341904,
-0.022415736690163612,
0.05389624461531639,
-0.020309187471866608,
-0.048842623829841614,
0.07375755161046982,
0.012057592160999775,
-0.028843887150287628,
-0.012517957016825676,
0.03662277013063431,
0.022490976378321648,
0.006165384780615568,
-0.006179120857268572,
-0.039635609835386276,
0.008569573983550072,
-0.005225142929702997,
0.02979639545083046,
-0.011821410618722439,
0.0395449697971344,
0.038592953234910965,
0.051188573241233826,
-0.010656440630555153,
0.05677984654903412,
-0.009719201363623142,
-0.0022504725493490696,
-0.08885565400123596,
-0.0016022768104448915,
0.008722457103431225,
-0.04160898178815842,
0.006601489149034023,
0.026872320100665092,
0.04714374616742134,
-0.055242057889699936,
-0.06252063810825348,
0.020416656509041786,
0.031872108578681946,
-0.1366083323955536,
-0.018107930198311806,
0.05898372083902359,
-0.08499053865671158,
0.0975782498717308,
-0.02384321019053459,
-0.0168665312230587,
0.049557000398635864,
-0.02953106351196766,
-0.06807242333889008,
-0.14011408388614655,
-0.04792936518788338,
-0.11100392043590546,
-0.054320745170116425,
-0.06733401119709015,
0.058444101363420486,
0.10233236104249954,
-0.031586337834596634,
0.032131582498550415,
-0.056774333119392395,
0.023753376677632332,
0.05550125241279602,
-0.08413758873939514,
-0.03148825466632843,
0.012804941274225712,
-0.07806101441383362,
-0.011023296043276787,
-0.027233824133872986,
-0.022691907361149788,
-0.06602271646261215,
-0.0779564380645752,
0.018458904698491096,
0.02805999107658863,
0.033199492841959,
0.01964435540139675,
0.036709561944007874,
-0.00907440297305584,
-0.01327307615429163,
0.052555784583091736,
0.01753157190978527,
0.019678693264722824,
0.00813454482704401,
-0.036331720650196075,
-0.04545874893665314,
0.08890048414468765,
0.04110627993941307,
0.021432749927043915,
0.03380586579442024,
0.05285833030939102,
-0.018450142815709114,
-5.9826502131772156e-33,
0.056503333151340485,
-0.03885156288743019,
-0.014095332473516464,
-0.036969177424907684,
-0.11740522086620331,
-0.0056488350965082645,
-0.06931082159280777,
0.005981951951980591,
-0.0060065691359341145,
-0.1453274041414261,
-0.02122470736503601,
0.04166092723608017,
0.031221820041537285,
-0.004723181948065758,
-0.023876946419477463,
-0.021549897268414497,
-0.06543798744678497,
0.045450545847415924,
-0.033134736120700836,
-0.01774127036333084,
-0.03583051264286041,
0.011589962057769299,
0.009067248553037643,
-0.011176517233252525,
0.025720318779349327,
-0.06991969048976898,
-0.06677274405956268,
0.04727650061249733,
0.022748300805687904,
-0.022253485396504402,
0.06816068291664124,
0.028393061831593513,
-0.05506521835923195,
-0.024901695549488068,
-0.016082096844911575,
0.0066553885117173195,
-0.025814425200223923,
0.013803305104374886,
0.023234747350215912,
0.058189067989587784,
0.03593554347753525,
-0.004339199047535658,
0.0678211972117424,
0.013370495289564133,
-0.02089209109544754,
0.06782623380422592,
0.05116681382060051,
-0.02937229350209236,
-0.06119710952043533,
-0.024990729987621307,
0.14905425906181335,
0.03342248871922493,
0.13225793838500977,
0.00120566226541996,
0.06496576219797134,
0.11775366216897964,
0.03942921385169029,
-0.0464140959084034,
0.040641434490680695,
-0.04845397546887398,
0.09286236763000488,
0.014497991651296616,
-0.015371622517704964,
0.023349914699792862,
-0.00023046326532494277,
-0.06210560351610184,
-0.03571581840515137,
0.059760212898254395,
-0.08422058075666428,
0.019379448145627975,
0.01232891995459795,
-0.07068980485200882,
-0.06966474652290344,
-0.07384596765041351,
0.002178687835112214,
-0.02308622933924198,
-0.06833332031965256,
-0.0609627291560173,
-0.09906032681465149,
0.053860414773225784,
-0.03826455771923065,
0.0641821101307869,
-0.03571566194295883,
-0.019133534282445908,
-0.036856163293123245,
0.011936194263398647,
0.008599805645644665,
0.010398810729384422,
0.06711697578430176,
0.0616617426276207,
-0.08499316871166229,
0.01480039767920971,
-0.00028371368534862995,
-0.003625222248956561,
-0.04907533526420593,
-5.288002213887921e-8,
-0.02814360149204731,
0.0008796108304522932,
-0.11866939067840576,
0.005357033107429743,
0.08027075976133347,
0.018921473994851112,
-0.050805170089006424,
0.0015590079128742218,
0.037073973566293716,
-0.025602739304304123,
0.00952606275677681,
0.02170187048614025,
-0.12417521327733994,
-0.008212657645344734,
-0.06231837719678879,
0.020153459161520004,
-0.05599692836403847,
0.018338937312364578,
-0.000723297824151814,
-0.058728549629449844,
-0.08790892362594604,
0.005563293118029833,
-0.02706575207412243,
-0.008609271608293056,
-0.04863655939698219,
-0.05824095755815506,
0.11815986037254333,
0.01931936852633953,
-0.059928856790065765,
0.09033813327550888,
-0.09711192548274994,
-0.08216514438390732,
-0.009042423218488693,
0.07308042049407959,
0.004488664213567972,
-0.01624670997262001,
-0.04997170343995094,
0.05204632878303528,
0.07496377825737,
0.033807408064603806,
-0.052144162356853485,
0.04066574200987816,
-0.012464419938623905,
0.0008810390718281269,
-0.1361345797777176,
-0.003253751900047064,
0.0250085461884737,
0.005556777119636536,
-0.015607896260917187,
-0.023891227319836617,
0.04466105252504349,
0.017529282718896866,
-0.06911753118038177,
0.006239770445972681,
0.028843991458415985,
0.0929456353187561,
0.026722092181444168,
-0.038715001195669174,
0.0005320732016116381,
0.02340090274810791,
0.035320572555065155,
0.004811037797480822,
0.010534755885601044,
-0.01930270902812481
] | 0.020066 |
# Gateway on macOS (external launchd) OpenClaw.app no longer bundles Node/Bun or the Gateway runtime. The macOS app expects an \*\*external\*\* `openclaw` CLI install, does not spawn the Gateway as a child process, and manages a per‑user launchd service to keep the Gateway running (or attaches to an existing local Gateway if one is already running). ## Install the CLI (required for local mode) You need Node 22+ on the Mac, then install `openclaw` globally: ```bash npm install -g openclaw@ ``` The macOS app’s \*\*Install CLI\*\* button runs the same flow via npm/pnpm (bun not recommended for Gateway runtime). ## Launchd (Gateway as LaunchAgent) Label: - `bot.molt.gateway` (or `bot.molt.`; legacy `com.openclaw.\*` may remain) Plist location (per‑user): - `~/Library/LaunchAgents/bot.molt.gateway.plist` (or `~/Library/LaunchAgents/bot.molt..plist`) Manager: - The macOS app owns LaunchAgent install/update in Local mode. - The CLI can also install it: `openclaw gateway install`. Behavior: - “OpenClaw Active” enables/disables the LaunchAgent. - App quit does \*\*not\*\* stop the gateway (launchd keeps it alive). - If a Gateway is already running on the configured port, the app attaches to it instead of starting a new one. Logging: - launchd stdout/err: `/tmp/openclaw/openclaw-gateway.log` ## Version compatibility The macOS app checks the gateway version against its own version. If they’re incompatible, update the global CLI to match the app version. ## Smoke check ```bash openclaw --version OPENCLAW\_SKIP\_CHANNELS=1 \ OPENCLAW\_SKIP\_CANVAS\_HOST=1 \ openclaw gateway --port 18999 --bind loopback ``` Then: ```bash openclaw gateway call health --url ws://127.0.0.1:18999 --timeout 3000 ``` | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/bundled-gateway.md | main | opebclaw | [
-0.011736712418496609,
-0.06493943929672241,
-0.03395991027355194,
-0.009935269132256508,
0.011213012039661407,
-0.07511475682258606,
-0.07283759117126465,
0.024785436689853668,
-0.014373359270393848,
0.03244677931070328,
-0.005314059555530548,
-0.017598498612642288,
-0.025806212797760963,
0.020189780741930008,
0.1318022608757019,
0.1056094542145729,
0.06283102929592133,
-0.027228204533457756,
0.09623145312070847,
-0.01631762832403183,
0.02223442867398262,
0.033182043582201004,
0.05281858891248703,
0.0013735542306676507,
-0.11583143472671509,
-0.07703842967748642,
0.014850807376205921,
-0.011975829489529133,
-0.020168041810393333,
0.019703203812241554,
0.05784325301647186,
0.03506264090538025,
-0.04591847211122513,
0.004681667312979698,
0.05020657926797867,
0.07921616733074188,
0.053838204592466354,
0.004043294582515955,
-0.12091901898384094,
-0.02729084901511669,
0.13855068385601044,
0.01680063083767891,
0.020037228241562843,
-0.05285125970840454,
0.02012002095580101,
-0.06274691224098206,
-0.034877873957157135,
-0.053927965462207794,
0.02080700360238552,
0.01092580333352089,
0.00777819100767374,
-0.06670184433460236,
0.021888962015509605,
-0.0697205513715744,
0.03493015840649605,
0.042181942611932755,
0.032753147184848785,
-0.05669039115309715,
0.09123428910970688,
-0.04611898213624954,
-0.029656343162059784,
-0.065738245844841,
0.009411200881004333,
0.019059134647250175,
-0.13146661221981049,
0.0028845074120908976,
-0.011302167549729347,
-0.04379260540008545,
-0.02472992241382599,
-0.01976035349071026,
0.06308405101299286,
0.005256671458482742,
-0.044158000499010086,
-0.04770335555076599,
-0.08383413404226303,
-0.0421319417655468,
0.08913462609052658,
-0.017415912821888924,
-0.09758397936820984,
-0.010627416893839836,
-0.03049481101334095,
0.05505915731191635,
-0.060612015426158905,
0.0657481849193573,
-0.02179013378918171,
0.09396263211965561,
0.008480661548674107,
-0.017721643671393394,
0.02385508269071579,
0.08242697268724442,
-0.035767730325460434,
-0.05882427468895912,
-0.07243990898132324,
-0.0058669219724833965,
0.04529891908168793,
-0.04361844062805176,
-0.02986946702003479,
-0.027843883261084557,
-0.02408462204039097,
0.04210035130381584,
-0.054109588265419006,
-0.010669810697436333,
0.016048111021518707,
0.04197046905755997,
-0.007521997205913067,
0.07423170655965805,
0.02185419760644436,
0.09755587577819824,
0.03189461678266525,
0.020833324640989304,
0.0022788054775446653,
-0.0611310712993145,
0.08578435331583023,
0.024165885522961617,
-0.0019847690127789974,
0.039601340889930725,
0.02372666820883751,
-0.0293368361890316,
0.029517531394958496,
0.07760971039533615,
0.03608604148030281,
0.016457581892609596,
0.023492999374866486,
0.04501019045710564,
0.04758752882480621,
0.022585486993193626,
0.08263009786605835,
3.8382825616804897e-33,
-0.004294566344469786,
-0.13005851209163666,
-0.01330858375877142,
0.02268572524189949,
0.14783506095409393,
0.006225027609616518,
0.03991169482469559,
-0.016113419085741043,
-0.06694904714822769,
0.013835446909070015,
-0.07276315242052078,
-0.0002823282266035676,
-0.044582922011613846,
0.010394851677119732,
0.027789689600467682,
-0.005208018235862255,
-0.058584149926900864,
0.0005317800096236169,
0.057491954416036606,
-0.016556642949581146,
0.065499447286129,
-0.07845146209001541,
-0.039527878165245056,
0.014257444068789482,
-0.018801584839820862,
-0.0031159217469394207,
0.0206918902695179,
-0.03578007593750954,
0.07513900101184845,
0.020521841943264008,
0.0665854886174202,
0.027881646528840065,
-0.04876891151070595,
0.02190452069044113,
-0.09244302660226822,
-0.03192543238401413,
-0.08875890076160431,
-0.03208564221858978,
-0.08056852966547012,
0.017861275002360344,
-0.04778975620865822,
0.01138172298669815,
-0.047400131821632385,
-0.08006107807159424,
-0.01953119970858097,
-0.14359700679779053,
-0.0936594232916832,
0.07057778537273407,
0.048361629247665405,
0.04039333388209343,
-0.01559867337346077,
0.027755599468946457,
0.06230828911066055,
-0.045201707631349564,
0.004527590237557888,
-0.03345688804984093,
-0.06602782756090164,
-0.03703610226511955,
-0.00765851279720664,
-0.046810075640678406,
0.04884688928723335,
0.0629291757941246,
-0.013825981877744198,
0.05640742927789688,
0.04205702617764473,
0.021960580721497536,
0.03162834420800209,
0.008252729661762714,
-0.03650921955704689,
0.021449610590934753,
-0.03179145231842995,
0.0009631224093027413,
-0.02567555196583271,
0.041374605149030685,
0.028956182301044464,
-0.04956459626555443,
0.041081156581640244,
0.005470608826726675,
0.043230872601270676,
0.036212123930454254,
0.037019841372966766,
-0.0199930127710104,
0.005378034897148609,
0.00401338841766119,
0.05321059376001358,
0.07492285966873169,
0.015293693169951439,
-0.03966532647609711,
0.02851727604866028,
0.08601666986942291,
-0.02140638791024685,
-0.02944142557680607,
-0.03185780346393585,
0.06265643239021301,
-0.09019346535205841,
-5.85489197700008e-33,
-0.02337898686528206,
0.029306495562195778,
-0.00003858627678710036,
0.007910247892141342,
-0.04814868047833443,
-0.0002138862619176507,
-0.007593683898448944,
-0.078061044216156,
-0.030585162341594696,
-0.00376871763728559,
-0.10414257645606995,
0.09020163118839264,
0.09717424213886261,
-0.05952741205692291,
0.06307974457740784,
-0.03073049709200859,
-0.047203179448843,
0.0006643601227551699,
-0.019736764952540398,
-0.02200712449848652,
-0.05725887045264244,
0.046682387590408325,
-0.0047345454804599285,
-0.0592198483645916,
0.036823201924562454,
-0.02060834690928459,
0.030787115916609764,
0.0764639601111412,
-0.10696598142385483,
-0.04500037431716919,
-0.0359223298728466,
0.10016792267560959,
-0.011385126039385796,
0.005702150985598564,
-0.010256287641823292,
0.06610328704118729,
-0.07017318159341812,
0.07896994054317474,
0.06316391378641129,
-0.00870843231678009,
0.015707697719335556,
-0.04204755276441574,
-0.03613843396306038,
-0.03454466164112091,
-0.020921682938933372,
0.037034112960100174,
-0.04128997027873993,
-0.023552969098091125,
-0.0715884193778038,
-0.018639346584677696,
-0.0753159150481224,
0.06360141187906265,
0.054594140499830246,
0.08184540271759033,
0.042115215212106705,
0.06649921089410782,
0.02981644682586193,
0.010267895646393299,
-0.0017247670330107212,
-0.09444665908813477,
0.06004713475704193,
-0.10853162407875061,
-0.04769658297300339,
0.05449340492486954,
-0.006968196947127581,
-0.0647353082895279,
-0.05419515073299408,
-0.006948893889784813,
-0.05747412517666817,
-0.034674663096666336,
-0.04362401366233826,
0.026060881093144417,
0.01513657346367836,
-0.01344505324959755,
-0.020836759358644485,
-0.0024368958547711372,
0.00534411147236824,
-0.05896376818418503,
-0.038230810314416885,
0.030968420207500458,
-0.011347494088113308,
0.048671022057533264,
0.01937883161008358,
-0.028459984809160233,
-0.04751221835613251,
-0.07906311005353928,
0.03545813634991646,
0.053769372403621674,
0.05663271248340607,
0.07327613234519958,
-0.04979819804430008,
0.020715733990073204,
-0.027370866388082504,
-0.0708874985575676,
-0.014598660171031952,
-4.983938595159998e-8,
-0.03897427022457123,
-0.01552247628569603,
-0.08117449283599854,
0.0533125177025795,
0.02606819011271,
0.008866045624017715,
0.00823933444917202,
0.00950423814356327,
-0.018930010497570038,
0.06338298320770264,
0.03060651570558548,
0.04953835904598236,
-0.03564206138253212,
0.04084566980600357,
-0.009822390973567963,
0.06392278522253036,
0.005560287740081549,
0.01962568238377571,
0.031071551144123077,
-0.02052462473511696,
-0.03300778567790985,
-0.0052714101038873196,
-0.0034257820807397366,
0.07139511406421661,
-0.1305011659860611,
-0.015341692604124546,
0.02862727828323841,
-0.0400240495800972,
-0.06360363960266113,
0.011249559000134468,
-0.07772348821163177,
-0.02307143434882164,
-0.010661602020263672,
0.02291920594871044,
-0.05043979734182358,
0.07208511233329773,
-0.07351023703813553,
0.09437957406044006,
0.020248176530003548,
-0.025348728522658348,
0.004016438964754343,
0.010320213623344898,
0.015061932615935802,
-0.06699047237634659,
-0.060572199523448944,
0.036488134413957596,
-0.10944130271673203,
0.08072569221258163,
-0.04875630885362625,
0.06100472807884216,
0.06088917329907417,
0.010050580836832523,
0.025679003447294235,
0.01165915746241808,
0.04884177818894386,
0.06139802560210228,
0.04701275750994682,
-0.17757713794708252,
-0.03437129780650139,
0.01687564328312874,
0.0018466587644070387,
-0.003917062189429998,
0.05252183601260185,
-0.03937573730945587
] | 0.049869 |
# Canvas (macOS app) The macOS app embeds an agent‑controlled \*\*Canvas panel\*\* using `WKWebView`. It is a lightweight visual workspace for HTML/CSS/JS, A2UI, and small interactive UI surfaces. ## Where Canvas lives Canvas state is stored under Application Support: - `~/Library/Application Support/OpenClaw/canvas//...` The Canvas panel serves those files via a \*\*custom URL scheme\*\*: - `openclaw-canvas:///` Examples: - `openclaw-canvas://main/` → `/main/index.html` - `openclaw-canvas://main/assets/app.css` → `/main/assets/app.css` - `openclaw-canvas://main/widgets/todo/` → `/main/widgets/todo/index.html` If no `index.html` exists at the root, the app shows a \*\*built‑in scaffold page\*\*. ## Panel behavior - Borderless, resizable panel anchored near the menu bar (or mouse cursor). - Remembers size/position per session. - Auto‑reloads when local canvas files change. - Only one Canvas panel is visible at a time (session is switched as needed). Canvas can be disabled from Settings → \*\*Allow Canvas\*\*. When disabled, canvas node commands return `CANVAS\_DISABLED`. ## Agent API surface Canvas is exposed via the \*\*Gateway WebSocket\*\*, so the agent can: - show/hide the panel - navigate to a path or URL - evaluate JavaScript - capture a snapshot image CLI examples: ```bash openclaw nodes canvas present --node openclaw nodes canvas navigate --node --url "/" openclaw nodes canvas eval --node --js "document.title" openclaw nodes canvas snapshot --node ``` Notes: - `canvas.navigate` accepts \*\*local canvas paths\*\*, `http(s)` URLs, and `file://` URLs. - If you pass `"/"`, the Canvas shows the local scaffold or `index.html`. ## A2UI in Canvas A2UI is hosted by the Gateway canvas host and rendered inside the Canvas panel. When the Gateway advertises a Canvas host, the macOS app auto‑navigates to the A2UI host page on first open. Default A2UI host URL: ``` http://:18793/\_\_openclaw\_\_/a2ui/ ``` ### A2UI commands (v0.8) Canvas currently accepts \*\*A2UI v0.8\*\* server→client messages: - `beginRendering` - `surfaceUpdate` - `dataModelUpdate` - `deleteSurface` `createSurface` (v0.9) is not supported. CLI example: ```bash cat > /tmp/a2ui-v0.8.jsonl <<'EOFA2' {"surfaceUpdate":{"surfaceId":"main","components":[{"id":"root","component":{"Column":{"children":{"explicitList":["title","content"]}}}},{"id":"title","component":{"Text":{"text":{"literalString":"Canvas (A2UI v0.8)"},"usageHint":"h1"}}},{"id":"content","component":{"Text":{"text":{"literalString":"If you can read this, A2UI push works."},"usageHint":"body"}}}]}} {"beginRendering":{"surfaceId":"main","root":"root"}} EOFA2 openclaw nodes canvas a2ui push --jsonl /tmp/a2ui-v0.8.jsonl --node ``` Quick smoke: ```bash openclaw nodes canvas a2ui push --node --text "Hello from A2UI" ``` ## Triggering agent runs from Canvas Canvas can trigger new agent runs via deep links: - `openclaw://agent?...` Example (in JS): ```js window.location.href = "openclaw://agent?message=Review%20this%20design"; ``` The app prompts for confirmation unless a valid key is provided. ## Security notes - Canvas scheme blocks directory traversal; files must live under the session root. - Local Canvas content uses a custom scheme (no loopback server required). - External `http(s)` URLs are allowed only when explicitly navigated. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/canvas.md | main | opebclaw | [
-0.11188950389623642,
-0.027614517137408257,
-0.04457280784845352,
0.037732094526290894,
0.09185541421175003,
-0.07210952043533325,
-0.00870570633560419,
-0.007459037471562624,
0.013716073706746101,
0.0006972639821469784,
0.0023743503261357546,
0.01907852292060852,
0.011971632950007915,
0.047654129564762115,
0.030059056356549263,
0.07013192772865295,
0.0077169290743768215,
-0.016980689018964767,
0.009226747788488865,
0.06001352518796921,
0.017217300832271576,
-0.040781598538160324,
0.035197410732507706,
-0.07095469534397125,
0.03689325600862503,
0.021668368950486183,
-0.00965838972479105,
-0.06326238065958023,
-0.009445317089557648,
0.03201546519994736,
0.04845389723777771,
-0.00765405036509037,
0.0113711291924119,
-0.008085925132036209,
0.05330472066998482,
0.055395275354385376,
-0.018703147768974304,
-0.033218104392290115,
-0.1128787100315094,
-0.00997423380613327,
-0.014589904807507992,
0.1242033988237381,
-0.021617665886878967,
-0.026119748130440712,
-0.02101217955350876,
-0.11735690385103226,
-0.038409218192100525,
-0.04804278165102005,
-0.025327438488602638,
0.006363306660205126,
-0.08737622946500778,
-0.10794475674629211,
-0.021863052621483803,
-0.062382131814956665,
0.03597157448530197,
0.018595412373542786,
-0.017939044162631035,
-0.00036293809534981847,
0.06576000899076462,
0.04925043508410454,
0.030932409688830376,
-0.006857418920844793,
0.026483798399567604,
0.031029900535941124,
0.059466540813446045,
0.06700002402067184,
-0.07062817364931107,
0.020239194855093956,
-0.08149859309196472,
-0.06079168617725372,
-0.01661292463541031,
-0.016530156135559082,
0.08567088842391968,
-0.013314859941601753,
0.03473600000143051,
-0.14511772990226746,
0.027857353910803795,
0.06466645747423172,
-0.07317204028367996,
-0.09680668264627457,
-0.029814207926392555,
-0.05450640991330147,
0.02126362733542919,
0.08441026508808136,
0.07506520301103592,
0.09127689152956009,
-0.025181438773870468,
-0.01984560675919056,
0.012980662286281586,
0.0641254186630249,
-0.03341953456401825,
-0.06417785584926605,
-0.04963397979736328,
0.005828368943184614,
0.03199639171361923,
-0.013789452612400055,
-0.0007592578767798841,
0.08360839635133743,
-0.059440165758132935,
0.04319017753005028,
0.0020753329154103994,
-0.07708995789289474,
0.05207657441496849,
-0.04484884440898895,
0.03295721113681793,
0.04325340315699577,
-0.0032008718699216843,
0.057419341057538986,
-0.01621270924806595,
0.03891001641750336,
-0.011743609793484211,
-0.03131149336695671,
0.028708549216389656,
0.003184614237397909,
-0.04373995587229729,
-0.0550917387008667,
0.03633325546979904,
0.010058511048555374,
0.062264565378427505,
0.09146095812320709,
0.14245043694972992,
0.09722987562417984,
0.01276314351707697,
-0.05859676003456116,
0.032919708639383316,
-0.015545599162578583,
0.04126662015914917,
1.72803914384615e-33,
0.026369530707597733,
-0.041818391531705856,
-0.024721385911107063,
0.013032253831624985,
0.0797872543334961,
-0.09971325844526291,
0.030181387439370155,
0.02904299460351467,
-0.07240118831396103,
0.03554663062095642,
0.0027384706772863865,
0.07089707255363464,
-0.05305670201778412,
0.05911853909492493,
0.05741144344210625,
-0.034492794424295425,
-0.04457461088895798,
-0.03866901248693466,
0.08066696673631668,
-0.011039910838007927,
-0.02901897393167019,
-0.026551371440291405,
-0.09239573031663895,
0.027612371370196342,
-0.021013906225562096,
0.09377162903547287,
-0.038707830011844635,
0.025261538103222847,
-0.11579709500074387,
0.053230106830596924,
-0.008120392449200153,
0.04079007729887962,
-0.05983884260058403,
0.017084762454032898,
-0.1194520816206932,
-0.015467964112758636,
-0.09520874917507172,
-0.01675715669989586,
-0.027274146676063538,
-0.01476680301129818,
-0.011734952218830585,
-0.07285617291927338,
-0.04751592501997948,
0.03817269951105118,
-0.0008807365666143596,
-0.13985954225063324,
-0.0354546420276165,
0.06471455842256546,
-0.0336008220911026,
0.028198588639497757,
-0.03380649909377098,
0.030592357739806175,
0.06175787001848221,
0.00021468356135301292,
-0.032922204583883286,
-0.03476748988032341,
-0.019318506121635437,
-0.05516905337572098,
-0.005033328663557768,
0.016585223376750946,
0.05267108976840973,
0.012749158777296543,
-0.08476751297712326,
0.006674319040030241,
-0.08411349356174469,
0.02320854924619198,
0.04160644859075546,
-0.024839727208018303,
-0.0833277776837349,
-0.06680320203304291,
-0.059886395931243896,
0.039208848029375076,
0.050577953457832336,
0.04456057772040367,
-0.021779756993055344,
-0.08160172402858734,
-0.005816033110022545,
0.000693251087795943,
-0.0008257122826762497,
-0.05873646214604378,
0.011292592622339725,
-0.076894611120224,
0.017926886677742004,
0.002877013059332967,
0.031868353486061096,
-0.03267689049243927,
0.07213102281093597,
-0.028399905189871788,
-0.022015566006302834,
-0.017544900998473167,
-0.0030228691175580025,
-0.04615599289536476,
-0.04285223409533501,
-0.06383756548166275,
0.01555761881172657,
-4.8141441762705666e-33,
0.08189985156059265,
0.028853243216872215,
-0.012272675521671772,
0.003189699724316597,
-0.0374397449195385,
0.03938467800617218,
0.028992008417844772,
-0.010376972146332264,
-0.017819805070757866,
-0.04709692299365997,
-0.005643209908157587,
0.049938466399908066,
0.05851264297962189,
0.020481381565332413,
-0.0015462717274203897,
0.09931456297636032,
-0.06420029699802399,
-0.09033408015966415,
-0.053717222064733505,
-0.09162493795156479,
0.007029087748378515,
0.024790862575173378,
0.06771092861890793,
0.01209383737295866,
-0.009298081509768963,
-0.022074373438954353,
0.03356578201055527,
-0.0010981532977893949,
-0.015115712769329548,
0.038858309388160706,
-0.010279171168804169,
-0.042501289397478104,
-0.04086989536881447,
-0.025411497801542282,
0.09736611694097519,
0.03600345179438591,
-0.030450308695435524,
-0.01322130300104618,
-0.034734904766082764,
0.0054311249405145645,
0.04687236621975899,
-0.019208353012800217,
0.0308323223143816,
0.0666249692440033,
-0.056360483169555664,
0.11578921973705292,
-0.055534664541482925,
0.05333994701504707,
-0.08264526724815369,
-0.08665044605731964,
0.031133290380239487,
0.027674291282892227,
0.05732695385813713,
-0.05525783449411392,
0.06454343348741531,
0.06337425112724304,
-0.011714126914739609,
-0.02250729501247406,
-0.10091806203126907,
-0.007861391641199589,
0.06095114350318909,
-0.0015358183300122619,
-0.124277263879776,
0.045321304351091385,
0.019251452758908272,
-0.035341404378414154,
-0.12126540392637253,
0.010064437985420227,
-0.06244456395506859,
-0.01165662333369255,
0.027949243783950806,
-0.030061794444918633,
0.021971136331558228,
-0.057606298476457596,
-0.02705748938024044,
0.008318383246660233,
0.12836270034313202,
-0.0363406240940094,
0.020715175196528435,
-0.028222525492310524,
0.05580850690603256,
0.0854007676243782,
0.07352796196937561,
-0.06336455047130585,
-0.0037310433108359575,
0.017480969429016113,
-0.12236449867486954,
0.06294335424900055,
0.022895878180861473,
-0.006918400060385466,
-0.011388628743588924,
0.07261927425861359,
-0.0032899058423936367,
0.01712261699140072,
0.014474569819867611,
-4.9963500003968875e-8,
-0.08860382437705994,
-0.0019608340226113796,
-0.0033964684698730707,
-0.09153006970882416,
-0.02952512353658676,
-0.06904980540275574,
0.056387100368738174,
0.03960854187607765,
0.005922770127654076,
-0.01611580327153206,
0.08561544865369797,
0.002791953505948186,
-0.044128306210041046,
0.027303017675876617,
-0.044639360159635544,
0.0785825178027153,
0.012958861887454987,
0.08168310672044754,
0.02374432422220707,
-0.061981406062841415,
0.01137771550565958,
-0.03334713727235794,
0.013663024641573429,
0.05277644470334053,
0.003944519441574812,
-0.03754162788391113,
-0.08819742500782013,
0.014913007616996765,
-0.01652517542243004,
0.04335404559969902,
-0.054023902863264084,
-0.025781098753213882,
-0.015452607534825802,
0.04339399188756943,
-0.06390780955553055,
0.03574139624834061,
-0.09092912822961807,
-0.059778932482004166,
-0.0242622010409832,
-0.0229931827634573,
0.0520499162375927,
-0.018878430128097534,
0.02550097182393074,
0.0013244241708889604,
-0.016559267416596413,
0.025126170367002487,
0.01701090671122074,
-0.028067629784345627,
0.015886368229985237,
-0.0029847489204257727,
-0.044235583394765854,
-0.01455474179238081,
0.03889109939336777,
0.058670397847890854,
-0.0018868247279897332,
0.08691803365945816,
0.07365185022354126,
0.0009529987582936883,
0.04761635139584541,
0.06797502189874649,
-0.027719249948859215,
0.05190468952059746,
0.024228844791650772,
0.0534624345600605
] | 0.156553 |
# WebChat (macOS app) The macOS menu bar app embeds the WebChat UI as a native SwiftUI view. It connects to the Gateway and defaults to the \*\*main session\*\* for the selected agent (with a session switcher for other sessions). - \*\*Local mode\*\*: connects directly to the local Gateway WebSocket. - \*\*Remote mode\*\*: forwards the Gateway control port over SSH and uses that tunnel as the data plane. ## Launch & debugging - Manual: Lobster menu → “Open Chat”. - Auto‑open for testing: ```bash dist/OpenClaw.app/Contents/MacOS/OpenClaw --webchat ``` - Logs: `./scripts/clawlog.sh` (subsystem `bot.molt`, category `WebChatSwiftUI`). ## How it’s wired - Data plane: Gateway WS methods `chat.history`, `chat.send`, `chat.abort`, `chat.inject` and events `chat`, `agent`, `presence`, `tick`, `health`. - Session: defaults to the primary session (`main`, or `global` when scope is global). The UI can switch between sessions. - Onboarding uses a dedicated session to keep first‑run setup separate. ## Security surface - Remote mode forwards only the Gateway WebSocket control port over SSH. ## Known limitations - The UI is optimized for chat sessions (not a full browser sandbox). | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/webchat.md | main | opebclaw | [
-0.015370998531579971,
-0.03930162638425827,
0.0020281891338527203,
0.012735632248222828,
-0.033385295420885086,
-0.11886127293109894,
0.01777265965938568,
-0.03366401419043541,
0.015493147075176239,
-0.008201834745705128,
0.0620528981089592,
-0.04733961075544357,
-0.037569861859083176,
0.05358799919486046,
0.09386304020881653,
0.055865779519081116,
0.038715001195669174,
-0.156802237033844,
0.039182115346193314,
0.004781178664416075,
0.042403385043144226,
0.011947432532906532,
0.019476640969514847,
-0.03952653706073761,
-0.0219955462962389,
-0.015673477202653885,
0.024951959028840065,
-0.03659076988697052,
-0.03269042447209358,
-0.027754388749599457,
0.011595245450735092,
-0.0029010798316448927,
-0.0645979717373848,
0.049676839262247086,
-0.0048965271562337875,
-0.03835979476571083,
0.11241447925567627,
0.002253670943900943,
-0.023051049560308456,
0.08568459749221802,
-0.028439650312066078,
-0.005858875345438719,
0.03427143767476082,
0.007293712347745895,
-0.020385028794407845,
-0.03053845465183258,
-0.09453938156366348,
-0.0400884747505188,
0.01320349145680666,
0.02983042784035206,
-0.0847141221165657,
-0.041617363691329956,
0.05853854492306709,
0.12367585301399231,
0.07672402262687683,
0.052752185612916946,
-0.03702884167432785,
0.04087241739034653,
0.06880128383636475,
-0.025103075429797173,
-0.009992462582886219,
0.057895563542842865,
0.02989138662815094,
-0.004105813335627317,
-0.027688976377248764,
-0.015771696344017982,
-0.020744433626532555,
-0.02108137309551239,
-0.0014048239681869745,
-0.05278947204351425,
0.0062921480275690556,
-0.03478201478719711,
0.0042577781714499,
-0.027266215533018112,
-0.028809264302253723,
-0.05636768415570259,
0.053873151540756226,
0.020088251680135727,
-0.05395172908902168,
-0.010377807542681694,
-0.025360729545354843,
-0.003499372163787484,
-0.020716937258839607,
0.0796256884932518,
0.014147619716823101,
0.060477692633867264,
-0.039187055081129074,
-0.03697168454527855,
0.012422001920640469,
0.12620383501052856,
-0.02989489585161209,
-0.10261677205562592,
-0.05759201571345329,
0.015875767916440964,
0.03413528949022293,
-0.03539246320724487,
-0.008169913664460182,
0.04804380238056183,
-0.05509134754538536,
0.04985878989100456,
0.017316855490207672,
0.007122789975255728,
0.00978410616517067,
0.0018547094659879804,
0.004165805410593748,
-0.004672642797231674,
0.04956524074077606,
0.02948940359055996,
0.07782337814569473,
0.03454773873090744,
-0.02618402987718582,
-0.05146270990371704,
0.05497492477297783,
0.051385778933763504,
-0.007948627695441246,
-0.0023833969607949257,
-0.0412166602909565,
0.0149757144972682,
0.015823982656002045,
0.06424014270305634,
0.10819074511528015,
0.08426550775766373,
0.007216061465442181,
0.014251346699893475,
0.027991631999611855,
0.04335804656147957,
0.09858573973178864,
4.773553254310719e-33,
0.11385684460401535,
-0.057263001799583435,
-0.09981095790863037,
0.0030511890072375536,
0.12542344629764557,
0.05422961339354515,
0.01006462424993515,
0.03632476180791855,
-0.044571541249752045,
0.049334391951560974,
-0.05486750975251198,
0.009110703133046627,
-0.03733489662408829,
-0.0026799715124070644,
-0.018671469762921333,
0.014965987764298916,
-0.0525691919028759,
-0.03009084425866604,
0.06527841091156006,
-0.010760215111076832,
0.013223562389612198,
-0.02955622598528862,
0.03420586138963699,
-0.0037336647510528564,
-0.023065922781825066,
0.08945727348327637,
-0.036845821887254715,
-0.02258959412574768,
-0.04389745369553566,
0.061986204236745834,
0.016507618129253387,
0.0026088866870850325,
-0.0455627366900444,
0.01569555327296257,
-0.021030982956290245,
-0.04825477674603462,
-0.0089836735278368,
-0.05373627319931984,
-0.07427933812141418,
-0.010357404127717018,
-0.07133807986974716,
-0.07556527853012085,
-0.08853012323379517,
-0.03777490556240082,
-0.034042324870824814,
-0.08732733130455017,
-0.05104898661375046,
0.021280545741319656,
0.024958224967122078,
0.014039479196071625,
-0.129466712474823,
-0.02324187569320202,
0.00989231001585722,
0.020838838070631027,
-0.017025383189320564,
-0.02239540033042431,
0.012590506114065647,
-0.0424509197473526,
-0.015153268352150917,
0.022425420582294464,
-0.061196330934762955,
0.04478054866194725,
0.004420181270688772,
-0.05339685454964638,
0.03878917917609215,
0.050215449184179306,
-0.01726505532860756,
0.020090609788894653,
-0.014883551746606827,
-0.055219270288944244,
-0.04306795075535774,
-0.014431114308536053,
0.05595966428518295,
0.04345904663205147,
-0.05477021634578705,
-0.008892415091395378,
-0.016899321228265762,
0.020534412935376167,
0.030150478705763817,
-0.030680445954203606,
0.05291125550866127,
-0.03890182077884674,
0.013886552304029465,
0.021440554410219193,
0.007473452482372522,
0.047213114798069,
0.052799712866544724,
-0.05528675392270088,
-0.03388466313481331,
0.12200316041707993,
-0.11065959930419922,
-0.03226995840668678,
0.006957325618714094,
-0.017797714099287987,
-0.021291492506861687,
-6.455574733058054e-33,
0.016874153167009354,
0.03898026421666145,
-0.07598189264535904,
-0.012431531213223934,
-0.02719116024672985,
-0.04977639392018318,
0.0693187564611435,
0.019105255603790283,
-0.01909385435283184,
-0.03466424718499184,
-0.0067517817951738834,
0.040580444037914276,
0.05110294371843338,
-0.03585368022322655,
0.05957559496164322,
0.04155641049146652,
-0.04856589064002037,
-0.0751817598938942,
-0.03295489773154259,
-0.033427704125642776,
0.020511535927653313,
-0.0029712135437875986,
-0.061366915702819824,
0.011792060919106007,
0.05520112067461014,
-0.013690633699297905,
0.11833959072828293,
0.012255961075425148,
-0.005211731884628534,
-0.09963095933198929,
0.022151624783873558,
0.01489427499473095,
-0.02453596703708172,
-0.0051100365817546844,
0.021709341555833817,
0.11179250478744507,
0.06394703686237335,
0.04824608936905861,
-0.017952146008610725,
-0.050399523228406906,
0.09665901958942413,
-0.03058953396975994,
-0.09235068410634995,
-0.010808070190250874,
-0.0282751377671957,
0.16805556416511536,
-0.16898830235004425,
0.044385459274053574,
-0.0804324820637703,
0.0017161123687401414,
0.04935507848858833,
-0.0018385041039437056,
0.06857383996248245,
-0.021019600331783295,
-0.02771463617682457,
0.05101870372891426,
0.014194590970873833,
-0.02540159970521927,
-0.003923308104276657,
-0.0442977249622345,
0.014161232858896255,
-0.059329066425561905,
-0.02018728479743004,
0.05326469987630844,
-0.002233022591099143,
-0.09870005398988724,
-0.06882162392139435,
0.05191005766391754,
0.05562863498926163,
0.0006936169811524451,
0.0077723553404212,
-0.039634790271520615,
0.07809524983167648,
-0.040498025715351105,
0.009027031250298023,
-0.015645738691091537,
0.006917625665664673,
-0.09207318723201752,
0.06299946457147598,
0.03989173471927643,
-0.0001516951888334006,
0.06055767461657524,
0.06701463460922241,
-0.0665053054690361,
0.07026946544647217,
0.03761451318860054,
-0.019036540761590004,
0.15694238245487213,
-0.001374495099298656,
0.03055969625711441,
-0.08588049560785294,
0.00420297309756279,
-0.06513223797082901,
-0.0039617628790438175,
0.052330393344163895,
-5.440934813805143e-8,
-0.042817551642656326,
-0.07397779077291489,
-0.03869381174445152,
0.02914503775537014,
0.02691611647605896,
-0.01757829636335373,
-0.0052805207669734955,
0.010322758927941322,
-0.028340712189674377,
-0.001429105643182993,
0.030221959576010704,
0.07856447994709015,
-0.06453283876180649,
0.007373405620455742,
-0.0354841910302639,
0.025147125124931335,
0.006976923439651728,
-0.04186360538005829,
0.038483258336782455,
-0.08169850707054138,
0.06338962912559509,
-0.0983995646238327,
-0.02690783515572548,
0.05686461925506592,
-0.0725790336728096,
0.0006286391289904714,
-0.051173869520425797,
0.06238424405455589,
-0.1523246318101883,
-0.004322314169257879,
-0.04749004915356636,
-0.021477337926626205,
0.003993072547018528,
-0.03914191573858261,
-0.020361367613077164,
0.035850945860147476,
-0.09484154731035233,
-0.08637132495641708,
0.004189375322312117,
-0.04951158165931702,
-0.011342876590788364,
-0.02396469935774803,
-0.0023453058674931526,
-0.038590237498283386,
-0.061514031141996384,
0.03446519002318382,
-0.031279198825359344,
0.06015442684292793,
0.027615146711468697,
0.03562527522444725,
-0.010263236239552498,
-0.055675797164440155,
0.03874092549085617,
0.039373092353343964,
0.03214305266737938,
0.029456470161676407,
0.10843890905380249,
-0.13905085623264313,
-0.03097345307469368,
0.04318675026297569,
0.019692949950695038,
0.0588386096060276,
-0.020146144554018974,
-0.03161580115556717
] | 0.070792 |
# Voice Overlay Lifecycle (macOS) Audience: macOS app contributors. Goal: keep the voice overlay predictable when wake-word and push-to-talk overlap. ### Current intent - If the overlay is already visible from wake-word and the user presses the hotkey, the hotkey session \_adopts\_ the existing text instead of resetting it. The overlay stays up while the hotkey is held. When the user releases: send if there is trimmed text, otherwise dismiss. - Wake-word alone still auto-sends on silence; push-to-talk sends immediately on release. ### Implemented (Dec 9, 2025) - Overlay sessions now carry a token per capture (wake-word or push-to-talk). Partial/final/send/dismiss/level updates are dropped when the token doesn’t match, avoiding stale callbacks. - Push-to-talk adopts any visible overlay text as a prefix (so pressing the hotkey while the wake overlay is up keeps the text and appends new speech). It waits up to 1.5s for a final transcript before falling back to the current text. - Chime/overlay logging is emitted at `info` in categories `voicewake.overlay`, `voicewake.ptt`, and `voicewake.chime` (session start, partial, final, send, dismiss, chime reason). ### Next steps 1. \*\*VoiceSessionCoordinator (actor)\*\* - Owns exactly one `VoiceSession` at a time. - API (token-based): `beginWakeCapture`, `beginPushToTalk`, `updatePartial`, `endCapture`, `cancel`, `applyCooldown`. - Drops callbacks that carry stale tokens (prevents old recognizers from reopening the overlay). 2. \*\*VoiceSession (model)\*\* - Fields: `token`, `source` (wakeWord|pushToTalk), committed/volatile text, chime flags, timers (auto-send, idle), `overlayMode` (display|editing|sending), cooldown deadline. 3. \*\*Overlay binding\*\* - `VoiceSessionPublisher` (`ObservableObject`) mirrors the active session into SwiftUI. - `VoiceWakeOverlayView` renders only via the publisher; it never mutates global singletons directly. - Overlay user actions (`sendNow`, `dismiss`, `edit`) call back into the coordinator with the session token. 4. \*\*Unified send path\*\* - On `endCapture`: if trimmed text is empty → dismiss; else `performSend(session:)` (plays send chime once, forwards, dismisses). - Push-to-talk: no delay; wake-word: optional delay for auto-send. - Apply a short cooldown to the wake runtime after push-to-talk finishes so wake-word doesn’t immediately retrigger. 5. \*\*Logging\*\* - Coordinator emits `.info` logs in subsystem `bot.molt`, categories `voicewake.overlay` and `voicewake.chime`. - Key events: `session\_started`, `adopted\_by\_push\_to\_talk`, `partial`, `finalized`, `send`, `dismiss`, `cancel`, `cooldown`. ### Debugging checklist - Stream logs while reproducing a sticky overlay: ```bash sudo log stream --predicate 'subsystem == "bot.molt" AND category CONTAINS "voicewake"' --level info --style compact ``` - Verify only one active session token; stale callbacks should be dropped by the coordinator. - Ensure push-to-talk release always calls `endCapture` with the active token; if text is empty, expect `dismiss` without chime or send. ### Migration steps (suggested) 1. Add `VoiceSessionCoordinator`, `VoiceSession`, and `VoiceSessionPublisher`. 2. Refactor `VoiceWakeRuntime` to create/update/end sessions instead of touching `VoiceWakeOverlayController` directly. 3. Refactor `VoicePushToTalk` to adopt existing sessions and call `endCapture` on release; apply runtime cooldown. 4. Wire `VoiceWakeOverlayController` to the publisher; remove direct calls from runtime/PTT. 5. Add integration tests for session adoption, cooldown, and empty-text dismissal. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/voice-overlay.md | main | opebclaw | [
-0.04597276821732521,
-0.059889841824769974,
0.050211697816848755,
-0.01930677890777588,
0.04350448399782181,
-0.04232816770672798,
0.04939274862408638,
-0.026977920904755592,
0.08132302016019821,
-0.04174335300922394,
-0.015249918214976788,
0.0368320569396019,
-0.031702280044555664,
-0.011175463907420635,
0.0655980184674263,
0.01997048780322075,
0.04243974760174751,
-0.010633417405188084,
-0.021661395207047462,
0.0026732063852250576,
0.08341065794229507,
0.04809689149260521,
0.08533897995948792,
0.0695929080247879,
0.03403580188751221,
-0.024759436026215553,
-0.04528694972395897,
-0.059470634907484055,
0.02537991665303707,
0.03166545182466507,
0.020462464541196823,
0.0594143383204937,
0.09597814083099365,
0.007958408445119858,
-0.10560280829668045,
0.07126142829656601,
0.04573832452297211,
0.07989127933979034,
-0.10794684290885925,
-0.03343985974788666,
-0.047839075326919556,
-0.03367328271269798,
0.01501286868005991,
0.060110967606306076,
-0.025951944291591644,
-0.04247137904167175,
-0.10352097451686859,
0.023189883679151535,
-0.03900611773133278,
0.05614737048745155,
-0.02330004796385765,
-0.10974916815757751,
0.040383629500865936,
0.07339352369308472,
-0.04556051269173622,
0.12656162679195404,
-0.0017021230887621641,
0.07272928208112717,
0.036864541471004486,
0.024443812668323517,
-0.1061454638838768,
-0.05796763673424721,
0.014915220439434052,
-0.01636706292629242,
-0.00263354298658669,
0.08991766721010208,
-0.05064189061522484,
-0.0083186449483037,
0.016207873821258545,
0.008414980955421925,
-0.0016408588271588087,
-0.00462684128433466,
0.030979478731751442,
-0.09444498270750046,
-0.0015535354614257812,
-0.015329179354012012,
0.037613917142152786,
-0.050176121294498444,
-0.009970087558031082,
-0.019077647477388382,
0.05110408738255501,
-0.09849464148283005,
0.00025592459132894874,
-0.06894517689943314,
0.04811618849635124,
-0.028983015567064285,
-0.001992020523175597,
-0.0526600256562233,
-0.03325853496789932,
0.07370354980230331,
-0.08604705333709717,
-0.05345296859741211,
0.025418272241950035,
0.017992008477449417,
-0.004342865664511919,
-0.013425011187791824,
-0.08387059718370438,
-0.008119247853755951,
-0.007721729576587677,
0.03391242027282715,
0.006311086937785149,
-0.04822912812232971,
-0.06828776746988297,
-0.05345362052321434,
0.028547747060656548,
-0.038976121693849564,
-0.02462117187678814,
-0.04086092486977577,
-0.023166408762335777,
0.04529478773474693,
0.009793759323656559,
-0.03272285312414169,
0.07562335580587387,
0.005692973267287016,
0.002332750242203474,
0.0996001586318016,
0.013354077003896236,
0.040263913571834564,
0.07969468086957932,
0.03837510198354721,
0.08256582170724869,
0.007989427074790001,
-0.03127364441752434,
-0.08896404504776001,
-0.04824262112379074,
0.003995110746473074,
0.06992556154727936,
4.292437008172588e-33,
-0.04194056615233421,
0.0354161337018013,
-0.10558806359767914,
0.10003447532653809,
0.0022895189467817545,
-0.0809352695941925,
0.023269299417734146,
-0.013907032087445259,
-0.048452574759721756,
-0.06503713130950928,
0.012493012472987175,
0.04271301254630089,
-0.007858493365347385,
-0.005491030402481556,
-0.00972620490938425,
-0.09740767627954483,
-0.01664908416569233,
0.10023634135723114,
-0.012191087938845158,
-0.006161417346447706,
-0.005403726827353239,
0.027528563514351845,
-0.02513040602207184,
0.06716815382242203,
0.07686016708612442,
0.03512091562151909,
0.004870381206274033,
-0.06399854272603989,
-0.007282912731170654,
0.019854741171002388,
-0.044006139039993286,
-0.0015880969585850835,
0.025245999917387962,
0.0259548407047987,
0.016145089641213417,
0.003704276168718934,
-0.03273511677980423,
-0.0317949503660202,
0.005591207183897495,
-0.07752837985754013,
-0.05448528379201889,
-0.003365724580362439,
-0.055897895246744156,
-0.12238632142543793,
0.00531937088817358,
-0.075626440346241,
-0.05670379102230072,
0.06872550398111343,
-0.020789479836821556,
0.0019552642479538918,
0.03213242441415787,
0.022897711023688316,
-0.06699121743440628,
0.03780990466475487,
-0.054516203701496124,
-0.0905497595667839,
-0.0354720875620842,
-0.025694597512483597,
0.023998672142624855,
0.04990994185209274,
-0.004434980917721987,
0.025458838790655136,
0.04963411018252373,
-0.02257177047431469,
0.026211723685264587,
0.06349889934062958,
-0.04662851616740227,
-0.05715230852365494,
-0.018413424491882324,
-0.03944770619273186,
0.010149051435291767,
0.03798582777380943,
-0.09534192085266113,
0.05181561037898064,
-0.0804809108376503,
0.04899338260293007,
0.057930052280426025,
-0.00966427568346262,
0.029458316043019295,
0.07891353219747543,
0.09095221757888794,
-0.016534341499209404,
-0.034501202404499054,
0.0272732712328434,
0.070125050842762,
-0.022757505998015404,
-0.014754598028957844,
-0.09199387580156326,
-0.10916402190923691,
0.08034507185220718,
-0.0769466906785965,
-0.026782775297760963,
0.037546075880527496,
0.05361663177609444,
-0.03439352288842201,
-3.08564769165355e-33,
0.046430256217718124,
0.060028038918972015,
-0.06129442900419235,
0.0943608209490776,
-0.02029375173151493,
0.019238103181123734,
0.0472467839717865,
0.050987593829631805,
-0.009634782560169697,
-0.07077394425868988,
-0.06964941322803497,
0.009594731964170933,
0.04174720495939255,
-0.01032952405512333,
0.038057029247283936,
-0.017293507233262062,
0.05477766692638397,
0.01669318787753582,
-0.040310345590114594,
0.06523340940475464,
0.012953006662428379,
-0.057074178010225296,
-0.08274684101343155,
0.04818917438387871,
-0.010431857779622078,
0.00766502320766449,
-0.058812983334064484,
0.07177936285734177,
0.07820751518011093,
-0.057134367525577545,
-0.04487753286957741,
-0.025668863207101822,
-0.046053823083639145,
-0.02193502150475979,
0.01943911425769329,
0.06702477484941483,
-0.023060400038957596,
0.0679236650466919,
0.05990634858608246,
0.010381297208368778,
0.15735042095184326,
-0.024093881249427795,
-0.03314870968461037,
-0.030209805816411972,
-0.032741013914346695,
0.0390673466026783,
-0.076136514544487,
0.049411214888095856,
-0.11683396995067596,
-0.054263174533843994,
0.05944083258509636,
-0.01908756047487259,
0.05201283469796181,
0.0226791612803936,
-0.059699274599552155,
0.012673525139689445,
0.04529563710093498,
-0.02370711974799633,
-0.02608994022011757,
-0.05686488747596741,
0.05682215467095375,
-0.05520689859986305,
0.06798747181892395,
-0.07674901932477951,
0.07150822877883911,
0.03288447484374046,
-0.012590944766998291,
0.012095668353140354,
0.036270901560783386,
-0.0024138118606060743,
0.07643909007310867,
-0.004112988244742155,
0.008279038593173027,
0.003585986327379942,
0.033911991864442825,
0.08303862810134888,
-0.04223701357841492,
-0.16607160866260529,
-0.049268800765275955,
-0.041226282715797424,
-0.06825290620326996,
0.040552008897066116,
0.04277072474360466,
0.03488664701581001,
0.07748188078403473,
0.1064017117023468,
-0.008280822075903416,
0.0807744711637497,
0.07492267340421677,
0.06992774456739426,
-0.05067117512226105,
0.06573697924613953,
-0.012229778803884983,
-0.0128195621073246,
-0.011313091032207012,
-5.0603105705704365e-8,
-0.01757744699716568,
-0.06393156945705414,
0.05533388629555702,
-0.03950169309973717,
0.027554145082831383,
-0.020320633426308632,
0.0590040497481823,
-0.04895375669002533,
0.024007879197597504,
-0.0677746906876564,
-0.003069415455684066,
-0.010535147041082382,
0.0047996873036026955,
-0.0038348014932125807,
-0.012658077292144299,
0.037346743047237396,
-0.02843424491584301,
0.027476269751787186,
-0.034046415239572525,
-0.06287024915218353,
-0.010256366804242134,
0.012500681914389133,
0.0214118342846632,
0.0026602819561958313,
-0.017633767798542976,
-0.008127547800540924,
0.061202388256788254,
0.12066853046417236,
-0.002265663119032979,
-0.07828576862812042,
0.01754281297326088,
0.01156400702893734,
-0.06083275377750397,
0.0006146301748231053,
-0.07883085310459137,
0.006716846954077482,
0.010570433922111988,
-0.02676776796579361,
0.0035248121712356806,
0.0648246705532074,
0.02560718171298504,
-0.04330737888813019,
-0.051056697964668274,
0.003894814755767584,
-0.003531428286805749,
0.02043973281979561,
-0.029057981446385384,
-0.07993185520172119,
-0.048794716596603394,
0.024545369669795036,
-0.03071678802371025,
0.014308507554233074,
0.0194040946662426,
0.04369136691093445,
0.0455571673810482,
0.011428472585976124,
0.08934734016656876,
0.03914116695523262,
0.10096066445112228,
0.023095987737178802,
-0.002460688119754195,
0.008378340862691402,
-0.03944097459316254,
0.02086607739329338
] | 0.109262 |
# OpenClaw macOS IPC architecture \*\*Current model:\*\* a local Unix socket connects the \*\*node host service\*\* to the \*\*macOS app\*\* for exec approvals + `system.run`. A `openclaw-mac` debug CLI exists for discovery/connect checks; agent actions still flow through the Gateway WebSocket and `node.invoke`. UI automation uses PeekabooBridge. ## Goals - Single GUI app instance that owns all TCC-facing work (notifications, screen recording, mic, speech, AppleScript). - A small surface for automation: Gateway + node commands, plus PeekabooBridge for UI automation. - Predictable permissions: always the same signed bundle ID, launched by launchd, so TCC grants stick. ## How it works ### Gateway + node transport - The app runs the Gateway (local mode) and connects to it as a node. - Agent actions are performed via `node.invoke` (e.g. `system.run`, `system.notify`, `canvas.\*`). ### Node service + app IPC - A headless node host service connects to the Gateway WebSocket. - `system.run` requests are forwarded to the macOS app over a local Unix socket. - The app performs the exec in UI context, prompts if needed, and returns output. Diagram (SCI): ``` Agent -> Gateway -> Node Service (WS) | IPC (UDS + token + HMAC + TTL) v Mac App (UI + TCC + system.run) ``` ### PeekabooBridge (UI automation) - UI automation uses a separate UNIX socket named `bridge.sock` and the PeekabooBridge JSON protocol. - Host preference order (client-side): Peekaboo.app → Claude.app → OpenClaw.app → local execution. - Security: bridge hosts require an allowed TeamID; DEBUG-only same-UID escape hatch is guarded by `PEEKABOO\_ALLOW\_UNSIGNED\_SOCKET\_CLIENTS=1` (Peekaboo convention). - See: [PeekabooBridge usage](/platforms/mac/peekaboo) for details. ## Operational flows - Restart/rebuild: `SIGN\_IDENTITY="Apple Development: ()" scripts/restart-mac.sh` - Kills existing instances - Swift build + package - Writes/bootstraps/kickstarts the LaunchAgent - Single instance: app exits early if another instance with the same bundle ID is running. ## Hardening notes - Prefer requiring a TeamID match for all privileged surfaces. - PeekabooBridge: `PEEKABOO\_ALLOW\_UNSIGNED\_SOCKET\_CLIENTS=1` (DEBUG-only) may allow same-UID callers for local development. - All communication remains local-only; no network sockets are exposed. - TCC prompts originate only from the GUI app bundle; keep the signed bundle ID stable across rebuilds. - IPC hardening: socket mode `0600`, token, peer-UID checks, HMAC challenge/response, short TTL. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/xpc.md | main | opebclaw | [
-0.12039580196142197,
-0.04693049192428589,
-0.030290009453892708,
0.008154837414622307,
0.0018523263279348612,
-0.09612441062927246,
0.015464166179299355,
0.013278264552354813,
-0.007303958758711815,
0.012974567711353302,
-0.011394343338906765,
-0.08247888833284378,
0.02470066212117672,
-0.012591773644089699,
0.07534101605415344,
0.03347828611731529,
0.15006981790065765,
-0.0696018636226654,
0.07673496752977371,
-0.059035614132881165,
-0.03428206965327263,
-0.00853138230741024,
-0.0012998662423342466,
-0.037630632519721985,
-0.08032385259866714,
-0.053121164441108704,
0.025981606915593147,
-0.055945370346307755,
-0.007427150849252939,
0.03730384632945061,
-0.0027498146519064903,
-0.0015416082460433245,
-0.04238196462392807,
0.013660218566656113,
0.03306211903691292,
-0.0012854026863351464,
0.08958541601896286,
-0.020232953131198883,
-0.11878007650375366,
-0.056858234107494354,
0.07473703473806381,
0.0019761701114475727,
-0.02959497459232807,
0.011060030199587345,
0.004641427658498287,
-0.06291844695806503,
-0.040813248604536057,
-0.06405628472566605,
0.015185453929007053,
0.007232229690998793,
-0.030189646407961845,
-0.06262242794036865,
0.015962745994329453,
0.02642260678112507,
0.017575493082404137,
0.029368111863732338,
0.009744761511683464,
-0.05110379308462143,
0.0875101238489151,
0.021068233996629715,
0.00305886659771204,
-0.019953932613134384,
-0.03239003196358681,
0.08294336497783661,
-0.007111776620149612,
0.02530587837100029,
-0.07580401003360748,
0.014034965075552464,
0.026321951299905777,
-0.07582256942987442,
-0.019064879044890404,
-0.032159846276044846,
0.03285625949501991,
-0.010542974807322025,
-0.026703543961048126,
-0.02891780249774456,
0.032093703746795654,
0.008513073436915874,
-0.09548623114824295,
-0.12330611050128937,
-0.08692318201065063,
0.021843643859028816,
-0.09588820487260818,
0.10417400300502777,
-0.050727929919958115,
0.12601400911808014,
0.02079681307077408,
0.029668601229786873,
0.014939903281629086,
0.11822730302810669,
0.036423228681087494,
-0.03804492950439453,
-0.06353441625833511,
-0.05101277306675911,
0.06211565434932709,
-0.015594159252941608,
0.01587228663265705,
0.0027325523551553488,
-0.05765204131603241,
0.043763067573308945,
-0.05046702176332474,
-0.001652535516768694,
0.018997838720679283,
-0.03414880484342575,
-0.012763063423335552,
0.028545625507831573,
-0.03739472106099129,
0.021326115354895592,
0.10427205264568329,
0.05675043538212776,
-0.06433381885290146,
-0.05379651486873627,
-0.010728560388088226,
0.008944532833993435,
0.004807637073099613,
0.012216768227517605,
-0.019147319719195366,
0.022570550441741943,
0.046205632388591766,
0.039692509919404984,
0.07185366004705429,
-0.021376514807343483,
-0.020613085478544235,
0.00010513058805372566,
0.09430839866399765,
0.01085356529802084,
0.0386575423181057,
3.2236705649072564e-33,
0.00719822570681572,
-0.03317856416106224,
-0.020763998851180077,
0.07994799315929413,
0.11437162011861801,
-0.03438211604952812,
0.08832225203514099,
-0.010764127597212791,
-0.06473121792078018,
0.06555139273405075,
-0.07518909871578217,
0.05983823910355568,
-0.029825378209352493,
-0.04659285023808479,
0.025065643712878227,
-0.04491818696260452,
-0.09313355386257172,
0.011942499317228794,
0.07911805063486099,
0.039697278290987015,
0.06043407320976257,
-0.06285393238067627,
-0.01867501623928547,
0.024564795196056366,
0.006928719114512205,
0.005831574089825153,
-0.07056102156639099,
0.0063979243859648705,
0.06719977408647537,
0.06387017667293549,
0.03285771980881691,
0.04844968020915985,
-0.014395931735634804,
0.014621824026107788,
-0.10586599260568619,
-0.031874459236860275,
-0.039779022336006165,
-0.06209215521812439,
-0.02231620065867901,
-0.0047792899422347546,
-0.07824043184518814,
-0.08156735450029373,
-0.04945366457104683,
-0.04993699863553047,
-0.005240175873041153,
-0.1746983528137207,
-0.10628111660480499,
0.06340143084526062,
0.04556770622730255,
0.051302142441272736,
0.021967660635709763,
-0.03950098156929016,
0.08196396380662918,
-0.015806425362825394,
0.039922263473272324,
-0.05120150372385979,
0.0018066243501380086,
-0.007851824164390564,
0.016420645639300346,
0.047117672860622406,
-0.0004249163612257689,
0.07356604933738708,
-0.05696062371134758,
0.04198850691318512,
0.021853866055607796,
0.018760863691568375,
0.03301352635025978,
-0.02221193164587021,
-0.05395323038101196,
0.02503722347319126,
-0.09377072006464005,
0.05886874347925186,
-0.04498228430747986,
0.03289848566055298,
0.014606047421693802,
-0.03282962366938591,
-0.04189719632267952,
-0.012768564745783806,
0.0016317522386088967,
0.010632180608808994,
0.006780923809856176,
-0.010238605551421642,
-0.0005192075041122735,
0.04739096015691757,
0.05506053939461708,
0.0301321092993021,
-0.0037182762753218412,
0.007654396817088127,
-0.05130550637841225,
0.08110740035772324,
0.002093117218464613,
0.027684301137924194,
-0.006269932724535465,
0.07696588337421417,
-0.05614597350358963,
-5.5632687262923635e-33,
0.037609606981277466,
-0.035212792456150055,
-0.041730284690856934,
0.0024605486541986465,
-0.05019497871398926,
-0.0346963107585907,
-0.017047075554728508,
-0.04059203714132309,
-0.039599888026714325,
-0.022923316806554794,
-0.01962795853614807,
0.048669833689928055,
0.047002848237752914,
-0.04744246229529381,
-0.00193877425044775,
-0.05735711380839348,
-0.018308840692043304,
-0.07675497978925705,
-0.04716950282454491,
0.00586266303434968,
-0.03447896987199783,
0.02902364544570446,
0.010279491543769836,
-0.04492229223251343,
-0.008314586244523525,
-0.005872659385204315,
-0.0017584702000021935,
0.07615587115287781,
-0.044012393802404404,
-0.032811518758535385,
-0.004146553575992584,
0.039422813802957535,
-0.017823167145252228,
0.027729738503694534,
0.03978326916694641,
0.044824011623859406,
0.02819385752081871,
0.09193897992372513,
0.028251949697732925,
-0.015090495347976685,
0.053271740674972534,
-0.06029051914811134,
-0.05287393555045128,
0.008921151049435139,
-0.0055692424066364765,
0.08076632022857666,
-0.11431227624416351,
0.08141171187162399,
-0.12687331438064575,
-0.016238823533058167,
0.021386820822954178,
0.033278144896030426,
0.06277111917734146,
0.061747800558805466,
0.010175229981541634,
0.11361031979322433,
0.07981803268194199,
-0.027341537177562714,
0.000683033314999193,
-0.045159660279750824,
0.10339895635843277,
-0.0864001139998436,
-0.020180633291602135,
0.07839829474687576,
-0.00248235696926713,
-0.03197154030203819,
-0.009147420525550842,
0.0643332228064537,
-0.054513316601514816,
-0.026868117973208427,
0.036158494651317596,
-0.07507172226905823,
-0.0459941141307354,
-0.053228043019771576,
0.004500749055296183,
-0.02676980383694172,
0.02636941894888878,
-0.09596802294254303,
-0.023280007764697075,
0.059386689215898514,
-0.030924949795007706,
0.11794795095920563,
0.03427491337060928,
-0.02526427060365677,
-0.036269113421440125,
0.05931980535387993,
-0.019877001643180847,
0.06348434090614319,
0.11127297580242157,
0.04729614406824112,
-0.14003896713256836,
0.026194490492343903,
0.019311511889100075,
-0.00025966588873416185,
-0.0317467525601387,
-5.4166754637208214e-8,
-0.05719994381070137,
-0.020677417516708374,
-0.035686977207660675,
-0.003602726152166724,
-0.03557431325316429,
0.005193615332245827,
-0.052179645746946335,
-0.01155367586761713,
0.02384083904325962,
0.037361230701208115,
0.046631503850221634,
0.0042274463921785355,
-0.05004531517624855,
0.028012027963995934,
0.02880203165113926,
0.053647398948669434,
0.04439054802060127,
0.013174891471862793,
0.02352997288107872,
-0.06499428302049637,
0.020939422771334648,
-0.046511102467775345,
0.01658931002020836,
0.04941361024975777,
-0.07596620172262192,
-0.040702033787965775,
0.012319705449044704,
0.03527381271123886,
-0.09883110225200653,
0.055914849042892456,
-0.0755990520119667,
-0.06193854287266731,
0.016973361372947693,
0.053080689162015915,
-0.013188723474740982,
0.06376590579748154,
-0.08335190266370773,
-0.0019565552938729525,
0.04825172573328018,
0.013507603667676449,
-0.00904848799109459,
-0.005766176152974367,
-0.05149241164326668,
-0.055790238082408905,
-0.045918144285678864,
0.04452287405729294,
-0.05230669677257538,
0.028736276552081108,
0.009210516698658466,
0.007300678174942732,
0.017057063058018684,
-0.020481226965785027,
-0.01650208793580532,
0.02822931669652462,
0.015157496556639671,
0.05973818153142929,
0.052647631615400314,
-0.14895692467689514,
0.00771474651992321,
0.07235224545001984,
-0.02046188898384571,
0.04359962418675423,
0.028423823416233063,
0.010741310194134712
] | 0.225187 |
# Voice Wake & Push-to-Talk ## Modes - \*\*Wake-word mode\*\* (default): always-on Speech recognizer waits for trigger tokens (`swabbleTriggerWords`). On match it starts capture, shows the overlay with partial text, and auto-sends after silence. - \*\*Push-to-talk (Right Option hold)\*\*: hold the right Option key to capture immediately—no trigger needed. The overlay appears while held; releasing finalizes and forwards after a short delay so you can tweak text. ## Runtime behavior (wake-word) - Speech recognizer lives in `VoiceWakeRuntime`. - Trigger only fires when there’s a \*\*meaningful pause\*\* between the wake word and the next word (~0.55s gap). The overlay/chime can start on the pause even before the command begins. - Silence windows: 2.0s when speech is flowing, 5.0s if only the trigger was heard. - Hard stop: 120s to prevent runaway sessions. - Debounce between sessions: 350ms. - Overlay is driven via `VoiceWakeOverlayController` with committed/volatile coloring. - After send, recognizer restarts cleanly to listen for the next trigger. ## Lifecycle invariants - If Voice Wake is enabled and permissions are granted, the wake-word recognizer should be listening (except during an explicit push-to-talk capture). - Overlay visibility (including manual dismiss via the X button) must never prevent the recognizer from resuming. ## Sticky overlay failure mode (previous) Previously, if the overlay got stuck visible and you manually closed it, Voice Wake could appear “dead” because the runtime’s restart attempt could be blocked by overlay visibility and no subsequent restart was scheduled. Hardening: - Wake runtime restart is no longer blocked by overlay visibility. - Overlay dismiss completion triggers a `VoiceWakeRuntime.refresh(...)` via `VoiceSessionCoordinator`, so manual X-dismiss always resumes listening. ## Push-to-talk specifics - Hotkey detection uses a global `.flagsChanged` monitor for \*\*right Option\*\* (`keyCode 61` + `.option`). We only observe events (no swallowing). - Capture pipeline lives in `VoicePushToTalk`: starts Speech immediately, streams partials to the overlay, and calls `VoiceWakeForwarder` on release. - When push-to-talk starts we pause the wake-word runtime to avoid dueling audio taps; it restarts automatically after release. - Permissions: requires Microphone + Speech; seeing events needs Accessibility/Input Monitoring approval. - External keyboards: some may not expose right Option as expected—offer a fallback shortcut if users report misses. ## User-facing settings - \*\*Voice Wake\*\* toggle: enables wake-word runtime. - \*\*Hold Cmd+Fn to talk\*\*: enables the push-to-talk monitor. Disabled on macOS < 26. - Language & mic pickers, live level meter, trigger-word table, tester (local-only; does not forward). - Mic picker preserves the last selection if a device disconnects, shows a disconnected hint, and temporarily falls back to the system default until it returns. - \*\*Sounds\*\*: chimes on trigger detect and on send; defaults to the macOS “Glass” system sound. You can pick any `NSSound`-loadable file (e.g. MP3/WAV/AIFF) for each event or choose \*\*No Sound\*\*. ## Forwarding behavior - When Voice Wake is enabled, transcripts are forwarded to the active gateway/agent (the same local vs remote mode used by the rest of the mac app). - Replies are delivered to the \*\*last-used main provider\*\* (WhatsApp/Telegram/Discord/WebChat). If delivery fails, the error is logged and the run is still visible via WebChat/session logs. ## Forwarding payload - `VoiceWakeForwarder.prefixedTranscript(\_:)` prepends the machine hint before sending. Shared between wake-word and push-to-talk paths. ## Quick verification - Toggle push-to-talk on, hold Cmd+Fn, speak, release: overlay should show partials then send. - While holding, menu-bar ears should stay enlarged (uses `triggerVoiceEars(ttl:nil)`); they drop after release. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/voicewake.md | main | opebclaw | [
-0.04757251217961311,
-0.03187200427055359,
0.026006950065493584,
-0.011666527017951012,
0.052493080496788025,
0.010682947933673859,
0.053837064653635025,
-0.053335756063461304,
0.01411490049213171,
-0.11167776584625244,
-0.05178128927946091,
-0.05798637494444847,
-0.008947488851845264,
-0.03247402608394623,
-0.0015198333421722054,
0.032899025827646255,
0.03402809426188469,
0.014095953665673733,
-0.004294530022889376,
-0.04794420674443245,
0.06656403839588165,
0.08391878008842468,
0.12521257996559143,
0.05101517587900162,
0.030296538025140762,
0.012208187952637672,
-0.06477920711040497,
-0.06296776980161667,
0.04684418812394142,
0.032428078353405,
0.040787551552057266,
-0.02983776107430458,
0.08744196593761444,
-0.005105214659124613,
-0.022558702155947685,
0.03260546177625656,
0.03182556480169296,
0.12022540718317032,
-0.07671105861663818,
-0.042497631162405014,
-0.009934168308973312,
-0.04078509286046028,
-0.014598926529288292,
-0.005881923250854015,
-0.004158705938607454,
-0.04568282887339592,
-0.10297566652297974,
0.04187704995274544,
-0.06150543689727783,
0.039675045758485794,
-0.060829754918813705,
-0.12469881772994995,
0.046946749091148376,
0.035925522446632385,
-0.04880128055810928,
0.061888400465250015,
0.08257388323545456,
0.04622415080666542,
0.03790384903550148,
-0.03157250955700874,
-0.10130143165588379,
-0.05311933532357216,
0.026442453265190125,
-0.02662375010550022,
0.002371947281062603,
0.08122285455465317,
-0.07283919304609299,
-0.0013443323550745845,
0.0607113316655159,
0.02936166524887085,
-0.04703376442193985,
0.02814897894859314,
0.015802163630723953,
-0.04293907806277275,
-0.01410040445625782,
-0.014376751147210598,
0.0321330763399601,
-0.014497471041977406,
0.024218808859586716,
-0.04344624653458595,
0.05517170578241348,
-0.09310000389814377,
0.017244920134544373,
-0.05338277295231819,
0.04341134801506996,
-0.010766531340777874,
-0.008120759390294552,
-0.05610555410385132,
-0.003083225106820464,
0.023192694410681725,
-0.0661548599600792,
-0.13099151849746704,
-0.030243806540966034,
0.008603604510426521,
-0.0006813039653934538,
0.0022455789148807526,
-0.06525126844644547,
-0.005047781392931938,
0.0056288037449121475,
0.0027818314265459776,
-0.0015300954692065716,
-0.07760383188724518,
-0.02212246134877205,
-0.09377221018075943,
-0.04162396863102913,
-0.0517113097012043,
-0.04950317367911339,
-0.040124911814928055,
-0.0335555225610733,
-0.011706927791237831,
0.014557340182363987,
-0.030216993764042854,
0.06755229085683823,
-0.004075293894857168,
0.06383103877305984,
0.08742263168096542,
-0.033178262412548065,
0.01787029393017292,
0.06127649173140526,
0.027801446616649628,
0.02349463850259781,
-0.013027967885136604,
-0.0423356257379055,
-0.10468726605176926,
0.03877948597073555,
0.043675851076841354,
0.06685632467269897,
4.918988721472314e-33,
0.06477537751197815,
0.027138153091073036,
-0.12948229908943176,
0.0742727741599083,
-0.008842488750815392,
-0.06998003274202347,
0.038003191351890564,
0.02391538955271244,
-0.0711149200797081,
-0.00115496467333287,
0.027329063042998314,
-0.010399536229670048,
0.006057454273104668,
-0.012425056658685207,
-0.0013464402873069048,
-0.07176394015550613,
0.015257461927831173,
0.008956524543464184,
-0.04477526992559433,
-0.03532731905579567,
0.006518736016005278,
0.01013009250164032,
-0.017408648505806923,
0.0846819207072258,
0.07860182970762253,
0.003215792588889599,
-0.021672725677490234,
-0.03008892387151718,
0.01963719353079796,
0.037615615874528885,
-0.04711727797985077,
-0.007519619073718786,
0.04393744096159935,
0.03034668229520321,
0.03213633596897125,
-0.010966644622385502,
-0.0579390749335289,
-0.001135253463871777,
-0.0009765687864273787,
-0.1120292916893959,
-0.03985471650958061,
-0.02083936333656311,
-0.04049746319651604,
-0.11332937330007553,
0.019925914704799652,
-0.09080091863870621,
-0.05018789321184158,
0.07035807520151138,
0.0074345385655760765,
0.012078514322638512,
0.0697246715426445,
0.04536660388112068,
-0.0873979702591896,
0.0018226641695946455,
-0.0009211837314069271,
-0.007073988672345877,
-0.011838520877063274,
0.03320629149675369,
0.038413386791944504,
0.050027042627334595,
-0.0278703011572361,
-0.002219927264377475,
0.10184428840875626,
-0.03932289406657219,
0.07258772104978561,
0.01712496392428875,
-0.04694858565926552,
-0.046333324164152145,
-0.04917576536536217,
-0.05741838738322258,
0.02201749011874199,
-0.026737945154309273,
-0.038270480930805206,
0.06658193469047546,
-0.032525476068258286,
0.05569596588611603,
0.0656849592924118,
-0.008927670307457447,
0.006270258687436581,
0.03922230750322342,
0.07641986757516861,
-0.03528320789337158,
-0.015589660964906216,
-0.01324449386447668,
0.03174987807869911,
-0.06360577791929245,
-0.015951476991176605,
-0.12297657132148743,
-0.06591726094484329,
0.07979051768779755,
-0.05642455071210861,
-0.001784037915058434,
-0.007036034017801285,
0.04712715372443199,
-0.06901546567678452,
-5.741357222467894e-33,
0.0914674624800682,
0.08014138042926788,
-0.007652297616004944,
0.08442216366529465,
-0.04226941615343094,
0.0005055918009020388,
0.04377917945384979,
0.015914754942059517,
-0.011060264892876148,
-0.05703071132302284,
-0.013613797724246979,
0.022167744114995003,
0.007948873564600945,
0.006827286444604397,
0.039425626397132874,
-0.011953936889767647,
0.0916995257139206,
0.06378323584794998,
0.003029195824638009,
0.11913097649812698,
0.06333791464567184,
-0.09216521680355072,
-0.07452123612165451,
0.04300012066960335,
-0.010391215793788433,
-0.00877879187464714,
-0.027071217074990273,
0.0588083490729332,
0.0729292780160904,
-0.04538819566369057,
-0.03323518484830856,
0.01881307363510132,
-0.04560284689068794,
0.0034773170482367277,
-0.03413520008325577,
0.0028476070147007704,
0.01977817341685295,
-0.015206855721771717,
0.060772430151700974,
-0.044519174844026566,
0.17275576293468475,
0.025770455598831177,
-0.07945894449949265,
-0.06250981241464615,
-0.020373167470097542,
-0.03473071753978729,
-0.07663621008396149,
0.04017286375164986,
-0.07662218809127808,
-0.03634137660264969,
0.028294458985328674,
0.0017250555101782084,
0.06303387880325317,
0.03216865286231041,
-0.05697382986545563,
0.005137932952493429,
0.07303966581821442,
-0.07999114692211151,
-0.05796624720096588,
-0.0344768650829792,
0.024551743641495705,
-0.03627580404281616,
0.03432707488536835,
-0.07238131761550903,
0.09821855276823044,
0.05249995365738869,
0.03051218017935753,
0.012279821559786797,
0.03548162430524826,
-0.03146865591406822,
0.061139870434999466,
-0.027191469445824623,
0.01246275007724762,
0.014165970496833324,
-0.027517668902873993,
0.07598000019788742,
-0.07130781561136246,
-0.14951807260513306,
-0.07542650401592255,
-0.04113668575882912,
-0.000785368902143091,
-0.01361401192843914,
0.07281380146741867,
0.002502158749848604,
0.043273888528347015,
0.11454855650663376,
-0.07493754476308823,
0.09971258789300919,
0.08692443370819092,
0.05641043558716774,
-0.08076968789100647,
0.04705602675676346,
0.036418188363313675,
-0.00919554103165865,
0.03526553884148598,
-5.423412474669931e-8,
-0.04512035474181175,
-0.0835728794336319,
0.05415099859237671,
-0.062221188098192215,
0.007818276062607765,
-0.04411444440484047,
0.048946164548397064,
-0.06702881306409836,
-0.027826225385069847,
-0.0676359012722969,
0.018617060035467148,
-0.03225094452500343,
0.011094083078205585,
0.0008846390410326421,
-0.01944071054458618,
0.015060183592140675,
-0.004967337939888239,
0.05264146625995636,
-0.018309520557522774,
-0.10636825859546661,
0.00693946797400713,
0.0005442671244964004,
0.037910304963588715,
0.002431697677820921,
0.0013942706864327192,
0.018343258649110794,
0.017862847074866295,
0.09976407885551453,
-0.00962009560316801,
-0.0684174969792366,
0.02083573304116726,
0.02521362341940403,
-0.027825823053717613,
0.009571065194904804,
-0.048621781170368195,
0.044290002435445786,
0.035547222942113876,
-0.03432173281908035,
-0.01291892770677805,
0.04792141914367676,
0.04882543906569481,
0.011578027158975601,
-0.07821723818778992,
-0.02814098633825779,
-0.018048958852887154,
0.026306549087166786,
-0.005821093451231718,
-0.1035476103425026,
-0.052748218178749084,
0.027068017050623894,
-0.011311406269669533,
0.04670648276805878,
0.04535120353102684,
0.07582377642393112,
0.03764059394598007,
0.0425688698887825,
0.04602484777569771,
0.031220804899930954,
0.02839599922299385,
0.025136511772871017,
-0.0058584208600223064,
-0.03491615504026413,
-0.007342016790062189,
-0.00968618132174015
] | 0.046753 |
stay enlarged (uses `triggerVoiceEars(ttl:nil)`); they drop after release. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/voicewake.md | main | opebclaw | [
0.011837522499263287,
0.021327385678887367,
0.03721947968006134,
0.033312201499938965,
-0.056218259036540985,
-0.002010175958275795,
0.02271238900721073,
0.03454078733921051,
0.017413323745131493,
-0.04560914263129234,
0.09011653065681458,
0.08559513837099075,
-0.049015577882528305,
-0.05712990090250969,
-0.03769976645708084,
-0.018228186294436455,
-0.03734682500362396,
-0.07277131080627441,
-0.047334689646959305,
-0.03569920361042023,
-0.005922126583755016,
-0.04136909916996956,
-0.030835779383778572,
0.06391546875238419,
0.03461790084838867,
0.011309744790196419,
-0.09059984236955643,
0.031574949622154236,
0.09900202602148056,
-0.08406569808721542,
-0.012667049653828144,
0.033016640692949295,
-0.02681678533554077,
-0.03575196862220764,
0.06494152545928955,
-0.023043423891067505,
0.0218742024153471,
0.1000613123178482,
0.018978673964738846,
-0.008133688010275364,
0.0828254446387291,
-0.04288205876946449,
-0.04395421966910362,
-0.0009226268157362938,
-0.0025530089624226093,
0.010725599713623524,
-0.010055193677544594,
0.013784617185592651,
-0.012232077307999134,
0.015742355957627296,
-0.05866346135735512,
-0.07561182230710983,
-0.022695455700159073,
0.0929497703909874,
-0.004026124719530344,
-0.06258136034011841,
0.012839135713875294,
-0.041605472564697266,
0.030691787600517273,
0.047246579080820084,
-0.13286307454109192,
0.05137545242905617,
-0.05438615754246712,
0.029962608590722084,
0.013014114461839199,
0.11638015508651733,
0.0746769979596138,
-0.09697069972753525,
0.02698415145277977,
0.031053878366947174,
0.06969479471445084,
-0.000509328325279057,
-0.007184067741036415,
0.10050967335700989,
-0.04757298529148102,
-0.022947030141949654,
0.03892023488879204,
-0.09222578257322311,
-0.02735244482755661,
0.07492989301681519,
0.005946378689259291,
0.04757561534643173,
-0.001173288794234395,
0.005480732768774033,
-0.057626690715551376,
0.038318317383527756,
0.05142684280872345,
-0.11844512075185776,
0.011393590830266476,
-0.01003340445458889,
0.040018536150455475,
0.014299052767455578,
-0.012412128038704395,
0.06606955081224442,
-0.01791061833500862,
-0.10051470994949341,
-0.02071801945567131,
-0.06068705394864082,
-0.019149646162986755,
0.047112658619880676,
0.049760814756155014,
-0.06401341408491135,
0.02125602960586548,
0.08776718378067017,
-0.09618787467479706,
-0.01868215762078762,
-0.029061881825327873,
-0.07171209901571274,
-0.004426660947501659,
0.011698147282004356,
0.006482406985014677,
0.039579667150974274,
-0.007165895309299231,
0.03750522434711456,
-0.04399913549423218,
0.11695584654808044,
-0.05677015706896782,
0.02544756792485714,
0.0023695495910942554,
-0.07189573347568512,
-0.0036733876913785934,
0.062080346047878265,
-0.09583064913749695,
-0.05602863058447838,
-0.034240301698446274,
0.0005275430157780647,
0.04868246614933014,
-1.67476463784093e-33,
-0.04183291271328926,
-0.022787433117628098,
-0.0648907795548439,
0.049336012452840805,
0.049918219447135925,
0.018323076888918877,
-0.0033524632453918457,
0.03128242865204811,
-0.054926589131355286,
-0.037108566612005234,
-0.006654414348304272,
-0.019600046798586845,
-0.11373941600322723,
-0.03532040864229202,
-0.02550000697374344,
-0.03988435119390488,
0.043424781411886215,
0.15158282220363617,
-0.08659151941537857,
0.07995469123125076,
-0.03503992035984993,
-0.002182438038289547,
-0.053180333226919174,
0.09926719218492508,
-0.05173498019576073,
0.11186069995164871,
-0.051534052938222885,
0.05471402034163475,
-0.01859199069440365,
0.0213642418384552,
-0.011328093707561493,
0.03219026327133179,
0.0577823780477047,
-0.039825793355703354,
-0.067352294921875,
0.03550393879413605,
-0.06359685212373734,
-0.00836760550737381,
0.0723082572221756,
-0.03671875223517418,
-0.00023061392130330205,
0.07077343761920929,
-0.02025902271270752,
-0.001815084251575172,
-0.052002985030412674,
-0.056965019553899765,
-0.009911230765283108,
0.004340460058301687,
-0.05206537991762161,
-0.0815700888633728,
0.0784350037574768,
0.0033374130725860596,
0.0041066245175898075,
-0.0338779091835022,
-0.0034429796505719423,
-0.019471248611807823,
0.01861766166985035,
-0.044397421181201935,
0.014718393795192242,
-0.0036971354857087135,
0.01452831644564867,
-0.03778405487537384,
0.016229741275310516,
0.054394833743572235,
0.08309488743543625,
0.029651746153831482,
-0.04385918751358986,
-0.08318739384412766,
-0.026569148525595665,
0.029452817514538765,
-0.03905104845762253,
0.07176189869642258,
0.05990375950932503,
0.0009642657823860645,
0.02256571315228939,
-0.028579402714967728,
-0.013878468424081802,
-0.023669114336371422,
0.05254264920949936,
0.07078758627176285,
0.018785208463668823,
-0.06906388700008392,
-0.003429657081142068,
-0.03778088465332985,
0.004731579218059778,
-0.05759970843791962,
0.043258700519800186,
-0.08092556893825531,
-0.029238754883408546,
-0.0012518337462097406,
-0.0039877030067145824,
-0.0031874075066298246,
0.032221850007772446,
-0.03373117744922638,
0.02288433536887169,
-3.6854023122696028e-34,
0.03981296345591545,
-0.01143147423863411,
-0.12028146535158157,
0.03381911292672157,
-0.08447258174419403,
0.06676538288593292,
0.00012218931806273758,
0.17874889075756073,
-0.0225639920681715,
-0.03169944882392883,
0.010808324441313744,
0.03237806260585785,
-0.06451016664505005,
0.04175399988889694,
-0.04370543360710144,
-0.04588143900036812,
0.07554624229669571,
-0.021259155124425888,
-0.02027282677590847,
-0.02027282305061817,
0.041345465928316116,
-0.019583307206630707,
0.0008963512955233455,
0.10221852362155914,
0.0734415054321289,
-0.05000123009085655,
0.03473596274852753,
0.010407019406557083,
-0.015197139233350754,
-0.024570774286985397,
-0.03690055012702942,
-0.0024547872599214315,
-0.08310884982347488,
0.0015403175493702292,
0.028439052402973175,
-0.01915527507662773,
-0.0009921969613060355,
-0.03002467006444931,
0.005479335784912109,
-0.024391407147049904,
-0.014878413639962673,
0.04981459677219391,
0.010698952712118626,
0.0029225205071270466,
-0.04894353076815605,
-0.00036983678000979125,
0.06790416687726974,
0.037456873804330826,
0.07927747070789337,
0.0969112366437912,
-0.024124929681420326,
0.026709405705332756,
0.008318706415593624,
-0.004220039118081331,
-0.07067780196666718,
0.004354090895503759,
0.002951201982796192,
-0.056744735687971115,
-0.04711446538567543,
-0.0002053385105682537,
-0.014813568443059921,
-0.045188505202531815,
-0.059027526527643204,
-0.07823578268289566,
0.050527721643447876,
-0.0018970444798469543,
0.019372476264834404,
0.05064990743994713,
0.006714929360896349,
0.011332818306982517,
0.03412342816591263,
0.0008666286012157798,
0.06571376323699951,
-0.08228644728660583,
-0.07954913377761841,
-0.0142128374427557,
0.02072039432823658,
-0.09567257016897202,
-0.027966579422354698,
-0.044217582792043686,
0.02664254419505596,
-0.023409491404891014,
0.05392037332057953,
-0.023528186604380608,
-0.05345804989337921,
0.09958455711603165,
0.002682335441932082,
0.08963723480701447,
0.036187175661325455,
0.10599514096975327,
-0.06538880616426468,
0.03996429964900017,
0.08878833800554276,
-0.0003247327695135027,
-0.0723528265953064,
-2.6800744734600812e-8,
-0.04921547695994377,
0.015880931168794632,
0.0003354613727424294,
0.05425453186035156,
0.05490332096815109,
-0.09563615918159485,
-0.0167966578155756,
0.09697772562503815,
0.032532431185245514,
-0.06383376568555832,
-0.03880155831575394,
-0.019193261861801147,
-0.020424364134669304,
-0.03132578358054161,
0.08574423938989639,
-0.07936710864305496,
-0.01379753090441227,
0.03844204172492027,
-0.04688015207648277,
-0.10976892709732056,
-0.08248106390237808,
-0.004274423699826002,
0.039541248232126236,
-0.0418463796377182,
-0.03625720366835594,
-0.03759770095348358,
0.08732591569423676,
0.0755486860871315,
-0.022205298766493797,
-0.006570511031895876,
0.05892874673008919,
0.025889143347740173,
0.07673582434654236,
-0.04301993548870087,
0.00561391981318593,
0.08524361997842789,
0.05837297812104225,
0.06876169145107269,
0.06285054981708527,
-0.012216166593134403,
0.014177116565406322,
-0.0014786733081564307,
0.008048671297729015,
-0.0168247502297163,
-0.10500683635473251,
-0.005326058715581894,
0.06014031171798706,
0.013134213164448738,
0.03763243928551674,
0.022477518767118454,
0.0044144392013549805,
-0.03794877231121063,
-0.03147590160369873,
0.039942000061273575,
0.0247464869171381,
-0.03140207752585411,
0.04376697912812233,
0.029511846601963043,
0.04682821035385132,
0.02888379618525505,
0.0066756983287632465,
-0.08852540701627731,
0.0457388237118721,
0.05209676921367645
] | 0.076597 |
# OpenClaw macOS release (Sparkle) This app now ships Sparkle auto-updates. Release builds must be Developer ID–signed, zipped, and published with a signed appcast entry. ## Prereqs - Developer ID Application cert installed (example: `Developer ID Application: ()`). - Sparkle private key path set in the environment as `SPARKLE\_PRIVATE\_KEY\_FILE` (path to your Sparkle ed25519 private key; public key baked into Info.plist). If it is missing, check `~/.profile`. - Notary credentials (keychain profile or API key) for `xcrun notarytool` if you want Gatekeeper-safe DMG/zip distribution. - We use a Keychain profile named `openclaw-notary`, created from App Store Connect API key env vars in your shell profile: - `APP\_STORE\_CONNECT\_API\_KEY\_P8`, `APP\_STORE\_CONNECT\_KEY\_ID`, `APP\_STORE\_CONNECT\_ISSUER\_ID` - `echo "$APP\_STORE\_CONNECT\_API\_KEY\_P8" | sed 's/\\n/\n/g' > /tmp/openclaw-notary.p8` - `xcrun notarytool store-credentials "openclaw-notary" --key /tmp/openclaw-notary.p8 --key-id "$APP\_STORE\_CONNECT\_KEY\_ID" --issuer "$APP\_STORE\_CONNECT\_ISSUER\_ID"` - `pnpm` deps installed (`pnpm install --config.node-linker=hoisted`). - Sparkle tools are fetched automatically via SwiftPM at `apps/macos/.build/artifacts/sparkle/Sparkle/bin/` (`sign\_update`, `generate\_appcast`, etc.). ## Build & package Notes: - `APP\_BUILD` maps to `CFBundleVersion`/`sparkle:version`; keep it numeric + monotonic (no `-beta`), or Sparkle compares it as equal. - Defaults to the current architecture (`$(uname -m)`). For release/universal builds, set `BUILD\_ARCHS="arm64 x86\_64"` (or `BUILD\_ARCHS=all`). - Use `scripts/package-mac-dist.sh` for release artifacts (zip + DMG + notarization). Use `scripts/package-mac-app.sh` for local/dev packaging. ```bash # From repo root; set release IDs so Sparkle feed is enabled. # APP\_BUILD must be numeric + monotonic for Sparkle compare. BUNDLE\_ID=bot.molt.mac \ APP\_VERSION=2026.2.3 \ APP\_BUILD="$(git rev-list --count HEAD)" \ BUILD\_CONFIG=release \ SIGN\_IDENTITY="Developer ID Application: ()" \ scripts/package-mac-app.sh # Zip for distribution (includes resource forks for Sparkle delta support) ditto -c -k --sequesterRsrc --keepParent dist/OpenClaw.app dist/OpenClaw-2026.2.3.zip # Optional: also build a styled DMG for humans (drag to /Applications) scripts/create-dmg.sh dist/OpenClaw.app dist/OpenClaw-2026.2.3.dmg # Recommended: build + notarize/staple zip + DMG # First, create a keychain profile once: # xcrun notarytool store-credentials "openclaw-notary" \ # --apple-id "" --team-id "" --password "" NOTARIZE=1 NOTARYTOOL\_PROFILE=openclaw-notary \ BUNDLE\_ID=bot.molt.mac \ APP\_VERSION=2026.2.3 \ APP\_BUILD="$(git rev-list --count HEAD)" \ BUILD\_CONFIG=release \ SIGN\_IDENTITY="Developer ID Application: ()" \ scripts/package-mac-dist.sh # Optional: ship dSYM alongside the release ditto -c -k --keepParent apps/macos/.build/release/OpenClaw.app.dSYM dist/OpenClaw-2026.2.3.dSYM.zip ``` ## Appcast entry Use the release note generator so Sparkle renders formatted HTML notes: ```bash SPARKLE\_PRIVATE\_KEY\_FILE=/path/to/ed25519-private-key scripts/make\_appcast.sh dist/OpenClaw-2026.2.3.zip https://raw.githubusercontent.com/openclaw/openclaw/main/appcast.xml ``` Generates HTML release notes from `CHANGELOG.md` (via [`scripts/changelog-to-html.sh`](https://github.com/openclaw/openclaw/blob/main/scripts/changelog-to-html.sh)) and embeds them in the appcast entry. Commit the updated `appcast.xml` alongside the release assets (zip + dSYM) when publishing. ## Publish & verify - Upload `OpenClaw-2026.2.3.zip` (and `OpenClaw-2026.2.3.dSYM.zip`) to the GitHub release for tag `v2026.2.3`. - Ensure the raw appcast URL matches the baked feed: `https://raw.githubusercontent.com/openclaw/openclaw/main/appcast.xml`. - Sanity checks: - `curl -I https://raw.githubusercontent.com/openclaw/openclaw/main/appcast.xml` returns 200. - `curl -I ` returns 200 after assets upload. - On a previous public build, run “Check for Updates…” from the About tab and verify Sparkle installs the new build cleanly. Definition of done: signed app + appcast are published, update flow works from an older installed version, and release assets are attached to the GitHub release. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/release.md | main | opebclaw | [
-0.050446536391973495,
-0.01000465452671051,
-0.05605218559503555,
-0.04144139960408211,
-0.006989464163780212,
-0.10787370800971985,
0.04531712830066681,
0.02120356634259224,
-0.0321270115673542,
-0.0066207051277160645,
0.08162177354097366,
-0.03931239992380142,
0.0970517098903656,
-0.0237248744815588,
0.04152759909629822,
0.07466865330934525,
-0.017972052097320557,
-0.018513889983296394,
-0.01729739084839821,
0.00030061003053560853,
0.017137985676527023,
-0.0038396522868424654,
0.030628429725766182,
0.03353284299373627,
-0.030060844495892525,
-0.03547622263431549,
-0.03382263705134392,
0.061161648482084274,
-0.053244490176439285,
-0.01612834446132183,
0.10591144859790802,
0.028437122702598572,
0.011646632105112076,
-0.03518335148692131,
0.13623714447021484,
0.016302864998579025,
0.07811110466718674,
0.062191952019929886,
-0.01812727563083172,
-0.08585676550865173,
0.061251819133758545,
-0.018472524359822273,
-0.04746774956583977,
0.06571562588214874,
-0.009050360880792141,
-0.0590287409722805,
0.019735516980290413,
-0.054069239646196365,
-0.0361027829349041,
0.06330413371324539,
-0.023136043921113014,
-0.07427947223186493,
-0.02125784195959568,
-0.0005271002883091569,
0.022045956924557686,
0.05597091466188431,
0.008700394071638584,
0.07060379534959793,
0.00287362071685493,
-0.04604079946875572,
0.0985293984413147,
0.04920413717627525,
-0.02040010690689087,
0.06125972047448158,
-0.10091152787208557,
0.10635100305080414,
0.025481021031737328,
-0.05255543813109398,
0.018392203375697136,
-0.12545959651470184,
0.025222357362508774,
-0.025363875553011894,
0.03499441593885422,
-0.10157695412635803,
-0.08066181093454361,
0.027034400030970573,
0.06727901846170425,
-0.013809804804623127,
-0.07016468048095703,
-0.03587237745523453,
-0.04447011649608612,
-0.007539421319961548,
-0.013835018500685692,
0.07068100571632385,
-0.018949132412672043,
0.06254539638757706,
0.016324197873473167,
-0.0040089902468025684,
0.024350740015506744,
0.11465338617563248,
0.09235363453626633,
-0.04473681375384331,
0.00731772230938077,
-0.01461580116301775,
-0.0051469928584992886,
0.023385530337691307,
0.1041889563202858,
0.015581990592181683,
-0.08040004223585129,
0.07636913657188416,
-0.0690368041396141,
-0.05497747287154198,
-0.02853040024638176,
-0.07447636872529984,
0.0226915143430233,
0.05049211159348488,
0.0360877625644207,
-0.041191983968019485,
0.0014042705297470093,
0.03719543293118477,
-0.006744410376995802,
-0.08262331783771515,
0.0015148333040997386,
-0.03172462806105614,
-0.013010597787797451,
0.09024335443973541,
-0.09666422754526138,
0.05079999566078186,
-0.003235496813431382,
-0.0030400154646486044,
0.1038922592997551,
0.011510208249092102,
-0.02708013541996479,
-0.00502671068534255,
-0.03201914206147194,
0.024171506986021996,
0.013755524531006813,
2.538449377545013e-33,
0.02453526109457016,
0.04892304167151451,
-0.03773558512330055,
0.05226706340909004,
0.068010114133358,
-0.0728507712483406,
0.10816670209169388,
0.007463980466127396,
-0.1315692961215973,
0.05764942988753319,
0.0003679766959976405,
0.04355772212147713,
-0.08882484585046768,
-0.04089907929301262,
-0.05292153358459473,
-0.00545744551345706,
-0.04674280434846878,
0.024962445721030235,
0.04458000883460045,
0.016116958111524582,
0.03099551424384117,
-0.11578316241502762,
-0.09211689233779907,
-0.04682246968150139,
-0.018519103527069092,
0.09673125296831131,
0.022443091496825218,
0.031244544312357903,
0.10540109872817993,
0.04792431369423866,
0.014817917719483376,
-0.019680311903357506,
0.06349591165781021,
0.03440076857805252,
-0.021420201286673546,
-0.05385405942797661,
-0.07701669633388519,
-0.018531497567892075,
-0.03625109791755676,
-0.05475586652755737,
0.027043471112847328,
-0.0010513701708987355,
-0.025529615581035614,
-0.02011272870004177,
0.07006906718015671,
-0.042219989001750946,
0.007271359674632549,
0.01843848265707493,
0.09557153284549713,
-0.027086149901151657,
-0.05885951220989227,
-0.07006977498531342,
-0.00965109746903181,
0.056672438979148865,
-0.04315211623907089,
-0.05346895754337311,
-0.04889075085520744,
-0.05602484941482544,
-0.0015691985609009862,
-0.08009148389101028,
-0.0030998792499303818,
0.06109743192791939,
-0.03123924881219864,
-0.01525507029145956,
0.05731379613280296,
-0.008927782997488976,
0.022419318556785583,
-0.05166126787662506,
0.019891660660505295,
-0.010059710592031479,
-0.0562150664627552,
0.018216393887996674,
-0.008675940334796906,
0.02308163419365883,
-0.004898818675428629,
-0.08281705528497696,
0.007156877778470516,
0.08577870577573776,
0.025513196364045143,
0.0036671923007816076,
0.07550521939992905,
-0.05181282013654709,
-0.08103465288877487,
0.07751262187957764,
-0.0035718954168260098,
0.10554520785808563,
0.04076455906033516,
0.0991048589348793,
-0.04630054160952568,
0.05598807707428932,
0.028382595628499985,
-0.05044740438461304,
-0.015195393934845924,
-0.04009370505809784,
-0.07007990032434464,
-2.699200617742861e-33,
0.0336230993270874,
-0.09181828051805496,
0.01714744046330452,
0.009737445041537285,
0.009706731885671616,
0.0016239471733570099,
-0.025945812463760376,
0.014620921574532986,
0.03333321586251259,
-0.0655357763171196,
-0.05472709983587265,
0.049619682133197784,
0.036461375653743744,
-0.09012031555175781,
0.010650045238435268,
0.019673708826303482,
-0.014737633056938648,
0.003894311608746648,
-0.0024041372817009687,
-0.012938040308654308,
-0.041843630373477936,
-0.001049701706506312,
-0.06223825737833977,
0.05311313271522522,
0.004644479602575302,
-0.028917301446199417,
0.00839122012257576,
0.051254790276288986,
0.03166471794247627,
0.023983458057045937,
0.01142028160393238,
0.09577348083257675,
-0.09776220470666885,
-0.0335543230175972,
-0.0986170619726181,
-0.03964686021208763,
-0.012295497581362724,
0.012889469973742962,
-0.021960802376270294,
-0.004023927263915539,
0.03797445446252823,
-0.03888821229338646,
-0.041534923017024994,
-0.022203542292118073,
-0.00592465465888381,
0.07709793001413345,
-0.009095934219658375,
0.01625077798962593,
0.013000242412090302,
0.021501321345567703,
0.06592526286840439,
0.02814559079706669,
-0.028603913262486458,
0.029546687379479408,
0.05074143782258034,
0.10158473998308182,
0.07614971697330475,
-0.005170764401555061,
-0.04690774902701378,
-0.04614540562033653,
0.03176053613424301,
-0.004952891264110804,
-0.006374625489115715,
0.04480688273906708,
-0.04725710302591324,
0.005838864948600531,
-0.019333353266119957,
0.07289832085371017,
-0.07043544948101044,
0.004113815724849701,
-0.008616295643150806,
-0.09367939829826355,
0.002331327646970749,
-0.1170954778790474,
-0.02362089417874813,
-0.014803968369960785,
-0.06612274050712585,
-0.03511694818735123,
0.022688599303364754,
0.024544766172766685,
0.04486335068941116,
0.10187037289142609,
0.04982879012823105,
0.015849286690354347,
0.006783916614949703,
-0.09119512140750885,
0.07086479663848877,
0.031367115676403046,
0.02696303464472294,
-0.02171112596988678,
-0.09344403445720673,
0.018538599833846092,
-0.01611744612455368,
-0.0032913517206907272,
0.10085088759660721,
-5.2898077029794877e-8,
-0.019291166216135025,
0.011894617229700089,
-0.07161509245634079,
-0.0032022774685174227,
0.03336610272526741,
0.010768629610538483,
0.050054483115673065,
0.028248770162463188,
-0.03559310734272003,
-0.02490381896495819,
0.08002237975597382,
-0.03241707757115364,
-0.10487774014472961,
0.0362897664308548,
-0.060790080577135086,
0.01699133962392807,
0.05171153321862221,
0.0462629534304142,
-0.006821093615144491,
-0.08797936141490936,
-0.027719318866729736,
-0.01967071183025837,
0.026778271421790123,
-0.06014765053987503,
-0.020933713763952255,
-0.00033884166623465717,
0.05398738011717796,
0.014482518658041954,
0.05355522409081459,
0.011575720272958279,
-0.06469300389289856,
-0.07744131982326508,
0.05869424715638161,
-0.02778090350329876,
-0.03080001100897789,
0.05720169097185135,
-0.06491157412528992,
0.025927890092134476,
0.0637626200914383,
0.017848411574959755,
-0.00036127041676081717,
-0.02042987011373043,
0.005060861818492413,
-0.001944784540683031,
-0.10839258134365082,
-0.019920865073800087,
-0.011151795275509357,
0.001516583259217441,
0.009249345399439335,
0.038686398416757584,
0.03878713399171829,
-0.07045184820890427,
0.03547776862978935,
-0.029070740565657616,
-0.021941157057881355,
0.1451878398656845,
0.04808561131358147,
-0.017669958993792534,
0.0032617731485515833,
0.015463394112884998,
0.0496097132563591,
-0.07840177416801453,
0.02241763472557068,
0.013788794167339802
] | 0.010871 |
# Skills (macOS) The macOS app surfaces OpenClaw skills via the gateway; it does not parse skills locally. ## Data source - `skills.status` (gateway) returns all skills plus eligibility and missing requirements (including allowlist blocks for bundled skills). - Requirements are derived from `metadata.openclaw.requires` in each `SKILL.md`. ## Install actions - `metadata.openclaw.install` defines install options (brew/node/go/uv). - The app calls `skills.install` to run installers on the gateway host. - The gateway surfaces only one preferred installer when multiple are provided (brew when available, otherwise node manager from `skills.install`, default npm). ## Env/API keys - The app stores keys in `~/.openclaw/openclaw.json` under `skills.entries.`. - `skills.update` patches `enabled`, `apiKey`, and `env`. ## Remote mode - Install + config updates happen on the gateway host (not the local Mac). | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/skills.md | main | opebclaw | [
-0.008132293820381165,
-0.049092285335063934,
0.010323723778128624,
0.026751117780804634,
0.042433615773916245,
-0.10482059419155121,
-0.07424192875623703,
-0.03591443970799446,
-0.08585156500339508,
0.013769654557108879,
0.05385134741663933,
-0.014477535150945187,
0.007477478124201298,
0.04391856491565704,
0.09353166818618774,
0.09377137571573257,
0.0064533972181379795,
-0.07279160618782043,
0.03680739179253578,
-0.06969743221998215,
0.007062648888677359,
0.0008596463012509048,
0.052081286907196045,
-0.07662774622440338,
-0.025818103924393654,
-0.011950284242630005,
-0.03310699760913849,
0.0005087866447865963,
0.027549337595701218,
-0.002663278952240944,
0.010305721312761307,
0.05066380277276039,
-0.030145209282636642,
0.038440559059381485,
0.039466287940740585,
0.03586328774690628,
0.04683421552181244,
-0.004692982882261276,
-0.0871870145201683,
-0.008184511214494705,
0.05621786415576935,
-0.017800742760300636,
0.004938259720802307,
-0.04911962151527405,
-0.002234747866168618,
-0.04283072054386139,
-0.013379814103245735,
-0.09820416569709778,
0.014755897223949432,
-0.004329304676502943,
-0.06162668764591217,
-0.08644623309373856,
0.021403780207037926,
-0.04355834797024727,
0.03329126536846161,
0.07859375327825546,
0.01371083501726389,
0.012042413465678692,
0.045534566044807434,
-0.020010637119412422,
0.031488191336393356,
-0.07002304494380951,
-0.06931400299072266,
0.07059777528047562,
-0.09290117770433426,
0.00399828003719449,
-0.04768005758523941,
-0.03963053226470947,
-0.01011083647608757,
-0.04947184771299362,
-0.010724149644374847,
0.005161831621080637,
-0.03303024545311928,
-0.05356465280056,
0.0025676628574728966,
-0.0036714617162942886,
0.06627164036035538,
0.03528577461838722,
-0.0785444900393486,
-0.07449370622634888,
-0.05706314742565155,
0.023116763681173325,
-0.08535251021385193,
0.06666260957717896,
-0.021356020122766495,
0.05648592486977577,
-0.01660567708313465,
0.029881533235311508,
0.0675995722413063,
0.07911922037601471,
0.025138895958662033,
-0.12650689482688904,
-0.04541413486003876,
-0.024446973577141762,
-0.019320009276270866,
0.028619548305869102,
0.015851818025112152,
0.02642647922039032,
-0.12220853567123413,
0.0265335775911808,
-0.09049591422080994,
-0.1569887101650238,
0.03429345041513443,
0.03477121517062187,
-0.024733582511544228,
0.05269709974527359,
-0.019339095801115036,
0.06927001476287842,
0.04983581602573395,
0.025779061019420624,
-0.01244447473436594,
0.011588611640036106,
0.02835613675415516,
0.008712912909686565,
-0.07731381058692932,
0.08713391423225403,
-0.016408372670412064,
-0.0817931741476059,
-0.0007476938189938664,
0.11271856725215912,
0.022279487922787666,
0.0492522157728672,
0.06554366648197174,
-0.022832339629530907,
0.04919971525669098,
-0.022559404373168945,
0.04605145752429962,
1.999353709262496e-33,
0.07011881470680237,
-0.04994586855173111,
-0.0504666306078434,
0.017899928614497185,
0.1449257880449295,
-0.018241796642541885,
0.09117528051137924,
-0.010979680344462395,
-0.07077191770076752,
-0.007472949102520943,
-0.07919951528310776,
0.046954065561294556,
-0.07102210819721222,
0.02541542798280716,
0.07802790403366089,
0.026937924325466156,
-0.012610206380486488,
0.04575015604496002,
0.031611014157533646,
0.015261849388480186,
0.056480854749679565,
-0.08388162404298782,
-0.02165725640952587,
0.04194535315036774,
-0.018684156239032745,
0.04884766414761543,
0.06742286682128906,
0.00048734951997175813,
0.021350473165512085,
0.03802338242530823,
0.04107571020722389,
0.004550667013972998,
-0.013727053068578243,
0.03189218044281006,
-0.0233621746301651,
0.06766088306903839,
-0.042954422533512115,
-0.04498032107949257,
-0.02053227461874485,
-0.0018692829180508852,
-0.01657130755484104,
0.02232569269835949,
-0.0215765330940485,
0.010436437092721462,
0.012602496892213821,
-0.13437917828559875,
-0.030881715938448906,
0.056291431188583374,
0.04783882200717926,
0.11725867539644241,
-0.06543394923210144,
0.02854175679385662,
0.06619665026664734,
-0.04784144088625908,
0.030164211988449097,
-0.0008305010269396007,
-0.019882697612047195,
0.05281919986009598,
0.0020516272634267807,
-0.024891087785363197,
0.017015380784869194,
0.01943529210984707,
-0.06602536886930466,
0.06188647449016571,
0.026426810771226883,
0.05430226773023605,
0.04237682372331619,
0.003943311050534248,
0.057365477085113525,
-0.010701804421842098,
-0.0756983608007431,
0.003940219525247812,
-0.011286977678537369,
0.03017076849937439,
-0.02799251489341259,
-0.08758275210857391,
-0.010896459221839905,
-0.04079802706837654,
0.0453827902674675,
0.022975437343120575,
0.014370378106832504,
0.02934359945356846,
-0.0838904082775116,
0.026060864329338074,
-0.00924850907176733,
0.05779600888490677,
0.07403525710105896,
0.01764320209622383,
0.013696587644517422,
0.07523813843727112,
0.023777347058057785,
-0.022006835788488388,
-0.05372454226016998,
-0.015071219764649868,
-0.0419035479426384,
-3.604951708488066e-33,
-0.008588245138525963,
-0.04551522806286812,
-0.013689440675079823,
0.04144031181931496,
0.05026914179325104,
0.02392815612256527,
0.026350852102041245,
-0.047855887562036514,
-0.019367389380931854,
-0.0547250397503376,
-0.0187621358782053,
0.08917956799268723,
0.03677307441830635,
-0.09584208577871323,
-0.02410917542874813,
0.022548174485564232,
-0.15739525854587555,
0.005884180776774883,
0.04804849624633789,
-0.01094258762896061,
-0.003482008818536997,
0.07212135195732117,
0.0026280514430254698,
0.04270438477396965,
0.004605028312653303,
-0.027980735525488853,
-0.0036486992612481117,
0.04650907963514328,
-0.074370376765728,
0.024798588827252388,
0.03140056133270264,
0.06865286827087402,
-0.08760981261730194,
0.036470863968133926,
-0.0036782962270081043,
0.039506081491708755,
-0.06159292906522751,
0.08776912838220596,
0.0028909549582749605,
0.06836915016174316,
0.05698718875646591,
-0.0857546329498291,
-0.09833148866891861,
-0.022411508485674858,
-0.0415685810148716,
0.058760616928339005,
-0.03251740336418152,
-0.0426860935986042,
-0.07677091658115387,
-0.07369687408208847,
0.01169709861278534,
0.042876746505498886,
0.005752865225076675,
0.07177898287773132,
0.013797227293252945,
0.04566732421517372,
0.06414277851581573,
0.0030479806009680033,
0.011162633076310158,
-0.033003803342580795,
0.06514692306518555,
-0.03648945689201355,
-0.0002093237853841856,
0.050613801926374435,
-0.013806076720356941,
-0.045892227441072464,
-0.05517567694187164,
0.020183581858873367,
-0.07860475033521652,
0.029321782290935516,
-0.0843733474612236,
-0.014964880421757698,
0.07213743776082993,
-0.13234515488147736,
0.016538318246603012,
-0.019347749650478363,
-0.04921966418623924,
0.0024230594281107187,
-0.06513144820928574,
-0.008361724205315113,
-0.032662779092788696,
0.04207109287381172,
0.023084821179509163,
0.035156019032001495,
0.04158775135874748,
-0.04422067105770111,
0.05020756274461746,
0.06449835747480392,
0.05024145916104317,
0.047192949801683426,
-0.053564198315143585,
0.00361450994387269,
-0.08387420326471329,
-0.016153885051608086,
-0.030656032264232635,
-4.7631797173153245e-8,
-0.044038426131010056,
-0.018103210255503654,
-0.1192215159535408,
0.014803287573158741,
0.060757432132959366,
0.03209253400564194,
-0.00971743930131197,
0.09061197191476822,
-0.006761930882930756,
0.07182712852954865,
0.07060721516609192,
0.033217817544937134,
-0.052821576595306396,
0.012663408182561398,
0.027706045657396317,
0.10160215198993683,
-0.01609867997467518,
0.08722265064716339,
-0.03476196527481079,
-0.06257303804159164,
0.004352526273578405,
-0.053886666893959045,
-0.017778409644961357,
0.05592041835188866,
-0.022492608055472374,
-0.04384194314479828,
-0.026624217629432678,
0.029708990827202797,
-0.04058493673801422,
0.03780867159366608,
-0.0340590663254261,
-0.07215691357851028,
0.027298256754875183,
0.021008336916565895,
0.038467515259981155,
0.01851523108780384,
-0.08623810857534409,
0.01926601119339466,
0.04601387307047844,
0.004255547188222408,
-0.0644020363688469,
0.005011316854506731,
-0.01411297358572483,
-0.03423851355910301,
-0.05946742743253708,
0.02975686453282833,
-0.0902017205953598,
0.05263180285692215,
-0.014447773806750774,
0.04050368815660477,
0.03601660951972008,
-0.03812319040298462,
-0.040293414145708084,
0.0041628023609519005,
0.02402460016310215,
0.07733789831399918,
0.07351144403219223,
-0.1499386429786682,
-0.020237067714333534,
-0.03560968488454819,
0.04300675913691521,
0.02318287268280983,
0.0366024374961853,
-0.04550807550549507
] | -0.000344 |
# Logging (macOS) ## Rolling diagnostics file log (Debug pane) OpenClaw routes macOS app logs through swift-log (unified logging by default) and can write a local, rotating file log to disk when you need a durable capture. - Verbosity: \*\*Debug pane → Logs → App logging → Verbosity\*\* - Enable: \*\*Debug pane → Logs → App logging → “Write rolling diagnostics log (JSONL)”\*\* - Location: `~/Library/Logs/OpenClaw/diagnostics.jsonl` (rotates automatically; old files are suffixed with `.1`, `.2`, …) - Clear: \*\*Debug pane → Logs → App logging → “Clear”\*\* Notes: - This is \*\*off by default\*\*. Enable only while actively debugging. - Treat the file as sensitive; don’t share it without review. ## Unified logging private data on macOS Unified logging redacts most payloads unless a subsystem opts into `privacy -off`. Per Peter's write-up on macOS [logging privacy shenanigans](https://steipete.me/posts/2025/logging-privacy-shenanigans) (2025) this is controlled by a plist in `/Library/Preferences/Logging/Subsystems/` keyed by the subsystem name. Only new log entries pick up the flag, so enable it before reproducing an issue. ## Enable for OpenClaw (`bot.molt`) - Write the plist to a temp file first, then install it atomically as root: ```bash cat <<'EOF' >/tmp/bot.molt.plist xml version="1.0" encoding="UTF-8"? DEFAULT-OPTIONS Enable-Private-Data EOF sudo install -m 644 -o root -g wheel /tmp/bot.molt.plist /Library/Preferences/Logging/Subsystems/bot.molt.plist ``` - No reboot is required; logd notices the file quickly, but only new log lines will include private payloads. - View the richer output with the existing helper, e.g. `./scripts/clawlog.sh --category WebChat --last 5m`. ## Disable after debugging - Remove the override: `sudo rm /Library/Preferences/Logging/Subsystems/bot.molt.plist`. - Optionally run `sudo log config --reload` to force logd to drop the override immediately. - Remember this surface can include phone numbers and message bodies; keep the plist in place only while you actively need the extra detail. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/logging.md | main | opebclaw | [
-0.03904390335083008,
-0.010467293672263622,
-0.03456476330757141,
0.015354730188846588,
0.0587388351559639,
-0.11708027869462967,
-0.002907827962189913,
0.009565584361553192,
0.0030973998364061117,
0.042650625109672546,
0.0830128863453865,
-0.00851668231189251,
-0.040058765560388565,
0.05975830927491188,
0.003793135518208146,
0.051449064165353775,
-0.07225916534662247,
-0.007090399041771889,
-0.09300762414932251,
0.029531139880418777,
0.05315332114696503,
0.06175873056054115,
-0.052536942064762115,
0.07508507370948792,
-0.012241339311003685,
0.02206713706254959,
0.04139330983161926,
-0.06569819897413254,
-0.08719518780708313,
-0.027974596247076988,
-0.029892168939113617,
-0.007537612691521645,
-0.029921459034085274,
0.08205846697092056,
0.09992297738790512,
-0.00873766653239727,
0.1048840582370758,
-0.0860421359539032,
-0.03210098296403885,
-0.0649571642279625,
0.028246406465768814,
0.07137222588062286,
0.030944939702749252,
-0.031118124723434448,
-0.045920200645923615,
-0.05783141404390335,
-0.046935152262449265,
-0.0699639692902565,
0.02118106000125408,
0.05341295897960663,
-0.034737203270196915,
0.002389672677963972,
0.005729176104068756,
-0.03993937000632286,
0.06118529662489891,
0.0438312329351902,
0.00566581217572093,
-0.0662626102566719,
0.03154851123690605,
-0.01191742718219757,
-0.001876984490081668,
0.044452354311943054,
-0.06285768002271652,
0.0448833666741848,
-0.061563584953546524,
-0.022690095007419586,
0.029116105288267136,
0.019313637167215347,
0.02483781799674034,
0.05060897395014763,
-0.03208471089601517,
-0.015598354861140251,
-0.021358579397201538,
-0.027356363832950592,
0.011646938510239124,
-0.018889620900154114,
0.021495895460247993,
-0.00019937739125452936,
-0.11987224221229553,
-0.13571089506149292,
-0.029187243431806564,
-0.024660024791955948,
0.03663986548781395,
0.11918389797210693,
0.009921821765601635,
0.08461980521678925,
-0.028389595448970795,
0.038287192583084106,
0.02448929287493229,
0.0737958624958992,
-0.033362437039613724,
-0.07267209142446518,
-0.024039046838879585,
-0.034615062177181244,
-0.008519207127392292,
0.022259410470724106,
0.021080896258354187,
0.06260515749454498,
-0.015075619332492352,
0.06478548049926758,
-0.006616970989853144,
0.03763088583946228,
0.06836457550525665,
0.012304065749049187,
0.0013237345265224576,
0.016523730009794235,
0.043389830738306046,
-0.02036615088582039,
-0.03539564460515976,
0.07093872129917145,
0.06164928898215294,
0.03165551275014877,
-0.014032035134732723,
0.0013574144104495645,
0.08059525489807129,
0.01385057345032692,
-0.06228514015674591,
-0.014273363165557384,
-0.05244576558470726,
0.04876203462481499,
0.17609107494354248,
0.007442661095410585,
-0.019076397642493248,
0.04901721328496933,
0.043278079479932785,
0.014483029022812843,
0.08584719151258469,
4.0529278301406394e-33,
0.05677423253655434,
0.002106554340571165,
-0.016544200479984283,
0.03921815752983093,
0.05518656596541405,
-0.02934359945356846,
-0.0104594137519598,
0.06926769763231277,
-0.012059207074344158,
0.10522381961345673,
-0.050934068858623505,
0.1251223236322403,
-0.045004311949014664,
-0.07425316423177719,
-0.008796770125627518,
0.005829645786434412,
-0.0064265732653439045,
-0.01464100368320942,
0.020861627534031868,
0.02784721367061138,
0.005867921281605959,
-0.032780248671770096,
-0.05566602200269699,
-0.053720224648714066,
0.015237958170473576,
0.03664061054587364,
0.017769770696759224,
-0.026392357423901558,
-0.06634794920682907,
0.05068395659327507,
0.051222044974565506,
-0.023023473098874092,
0.005512615665793419,
-0.0041113561019301414,
0.019304664805531502,
0.010115918703377247,
-0.06481518596410751,
-0.04301030561327934,
-0.07646883279085159,
0.05089705437421799,
-0.03282782435417175,
-0.020002074539661407,
-0.19383567571640015,
-0.02906685322523117,
0.031278908252716064,
-0.06921327859163284,
-0.07928406447172165,
0.050033845007419586,
-0.007938366383314133,
0.009435676969587803,
0.04002226144075394,
0.07093462347984314,
0.03965064138174057,
-0.04472751170396805,
-0.007804402150213718,
0.028834784403443336,
0.10450436919927597,
-0.17675037682056427,
-0.0029583810828626156,
0.018579991534352303,
0.03418898209929466,
0.03995548188686371,
-0.017223861068487167,
-0.045814383774995804,
-0.024595733731985092,
0.01123457308858633,
0.05108855292201042,
-0.003424739697948098,
-0.01824284717440605,
-0.03992854803800583,
-0.06801439821720123,
-0.029551269486546516,
0.010212363675236702,
-0.016428112983703613,
0.01024313922971487,
-0.02606619894504547,
-0.00523933582007885,
0.043055593967437744,
-0.036616045981645584,
-0.013473006896674633,
0.03487694635987282,
-0.06889116764068604,
-0.006857626605778933,
0.008015034720301628,
-0.01289619691669941,
0.014474699273705482,
0.020650872960686684,
-0.0033940018620342016,
-0.06474313139915466,
0.1278780847787857,
-0.031130747869610786,
-0.0009442792506888509,
0.00014847243437543511,
-0.058220311999320984,
-0.025176499038934708,
-6.252965057382386e-33,
-0.019004587084054947,
0.0024046243634074926,
-0.058375246822834015,
0.0152272405102849,
-0.1018456444144249,
-0.027910592034459114,
0.04399823769927025,
0.03125617653131485,
0.04381674900650978,
-0.02253587730228901,
-0.07717115432024002,
-0.0025885433424264193,
0.0030376974027603865,
-0.046975959092378616,
0.0546683631837368,
0.06594918668270111,
-0.09392093122005463,
-0.016239166259765625,
-0.03652392327785492,
-0.01364489458501339,
0.03612925112247467,
0.03587525710463524,
0.07319813221693039,
0.02933400124311447,
0.017488151788711548,
-0.04218190908432007,
0.030877048149704933,
0.05006635934114456,
-0.03281225264072418,
-0.06583800911903381,
0.054674483835697174,
0.006853595841675997,
0.014143853448331356,
-0.061067238450050354,
0.004726799670606852,
-0.030901476740837097,
0.0008917218074202538,
0.04580632597208023,
0.02497613988816738,
-0.018008965998888016,
0.03732357174158096,
0.054895851761102676,
-0.04317609965801239,
0.023712031543254852,
-0.027929654344916344,
0.04610935226082802,
-0.07029066979885101,
0.0780584067106247,
0.009829940274357796,
-0.05665099248290062,
0.029612207785248756,
-0.015696508809924126,
0.06312054395675659,
0.0050391629338264465,
-0.017717111855745316,
0.08874926716089249,
0.036445897072553635,
-0.09819158166646957,
-0.08994771540164948,
-0.007086259312927723,
-0.048847634345293045,
-0.06060168147087097,
-0.04419172927737236,
0.034867409616708755,
-0.004849371500313282,
-0.13667860627174377,
0.005559130571782589,
-0.03166579455137253,
-0.0707065686583519,
-0.011875907890498638,
-0.05303288251161575,
-0.060868240892887115,
-0.0438481830060482,
0.0056810700334608555,
0.009194268845021725,
0.0007383999763987958,
0.003980605397373438,
-0.15946081280708313,
0.013365747407078743,
0.06454326212406158,
0.016212984919548035,
0.02495332434773445,
0.002137942472472787,
-0.004355262033641338,
0.05244743451476097,
-0.03636566549539566,
-0.019965045154094696,
0.06451233476400375,
0.03290975093841553,
0.013138423673808575,
-0.09447965025901794,
0.026114506646990776,
-0.052093565464019775,
-0.06134727597236633,
-0.04099095240235329,
-4.891117200145345e-8,
-0.1329854428768158,
-0.03589092195034027,
-0.0004350837552919984,
0.053687289357185364,
0.04038529470562935,
-0.01726800575852394,
-0.00024411268532276154,
0.08307727426290512,
0.03471382334828377,
-0.01190910767763853,
0.016402006149291992,
0.031103260815143585,
-0.12892425060272217,
-0.02252368815243244,
-0.050974808633327484,
0.0337459035217762,
0.028193281963467598,
-0.028357278555631638,
-0.026216626167297363,
-0.04619769752025604,
0.04265462979674339,
0.024948466569185257,
-0.015204316936433315,
-0.00689629977568984,
-0.0780540183186531,
-0.04154183715581894,
0.03307247534394264,
0.08555445075035095,
-0.06225143000483513,
-0.031677257269620895,
-0.06958893686532974,
0.00170562241692096,
0.03463424742221832,
-0.011197896674275398,
-0.03939874842762947,
0.0303703173995018,
0.05062593147158623,
0.011436735279858112,
0.010639687068760395,
-0.008166621439158916,
-0.00223229150287807,
0.07745809108018875,
-0.03319960832595825,
-0.006549566052854061,
-0.10089846700429916,
-0.03412434458732605,
-0.00700754439458251,
0.0009004169842228293,
0.00518304156139493,
-0.013624915853142738,
-0.015975719317793846,
-0.023169826716184616,
0.02878943458199501,
0.12073561549186707,
-0.036509159952402115,
0.059118062257766724,
0.1085120365023613,
-0.09952065348625183,
0.05656342953443527,
0.0642460510134697,
0.08079829812049866,
-0.00422236043959856,
0.0059155747294425964,
0.0569937601685524
] | 0.134235 |
# mac signing (debug builds) This app is usually built from [`scripts/package-mac-app.sh`](https://github.com/openclaw/openclaw/blob/main/scripts/package-mac-app.sh), which now: - sets a stable debug bundle identifier: `ai.openclaw.mac.debug` - writes the Info.plist with that bundle id (override via `BUNDLE\_ID=...`) - calls [`scripts/codesign-mac-app.sh`](https://github.com/openclaw/openclaw/blob/main/scripts/codesign-mac-app.sh) to sign the main binary and app bundle so macOS treats each rebuild as the same signed bundle and keeps TCC permissions (notifications, accessibility, screen recording, mic, speech). For stable permissions, use a real signing identity; ad-hoc is opt-in and fragile (see [macOS permissions](/platforms/mac/permissions)). - uses `CODESIGN\_TIMESTAMP=auto` by default; it enables trusted timestamps for Developer ID signatures. Set `CODESIGN\_TIMESTAMP=off` to skip timestamping (offline debug builds). - inject build metadata into Info.plist: `OpenClawBuildTimestamp` (UTC) and `OpenClawGitCommit` (short hash) so the About pane can show build, git, and debug/release channel. - \*\*Packaging requires Node 22+\*\*: the script runs TS builds and the Control UI build. - reads `SIGN\_IDENTITY` from the environment. Add `export SIGN\_IDENTITY="Apple Development: Your Name (TEAMID)"` (or your Developer ID Application cert) to your shell rc to always sign with your cert. Ad-hoc signing requires explicit opt-in via `ALLOW\_ADHOC\_SIGNING=1` or `SIGN\_IDENTITY="-"` (not recommended for permission testing). - runs a Team ID audit after signing and fails if any Mach-O inside the app bundle is signed by a different Team ID. Set `SKIP\_TEAM\_ID\_CHECK=1` to bypass. ## Usage ```bash # from repo root scripts/package-mac-app.sh # auto-selects identity; errors if none found SIGN\_IDENTITY="Developer ID Application: Your Name" scripts/package-mac-app.sh # real cert ALLOW\_ADHOC\_SIGNING=1 scripts/package-mac-app.sh # ad-hoc (permissions will not stick) SIGN\_IDENTITY="-" scripts/package-mac-app.sh # explicit ad-hoc (same caveat) DISABLE\_LIBRARY\_VALIDATION=1 scripts/package-mac-app.sh # dev-only Sparkle Team ID mismatch workaround ``` ### Ad-hoc Signing Note When signing with `SIGN\_IDENTITY="-"` (ad-hoc), the script automatically disables the \*\*Hardened Runtime\*\* (`--options runtime`). This is necessary to prevent crashes when the app attempts to load embedded frameworks (like Sparkle) that do not share the same Team ID. Ad-hoc signatures also break TCC permission persistence; see [macOS permissions](/platforms/mac/permissions) for recovery steps. ## Build metadata for About `package-mac-app.sh` stamps the bundle with: - `OpenClawBuildTimestamp`: ISO8601 UTC at package time - `OpenClawGitCommit`: short git hash (or `unknown` if unavailable) The About tab reads these keys to show version, build date, git commit, and whether it’s a debug build (via `#if DEBUG`). Run the packager to refresh these values after code changes. ## Why TCC permissions are tied to the bundle identifier \_and\_ code signature. Unsigned debug builds with changing UUIDs were causing macOS to forget grants after each rebuild. Signing the binaries (ad‑hoc by default) and keeping a fixed bundle id/path (`dist/OpenClaw.app`) preserves the grants between builds, matching the VibeTunnel approach. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/signing.md | main | opebclaw | [
-0.08389290422201157,
0.0011093155480921268,
-0.029182959347963333,
-0.016325749456882477,
0.111765556037426,
-0.13485755026340485,
0.019261399284005165,
0.04748580604791641,
-0.030963249504566193,
-0.002611670410260558,
0.09878163784742355,
-0.0337214469909668,
0.0003620329371187836,
-0.008795561268925667,
0.0834888368844986,
0.07131458073854446,
0.033972010016441345,
0.010031068697571754,
0.02731693908572197,
0.043616581708192825,
-0.004851047415286303,
0.034504540264606476,
0.010995750315487385,
0.025273770093917847,
0.004473367240279913,
-0.044834256172180176,
0.02757221646606922,
0.04726623371243477,
-0.027613533660769463,
-0.0024209304247051477,
0.11153379082679749,
0.036228932440280914,
0.042593665421009064,
0.0381598100066185,
0.08676525205373764,
0.08121009171009064,
0.09997690469026566,
-0.06681355088949203,
-0.13170644640922546,
-0.03905124589800835,
0.021906470879912376,
0.07575705647468567,
-0.0030289539135992527,
0.03493410348892212,
-0.03509821370244026,
-0.06429228186607361,
0.02887444570660591,
-0.03952739015221596,
-0.0025615771301090717,
0.023465823382139206,
0.05976058170199394,
-0.0255955271422863,
-0.021225733682513237,
-0.053493205457925797,
0.0017461372772231698,
0.06164105236530304,
-0.02065986394882202,
-0.004496908746659756,
0.017929816618561745,
0.03139834105968475,
0.06413688510656357,
0.04689408093690872,
-0.056325238198041916,
0.022593162953853607,
-0.008343322202563286,
0.0917167142033577,
0.04962046816945076,
-0.05546361207962036,
-0.027477413415908813,
-0.014112791046500206,
0.03849414736032486,
-0.026528136804699898,
0.03128873184323311,
-0.0692048892378807,
0.011832220479846,
0.017900710925459862,
-0.011562764644622803,
-0.0005266148946247995,
-0.032450657337903976,
-0.12131062150001526,
-0.12610340118408203,
-0.04562096670269966,
-0.07263076305389404,
0.0622720941901207,
0.028370337560772896,
0.0727311372756958,
0.051423270255327225,
0.008212290704250336,
0.045939333736896515,
0.13528913259506226,
0.022644439712166786,
-0.054868388921022415,
-0.02729950100183487,
-0.05035795271396637,
0.003426249837502837,
-0.032475508749485016,
0.023242538794875145,
0.12149873375892639,
-0.022772274911403656,
0.06741874665021896,
-0.10240273922681808,
-0.025406889617443085,
0.021823635324835777,
0.0011477707885205746,
0.06848878413438797,
-0.0068826996721327305,
0.02867533080279827,
-0.03764485567808151,
0.03144305944442749,
0.029581235721707344,
-0.012457805685698986,
-0.02129731886088848,
0.04561108350753784,
-0.029671775177121162,
0.030792761594057083,
0.07063179463148117,
-0.08029857277870178,
0.01944812387228012,
0.08142372220754623,
-0.00309447362087667,
0.12755365669727325,
0.024692606180906296,
0.009324852377176285,
0.025086522102355957,
0.04224906861782074,
0.05056411772966385,
-0.008742046542465687,
1.1328273038007963e-33,
0.016745461151003838,
0.018877798691391945,
0.014149285852909088,
0.07814677804708481,
0.08799504488706589,
-0.06828860938549042,
0.017156027257442474,
-0.008371450006961823,
-0.12041422724723816,
0.10960832983255386,
-0.027582256123423576,
0.10657952725887299,
-0.043688397854566574,
0.02328343875706196,
0.04723050817847252,
0.017124107107520103,
-0.08827073127031326,
-0.03171734884381294,
0.017678046599030495,
0.05297909304499626,
0.01950409822165966,
-0.03750127553939819,
-0.06506509333848953,
0.013299605809152126,
-0.004610316827893257,
0.06367172300815582,
0.013937300071120262,
0.009942140430212021,
0.027394680306315422,
0.04372471198439598,
0.0076490966603159904,
0.00628626486286521,
0.024698082357645035,
-0.00677122687920928,
-0.05801752954721451,
-0.05175340548157692,
-0.07764819264411926,
-0.031861383467912674,
-0.06070364639163017,
0.02022271603345871,
0.0449988879263401,
-0.02970420941710472,
-0.11458241194486618,
-0.030736874788999557,
0.07112506777048111,
-0.07340557873249054,
-0.038076192140579224,
0.045781366527080536,
0.021464157849550247,
0.051317039877176285,
0.01561132725328207,
-0.010205183178186417,
0.05168261379003525,
-0.01834755763411522,
-0.03999316319823265,
-0.12974852323532104,
-0.033543605357408524,
-0.08676224946975708,
-0.01694689504802227,
-0.013208524323999882,
0.021967461332678795,
0.026922354474663734,
-0.013353071175515652,
0.015711689367890358,
-0.05609162151813507,
0.04352758452296257,
0.03360799327492714,
-0.045188866555690765,
0.016581380739808083,
-0.025422366335988045,
-0.0904017984867096,
0.0027269579004496336,
-0.030099790543317795,
0.010016252286732197,
-0.05947331339120865,
-0.03747928887605667,
-0.00859963707625866,
0.06382369995117188,
0.009612447582185268,
0.010886454954743385,
-0.003472025040537119,
-0.0034654438495635986,
-0.027707448229193687,
0.043484482914209366,
0.02374400570988655,
0.04082464054226875,
-0.035561371594667435,
-0.027064653113484383,
-0.07166783511638641,
0.07153184711933136,
0.011927471496164799,
0.023743627592921257,
-0.018642928451299667,
-0.004256681073457003,
-0.02091621235013008,
-2.6354913953221855e-33,
0.0022322500590234995,
-0.06396256387233734,
-0.015399696305394173,
0.002832764759659767,
-0.12630122900009155,
0.00848351139575243,
-0.036903928965330124,
-0.016681447625160217,
0.018030082806944847,
-0.09396771341562271,
-0.03231555595993996,
-0.041788410395383835,
0.02451714500784874,
-0.02121376246213913,
0.029583338648080826,
-0.053720660507678986,
-0.11487966775894165,
0.013300231657922268,
0.03511355072259903,
-0.007948976010084152,
-0.0258623193949461,
0.07227825373411179,
0.07106639444828033,
-0.010121485218405724,
0.0420754998922348,
-0.053547102957963943,
-0.03798047825694084,
0.026397518813610077,
0.022798022255301476,
-0.10079055279493332,
0.06913115084171295,
0.08078624308109283,
-0.06946057081222534,
-0.01757621020078659,
-0.00847292598336935,
0.051495976746082306,
-0.07677542418241501,
0.057355109602212906,
0.012021311558783054,
0.05417371541261673,
0.026911474764347076,
-0.02010597474873066,
-0.0006555526633746922,
0.025504907593131065,
-0.034578725695610046,
0.08346850425004959,
0.021945612505078316,
-0.04697294905781746,
-0.0669594332575798,
-0.02318127080798149,
0.09652217477560043,
0.022180771455168724,
0.09011191129684448,
-0.047047801315784454,
-0.0031987871043384075,
0.08657041937112808,
0.016527846455574036,
-0.06336536258459091,
-0.013371430337429047,
-0.012245320715010166,
0.07795140892267227,
-0.030023664236068726,
0.026715567335486412,
0.015220222994685173,
-0.07584216445684433,
-0.042530667036771774,
-0.004710033535957336,
0.06800616532564163,
-0.020276082679629326,
0.004076865501701832,
-0.008499800227582455,
-0.11977557092905045,
-0.05627342313528061,
-0.041250329464673996,
-0.013231336139142513,
0.008560633286833763,
-0.05779946967959404,
-0.04564748331904411,
-0.055820923298597336,
0.037930719554424286,
-0.0670875757932663,
0.0300506129860878,
-0.009793258272111416,
0.03824258968234062,
-0.021072618663311005,
-0.012331013567745686,
0.008384579792618752,
0.04566477611660957,
0.07052157074213028,
0.06738266348838806,
-0.09074196219444275,
0.084291011095047,
-0.029572999104857445,
0.004505385644733906,
-0.07003754377365112,
-4.9878284613669166e-8,
-0.024893706664443016,
-0.002428350504487753,
-0.10363716632127762,
-0.06059727817773819,
-0.004081991966813803,
0.008345238864421844,
-0.0019633821211755276,
0.013136735185980797,
-0.014891684986650944,
0.013221420347690582,
0.06310633569955826,
0.017782870680093765,
-0.1539943367242813,
0.013490401208400726,
-0.09199167042970657,
0.02813584916293621,
-0.048034947365522385,
0.06799757480621338,
-0.008051232434809208,
-0.06187323108315468,
-0.06946474313735962,
0.025419745594263077,
-0.016769319772720337,
0.003533071605488658,
-0.08261162787675858,
-0.04858653247356415,
0.10199584811925888,
0.07302113622426987,
-0.028449561446905136,
0.05440647155046463,
-0.03633114695549011,
-0.028448278084397316,
0.006922450382262468,
-0.004249300807714462,
-0.004498875234276056,
0.0172341950237751,
-0.03852507844567299,
0.033664096146821976,
0.1324998289346695,
0.0041676671244204044,
-0.032346460968256,
0.018855450674891472,
-0.015028451569378376,
-0.012135583907365799,
-0.09207487106323242,
0.008972572162747383,
-0.0014407677808776498,
-0.02806495875120163,
-0.015565010719001293,
0.018580378964543343,
0.01786668971180916,
0.021835749968886375,
-0.04555927589535713,
0.06324577331542969,
-0.030414462089538574,
0.08702867478132248,
-0.011836410500109196,
-0.06678023934364319,
0.05436813086271286,
-0.008176189847290516,
0.011064649559557438,
-0.01660318113863468,
0.030314993113279343,
0.006995341740548611
] | 0.084178 |
# Menu Bar Icon States Author: steipete · Updated: 2025-12-06 · Scope: macOS app (`apps/macos`) - \*\*Idle:\*\* Normal icon animation (blink, occasional wiggle). - \*\*Paused:\*\* Status item uses `appearsDisabled`; no motion. - \*\*Voice trigger (big ears):\*\* Voice wake detector calls `AppState.triggerVoiceEars(ttl: nil)` when the wake word is heard, keeping `earBoostActive=true` while the utterance is captured. Ears scale up (1.9x), get circular ear holes for readability, then drop via `stopVoiceEars()` after 1s of silence. Only fired from the in-app voice pipeline. - \*\*Working (agent running):\*\* `AppState.isWorking=true` drives a “tail/leg scurry” micro-motion: faster leg wiggle and slight offset while work is in-flight. Currently toggled around WebChat agent runs; add the same toggle around other long tasks when you wire them. Wiring points - Voice wake: runtime/tester call `AppState.triggerVoiceEars(ttl: nil)` on trigger and `stopVoiceEars()` after 1s of silence to match the capture window. - Agent activity: set `AppStateStore.shared.setWorking(true/false)` around work spans (already done in WebChat agent call). Keep spans short and reset in `defer` blocks to avoid stuck animations. Shapes & sizes - Base icon drawn in `CritterIconRenderer.makeIcon(blink:legWiggle:earWiggle:earScale:earHoles:)`. - Ear scale defaults to `1.0`; voice boost sets `earScale=1.9` and toggles `earHoles=true` without changing overall frame (18×18 pt template image rendered into a 36×36 px Retina backing store). - Scurry uses leg wiggle up to ~1.0 with a small horizontal jiggle; it’s additive to any existing idle wiggle. Behavioral notes - No external CLI/broker toggle for ears/working; keep it internal to the app’s own signals to avoid accidental flapping. - Keep TTLs short (<10s) so the icon returns to baseline quickly if a job hangs. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/icon.md | main | opebclaw | [
-0.0702952966094017,
-0.023334510624408722,
0.016199538484215736,
-0.06365631520748138,
-0.02430347539484501,
-0.04389140382409096,
0.08425949513912201,
-0.05297590419650078,
0.01803494431078434,
-0.07516589760780334,
0.002842274494469166,
-0.03838273137807846,
-0.02603541873395443,
-0.027366388589143753,
0.008016228675842285,
-0.03058220073580742,
0.0799788385629654,
-0.0015093943802639842,
-0.013041920959949493,
-0.006615401711314917,
0.0972980260848999,
0.06238206848502159,
0.05732724815607071,
0.055535927414894104,
0.04174213111400604,
0.028874896466732025,
-0.036684803664684296,
-0.0831976979970932,
0.02596418745815754,
-0.0395197756588459,
0.018311195075511932,
-0.0012250692816451192,
0.07093176245689392,
-0.022781049832701683,
0.004201594740152359,
-0.01148807629942894,
0.1024739220738411,
0.06769244372844696,
-0.07960920035839081,
-0.034751247614622116,
-0.003102886024862528,
-0.026003442704677582,
0.004664894193410873,
-0.03207927569746971,
0.02783767320215702,
-0.037767522037029266,
-0.0812285766005516,
-0.023509250953793526,
-0.046621281653642654,
0.08827406167984009,
-0.0761483684182167,
-0.14054855704307556,
0.09974998235702515,
0.0792589783668518,
-0.06859579682350159,
0.058660008013248444,
0.09595101326704025,
0.04023757204413414,
0.0513736754655838,
-0.023128118366003036,
-0.0506184957921505,
-0.010012897662818432,
0.05346062406897545,
0.0405387207865715,
0.012461190111935139,
0.09067286550998688,
-0.02240687608718872,
-0.10034438967704773,
0.0318492166697979,
-0.009643430821597576,
-0.010495033115148544,
-0.019130889326334,
0.034225545823574066,
0.013767206110060215,
-0.024232428520917892,
-0.044708237051963806,
0.08379361778497696,
-0.03736741468310356,
0.011745463125407696,
-0.015020896680653095,
0.029510032385587692,
-0.10850255936384201,
-0.008254255168139935,
-0.020601321011781693,
0.02157379873096943,
-0.004115455783903599,
-0.011142699047923088,
-0.06173206865787506,
-0.018796708434820175,
0.0628257766366005,
-0.04008094593882561,
-0.038883276283741,
0.03196078538894653,
-0.022477559745311737,
0.06164209917187691,
-0.02154974639415741,
-0.0792137160897255,
-0.02693214640021324,
-0.01659761182963848,
0.035238176584243774,
0.021837590262293816,
-0.07164933532476425,
0.028870077803730965,
-0.029554689303040504,
0.01704888418316841,
-0.011807591654360294,
-0.019572917371988297,
-0.06754299998283386,
-0.018341729417443275,
0.06720788031816483,
-0.004739976022392511,
-0.06782682985067368,
0.032853614538908005,
0.034795891493558884,
0.03024432435631752,
0.09345092624425888,
-0.08783821761608124,
0.03656168654561043,
0.04164384305477142,
-0.004178354516625404,
0.11284584552049637,
0.03922561556100845,
-0.045955948531627655,
-0.0997161939740181,
0.06972339749336243,
0.008650661446154118,
0.011577248573303223,
7.711719751290258e-33,
-0.007830803282558918,
-0.00678656529635191,
-0.054340094327926636,
0.008053618483245373,
0.02158363163471222,
-0.07078830152750015,
-0.006794759072363377,
0.023552287369966507,
-0.012983230873942375,
-0.01950323022902012,
-0.02847578004002571,
0.03364226967096329,
-0.020148256793618202,
0.013421854935586452,
-0.035528555512428284,
-0.016438843682408333,
0.009359259158372879,
0.06620457023382187,
-0.03105919249355793,
-0.037966128438711166,
0.03792658448219299,
-0.028114749118685722,
-0.026215527206659317,
0.03061177209019661,
0.041978608816862106,
0.07994775474071503,
-0.024937739595770836,
-0.015309466980397701,
0.036598555743694305,
0.029053037986159325,
-0.05013395845890045,
0.01898912899196148,
0.028213854879140854,
-0.027732327580451965,
-0.0060943118296563625,
-0.028190825134515762,
0.0012687104754149914,
-0.04280705004930496,
-0.014267939142882824,
-0.02707645110785961,
-0.05849897861480713,
-0.032116398215293884,
-0.004203981254249811,
-0.07165910303592682,
-0.028406545519828796,
-0.07204890996217728,
-0.04846583679318428,
0.042242053896188736,
-0.01184319332242012,
0.06154278665781021,
0.013483528047800064,
0.05090358853340149,
-0.0051939706318080425,
-0.010270940139889717,
0.0033531803637742996,
-0.03311802074313164,
0.05426108092069626,
-0.01080449391156435,
0.035444024950265884,
0.011620263569056988,
0.008200290612876415,
0.003959303256124258,
0.10114903748035431,
-0.05859093740582466,
-0.008368234150111675,
0.04799161106348038,
-0.04317213222384453,
-0.027609631419181824,
-0.023053759709000587,
-0.05854986980557442,
-0.013234139420092106,
0.018457980826497078,
0.05600108578801155,
0.03835662454366684,
-0.07244047522544861,
-0.0030443172436207533,
-0.011256244033575058,
-0.05156078189611435,
-0.08580165356397629,
0.011074846610426903,
0.08656609058380127,
-0.03150954470038414,
-0.0012788403546437621,
0.01808433048427105,
0.06901579350233078,
-0.01994917541742325,
0.012381295673549175,
-0.13747122883796692,
-0.10452688485383987,
0.0785173624753952,
-0.05704433098435402,
-0.00725114531815052,
-0.033632609993219376,
0.0596713051199913,
-0.07184604555368423,
-8.93075735160288e-33,
0.02431677281856537,
0.042103420943021774,
-0.033773574978113174,
0.07729696482419968,
-0.0633033737540245,
0.0272197425365448,
0.0991896241903305,
0.08480732142925262,
-0.02912646159529686,
-0.06299950182437897,
-0.015729660168290138,
0.04021300747990608,
-0.053762465715408325,
0.0029682256281375885,
0.013367332518100739,
0.00904528982937336,
0.06148402392864227,
-0.03902876004576683,
0.003253804286941886,
0.08275732398033142,
0.05177832394838333,
-0.020317550748586655,
-0.0589870847761631,
0.06825882941484451,
-0.007374326232820749,
-0.010279511101543903,
0.00677771819755435,
-0.02645714581012726,
0.03351196274161339,
-0.0737759917974472,
-0.05675247684121132,
0.024560801684856415,
-0.08860817551612854,
-0.049197953194379807,
0.017125174403190613,
0.024719154462218285,
-0.03224686533212662,
-0.0058778454549610615,
-0.0021331938914954662,
-0.05905447527766228,
0.12029343843460083,
0.0134348776191473,
-0.010990544222295284,
-0.07031071931123734,
-0.011418388225138187,
0.01680174097418785,
-0.047581497579813004,
0.041506435722112656,
-0.08818328380584717,
0.029191158711910248,
0.08761096000671387,
0.004151767585426569,
0.06732863932847977,
0.05693952739238739,
-0.04035577550530434,
0.03786565363407135,
0.006824861746281385,
-0.020639803260564804,
-0.05449880287051201,
-0.03472505882382393,
0.018520992249250412,
-0.046290017664432526,
-0.02957323007285595,
-0.10745066404342651,
0.10145089030265808,
0.06877240538597107,
-0.024867961183190346,
-0.004238387104123831,
0.07864037901163101,
-0.00022965209791436791,
0.056654904037714005,
-0.04471685364842415,
-0.0014163844753056765,
-0.03971777483820915,
-0.05260118842124939,
0.08580087870359421,
-0.02298835478723049,
-0.22275839745998383,
-0.09108639508485794,
-0.021064579486846924,
-0.029040293768048286,
0.012267448008060455,
0.1014893651008606,
0.00724021578207612,
-0.02916286699473858,
0.055302008986473083,
-0.06417964398860931,
0.02645893208682537,
0.03632194548845291,
0.10468987375497818,
-0.0864722728729248,
0.09514838457107544,
0.016245504841208458,
0.010286051779985428,
-0.020660245791077614,
-5.823893900469557e-8,
-0.040792908519506454,
-0.022660788148641586,
0.03296926990151405,
-0.06615152209997177,
0.004226472694426775,
-0.10471612960100174,
0.040861576795578,
-0.05334502458572388,
-0.010047509334981441,
-0.06011417880654335,
0.019204648211598396,
-0.07191070914268494,
0.02248590625822544,
0.042175717651844025,
0.04789615795016289,
0.03162412717938423,
-0.03472260758280754,
0.11246806383132935,
-0.05623369291424751,
-0.14741207659244537,
0.01766880415380001,
0.02456401102244854,
-0.05386367440223694,
-0.006548645440489054,
-0.026488378643989563,
-0.03315488621592522,
0.009422398172318935,
0.11611754447221756,
-0.02317955158650875,
-0.02360171265900135,
-0.028632359579205513,
0.02972627617418766,
-0.020474785938858986,
-0.04333016276359558,
-0.04202019050717354,
0.00876961462199688,
0.016210105270147324,
-0.02001410722732544,
0.06977589428424835,
-0.005134669132530689,
0.03593050315976143,
-0.013838302344083786,
-0.055103037506341934,
-0.011212743818759918,
-0.044708073139190674,
-0.0214383527636528,
0.0504331961274147,
-0.059263452887535095,
0.016902638599276543,
0.06993331015110016,
-0.04231885075569153,
0.03381282091140747,
0.017878830432891846,
0.027739113196730614,
0.07931589335203171,
0.0019095349125564098,
0.09295225143432617,
-0.017791878432035446,
0.03676208108663559,
0.10303392261266708,
0.07156811654567719,
-0.0542093850672245,
0.02194967120885849,
-0.0016581874806433916
] | 0.141076 |
# Peekaboo Bridge (macOS UI automation) OpenClaw can host \*\*PeekabooBridge\*\* as a local, permission‑aware UI automation broker. This lets the `peekaboo` CLI drive UI automation while reusing the macOS app’s TCC permissions. ## What this is (and isn’t) - \*\*Host\*\*: OpenClaw.app can act as a PeekabooBridge host. - \*\*Client\*\*: use the `peekaboo` CLI (no separate `openclaw ui ...` surface). - \*\*UI\*\*: visual overlays stay in Peekaboo.app; OpenClaw is a thin broker host. ## Enable the bridge In the macOS app: - Settings → \*\*Enable Peekaboo Bridge\*\* When enabled, OpenClaw starts a local UNIX socket server. If disabled, the host is stopped and `peekaboo` will fall back to other available hosts. ## Client discovery order Peekaboo clients typically try hosts in this order: 1. Peekaboo.app (full UX) 2. Claude.app (if installed) 3. OpenClaw.app (thin broker) Use `peekaboo bridge status --verbose` to see which host is active and which socket path is in use. You can override with: ```bash export PEEKABOO\_BRIDGE\_SOCKET=/path/to/bridge.sock ``` ## Security & permissions - The bridge validates \*\*caller code signatures\*\*; an allowlist of TeamIDs is enforced (Peekaboo host TeamID + OpenClaw app TeamID). - Requests time out after ~10 seconds. - If required permissions are missing, the bridge returns a clear error message rather than launching System Settings. ## Snapshot behavior (automation) Snapshots are stored in memory and expire automatically after a short window. If you need longer retention, re‑capture from the client. ## Troubleshooting - If `peekaboo` reports “bridge client is not authorized”, ensure the client is properly signed or run the host with `PEEKABOO\_ALLOW\_UNSIGNED\_SOCKET\_CLIENTS=1` in \*\*debug\*\* mode only. - If no hosts are found, open one of the host apps (Peekaboo.app or OpenClaw.app) and confirm permissions are granted. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/peekaboo.md | main | opebclaw | [
-0.07029303908348083,
-0.028000660240650177,
0.0046709319576621056,
-0.009834610857069492,
-0.02365127205848694,
-0.10944659262895584,
0.00859429594129324,
-0.048748042434453964,
-0.0040880003944039345,
-0.004038991406559944,
0.0035762162879109383,
-0.05875914543867111,
0.03169526159763336,
-0.001964849652722478,
0.05886081978678703,
0.01917748898267746,
0.14576484262943268,
-0.04168582335114479,
0.057445671409368515,
0.053835414350032806,
-0.019223492592573166,
-0.020926671102643013,
-0.05432594567537308,
-0.06896881759166718,
-0.0651831105351448,
-0.048747140914201736,
0.0051452540792524815,
-0.04740844666957855,
-0.013620220124721527,
0.04517665132880211,
-0.03904880955815315,
0.005636571440845728,
-0.09401274472475052,
0.003900472540408373,
0.062293536961078644,
0.014779788441956043,
0.02362203784286976,
-0.030087310820817947,
-0.14018017053604126,
-0.0641249269247055,
0.06216098368167877,
0.027523625642061234,
-0.010004635900259018,
0.031205501407384872,
-0.010584757663309574,
-0.027953162789344788,
0.03064129315316677,
-0.0328749343752861,
0.02453245036303997,
-0.0019459293689578772,
-0.05000727251172066,
-0.01660819537937641,
-0.01017083041369915,
0.052692342549562454,
0.05715850368142128,
0.03372325748205185,
-0.03642788901925087,
-0.010369759052991867,
0.03672868013381958,
0.029894890263676643,
-0.007224793080240488,
-0.03636883199214935,
0.01861620880663395,
0.05389188230037689,
-0.004868004936724901,
0.024368615821003914,
-0.043756742030382156,
0.009092924185097218,
-0.05965646728873253,
-0.07393806427717209,
0.02462516911327839,
-0.00009361914999317378,
0.0348021425306797,
-0.018328571692109108,
0.05190059542655945,
-0.013431278057396412,
0.029456816613674164,
0.034344419836997986,
-0.06604751944541931,
-0.15096257627010345,
-0.07109829038381577,
0.01784501224756241,
-0.10926228016614914,
0.04804087430238724,
-0.08922787010669708,
0.051199689507484436,
0.03106463886797428,
0.002480635419487953,
0.04775680974125862,
0.11818850040435791,
0.07045400142669678,
-0.014143836684525013,
-0.07074801623821259,
-0.03930462896823883,
0.0449526272714138,
-0.09096156060695648,
0.005742068402469158,
0.01162332110106945,
-0.0659305527806282,
0.027703532949090004,
-0.052629247307777405,
0.015214843675494194,
0.056792717427015305,
-0.013845019973814487,
-0.042557232081890106,
-0.0006828558980487287,
0.020763464272022247,
0.016611533239483833,
0.007878552190959454,
0.055275265127420425,
-0.02122313901782036,
0.005061483941972256,
0.03075615130364895,
-0.0028666076250374317,
-0.01479398738592863,
0.007888784632086754,
-0.04454413801431656,
-0.007217038422822952,
0.025104129686951637,
0.018898235633969307,
0.08044454455375671,
-0.025331219658255577,
-0.0025151825975626707,
-0.03092716820538044,
0.08033651858568192,
0.046931710094213486,
0.047191306948661804,
4.757748365421929e-33,
-0.01522089820355177,
-0.035247039049863815,
-0.03852329030632973,
0.03302055969834328,
0.09191838651895523,
-0.05669322982430458,
0.07016787678003311,
0.02879328280687332,
-0.09429138898849487,
0.03010876104235649,
-0.0645364373922348,
0.023921947926282883,
-0.015369764529168606,
-0.06452400237321854,
0.06854327023029327,
-0.019211387261748314,
-0.0513119138777256,
0.039493877440690994,
0.044132836163043976,
0.039996758103370667,
0.022883452475070953,
-0.02580852061510086,
-0.0386541523039341,
-0.008540656417608261,
-0.04510628804564476,
0.04730440676212311,
-0.06449529528617859,
-0.048159047961235046,
0.05402011424303055,
0.07537505775690079,
0.023677833378314972,
0.04313184693455696,
-0.031772028654813766,
0.0001695909013506025,
-0.11216986924409866,
-0.01715349219739437,
-0.05241863802075386,
-0.0652819350361824,
0.0005376876797527075,
0.014240378513932228,
-0.07866284251213074,
-0.10859953612089157,
-0.046198438853025436,
-0.032856155186891556,
-0.03065095841884613,
-0.17848138511180878,
-0.058586493134498596,
0.05730803683400154,
-0.050986651331186295,
0.08571071177721024,
0.034342020750045776,
-0.03130580484867096,
0.04453911632299423,
-0.015619941987097263,
0.026670362800359726,
-0.05276705324649811,
-0.004735713824629784,
-0.04964495822787285,
0.02058141678571701,
0.030338816344738007,
-0.005497621838003397,
0.08708097040653229,
0.01133197546005249,
0.035794056951999664,
-0.055446550250053406,
0.010911812074482441,
0.07425136119127274,
-0.016358476132154465,
-0.06276179850101471,
0.026468243449926376,
-0.0993080735206604,
0.038630466908216476,
-0.07923008501529694,
0.005333641543984413,
-0.029233934357762337,
-0.03757231682538986,
0.00035427664988674223,
0.0025177206844091415,
0.12183945626020432,
-0.0027761494275182486,
0.024469712749123573,
-0.017271343618631363,
0.016594355925917625,
0.028500229120254517,
-0.026971831917762756,
-0.012886781245470047,
0.002045311266556382,
-0.012849912978708744,
-0.062111515551805496,
0.04604197293519974,
0.014237784780561924,
-0.011036557145416737,
0.03373075649142265,
-0.004512914922088385,
-0.058001406490802765,
-6.748111930623534e-33,
0.07356347143650055,
-0.08093708753585815,
-0.03707732632756233,
-0.07368994504213333,
-0.03567351773381233,
-0.004092053044587374,
-0.03939766809344292,
-0.022551387548446655,
-0.07725589722394943,
-0.08818071335554123,
-0.05100623890757561,
0.06996726244688034,
0.06374529749155045,
-0.055079858750104904,
-0.0030752206221222878,
0.0242910273373127,
0.03814159333705902,
-0.056464727967977524,
-0.12226667255163193,
0.0009899961296468973,
-0.02762625366449356,
0.010496377944946289,
0.03458721935749054,
0.011076842434704304,
0.006305853836238384,
-0.013058901764452457,
0.014239952899515629,
0.09175361692905426,
0.03535987064242363,
-0.04486478492617607,
-0.004763389937579632,
-0.019716568291187286,
-0.02031334489583969,
0.0004747057391796261,
0.04674367606639862,
0.11919111013412476,
0.009460369125008583,
0.09074141085147858,
-0.015199263580143452,
-0.0026501817628741264,
0.0652187243103981,
-0.04195348173379898,
-0.03792340308427811,
0.050913963466882706,
-0.024072378873825073,
0.13903652131557465,
-0.09204709529876709,
0.02507859282195568,
-0.11437618732452393,
0.025630570948123932,
0.04711287468671799,
0.005712703801691532,
0.10057701170444489,
0.03460796922445297,
0.011500821448862553,
0.10926944017410278,
0.046199679374694824,
-0.03204985335469246,
0.0038016480393707752,
-0.04349655658006668,
0.14382658898830414,
-0.08978970348834991,
-0.05022704228758812,
0.05349501967430115,
-0.02089398168027401,
-0.020514408126473427,
-0.007194725796580315,
0.028272824361920357,
-0.06494851410388947,
-0.03345860168337822,
0.048510339111089706,
-0.08508571237325668,
-0.034759122878313065,
-0.10059133917093277,
0.0420866534113884,
0.030703099444508553,
0.07603120058774948,
-0.02823745273053646,
-0.006755942013114691,
0.06320227682590485,
-0.016978854313492775,
0.08813006430864334,
0.0603916198015213,
0.04803309217095375,
-0.018017783761024475,
0.022864824160933495,
-0.059681668877601624,
0.056575797498226166,
0.10094606876373291,
0.024750100448727608,
-0.13152940571308136,
0.024303242564201355,
0.00022621691459789872,
0.008279440924525261,
-0.011639800854027271,
-4.849944801321726e-8,
-0.05264769494533539,
-0.06668311357498169,
-0.005719414446502924,
0.019606037065386772,
-0.04857288673520088,
-0.018390044569969177,
-0.03262648731470108,
0.033288709819316864,
-0.015116967260837555,
0.018823374062776566,
0.049084100872278214,
-0.02781483717262745,
-0.027848562225699425,
0.013835583813488483,
0.053756702691316605,
0.07071129977703094,
0.03152604028582573,
-0.04391828551888466,
0.003249658038839698,
-0.04830936715006828,
-0.020292840898036957,
-0.0696072205901146,
0.04927440360188484,
0.040977831929922104,
-0.026731936261057854,
-0.043904803693294525,
-0.026523036882281303,
-0.04625679552555084,
-0.06157122552394867,
0.011515381745994091,
-0.00581379747018218,
-0.053692400455474854,
0.00670978520065546,
0.08078937977552414,
-0.0008880802197381854,
0.07542445510625839,
-0.07229491323232651,
0.04340430349111557,
0.05526333302259445,
0.021001726388931274,
-0.01785404421389103,
0.005500994622707367,
0.003032860578969121,
-0.016088545322418213,
-0.030340874567627907,
0.017448967322707176,
0.01693890616297722,
0.04305554926395416,
-0.0016613759798929095,
-0.0011319369077682495,
-0.01399319153279066,
-0.022274035960435867,
-0.024168899282813072,
0.06246506795287132,
-0.019047604873776436,
0.08400583267211914,
0.06023639440536499,
-0.07776419073343277,
0.0683852881193161,
0.09661568701267242,
0.016943536698818207,
0.08185282349586487,
-0.020985538139939308,
0.055261410772800446
] | 0.145525 |
# macOS Developer Setup This guide covers the necessary steps to build and run the OpenClaw macOS application from source. ## Prerequisites Before building the app, ensure you have the following installed: 1. \*\*Xcode 26.2+\*\*: Required for Swift development. 2. \*\*Node.js 22+ & pnpm\*\*: Required for the gateway, CLI, and packaging scripts. ## 1. Install Dependencies Install the project-wide dependencies: ```bash pnpm install ``` ## 2. Build and Package the App To build the macOS app and package it into `dist/OpenClaw.app`, run: ```bash ./scripts/package-mac-app.sh ``` If you don't have an Apple Developer ID certificate, the script will automatically use \*\*ad-hoc signing\*\* (`-`). For dev run modes, signing flags, and Team ID troubleshooting, see the macOS app README: https://github.com/openclaw/openclaw/blob/main/apps/macos/README.md > \*\*Note\*\*: Ad-hoc signed apps may trigger security prompts. If the app crashes immediately with "Abort trap 6", see the [Troubleshooting](#troubleshooting) section. ## 3. Install the CLI The macOS app expects a global `openclaw` CLI install to manage background tasks. \*\*To install it (recommended):\*\* 1. Open the OpenClaw app. 2. Go to the \*\*General\*\* settings tab. 3. Click \*\*"Install CLI"\*\*. Alternatively, install it manually: ```bash npm install -g openclaw@ ``` ## Troubleshooting ### Build Fails: Toolchain or SDK Mismatch The macOS app build expects the latest macOS SDK and Swift 6.2 toolchain. \*\*System dependencies (required):\*\* - \*\*Latest macOS version available in Software Update\*\* (required by Xcode 26.2 SDKs) - \*\*Xcode 26.2\*\* (Swift 6.2 toolchain) \*\*Checks:\*\* ```bash xcodebuild -version xcrun swift --version ``` If versions don’t match, update macOS/Xcode and re-run the build. ### App Crashes on Permission Grant If the app crashes when you try to allow \*\*Speech Recognition\*\* or \*\*Microphone\*\* access, it may be due to a corrupted TCC cache or signature mismatch. \*\*Fix:\*\* 1. Reset the TCC permissions: ```bash tccutil reset All bot.molt.mac.debug ``` 2. If that fails, change the `BUNDLE\_ID` temporarily in [`scripts/package-mac-app.sh`](https://github.com/openclaw/openclaw/blob/main/scripts/package-mac-app.sh) to force a "clean slate" from macOS. ### Gateway "Starting..." indefinitely If the gateway status stays on "Starting...", check if a zombie process is holding the port: ```bash openclaw gateway status openclaw gateway stop # If you’re not using a LaunchAgent (dev mode / manual runs), find the listener: lsof -nP -iTCP:18789 -sTCP:LISTEN ``` If a manual run is holding the port, stop that process (Ctrl+C). As a last resort, kill the PID you found above. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/dev-setup.md | main | opebclaw | [
-0.0036195367574691772,
-0.05711247771978378,
-0.027869898825883865,
0.017141861841082573,
0.03545122221112251,
-0.11109738051891327,
-0.06632489711046219,
0.01997312158346176,
-0.05841127038002014,
0.019015749916434288,
0.036390360444784164,
-0.07077767699956894,
-0.018940286710858345,
0.03180231899023056,
0.07942161709070206,
0.11217215657234192,
0.029015764594078064,
-0.020598800852894783,
0.0848817303776741,
0.021187977865338326,
0.015141084790229797,
0.009431801736354828,
0.047323472797870636,
-0.013260068371891975,
-0.0773816853761673,
-0.046309929341077805,
0.06202879175543785,
-0.01325791236013174,
-0.04115821048617363,
0.032152511179447174,
0.07186200469732285,
0.013075527735054493,
0.07863103598356247,
0.028042003512382507,
0.09348025918006897,
0.028087861835956573,
0.09152407199144363,
-0.05336518958210945,
-0.12437818199396133,
-0.0779917910695076,
0.006401098798960447,
0.02475624717772007,
0.035933781415224075,
0.012008254416286945,
-0.00349266454577446,
-0.04458744078874588,
-0.021352803334593773,
-0.05576663091778755,
0.021731765940785408,
-0.009953279979526997,
-0.01962934248149395,
-0.11274158209562302,
-0.03140828013420105,
-0.09824840724468231,
0.034349482506513596,
0.061139144003391266,
-0.0306398868560791,
-0.03676822781562805,
0.10446137934923172,
-0.04230830445885658,
0.05145737901329994,
-0.0029618970584124327,
-0.04332936927676201,
0.029275700449943542,
-0.049656372517347336,
-0.000035364948416827247,
-0.00480657210573554,
-0.011276057921350002,
-0.03159954771399498,
0.00224856985732913,
0.09186848253011703,
-0.00981605052947998,
0.05297929793596268,
-0.06888209283351898,
-0.09110618382692337,
-0.04848890379071236,
0.07074698060750961,
0.00884661078453064,
-0.03879513591527939,
-0.019477790221571922,
-0.08314671367406845,
0.012882990762591362,
-0.07517080008983612,
0.07664553821086884,
-0.018906548619270325,
0.14206892251968384,
0.01086045615375042,
0.05378827825188637,
0.00413980707526207,
0.1344473958015442,
0.02399373985826969,
-0.08531735092401505,
-0.07631395757198334,
-0.04701853170990944,
0.04740414768457413,
-0.01655813865363598,
0.05057681351900101,
0.04915330186486244,
-0.030084334313869476,
0.03423190116882324,
-0.11143136024475098,
-0.0493815578520298,
0.017969917505979538,
-0.006773697212338448,
-0.02596733532845974,
0.09088119119405746,
0.016425924375653267,
0.009960155934095383,
0.025556743144989014,
0.09861116856336594,
0.052016131579875946,
-0.024570966139435768,
0.03840937092900276,
-0.008026774041354656,
0.01151083130389452,
0.037383656948804855,
-0.03113267943263054,
-0.025260983034968376,
0.06591787189245224,
0.08050329238176346,
0.05963381379842758,
0.09592603147029877,
-0.026095448061823845,
0.007395346183329821,
-0.01165847573429346,
0.029944848269224167,
0.06141442805528641,
4.805268826579874e-33,
0.039349514991045,
-0.005400161724537611,
-0.05942920967936516,
0.026651853695511818,
0.12057796865701675,
-0.08666319400072098,
0.08936232328414917,
0.0019986422266811132,
-0.07838335633277893,
0.07601049542427063,
-0.036924783140420914,
0.016080988571047783,
-0.0492166243493557,
0.006976584438234568,
-0.0033274271991103888,
-0.03501060977578163,
-0.03866554796695709,
-0.03846506029367447,
0.05736533924937248,
0.02245022915303707,
-0.003309704829007387,
-0.11707188189029694,
-0.06425837427377701,
0.009333102032542229,
-0.037736814469099045,
0.04901152476668358,
0.03701933100819588,
-0.033533450216054916,
0.015338295139372349,
0.04332051798701286,
0.010093851014971733,
0.04119871184229851,
-0.04428519308567047,
-0.01156461238861084,
-0.06807904690504074,
-0.0586702786386013,
-0.08125581592321396,
-0.016395268961787224,
-0.05892645940184593,
0.026174163445830345,
-0.0053400201722979546,
0.004810347221791744,
-0.07759826630353928,
-0.026235757395625114,
0.06719453632831573,
-0.06905495375394821,
0.012555438093841076,
0.03629278019070625,
0.06026063859462738,
0.045833613723516464,
-0.010646670125424862,
-0.048531390726566315,
0.018683655187487602,
0.0008930671028792858,
-0.005399811547249556,
-0.03034941293299198,
0.003453262383118272,
-0.11904561519622803,
-0.004022300709038973,
-0.032523263245821,
-0.05120013281702995,
0.06361383944749832,
-0.02894032746553421,
0.017922092229127884,
-0.017800677567720413,
0.028898216784000397,
0.008817358873784542,
-0.05062643811106682,
-0.03110022097826004,
-0.009760905057191849,
-0.02953808195888996,
-0.007652739994227886,
0.005361634772270918,
-0.006606899667531252,
-0.056794214993715286,
-0.013143864460289478,
0.017666872590780258,
0.03260684385895729,
0.018844034522771835,
0.020075997337698936,
0.03250822052359581,
0.027573056519031525,
0.022578256204724312,
0.0652991533279419,
0.0939791351556778,
0.09202750772237778,
0.022855674847960472,
0.058700237423181534,
-0.022668180987238884,
0.14004431664943695,
-0.006776493042707443,
-0.0940483883023262,
-0.04100422561168671,
-0.010945410467684269,
-0.014537063427269459,
-5.955909553405932e-33,
0.007594698574393988,
-0.02132266014814377,
-0.0042917183600366116,
0.0007629705360159278,
-0.06622175127267838,
-0.01358243077993393,
-0.061630070209503174,
-0.04192201793193817,
0.023519543930888176,
-0.05295432731509209,
-0.1006496325135231,
0.03465740755200386,
0.06826769560575485,
-0.05136115103960037,
-0.0066291834227740765,
-0.026664625853300095,
-0.06913896650075912,
0.02684827521443367,
0.004786852281540632,
-0.00584069499745965,
-0.019812490791082382,
0.016188237816095352,
0.06974473595619202,
-0.02272043377161026,
0.034716784954071045,
-0.05901101231575012,
0.06941110640764236,
0.023013576865196228,
-0.02046811953186989,
-0.04450613632798195,
-0.009593009017407894,
0.03326236829161644,
0.001562069752253592,
-0.006730237510055304,
0.010004077106714249,
0.05205012857913971,
-0.028096934780478477,
0.010950437746942043,
0.05189639329910278,
-0.02834339626133442,
-0.0008399852085858583,
-0.014640940353274345,
-0.07503750920295715,
-0.057426851242780685,
-0.04316210374236107,
0.0942869782447815,
-0.008211201056838036,
0.03310941159725189,
-0.06065881624817848,
-0.08348432928323746,
-0.0048754094168543816,
0.06241259351372719,
-0.01864420250058174,
-0.006756998132914305,
0.0017512493068352342,
0.022903243079781532,
0.029486270621418953,
-0.02879037708044052,
0.007183578796684742,
-0.025768853724002838,
-0.012288880534470081,
-0.06871054321527481,
0.021232545375823975,
0.018501050770282745,
-0.02132359705865383,
-0.0650956928730011,
-0.07003148645162582,
0.033444758504629135,
-0.07355162501335144,
0.0437624529004097,
-0.10077068954706192,
-0.04674157872796059,
0.016740424558520317,
-0.017823200672864914,
-0.060889944434165955,
-0.037490300834178925,
-0.023291494697332382,
-0.02728128992021084,
0.04622906818985939,
0.030520504340529442,
0.050026025623083115,
0.12051108479499817,
0.05916544049978256,
0.02635648474097252,
0.031995076686143875,
0.0021765832789242268,
0.06738734990358353,
0.03498166799545288,
0.04500729963183403,
0.08821266144514084,
-0.05801667273044586,
0.04604201763868332,
0.0065228589810431,
-0.028818370774388313,
-0.01551373302936554,
-5.385875923025196e-8,
-0.06003514304757118,
-0.01740892045199871,
-0.09476106613874435,
-0.0026456755585968494,
-0.021235529333353043,
-0.0015985015779733658,
0.008380617946386337,
0.006963223684579134,
0.040088653564453125,
0.02400621771812439,
0.061290442943573,
0.02748831920325756,
-0.11857405304908752,
0.08291110396385193,
-0.06493309140205383,
0.0921868085861206,
0.00933724083006382,
0.044047996401786804,
0.024812011048197746,
-0.06884228438138962,
-0.015241628512740135,
0.009333320893347263,
0.006744777783751488,
0.035173024982213974,
-0.08637969195842743,
-0.008278319612145424,
0.0183295588940382,
-0.024671247228980064,
-0.04676142334938049,
0.018509196117520332,
-0.08999843150377274,
-0.03676547855138779,
-0.025495102629065514,
0.02243432216346264,
0.04681975394487381,
0.005655428860336542,
-0.041802339255809784,
-0.004138711839914322,
0.08486668020486832,
-0.030122311785817146,
-0.0059961280785501,
0.06826046854257584,
-0.02795211784541607,
-0.05163944140076637,
-0.1157400980591774,
0.02886088378727436,
-0.058953993022441864,
-0.00677412049844861,
-0.05819090083241463,
0.012163890525698662,
0.07825557142496109,
0.0003955000720452517,
-0.025054970756173134,
0.013085455633699894,
-0.01997794583439827,
0.1593656688928604,
0.034410811960697174,
-0.15334449708461761,
-0.03551097959280014,
-0.0017036108765751123,
0.04707850143313408,
0.009597640484571457,
0.03696931526064873,
-0.011164464987814426
] | 0.042702 |
# Gateway lifecycle on macOS The macOS app \*\*manages the Gateway via launchd\*\* by default and does not spawn the Gateway as a child process. It first tries to attach to an already‑running Gateway on the configured port; if none is reachable, it enables the launchd service via the external `openclaw` CLI (no embedded runtime). This gives you reliable auto‑start at login and restart on crashes. Child‑process mode (Gateway spawned directly by the app) is \*\*not in use\*\* today. If you need tighter coupling to the UI, run the Gateway manually in a terminal. ## Default behavior (launchd) - The app installs a per‑user LaunchAgent labeled `bot.molt.gateway` (or `bot.molt.` when using `--profile`/`OPENCLAW\_PROFILE`; legacy `com.openclaw.\*` is supported). - When Local mode is enabled, the app ensures the LaunchAgent is loaded and starts the Gateway if needed. - Logs are written to the launchd gateway log path (visible in Debug Settings). Common commands: ```bash launchctl kickstart -k gui/$UID/bot.molt.gateway launchctl bootout gui/$UID/bot.molt.gateway ``` Replace the label with `bot.molt.` when running a named profile. ## Unsigned dev builds `scripts/restart-mac.sh --no-sign` is for fast local builds when you don’t have signing keys. To prevent launchd from pointing at an unsigned relay binary, it: - Writes `~/.openclaw/disable-launchagent`. Signed runs of `scripts/restart-mac.sh` clear this override if the marker is present. To reset manually: ```bash rm ~/.openclaw/disable-launchagent ``` ## Attach-only mode To force the macOS app to \*\*never install or manage launchd\*\*, launch it with `--attach-only` (or `--no-launchd`). This sets `~/.openclaw/disable-launchagent`, so the app only attaches to an already running Gateway. You can toggle the same behavior in Debug Settings. ## Remote mode Remote mode never starts a local Gateway. The app uses an SSH tunnel to the remote host and connects over that tunnel. ## Why we prefer launchd - Auto‑start at login. - Built‑in restart/KeepAlive semantics. - Predictable logs and supervision. If a true child‑process mode is ever needed again, it should be documented as a separate, explicit dev‑only mode. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/child-process.md | main | opebclaw | [
-0.029224228113889694,
-0.05643507465720177,
-0.023912372067570686,
0.015519841574132442,
-0.000721710966899991,
-0.0977809801697731,
-0.08064550906419754,
0.026011722162365913,
-0.0004960205405950546,
0.019839216023683548,
0.0047651417553424835,
0.025689445436000824,
-0.007903093472123146,
0.048233624547719955,
0.09041869640350342,
0.11585497111082077,
0.09885185956954956,
-0.0665009617805481,
0.020523101091384888,
0.007204749621450901,
0.03608117252588272,
0.046846531331539154,
-0.005819178186357021,
0.01485139224678278,
-0.09630169719457626,
-0.06702764332294464,
0.011453715153038502,
-0.05235700309276581,
-0.002689617918804288,
0.019121544435620308,
0.056883420795202255,
0.013793479651212692,
-0.0910455510020256,
-0.010920949280261993,
0.054089076817035675,
0.042290639132261276,
0.09269600361585617,
0.01065512839704752,
-0.06199827417731285,
-0.013759998604655266,
0.1172814667224884,
-0.007358374074101448,
0.019655434414744377,
-0.02682155929505825,
0.002435792237520218,
-0.06289323419332504,
0.006017301231622696,
-0.0489523820579052,
0.02307926118373871,
-0.017671020701527596,
-0.0060983821749687195,
-0.02379288338124752,
0.07194306701421738,
-0.028581609949469566,
0.0508432500064373,
0.050466373562812805,
0.044635504484176636,
-0.06930574029684067,
0.0812399610877037,
-0.015463793650269508,
-0.0423947274684906,
-0.014687301591038704,
-0.003455056808888912,
0.025960281491279602,
-0.09999652206897736,
-0.0001814291754271835,
-0.014584546908736229,
-0.08556212484836578,
-0.026417525485157967,
0.010161315090954304,
0.02244824543595314,
0.027276035398244858,
-0.031542323529720306,
-0.019184062257409096,
-0.019995201379060745,
0.018665410578250885,
0.06901570409536362,
-0.0707138404250145,
-0.04397578909993172,
-0.07576973736286163,
0.04122905433177948,
0.03683219850063324,
-0.05153220146894455,
0.07337259501218796,
0.014795292168855667,
0.084080770611763,
0.010092513635754585,
-0.03701207786798477,
0.06678493320941925,
0.09725718945264816,
-0.046880751848220825,
-0.0627291351556778,
-0.020021244883537292,
0.011165773496031761,
0.03775293380022049,
-0.019815880805253983,
-0.01164801511913538,
-0.08801372349262238,
-0.031136561185121536,
0.025235136970877647,
-0.027394579723477364,
0.0069930232129991055,
0.05197545886039734,
0.06002409756183624,
0.0016259187832474709,
0.030918212607502937,
0.03864317759871483,
0.10287749767303467,
0.03212868049740791,
-0.007595751900225878,
0.010836233384907246,
-0.07471305876970291,
0.11034862697124481,
0.07361973077058792,
-0.009699671529233456,
0.03971201926469803,
-0.00800502672791481,
-0.03250851109623909,
-0.008327332325279713,
0.06380835175514221,
0.046272922307252884,
0.047605130821466446,
0.0466921292245388,
0.017614521086215973,
0.06610161066055298,
0.022713949903845787,
0.07319418340921402,
4.106106092545886e-33,
-0.0014828583225607872,
-0.11439082026481628,
-0.039288170635700226,
0.04927828907966614,
0.10214482992887497,
-0.029308605939149857,
0.0027772225439548492,
0.004156484268605709,
-0.009295410476624966,
0.015025777742266655,
-0.07834378629922867,
-0.007826915942132473,
-0.05703913792967796,
-0.022007141262292862,
0.028809111565351486,
0.030306050553917885,
-0.06095881760120392,
0.01614004373550415,
0.032044705003499985,
-0.009935080073773861,
0.03475454822182655,
-0.09549932181835175,
-0.04128861799836159,
0.02050168812274933,
0.04081238433718681,
0.028959473595023155,
-0.014144087210297585,
-0.0035096425563097,
0.01639430597424507,
0.0384250245988369,
0.028985532000660896,
0.03246264159679413,
-0.08320245146751404,
0.03298072889447212,
-0.09330148249864578,
-0.030900219455361366,
-0.06909843534231186,
-0.025853106752038002,
-0.10900203883647919,
0.0265347920358181,
-0.1040358692407608,
0.015067914500832558,
-0.0664757490158081,
-0.04345916956663132,
0.002897377824410796,
-0.14856937527656555,
-0.11451803892850876,
0.07870016247034073,
0.06394883990287781,
0.023512259125709534,
-0.01825280673801899,
0.015199651941657066,
0.03338010981678963,
-0.007202482316643,
-0.023257266730070114,
-0.006779526360332966,
-0.07837434113025665,
-0.05777818709611893,
0.0167902372777462,
-0.0570848286151886,
0.05016154423356056,
0.0010612497571855783,
-0.059528954327106476,
0.05993112921714783,
0.03590400144457817,
0.020757097750902176,
0.0863310843706131,
-0.0012714945478364825,
-0.06586701422929764,
-0.006434108130633831,
-0.02600882202386856,
0.006817444693297148,
-0.05817989632487297,
0.004671791568398476,
0.010221602395176888,
-0.04766387119889259,
0.07202791422605515,
-0.028171340003609657,
0.02047640271484852,
0.027183622121810913,
0.0817115530371666,
-0.0032879202626645565,
0.04006309434771538,
-0.029973048716783524,
0.036726776510477066,
0.0764804258942604,
0.022765200585126877,
-0.07008832693099976,
0.013473212718963623,
0.05881360545754433,
-0.05481879040598869,
-0.002264541108161211,
-0.0026280651800334454,
0.09292838722467422,
-0.04872096702456474,
-5.987346680450735e-33,
-0.018740981817245483,
-0.007047449238598347,
0.023356391116976738,
0.010237852111458778,
-0.05273294821381569,
-0.03482980281114578,
0.004704376682639122,
-0.013445193879306316,
-0.009288561530411243,
-0.04544186592102051,
-0.0919169932603836,
0.08778572082519531,
0.042083490639925,
-0.045358046889305115,
0.07321910560131073,
-0.07205118238925934,
-0.02430122345685959,
-0.007740642409771681,
0.01284952275454998,
0.021621186286211014,
-0.008658788166940212,
0.023083822801709175,
-0.07661586999893188,
-0.07459456473588943,
0.036786239594221115,
0.009524758905172348,
-0.010674829594790936,
0.06511718779802322,
-0.076310895383358,
-0.00772894686087966,
0.03853083401918411,
0.06247499957680702,
0.04087238013744354,
0.034634530544281006,
0.01612936705350876,
0.09866233170032501,
-0.08896060287952423,
0.036031391471624374,
0.03014843352138996,
-0.020486092194914818,
0.06578736752271652,
0.005731598939746618,
-0.01932256482541561,
0.0031427445355802774,
0.004859718959778547,
0.04222846031188965,
-0.03817376494407654,
-0.03558003157377243,
-0.03953990712761879,
-0.02257405035197735,
-0.03567750006914139,
0.04419296234846115,
0.06901062279939651,
0.11430596560239792,
0.047421395778656006,
0.058543574064970016,
0.09641953557729721,
0.001907077501527965,
-0.028661001473665237,
-0.07234227657318115,
0.014784795232117176,
-0.07085289061069489,
-0.07146356999874115,
0.08158281445503235,
-0.009657323360443115,
-0.0586298331618309,
-0.03960961848497391,
-0.02083413489162922,
-0.032076213508844376,
-0.02478174865245819,
0.02447352185845375,
0.007903635501861572,
-0.022791242226958275,
-0.030132388696074486,
-0.062044091522693634,
-0.011244971305131912,
0.013604712672531605,
-0.07604330778121948,
-0.03953375294804573,
0.022739430889487267,
-0.027394574135541916,
0.023226743564009666,
-0.01591692678630352,
-0.04511234164237976,
-0.04825851693749428,
-0.058815740048885345,
-0.00852356106042862,
0.05425507202744484,
0.09672126173973083,
0.06310294568538666,
-0.06087326258420944,
-0.02152230776846409,
-0.06698082387447357,
-0.06343693286180496,
-0.02815927565097809,
-6.131427454647564e-8,
-0.02682456746697426,
-0.013741685077548027,
-0.0698554515838623,
0.04491069167852402,
0.04155486449599266,
-0.0014229706721380353,
0.018313953652977943,
0.015528609044849873,
-0.02130100689828396,
0.0721096470952034,
0.011495312675833702,
0.0714394673705101,
-0.090071901679039,
0.020341843366622925,
-0.018978966400027275,
0.07342811673879623,
-0.006178324576467276,
-0.015019484795629978,
0.014486453495919704,
-0.0213305726647377,
-0.02644418738782406,
-0.03726137802004814,
0.011906512081623077,
0.02934533730149269,
-0.14515256881713867,
-0.05968897417187691,
0.026686416938900948,
-0.013453198596835136,
-0.08396274596452713,
-0.0019798888824880123,
-0.0888320803642273,
0.0001568998268339783,
0.010764341801404953,
0.013787409290671349,
-0.11249098926782608,
0.09677305817604065,
-0.09759830683469772,
0.043031591922044754,
0.03999165818095207,
-0.040357694029808044,
0.02610587328672409,
0.013680223375558853,
0.04268692806363106,
-0.09345640242099762,
-0.021657096222043037,
0.07819120585918427,
-0.10045237839221954,
0.08954004943370819,
-0.002390025183558464,
0.05717335641384125,
-0.04673751816153526,
-0.008540195412933826,
0.041127197444438934,
0.01493122335523367,
0.04758112505078316,
0.00791142974048853,
0.057438693940639496,
-0.16685043275356293,
-0.0018663902301341295,
-0.00408630957826972,
0.04134600982069969,
0.03235986456274986,
0.04383957013487816,
-0.053038761019706726
] | 0.035981 |
# Health Checks on macOS How to see whether the linked channel is healthy from the menu bar app. ## Menu bar - Status dot now reflects Baileys health: - Green: linked + socket opened recently. - Orange: connecting/retrying. - Red: logged out or probe failed. - Secondary line reads "linked · auth 12m" or shows the failure reason. - "Run Health Check" menu item triggers an on-demand probe. ## Settings - General tab gains a Health card showing: linked auth age, session-store path/count, last check time, last error/status code, and buttons for Run Health Check / Reveal Logs. - Uses a cached snapshot so the UI loads instantly and falls back gracefully when offline. - \*\*Channels tab\*\* surfaces channel status + controls for WhatsApp/Telegram (login QR, logout, probe, last disconnect/error). ## How the probe works - App runs `openclaw health --json` via `ShellExecutor` every ~60s and on demand. The probe loads creds and reports status without sending messages. - Cache the last good snapshot and the last error separately to avoid flicker; show the timestamp of each. ## When in doubt - You can still use the CLI flow in [Gateway health](/gateway/health) (`openclaw status`, `openclaw status --deep`, `openclaw health --json`) and tail `/tmp/openclaw/openclaw-\*.log` for `web-heartbeat` / `web-reconnect`. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/health.md | main | opebclaw | [
-0.014649374410510063,
0.026660330593585968,
-0.038215622305870056,
0.012376360595226288,
0.027239523828029633,
-0.0785766988992691,
0.046028319746255875,
0.017238307744264603,
0.02175821177661419,
0.0508527010679245,
0.04551244527101517,
-0.008580435998737812,
-0.0037976952735334635,
0.06335398554801941,
0.04371240362524986,
-0.022048821672797203,
0.09293612092733383,
-0.15167956054210663,
-0.047809749841690063,
0.06680575758218765,
0.001148790237493813,
0.054358478635549545,
0.02252030558884144,
0.042038384824991226,
-0.04786490648984909,
-0.06584944576025009,
-0.015182984061539173,
-0.04905816540122032,
-0.043398983776569366,
0.03818492963910103,
0.002733794040977955,
-0.0050479089841246605,
-0.06877505034208298,
-0.0006054844707250595,
0.023831484839320183,
0.01262747310101986,
0.07571110129356384,
-0.006542467046529055,
-0.09516840428113937,
-0.007633769419044256,
-0.04674077779054642,
-0.055345941334962845,
-0.04589831456542015,
0.003626142628490925,
0.09779719263315201,
-0.045950744301080704,
-0.047796089202165604,
-0.014587998390197754,
-0.010423378087580204,
0.01509533915668726,
-0.030759500339627266,
0.0035955130588263273,
0.08122127503156662,
0.056346457451581955,
0.05936020240187645,
0.08865363150835037,
-0.10051299631595612,
-0.017123809084296227,
-0.04397156462073326,
0.015007378533482552,
-0.017612125724554062,
-0.0402698777616024,
0.006812827195972204,
0.005824340041726828,
-0.005725118797272444,
0.05261160060763359,
0.009058315306901932,
-0.01785542070865631,
0.0374101884663105,
-0.04541897773742676,
-0.034667111933231354,
-0.07640014588832855,
0.03479404002428055,
0.00019484000222291797,
0.03403645008802414,
0.02171478234231472,
0.00013692535867448896,
-0.053429827094078064,
-0.07180747389793396,
-0.1174795925617218,
-0.05234209820628166,
-0.027890337631106377,
-0.05283324792981148,
0.08852735161781311,
0.023659275844693184,
0.08612764626741409,
0.04751264676451683,
-0.011002234183251858,
-0.04685213789343834,
0.05514150857925415,
0.048952508717775345,
0.0073577631264925,
-0.06186318397521973,
0.007356452755630016,
0.06366825103759766,
-0.01668386161327362,
-0.03508643060922623,
0.04509412869811058,
-0.021729618310928345,
0.03266804665327072,
-0.00683438777923584,
-0.033424779772758484,
0.04563242197036743,
0.027635902166366577,
0.028281686827540398,
0.005292767658829689,
0.03555697202682495,
0.029316524043679237,
0.09604573249816895,
0.023525569587945938,
0.050694238394498825,
0.010164948180317879,
0.03295892849564552,
0.018935775384306908,
0.028469035401940346,
0.021173981949687004,
-0.0068475245498120785,
-0.0015217794571071863,
0.044819965958595276,
0.02932276576757431,
0.15102581679821014,
-0.06153460219502449,
-0.013386910781264305,
-0.015586053021252155,
0.02794870175421238,
0.08453003317117691,
0.08702594041824341,
5.5192108306815595e-33,
0.060512907803058624,
-0.0017091570189222693,
0.01594672165811062,
0.038371168076992035,
0.03407567739486694,
-0.022768018767237663,
-0.02456989698112011,
-0.009253976866602898,
-0.009125463664531708,
0.019651610404253006,
-0.103096604347229,
0.06511735916137695,
-0.0315471850335598,
-0.034052424132823944,
-0.02290528453886509,
-0.03134666010737419,
-0.021664785221219063,
0.005041550844907761,
0.018736351281404495,
0.023207996040582657,
0.050124067813158035,
-0.08350934833288193,
-0.01920483075082302,
-0.0032377878669649363,
0.05493756756186485,
0.1468895673751831,
0.025718774646520615,
0.00043414902756921947,
-0.02476918138563633,
0.0147392638027668,
-0.02858387492597103,
0.0022354659158736467,
-0.027987515553832054,
-0.08001155406236649,
-0.01264071837067604,
-0.039256952702999115,
-0.042360883206129074,
0.036598291248083115,
-0.048480309545993805,
-0.043099042028188705,
-0.012652297504246235,
-0.02665981650352478,
-0.022536220028996468,
0.0060237678699195385,
0.060393739491701126,
-0.1127166897058487,
-0.04065508395433426,
0.009900380857288837,
-0.03076476976275444,
0.04064163193106651,
-0.04292377829551697,
-0.047298990190029144,
0.014588892459869385,
-0.004574340768158436,
-0.05089837685227394,
-0.0031065482180565596,
-0.03347587212920189,
-0.02020605467259884,
-0.04298214986920357,
0.04003874957561493,
0.04723078012466431,
-0.004772927612066269,
-0.023734167218208313,
-0.07465515285730362,
0.014828263781964779,
0.05497723072767258,
-0.030156567692756653,
-0.06167610362172127,
-0.0649510994553566,
0.012807639315724373,
-0.07439497113227844,
0.09518885612487793,
0.022189445793628693,
0.020258786156773567,
-0.07319208234548569,
-0.0055612786673009396,
-0.061640966683626175,
0.02593965455889702,
-0.0752723440527916,
0.0047520361840724945,
0.0841246172785759,
-0.008535806089639664,
-0.020811831578612328,
0.06613149493932724,
0.03392038866877556,
0.005443524569272995,
0.04671120643615723,
-0.10787928104400635,
-0.15327642858028412,
0.0697382465004921,
-0.03324643895030022,
0.0882481262087822,
0.0693456307053566,
0.030615855008363724,
-0.03348301723599434,
-6.88156433490445e-33,
0.018669134005904198,
-0.04662549868226051,
0.03999297693371773,
0.02472641132771969,
0.007009018212556839,
-0.06733212620019913,
-0.020492231473326683,
0.029360398650169373,
0.013549507595598698,
-0.012543137185275555,
0.04853867366909981,
-0.015372841618955135,
-0.023712556809186935,
-0.03817802667617798,
0.011242561973631382,
0.10958448797464371,
-0.04280020296573639,
-0.0636245533823967,
-0.031015828251838684,
0.015047409571707249,
0.022372009232640266,
0.08055216819047928,
-0.019560126587748528,
0.011420455761253834,
-0.014026147313416004,
0.02505462057888508,
0.07746157795190811,
0.013230524025857449,
0.034599434584379196,
-0.11429493874311447,
0.07015261799097061,
0.00982233788818121,
-0.010142854414880276,
0.017727971076965332,
0.0135350301861763,
0.048575446009635925,
0.03256097808480263,
0.03342146426439285,
-0.018470393493771553,
0.0045058452524244785,
0.1575274020433426,
0.017403118312358856,
-0.06845035403966904,
0.002333584940060973,
-0.02954900451004505,
0.11267048865556717,
-0.07758219540119171,
-0.011537625454366207,
-0.1610693782567978,
0.01136158499866724,
0.1544107049703598,
-0.05223667994141579,
0.058697283267974854,
0.09293185919523239,
-0.01461524423211813,
0.008656680583953857,
-0.011707387864589691,
-0.02188529446721077,
-0.09641315788030624,
-0.09898132085800171,
0.045372407883405685,
-0.12780824303627014,
-0.045609310269355774,
0.036594461649656296,
-0.02206810936331749,
-0.06081903353333473,
0.050728607922792435,
-0.01805168017745018,
0.006671510171145201,
-0.012922572903335094,
0.005755480844527483,
-0.09414713084697723,
-0.057526346296072006,
-0.09776108711957932,
0.021687733009457588,
0.035943105816841125,
-0.13088251650333405,
-0.1781616359949112,
-0.05496596544981003,
0.060157421976327896,
-0.05497543886303902,
-0.008480341173708439,
0.024314837530255318,
-0.02681363746523857,
0.03005400486290455,
0.028024153783917427,
-0.02049238607287407,
0.09609810262918472,
0.014638256281614304,
0.055651187896728516,
-0.05482767894864082,
0.003112885169684887,
-0.06070462986826897,
0.017777975648641586,
-0.05600511282682419,
-5.2926392157814917e-8,
0.008787368424236774,
-0.05629860237240791,
-0.028883928433060646,
-0.021464165300130844,
-0.03441305458545685,
-0.02902870997786522,
0.012969907373189926,
0.007497025653719902,
-0.011376902461051941,
0.0033801996614784002,
0.003888526000082493,
0.02655591256916523,
-0.06978369504213333,
-0.024566248059272766,
0.04512716084718704,
0.012205717153847218,
-0.09572181850671768,
-0.010659893043339252,
-0.015019743703305721,
-0.0625648945569992,
-0.029726078733801842,
-0.016366170719265938,
-0.01661202311515808,
0.04326876625418663,
-0.03188607096672058,
0.018872424960136414,
0.05952893942594528,
0.051326435059309006,
-0.02452203258872032,
-0.05903811752796173,
-0.025852324441075325,
-0.0108036445453763,
0.024979673326015472,
-0.013029688037931919,
-0.07227972894906998,
0.025113364681601524,
0.005195544101297855,
-0.029459718614816666,
0.0231583621352911,
0.05504058301448822,
0.042749181389808655,
-0.007265452295541763,
-0.05400681123137474,
0.012795420363545418,
-0.04172810912132263,
-0.07474751770496368,
-0.012168480083346367,
0.05913757160305977,
0.005241580307483673,
-0.03685199096798897,
0.038368433713912964,
-0.016492070630192757,
0.05446264520287514,
0.016356099396944046,
-0.06974941492080688,
-0.006556896027177572,
0.09904038906097412,
-0.04413912445306778,
0.04152674600481987,
0.033216770738363266,
0.09116673469543457,
0.005449162796139717,
-0.029354818165302277,
-0.0032547509763389826
] | 0.129415 |
# Remote OpenClaw (macOS ⇄ remote host) This flow lets the macOS app act as a full remote control for a OpenClaw gateway running on another host (desktop/server). It’s the app’s \*\*Remote over SSH\*\* (remote run) feature. All features—health checks, Voice Wake forwarding, and Web Chat—reuse the same remote SSH configuration from \_Settings → General\_. ## Modes - \*\*Local (this Mac)\*\*: Everything runs on the laptop. No SSH involved. - \*\*Remote over SSH (default)\*\*: OpenClaw commands are executed on the remote host. The mac app opens an SSH connection with `-o BatchMode` plus your chosen identity/key and a local port-forward. - \*\*Remote direct (ws/wss)\*\*: No SSH tunnel. The mac app connects to the gateway URL directly (for example, via Tailscale Serve or a public HTTPS reverse proxy). ## Remote transports Remote mode supports two transports: - \*\*SSH tunnel\*\* (default): Uses `ssh -N -L ...` to forward the gateway port to localhost. The gateway will see the node’s IP as `127.0.0.1` because the tunnel is loopback. - \*\*Direct (ws/wss)\*\*: Connects straight to the gateway URL. The gateway sees the real client IP. ## Prereqs on the remote host 1. Install Node + pnpm and build/install the OpenClaw CLI (`pnpm install && pnpm build && pnpm link --global`). 2. Ensure `openclaw` is on PATH for non-interactive shells (symlink into `/usr/local/bin` or `/opt/homebrew/bin` if needed). 3. Open SSH with key auth. We recommend \*\*Tailscale\*\* IPs for stable reachability off-LAN. ## macOS app setup 1. Open \_Settings → General\_. 2. Under \*\*OpenClaw runs\*\*, pick \*\*Remote over SSH\*\* and set: - \*\*Transport\*\*: \*\*SSH tunnel\*\* or \*\*Direct (ws/wss)\*\*. - \*\*SSH target\*\*: `user@host` (optional `:port`). - If the gateway is on the same LAN and advertises Bonjour, pick it from the discovered list to auto-fill this field. - \*\*Gateway URL\*\* (Direct only): `wss://gateway.example.ts.net` (or `ws://...` for local/LAN). - \*\*Identity file\*\* (advanced): path to your key. - \*\*Project root\*\* (advanced): remote checkout path used for commands. - \*\*CLI path\*\* (advanced): optional path to a runnable `openclaw` entrypoint/binary (auto-filled when advertised). 3. Hit \*\*Test remote\*\*. Success indicates the remote `openclaw status --json` runs correctly. Failures usually mean PATH/CLI issues; exit 127 means the CLI isn’t found remotely. 4. Health checks and Web Chat will now run through this SSH tunnel automatically. ## Web Chat - \*\*SSH tunnel\*\*: Web Chat connects to the gateway over the forwarded WebSocket control port (default 18789). - \*\*Direct (ws/wss)\*\*: Web Chat connects straight to the configured gateway URL. - There is no separate WebChat HTTP server anymore. ## Permissions - The remote host needs the same TCC approvals as local (Automation, Accessibility, Screen Recording, Microphone, Speech Recognition, Notifications). Run onboarding on that machine to grant them once. - Nodes advertise their permission state via `node.list` / `node.describe` so agents know what’s available. ## Security notes - Prefer loopback binds on the remote host and connect via SSH or Tailscale. - If you bind the Gateway to a non-loopback interface, require token/password auth. - See [Security](/gateway/security) and [Tailscale](/gateway/tailscale). ## WhatsApp login flow (remote) - Run `openclaw channels login --verbose` \*\*on the remote host\*\*. Scan the QR with WhatsApp on your phone. - Re-run login on that host if auth expires. Health check will surface link problems. ## Troubleshooting - \*\*exit 127 / not found\*\*: `openclaw` isn’t on PATH for non-login shells. Add it to `/etc/paths`, your shell rc, or symlink into `/usr/local/bin`/`/opt/homebrew/bin`. - \*\*Health probe failed\*\*: check SSH reachability, PATH, and that Baileys is logged in (`openclaw status --json`). - \*\*Web Chat stuck\*\*: confirm the gateway is running on the remote host and the forwarded port matches the gateway WS port; the UI requires a | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/remote.md | main | opebclaw | [
-0.028768114745616913,
-0.017643284052610397,
-0.04511058330535889,
0.01188688725233078,
-0.025524117052555084,
-0.07697822898626328,
-0.07025761157274246,
0.01109063159674406,
0.031235206872224808,
0.020742466673254967,
0.03586108982563019,
-0.0009964151540771127,
0.02872822806239128,
-0.009024174883961678,
0.10462960600852966,
0.08544757217168808,
0.1016354039311409,
-0.07710059732198715,
0.028652803972363472,
0.02268660068511963,
0.005648615304380655,
-0.0002880403771996498,
0.014618659391999245,
-0.019166704267263412,
-0.051491234451532364,
-0.06200274080038071,
0.07131749391555786,
-0.04613068699836731,
-0.04135814681649208,
0.031250935047864914,
-0.003403786337003112,
0.013071956112980843,
-0.06767082214355469,
0.033998530358076096,
-0.005788064561784267,
-0.004180985037237406,
0.14199790358543396,
0.05581693723797798,
-0.1305365115404129,
-0.02974843978881836,
0.06218484416604042,
-0.07633823156356812,
0.060713909566402435,
0.036888640373945236,
-0.03624412789940834,
-0.0420600026845932,
-0.033209215849637985,
-0.07324793934822083,
0.005565193016082048,
-0.01068789791315794,
-0.08582742512226105,
-0.04390886425971985,
0.0007728810887783766,
0.08335507661104202,
0.004197529051452875,
0.03307818993926048,
0.014554254710674286,
-0.008696548640727997,
0.05683787539601326,
-0.004611075855791569,
0.011026529595255852,
-0.042330995202064514,
-0.03494846820831299,
0.05436202511191368,
-0.09257820248603821,
-0.07546061277389526,
-0.02596091665327549,
-0.03417758643627167,
-0.01967906579375267,
-0.03610225021839142,
0.013727232813835144,
-0.012187808752059937,
-0.014160346239805222,
-0.045550622045993805,
-0.0856071263551712,
-0.06345854699611664,
0.06638513505458832,
-0.047570593655109406,
-0.06892777234315872,
-0.031709592789411545,
-0.009617676958441734,
0.005491608288139105,
-0.09706026315689087,
0.042042262852191925,
-0.03821239247918129,
0.08046337217092514,
-0.007937747985124588,
0.0046829767525196075,
0.0639585331082344,
0.10619127005338669,
-0.012094506062567234,
-0.08774518966674805,
-0.07041975855827332,
-0.03290247172117233,
0.02419126220047474,
-0.05853242427110672,
0.012155476026237011,
-0.004034151788800955,
-0.019859079271554947,
0.012843220494687557,
-0.0029657790437340736,
-0.04350428655743599,
0.007698262110352516,
-0.034752167761325836,
0.002092604525387287,
0.03843346983194351,
0.03734281659126282,
0.04498503729701042,
0.07900997251272202,
0.006540063768625259,
-0.03353756666183472,
-0.04040739685297012,
0.0844038650393486,
0.04415486007928848,
-0.05128643661737442,
0.053135912865400314,
0.020524363964796066,
-0.014342045411467552,
0.0381958894431591,
0.057480838149785995,
0.07199923694133759,
0.004440245684236288,
0.03619689494371414,
-0.001055823522619903,
0.07877860218286514,
0.038633059710264206,
0.0715063214302063,
7.956151311916276e-33,
0.037605565041303635,
-0.05467744916677475,
-0.0050768242217600346,
-0.014773574657738209,
0.14606840908527374,
-0.0018241133075207472,
0.06771672517061234,
-0.033175382763147354,
-0.06682471185922623,
0.045126140117645264,
-0.04869139939546585,
0.04149661958217621,
0.012611336074769497,
-0.022171994671225548,
-0.02483462169766426,
-0.02592255175113678,
-0.03225867822766304,
0.049002669751644135,
0.08449190109968185,
0.01444427203387022,
0.002053971402347088,
-0.02832009829580784,
0.04527591913938522,
-0.02231929823756218,
-0.00594109995290637,
-0.0050623053684830666,
0.0013289216440171003,
-0.030645301565527916,
-0.016532525420188904,
0.05493802949786186,
0.05221831798553467,
0.03806312009692192,
-0.09439117461442947,
-0.019086195155978203,
-0.06463591009378433,
-0.011967242695391178,
-0.08195263147354126,
-0.09740881621837616,
0.05534009262919426,
-0.012510648928582668,
-0.04507061094045639,
-0.03843062371015549,
-0.07655535638332367,
-0.01387364137917757,
-0.07098530977964401,
-0.13289356231689453,
-0.06832287460565567,
0.03753910958766937,
-0.0346999354660511,
0.0798005685210228,
-0.045248787850141525,
-0.005536031909286976,
0.023531530052423477,
0.004212434869259596,
-0.019073486328125,
-0.038809970021247864,
-0.008347706869244576,
-0.037547461688518524,
-0.00525855366140604,
0.025164542719721794,
-0.03759608045220375,
0.06376831233501434,
-0.04364090785384178,
-0.015793414786458015,
0.03662731871008873,
0.012357337400317192,
0.03970906138420105,
0.021389028057456017,
-0.038878314197063446,
0.0029031087178736925,
-0.04093129560351372,
0.047318026423454285,
-0.007533616852015257,
0.009645345620810986,
-0.015722762793302536,
0.00661378912627697,
0.021001001819968224,
0.07725760340690613,
0.08454141020774841,
-0.005953778512775898,
0.03305341303348541,
0.07869637757539749,
-0.04177919402718544,
0.07340878993272781,
-0.01809903047978878,
0.13570266962051392,
-0.045089974999427795,
-0.0512220561504364,
-0.03270706906914711,
0.0893530547618866,
-0.027865121141076088,
-0.047953203320503235,
0.013770504854619503,
0.009450385347008705,
-0.05062100291252136,
-9.750428827747292e-33,
0.004337712656706572,
-0.004528870806097984,
-0.03282070904970169,
0.007319311611354351,
0.011186545714735985,
0.01950090192258358,
0.003849249565973878,
-0.0337199829518795,
-0.0913659855723381,
-0.05834703892469406,
-0.06929773092269897,
0.05791613459587097,
0.045816048979759216,
-0.09766769409179688,
0.06644683331251144,
-0.057044196873903275,
0.013405870646238327,
-0.0163020770996809,
-0.06923428177833557,
-0.022153766825795174,
-0.014093573205173016,
0.026003418490290642,
-0.0007178299129009247,
0.02460744045674801,
0.007058511488139629,
-0.01753552444279194,
-0.005403474904596806,
0.06787101924419403,
-0.03869267553091049,
-0.04226139187812805,
0.0029387674294412136,
0.04115685820579529,
-0.0021249717101454735,
-0.04870612919330597,
0.013914606533944607,
0.07949214428663254,
-0.03272181749343872,
0.09373043477535248,
0.07815734297037125,
0.0000063760312514205,
0.09691782295703888,
-0.08341382443904877,
-0.058114342391490936,
0.01435167994350195,
-0.03213959559798241,
0.10449419170618057,
-0.1422538161277771,
0.00784396380186081,
-0.09290920197963715,
-0.023793188855051994,
-0.011645643040537834,
0.029989562928676605,
-0.020106066018342972,
0.06662028282880783,
0.03297356143593788,
0.047207217663526535,
-0.002695485483855009,
-0.026566386222839355,
-0.0133308544754982,
-0.041904088109731674,
0.06248990073800087,
-0.05958046019077301,
-0.014998499304056168,
0.04133627936244011,
-0.031887948513031006,
-0.012360087595880032,
-0.021666070446372032,
0.017943622544407845,
-0.009611907415091991,
-0.009274966083467007,
-0.029323624446988106,
-0.0074279895052313805,
0.043499696999788284,
-0.05086890235543251,
-0.034647781401872635,
-0.029496582224965096,
0.032572608441114426,
-0.11152798682451248,
-0.06417643278837204,
0.07485991716384888,
0.03347766771912575,
0.050867896527051926,
0.035989899188280106,
-0.02686045505106449,
0.010321671143174171,
0.020290780812501907,
-0.028291432186961174,
0.09073324501514435,
0.08307702839374542,
0.01800493896007538,
-0.08686497807502747,
0.009127839468419552,
-0.06473855674266815,
-0.028779925778508186,
0.04657415300607681,
-5.496252697412274e-8,
-0.046775832772254944,
-0.0918194055557251,
0.0173332616686821,
0.03707776218652725,
-0.11962756514549255,
0.024570109322667122,
-0.01393426489084959,
-0.023769283667206764,
-0.004487529397010803,
0.0474688857793808,
0.031632088124752045,
0.03859270364046097,
0.009417170658707619,
-0.021976813673973083,
-0.04415040835738182,
0.09526282548904419,
0.08858229964971542,
0.0019440273754298687,
0.06459701061248779,
0.0011098089162260294,
0.01867048628628254,
-0.0786442905664444,
0.0020727389492094517,
0.10386837273836136,
-0.0729246735572815,
0.027547387406229973,
-0.043041784316301346,
0.023659804835915565,
-0.12100934237241745,
-0.008081718347966671,
0.012560530565679073,
-0.05125969275832176,
-0.009640379808843136,
0.10058965533971786,
-0.04773883894085884,
0.0285868588835001,
-0.10661639273166656,
-0.013922343030571938,
-0.011187579482793808,
-0.006000855006277561,
-0.02616281248629093,
0.030526770278811455,
-0.0647832453250885,
-0.031426697969436646,
-0.06961813569068909,
0.05606196075677872,
-0.0602787509560585,
-0.007567450869828463,
-0.05749655142426491,
0.017893370240926743,
0.05070111155509949,
-0.013482265174388885,
0.01369232963770628,
0.058249134570360184,
0.04108152911067009,
0.10823772847652435,
0.02535351738333702,
-0.14183145761489868,
0.02500118501484394,
0.07145120203495026,
0.0588432215154171,
0.05809185653924942,
-0.011641147546470165,
-0.05874373018741608
] | 0.112133 |
your shell rc, or symlink into `/usr/local/bin`/`/opt/homebrew/bin`. - \*\*Health probe failed\*\*: check SSH reachability, PATH, and that Baileys is logged in (`openclaw status --json`). - \*\*Web Chat stuck\*\*: confirm the gateway is running on the remote host and the forwarded port matches the gateway WS port; the UI requires a healthy WS connection. - \*\*Node IP shows 127.0.0.1\*\*: expected with the SSH tunnel. Switch \*\*Transport\*\* to \*\*Direct (ws/wss)\*\* if you want the gateway to see the real client IP. - \*\*Voice Wake\*\*: trigger phrases are forwarded automatically in remote mode; no separate forwarder is needed. ## Notification sounds Pick sounds per notification from scripts with `openclaw` and `node.invoke`, e.g.: ```bash openclaw nodes notify --node --title "Ping" --body "Remote gateway ready" --sound Glass ``` There is no global “default sound” toggle in the app anymore; callers choose a sound (or none) per request. | https://github.com/openclaw/openclaw/blob/main//docs/platforms/mac/remote.md | main | opebclaw | [
0.024243896827101707,
0.0011791933793574572,
-0.0665346160531044,
0.03293578699231148,
0.02850615605711937,
-0.008751105517148972,
-0.019400715827941895,
-0.0500703863799572,
0.016292760148644447,
-0.029057618230581284,
-0.03646153584122658,
-0.07425040006637573,
-0.007909325882792473,
0.024985535070300102,
0.044370561838150024,
0.0693199634552002,
0.095986507833004,
-0.12241309881210327,
0.06725845485925674,
-0.009451854042708874,
-0.0875663161277771,
0.08154415339231491,
0.04014028236269951,
-0.009558429010212421,
-0.0008588504861108959,
-0.03891528397798538,
0.046832725405693054,
-0.005779734347015619,
-0.0453033447265625,
-0.003432262223213911,
0.043302856385707855,
-0.006441876292228699,
-0.07181042432785034,
-0.030949564650654793,
0.01581818424165249,
0.0562279149889946,
0.12678129971027374,
0.043656397610902786,
-0.05909062176942825,
0.05178075283765793,
0.06972713023424149,
-0.046097610145807266,
0.010743571445345879,
-0.01850801706314087,
-0.008993782103061676,
-0.003533173818141222,
-0.08070741593837738,
-0.02979518659412861,
0.019073031842708588,
0.009544825181365013,
-0.11232280731201172,
-0.042197998613119125,
0.06145799905061722,
0.061884406954050064,
0.064532071352005,
0.011262761428952217,
0.01214083656668663,
0.03314453735947609,
0.061785291880369186,
-0.009596236050128937,
-0.031979043036699295,
-0.005535647738724947,
0.017436133697628975,
0.00895062368363142,
-0.0535551942884922,
-0.030818816274404526,
-0.05709012225270271,
-0.023718370124697685,
-0.03007955104112625,
-0.017397485673427582,
0.013352827169001102,
0.006151795852929354,
-0.02093466930091381,
-0.028961727395653725,
-0.023708883672952652,
-0.009385479614138603,
0.07686225324869156,
-0.0392281748354435,
-0.03816940262913704,
0.0433187298476696,
-0.07352619618177414,
-0.023752951994538307,
-0.12568166851997375,
0.05263110622763634,
-0.03886087238788605,
0.10467865318059921,
-0.007782308850437403,
-0.009212586097419262,
-0.03043661080300808,
0.08165395259857178,
-0.026795372366905212,
-0.16502399742603302,
-0.06697697937488556,
0.025000158697366714,
0.03272544592618942,
0.004015324171632528,
0.012132029049098492,
-0.017168045043945312,
-0.030416427180171013,
0.03205306455492973,
-0.021112311631441116,
-0.023497162386775017,
0.03341612219810486,
0.018059905618429184,
-0.03223874047398567,
0.02698271907866001,
-0.017712628468871117,
0.12418016046285629,
0.035625528544187546,
-0.032926157116889954,
0.028130242601037025,
-0.07141029089689255,
0.1028825119137764,
0.059119198471307755,
0.02249925024807453,
0.03450285270810127,
0.023169491440057755,
-0.04236419498920441,
-0.013559495098888874,
0.031903304159641266,
0.07957065850496292,
0.00017225765623152256,
0.01988186128437519,
0.012866653501987457,
0.0866130143404007,
0.04688435420393944,
0.15545542538166046,
5.6470366577838675e-33,
0.09245902299880981,
-0.043152835220098495,
-0.03776318207383156,
0.03461169824004173,
0.1506911963224411,
-0.042174082249403,
0.005214638076722622,
0.014181126840412617,
-0.046304937452077866,
0.04335867986083031,
-0.0013313316740095615,
0.0384487509727478,
0.01258049439638853,
-0.08761342614889145,
-0.06687982380390167,
-0.03772421553730965,
0.012428177520632744,
0.019403701648116112,
0.04908343777060509,
-0.008430161513388157,
0.06054322421550751,
-0.1121562123298645,
0.022067194804549217,
0.05440434813499451,
-0.03825673460960388,
0.03160862252116203,
0.01769358105957508,
-0.014041033573448658,
0.007876178249716759,
0.016019733622670174,
0.07981091737747192,
0.03277040272951126,
-0.0013844601344317198,
-0.061097465455532074,
-0.09051259607076645,
-0.025911306962370872,
-0.03485104441642761,
-0.015056716278195381,
-0.02666255086660385,
-0.07066995650529861,
-0.015742216259241104,
0.0000600955136178527,
-0.04420435428619385,
0.011421039700508118,
0.016475334763526917,
-0.10477572679519653,
-0.09265022724866867,
0.020527858287096024,
0.01830356754362583,
0.07894252240657806,
-0.04154307022690773,
-0.010165936313569546,
0.03303990885615349,
0.05224910005927086,
0.010175637900829315,
0.015025513246655464,
-0.01084218081086874,
0.006704891100525856,
-0.0001694169477559626,
0.007876192219555378,
-0.021017400547862053,
0.0502997450530529,
-0.012227078899741173,
-0.05612734332680702,
0.13165336847305298,
0.005498395301401615,
-0.06784142553806305,
0.02604898251593113,
-0.03794730827212334,
-0.0057915509678423405,
-0.037827037274837494,
-0.0019267733441665769,
0.04632288217544556,
0.06906908750534058,
0.007654170505702496,
-0.026025548577308655,
-0.044070929288864136,
-0.01797880418598652,
0.051507387310266495,
-0.021416369825601578,
0.02611718326807022,
0.07931257039308548,
-0.0406842902302742,
0.06966464221477509,
0.03514152392745018,
0.04490724578499794,
0.000004121029633097351,
-0.06843293458223343,
-0.1113581657409668,
0.09240631759166718,
-0.03954170644283295,
0.033240266144275665,
0.033116329461336136,
-0.016611827537417412,
-0.06747652590274811,
-7.792583477051262e-33,
-0.029328571632504463,
0.04158404842019081,
-0.05317443236708641,
-0.006867384538054466,
0.046102531254291534,
-0.049204129725694656,
0.014561622403562069,
0.007024700287729502,
-0.05070643499493599,
0.006057185586541891,
0.03596312925219536,
0.07452835887670517,
0.01191630307585001,
-0.016511401161551476,
0.018580839037895203,
-0.050702035427093506,
0.004834782797843218,
-0.015838077291846275,
-0.017969122156500816,
0.030471080914139748,
0.011470785364508629,
0.03665921092033386,
-0.04559493809938431,
-0.02391817979514599,
-0.01738092117011547,
0.05214540660381317,
0.035378482192754745,
0.07203646749258041,
-0.06773892045021057,
-0.03128831461071968,
0.04617752507328987,
0.06856955587863922,
-0.040817711502313614,
0.008890458382666111,
0.029581522569060326,
0.04529101401567459,
-0.024836165830492973,
0.04086204618215561,
0.019590837880969048,
-0.06148150563240051,
0.08881589770317078,
-0.04167104884982109,
-0.14157754182815552,
-0.03182386979460716,
-0.01315031386911869,
0.11812449991703033,
-0.07680352032184601,
0.0015343964332714677,
-0.06896819919347763,
0.008173313923180103,
0.009306252934038639,
0.06333000957965851,
0.013418523594737053,
0.07725469022989273,
-0.004796255379915237,
0.04520712047815323,
-0.04417717084288597,
-0.04410943016409874,
-0.006309800781309605,
-0.07358741760253906,
-0.008177140727639198,
-0.020891981199383736,
-0.03955605626106262,
0.05122379958629608,
-0.05543312430381775,
-0.11285114288330078,
-0.02831653319299221,
0.032182253897190094,
0.08583555370569229,
-0.056370511651039124,
-0.04604592174291611,
0.0692044198513031,
0.07782191038131714,
-0.04272766038775444,
-0.019890347495675087,
-0.015082948841154575,
-0.07809694111347198,
-0.06738986819982529,
-0.048023104667663574,
0.058673880994319916,
0.0016311215003952384,
0.02626294456422329,
-0.033322419971227646,
-0.03657686710357666,
0.06297127157449722,
-0.0054924869909882545,
-0.01938634179532528,
0.06370943039655685,
0.07370614260435104,
0.03594296798110008,
-0.07410568743944168,
0.033003270626068115,
-0.042891331017017365,
-0.060574695467948914,
0.05555635690689087,
-6.159603316291395e-8,
-0.02989867515861988,
-0.06781528890132904,
-0.025058399885892868,
0.0199146568775177,
-0.019214509055018425,
0.011322814039885998,
-0.018457697704434395,
-0.047856125980615616,
-0.09369011223316193,
0.054143138229846954,
0.011404525488615036,
0.046824101358652115,
-0.021892663091421127,
0.030877036973834038,
-0.04377533122897148,
0.024735555052757263,
-0.02666063979268074,
-0.031362682580947876,
0.022245461121201515,
-0.04845818504691124,
0.04000607132911682,
-0.05998605117201805,
-0.006819009780883789,
0.08813664317131042,
-0.10029961168766022,
-0.025254372507333755,
-0.044262345880270004,
-0.07854944467544556,
-0.13141846656799316,
-0.04834667220711708,
-0.026374058797955513,
-0.010763286612927914,
-0.03569336608052254,
0.07944503426551819,
-0.08040893822908401,
-0.002054949291050434,
-0.045243676751852036,
0.011105263605713844,
-0.02012292854487896,
0.012277701869606972,
-0.019408293068408966,
0.033840909600257874,
-0.08149068057537079,
-0.05585495010018349,
-0.10254129022359848,
0.01923011988401413,
-0.028324535116553307,
0.07251830399036407,
-0.041095733642578125,
0.020588256418704987,
-0.0013487613759934902,
-0.04105132073163986,
0.023948723450303078,
-0.038576867431402206,
0.05504048243165016,
0.050310470163822174,
0.018292829394340515,
-0.11256173253059387,
-0.09632908552885056,
0.04634393751621246,
0.030879560858011246,
0.04031416401267052,
-0.017396098002791405,
-0.04822317883372307
] | -0.019831 |
# apply\_patch tool Apply file changes using a structured patch format. This is ideal for multi-file or multi-hunk edits where a single `edit` call would be brittle. The tool accepts a single `input` string that wraps one or more file operations: ``` \*\*\* Begin Patch \*\*\* Add File: path/to/file.txt +line 1 +line 2 \*\*\* Update File: src/app.ts @@ -old line +new line \*\*\* Delete File: obsolete.txt \*\*\* End Patch ``` ## Parameters - `input` (required): Full patch contents including `\*\*\* Begin Patch` and `\*\*\* End Patch`. ## Notes - Paths are resolved relative to the workspace root. - Use `\*\*\* Move to:` within an `\*\*\* Update File:` hunk to rename files. - `\*\*\* End of File` marks an EOF-only insert when needed. - Experimental and disabled by default. Enable with `tools.exec.applyPatch.enabled`. - OpenAI-only (including OpenAI Codex). Optionally gate by model via `tools.exec.applyPatch.allowModels`. - Config is only under `tools.exec`. ## Example ```json { "tool": "apply\_patch", "input": "\*\*\* Begin Patch\n\*\*\* Update File: src/index.ts\n@@\n-const foo = 1\n+const foo = 2\n\*\*\* End Patch" } ``` | https://github.com/openclaw/openclaw/blob/main//docs/tools/apply-patch.md | main | opebclaw | [
-0.1329997479915619,
0.006769191939383745,
0.020325053483247757,
-0.0077646831050515175,
-0.05747510492801666,
0.005854184273630381,
-0.012285764329135418,
0.051882851868867874,
-0.05505673959851265,
0.09972458332777023,
0.03668224439024925,
0.054248131811618805,
0.002727639628574252,
-0.06734068691730499,
0.07690320909023285,
0.08104785531759262,
-0.11246395856142044,
0.018998876214027405,
0.008901662193238735,
-0.0008709339308552444,
-0.012394963763654232,
0.04256877303123474,
0.020236292853951454,
0.018699917942285538,
0.05791962519288063,
0.047703880816698074,
-0.07500704377889633,
-0.0013824739726260304,
-0.08231839537620544,
0.0051205940544605255,
0.0029123991262167692,
0.09559483826160431,
-0.000018171345800510608,
0.011135905049741268,
0.07931701093912125,
0.07415743172168732,
-0.024976979941129684,
0.018070440739393234,
-0.0301227830350399,
0.004024337977170944,
0.007508323062211275,
-0.008307618089020252,
-0.008399948477745056,
-0.06510645151138306,
0.03284594044089317,
-0.09422620385885239,
-0.018198996782302856,
-0.08826922625303268,
-0.004074495285749435,
0.018295885995030403,
-0.03229428827762604,
-0.08888441324234009,
-0.026862965896725655,
-0.0022069760598242283,
0.058795586228370667,
-0.05573832988739014,
0.06622512638568878,
0.05662872642278671,
0.010286110453307629,
-0.05175771191716194,
0.08090003579854965,
-0.010850275866687298,
-0.023204339668154716,
-0.09200556576251984,
-0.019239911809563637,
0.014136362820863724,
-0.006108537316322327,
-0.017196020111441612,
-0.015502948313951492,
0.00005857249925611541,
-0.08562256395816803,
0.10131693631410599,
-0.014722977764904499,
-0.03935374692082405,
0.014339427463710308,
-0.029460178688168526,
-0.05978092551231384,
0.10354108363389969,
-0.02808976359665394,
-0.09701575338840485,
0.10739938914775848,
-0.034244734793901443,
0.07912814617156982,
-0.017775369808077812,
0.012283519841730595,
-0.015929903835058212,
0.01383984088897705,
-0.07298965007066727,
0.08283033967018127,
0.009531532414257526,
0.008839158341288567,
-0.033802516758441925,
0.05986316502094269,
-0.04921244829893112,
0.029894433915615082,
0.01843944936990738,
0.0008271064143627882,
0.0967913419008255,
-0.02121490240097046,
0.07091309130191803,
0.028555672615766525,
-0.03263982757925987,
-0.07650482654571533,
-0.011206054128706455,
0.08258221298456192,
0.06499234586954117,
0.004643852356821299,
-0.04132456332445145,
0.017887402325868607,
-0.09189159423112869,
-0.0014495517825707793,
-0.04694531112909317,
0.010240184143185616,
-0.07558093219995499,
-0.06316374242305756,
-0.04128982126712799,
0.029252363368868828,
0.00676391925662756,
-0.04545908421278,
0.08140631765127182,
0.08983905613422394,
0.041717592626810074,
-0.052726034075021744,
0.048100393265485764,
-0.03757062181830406,
0.011292854323983192,
0.04184751585125923,
1.4969323626996804e-33,
0.04026944935321808,
0.028510205447673798,
-0.04830817133188248,
0.08561379462480545,
0.06072639301419258,
-0.04676089435815811,
-0.022777248173952103,
-0.02305041067302227,
-0.05546904727816582,
-0.02053305134177208,
0.026368845254182816,
-0.04149654880166054,
-0.00372468214482069,
0.02950601652264595,
-0.07660277187824249,
-0.04627348110079765,
-0.00782744213938713,
0.023608585819602013,
0.040615182369947433,
0.06927274912595749,
0.01103756483644247,
-0.013581361621618271,
-0.06908923387527466,
-0.02493266575038433,
-0.0436495803296566,
-0.01401954423636198,
0.01544612180441618,
-0.05984044075012207,
0.05697670578956604,
-0.02247665822505951,
0.028299305588006973,
-0.03521846979856491,
0.109278604388237,
0.03260227292776108,
-0.10976889729499817,
-0.05737768113613129,
-0.016540508717298508,
-0.051112618297338486,
-0.027299096807837486,
-0.0709686428308487,
0.06992791593074799,
0.003587847575545311,
-0.026996523141860962,
-0.005369663704186678,
0.062410179525613785,
0.0035548543091863394,
-0.035458192229270935,
0.04658718779683113,
0.059086140245199203,
-0.1057436466217041,
0.04655373841524124,
0.09743759036064148,
-0.05239670351147652,
-0.005869826767593622,
-0.025069721043109894,
-0.000426915124990046,
-0.024566687643527985,
-0.047709330916404724,
-0.005518381949514151,
0.01960744336247444,
0.05571356415748596,
0.008271788246929646,
-0.039796147495508194,
0.05136267840862274,
0.006037516053766012,
-0.0007424445357173681,
0.07991482317447662,
0.014216791838407516,
0.00933089479804039,
0.027865974232554436,
-0.08096419274806976,
-0.019589226692914963,
-0.10005630552768707,
0.034191202372312546,
-0.028857773169875145,
-0.06949278712272644,
0.030653439462184906,
0.059368692338466644,
0.0025769879575818777,
-0.050283282995224,
-0.051916878670454025,
-0.04342721030116081,
-0.039930131286382675,
-0.05642420053482056,
0.03186437860131264,
-0.04561127349734306,
-0.025654826313257217,
-0.06148712337017059,
0.03423449397087097,
-0.10147728770971298,
0.029397841542959213,
-0.002011316129937768,
-0.012508835643529892,
-0.07393233478069305,
0.06012088060379028,
-3.397251407589368e-33,
0.06357892602682114,
0.02069673500955105,
-0.0288360808044672,
0.07509470731019974,
-0.049038294702768326,
0.03697020187973976,
-0.012944670394062996,
0.027779443189501762,
0.05291353166103363,
0.0400969423353672,
-0.04690795764327049,
0.02989925444126129,
-0.014376613311469555,
-0.13811101019382477,
-0.015695441514253616,
-0.007585547398775816,
-0.09872416406869888,
-0.006530161947011948,
-0.05510922521352768,
0.03179052099585533,
0.01601407863199711,
-0.01687007024884224,
0.0984538346529007,
0.07382778078317642,
0.04378041997551918,
-0.010647258721292019,
-0.01776755042374134,
-0.012878206558525562,
0.04791019856929779,
0.016955601051449776,
-0.04999491944909096,
0.005690482445061207,
-0.09266587346792221,
-0.01445487979799509,
0.009938433766365051,
0.020919915288686752,
0.06517326831817627,
-0.005491894669830799,
-0.03652738034725189,
0.04965628311038017,
0.04890543222427368,
-0.012247025966644287,
-0.015966910868883133,
0.05348261818289757,
0.0020138449035584927,
0.07247348129749298,
-0.019109085202217102,
0.0706757977604866,
-0.11598572134971619,
-0.04453742876648903,
0.041858747601509094,
-0.03536171466112137,
-0.014374137856066227,
-0.05215340852737427,
0.01931091770529747,
0.005102822557091713,
0.009991479106247425,
-0.07225662469863892,
-0.09350748360157013,
0.004243320785462856,
0.04900358244776726,
0.03359057381749153,
-0.023815695196390152,
-0.01366069819778204,
0.034184448421001434,
0.040217552334070206,
-0.015628118067979813,
-0.009498612023890018,
-0.04208358749747276,
0.006667150650173426,
0.046124979853630066,
-0.014917515218257904,
-0.05120813846588135,
-0.017650647088885307,
0.06487304717302322,
0.06821703910827637,
0.010629385709762573,
-0.06215626373887062,
-0.012853740714490414,
0.05778728798031807,
-0.03335687145590782,
-0.0008360712672583759,
0.03431013971567154,
0.02379780076444149,
-0.06450685858726501,
0.03911454230546951,
0.015032482333481312,
0.09469905495643616,
0.04726018011569977,
-0.003977559506893158,
-0.08883567154407501,
0.033023327589035034,
0.08810533583164215,
-0.01137168426066637,
-0.03120560757815838,
-4.891383653671255e-8,
0.021062424406409264,
-0.01017095148563385,
-0.1453552544116974,
-0.00757581414654851,
-0.024134455248713493,
-0.024205701425671577,
-0.08182584494352341,
0.004275457002222538,
0.027904264628887177,
-0.006130813620984554,
-0.002510910853743553,
0.011691069230437279,
-0.0453605018556118,
-0.039198193699121475,
-0.1004609763622284,
-0.006780495401471853,
0.004817602224647999,
0.08471386879682541,
-0.03505154326558113,
0.0358634851872921,
-0.01693008840084076,
0.08159643411636353,
0.053787875920534134,
0.010085252113640308,
0.06070239096879959,
-0.059022385627031326,
0.06632174551486969,
0.07611170411109924,
-0.036118049174547195,
0.02538333646953106,
0.06427887827157974,
-0.06929818540811539,
0.029305340722203255,
0.06234708055853844,
-0.01941678673028946,
-0.0643719807267189,
0.1224156990647316,
0.06245245411992073,
0.0376107320189476,
0.06690199673175812,
-0.035165295004844666,
0.04700532555580139,
-0.07649727165699005,
-0.030077343806624413,
-0.11020497977733612,
-0.07621781527996063,
-0.04354468360543251,
-0.06154646724462509,
-0.03947210684418678,
-0.05296022817492485,
0.04154690355062485,
0.11630770564079285,
-0.007605541963130236,
0.038328733295202255,
-0.03627108037471771,
0.08285794407129288,
0.0536157488822937,
-0.0026605387683957815,
0.037051282823085785,
-0.06982729583978653,
-0.022167053073644638,
-0.033906061202287674,
0.05406377092003822,
0.0147793497890234
] | 0.069719 |
# Slash commands Commands are handled by the Gateway. Most commands must be sent as a \*\*standalone\*\* message that starts with `/`. The host-only bash chat command uses `! ` (with `/bash ` as an alias). There are two related systems: - \*\*Commands\*\*: standalone `/...` messages. - \*\*Directives\*\*: `/think`, `/verbose`, `/reasoning`, `/elevated`, `/exec`, `/model`, `/queue`. - Directives are stripped from the message before the model sees it. - In normal chat messages (not directive-only), they are treated as “inline hints” and do \*\*not\*\* persist session settings. - In directive-only messages (the message contains only directives), they persist to the session and reply with an acknowledgement. - Directives are only applied for \*\*authorized senders\*\* (channel allowlists/pairing plus `commands.useAccessGroups`). Unauthorized senders see directives treated as plain text. There are also a few \*\*inline shortcuts\*\* (allowlisted/authorized senders only): `/help`, `/commands`, `/status`, `/whoami` (`/id`). They run immediately, are stripped before the model sees the message, and the remaining text continues through the normal flow. ## Config ```json5 { commands: { native: "auto", nativeSkills: "auto", text: true, bash: false, bashForegroundMs: 2000, config: false, debug: false, restart: false, useAccessGroups: true, }, } ``` - `commands.text` (default `true`) enables parsing `/...` in chat messages. - On surfaces without native commands (WhatsApp/WebChat/Signal/iMessage/Google Chat/MS Teams), text commands still work even if you set this to `false`. - `commands.native` (default `"auto"`) registers native commands. - Auto: on for Discord/Telegram; off for Slack (until you add slash commands); ignored for providers without native support. - Set `channels.discord.commands.native`, `channels.telegram.commands.native`, or `channels.slack.commands.native` to override per provider (bool or `"auto"`). - `false` clears previously registered commands on Discord/Telegram at startup. Slack commands are managed in the Slack app and are not removed automatically. - `commands.nativeSkills` (default `"auto"`) registers \*\*skill\*\* commands natively when supported. - Auto: on for Discord/Telegram; off for Slack (Slack requires creating a slash command per skill). - Set `channels.discord.commands.nativeSkills`, `channels.telegram.commands.nativeSkills`, or `channels.slack.commands.nativeSkills` to override per provider (bool or `"auto"`). - `commands.bash` (default `false`) enables `! ` to run host shell commands (`/bash ` is an alias; requires `tools.elevated` allowlists). - `commands.bashForegroundMs` (default `2000`) controls how long bash waits before switching to background mode (`0` backgrounds immediately). - `commands.config` (default `false`) enables `/config` (reads/writes `openclaw.json`). - `commands.debug` (default `false`) enables `/debug` (runtime-only overrides). - `commands.useAccessGroups` (default `true`) enforces allowlists/policies for commands. ## Command list Text + native (when enabled): - `/help` - `/commands` - `/skill [input]` (run a skill by name) - `/status` (show current status; includes provider usage/quota for the current model provider when available) - `/allowlist` (list/add/remove allowlist entries) - `/approve allow-once|allow-always|deny` (resolve exec approval prompts) - `/context [list|detail|json]` (explain “context”; `detail` shows per-file + per-tool + per-skill + system prompt size) - `/whoami` (show your sender id; alias: `/id`) - `/subagents list|stop|log|info|send` (inspect, stop, log, or message sub-agent runs for the current session) - `/config show|get|set|unset` (persist config to disk, owner-only; requires `commands.config: true`) - `/debug show|set|unset|reset` (runtime overrides, owner-only; requires `commands.debug: true`) - `/usage off|tokens|full|cost` (per-response usage footer or local cost summary) - `/tts off|always|inbound|tagged|status|provider|limit|summary|audio` (control TTS; see [/tts](/tts)) - Discord: native command is `/voice` (Discord reserves `/tts`); text `/tts` still works. - `/stop` - `/restart` - `/dock-telegram` (alias: `/dock\_telegram`) (switch replies to Telegram) - `/dock-discord` (alias: `/dock\_discord`) (switch replies to Discord) - `/dock-slack` (alias: `/dock\_slack`) (switch replies to Slack) - `/activation mention|always` (groups only) - `/send on|off|inherit` (owner-only) - `/reset` or `/new [model]` (optional model hint; remainder is passed through) - `/think ` (dynamic choices by model/provider; aliases: `/thinking`, `/t`) - `/verbose on|full|off` (alias: `/v`) - `/reasoning on|off|stream` (alias: `/reason`; when on, sends a separate message prefixed `Reasoning:`; `stream` = Telegram draft only) - `/elevated on|off|ask|full` (alias: | https://github.com/openclaw/openclaw/blob/main//docs/tools/slash-commands.md | main | opebclaw | [
-0.027017172425985336,
-0.033492203801870346,
0.026954134926199913,
0.06203128769993782,
-0.0005474337958730757,
-0.023141788318753242,
0.014049334451556206,
-0.0258585587143898,
0.10179713368415833,
0.04067306965589523,
0.06599504500627518,
-0.034051407128572464,
-0.01392110250890255,
0.07025062292814255,
0.05181845277547836,
0.04523303359746933,
0.07564844936132431,
-0.12646999955177307,
-0.04203696548938751,
-0.000008197333954740316,
-0.004240752197802067,
0.15110501646995544,
-0.021769259124994278,
0.027398018166422844,
-0.022183818742632866,
-0.06450694054365158,
-0.0457800067961216,
-0.014891873113811016,
0.04345091059803963,
-0.01936524361371994,
0.003024135483428836,
0.034395936876535416,
-0.006526394281536341,
0.05489669367671013,
-0.010965468361973763,
0.07085425406694412,
0.13792483508586884,
-0.04886535555124283,
-0.013153483159840107,
-0.05273037776350975,
0.020130259916186333,
-0.05915871262550354,
-0.05055954307317734,
-0.04705115780234337,
-0.032999105751514435,
-0.06066453829407692,
-0.030049899592995644,
-0.02327904663980007,
-0.07806799560785294,
0.008067966438829899,
-0.03401941433548927,
0.005559234879910946,
0.011671981774270535,
0.07880356162786484,
0.06490024924278259,
-0.007393123582005501,
-0.07242276519536972,
0.07503197342157364,
0.08906255662441254,
-0.009642659686505795,
-0.0938568189740181,
-0.011943807825446129,
-0.06178092211484909,
-0.020673999562859535,
-0.05720141902565956,
-0.07893803715705872,
-0.04586627334356308,
0.01486167497932911,
-0.04644211009144783,
0.05456605553627014,
-0.047539595514535904,
-0.0757376104593277,
-0.06815561652183533,
-0.03426074981689453,
0.001331794890575111,
0.07276193052530289,
-0.011787978000938892,
0.03214798495173454,
-0.0833195149898529,
-0.12042134255170822,
0.04454847425222397,
-0.00854884460568428,
0.00872235931456089,
0.026391969993710518,
-0.03947139158844948,
-0.011674950830638409,
-0.04961606115102768,
-0.004237789660692215,
0.08345927298069,
-0.015609566122293472,
0.025395777076482773,
-0.08138522505760193,
-0.006853092461824417,
0.07917706668376923,
-0.010003948584198952,
-0.01587779074907303,
-0.0030378650408238173,
0.024912958964705467,
-0.04356139153242111,
0.03384449705481529,
0.03748762980103493,
0.0410490520298481,
-0.03542421758174896,
-0.06819716095924377,
0.009487992152571678,
0.024547435343265533,
0.006230798549950123,
0.007546895183622837,
0.04654659703373909,
-0.020017074421048164,
-0.033000554889440536,
-0.014300604350864887,
-0.0123685821890831,
-0.07131253182888031,
0.06330114603042603,
-0.06092429161071777,
0.08306874334812164,
-0.023167256265878677,
0.04155057668685913,
0.06071970611810684,
-0.01990150287747383,
-0.08418969810009003,
0.04554460570216179,
0.040366798639297485,
0.06705548614263535,
0.018443875014781952,
-0.0009785050060600042,
-9.67564644854187e-34,
0.057020559906959534,
0.017977457493543625,
-0.08149223774671555,
0.07032947242259979,
0.10252073407173157,
0.04563535004854202,
0.01851462945342064,
0.04687260836362839,
-0.0010262876749038696,
0.022733552381396294,
-0.004451381042599678,
-0.05819781497120857,
0.04115445911884308,
0.0057968199253082275,
-0.009807522408664227,
0.03590162470936775,
0.054783836007118225,
-0.026747459545731544,
0.056743331253528595,
0.003781960578635335,
0.022240743041038513,
0.07846102118492126,
-0.02238464169204235,
0.09430540353059769,
0.032701171934604645,
0.06466126441955566,
0.02484378032386303,
-0.09033605456352234,
0.0019879748579114676,
0.033527620136737823,
0.008414657786488533,
0.02154955267906189,
0.025666074827313423,
0.004304202739149332,
0.0008807781850919127,
0.09176052361726761,
-0.011142523027956486,
-0.004752805456519127,
-0.01915036328136921,
-0.06489405781030655,
-0.035422440618276596,
-0.032242175191640854,
-0.10944311320781708,
-0.053676046431064606,
-0.06403983384370804,
-0.09189009666442871,
-0.07050070911645889,
-0.011425994336605072,
0.05202950909733772,
-0.0013161726528778672,
-0.04367678612470627,
0.02931090258061886,
0.09806791692972183,
-0.01123526319861412,
0.05433423072099686,
-0.06061214953660965,
-0.09709899127483368,
0.02136225998401642,
0.06983079761266708,
-0.00548918591812253,
-0.05046641454100609,
-0.014452392235398293,
-0.023729855194687843,
-0.011694952845573425,
0.04658577963709831,
-0.03652828931808472,
-0.11610881984233856,
0.0005130196223035455,
-0.0012252037413418293,
0.022921252995729446,
-0.05394672974944115,
0.0072921402752399445,
0.013779766857624054,
0.07314544171094894,
-0.05994559824466705,
-0.054319385439157486,
-0.05465599149465561,
0.02503049001097679,
0.1231086477637291,
0.001033973298035562,
-0.10564840584993362,
0.021983463317155838,
-0.014609667472541332,
0.017262298613786697,
0.03534863144159317,
-0.06365645676851273,
0.005113264545798302,
-0.012369976378977299,
0.0061636497266590595,
-0.03440147638320923,
0.03375796973705292,
0.010804670862853527,
-0.006372915580868721,
0.0021423958241939545,
-0.011108447797596455,
-2.88983678142945e-33,
0.0478706955909729,
0.156851127743721,
-0.1710342913866043,
0.03366360440850258,
-0.05880378186702728,
-0.06257624179124832,
0.06912489235401154,
-0.04142920300364494,
-0.011163116432726383,
-0.07946333289146423,
-0.022683795541524887,
0.10437612235546112,
-0.002475145272910595,
-0.050977498292922974,
0.08087483048439026,
-0.07634273171424866,
-0.03400934860110283,
-0.14083872735500336,
0.031943462789058685,
-0.004866419360041618,
0.004361458122730255,
0.0007138415821827948,
-0.0566127635538578,
0.06870585680007935,
-0.004239109344780445,
-0.027430441230535507,
0.002676283475011587,
0.048154592514038086,
-0.00452825240790844,
0.006270646583288908,
0.025646604597568512,
0.0531955361366272,
-0.04375315457582474,
-0.030208813026547432,
-0.0010106416884809732,
-0.04451828822493553,
-0.057419873774051666,
0.14285124838352203,
0.03332363814115524,
0.0028372325468808413,
0.10438866168260574,
0.011337519623339176,
-0.020302876830101013,
0.0363394170999527,
-0.018803901970386505,
0.0248071551322937,
0.0012298515066504478,
-0.11685258895158768,
-0.0571097657084465,
0.008673680946230888,
0.04975564405322075,
-0.0687292143702507,
-0.00033530069049447775,
0.026488332077860832,
-0.04272082820534706,
-0.016301799565553665,
-0.008439186029136181,
-0.00360508868470788,
-0.04372305050492287,
-0.01001537125557661,
0.013601139187812805,
-0.011488457210361958,
0.02003142423927784,
0.004101334605365992,
-0.009683634154498577,
-0.02890286035835743,
-0.05155434086918831,
-0.02351052314043045,
0.09067658334970474,
-0.05589784309267998,
0.04826422408223152,
-0.03951840102672577,
-0.03522259369492531,
0.025921236723661423,
0.046808965504169464,
-0.043224677443504333,
0.024882033467292786,
-0.08984704315662384,
-0.01377788744866848,
0.03916863724589348,
-0.025252001360058784,
-0.013105325400829315,
-0.03665609285235405,
0.012450086884200573,
0.006318261381238699,
-0.008618622086942196,
-0.055747006088495255,
0.14725297689437866,
-0.04234696924686432,
0.02721342071890831,
0.006085287779569626,
0.0010996703058481216,
0.0008232906111516058,
0.028896572068333626,
-0.010096481069922447,
-5.8214748577256614e-8,
-0.122305728495121,
-0.06051693111658096,
-0.021543992683291435,
0.012858609668910503,
0.029057802632451057,
0.00359907909296453,
-0.016058940440416336,
-0.03364914283156395,
0.056616995483636856,
0.00445015262812376,
0.0253827515989542,
-0.04010915383696556,
-0.03939485549926758,
-0.0851980596780777,
0.030794469639658928,
0.047385718673467636,
-0.042592473328113556,
-0.03844011202454567,
-0.045498911291360855,
0.007491717580705881,
-0.03641314059495926,
0.001939777284860611,
-0.06251382827758789,
0.07710279524326324,
-0.0258103646337986,
-0.0009632791625335813,
-0.02955952100455761,
0.04151755943894386,
-0.10501439869403839,
0.04359697923064232,
0.023803310468792915,
0.003631542669609189,
0.017303965985774994,
0.05460856109857559,
-0.08367343246936798,
0.02508660964667797,
-0.012925873510539532,
-0.044806983321905136,
0.0450277142226696,
-0.03405344858765602,
0.018419839441776276,
-0.05525210127234459,
-0.030317695811390877,
-0.06044301390647888,
0.016620656475424767,
0.03870851546525955,
0.009128004312515259,
-0.0396028496325016,
-0.00947133731096983,
0.0441608726978302,
-0.015546469017863274,
0.09184568375349045,
-0.017488576471805573,
0.09547742456197739,
0.020756134763360023,
-0.010408702306449413,
0.08294741809368134,
-0.041158080101013184,
0.04547959193587303,
-0.013236078433692455,
0.06386163085699081,
0.0046685985289514065,
0.024225132539868355,
-0.10241157561540604
] | 0.100451 |
(owner-only) - `/reset` or `/new [model]` (optional model hint; remainder is passed through) - `/think ` (dynamic choices by model/provider; aliases: `/thinking`, `/t`) - `/verbose on|full|off` (alias: `/v`) - `/reasoning on|off|stream` (alias: `/reason`; when on, sends a separate message prefixed `Reasoning:`; `stream` = Telegram draft only) - `/elevated on|off|ask|full` (alias: `/elev`; `full` skips exec approvals) - `/exec host= security= ask= node=` (send `/exec` to show current) - `/model ` (alias: `/models`; or `/` from `agents.defaults.models.\*.alias`) - `/queue ` (plus options like `debounce:2s cap:25 drop:summarize`; send `/queue` to see current settings) - `/bash ` (host-only; alias for `! `; requires `commands.bash: true` + `tools.elevated` allowlists) Text-only: - `/compact [instructions]` (see [/concepts/compaction](/concepts/compaction)) - `! ` (host-only; one at a time; use `!poll` + `!stop` for long-running jobs) - `!poll` (check output / status; accepts optional `sessionId`; `/bash poll` also works) - `!stop` (stop the running bash job; accepts optional `sessionId`; `/bash stop` also works) Notes: - Commands accept an optional `:` between the command and args (e.g. `/think: high`, `/send: on`, `/help:`). - `/new ` accepts a model alias, `provider/model`, or a provider name (fuzzy match); if no match, the text is treated as the message body. - For full provider usage breakdown, use `openclaw status --usage`. - `/allowlist add|remove` requires `commands.config=true` and honors channel `configWrites`. - `/usage` controls the per-response usage footer; `/usage cost` prints a local cost summary from OpenClaw session logs. - `/restart` is disabled by default; set `commands.restart: true` to enable it. - `/verbose` is meant for debugging and extra visibility; keep it \*\*off\*\* in normal use. - `/reasoning` (and `/verbose`) are risky in group settings: they may reveal internal reasoning or tool output you did not intend to expose. Prefer leaving them off, especially in group chats. - \*\*Fast path:\*\* command-only messages from allowlisted senders are handled immediately (bypass queue + model). - \*\*Group mention gating:\*\* command-only messages from allowlisted senders bypass mention requirements. - \*\*Inline shortcuts (allowlisted senders only):\*\* certain commands also work when embedded in a normal message and are stripped before the model sees the remaining text. - Example: `hey /status` triggers a status reply, and the remaining text continues through the normal flow. - Currently: `/help`, `/commands`, `/status`, `/whoami` (`/id`). - Unauthorized command-only messages are silently ignored, and inline `/...` tokens are treated as plain text. - \*\*Skill commands:\*\* `user-invocable` skills are exposed as slash commands. Names are sanitized to `a-z0-9\_` (max 32 chars); collisions get numeric suffixes (e.g. `\_2`). - `/skill [input]` runs a skill by name (useful when native command limits prevent per-skill commands). - By default, skill commands are forwarded to the model as a normal request. - Skills may optionally declare `command-dispatch: tool` to route the command directly to a tool (deterministic, no model). - Example: `/prose` (OpenProse plugin) — see [OpenProse](/prose). - \*\*Native command arguments:\*\* Discord uses autocomplete for dynamic options (and button menus when you omit required args). Telegram and Slack show a button menu when a command supports choices and you omit the arg. ## Usage surfaces (what shows where) - \*\*Provider usage/quota\*\* (example: “Claude 80% left”) shows up in `/status` for the current model provider when usage tracking is enabled. - \*\*Per-response tokens/cost\*\* is controlled by `/usage off|tokens|full` (appended to normal replies). - `/model status` is about \*\*models/auth/endpoints\*\*, not usage. ## Model selection (`/model`) `/model` is implemented as a directive. Examples: ``` /model /model list /model 3 /model openai/gpt-5.2 /model opus@anthropic:default /model status ``` Notes: - `/model` and `/model list` show a compact, numbered picker (model family + available providers). - `/model <#>` selects from that picker (and prefers the current provider when possible). - | https://github.com/openclaw/openclaw/blob/main//docs/tools/slash-commands.md | main | opebclaw | [
-0.025800876319408417,
-0.015414987690746784,
-0.011345787905156612,
0.010967066511511803,
0.009337903000414371,
-0.06897258013486862,
0.06671494245529175,
0.08831868320703506,
0.03669755905866623,
0.042636532336473465,
0.03272416815161705,
-0.08903148025274277,
0.048101820051670074,
0.024396264925599098,
0.05236348882317543,
0.05874988064169884,
0.07562797516584396,
-0.08381999284029007,
-0.014209347777068615,
-0.036565009504556656,
0.0448097325861454,
0.056456614285707474,
-0.008071817457675934,
0.020366860553622246,
-0.06122346222400665,
-0.10308906435966492,
-0.015645409002900124,
0.04854955896735191,
0.010329565033316612,
-0.06700462847948074,
0.0662163570523262,
0.043290890753269196,
-0.05111813545227051,
0.02579156681895256,
0.03521084412932396,
0.0837150514125824,
0.019151674583554268,
-0.08271612972021103,
0.012580354698002338,
-0.03316144645214081,
0.031249720603227615,
-0.06057818606495857,
-0.11926411092281342,
-0.042148858308792114,
-0.00964958406984806,
-0.061154384166002274,
-0.004294972866773605,
0.01420553121715784,
-0.04392535611987114,
0.03355484828352928,
-0.028606990352272987,
-0.0691479742527008,
-0.01911967247724533,
-0.009718715213239193,
0.04419269412755966,
0.04968244209885597,
-0.06874407082796097,
0.04562597721815109,
0.031610243022441864,
-0.05425552278757095,
-0.08085648715496063,
-0.010553085245192051,
-0.04227925091981888,
0.017523085698485374,
-0.0738237053155899,
0.013593534007668495,
-0.045068297535181046,
0.08061357587575912,
0.0265823882073164,
0.035735152661800385,
0.015474753454327583,
-0.0252031609416008,
-0.09321081638336182,
-0.07996214181184769,
-0.05572439357638359,
-0.01311786100268364,
0.06467574089765549,
0.055404290556907654,
-0.12880754470825195,
-0.07014749944210052,
-0.0971960797905922,
-0.04059826582670212,
-0.05975709110498428,
-0.020350078120827675,
-0.06063786521553993,
0.056407082825899124,
0.024741902947425842,
-0.015543357469141483,
0.14189967513084412,
-0.0005976608954370022,
0.019674627110362053,
-0.011048080399632454,
0.00532057648524642,
0.01615903712809086,
0.08240573108196259,
0.11431553214788437,
-0.02753787487745285,
0.0001953832688741386,
-0.049797531217336655,
0.10989183932542801,
-0.025737322866916656,
0.006972240284085274,
-0.013213004916906357,
-0.04920433461666107,
0.015819119289517403,
-0.011662639677524567,
0.01132170855998993,
0.01456872932612896,
-0.020568829029798508,
-0.04387043043971062,
-0.0703928992152214,
0.02425265684723854,
0.05487316474318504,
0.0051358286291360855,
0.03428179770708084,
0.06793595850467682,
0.051721055060625076,
0.027819544076919556,
0.020137017592787743,
-0.00788837019354105,
0.0933532565832138,
-0.014370494522154331,
0.02062598057091236,
0.0017365373205393553,
0.027523450553417206,
0.041622061282396317,
0.05476583540439606,
2.054568515630542e-33,
0.06579309701919556,
-0.01414888259023428,
-0.03689582273364067,
0.046873800456523895,
0.09489437192678452,
0.06637409329414368,
0.031477101147174835,
0.027666766196489334,
-0.12367238104343414,
0.0075544677674770355,
-0.04721194878220558,
-0.03137405589222908,
0.020266132429242134,
0.01625981368124485,
-0.0067514171823859215,
-0.015815401449799538,
0.03820357844233513,
-0.0025616115890443325,
0.06139082461595535,
0.0314103364944458,
0.08442308753728867,
-0.014775697141885757,
-0.1045786514878273,
0.06625902652740479,
-0.034892577677965164,
0.06345199793577194,
-0.029369600117206573,
-0.03930483013391495,
0.043536797165870667,
0.018505912274122238,
0.0012832926586270332,
0.03309754282236099,
-0.030635947361588478,
0.03706052899360657,
-0.0011660746531561017,
0.06811647117137909,
-0.0697418823838234,
0.031636882573366165,
-0.02524147555232048,
-0.10404232889413834,
0.030822303146123886,
-0.007474326994270086,
-0.06575991958379745,
-0.010722936131060123,
-0.03849145770072937,
-0.08439641445875168,
-0.09236814826726913,
-0.01830470561981201,
0.0619962103664875,
-0.016341203823685646,
0.07025374472141266,
-0.05303044989705086,
0.09110143780708313,
-0.018812119960784912,
0.0037700501270592213,
-0.04969797655940056,
-0.09852363169193268,
0.02025633677840233,
-0.008004383184015751,
0.019091609865427017,
-0.019719934090971947,
0.004764191340655088,
-0.013734384439885616,
0.019738933071494102,
0.07603346556425095,
0.04046385735273361,
-0.09037088602781296,
-0.030459735542535782,
0.1299199014902115,
-0.004639913327991962,
-0.08640214055776596,
0.02946903184056282,
0.0041021923534572124,
0.026321817189455032,
-0.045237697660923004,
-0.09802070260047913,
-0.06776750087738037,
-0.06930526345968246,
0.03351585194468498,
0.05522631108760834,
-0.03266925364732742,
-0.0219227634370327,
-0.06889658421278,
0.0007025281665846705,
0.10224539786577225,
-0.060826435685157776,
-0.01680918224155903,
-0.011351554654538631,
-0.03842485323548317,
0.013555414974689484,
-0.05446787178516388,
0.03387751802802086,
0.05000961199402809,
-0.03391055762767792,
-0.011132895015180111,
-4.493795149706615e-33,
0.02836015075445175,
-0.015208074823021889,
-0.06044934689998627,
0.02768220566213131,
0.011242949403822422,
-0.04357687756419182,
0.03449775278568268,
-0.02070481888949871,
-0.03021252155303955,
-0.04331658408045769,
-0.07732919603586197,
0.0245728250592947,
0.0032398237381130457,
-0.04624829813838005,
0.023223567754030228,
-0.07326146960258484,
-0.04640118032693863,
-0.15209688246250153,
-0.003050625789910555,
0.04963888227939606,
-0.09970635920763016,
0.019742051139473915,
-0.07565195858478546,
0.09008574485778809,
0.06185659021139145,
0.02081015706062317,
-0.03337256610393524,
0.10349824279546738,
-0.0300521869212389,
-0.06265899538993835,
-0.03663177043199539,
-0.03654250502586365,
-0.07235702872276306,
0.03103042207658291,
0.02751275524497032,
0.005124545190483332,
0.006207085680216551,
0.14903782308101654,
0.03882705047726631,
0.08178424090147018,
0.09584768861532211,
-0.046001579612493515,
-0.03804445266723633,
0.03567804768681526,
-0.035646747797727585,
0.05713620036840439,
-0.011432015337049961,
-0.00950988382101059,
-0.09161794185638428,
-0.0171602051705122,
0.012338205240666866,
-0.023604441434144974,
0.021825777366757393,
0.05472036078572273,
0.023032190278172493,
-0.03162136301398277,
0.04142678901553154,
-0.03539831563830376,
-0.003072291612625122,
0.017306899651885033,
0.08124055713415146,
-0.04922632873058319,
0.03788996487855911,
0.02208913490176201,
0.0013302234001457691,
-0.1223435327410698,
-0.024830183014273643,
0.0048541296273469925,
0.009476224891841412,
-0.01837608776986599,
0.06303386390209198,
-0.03809051960706711,
-0.0830276682972908,
-0.009759372100234032,
0.12398973107337952,
-0.07328047603368759,
-0.0829756036400795,
-0.06093604117631912,
0.011362655088305473,
0.04089846834540367,
-0.06417656689882278,
0.031161444261670113,
-0.018862606957554817,
0.04247426241636276,
-0.036923956125974655,
-0.010172088630497456,
0.021610649302601814,
0.08621842414140701,
0.009598372504115105,
0.033231593668460846,
-0.02096320129930973,
-0.041720569133758545,
0.029159458354115486,
0.043803103268146515,
-0.09230370819568634,
-5.308238471002369e-8,
-0.036599282175302505,
-0.04186555743217468,
0.017388205975294113,
0.056323349475860596,
0.028092660009860992,
0.005759529769420624,
-0.024929160252213478,
-0.058917220681905746,
0.03361852467060089,
-0.028064636513590813,
0.019460760056972504,
-0.033982228487730026,
-0.04994018375873566,
-0.025206642225384712,
0.03851227089762688,
-0.0344153456389904,
0.0074108559638261795,
0.013043944723904133,
-0.06491147726774216,
-0.0769476667046547,
-0.05934198573231697,
-0.0011788352858275175,
-0.09295561164617538,
0.019237488508224487,
0.0213776808232069,
-0.03990573436021805,
0.016320323571562767,
0.006276399828493595,
-0.02804730273783207,
0.060128528624773026,
0.01913963444530964,
-0.026213228702545166,
0.07594061642885208,
0.029403891414403915,
-0.05403287336230278,
0.01962951384484768,
-0.02217220328748226,
-0.022060595452785492,
0.022106636315584183,
0.011434625834226608,
0.04619288071990013,
0.028446830809116364,
-0.030078139156103134,
-0.030779685825109482,
-0.02324490062892437,
-0.017708664759993553,
0.06967712938785553,
-0.07988054305315018,
0.053680457174777985,
0.02980893664062023,
-0.017705682665109634,
0.03807428106665611,
-0.01709449663758278,
0.10393188893795013,
-0.029212597757577896,
0.030749486759305,
0.04588693007826805,
-0.059096500277519226,
0.021466484293341637,
-0.005962836090475321,
0.06247268244624138,
0.037966348230838776,
-0.013982458971440792,
0.015997525304555893
] | 0.143313 |
is implemented as a directive. Examples: ``` /model /model list /model 3 /model openai/gpt-5.2 /model opus@anthropic:default /model status ``` Notes: - `/model` and `/model list` show a compact, numbered picker (model family + available providers). - `/model <#>` selects from that picker (and prefers the current provider when possible). - `/model status` shows the detailed view, including configured provider endpoint (`baseUrl`) and API mode (`api`) when available. ## Debug overrides `/debug` lets you set \*\*runtime-only\*\* config overrides (memory, not disk). Owner-only. Disabled by default; enable with `commands.debug: true`. Examples: ``` /debug show /debug set messages.responsePrefix="[openclaw]" /debug set channels.whatsapp.allowFrom=["+1555","+4477"] /debug unset messages.responsePrefix /debug reset ``` Notes: - Overrides apply immediately to new config reads, but do \*\*not\*\* write to `openclaw.json`. - Use `/debug reset` to clear all overrides and return to the on-disk config. ## Config updates `/config` writes to your on-disk config (`openclaw.json`). Owner-only. Disabled by default; enable with `commands.config: true`. Examples: ``` /config show /config show messages.responsePrefix /config get messages.responsePrefix /config set messages.responsePrefix="[openclaw]" /config unset messages.responsePrefix ``` Notes: - Config is validated before write; invalid changes are rejected. - `/config` updates persist across restarts. ## Surface notes - \*\*Text commands\*\* run in the normal chat session (DMs share `main`, groups have their own session). - \*\*Native commands\*\* use isolated sessions: - Discord: `agent::discord:slash:` - Slack: `agent::slack:slash:` (prefix configurable via `channels.slack.slashCommand.sessionPrefix`) - Telegram: `telegram:slash:` (targets the chat session via `CommandTargetSessionKey`) - \*\*`/stop`\*\* targets the active chat session so it can abort the current run. - \*\*Slack:\*\* `channels.slack.slashCommand` is still supported for a single `/openclaw`-style command. If you enable `commands.native`, you must create one Slack slash command per built-in command (same names as `/help`). Command argument menus for Slack are delivered as ephemeral Block Kit buttons. | https://github.com/openclaw/openclaw/blob/main//docs/tools/slash-commands.md | main | opebclaw | [
-0.06843355298042297,
-0.029682781547307968,
-0.07103371620178223,
0.09441857784986496,
0.05600229650735855,
-0.02934378944337368,
-0.026831164956092834,
0.06393557041883469,
0.010030167177319527,
0.0420202799141407,
0.044135596603155136,
-0.01561854500323534,
-0.05511016771197319,
0.03963202238082886,
0.04171602800488472,
0.03460997715592384,
0.05540158972144127,
-0.056894995272159576,
0.018600856885313988,
0.00363149750046432,
0.0576946958899498,
0.06809546053409576,
-0.02610340155661106,
0.04821082577109337,
-0.015963342040777206,
-0.04947909712791443,
-0.0002849948941729963,
0.009648763574659824,
-0.00959918275475502,
-0.027492230758070946,
0.02140634134411812,
0.006667536683380604,
-0.015102693811058998,
0.034818705171346664,
0.018117152154445648,
0.053226083517074585,
0.018924042582511902,
-0.08372773975133896,
-0.04190349951386452,
-0.034981388598680496,
0.12808270752429962,
0.024737685918807983,
-0.08776019513607025,
-0.060950007289648056,
0.009924037382006645,
-0.10342515259981155,
-0.01946452632546425,
-0.024880433455109596,
-0.024920545518398285,
-0.03658563271164894,
-0.0035328182857483625,
0.012500176206231117,
0.02647988870739937,
-0.02141556888818741,
0.062039583921432495,
0.029670774936676025,
-0.06516064703464508,
0.0005259437020868063,
0.0018057259730994701,
0.02450142428278923,
0.006898786406964064,
-0.009758003056049347,
-0.11042780429124832,
-0.018388722091913223,
-0.051084838807582855,
0.06868066638708115,
0.01510693784803152,
-0.01551759522408247,
0.013478590175509453,
-0.049007244408130646,
-0.039839137345552444,
0.022643065080046654,
-0.033025823533535004,
-0.07290210574865341,
-0.02668694220483303,
0.049537304788827896,
-0.005016185808926821,
0.04725649207830429,
-0.04726390913128853,
-0.13442984223365784,
0.016594763845205307,
-0.011067474260926247,
0.031530920416116714,
0.05637597292661667,
0.016988743096590042,
0.058900266885757446,
0.047641899436712265,
0.014214292168617249,
0.10690534859895706,
0.020275535061955452,
-0.0321989469230175,
-0.04272982478141785,
-0.022341404110193253,
-0.01555003970861435,
-0.00442036148160696,
0.011377273127436638,
-0.053190331906080246,
-0.0002412181202089414,
-0.11312062293291092,
0.0626012310385704,
-0.012016727589070797,
-0.008271414786577225,
0.08573680371046066,
0.04390145465731621,
-0.031563375145196915,
-0.04261133819818497,
0.015646828338503838,
0.08197430521249771,
-0.013240479864180088,
-0.019421955570578575,
-0.005135958548635244,
-0.010355561040341854,
0.05323094502091408,
-0.06382078677415848,
0.035760391503572464,
0.030455509200692177,
-0.0454363077878952,
0.03872423619031906,
0.016089482232928276,
-0.032418251037597656,
0.07499365508556366,
-0.048095084726810455,
0.030452564358711243,
0.0040777018293738365,
0.018970614299178123,
0.08915119618177414,
0.0008429017034359276,
5.3544116654840596e-33,
0.1058189794421196,
0.019798194989562035,
0.0007223531720228493,
-0.01075619924813509,
0.05689968913793564,
0.0743839219212532,
0.02574940025806427,
0.014152703806757927,
0.03718864172697067,
-0.04042534902691841,
-0.000744611257687211,
0.04636659100651741,
-0.06177312508225441,
-0.04335396736860275,
0.03635832294821739,
0.07099555432796478,
-0.05393398180603981,
0.09490235894918442,
0.10027118027210236,
0.05489780008792877,
0.03506258502602577,
0.041572295129299164,
-0.07868636399507523,
-0.026022670790553093,
0.03739108890295029,
0.08862712234258652,
-0.025809714570641518,
-0.08095193654298782,
-0.07901384681463242,
0.02691323310136795,
0.040806256234645844,
-0.010760338976979256,
0.009294996969401836,
0.046484339982271194,
0.012432148680090904,
-0.013775480911135674,
-0.12024268507957458,
-0.016992492601275444,
-0.05653710290789604,
-0.046244509518146515,
0.006225197575986385,
-0.050480782985687256,
-0.10495076328516006,
-0.02760164439678192,
-0.04054179787635803,
-0.04583733156323433,
-0.09406508505344391,
0.02061609923839569,
0.04164916276931763,
0.013178565539419651,
-0.0034584335517138243,
0.021374335512518883,
-0.03633463382720947,
-0.0003179057384841144,
0.050814419984817505,
-0.026317264884710312,
-0.017526943236589432,
0.00402924744412303,
0.05866159871220589,
0.036734793335199356,
-0.02209910936653614,
-0.024278389289975166,
-0.05329623073339462,
0.00637298496440053,
-0.011127126403152943,
0.03648843243718147,
-0.10177730768918991,
-0.0583181157708168,
0.08484955132007599,
0.009604240767657757,
-0.07083776593208313,
0.017979906871914864,
0.01944028213620186,
0.08099944144487381,
-0.06866000592708588,
-0.07555799186229706,
-0.019126836210489273,
-0.01734485663473606,
0.013741783797740936,
0.0012219211785122752,
-0.030245626345276833,
-0.027914654463529587,
-0.003219303209334612,
0.036495912820100784,
0.004052684176713228,
-0.03219158202409744,
0.010021493770182133,
-0.005790557246655226,
-0.01998966746032238,
-0.020741678774356842,
-0.04788881540298462,
0.02021467685699463,
-0.03372849524021149,
0.010588671080768108,
-0.004998079966753721,
-5.4074867047916244e-33,
0.0551212877035141,
-0.05674395337700844,
0.00348787778057158,
0.04381801560521126,
-0.0776456743478775,
-0.08867347240447998,
0.02273988164961338,
0.07152717560529709,
0.047408491373062134,
-0.017343655228614807,
0.05797320604324341,
-0.023864436894655228,
0.040945954620838165,
-0.024117816239595413,
0.032534196972846985,
-0.02010192722082138,
-0.09508447349071503,
-0.1597278118133545,
-0.022182438522577286,
0.04874163120985031,
-0.06096331402659416,
0.018630163744091988,
0.023976808413863182,
0.0016244238940998912,
0.054024744778871536,
0.009989793412387371,
0.04344339668750763,
-0.01801222935318947,
0.0051304129883646965,
-0.14134210348129272,
0.04509393125772476,
0.05694909021258354,
-0.08030398190021515,
-0.009340675547719002,
-0.004689412657171488,
0.07827610522508621,
0.0328172966837883,
0.11755995452404022,
-0.0321677140891552,
0.08820793032646179,
0.10135804861783981,
-0.028616352006793022,
-0.04491116479039192,
0.0570390522480011,
-0.017944416031241417,
0.0050463201478123665,
0.023501195013523102,
-0.05113412067294121,
-0.0675610825419426,
-0.06474027037620544,
0.045162271708250046,
-0.07673671841621399,
0.034862928092479706,
0.0500071719288826,
-0.04467369243502617,
-0.021157927811145782,
0.14373119175434113,
-0.03537201136350632,
-0.04394296929240227,
-0.02805696800351143,
0.06940464675426483,
-0.0895410031080246,
0.022997485473752022,
0.03031458891928196,
-0.05517781898379326,
-0.09804648160934448,
0.019042866304516792,
0.01444143708795309,
0.047190792858600616,
-0.02936290204524994,
-0.10613171011209488,
-0.18091274797916412,
-0.016248110681772232,
0.02066790498793125,
0.04908106476068497,
0.016082456335425377,
-0.09283395111560822,
-0.08313140273094177,
0.0643099695444107,
0.041054509580135345,
-0.06191878765821457,
-0.04034474119544029,
0.015273195691406727,
-0.03765082731842995,
0.04729895666241646,
-0.05656971037387848,
0.017221588641405106,
0.13003534078598022,
0.03637571632862091,
0.06937844306230545,
-0.12226087599992752,
0.054952558130025864,
-0.02759687229990959,
0.07094421237707138,
-0.028173429891467094,
-5.918126788628797e-8,
-0.1034068688750267,
-0.07504529505968094,
-0.005051820073276758,
0.012064294889569283,
0.030324822291731834,
-0.023297609761357307,
0.058994803577661514,
0.04305216297507286,
0.015378945507109165,
0.012945945374667645,
-0.003133386606350541,
0.027324054390192032,
-0.08540336042642593,
-0.015971368178725243,
0.010380009189248085,
0.024604557082057,
0.05351709574460983,
0.057604335248470306,
-0.0380457267165184,
-0.06768263876438141,
-0.03852955996990204,
-0.018732015043497086,
0.0005938697140663862,
-0.036470718681812286,
-0.017330627888441086,
-0.09220510721206665,
-0.03438964858651161,
0.06874308735132217,
-0.021643664687871933,
0.05627121031284332,
0.027359506115317345,
0.010790623724460602,
0.054388005286455154,
0.0010092128068208694,
-0.0036830995231866837,
0.09476115554571152,
-0.011480798944830894,
0.005657153204083443,
0.07097694277763367,
0.028593234717845917,
0.029462255537509918,
0.04888628050684929,
-0.045705098658800125,
-0.00036761609953828156,
0.03300344571471214,
0.01933034509420395,
0.04451702535152435,
-0.029109826311469078,
0.03446495532989502,
0.018395142629742622,
-0.07721847295761108,
-0.0133798997849226,
0.0007228050380945206,
0.04455415531992912,
-0.05554165318608284,
0.027251075953245163,
0.03370102494955063,
-0.06386904418468475,
-0.006282535381615162,
0.029768863692879677,
-0.04090724140405655,
-0.0010447504464536905,
0.0371585451066494,
0.0671904906630516
] | 0.122495 |
# Lobster Lobster is a workflow shell that lets OpenClaw run multi-step tool sequences as a single, deterministic operation with explicit approval checkpoints. ## Hook Your assistant can build the tools that manage itself. Ask for a workflow, and 30 minutes later you have a CLI plus pipelines that run as one call. Lobster is the missing piece: deterministic pipelines, explicit approvals, and resumable state. ## Why Today, complex workflows require many back-and-forth tool calls. Each call costs tokens, and the LLM has to orchestrate every step. Lobster moves that orchestration into a typed runtime: - \*\*One call instead of many\*\*: OpenClaw runs one Lobster tool call and gets a structured result. - \*\*Approvals built in\*\*: Side effects (send email, post comment) halt the workflow until explicitly approved. - \*\*Resumable\*\*: Halted workflows return a token; approve and resume without re-running everything. ## Why a DSL instead of plain programs? Lobster is intentionally small. The goal is not "a new language," it's a predictable, AI-friendly pipeline spec with first-class approvals and resume tokens. - \*\*Approve/resume is built in\*\*: A normal program can prompt a human, but it can’t \_pause and resume\_ with a durable token without you inventing that runtime yourself. - \*\*Determinism + auditability\*\*: Pipelines are data, so they’re easy to log, diff, replay, and review. - \*\*Constrained surface for AI\*\*: A tiny grammar + JSON piping reduces “creative” code paths and makes validation realistic. - \*\*Safety policy baked in\*\*: Timeouts, output caps, sandbox checks, and allowlists are enforced by the runtime, not each script. - \*\*Still programmable\*\*: Each step can call any CLI or script. If you want JS/TS, generate `.lobster` files from code. ## How it works OpenClaw launches the local `lobster` CLI in \*\*tool mode\*\* and parses a JSON envelope from stdout. If the pipeline pauses for approval, the tool returns a `resumeToken` so you can continue later. ## Pattern: small CLI + JSON pipes + approvals Build tiny commands that speak JSON, then chain them into a single Lobster call. (Example command names below — swap in your own.) ```bash inbox list --json inbox categorize --json inbox apply --json ``` ```json { "action": "run", "pipeline": "exec --json --shell 'inbox list --json' | exec --stdin json --shell 'inbox categorize --json' | exec --stdin json --shell 'inbox apply --json' | approve --preview-from-stdin --limit 5 --prompt 'Apply changes?'", "timeoutMs": 30000 } ``` If the pipeline requests approval, resume with the token: ```json { "action": "resume", "token": "", "approve": true } ``` AI triggers the workflow; Lobster executes the steps. Approval gates keep side effects explicit and auditable. Example: map input items into tool calls: ```bash gog.gmail.search --query 'newer\_than:1d' \ | openclaw.invoke --tool message --action send --each --item-key message --args-json '{"provider":"telegram","to":"..."}' ``` ## JSON-only LLM steps (llm-task) For workflows that need a \*\*structured LLM step\*\*, enable the optional `llm-task` plugin tool and call it from Lobster. This keeps the workflow deterministic while still letting you classify/summarize/draft with a model. Enable the tool: ```json { "plugins": { "entries": { "llm-task": { "enabled": true } } }, "agents": { "list": [ { "id": "main", "tools": { "allow": ["llm-task"] } } ] } } ``` Use it in a pipeline: ```lobster openclaw.invoke --tool llm-task --action json --args-json '{ "prompt": "Given the input email, return intent and draft.", "input": { "subject": "Hello", "body": "Can you help?" }, "schema": { "type": "object", "properties": { "intent": { "type": "string" }, "draft": { "type": "string" } }, "required": ["intent", "draft"], "additionalProperties": false } }' ``` See [LLM Task](/tools/llm-task) for details and configuration options. ## Workflow files (.lobster) Lobster can run YAML/JSON workflow files with `name`, `args`, `steps`, | https://github.com/openclaw/openclaw/blob/main//docs/tools/lobster.md | main | opebclaw | [
-0.10077764838933945,
0.012391657568514347,
0.045450203120708466,
-0.03362901508808136,
-0.025316432118415833,
-0.1421503871679306,
-0.05046439543366432,
0.007775188889354467,
0.0772676169872284,
-0.05061311647295952,
-0.08015415817499161,
-0.051748160272836685,
0.006116059608757496,
-0.04501371830701828,
0.0028281062841415405,
0.05247660353779793,
0.08551627397537231,
-0.05858967453241348,
-0.08777137100696564,
-0.0003062812320422381,
0.04649544879794121,
0.054588913917541504,
-0.04189572483301163,
-0.008596949279308319,
-0.11804752796888351,
0.02984841726720333,
-0.029871152713894844,
-0.06916311383247375,
-0.03494253382086754,
0.004963886458426714,
-0.007388935424387455,
0.10135243833065033,
-0.0006616542232222855,
0.05638715252280235,
0.044792741537094116,
0.07812496274709702,
0.01946515217423439,
0.004220473580062389,
-0.04140118882060051,
0.062443312257528305,
-0.03470595180988312,
-0.033445823937654495,
-0.07026489824056625,
-0.02967785857617855,
-0.08530775457620621,
-0.10764501243829727,
-0.043427739292383194,
-0.09119164943695068,
-0.10117337107658386,
-0.029309069737792015,
-0.021288923919200897,
-0.05577820912003517,
-0.03675391152501106,
-0.026412678882479668,
0.03150239586830139,
-0.030729537829756737,
0.023555735126137733,
0.014312786981463432,
-0.03504662960767746,
-0.09124971181154251,
-0.025709746405482292,
-0.012676296755671501,
-0.052394188940525055,
0.05758040025830269,
-0.0091544846072793,
0.00799284502863884,
0.007774130441248417,
-0.03391614183783531,
0.010436199605464935,
-0.045701876282691956,
-0.06676453351974487,
-0.029555635526776314,
-0.06835901737213135,
0.03569316118955612,
0.026389656588435173,
-0.010250876657664776,
0.056279201060533524,
0.046089526265859604,
0.01921350322663784,
-0.09909112006425858,
-0.025612182915210724,
0.004002440720796585,
-0.05523624271154404,
0.0531126968562603,
0.053078874945640564,
0.15635624527931213,
-0.00015889049973338842,
0.013504723086953163,
0.0774427205324173,
0.04807126149535179,
0.010544643737375736,
-0.03690116107463837,
0.016355978325009346,
-0.04606598615646362,
0.06122567504644394,
-0.04616405442357063,
0.01619327813386917,
-0.04069766029715538,
-0.056281447410583496,
0.09343039989471436,
-0.033839114010334015,
0.014150845818221569,
0.09883567690849304,
-0.0724710002541542,
-0.024747608229517937,
-0.022089160978794098,
0.020169775933027267,
-0.005975572392344475,
-0.01055508479475975,
-0.026729658246040344,
-0.04158692806959152,
-0.05013502016663551,
0.1021495908498764,
-0.0025067005772143602,
-0.0035520123783499002,
0.05507535859942436,
-0.09617241472005844,
-0.032585643231868744,
0.06507226079702377,
0.03428925201296806,
0.028023138642311096,
0.011998288333415985,
-0.043266549706459045,
0.058933794498443604,
0.05851401388645172,
0.024003898724913597,
0.014340749010443687,
6.171262322528483e-33,
0.06707349419593811,
-0.05287386104464531,
-0.017412682995200157,
-0.0007427033851854503,
0.12289484590291977,
-0.029080670326948166,
0.03758973628282547,
0.04157392680644989,
-0.07384738326072693,
0.05720382183790207,
-0.03629270941019058,
0.04990366846323013,
-0.01741456799209118,
0.04965844005346298,
0.06181376054883003,
-0.07093504071235657,
0.030127057805657387,
0.02680283784866333,
0.028621027246117592,
0.006751063745468855,
0.06687600910663605,
-0.031176483258605003,
-0.008891361765563488,
-0.015460031107068062,
-0.025466332212090492,
-0.013717523775994778,
-0.011047501116991043,
0.0020780712366104126,
0.08356529474258423,
0.05678127333521843,
-0.03301343321800232,
-0.04426056519150734,
0.0036373434122651815,
0.03848370909690857,
-0.003348686033859849,
0.028797714039683342,
-0.055135440081357956,
-0.0500052236020565,
0.02746720053255558,
-0.03555638715624809,
0.004393869545310736,
0.021020879969000816,
-0.036055225878953934,
0.009707195684313774,
0.02142975851893425,
-0.0960470512509346,
-0.029089173302054405,
0.0710810199379921,
-0.004522617906332016,
0.025131644681096077,
0.07915506511926651,
0.02361437864601612,
0.09298385679721832,
0.002959582954645157,
-0.024857601150870323,
-0.032272569835186005,
-0.014331775717437267,
-0.01303736213594675,
-0.05088820680975914,
0.10650574415922165,
-0.023880217224359512,
0.08345706015825272,
-0.04239381477236748,
0.04450657591223717,
0.07725910097360611,
0.02268400229513645,
-0.033199913799762726,
0.05880514159798622,
0.09501349180936813,
0.003770103445276618,
-0.014231184497475624,
0.035733938217163086,
0.025398267433047295,
0.039897371083498,
0.054308079183101654,
-0.06854849308729172,
0.10911637544631958,
-0.06189835071563721,
0.017300143837928772,
-0.0046348185278475285,
-0.011082473210990429,
0.014804628677666187,
-0.033272884786129,
-0.046180397272109985,
-0.00791560485959053,
0.035256508737802505,
0.05501363053917885,
-0.051893625408411026,
-0.047334324568510056,
0.09523718059062958,
-0.030308039858937263,
-0.10460226982831955,
-0.04037948697805405,
0.044724397361278534,
0.026336319744586945,
-6.997776645162619e-33,
-0.006360543426126242,
-0.07036399841308594,
-0.07491353154182434,
0.021789472550153732,
-0.025632154196500778,
-0.041500769555568695,
-0.044914610683918,
-0.0630679652094841,
0.013235168531537056,
-0.07003442943096161,
-0.06068187206983566,
0.024781666696071625,
0.03857182711362839,
-0.00690077431499958,
0.0792694017291069,
-0.07126771658658981,
-0.04832010343670845,
-0.0646754652261734,
0.02085619978606701,
0.02837841399013996,
-0.018687279894948006,
0.038783472031354904,
-0.004673580639064312,
0.017326466739177704,
-0.045054711401462555,
0.007741392124444246,
-0.05782747268676758,
0.0544331930577755,
0.04688679799437523,
-0.009682167321443558,
0.006849208846688271,
0.03920052573084831,
-0.019513968378305435,
0.02036180905997753,
-0.05557205155491829,
-0.0009596737218089402,
-0.021637197583913803,
0.10918740928173065,
0.056514251977205276,
-0.03938477486371994,
0.03992343321442604,
-0.12925514578819275,
-0.011224981397390366,
0.032949645072221756,
0.029210709035396576,
0.11382963508367538,
-0.05086077004671097,
-0.007970921695232391,
-0.06973829865455627,
-0.06088303029537201,
0.0011744166258722544,
0.036109842360019684,
0.034536756575107574,
0.011079548858106136,
-0.002770686289295554,
0.04652851074934006,
0.022234288975596428,
-0.05200447887182236,
-0.024863483384251595,
-0.030490374192595482,
-0.00018775815260596573,
0.018438469618558884,
0.029055066406726837,
0.015688246116042137,
0.06159107759594917,
0.006958468351513147,
-0.00477184634655714,
-0.05097155272960663,
-0.02165471576154232,
0.022669924423098564,
0.04162809997797012,
-0.010356535203754902,
-0.1276877075433731,
-0.031267136335372925,
0.05075725540518761,
-0.08306123316287994,
-0.07667610049247742,
-0.11664613336324692,
-0.02603503316640854,
0.0869666263461113,
-0.09930606186389923,
0.06975167989730835,
0.017713375389575958,
0.0028542832005769014,
-0.043866973370313644,
-0.018698858097195625,
0.04367859661579132,
0.06457449495792389,
-0.010763118043541908,
0.06429854780435562,
-0.029815685003995895,
0.04738796502351761,
-0.03541705012321472,
0.05190534144639969,
0.007779779843986034,
-5.7773348771661404e-8,
0.08481307327747345,
-0.009826332330703735,
-0.0253510270267725,
0.08421192318201065,
0.04430437460541725,
-0.03369919955730438,
-0.018998978659510612,
0.012331699021160603,
0.006212358828634024,
-0.018655387684702873,
0.015044515021145344,
0.020474204793572426,
-0.06319461762905121,
-0.028652403503656387,
0.057130444794893265,
0.07126062363386154,
0.00656931335106492,
-0.035076435655355453,
-0.037091124802827835,
-0.11130162328481674,
0.006830496713519096,
-0.0017776068998500705,
-0.04475802928209305,
-0.039342429488897324,
-0.0622108019888401,
-0.024083148688077927,
0.07033254951238632,
0.08135437220335007,
-0.03725716471672058,
0.05956399440765381,
0.032396551221609116,
-0.010284369811415672,
0.021660642698407173,
0.02876301296055317,
-0.005605867598205805,
-0.04091636463999748,
-0.07385435700416565,
0.02102571725845337,
0.08522169291973114,
-0.05710083991289139,
0.006082635838538408,
0.07839502394199371,
-0.05328981950879097,
-0.006287048105150461,
-0.007745633367449045,
-0.0033790171146392822,
-0.0832502543926239,
0.011660212650895119,
0.018999388441443443,
-0.015693722292780876,
0.0031767284963279963,
0.058841269463300705,
-0.004749080166220665,
0.08198351413011551,
0.043025512248277664,
0.06628501415252686,
0.02745797298848629,
-0.13160233199596405,
-0.008136780001223087,
0.10651939362287521,
-0.015400865115225315,
0.004216640722006559,
0.08774182945489883,
-0.026403281837701797
] | 0.160183 |
you help?" }, "schema": { "type": "object", "properties": { "intent": { "type": "string" }, "draft": { "type": "string" } }, "required": ["intent", "draft"], "additionalProperties": false } }' ``` See [LLM Task](/tools/llm-task) for details and configuration options. ## Workflow files (.lobster) Lobster can run YAML/JSON workflow files with `name`, `args`, `steps`, `env`, `condition`, and `approval` fields. In OpenClaw tool calls, set `pipeline` to the file path. ```yaml name: inbox-triage args: tag: default: "family" steps: - id: collect command: inbox list --json - id: categorize command: inbox categorize --json stdin: $collect.stdout - id: approve command: inbox apply --approve stdin: $categorize.stdout approval: required - id: execute command: inbox apply --execute stdin: $categorize.stdout condition: $approve.approved ``` Notes: - `stdin: $step.stdout` and `stdin: $step.json` pass a prior step’s output. - `condition` (or `when`) can gate steps on `$step.approved`. ## Install Lobster Install the Lobster CLI on the \*\*same host\*\* that runs the OpenClaw Gateway (see the [Lobster repo](https://github.com/openclaw/lobster)), and ensure `lobster` is on `PATH`. If you want to use a custom binary location, pass an \*\*absolute\*\* `lobsterPath` in the tool call. ## Enable the tool Lobster is an \*\*optional\*\* plugin tool (not enabled by default). Recommended (additive, safe): ```json { "tools": { "alsoAllow": ["lobster"] } } ``` Or per-agent: ```json { "agents": { "list": [ { "id": "main", "tools": { "alsoAllow": ["lobster"] } } ] } } ``` Avoid using `tools.allow: ["lobster"]` unless you intend to run in restrictive allowlist mode. Note: allowlists are opt-in for optional plugins. If your allowlist only names plugin tools (like `lobster`), OpenClaw keeps core tools enabled. To restrict core tools, include the core tools or groups you want in the allowlist too. ## Example: Email triage Without Lobster: ``` User: "Check my email and draft replies" → openclaw calls gmail.list → LLM summarizes → User: "draft replies to #2 and #5" → LLM drafts → User: "send #2" → openclaw calls gmail.send (repeat daily, no memory of what was triaged) ``` With Lobster: ```json { "action": "run", "pipeline": "email.triage --limit 20", "timeoutMs": 30000 } ``` Returns a JSON envelope (truncated): ```json { "ok": true, "status": "needs\_approval", "output": [{ "summary": "5 need replies, 2 need action" }], "requiresApproval": { "type": "approval\_request", "prompt": "Send 2 draft replies?", "items": [], "resumeToken": "..." } } ``` User approves → resume: ```json { "action": "resume", "token": "", "approve": true } ``` One workflow. Deterministic. Safe. ## Tool parameters ### `run` Run a pipeline in tool mode. ```json { "action": "run", "pipeline": "gog.gmail.search --query 'newer\_than:1d' | email.triage", "cwd": "/path/to/workspace", "timeoutMs": 30000, "maxStdoutBytes": 512000 } ``` Run a workflow file with args: ```json { "action": "run", "pipeline": "/path/to/inbox-triage.lobster", "argsJson": "{\"tag\":\"family\"}" } ``` ### `resume` Continue a halted workflow after approval. ```json { "action": "resume", "token": "", "approve": true } ``` ### Optional inputs - `lobsterPath`: Absolute path to the Lobster binary (omit to use `PATH`). - `cwd`: Working directory for the pipeline (defaults to the current process working directory). - `timeoutMs`: Kill the subprocess if it exceeds this duration (default: 20000). - `maxStdoutBytes`: Kill the subprocess if stdout exceeds this size (default: 512000). - `argsJson`: JSON string passed to `lobster run --args-json` (workflow files only). ## Output envelope Lobster returns a JSON envelope with one of three statuses: - `ok` → finished successfully - `needs\_approval` → paused; `requiresApproval.resumeToken` is required to resume - `cancelled` → explicitly denied or cancelled The tool surfaces the envelope in both `content` (pretty JSON) and `details` (raw object). ## Approvals If `requiresApproval` is present, inspect the prompt and decide: - `approve: true` → resume and continue side effects - `approve: false` → cancel and finalize the workflow Use `approve --preview-from-stdin --limit | https://github.com/openclaw/openclaw/blob/main//docs/tools/lobster.md | main | opebclaw | [
0.01049326453357935,
0.01977144181728363,
-0.04465947672724724,
0.004892286378890276,
-0.003340749070048332,
-0.05946175754070282,
-0.08012095093727112,
0.004917741287499666,
0.014882960356771946,
0.0017736601876094937,
-0.013353968039155006,
-0.08049435913562775,
-0.008509581908583641,
0.010094976052641869,
0.11059778183698654,
0.15923704206943512,
0.025239448994398117,
-0.06059718877077103,
-0.04022497311234474,
-0.05163707211613655,
0.073783278465271,
0.09419766813516617,
0.0328386090695858,
-0.0042970143258571625,
-0.08508896827697754,
-0.044042352586984634,
0.0043840473517775536,
0.04737338423728943,
-0.07486756145954132,
-0.007831462658941746,
0.05727512016892433,
0.051649853587150574,
0.014105691574513912,
0.06697021424770355,
0.07167727500200272,
0.0955323576927185,
0.05092634633183479,
-0.05686596408486366,
-0.006912436801940203,
-0.010202907025814056,
-0.01573360711336136,
0.0369478315114975,
-0.05606108531355858,
-0.06582613289356232,
-0.057273682206869125,
-0.1127999797463417,
-0.045913077890872955,
-0.11098088324069977,
-0.05681653693318367,
0.07585512846708298,
-0.06566131860017776,
-0.09336284548044205,
0.007349592167884111,
-0.023410040885210037,
0.013018984347581863,
0.06524719297885895,
-0.03215941786766052,
-0.008338113315403461,
-0.020314915105700493,
-0.09903070330619812,
0.014140286482870579,
-0.02188047021627426,
-0.026630762964487076,
-0.024098943918943405,
-0.06906900554895401,
0.032307010143995285,
-0.05311315506696701,
-0.00853179395198822,
0.012633181177079678,
-0.042691487818956375,
0.013972778804600239,
-0.032030392438173294,
-0.07880724966526031,
-0.061881378293037415,
-0.039044544100761414,
-0.04050634801387787,
0.027769729495048523,
0.05364397540688515,
-0.04531780630350113,
-0.08932572603225708,
-0.05641871318221092,
0.002311024582013488,
-0.06806585192680359,
0.03421454131603241,
-0.02366476319730282,
0.08861752599477768,
-0.02775162272155285,
0.058360081166028976,
0.03514302149415016,
0.039722561836242676,
-0.027088524773716927,
-0.14145527780056,
-0.058261580765247345,
-0.03949444368481636,
0.06739163398742676,
0.030827589333057404,
-0.04116315394639969,
-0.02076045796275139,
-0.06108234450221062,
0.014578723348677158,
0.013477472588419914,
-0.03551523759961128,
0.06843145191669464,
-0.05853414535522461,
0.018479712307453156,
0.0406273789703846,
0.01410394161939621,
0.017409970983862877,
-0.0431927852332592,
0.037376102060079575,
0.018301092088222504,
-0.011027506552636623,
0.05962643772363663,
-0.009903905913233757,
-0.030202195048332214,
0.05677948519587517,
-0.04764411225914955,
0.027284005656838417,
-0.005476753693073988,
0.05162086710333824,
0.09610529243946075,
0.01709747686982155,
-0.025476958602666855,
0.062354158610105515,
0.018329715356230736,
-0.01043834537267685,
-0.0002517004613764584,
1.4281088214979664e-33,
0.0931195542216301,
-0.08157756179571152,
-0.004475185181945562,
0.04972473159432411,
0.10108466446399689,
-0.03347225859761238,
0.09960298985242844,
0.021638384088873863,
-0.05390695482492447,
0.03289923071861267,
-0.04909085854887962,
0.0715772956609726,
-0.06023785471916199,
-0.0431121364235878,
-0.05602503567934036,
-0.03144313395023346,
-0.10054212063550949,
0.02157704159617424,
0.05226760357618332,
0.04333116486668587,
0.035246312618255615,
-0.05352671071887016,
-0.10727133601903915,
0.06046842411160469,
-0.011106357909739017,
0.05099497362971306,
0.023299459367990494,
-0.02085227519273758,
-0.007126934360712767,
0.019964203238487244,
0.05822667106986046,
-0.012558940798044205,
0.025844352319836617,
0.024826452136039734,
-0.031912993639707565,
0.023641951382160187,
-0.07483924925327301,
0.0490102656185627,
-0.017963167279958725,
-0.010600034147500992,
0.07907956838607788,
-0.021205220371484756,
-0.01889774575829506,
-0.020371567457914352,
-0.018440665677189827,
-0.07206229120492935,
-0.024840839207172394,
0.056460533291101456,
0.09683865308761597,
-0.03895823657512665,
0.07641036063432693,
-0.020418105646967888,
0.04596750810742378,
-0.018992410972714424,
0.038083236664533615,
-0.05858287960290909,
-0.03689800575375557,
0.04296586290001869,
-0.003947951830923557,
0.0014952373458072543,
-0.07405342906713486,
0.06681643426418304,
-0.03271076828241348,
0.06500675529241562,
0.0328974649310112,
-0.04383420944213867,
-0.06747397780418396,
0.00497168954461813,
0.0064745331183075905,
0.0006659676437266171,
-0.01992928422987461,
0.008648508228361607,
-0.010132372379302979,
0.0284357201308012,
0.048279039561748505,
-0.10946592688560486,
0.047661758959293365,
-0.046158649027347565,
-0.025927862152457237,
0.009267562068998814,
-0.017672138288617134,
-0.00309412507340312,
-0.0433332696557045,
0.005720323882997036,
0.034320831298828125,
0.04497896507382393,
0.021479997783899307,
0.01697467267513275,
-0.04009750112891197,
0.015044836327433586,
-0.03144164755940437,
-0.007568961940705776,
-0.08087951689958572,
-0.009635032154619694,
0.04880288988351822,
-4.336324457102523e-33,
0.009813153184950352,
-0.03341255336999893,
-0.002213946310803294,
0.021660512313246727,
0.014924087561666965,
-0.015419665724039078,
0.05876699835062027,
-0.04692135006189346,
0.034268271178007126,
-0.004627116024494171,
-0.09057821333408356,
-0.00808168388903141,
-0.048895448446273804,
-0.07794509828090668,
0.044043850153684616,
-0.07801684737205505,
-0.09213080257177353,
-0.044168829917907715,
0.02628800831735134,
0.005181184038519859,
-0.007624996826052666,
0.06069791689515114,
0.05825209245085716,
0.05444562807679176,
0.022174907848238945,
-0.07622582465410233,
0.015243674628436565,
0.020079461857676506,
-0.038619086146354675,
-0.01483176089823246,
0.053368229418992996,
-0.013316306285560131,
-0.03171803429722786,
0.018357863649725914,
-0.04039553925395012,
-0.06538839638233185,
-0.004191880580037832,
0.05981489643454552,
0.034193333238363266,
0.02932971529662609,
-0.003076197812333703,
0.017452530562877655,
-0.0761663168668747,
0.04819602519273758,
-0.040223732590675354,
0.07040151953697205,
0.015026543289422989,
-0.006531036924570799,
-0.041820935904979706,
-0.044874079525470734,
0.00000755147129893885,
0.02669147215783596,
-0.05206413194537163,
0.021470848470926285,
0.055497340857982635,
0.047416262328624725,
0.0355202816426754,
-0.1276477873325348,
-0.04279087856411934,
-0.049914851784706116,
-0.0533292256295681,
0.026670027524232864,
0.07662609964609146,
-0.00127768749371171,
0.03615702688694,
-0.0782971978187561,
-0.01096250768750906,
0.005228384863585234,
-0.03120373748242855,
-0.007687132339924574,
-0.06862267851829529,
-0.05866336449980736,
-0.024317579343914986,
0.03367426246404648,
0.10211092233657837,
-0.06628694385290146,
-0.04170304909348488,
-0.08868205547332764,
0.031740520149469376,
0.016766972839832306,
0.007745250593870878,
0.03286623954772949,
0.024983450770378113,
0.06050310656428337,
0.05606590211391449,
-0.03368030861020088,
0.03534528240561485,
0.12597399950027466,
-0.027243221178650856,
0.10386858135461807,
-0.02584763988852501,
0.029208006337285042,
0.0161752849817276,
-0.04183650389313698,
-0.023105021566152573,
-5.280773862637034e-8,
-0.09715637564659119,
-0.047507937997579575,
-0.08912333101034164,
0.013905416242778301,
-0.01978282630443573,
-0.001306807855144143,
0.044889118522405624,
0.11533994227647781,
0.04559268057346344,
-0.053398892283439636,
0.060849130153656006,
0.06450671702623367,
-0.14493659138679504,
0.004621581640094519,
-0.013068902306258678,
-0.001530149020254612,
0.08866959810256958,
0.07464831322431564,
0.009585054591298103,
-0.05472500994801521,
0.06791405379772186,
-0.013223858550190926,
0.023092016577720642,
0.02264006994664669,
0.020034952089190483,
0.02141502872109413,
-0.014199584722518921,
0.023619405925273895,
0.008243313059210777,
0.05093345418572426,
-0.02383534051477909,
-0.08559399843215942,
0.0712505504488945,
0.036126796156167984,
-0.029499460011720657,
-0.028154805302619934,
0.05869709327816963,
0.044086769223213196,
0.05594618618488312,
-0.032928481698036194,
0.03843984752893448,
0.040226101875305176,
-0.09343986213207245,
-0.06197071075439453,
-0.0838177502155304,
-0.015657484531402588,
-0.03894345089793205,
0.0008452311740256846,
-0.03224186599254608,
0.05547747015953064,
-0.04983377084136009,
0.016087612137198448,
0.06377803534269333,
0.08188655972480774,
-0.018265992403030396,
0.08946297317743301,
0.08728395402431488,
-0.09287330508232117,
0.01084475964307785,
-0.006995109841227531,
0.058679915964603424,
0.07669669389724731,
0.04935941845178604,
-0.014915510080754757
] | 0.058029 |
denied or cancelled The tool surfaces the envelope in both `content` (pretty JSON) and `details` (raw object). ## Approvals If `requiresApproval` is present, inspect the prompt and decide: - `approve: true` → resume and continue side effects - `approve: false` → cancel and finalize the workflow Use `approve --preview-from-stdin --limit N` to attach a JSON preview to approval requests without custom jq/heredoc glue. Resume tokens are now compact: Lobster stores workflow resume state under its state dir and hands back a small token key. ## OpenProse OpenProse pairs well with Lobster: use `/prose` to orchestrate multi-agent prep, then run a Lobster pipeline for deterministic approvals. If a Prose program needs Lobster, allow the `lobster` tool for sub-agents via `tools.subagents.tools`. See [OpenProse](/prose). ## Safety - \*\*Local subprocess only\*\* — no network calls from the plugin itself. - \*\*No secrets\*\* — Lobster doesn't manage OAuth; it calls OpenClaw tools that do. - \*\*Sandbox-aware\*\* — disabled when the tool context is sandboxed. - \*\*Hardened\*\* — `lobsterPath` must be absolute if specified; timeouts and output caps enforced. ## Troubleshooting - \*\*`lobster subprocess timed out`\*\* → increase `timeoutMs`, or split a long pipeline. - \*\*`lobster output exceeded maxStdoutBytes`\*\* → raise `maxStdoutBytes` or reduce output size. - \*\*`lobster returned invalid JSON`\*\* → ensure the pipeline runs in tool mode and prints only JSON. - \*\*`lobster failed (code …)`\*\* → run the same pipeline in a terminal to inspect stderr. ## Learn more - [Plugins](/plugin) - [Plugin tool authoring](/plugins/agent-tools) ## Case study: community workflows One public example: a “second brain” CLI + Lobster pipelines that manage three Markdown vaults (personal, partner, shared). The CLI emits JSON for stats, inbox listings, and stale scans; Lobster chains those commands into workflows like `weekly-review`, `inbox-triage`, `memory-consolidation`, and `shared-task-sync`, each with approval gates. AI handles judgment (categorization) when available and falls back to deterministic rules when not. - Thread: https://x.com/plattenschieber/status/2014508656335770033 - Repo: https://github.com/bloomedai/brain-cli | https://github.com/openclaw/openclaw/blob/main//docs/tools/lobster.md | main | opebclaw | [
-0.11812363564968109,
0.019762706011533737,
0.0058215307071805,
0.0016519163036718965,
0.03062240220606327,
-0.05134183540940285,
-0.06650244444608688,
0.0038689926732331514,
0.012422344647347927,
-0.045055508613586426,
0.0046484339982271194,
-0.026776451617479324,
0.016213100403547287,
0.004472129978239536,
-0.0039242589846253395,
0.07090885192155838,
0.11667968332767487,
0.015229360200464725,
-0.039019495248794556,
-0.03397202864289284,
0.06401324272155762,
0.11319655179977417,
0.06477079540491104,
-0.04619055241346359,
-0.09414507448673248,
-0.018420955166220665,
-0.021967435255646706,
-0.023709634318947792,
-0.02456035278737545,
-0.008290577679872513,
0.05474037677049637,
-0.05129249393939972,
-0.027580175548791885,
0.009771855548024178,
0.11613868921995163,
0.10316373407840729,
0.025753820315003395,
-0.06842363625764847,
0.037931811064481735,
0.00825374573469162,
0.01179130282253027,
-0.03554270789027214,
-0.1560356318950653,
-0.004711948335170746,
-0.050289034843444824,
-0.12743958830833435,
-0.006375904195010662,
-0.10995794087648392,
-0.01777001842856407,
0.03892914950847626,
-0.029835911467671394,
-0.10796758532524109,
0.032876987010240555,
-0.03521326184272766,
-0.02648318000137806,
-0.0026379553601145744,
-0.04672001674771309,
-0.03209097310900688,
0.020703475922346115,
-0.05213957279920578,
-0.030795972794294357,
-0.0033494867384433746,
-0.04698789864778519,
0.04386578127741814,
-0.04700600728392601,
0.05482508987188339,
-0.05086022987961769,
0.02421349659562111,
0.011775599792599678,
-0.06258244812488556,
-0.0056711467914283276,
-0.005265646148473024,
-0.09706827998161316,
0.0005745511734858155,
0.018880203366279602,
0.0020685652270913124,
0.006840632297098637,
0.00880261417478323,
-0.01585216447710991,
-0.12049485743045807,
-0.01705830544233322,
-0.10789822787046432,
-0.04332220181822777,
0.04739784449338913,
-0.03717631474137306,
0.11780310422182083,
0.042370352894067764,
0.03302246332168579,
0.0763062834739685,
0.045523714274168015,
-0.011557894758880138,
-0.07642943412065506,
0.026299620047211647,
-0.06940580159425735,
0.04434249922633171,
-0.058689843863248825,
-0.027900414541363716,
-0.013333864510059357,
-0.0884258970618248,
0.1036914512515068,
-0.024423712864518166,
-0.030624067410826683,
0.027850745245814323,
-0.08304726332426071,
-0.013974691741168499,
-0.02200348675251007,
0.005535118747502565,
-0.023879723623394966,
0.04205998033285141,
0.03502534329891205,
-0.017755478620529175,
-0.015713024884462357,
0.047420911490917206,
0.019445963203907013,
0.05515757575631142,
0.115425705909729,
-0.020138515159487724,
0.0061587681993842125,
0.01759154163300991,
0.01946769654750824,
0.134306401014328,
0.011963320896029472,
0.039277032017707825,
0.01674080453813076,
0.0538918636739254,
0.022449878975749016,
0.00738347927108407,
3.694426665052812e-33,
0.020880768075585365,
-0.004014568869024515,
-0.0147299999371171,
0.037182100117206573,
0.09484107792377472,
0.004923579748719931,
0.003179814899340272,
0.0323823057115078,
-0.08253040164709091,
0.030915003269910812,
-0.057272620499134064,
0.08940126746892929,
-0.015357405878603458,
-0.0012309012236073613,
-0.04561133682727814,
-0.09913262724876404,
0.03462535887956619,
0.06943938881158829,
0.035782527178525925,
0.10446352511644363,
0.019015774130821228,
-0.050020456314086914,
-0.03566412627696991,
0.07646092772483826,
-0.0555008165538311,
-0.03260309249162674,
-0.05519602820277214,
0.005353775806725025,
0.11036214977502823,
0.03758623078465462,
-0.047523703426122665,
-0.008937222883105278,
0.05188791826367378,
0.06410988420248032,
-0.04982022941112518,
0.05431715399026871,
-0.040858469903469086,
-0.08612094819545746,
0.043320171535015106,
-0.07280924171209335,
-0.001878347247838974,
0.01774582825601101,
-0.02498631551861763,
-0.008813641034066677,
-0.02028289996087551,
-0.16783437132835388,
-0.054709382355213165,
0.032276444137096405,
0.11126004159450531,
0.04068983718752861,
0.08555029332637787,
0.027018731459975243,
0.10040275752544403,
-0.0401698462665081,
-0.018092626705765724,
-0.06533153355121613,
-0.010584035888314247,
0.053180113434791565,
0.0025359992869198322,
-0.012245429679751396,
0.02790887840092182,
0.09729299694299698,
-0.05531318113207817,
0.012800696305930614,
0.01608375832438469,
0.026444990187883377,
-0.05873796343803406,
0.05378877744078636,
0.036798447370529175,
0.0005225397762842476,
-0.08311762660741806,
0.042706623673439026,
0.04046358913183212,
-0.002085546962916851,
-0.006704380270093679,
-0.06378647685050964,
0.006093144882470369,
-0.009368548169732094,
0.0627322718501091,
-0.0040603699162602425,
0.08089164644479752,
-0.040613804012537,
-0.0796612799167633,
-0.018374960869550705,
0.008871885947883129,
0.03879455849528313,
0.012417959049344063,
-0.027745328843593597,
-0.041788626462221146,
0.04030672460794449,
0.02303900197148323,
-0.011152572929859161,
-0.010965739376842976,
0.02590804547071457,
0.02890426106750965,
-6.07737191530846e-33,
0.0495426282286644,
-0.04338650405406952,
-0.0879116877913475,
0.0017773251747712493,
-0.0003326812875457108,
-0.025381051003932953,
0.005602945573627949,
-0.06514730304479599,
0.02118201181292534,
-0.10182645171880722,
-0.013153744861483574,
-0.015437500551342964,
0.04317457601428032,
-0.07281691581010818,
0.018185822293162346,
-0.05063981935381889,
-0.07091022282838821,
0.002260870998725295,
0.01287294365465641,
0.014733892865478992,
0.008724367246031761,
0.01627313531935215,
0.04237155616283417,
0.05808085575699806,
-0.02157878316938877,
0.004323821514844894,
-0.02398795448243618,
0.04067488759756088,
-0.010506321676075459,
-0.06454908102750778,
0.009300039149820805,
-0.012728716246783733,
-0.06292655318975449,
-0.007394676562398672,
-0.01153277326375246,
-0.0384371243417263,
-0.02848307229578495,
0.09840326756238937,
0.04074087738990784,
-0.04741884022951126,
0.12051432579755783,
-0.06909959763288498,
-0.05440884828567505,
0.08308781683444977,
0.004773519933223724,
0.07418005913496017,
-0.02492097206413746,
-0.007155564147979021,
-0.03736142814159393,
-0.05727409943938255,
-0.062345538288354874,
0.04377187415957451,
-0.02650626190006733,
-0.026284223422408104,
-0.01996523141860962,
0.049600306898355484,
0.048038300126791,
-0.06654591113328934,
-0.022726457566022873,
-0.038918063044548035,
-0.015579714439809322,
0.028864292427897453,
0.03243085369467735,
0.023558352142572403,
0.04137479513883591,
-0.081834577023983,
0.02911299653351307,
0.03718708083033562,
-0.007518779020756483,
-0.039148829877376556,
-0.008311508223414421,
-0.02587360516190529,
-0.022890660911798477,
-0.044964712113142014,
0.12638862431049347,
-0.017055455595254898,
-0.045179396867752075,
-0.1507369875907898,
-0.012148811481893063,
0.10186927020549774,
-0.06714347749948502,
0.05067067593336105,
0.005693212617188692,
-0.02632048912346363,
0.05164399743080139,
0.023503119125962257,
-0.03919578716158867,
0.07235599309206009,
0.028630075976252556,
0.0445416085422039,
-0.02973533421754837,
0.021094175055623055,
0.0607430674135685,
-0.011874406598508358,
-0.024168144911527634,
-5.65703253130323e-8,
0.043768588453531265,
-0.02589305117726326,
0.022965596988797188,
-0.006612089462578297,
-0.006892469245940447,
-0.08145751804113388,
-0.05484941229224205,
-0.028060095384716988,
0.002743156161159277,
-0.045115917921066284,
0.037365857511758804,
0.009037643671035767,
-0.10705598443746567,
-0.06179729849100113,
0.008939430117607117,
0.03872174024581909,
0.058624863624572754,
0.09008240699768066,
-0.046852678060531616,
-0.07636550068855286,
-0.029496990144252777,
0.006007674150168896,
-0.006828370504081249,
-0.003906856756657362,
-0.039862457662820816,
-0.012514272704720497,
-0.008884122595191002,
0.053263358771800995,
-0.07510144263505936,
0.04496898874640465,
-0.0035332890693098307,
-0.08556166291236877,
0.04621424153447151,
0.023557662963867188,
-0.06391683965921402,
-0.023681744933128357,
0.01883169263601303,
0.009587663225829601,
0.05815424025058746,
0.022754425182938576,
0.031659528613090515,
0.04714292287826538,
-0.048762399703264236,
-0.01764393225312233,
-0.010993018746376038,
0.05960370972752571,
-0.02496045082807541,
-0.025612186640501022,
0.022246673703193665,
0.028559712693095207,
-0.06624580919742584,
-0.002350214635953307,
-0.007448313757777214,
0.08177278935909271,
0.011308247223496437,
0.029203493148088455,
0.020860787481069565,
-0.060601040720939636,
-0.016254112124443054,
0.05274267494678497,
0.052545368671417236,
0.0027764299884438515,
0.09383177757263184,
0.0033895825035870075
] | 0.112941 |
# ClawHub ClawHub is the \*\*public skill registry for OpenClaw\*\*. It is a free service: all skills are public, open, and visible to everyone for sharing and reuse. A skill is just a folder with a `SKILL.md` file (plus supporting text files). You can browse skills in the web app or use the CLI to search, install, update, and publish skills. Site: [clawhub.ai](https://clawhub.ai) ## What ClawHub is - A public registry for OpenClaw skills. - A versioned store of skill bundles and metadata. - A discovery surface for search, tags, and usage signals. ## How it works 1. A user publishes a skill bundle (files + metadata). 2. ClawHub stores the bundle, parses metadata, and assigns a version. 3. The registry indexes the skill for search and discovery. 4. Users browse, download, and install skills in OpenClaw. ## What you can do - Publish new skills and new versions of existing skills. - Discover skills by name, tags, or search. - Download skill bundles and inspect their files. - Report skills that are abusive or unsafe. - If you are a moderator, hide, unhide, delete, or ban. ## Who this is for (beginner-friendly) If you want to add new capabilities to your OpenClaw agent, ClawHub is the easiest way to find and install skills. You do not need to know how the backend works. You can: - Search for skills by plain language. - Install a skill into your workspace. - Update skills later with one command. - Back up your own skills by publishing them. ## Quick start (non-technical) 1. Install the CLI (see next section). 2. Search for something you need: - `clawhub search "calendar"` 3. Install a skill: - `clawhub install ` 4. Start a new OpenClaw session so it picks up the new skill. ## Install the CLI Pick one: ```bash npm i -g clawhub ``` ```bash pnpm add -g clawhub ``` ## How it fits into OpenClaw By default, the CLI installs skills into `./skills` under your current working directory. If a OpenClaw workspace is configured, `clawhub` falls back to that workspace unless you override `--workdir` (or `CLAWHUB\_WORKDIR`). OpenClaw loads workspace skills from `/skills` and will pick them up in the \*\*next\*\* session. If you already use `~/.openclaw/skills` or bundled skills, workspace skills take precedence. For more detail on how skills are loaded, shared, and gated, see [Skills](/tools/skills). ## Skill system overview A skill is a versioned bundle of files that teaches OpenClaw how to perform a specific task. Each publish creates a new version, and the registry keeps a history of versions so users can audit changes. A typical skill includes: - A `SKILL.md` file with the primary description and usage. - Optional configs, scripts, or supporting files used by the skill. - Metadata such as tags, summary, and install requirements. ClawHub uses metadata to power discovery and safely expose skill capabilities. The registry also tracks usage signals (such as stars and downloads) to improve ranking and visibility. ## What the service provides (features) - \*\*Public browsing\*\* of skills and their `SKILL.md` content. - \*\*Search\*\* powered by embeddings (vector search), not just keywords. - \*\*Versioning\*\* with semver, changelogs, and tags (including `latest`). - \*\*Downloads\*\* as a zip per version. - \*\*Stars and comments\*\* for community feedback. - \*\*Moderation\*\* hooks for approvals and audits. - \*\*CLI-friendly API\*\* for automation and scripting. ## Security and moderation ClawHub is open by default. Anyone can upload skills, but a GitHub account must be at least one week old to publish. This helps slow down abuse without blocking legitimate contributors. Reporting and moderation: - Any signed in user can | https://github.com/openclaw/openclaw/blob/main//docs/tools/clawhub.md | main | opebclaw | [
-0.08060634136199951,
-0.02259507216513157,
-0.07099699974060059,
0.017336450517177582,
-0.014559614472091198,
-0.05395837128162384,
-0.00011485230061225593,
-0.005056079942733049,
-0.10026295483112335,
-0.02103128470480442,
0.0016394362319260836,
0.008811987936496735,
0.03969455137848854,
0.0031391417142003775,
-0.006011252757161856,
0.07120002061128616,
-0.010876944288611412,
0.009552747011184692,
-0.01164847519248724,
-0.02052954025566578,
-0.0022306391038000584,
0.024472367018461227,
0.03602883219718933,
-0.07803141325712204,
-0.049222446978092194,
0.010680509731173515,
-0.032024309039115906,
-0.04050210490822792,
0.01898004487156868,
-0.03207661584019661,
0.05605834722518921,
0.06636559963226318,
0.03623785451054573,
0.012981744483113289,
0.03357415646314621,
0.05994180217385292,
0.0023800344206392765,
0.03169401362538338,
-0.10793925821781158,
0.0031466712243855,
0.0111218998208642,
0.0023022349923849106,
-0.05040992051362991,
-0.03809515759348869,
-0.03728024289011955,
0.002567344345152378,
-0.0019026013324037194,
-0.061059851199388504,
-0.010248355567455292,
0.06554925441741943,
-0.11018424481153488,
-0.13187940418720245,
-0.025095947086811066,
-0.0435604490339756,
0.07802757620811462,
0.018468448892235756,
0.03205457329750061,
-0.01245513092726469,
-0.03449828922748566,
-0.06235789135098457,
0.11730419099330902,
0.01421885471791029,
-0.10215213149785995,
0.0153800118714571,
-0.0037660878151655197,
-0.007584287319332361,
-0.04744317755103111,
-0.019185872748494148,
0.06787855178117752,
-0.1675521284341812,
-0.044143304228782654,
0.02162144146859646,
0.010870861820876598,
0.04129859060049057,
0.020879872143268585,
-0.04976106807589531,
0.03249865770339966,
0.06837262213230133,
-0.0334414578974247,
-0.11002068966627121,
-0.07603756338357925,
0.016270717605948448,
0.011296375654637814,
0.004114796873182058,
-0.0342056043446064,
0.07438938319683075,
0.02030150778591633,
0.036859069019556046,
0.07428275793790817,
0.0007286657928489149,
0.05891386792063713,
-0.04328344762325287,
0.0026042202953249216,
-0.07201981544494629,
0.02356213890016079,
0.00863248948007822,
0.0206691212952137,
0.05664178729057312,
-0.05524377524852753,
0.05888070538640022,
-0.017124244943261147,
-0.08272126317024231,
-0.025203926488757133,
-0.04247978329658508,
-0.0673476830124855,
0.07309111207723618,
-0.02142210118472576,
0.06180078908801079,
0.014892224222421646,
0.01879807375371456,
-0.0050683701410889626,
0.015423333272337914,
-0.029988782480359077,
-0.07219836115837097,
0.001232632203027606,
0.006213040091097355,
-0.127012699842453,
-0.00902458094060421,
0.04453984275460243,
0.07769124954938889,
0.0659915953874588,
0.059997230768203735,
0.079862579703331,
-0.053674109280109406,
0.025460470467805862,
0.02879302389919758,
-0.03936035558581352,
9.579814271591084e-34,
0.1269216239452362,
0.039711643010377884,
-0.03562000393867493,
0.01505356002599001,
0.03604299947619438,
0.0025565021205693483,
0.09253780543804169,
0.0216201301664114,
-0.07471500337123871,
0.00036118811112828553,
-0.039346180856227875,
0.10085691511631012,
-0.05869138985872269,
0.03214229270815849,
0.05847591906785965,
0.02048458717763424,
-0.06265334039926529,
0.03852751478552818,
0.07807876914739609,
0.001740177278406918,
0.07249273359775543,
-0.0025059948675334454,
-0.02114415355026722,
0.06721369922161102,
-0.005385493393987417,
0.02357265166938305,
0.027758024632930756,
-0.0617019385099411,
0.062308117747306824,
0.036009375005960464,
0.048652224242687225,
-0.018652910366654396,
-0.05215711519122124,
-0.007540556136518717,
-0.008338216692209244,
0.065956711769104,
-0.020370304584503174,
-0.050666097551584244,
0.02807002328336239,
-0.037855420261621475,
0.040339674800634384,
-0.05776349455118179,
0.026014668866991997,
-0.013151752762496471,
-0.015256558544933796,
-0.08970408886671066,
-0.001246358035132289,
0.004450160078704357,
0.016549313440918922,
0.06543146073818207,
0.03429192677140236,
-0.019089756533503532,
0.06803496181964874,
-0.027457984164357185,
-0.059479720890522,
0.043897904455661774,
0.021469634026288986,
-0.009344983845949173,
-0.022422628477215767,
0.042969219386577606,
0.019646376371383667,
0.004058933816850185,
-0.01070374809205532,
0.0712486132979393,
-0.05520831421017647,
-0.034349896013736725,
0.090324766933918,
0.01833261549472809,
0.13134129345417023,
-0.03871210291981697,
-0.037414100021123886,
-0.03625195100903511,
0.03403715044260025,
-0.02855055406689644,
-0.0733720138669014,
-0.06097489595413208,
-0.006002660375088453,
-0.05708593130111694,
-0.02385219745337963,
-0.03572913259267807,
-0.011934371665120125,
0.004774897359311581,
-0.03204852342605591,
-0.005241957027465105,
0.020614799112081528,
-0.028199588879942894,
0.025232328101992607,
-0.0938345193862915,
0.00455131009221077,
0.06437649577856064,
-0.052365850657224655,
0.0031151946168392897,
-0.1413974165916443,
0.026476969942450523,
0.028108512982726097,
-1.588071745796794e-33,
0.03080158121883869,
-0.09670930355787277,
-0.007084617391228676,
0.04404782876372337,
0.004021754488348961,
0.009298142045736313,
0.0361088365316391,
-0.06750722229480743,
-0.06658295542001724,
-0.07216446846723557,
-0.05370970442891121,
0.056002743542194366,
0.019520333036780357,
-0.03459358960390091,
-0.003951587714254856,
0.0005307059618644416,
-0.11951997131109238,
0.004904110450297594,
0.03366845101118088,
0.025064632296562195,
-0.05130813270807266,
0.004764161072671413,
-0.0644465982913971,
0.06350994855165482,
0.04972904175519943,
-0.013462123461067677,
-0.022663382813334465,
-0.040797218680381775,
0.05242522060871124,
0.04257921874523163,
0.06171306595206261,
-0.041547007858753204,
-0.06700138747692108,
-0.027663497254252434,
-0.060169778764247894,
0.006726712454110384,
-0.022345412522554398,
-0.049158018082380295,
0.008850370533764362,
0.03673559054732323,
0.00778556801378727,
-0.005432516802102327,
-0.06872338056564331,
-0.026887159794569016,
-0.03300207480788231,
0.003797345794737339,
-0.0801088958978653,
0.03999678045511246,
-0.0678626149892807,
-0.021062051877379417,
0.13638660311698914,
-0.02013709396123886,
0.026222284883260727,
-0.06704216450452805,
-0.0228204894810915,
0.04316108673810959,
0.05327250063419342,
-0.035605739802122116,
-0.07748661190271378,
0.025046205148100853,
0.06698848307132721,
-0.033259160816669464,
-0.04329651594161987,
0.11041247099637985,
-0.00581967132166028,
-0.018391119316220284,
0.028647197410464287,
0.05203757807612419,
-0.16058316826820374,
0.0023816870525479317,
-0.010200142860412598,
-0.014263554476201534,
0.05790768563747406,
-0.1340615153312683,
0.029101930558681488,
0.012860680930316448,
0.01951001212000847,
0.0362614169716835,
-0.004151009488850832,
0.006790643557906151,
-0.02888263575732708,
0.0028413371182978153,
0.08690458536148071,
0.032342329621315,
0.01055036298930645,
0.059046294540166855,
0.04319148138165474,
0.08094529062509537,
0.024077946320176125,
-0.010445878840982914,
-0.10753637552261353,
0.023400424048304558,
-0.03588063642382622,
-0.0043045636266469955,
0.023741472512483597,
-4.627771588161522e-8,
-0.04345104470849037,
0.036265455186367035,
-0.04746660217642784,
0.028319858014583588,
0.020932430401444435,
0.04744567722082138,
-0.03668828308582306,
0.106802798807621,
-0.0584384948015213,
0.05969521403312683,
0.10222671180963516,
-0.06165493279695511,
-0.05490312725305557,
0.013313069008290768,
0.057149738073349,
0.09035782516002655,
0.09459979832172394,
0.025541579350829124,
-0.027348078787326813,
-0.051365695893764496,
0.0701487585902214,
0.018934275954961777,
0.03241954371333122,
0.034937020391225815,
0.008663536049425602,
-0.06331601738929749,
-0.07207784801721573,
0.029504261910915375,
0.019264638423919678,
0.08479806035757065,
0.03541141748428345,
-0.07599148154258728,
0.08854677528142929,
-0.04013878479599953,
0.09263546764850616,
0.04595230892300606,
-0.04621546342968941,
0.010296468622982502,
0.027418268844485283,
0.03353634849190712,
0.025745276361703873,
0.03636837750673294,
0.022744059562683105,
-0.01784346252679825,
-0.06257536262273788,
-0.013701573014259338,
-0.0519835464656353,
-0.03145517408847809,
-0.004835920874029398,
-0.008780921809375286,
-0.045056890696287155,
0.013972997665405273,
-0.051267459988594055,
0.036608003079891205,
0.004831203259527683,
0.1519530862569809,
0.012989620678126812,
-0.02839389070868492,
0.05256786569952965,
0.008920424617826939,
0.02943999320268631,
0.011960201896727085,
-0.004038402810692787,
0.04702054709196091
] | 0.10463 |
\*\*CLI-friendly API\*\* for automation and scripting. ## Security and moderation ClawHub is open by default. Anyone can upload skills, but a GitHub account must be at least one week old to publish. This helps slow down abuse without blocking legitimate contributors. Reporting and moderation: - Any signed in user can report a skill. - Report reasons are required and recorded. - Each user can have up to 20 active reports at a time. - Skills with more than 3 unique reports are auto hidden by default. - Moderators can view hidden skills, unhide them, delete them, or ban users. - Abusing the report feature can result in account bans. Interested in becoming a moderator? Ask in the OpenClaw Discord and contact a moderator or maintainer. ## CLI commands and parameters Global options (apply to all commands): - `--workdir `: Working directory (default: current dir; falls back to OpenClaw workspace). - `--dir `: Skills directory, relative to workdir (default: `skills`). - `--site `: Site base URL (browser login). - `--registry `: Registry API base URL. - `--no-input`: Disable prompts (non-interactive). - `-V, --cli-version`: Print CLI version. Auth: - `clawhub login` (browser flow) or `clawhub login --token ` - `clawhub logout` - `clawhub whoami` Options: - `--token `: Paste an API token. - `--label `: Label stored for browser login tokens (default: `CLI token`). - `--no-browser`: Do not open a browser (requires `--token`). Search: - `clawhub search "query"` - `--limit `: Max results. Install: - `clawhub install ` - `--version `: Install a specific version. - `--force`: Overwrite if the folder already exists. Update: - `clawhub update ` - `clawhub update --all` - `--version `: Update to a specific version (single slug only). - `--force`: Overwrite when local files do not match any published version. List: - `clawhub list` (reads `.clawhub/lock.json`) Publish: - `clawhub publish ` - `--slug `: Skill slug. - `--name `: Display name. - `--version `: Semver version. - `--changelog `: Changelog text (can be empty). - `--tags `: Comma-separated tags (default: `latest`). Delete/undelete (owner/admin only): - `clawhub delete --yes` - `clawhub undelete --yes` Sync (scan local skills + publish new/updated): - `clawhub sync` - `--root `: Extra scan roots. - `--all`: Upload everything without prompts. - `--dry-run`: Show what would be uploaded. - `--bump `: `patch|minor|major` for updates (default: `patch`). - `--changelog `: Changelog for non-interactive updates. - `--tags `: Comma-separated tags (default: `latest`). - `--concurrency `: Registry checks (default: 4). ## Common workflows for agents ### Search for skills ```bash clawhub search "postgres backups" ``` ### Download new skills ```bash clawhub install my-skill-pack ``` ### Update installed skills ```bash clawhub update --all ``` ### Back up your skills (publish or sync) For a single skill folder: ```bash clawhub publish ./my-skill --slug my-skill --name "My Skill" --version 1.0.0 --tags latest ``` To scan and back up many skills at once: ```bash clawhub sync --all ``` ## Advanced details (technical) ### Versioning and tags - Each publish creates a new \*\*semver\*\* `SkillVersion`. - Tags (like `latest`) point to a version; moving tags lets you roll back. - Changelogs are attached per version and can be empty when syncing or publishing updates. ### Local changes vs registry versions Updates compare the local skill contents to registry versions using a content hash. If local files do not match any published version, the CLI asks before overwriting (or requires `--force` in non-interactive runs). ### Sync scanning and fallback roots `clawhub sync` scans your current workdir first. If no skills are found, it falls back to known legacy locations (for example `~/openclaw/skills` and `~/.openclaw/skills`). This is designed to find older skill installs without | https://github.com/openclaw/openclaw/blob/main//docs/tools/clawhub.md | main | opebclaw | [
-0.08854992687702179,
0.018176767975091934,
-0.09729974716901779,
0.01599138043820858,
0.03162865340709686,
-0.026109719648957253,
0.01732909120619297,
0.024207748472690582,
-0.07229005545377731,
-0.010991107672452927,
0.022997723892331123,
-0.02406170591711998,
0.10995574295520782,
0.038065217435359955,
0.010722148232161999,
0.07986625283956528,
0.002389251720160246,
-0.009760825894773006,
-0.021787233650684357,
-0.04842047393321991,
0.04805154353380203,
0.023983273655176163,
-0.011761747300624847,
-0.030487066134810448,
-0.06902633607387543,
-0.0681348517537117,
-0.057710785418748856,
-0.03360071778297424,
-0.02309497818350792,
-0.021888110786676407,
-0.004963743966072798,
0.05070321261882782,
0.015714336186647415,
-0.014742068946361542,
0.0265639815479517,
0.04834871366620064,
0.09373129904270172,
0.018204251304268837,
0.0048833140172064304,
-0.04670199751853943,
0.01350327953696251,
-0.013172948732972145,
-0.029907621443271637,
-0.08727958798408508,
-0.04546421021223068,
-0.06433296948671341,
0.0012458721175789833,
-0.08523811399936676,
-0.041285887360572815,
0.0075271250680089,
-0.07725456357002258,
-0.08394857496023178,
0.08712003380060196,
-0.038006316870450974,
0.06368949264287949,
-0.09583780914545059,
0.005494056735187769,
-0.010308693163096905,
0.03167799860239029,
-0.07422100752592087,
0.04811752587556839,
0.02857791632413864,
-0.08737348020076752,
0.02833382785320282,
0.043734218925237656,
0.02108374796807766,
-0.06476552039384842,
-0.026807546615600586,
0.03304366022348404,
-0.05109814926981926,
-0.02117609791457653,
-0.04426785185933113,
-0.0750574991106987,
0.00645965663716197,
0.08867527544498444,
-0.04663673788309097,
-0.06493446975946426,
0.12612447142601013,
0.028857087716460228,
-0.047989487648010254,
-0.0010868263198062778,
0.0070343478582799435,
0.027543863281607628,
0.0754353329539299,
-0.07223647087812424,
0.08419419825077057,
0.045828644186258316,
0.08940744400024414,
0.07623307406902313,
0.027392705902457237,
0.056805212050676346,
0.04495221748948097,
0.0626906007528305,
-0.008281830698251724,
-0.045620277523994446,
-0.06204868480563164,
-0.01686408929526806,
-0.020086608827114105,
-0.03930041939020157,
0.11641744524240494,
-0.029305696487426758,
-0.030728060752153397,
-0.01838628016412258,
-0.05222884565591812,
-0.027604522183537483,
0.030611904338002205,
0.04440658912062645,
0.050018616020679474,
-0.05093713104724884,
0.03275212645530701,
-0.0014091331977397203,
0.01280758623033762,
0.0014940948458388448,
-0.06563068181276321,
0.06489202380180359,
0.08486472815275192,
-0.008948532864451408,
0.04783675819635391,
0.07950323075056076,
0.04527922347187996,
0.11064433306455612,
0.06393483281135559,
-0.01276375725865364,
0.006695824675261974,
0.10180392116308212,
0.06717084348201752,
-0.051481105387210846,
6.434102859372346e-33,
0.1517021358013153,
0.033085282891988754,
-0.02929769828915596,
0.04382956027984619,
0.023629168048501015,
0.08427741378545761,
0.028740763664245605,
0.008857591077685356,
-0.06372155994176865,
-0.030464695766568184,
0.009035970084369183,
0.08365371823310852,
0.0039590573869645596,
0.0175197571516037,
0.025382302701473236,
0.0051007806323468685,
-0.016145125031471252,
0.01336725614964962,
0.024690035730600357,
-0.003422836074605584,
0.06190952658653259,
-0.11714599281549454,
-0.024475568905472755,
0.09171503782272339,
0.0016894364962354302,
-0.04586324468255043,
-0.030520837754011154,
-0.06539460271596909,
0.08728287369012833,
0.02159610576927662,
-0.000938545330427587,
0.042444393038749695,
-0.0540398545563221,
0.005856398493051529,
-0.05886463075876236,
0.04128064960241318,
-0.040094029158353806,
-0.015919029712677002,
-0.0017322003841400146,
-0.03761449456214905,
0.004855722654610872,
0.05321073532104492,
-0.061334215104579926,
-0.004825279116630554,
0.05343496426939964,
-0.0446612648665905,
0.051012035459280014,
-0.009294669143855572,
0.022357236593961716,
0.059017524123191833,
-0.03781591355800629,
0.008090857416391373,
0.044633906334638596,
-0.02607283927500248,
-0.058774448931217194,
0.0011091670021414757,
-0.041804105043411255,
-0.05294685810804367,
-0.027348533272743225,
0.009818698279559612,
0.030449511483311653,
0.05786038190126419,
-0.04847712069749832,
0.05652222782373428,
-0.05535878241062164,
-0.09030753374099731,
-0.02032283879816532,
0.030683867633342743,
0.08585456013679504,
0.004476997070014477,
-0.055301912128925323,
0.010351560078561306,
-0.03786899894475937,
-0.04625312611460686,
-0.11742141097784042,
-0.11616621166467667,
0.018470952287316322,
-0.03983644023537636,
-0.010473551228642464,
0.045901037752628326,
0.08701431751251221,
0.01318366639316082,
0.026832368224859238,
-0.01636478491127491,
0.05816211923956871,
0.021073268726468086,
0.03145966678857803,
-0.007639204617589712,
-0.0046837362460792065,
0.05767683684825897,
-0.02124297060072422,
-0.049472834914922714,
-0.04558606073260307,
0.04154815897345543,
-0.08262740820646286,
-6.985552238598036e-33,
-0.0023489792365580797,
-0.10199984908103943,
0.0077312905341386795,
0.008909685537219048,
0.04686567932367325,
0.01457666140049696,
-0.013391521759331226,
-0.06557697057723999,
-0.0003885297628585249,
-0.08476573973894119,
-0.0281387846916914,
0.04410240054130554,
0.024603189900517464,
-0.004247388336807489,
-0.001981330569833517,
-0.03641705960035324,
-0.09999437630176544,
0.023608380928635597,
-0.07759129256010056,
-0.030501309782266617,
-0.019419502466917038,
0.02217409573495388,
-0.028496775776147842,
0.06136138364672661,
-0.029594408348202705,
-0.03995121642947197,
0.019291047006845474,
0.034466467797756195,
0.0299664493650198,
0.028927380219101906,
0.07257251441478729,
-0.010679781436920166,
-0.10424335300922394,
0.025225553661584854,
-0.03305736556649208,
-0.030802523717284203,
-0.042296264320611954,
0.042646512389183044,
0.028814349323511124,
0.0355316661298275,
0.00170450983569026,
0.0014616419794037938,
-0.06803112477064133,
-0.08110186457633972,
-0.03843405097723007,
0.030003225430846214,
-0.02621443197131157,
-0.050804026424884796,
-0.11118832230567932,
0.020780127495527267,
0.013101211749017239,
-0.03655846044421196,
0.07573895901441574,
-0.03500375524163246,
0.009089008904993534,
-0.008979628793895245,
0.043549492955207825,
-0.06349346786737442,
-0.023549973964691162,
0.04179922863841057,
0.0001506039552623406,
0.054772499948740005,
-0.057686612010002136,
0.09122229367494583,
0.039530958980321884,
-0.1172628402709961,
0.025791645050048828,
0.08618249744176865,
-0.05759918689727783,
0.007268810644745827,
0.02249130606651306,
-0.04159730300307274,
0.05302185192704201,
-0.0833309218287468,
0.03600854054093361,
-0.03533198684453964,
-0.026117969304323196,
-0.021756503731012344,
-0.051019299775362015,
0.06164540722966194,
-0.033146485686302185,
0.016680555418133736,
0.05384102463722229,
-0.004064916633069515,
-0.023145196959376335,
0.04312170669436455,
0.05205691605806351,
0.057924285531044006,
0.10371372103691101,
0.030557502061128616,
-0.05890318751335144,
-0.07038939744234085,
-0.013207335025072098,
-0.021007131785154343,
0.09502928704023361,
-6.048120582136107e-8,
0.03879522904753685,
-0.004569523967802525,
-0.06566200405359268,
0.08297741413116455,
-0.01546054519712925,
0.03232026845216751,
-0.026810331270098686,
0.04525473713874817,
-0.020508723333477974,
0.024935899302363396,
0.1366574615240097,
-0.06983810663223267,
-0.02354452945291996,
-0.04236142337322235,
0.05872443690896034,
0.05187097191810608,
0.05910423398017883,
0.06405270844697952,
-0.04165019094944,
-0.06196752190589905,
-0.037420131266117096,
-0.06398708373308182,
0.024113070219755173,
0.03381003811955452,
-0.05324585735797882,
-0.10717344284057617,
-0.05240963026881218,
0.01638321578502655,
-0.01649671234190464,
0.03468047454953194,
-0.04793256148695946,
-0.04915996640920639,
0.019468849524855614,
-0.06880657374858856,
-0.005816447548568249,
0.025316115468740463,
-0.07756336033344269,
-0.02262157015502453,
-0.00048288959078490734,
0.03813951089978218,
0.02430535852909088,
0.04622848331928253,
0.03103010356426239,
-0.007029898930341005,
-0.07897544652223587,
-0.02462282031774521,
-0.029130510985851288,
-0.04361293837428093,
0.014674191363155842,
-0.039939649403095245,
-0.002632519230246544,
0.053056880831718445,
0.009343941695988178,
0.13612328469753265,
0.031406380236148834,
0.15698786079883575,
0.01896144263446331,
-0.014173430390655994,
-0.0000029053594516881276,
0.015366689302027225,
0.038493562489748,
-0.01034175418317318,
0.01835641637444496,
0.005630892235785723
] | 0.097516 |
the CLI asks before overwriting (or requires `--force` in non-interactive runs). ### Sync scanning and fallback roots `clawhub sync` scans your current workdir first. If no skills are found, it falls back to known legacy locations (for example `~/openclaw/skills` and `~/.openclaw/skills`). This is designed to find older skill installs without extra flags. ### Storage and lockfile - Installed skills are recorded in `.clawhub/lock.json` under your workdir. - Auth tokens are stored in the ClawHub CLI config file (override via `CLAWHUB\_CONFIG\_PATH`). ### Telemetry (install counts) When you run `clawhub sync` while logged in, the CLI sends a minimal snapshot to compute install counts. You can disable this entirely: ```bash export CLAWHUB\_DISABLE\_TELEMETRY=1 ``` ## Environment variables - `CLAWHUB\_SITE`: Override the site URL. - `CLAWHUB\_REGISTRY`: Override the registry API URL. - `CLAWHUB\_CONFIG\_PATH`: Override where the CLI stores the token/config. - `CLAWHUB\_WORKDIR`: Override the default workdir. - `CLAWHUB\_DISABLE\_TELEMETRY=1`: Disable telemetry on `sync`. | https://github.com/openclaw/openclaw/blob/main//docs/tools/clawhub.md | main | opebclaw | [
-0.0790778398513794,
0.015188196673989296,
-0.011665383353829384,
-0.010328378528356552,
-0.0015203686198219657,
-0.058864910155534744,
-0.03896823525428772,
-0.07131725549697876,
-0.07037988305091858,
-0.07407654821872711,
0.02037350833415985,
-0.030409233644604683,
0.05519997701048851,
0.013272582553327084,
-0.03474748879671097,
0.05367811396718025,
-0.032159071415662766,
-0.06490837037563324,
0.0010048861149698496,
-0.012738681398332119,
-0.036302123218774796,
-0.029204117134213448,
0.03132392093539238,
-0.05150206759572029,
-0.04621841013431549,
-0.042441580444574356,
-0.08206795901060104,
-0.026720542460680008,
-0.004026476759463549,
0.011596613563597202,
0.016560807824134827,
0.12432875484228134,
0.009723212569952011,
-0.03219137340784073,
0.05819501355290413,
0.07995730638504028,
0.01437064353376627,
0.03589266911149025,
0.006093430798500776,
0.03333332762122154,
0.056028638035058975,
0.04022783413529396,
-0.04424365982413292,
-0.09869877994060516,
-0.03798004612326622,
-0.02695372700691223,
0.014438027516007423,
-0.08673375099897385,
-0.047055166214704514,
0.06253105401992798,
-0.02554418332874775,
-0.03355856239795685,
0.027414284646511078,
-0.03960466384887695,
0.08422654122114182,
0.03536381945014,
0.03752162680029869,
0.06151343882083893,
0.02372162416577339,
-0.028252262622117996,
0.09585756808519363,
0.0700722336769104,
-0.059844691306352615,
-0.024301402270793915,
-0.01308284793049097,
-0.0335346944630146,
-0.039242956787347794,
-0.07727301865816116,
0.014460488222539425,
-0.05051659792661667,
0.016775423660874367,
-0.02647075429558754,
-0.04386957362294197,
-0.055906325578689575,
0.025586070492863655,
-0.0007851585396565497,
-0.021803230047225952,
0.12428705394268036,
-0.08348438143730164,
-0.1287902593612671,
-0.07319237291812897,
-0.04638341814279556,
0.03258092328906059,
0.01585656777024269,
-0.022751256823539734,
0.08035401254892349,
0.024876292794942856,
-0.04904484003782272,
0.10053114593029022,
-0.0019379252335056663,
0.08985036611557007,
-0.08664752542972565,
-0.050976596772670746,
-0.0268678180873394,
0.05945340916514397,
0.004910539370030165,
0.016985436901450157,
0.14999452233314514,
-0.055155426263809204,
0.04202074185013771,
-0.06160077452659607,
-0.09089888632297516,
0.03107992373406887,
-0.012649632059037685,
-0.017164306715130806,
0.08139340579509735,
-0.041217852383852005,
0.04064524546265602,
-0.0036009668838232756,
0.030627666041254997,
0.0781063511967659,
0.04494790732860565,
0.04108293354511261,
0.045861534774303436,
0.0007718735723756254,
0.04473603516817093,
-0.07208123803138733,
0.029929153621196747,
0.026471499353647232,
0.10402219742536545,
0.10566301643848419,
0.04773813113570213,
0.08444806188344955,
-0.028460590168833733,
-0.0038457720074802637,
0.009971946477890015,
-0.025018544867634773,
1.9218748562188836e-33,
0.1462494432926178,
0.0020060257520526648,
-0.02482754737138748,
-0.016651595011353493,
-0.012270609848201275,
0.019798608496785164,
0.04225039482116699,
0.03270072117447853,
-0.02912149205803871,
-0.009508561342954636,
-0.04449348896741867,
0.04496198892593384,
-0.010253910906612873,
-0.012932625599205494,
-0.020443813875317574,
0.05028088390827179,
-0.053130026906728745,
-0.03109750710427761,
0.04199293628334999,
0.021219436079263687,
0.11116505414247513,
-0.004830508958548307,
-0.07227074354887009,
0.026937000453472137,
-0.024672619998455048,
0.005434143822640181,
0.029747003689408302,
-0.08734630793333054,
0.02301056869328022,
0.02451121062040329,
0.011463339440524578,
0.003401785157620907,
0.01803252287209034,
0.010634089820086956,
-0.053507182747125626,
0.06165106222033501,
-0.0024190680123865604,
-0.014956570230424404,
-0.017116723582148552,
-0.0485418364405632,
0.10975834727287292,
-0.00735385250300169,
-0.04813257232308388,
-0.03665043041110039,
0.05066797509789467,
-0.10610653460025787,
0.0531589649617672,
-0.018455222249031067,
0.031032558530569077,
0.0689912736415863,
-0.07614120095968246,
-0.034174270927906036,
0.05822710320353508,
-0.02753634937107563,
-0.09468983113765717,
0.0007041300996206701,
0.03629906103014946,
-0.07931026816368103,
-0.04468054324388504,
0.02452957257628441,
0.030706647783517838,
0.033224884420633316,
0.03357570245862007,
0.04182009398937225,
-0.03934071958065033,
-0.043059706687927246,
0.02919810265302658,
0.018191928043961525,
0.1360689401626587,
-0.012847584672272205,
-0.059896472841501236,
-0.019105805084109306,
-0.0517444983124733,
0.006249140948057175,
-0.07210025191307068,
-0.09423449635505676,
0.02157858945429325,
0.00472142081707716,
-0.03429066017270088,
-0.0016540315700694919,
0.054406583309173584,
0.02280411496758461,
-0.009711608290672302,
0.011127257719635963,
0.0955180898308754,
-0.02519666962325573,
0.011823797598481178,
-0.07744148373603821,
-0.052858900278806686,
0.07431616634130478,
-0.006018632557243109,
-0.038642819970846176,
-0.08853470534086227,
-0.0044091204181313515,
-0.0861346647143364,
-3.147727017688413e-33,
0.040678538382053375,
-0.10947570949792862,
0.060812074691057205,
0.024887390434741974,
0.010593128390610218,
0.005270875990390778,
0.003121747402474284,
-0.05604928731918335,
-0.05836717039346695,
-0.10089205950498581,
0.009854525327682495,
0.07034110277891159,
0.08181925863027573,
0.02729031629860401,
-0.03431512787938118,
0.0665135607123375,
-0.07674340903759003,
0.054931968450546265,
0.001275324379093945,
-0.006602386478334665,
0.01276483479887247,
-0.048579659312963486,
0.008660600520670414,
0.10524260252714157,
0.001195036806166172,
-0.010433425195515156,
-0.015001888386905193,
-0.07017067819833755,
0.06966017186641693,
0.0057069407775998116,
0.052553705871105194,
-0.024884700775146484,
-0.11015824228525162,
0.0420147143304348,
-0.03760800510644913,
-0.03330952301621437,
-0.10966680198907852,
0.03317591920495033,
0.006746071390807629,
0.01409362442791462,
0.029711036011576653,
-0.02393808774650097,
-0.0816076472401619,
0.008364249020814896,
-0.01716739498078823,
0.014729088172316551,
-0.047019027173519135,
-0.026013249531388283,
-0.10449553281068802,
-0.01896299608051777,
0.11499422788619995,
-0.010809666477143764,
0.0795154795050621,
0.02135881595313549,
-0.015393205918371677,
0.04088733717799187,
0.07453162223100662,
-0.010774428024888039,
-0.07662267982959747,
0.015686528757214546,
0.08222377300262451,
0.007083559408783913,
0.015373177826404572,
0.04734726995229721,
-0.03302336484193802,
0.007317115552723408,
0.037263307720422745,
0.07840044796466827,
-0.09815678000450134,
0.026750722900032997,
0.01996774598956108,
0.00018887397891376168,
0.005177516024559736,
-0.04811837151646614,
0.012917856685817242,
0.007628134451806545,
-0.029870081692934036,
-0.025638457387685776,
0.006891975644975901,
-0.00026530507602728903,
-0.0741490051150322,
-0.019741490483283997,
-0.004498544614762068,
0.004770774859935045,
-0.03362543508410454,
0.048781007528305054,
0.027911683544516563,
0.06356702744960785,
0.06863826513290405,
0.03539435565471649,
-0.059886280447244644,
-0.01720508188009262,
-0.057587526738643646,
-0.07861499488353729,
0.009816129691898823,
-4.9621906583752207e-8,
0.022361019626259804,
0.02521752379834652,
-0.09908189624547958,
0.06528983265161514,
0.040155332535505295,
-0.02422676607966423,
0.011197700165212154,
0.059564750641584396,
-0.05982246622443199,
0.010592163540422916,
0.10852616280317307,
-0.05922640115022659,
-0.03378153219819069,
-0.007825415581464767,
0.037490114569664,
0.06414535641670227,
0.0610085166990757,
0.02562968246638775,
-0.006816996727138758,
-0.08379296213388443,
0.022893894463777542,
-0.0011410050792619586,
-0.004304712172597647,
0.04708041623234749,
-0.003680948633700609,
-0.05388408154249191,
-0.0018592170672491193,
0.0052969553507864475,
-0.008897308260202408,
0.022734923288226128,
0.008739558979868889,
-0.061604294925928116,
0.040696896612644196,
-0.09404072165489197,
0.03181685134768486,
0.02129453979432583,
-0.05276641622185707,
-0.008518347516655922,
0.05183272436261177,
0.015115726739168167,
-0.01098357979208231,
0.05938761308789253,
-0.0062300157733261585,
-0.030845997855067253,
-0.05742798000574112,
-0.05789974331855774,
-0.00985005684196949,
0.022718187421560287,
-0.02471768483519554,
-0.03649607300758362,
-0.01522569265216589,
0.07319027930498123,
-0.03653108701109886,
0.08035045117139816,
0.032714344561100006,
0.13967986404895782,
-0.010518528521060944,
-0.04318292438983917,
0.0503557026386261,
-0.012021109461784363,
0.008331343531608582,
-0.05999406799674034,
-0.021807486191391945,
0.0007276076357811689
] | -0.02704 |
# Exec approvals Exec approvals are the \*\*companion app / node host guardrail\*\* for letting a sandboxed agent run commands on a real host (`gateway` or `node`). Think of it like a safety interlock: commands are allowed only when policy + allowlist + (optional) user approval all agree. Exec approvals are \*\*in addition\*\* to tool policy and elevated gating (unless elevated is set to `full`, which skips approvals). Effective policy is the \*\*stricter\*\* of `tools.exec.\*` and approvals defaults; if an approvals field is omitted, the `tools.exec` value is used. If the companion app UI is \*\*not available\*\*, any request that requires a prompt is resolved by the \*\*ask fallback\*\* (default: deny). ## Where it applies Exec approvals are enforced locally on the execution host: - \*\*gateway host\*\* → `openclaw` process on the gateway machine - \*\*node host\*\* → node runner (macOS companion app or headless node host) macOS split: - \*\*node host service\*\* forwards `system.run` to the \*\*macOS app\*\* over local IPC. - \*\*macOS app\*\* enforces approvals + executes the command in UI context. ## Settings and storage Approvals live in a local JSON file on the execution host: `~/.openclaw/exec-approvals.json` Example schema: ```json { "version": 1, "socket": { "path": "~/.openclaw/exec-approvals.sock", "token": "base64url-token" }, "defaults": { "security": "deny", "ask": "on-miss", "askFallback": "deny", "autoAllowSkills": false }, "agents": { "main": { "security": "allowlist", "ask": "on-miss", "askFallback": "deny", "autoAllowSkills": true, "allowlist": [ { "id": "B0C8C0B3-2C2D-4F8A-9A3C-5A4B3C2D1E0F", "pattern": "~/Projects/\*\*/bin/rg", "lastUsedAt": 1737150000000, "lastUsedCommand": "rg -n TODO", "lastResolvedPath": "/Users/user/Projects/.../bin/rg" } ] } } } ``` ## Policy knobs ### Security (`exec.security`) - \*\*deny\*\*: block all host exec requests. - \*\*allowlist\*\*: allow only allowlisted commands. - \*\*full\*\*: allow everything (equivalent to elevated). ### Ask (`exec.ask`) - \*\*off\*\*: never prompt. - \*\*on-miss\*\*: prompt only when allowlist does not match. - \*\*always\*\*: prompt on every command. ### Ask fallback (`askFallback`) If a prompt is required but no UI is reachable, fallback decides: - \*\*deny\*\*: block. - \*\*allowlist\*\*: allow only if allowlist matches. - \*\*full\*\*: allow. ## Allowlist (per agent) Allowlists are \*\*per agent\*\*. If multiple agents exist, switch which agent you’re editing in the macOS app. Patterns are \*\*case-insensitive glob matches\*\*. Patterns should resolve to \*\*binary paths\*\* (basename-only entries are ignored). Legacy `agents.default` entries are migrated to `agents.main` on load. Examples: - `~/Projects/\*\*/bin/bird` - `~/.local/bin/\*` - `/opt/homebrew/bin/rg` Each allowlist entry tracks: - \*\*id\*\* stable UUID used for UI identity (optional) - \*\*last used\*\* timestamp - \*\*last used command\*\* - \*\*last resolved path\*\* ## Auto-allow skill CLIs When \*\*Auto-allow skill CLIs\*\* is enabled, executables referenced by known skills are treated as allowlisted on nodes (macOS node or headless node host). This uses `skills.bins` over the Gateway RPC to fetch the skill bin list. Disable this if you want strict manual allowlists. ## Safe bins (stdin-only) `tools.exec.safeBins` defines a small list of \*\*stdin-only\*\* binaries (for example `jq`) that can run in allowlist mode \*\*without\*\* explicit allowlist entries. Safe bins reject positional file args and path-like tokens, so they can only operate on the incoming stream. Shell chaining and redirections are not auto-allowed in allowlist mode. Shell chaining (`&&`, `||`, `;`) is allowed when every top-level segment satisfies the allowlist (including safe bins or skill auto-allow). Redirections remain unsupported in allowlist mode. Command substitution (`$()` / backticks) is rejected during allowlist parsing, including inside double quotes; use single quotes if you need literal `$()` text. Default safe bins: `jq`, `grep`, `cut`, `sort`, `uniq`, `head`, `tail`, `tr`, `wc`. ## Control UI editing Use the \*\*Control UI → Nodes → Exec approvals\*\* card to edit defaults, per‑agent overrides, and allowlists. Pick a scope (Defaults or an agent), tweak the policy, add/remove allowlist patterns, then \*\*Save\*\*. The | https://github.com/openclaw/openclaw/blob/main//docs/tools/exec-approvals.md | main | opebclaw | [
0.003064432879909873,
0.04100849851965904,
-0.0035992355551570654,
0.003854190930724144,
0.08506857603788376,
-0.04003080353140831,
0.013464607298374176,
-0.019590338692069054,
-0.0005955927772447467,
0.03921077027916908,
0.06423211842775345,
-0.06255932152271271,
0.07012513279914856,
-0.022045833989977837,
0.06843212991952896,
0.06982415914535522,
0.16738639771938324,
-0.04915317893028259,
-0.01714116521179676,
0.006108962465077639,
-0.02955067902803421,
0.011797378771007061,
0.029707448557019234,
-0.009916437789797783,
-0.1465524584054947,
-0.1012122854590416,
-0.032733943313360214,
-0.06620650738477707,
-0.018516428768634796,
-0.0009445979376323521,
0.0006391431670635939,
-0.027295667678117752,
-0.04340558871626854,
0.02679617702960968,
0.04163067787885666,
0.06693432480096817,
0.07045937329530716,
-0.010156337171792984,
-0.07604089379310608,
-0.03625119477510452,
0.04385906830430031,
-0.006001193076372147,
-0.04539138078689575,
-0.024199452251195908,
-0.05044564604759216,
-0.07024051994085312,
-0.056846167892217636,
-0.08565272390842438,
-0.08445210754871368,
-0.009325197897851467,
0.008923481218516827,
0.0029781213961541653,
0.024125052616000175,
-0.02973160520195961,
-0.014843971468508244,
0.0014320765621960163,
0.05342911183834076,
0.01419620681554079,
0.07372131198644638,
0.02268783003091812,
0.013491900637745857,
0.030104439705610275,
-0.07930660992860794,
-0.005925266072154045,
-0.011594620533287525,
-0.006499151699244976,
-0.061809320002794266,
-0.06035394221544266,
0.028325242921710014,
-0.023958448320627213,
-0.0019721013959497213,
0.012754963710904121,
-0.06948699802160263,
-0.052372053265571594,
0.011500813998281956,
-0.023082399740815163,
-0.07156836986541748,
0.026012156158685684,
-0.03317162021994591,
-0.12931464612483978,
-0.016363535076379776,
-0.003563474165275693,
-0.024559518322348595,
0.030079923570156097,
-0.05147537961602211,
0.07446768879890442,
-0.01966720074415207,
0.03320862725377083,
0.10737760365009308,
0.10877881944179535,
0.061137571930885315,
-0.05382455885410309,
0.0031676713842898607,
0.03221863508224487,
0.09386246651411057,
-0.019795069471001625,
-0.11002454161643982,
-0.06662221997976303,
-0.11701730638742447,
0.042406074702739716,
0.016481837257742882,
-0.08217829465866089,
-0.008419944904744625,
0.0029241417068988085,
0.0007621909608133137,
-0.012320327572524548,
0.05216706171631813,
-0.05224229767918587,
0.05256887525320053,
-0.0003125628863926977,
-0.05169205740094185,
-0.0818847268819809,
0.025686660781502724,
-0.01490046177059412,
-0.018779637292027473,
0.045923519879579544,
0.04837010055780411,
-0.021007921546697617,
0.015113401226699352,
0.0321052223443985,
0.07109510898590088,
-0.0038762432523071766,
0.09299302101135254,
-0.010645560920238495,
0.13423305749893188,
-0.013391205109655857,
-0.013090427964925766,
4.13194823382276e-33,
0.013320012018084526,
-0.055005189031362534,
-0.024412525817751884,
0.015743454918265343,
0.09154222160577774,
-0.0058211698196828365,
0.03576536849141121,
-0.005247853230684996,
-0.049970608204603195,
0.005252157337963581,
-0.03216157108545303,
0.025345655158162117,
0.06266377121210098,
-0.008562635630369186,
0.06226079538464546,
-0.0302351713180542,
0.04404476284980774,
0.052564047276973724,
0.03700729086995125,
0.03157172352075577,
0.05167250335216522,
-0.05141773074865341,
-0.02894413284957409,
0.07518535107374191,
-0.0023522456176579,
-0.014999519102275372,
-0.08477435261011124,
0.053686901926994324,
0.1192997395992279,
0.044676993042230606,
0.00818233285099268,
0.05105431377887726,
-0.015008185990154743,
0.06293457746505737,
-0.037434522062540054,
0.10326354205608368,
-0.06104915589094162,
-0.05895864591002464,
0.02175169065594673,
-0.017618197947740555,
-0.018228232860565186,
-0.0020326462108641863,
0.013446950353682041,
0.007973083294928074,
-0.03358237072825432,
-0.12218690663576126,
-0.06699905544519424,
-0.053249962627887726,
0.08432319760322571,
0.03871336951851845,
0.02193649299442768,
0.027161382138729095,
0.058062463998794556,
0.01810363680124283,
-0.025272617116570473,
-0.048396334052085876,
-0.04216400906443596,
0.04330403730273247,
-0.02586515247821808,
-0.005080066621303558,
0.015851758420467377,
0.04878980666399002,
-0.041116584092378616,
0.013806949369609356,
-0.002041843021288514,
0.00770164281129837,
-0.024509752169251442,
0.013649477623403072,
-0.0166936032474041,
-0.019870717078447342,
-0.123642697930336,
0.026299288496375084,
0.032121311873197556,
-0.0019069750560447574,
-0.0452679879963398,
-0.08744286745786667,
-0.005428823176771402,
-0.05288537219166756,
0.02138816937804222,
-0.046694159507751465,
-0.06793924421072006,
-0.0025873726699501276,
-0.009661787189543247,
0.017902303487062454,
-0.01945248618721962,
0.013736078515648842,
-0.055691204965114594,
0.056895896792411804,
0.06287351250648499,
0.026050040498375893,
0.07688932120800018,
0.017800742760300636,
-0.07420085370540619,
0.07784992456436157,
-0.04118204116821289,
-7.045941056819623e-33,
0.04207758978009224,
-0.01626182161271572,
-0.056059423834085464,
-0.009494253434240818,
-0.01628335937857628,
-0.0013437358429655433,
-0.06433366239070892,
-0.13211676478385925,
0.03855268284678459,
-0.035129301249980927,
-0.06234493851661682,
0.05814287066459656,
0.04633904993534088,
-0.018650023266673088,
0.05348791927099228,
-0.08978733420372009,
-0.03373108431696892,
-0.02987504005432129,
0.06490278244018555,
-0.0459020622074604,
0.0009618661715649068,
0.04910610243678093,
-0.004151498898863792,
0.00835412461310625,
0.0002472318592481315,
-0.06337893754243851,
-0.022036628797650337,
0.036184195429086685,
0.029392780736088753,
-0.0733836442232132,
0.030273310840129852,
-0.03412855044007301,
-0.07777851074934006,
0.029093187302350998,
0.03669160231947899,
-0.024739857763051987,
-0.035424672067165375,
0.09973587095737457,
-0.04422549158334732,
0.0010391869582235813,
0.04217198118567467,
-0.04553094506263733,
0.0022220679093152285,
0.06811606138944626,
0.023630648851394653,
0.05347668007016182,
-0.0044044265523552895,
-0.035125598311424255,
-0.03596579656004906,
0.01771882362663746,
-0.004935096949338913,
0.04886274412274361,
0.054384682327508926,
0.01609252206981182,
-0.017142869532108307,
0.03440584987401962,
0.06098020449280739,
0.06031208112835884,
0.014627502299845219,
-0.015539828687906265,
0.07730957865715027,
0.012254727073013783,
-0.06097327917814255,
0.03711032122373581,
-0.001796988071873784,
-0.025685349479317665,
-0.002095741219818592,
0.07488585263490677,
0.033379919826984406,
-0.009779279120266438,
0.011404666118323803,
-0.021500278264284134,
-0.10422959923744202,
0.011661048047244549,
0.03437426686286926,
-0.03433357924222946,
0.060957565903663635,
-0.18089543282985687,
-0.019958902150392532,
0.014121374115347862,
-0.04057224467396736,
0.07592081278562546,
0.010157010518014431,
-0.000784000032581389,
-0.020633196458220482,
-0.07443225383758545,
-0.0661618635058403,
0.055613622069358826,
0.01588207483291626,
0.06716571748256683,
0.013122819364070892,
-0.0663900226354599,
-0.007863180711865425,
-0.013313093222677708,
-0.08703159540891647,
-5.572389127905808e-8,
0.04712609946727753,
0.0047800540924072266,
-0.06918951869010925,
-0.041555777192115784,
-0.024082448333501816,
-0.008423333056271076,
-0.011021550744771957,
-0.041951317340135574,
0.022054705768823624,
-0.022869866341352463,
0.03762137144804001,
-0.017461787909269333,
-0.03876220062375069,
-0.054545026272535324,
0.021441129967570305,
0.026173485442996025,
-0.0033097947016358376,
0.026131628081202507,
-0.036205973476171494,
-0.023021062836050987,
-0.09970102459192276,
-0.044650036841630936,
-0.0747845321893692,
0.02742910198867321,
-0.1053796038031578,
0.028736701235175133,
0.002345338696613908,
0.03834966570138931,
-0.07512915879487991,
0.1266467422246933,
-0.03250150755047798,
-0.015676604583859444,
0.018975071609020233,
0.02198435366153717,
-0.03239662945270538,
0.09825555980205536,
-0.05508170276880264,
0.031027937307953835,
0.09986208379268646,
-0.0019189207814633846,
-0.015994282439351082,
0.013509156182408333,
0.02017461135983467,
-0.042246486991643906,
-0.037580326199531555,
0.061385951936244965,
-0.027985597029328346,
-0.07428503781557083,
0.034842900931835175,
-0.014157922938466072,
-0.016449281945824623,
0.023405490443110466,
0.0055444021709263325,
0.11668151617050171,
0.03914019837975502,
0.051806557923555374,
0.023201027885079384,
-0.1774943470954895,
0.025627529248595238,
0.05749146267771721,
-0.0015897998819127679,
0.04430386796593666,
0.08247378468513489,
-0.022173449397087097
] | 0.11884 |
text. Default safe bins: `jq`, `grep`, `cut`, `sort`, `uniq`, `head`, `tail`, `tr`, `wc`. ## Control UI editing Use the \*\*Control UI → Nodes → Exec approvals\*\* card to edit defaults, per‑agent overrides, and allowlists. Pick a scope (Defaults or an agent), tweak the policy, add/remove allowlist patterns, then \*\*Save\*\*. The UI shows \*\*last used\*\* metadata per pattern so you can keep the list tidy. The target selector chooses \*\*Gateway\*\* (local approvals) or a \*\*Node\*\*. Nodes must advertise `system.execApprovals.get/set` (macOS app or headless node host). If a node does not advertise exec approvals yet, edit its local `~/.openclaw/exec-approvals.json` directly. CLI: `openclaw approvals` supports gateway or node editing (see [Approvals CLI](/cli/approvals)). ## Approval flow When a prompt is required, the gateway broadcasts `exec.approval.requested` to operator clients. The Control UI and macOS app resolve it via `exec.approval.resolve`, then the gateway forwards the approved request to the node host. When approvals are required, the exec tool returns immediately with an approval id. Use that id to correlate later system events (`Exec finished` / `Exec denied`). If no decision arrives before the timeout, the request is treated as an approval timeout and surfaced as a denial reason. The confirmation dialog includes: - command + args - cwd - agent id - resolved executable path - host + policy metadata Actions: - \*\*Allow once\*\* → run now - \*\*Always allow\*\* → add to allowlist + run - \*\*Deny\*\* → block ## Approval forwarding to chat channels You can forward exec approval prompts to any chat channel (including plugin channels) and approve them with `/approve`. This uses the normal outbound delivery pipeline. Config: ```json5 { approvals: { exec: { enabled: true, mode: "session", // "session" | "targets" | "both" agentFilter: ["main"], sessionFilter: ["discord"], // substring or regex targets: [ { channel: "slack", to: "U12345678" }, { channel: "telegram", to: "123456789" }, ], }, }, } ``` Reply in chat: ``` /approve allow-once /approve allow-always /approve deny ``` ### macOS IPC flow ``` Gateway -> Node Service (WS) | IPC (UDS + token + HMAC + TTL) v Mac App (UI + approvals + system.run) ``` Security notes: - Unix socket mode `0600`, token stored in `exec-approvals.json`. - Same-UID peer check. - Challenge/response (nonce + HMAC token + request hash) + short TTL. ## System events Exec lifecycle is surfaced as system messages: - `Exec running` (only if the command exceeds the running notice threshold) - `Exec finished` - `Exec denied` These are posted to the agent’s session after the node reports the event. Gateway-host exec approvals emit the same lifecycle events when the command finishes (and optionally when running longer than the threshold). Approval-gated execs reuse the approval id as the `runId` in these messages for easy correlation. ## Implications - \*\*full\*\* is powerful; prefer allowlists when possible. - \*\*ask\*\* keeps you in the loop while still allowing fast approvals. - Per-agent allowlists prevent one agent’s approvals from leaking into others. - Approvals only apply to host exec requests from \*\*authorized senders\*\*. Unauthorized senders cannot issue `/exec`. - `/exec security=full` is a session-level convenience for authorized operators and skips approvals by design. To hard-block host exec, set approvals security to `deny` or deny the `exec` tool via tool policy. Related: - [Exec tool](/tools/exec) - [Elevated mode](/tools/elevated) - [Skills](/tools/skills) | https://github.com/openclaw/openclaw/blob/main//docs/tools/exec-approvals.md | main | opebclaw | [
-0.015065372921526432,
0.04431362822651863,
-0.07054076343774796,
0.07707346975803375,
0.03685085102915764,
-0.05048667639493942,
0.03946094587445259,
-0.04800914227962494,
-0.03177851438522339,
0.04257171228528023,
0.059976931661367416,
-0.04312177374958992,
0.01966480165719986,
-0.03281186521053314,
0.021278589963912964,
0.0704430639743805,
0.06977784633636475,
-0.016178464516997337,
0.0023498062510043383,
-0.10091017931699753,
0.026476075872778893,
0.08717633783817291,
0.03221851587295532,
-0.03242193162441254,
-0.070180244743824,
-0.0027683074586093426,
-0.03999291732907295,
-0.04618454724550247,
-0.028574250638484955,
-0.028823845088481903,
0.013056444935500622,
0.007657190784811974,
0.06122470274567604,
0.022968748584389687,
0.06642734259366989,
-0.021678432822227478,
0.05844835937023163,
-0.014232740737497807,
0.013658620417118073,
-0.03883016109466553,
0.038298871368169785,
0.03437155857682228,
-0.06246127560734749,
-0.02444756217300892,
-0.08473595976829529,
-0.10404427349567413,
-0.039592474699020386,
-0.06763934344053268,
-0.023281922563910484,
0.014513242989778519,
0.006333745550364256,
-0.052122846245765686,
-0.0009707952267490327,
-0.10017994046211243,
0.041210345923900604,
-0.005036397837102413,
0.0013769097859039903,
-0.05216465890407562,
0.013822604902088642,
-0.010187448002398014,
0.021765515208244324,
0.0038286966737359762,
-0.036576710641384125,
0.017122315242886543,
-0.03067167103290558,
0.04705603048205376,
-0.08418094366788864,
0.006764364428818226,
0.021609945222735405,
-0.014635027386248112,
0.03343599662184715,
0.012846027500927448,
-0.08318781107664108,
-0.04182995855808258,
-0.02577478066086769,
0.02469557337462902,
-0.05584295466542244,
0.01494065672159195,
-0.08999747037887573,
-0.10959091037511826,
-0.032498799264431,
-0.004464067984372377,
-0.007484402973204851,
0.07182028889656067,
-0.011853533796966076,
0.053565431386232376,
-0.038284651935100555,
0.015192988328635693,
0.07085132598876953,
0.07007892429828644,
-0.013282999396324158,
-0.05794695019721985,
0.0592515766620636,
-0.048552148044109344,
0.020296944305300713,
0.06362209469079971,
-0.04624748229980469,
-0.036762431263923645,
-0.04294005036354065,
0.09078621119260788,
-0.01140899583697319,
-0.06723055243492126,
-0.0051854378543794155,
0.03802825137972832,
-0.004045405890792608,
0.01093937549740076,
0.036894541233778,
0.012277524918317795,
-0.0018252079607918859,
0.02292374148964882,
-0.0444079264998436,
-0.013234886340796947,
-0.01646948605775833,
-0.036020535975694656,
-0.010925762355327606,
0.03495999425649643,
0.0587957538664341,
0.04654872789978981,
0.009081576950848103,
0.12007201462984085,
0.0743318721652031,
-0.002281686058267951,
0.00181869650259614,
-0.010454353876411915,
0.13918271660804749,
0.07995586842298508,
0.0005077911773696542,
1.3383651542714619e-33,
0.046548955142498016,
-0.028698839247226715,
-0.0029062547255307436,
-0.028348883613944054,
0.09086930006742477,
0.03714900091290474,
0.007042389828711748,
-0.009410823695361614,
-0.06173660233616829,
0.07381892204284668,
0.03468404710292816,
0.05337716266512871,
0.001880128518678248,
-0.05829755961894989,
0.050904322415590286,
-0.048151008784770966,
0.0284875575453043,
0.06739134341478348,
0.05715637654066086,
-0.007284149061888456,
0.02566453628242016,
-0.03954095393419266,
-0.03226916119456291,
-0.006319915875792503,
-0.014003053307533264,
0.0045285639353096485,
-0.09270917624235153,
0.01675090752542019,
0.0644184798002243,
0.03406598046422005,
0.026222828775644302,
0.02618379145860672,
0.03194247558712959,
0.0422419011592865,
-0.07293663173913956,
0.08724240213632584,
-0.07033991068601608,
-0.042570166289806366,
0.03808167949318886,
-0.07616912573575974,
-0.029170619323849678,
0.00973693560808897,
-0.05515928938984871,
-0.0038779168389737606,
-0.006012195721268654,
-0.026899995282292366,
-0.13098178803920746,
-0.0458071269094944,
0.08239956200122833,
0.0074248360469937325,
0.05155347287654877,
0.022139396518468857,
0.0011987308971583843,
-0.01600276120007038,
-0.013398338109254837,
-0.05788407474756241,
-0.03541845828294754,
0.07214745134115219,
0.027879642322659492,
0.03529053181409836,
0.002322850516065955,
0.06789108365774155,
-0.08815101534128189,
0.042969852685928345,
0.04458887502551079,
0.01153160072863102,
0.01994411088526249,
-0.0004828675591852516,
-0.009476127102971077,
-0.015761274844408035,
-0.09593275934457779,
0.016340067610144615,
0.0399157740175724,
0.03628766909241676,
-0.04685215651988983,
-0.1304997205734253,
-0.05352672562003136,
-0.04382568225264549,
-0.03894226625561714,
-0.05558440461754799,
0.02693657949566841,
-0.02644907683134079,
-0.061071280390024185,
0.020847562700510025,
0.10029053688049316,
-0.0068075992166996,
0.02923695370554924,
0.02523847110569477,
0.04268144443631172,
0.03504836559295654,
0.021304311230778694,
0.018419191241264343,
-0.05952621251344681,
0.0202476866543293,
-0.050045713782310486,
-4.4704876681237016e-33,
0.05066875368356705,
0.0069345408119261265,
0.008001662790775299,
-0.04286056011915207,
-0.03665294870734215,
-0.017995834350585938,
-0.03849151358008385,
-0.006136217620223761,
0.07686949521303177,
-0.021005507558584213,
-0.007794549688696861,
0.06012279540300369,
0.044600557535886765,
-0.07513276487588882,
0.03804782032966614,
-0.039243701845407486,
-0.060390446335077286,
-0.017824841663241386,
-0.015889344736933708,
-0.04545336216688156,
-0.019346967339515686,
0.04931927099823952,
0.018143722787499428,
0.0695817694067955,
0.03220439329743385,
-0.073151595890522,
0.00015531264944002032,
0.07163601368665695,
0.014394252561032772,
-0.05823637545108795,
-0.04330969974398613,
0.002404901897534728,
-0.07481438666582108,
0.027684343978762627,
0.039146699011325836,
-0.07701703906059265,
-0.04046446830034256,
0.1518097221851349,
-0.020458824932575226,
0.0812472477555275,
0.009657029062509537,
-0.024976477026939392,
-0.04652394354343414,
0.05678209662437439,
-0.021094460040330887,
0.02757740207016468,
-0.04397658258676529,
0.02927554026246071,
-0.059662461280822754,
-0.028897123411297798,
-0.04244476929306984,
-0.0376468300819397,
-0.015051239170134068,
0.012350056320428848,
0.019106363877654076,
0.07731004804372787,
0.06432421505451202,
0.01077391766011715,
0.056723784655332565,
-0.05911049246788025,
-0.04595014452934265,
0.020932931452989578,
-0.03293538838624954,
0.05526074394583702,
0.05767231434583664,
-0.09726670384407043,
-0.03413595259189606,
0.02932700142264366,
0.029004152864217758,
-0.07814925163984299,
0.004869466181844473,
-0.040188029408454895,
-0.12238617986440659,
-0.01503667514771223,
0.037649620324373245,
-0.03678842633962631,
0.03013000451028347,
-0.10993024706840515,
-0.03698804974555969,
0.04585358127951622,
-0.001095159212127328,
0.12344610691070557,
0.00961690116673708,
-0.013817070983350277,
0.03002087213099003,
-0.046512484550476074,
-0.04042418301105499,
0.09821202605962753,
0.04877482354640961,
0.10585344582796097,
-0.06969617307186127,
-0.011648950167000294,
0.072623610496521,
-0.03368052467703819,
-0.07364705204963684,
-5.7350746374140726e-8,
-0.12446660548448563,
-0.07018157839775085,
-0.08339972794055939,
0.036200739443302155,
0.07087647169828415,
-0.0072156512178480625,
-0.04137961193919182,
0.0148161631077528,
-0.0018612559651955962,
-0.07604008913040161,
0.12797604501247406,
0.05670110881328583,
-0.0969395786523819,
-0.07522489130496979,
-0.01875636726617813,
0.0011139814741909504,
0.029945237562060356,
0.01159631833434105,
-0.006352549884468317,
0.02819060906767845,
-0.06976927816867828,
-0.012401585467159748,
-0.008719399571418762,
0.0368766114115715,
-0.09192170947790146,
-0.04615665227174759,
-0.03198084980249405,
0.00015468080528080463,
-0.04767453670501709,
0.16726446151733398,
0.0063496851362288,
-0.07007282227277756,
0.04473663121461868,
0.052888549864292145,
-0.05615288019180298,
-0.019952956587076187,
-0.057895466685295105,
-0.03519513085484505,
0.02628815919160843,
0.008058122359216213,
0.021645667031407356,
-0.004623993765562773,
-0.03955700993537903,
-0.017926430329680443,
-0.07641152292490005,
0.015035269781947136,
-0.03247411549091339,
-0.042296309024095535,
0.08158966153860092,
-0.07637886703014374,
-0.030207129195332527,
-0.007912522181868553,
0.036972250789403915,
0.06954029947519302,
-0.018476299941539764,
0.04637155681848526,
0.07174106687307358,
-0.09343550354242325,
-0.022893093526363373,
0.042490266263484955,
0.035399530082941055,
0.06046814098954201,
0.1134457215666771,
0.001782608451321721
] | 0.122806 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.