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
# MiniMax MiniMax is an AI company that builds the \*\*M2/M2.1\*\* model family. The current coding-focused release is \*\*MiniMax M2.1\*\* (December 23, 2025), built for real-world complex tasks. Source: [MiniMax M2.1 release note](https://www.minimax.io/news/minimax-m21) ## Model overview (M2.1) MiniMax highlights these improvements in M2.1: - Stronger \*\*multi-language coding\*\* (Rust, Java, Go, C++, Kotlin, Objective-C, TS/JS). - Better \*\*web/app development\*\* and aesthetic output quality (including native mobile). - Improved \*\*composite instruction\*\* handling for office-style workflows, building on interleaved thinking and integrated constraint execution. - \*\*More concise responses\*\* with lower token usage and faster iteration loops. - Stronger \*\*tool/agent framework\*\* compatibility and context management (Claude Code, Droid/Factory AI, Cline, Kilo Code, Roo Code, BlackBox). - Higher-quality \*\*dialogue and technical writing\*\* outputs. ## MiniMax M2.1 vs MiniMax M2.1 Lightning - \*\*Speed:\*\* Lightning is the “fast” variant in MiniMax’s pricing docs. - \*\*Cost:\*\* Pricing shows the same input cost, but Lightning has higher output cost. - \*\*Coding plan routing:\*\* The Lightning back-end isn’t directly available on the MiniMax coding plan. MiniMax auto-routes most requests to Lightning, but falls back to the regular M2.1 back-end during traffic spikes. ## Choose a setup ### MiniMax OAuth (Coding Plan) — recommended \*\*Best for:\*\* quick setup with MiniMax Coding Plan via OAuth, no API key required. Enable the bundled OAuth plugin and authenticate: ```bash openclaw plugins enable minimax-portal-auth # skip if already loaded. openclaw gateway restart # restart if gateway is already running openclaw onboard --auth-choice minimax-portal ``` You will be prompted to select an endpoint: - \*\*Global\*\* - International users (`api.minimax.io`) - \*\*CN\*\* - Users in China (`api.minimaxi.com`) See [MiniMax OAuth plugin README](https://github.com/openclaw/openclaw/tree/main/extensions/minimax-portal-auth) for details. ### MiniMax M2.1 (API key) \*\*Best for:\*\* hosted MiniMax with Anthropic-compatible API. Configure via CLI: - Run `openclaw configure` - Select \*\*Model/auth\*\* - Choose \*\*MiniMax M2.1\*\* ```json5 { env: { MINIMAX\_API\_KEY: "sk-..." }, agents: { defaults: { model: { primary: "minimax/MiniMax-M2.1" } } }, models: { mode: "merge", providers: { minimax: { baseUrl: "https://api.minimax.io/anthropic", apiKey: "${MINIMAX\_API\_KEY}", api: "anthropic-messages", models: [ { id: "MiniMax-M2.1", name: "MiniMax M2.1", reasoning: false, input: ["text"], cost: { input: 15, output: 60, cacheRead: 2, cacheWrite: 10 }, contextWindow: 200000, maxTokens: 8192, }, ], }, }, }, } ``` ### MiniMax M2.1 as fallback (Opus primary) \*\*Best for:\*\* keep Opus 4.5 as primary, fail over to MiniMax M2.1. ```json5 { env: { MINIMAX\_API\_KEY: "sk-..." }, agents: { defaults: { models: { "anthropic/claude-opus-4-5": { alias: "opus" }, "minimax/MiniMax-M2.1": { alias: "minimax" }, }, model: { primary: "anthropic/claude-opus-4-5", fallbacks: ["minimax/MiniMax-M2.1"], }, }, }, } ``` ### Optional: Local via LM Studio (manual) \*\*Best for:\*\* local inference with LM Studio. We have seen strong results with MiniMax M2.1 on powerful hardware (e.g. a desktop/server) using LM Studio's local server. Configure manually via `openclaw.json`: ```json5 { agents: { defaults: { model: { primary: "lmstudio/minimax-m2.1-gs32" }, models: { "lmstudio/minimax-m2.1-gs32": { alias: "Minimax" } }, }, }, models: { mode: "merge", providers: { lmstudio: { baseUrl: "http://127.0.0.1:1234/v1", apiKey: "lmstudio", api: "openai-responses", models: [ { id: "minimax-m2.1-gs32", name: "MiniMax M2.1 GS32", reasoning: false, input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 196608, maxTokens: 8192, }, ], }, }, }, } ``` ## Configure via `openclaw configure` Use the interactive config wizard to set MiniMax without editing JSON: 1. Run `openclaw configure`. 2. Select \*\*Model/auth\*\*. 3. Choose \*\*MiniMax M2.1\*\*. 4. Pick your default model when prompted. ## Configuration options - `models.providers.minimax.baseUrl`: prefer `https://api.minimax.io/anthropic` (Anthropic-compatible); `https://api.minimax.io/v1` is optional for OpenAI-compatible payloads. - `models.providers.minimax.api`: prefer `anthropic-messages`; `openai-completions` is optional for OpenAI-compatible payloads. - `models.providers.minimax.apiKey`: MiniMax API key (`MINIMAX\_API\_KEY`). - `models.providers.minimax.models`: define `id`, `name`, `reasoning`, `contextWindow`, `maxTokens`, `cost`. - `agents.defaults.models`: alias models you want in
https://github.com/openclaw/openclaw/blob/main//docs/providers/minimax.md
main
opebclaw
[ -0.04287687689065933, -0.006522481795400381, 0.005295411683619022, -0.005890148226171732, 0.01579577475786209, -0.0340220108628273, -0.07572480291128159, 0.046167563647031784, -0.10033482313156128, -0.010904046706855297, 0.0058251479640603065, 0.03423022851347923, 0.05941036343574524, -0.03822232410311699, 0.02716119959950447, 0.09501331299543381, 0.14153197407722473, 0.032518815249204636, -0.11834894120693207, -0.05631963163614273, 0.024788541719317436, -0.05763227120041847, -0.0072679403237998486, -0.01074121706187725, -0.0018169092945754528, 0.03549537435173988, -0.06782718747854233, 0.007991768419742584, 0.12394236773252487, -0.023392274975776672, -0.02381511591374874, 0.040035296231508255, 0.08634212613105774, 0.057694971561431885, 0.03867386281490326, 0.06520219892263412, -0.013990897685289383, -0.09228746592998505, -0.02875334769487381, -0.05979326739907265, -0.12787668406963348, 0.036008913069963455, 0.06115052476525307, -0.04048861190676689, 0.06167527288198471, -0.02665795385837555, -0.03445839136838913, -0.09444791078567505, -0.09866449236869812, 0.022528331726789474, -0.04231110215187073, -0.030986899510025978, -0.013237405568361282, 0.01891523227095604, -0.027876179665327072, -0.039123304188251495, -0.01095209177583456, -0.020907217636704445, 0.01711212657392025, -0.018063293769955635, 0.001986010931432247, -0.050750575959682465, 0.0216401107609272, 0.05769618973135948, 0.01807667501270771, -0.10135413706302643, -0.005972030572593212, -0.01669219136238098, -0.013797725550830364, 0.03525228425860405, -0.06743581593036652, -0.024511156603693962, -0.009571002796292305, 0.07032183557748795, 0.0005509979673661292, -0.01812771148979664, 0.03783341497182846, 0.047886475920677185, 0.0353839211165905, -0.046877264976501465, 0.0015808584867045283, -0.0352911651134491, -0.00537877855822444, 0.0550164133310318, -0.010814600624144077, -0.006321892607957125, -0.026756402105093002, 0.020408518612384796, 0.040837060660123825, 0.02048930712044239, 0.004465402569621801, -0.030696740373969078, 0.019770057871937752, 0.08352995663881302, 0.002677753334864974, -0.006942774169147015, -0.01574581488966942, -0.02034129947423935, -0.0696721002459526, 0.056534428149461746, 0.005743850488215685, 0.049223143607378006, 0.05186648666858673, -0.07449302077293396, 0.030069569125771523, -0.02165238931775093, 0.09765425324440002, 0.005624221172183752, 0.04901660978794098, -0.040859658271074295, 0.03707630932331085, 0.023300915956497192, 0.0078064328990876675, -0.11528334766626358, 0.08656472712755203, -0.0451924093067646, 0.016799012199044228, 0.004419273696839809, 0.08225471526384354, 0.11058225482702255, 0.033281054347753525, -0.03542977571487427, -0.04467805102467537, -0.018395250663161278, 0.027859561145305634, 0.06913838535547256, -0.046105943620204926, 2.93398871658832e-33, 0.05405868962407112, 0.07383304834365845, -0.03340461105108261, -0.009313380345702171, 0.12675242125988007, -0.030179236084222794, 0.0752536877989769, 0.0331786684691906, -0.057839713990688324, 0.0002979270357172936, -0.06369560211896896, -0.005409074481576681, -0.0795866921544075, 0.0782533660531044, 0.06743504852056503, -0.161383256316185, 0.041764918714761734, 0.0012899864232167602, 0.03674864023923874, 0.03580964356660843, 0.0026092163752764463, 0.01959853246808052, 0.012141916900873184, -0.01601766049861908, 0.08465655148029327, 0.062328364700078964, 0.12349656224250793, -0.05554594472050667, -0.05584020912647247, 0.035710979253053665, -0.05469658970832825, -0.06473051011562347, -0.0896044671535492, 0.030233006924390793, -0.053188346326351166, -0.0031717189121991396, -0.0670001432299614, -0.0700802356004715, -0.014849284663796425, -0.050081852823495865, -0.10401596128940582, 0.031069882214069366, -0.05739196389913559, -0.026252007111907005, -0.0022409427911043167, -0.040524985641241074, 0.010071597062051296, 0.03718719258904457, 0.04700557887554169, -0.07840815931558609, -0.06121939420700073, 0.038656383752822876, -0.010436933487653732, -0.03756073862314224, -0.01452599372714758, 0.016702942550182343, 0.03264620155096054, -0.022862283512949944, 0.0002576314436737448, 0.058263204991817474, -0.03816860169172287, -0.010554632171988487, -0.026474056765437126, 0.09349124133586884, 0.0636996179819107, 0.0624290406703949, 0.009220904670655727, 0.0016684771981090307, 0.08105772733688354, -0.009611308574676514, -0.07805214077234268, 0.02579125016927719, 0.07878055423498154, 0.011424642987549305, 0.018870607018470764, -0.03756922110915184, 0.08869092166423798, -0.09948013722896576, 0.002108613960444927, -0.08942139893770218, -0.04931920766830444, 0.09118010103702545, -0.002290929201990366, -0.013537292368710041, -0.06551811844110489, -0.01786225475370884, 0.005855581723153591, -0.02612004615366459, 0.02132411114871502, 0.05213120952248573, -0.0268765389919281, -0.06775646656751633, -0.010570866987109184, 0.011454541236162186, -0.08153550326824188, -3.94986673027428e-33, 0.022935329005122185, 0.0017179305432364345, -0.06930427998304367, 0.019791245460510254, -0.06336468458175659, -0.0669364333152771, -0.0005920929834246635, -0.005877435207366943, -0.03625737875699997, -0.0036686689127236605, 0.008597603999078274, 0.03848917409777641, 0.04538833722472191, -0.01530185155570507, 0.013559899292886257, -0.03455552086234093, -0.022700602188706398, -0.0848744660615921, 0.11963794380426407, -0.00823892280459404, 0.049003761261701584, 0.09623904526233673, -0.09442485868930817, 0.04544328898191452, 0.016988731920719147, 0.016353270038962364, -0.08147061616182327, 0.010723058134317398, 0.02958250418305397, -0.043096479028463364, 0.07634801417589188, -0.015412135981023312, 0.009355622343719006, 0.015812214463949203, -0.015671635046601295, 0.019243350252509117, -0.021516378968954086, -0.031984101980924606, -0.00537059037014842, 0.1062389388680458, 0.12171876430511475, -0.06717594712972641, 0.06685588508844376, -0.014349090866744518, 0.040959205478429794, 0.04532061889767647, -0.10366609692573547, -0.049668580293655396, 0.00048153725219890475, -0.07632477581501007, -0.06501998007297516, -0.026838596910238266, -0.04360189288854599, 0.009955090470612049, -0.009089878760278225, -0.0868920087814331, -0.03628816455602646, -0.06682424992322922, -0.0027621821500360966, -0.010152319446206093, 0.001069208374246955, -0.0496009960770607, -0.025547724217176437, 0.03245781734585762, -0.04006002098321915, 0.03320001810789108, -0.04793693497776985, -0.02080397494137287, -0.07875266671180725, 0.019561991095542908, 0.012099767103791237, 0.0038427221588790417, -0.004182749427855015, 0.02206289768218994, -0.04027397930622101, 0.008931550197303295, -0.03918769955635071, -0.07604914158582687, -0.04200585186481476, -0.05141972377896309, -0.04291704669594765, 0.051610540598630905, -0.003041875082999468, 0.07624248415231705, -0.009539386257529259, 0.017582740634679794, 0.0012132537085562944, 0.08910103142261505, -0.02114884741604328, -0.010551740415394306, -0.06512343138456345, 0.044072430580854416, -0.01568853110074997, -0.01794087514281273, -0.11120953410863876, -5.766110433569338e-8, -0.039874348789453506, -0.040093112736940384, 0.0018195827724412084, -0.03200293332338333, 0.039791423827409744, -0.003944702912122011, -0.05344146862626076, 0.015333136543631554, 0.06070271134376526, 0.048381052911281586, 0.06913595646619797, -0.027940498664975166, -0.049240902066230774, -0.03091246634721756, 0.03083736076951027, 0.07172153890132904, -0.027439603582024574, -0.04289678484201431, 0.027274243533611298, -0.03998810797929764, 0.04669826105237007, 0.043482691049575806, -0.01653159409761429, -0.022201281040906906, 0.016551343724131584, -0.06067633256316185, -0.006894007325172424, 0.09289228916168213, -0.003916375804692507, 0.033779703080654144, -0.041297897696495056, 0.08992193639278412, 0.01874407008290291, -0.007082187570631504, -0.04464172571897507, 0.05269165709614754, 0.03275340422987938, 0.039558034390211105, -0.010937446728348732, 0.016599787399172783, 0.049011651426553726, -0.005208308808505535, -0.06370128691196442, -0.024675961583852768, 0.04272213578224182, 0.010233145207166672, -0.0787622258067131, -0.1381562054157257, -0.006946152076125145, -0.055390410125255585, 0.0016902281204238534, 0.025221161544322968, -0.01396244391798973, 0.09947222471237183, 0.04530608654022217, 0.06494748592376709, -0.026292383670806885, -0.06536196917295456, 0.04902222007513046, 0.03620946407318115, 0.057327091693878174, 0.08005253225564957, 0.03402256593108177, 0.02156345173716545 ]
0.193462
default model when prompted. ## Configuration options - `models.providers.minimax.baseUrl`: prefer `https://api.minimax.io/anthropic` (Anthropic-compatible); `https://api.minimax.io/v1` is optional for OpenAI-compatible payloads. - `models.providers.minimax.api`: prefer `anthropic-messages`; `openai-completions` is optional for OpenAI-compatible payloads. - `models.providers.minimax.apiKey`: MiniMax API key (`MINIMAX\_API\_KEY`). - `models.providers.minimax.models`: define `id`, `name`, `reasoning`, `contextWindow`, `maxTokens`, `cost`. - `agents.defaults.models`: alias models you want in the allowlist. - `models.mode`: keep `merge` if you want to add MiniMax alongside built-ins. ## Notes - Model refs are `minimax/`. - Coding Plan usage API: `https://api.minimaxi.com/v1/api/openplatform/coding\_plan/remains` (requires a coding plan key). - Update pricing values in `models.json` if you need exact cost tracking. - Referral link for MiniMax Coding Plan (10% off): https://platform.minimax.io/subscribe/coding-plan?code=DbXJTRClnb&source=link - See [/concepts/model-providers](/concepts/model-providers) for provider rules. - Use `openclaw models list` and `openclaw models set minimax/MiniMax-M2.1` to switch. ## Troubleshooting ### “Unknown model: minimax/MiniMax-M2.1” This usually means the \*\*MiniMax provider isn’t configured\*\* (no provider entry and no MiniMax auth profile/env key found). A fix for this detection is in \*\*2026.1.12\*\* (unreleased at the time of writing). Fix by: - Upgrading to \*\*2026.1.12\*\* (or run from source `main`), then restarting the gateway. - Running `openclaw configure` and selecting \*\*MiniMax M2.1\*\*, or - Adding the `models.providers.minimax` block manually, or - Setting `MINIMAX\_API\_KEY` (or a MiniMax auth profile) so the provider can be injected. Make sure the model id is \*\*case‑sensitive\*\*: - `minimax/MiniMax-M2.1` - `minimax/MiniMax-M2.1-lightning` Then recheck with: ```bash openclaw models list ```
https://github.com/openclaw/openclaw/blob/main//docs/providers/minimax.md
main
opebclaw
[ 0.0038386492524296045, -0.04021202027797699, -0.0327066108584404, 0.0358576662838459, 0.03650706261396408, 0.011053338646888733, -0.06175936013460159, 0.08584216982126236, 0.005268691573292017, 0.01707359030842781, 0.03938828036189079, -0.03708501532673836, 0.01396163646131754, 0.06865675747394562, 0.1054374948143959, 0.04413357004523277, 0.08926109224557877, -0.04096587747335434, -0.09215989708900452, -0.02430453710258007, 0.03464430198073387, -0.008595695719122887, 0.016558952629566193, -0.039986301213502884, -0.0449766144156456, -0.07536953687667847, -0.05610421672463417, 0.0649576410651207, 0.03428720310330391, 0.008432431146502495, -0.007204785943031311, 0.04130490869283676, 0.03843463212251663, -0.01467904169112444, 0.09612342715263367, 0.0644579827785492, -0.03728492930531502, -0.08460035920143127, -0.0007349563529714942, -0.031286485493183136, 0.0333452932536602, 0.02337295562028885, -0.07322516292333603, -0.055849771946668625, -0.02334347739815712, -0.05768907815217972, -0.008112805895507336, -0.07558954507112503, -0.01643195003271103, 0.018337933346629143, -0.04089443385601044, -0.014943561516702175, 0.0017909109592437744, 0.04309617727994919, -0.001022264827042818, 0.01314631849527359, -0.08888763189315796, -0.05265171080827713, 0.0012113696429878473, -0.038294073194265366, 0.027578089386224747, -0.05237694829702377, 0.0005408228025771677, -0.02523403987288475, -0.08725904673337936, -0.010097326710820198, -0.05925266072154045, -0.013194951228797436, 0.002364159096032381, -0.020157111808657646, 0.0526747852563858, -0.01835774816572666, -0.035215605050325394, -0.07134199887514114, 0.02396039292216301, 0.003323413897305727, 0.08053463697433472, 0.09167592227458954, 0.009172068908810616, -0.09187475591897964, -0.09186555445194244, -0.07636182010173798, -0.0302857868373394, 0.025534681975841522, -0.016619529575109482, 0.03889818117022514, -0.03884302079677582, 0.009694019332528114, 0.06205965206027031, -0.02462751418352127, -0.004357404541224241, -0.0066945175640285015, -0.017415041103959084, 0.03406738489866257, 0.06158234924077988, 0.012817533686757088, -0.04608934000134468, -0.004297871608287096, -0.11920081824064255, 0.08185358345508575, -0.002321604872122407, -0.010705256834626198, 0.046152714639902115, 0.09933574497699738, 0.04820271208882332, -0.05477557331323624, 0.004395195282995701, 0.035057466477155685, -0.005089294631034136, 0.010472831316292286, 0.04237482696771622, 0.037291426211595535, 0.11601196974515915, -0.02215006947517395, 0.04669942706823349, 0.06401394307613373, -0.07910127192735672, 0.010808504186570644, 0.03240935131907463, 0.02479519695043564, 0.0475328303873539, -0.008059993386268616, -0.04141669347882271, -0.010422042571008205, 0.038800399750471115, 0.06837797909975052, -0.013281755149364471, -4.2060349591447846e-34, 0.11398768424987793, 0.07811373472213745, 0.05173179879784584, -0.040238671004772186, 0.07006947696208954, 0.032794058322906494, 0.0038275180850178003, 0.031012320891022682, -0.012923738919198513, -0.05181484669446945, -0.055963028222322464, 0.019485004246234894, -0.0643264576792717, 0.003488280577585101, -0.008707484230399132, -0.010235951282083988, -0.03778223693370819, 0.051313284784555435, 0.08617893606424332, 0.046926796436309814, 0.034093450754880905, -0.006436894182115793, -0.053694821894168854, -0.01294709462672472, -0.001216389355249703, 0.1273941993713379, 0.06423228234052658, -0.07182849198579788, -0.061094120144844055, 0.0358012393116951, 0.014401827938854694, -0.0011325753293931484, -0.03588677942752838, 0.042848844081163406, -0.05145643278956413, 0.027066295966506004, -0.05846492201089859, 0.021799007430672646, -0.12556558847427368, -0.04876857250928879, 0.0060026091523468494, 0.051457177847623825, -0.07573903352022171, -0.026059122756123543, -0.04722289741039276, -0.04633218050003052, 0.09314612299203873, 0.07477416098117828, 0.11667502671480179, -0.029558638110756874, -0.08001748472452164, -0.0425821989774704, -0.007678819354623556, 0.0020907199941575527, -0.01815016008913517, -0.048358798027038574, -0.013250302523374557, -0.02965153567492962, 0.0018968122312799096, -0.050373636186122894, -0.04087863862514496, -0.10119559615850449, -0.030490560457110405, 0.05962025374174118, 0.01945265382528305, 0.08619154244661331, -0.07319792360067368, -0.05198756232857704, 0.13287390768527985, -0.030750060454010963, -0.053561899811029434, 0.061522550880908966, 0.020656336098909378, 0.05885258689522743, -0.020876234397292137, -0.07848075032234192, 0.05595475807785988, -0.048897337168455124, 0.06315765529870987, -0.00973361637443304, -0.016312919557094574, 0.06271476298570633, -0.06247664615511894, 0.0560142956674099, -0.01718449406325817, -0.004337790422141552, -0.007450527977198362, 0.015955725684762, 0.015604249201714993, 0.010347436182200909, -0.0410095751285553, -0.007943357340991497, -0.034519121050834656, 0.06680310517549515, -0.053783513605594635, 2.944371419674639e-35, -0.004779164679348469, -0.07362808287143707, -0.037528373301029205, -0.02705857902765274, -0.013505613431334496, -0.0411800742149353, 0.03713267296552658, 0.07648222893476486, 0.001219334895722568, -0.017188630998134613, 0.0418095700442791, 0.00937983114272356, 0.09077294915914536, -0.026865771040320396, -0.043458495289087296, -0.030087748542428017, -0.018993593752384186, -0.09129476547241211, 0.11858473718166351, 0.008631591685116291, -0.011341304518282413, 0.029306065291166306, -0.07918612658977509, 0.007504746783524752, 0.09911598265171051, 0.06554776430130005, -0.01625988632440567, -0.018181219696998596, -0.004219182301312685, -0.09537288546562195, 0.06987766921520233, 0.004236544482409954, -0.12832991778850555, 0.006932253949344158, 0.010198606178164482, 0.030491573736071587, -0.06289701908826828, 0.054354842752218246, -0.03949625790119171, 0.08245783299207687, 0.06818877160549164, -0.052685365080833435, -0.04095063358545303, 0.03910128399729729, 0.00731007382273674, -0.03679656609892845, 0.01932040974497795, -0.04459476098418236, -0.03805548697710037, -0.07059690356254578, -0.02218899503350258, -0.04284445941448212, -0.03925539553165436, 0.0019180396338924766, -0.003297962713986635, -0.02056947536766529, 0.05849064141511917, -0.039953067898750305, 0.03330310434103012, -0.07377379387617111, 0.04437422752380371, -0.024693237617611885, -0.026527611538767815, 0.04039432853460312, -0.07811867445707321, -0.03611873835325241, 0.004639245104044676, 0.03422144427895546, -0.009400417096912861, -0.018043454736471176, -0.11902052164077759, -0.032507628202438354, 0.058306869119405746, 0.017195990309119225, 0.056449923664331436, -0.01101029384881258, -0.048783108592033386, 0.0008211481617763638, 0.07136650383472443, -0.04708559066057205, -0.08396419882774353, -0.037848155945539474, 0.06427322328090668, 0.03995136916637421, 0.0351962149143219, -0.048858899623155594, 0.05014456436038017, 0.13630355894565582, -0.009950058534741402, 0.10790479928255081, -0.10036227852106094, 0.03792459890246391, 0.06276234984397888, 0.04471634700894356, -0.08071378618478775, -4.7741419706426313e-8, -0.04595809429883957, -0.0007140976958908141, -0.03770546242594719, 0.03143749386072159, -0.012374739162623882, -0.04880436509847641, 0.03364531695842743, 0.03127989545464516, 0.028693243861198425, 0.0603191964328289, 0.012193216010928154, 0.05282767862081528, -0.061172954738140106, -0.02233588881790638, -0.059072308242321014, 0.04462428390979767, 0.052260104566812515, 0.015278701670467854, 0.014329546131193638, -0.10468732565641403, -0.08090466260910034, 0.012302597984671593, -0.019840266555547714, -0.08400656282901764, 0.07777893543243408, -0.04164937138557434, -0.0012172573478892446, 0.047659143805503845, -0.023831529542803764, 0.03721776604652405, -0.046911921352148056, 0.01882561482489109, 0.07792872190475464, -0.032403312623500824, -0.04858046770095825, 0.023437531664967537, 0.0200104471296072, 0.04050267115235329, 0.019302261993288994, -0.052262067794799805, 0.04380080848932266, 0.024629060178995132, -0.10008464753627777, -0.08022606372833252, 0.10290991514921188, 0.049355074763298035, 0.0008197075221687555, -0.07848543673753738, 0.05074542388319969, -0.0011264416389167309, -0.031208299100399017, -0.031134286895394325, 0.07745020091533661, 0.04345234856009483, -0.011492221616208553, 0.047538213431835175, -0.00411960668861866, -0.020846083760261536, 0.018720069900155067, -0.027198167517781258, 0.04990090802311897, 0.043607618659734726, -0.020776016637682915, 0.021182173863053322 ]
0.08208
# Synthetic Synthetic exposes Anthropic-compatible endpoints. OpenClaw registers it as the `synthetic` provider and uses the Anthropic Messages API. ## Quick setup 1. Set `SYNTHETIC\_API\_KEY` (or run the wizard below). 2. Run onboarding: ```bash openclaw onboard --auth-choice synthetic-api-key ``` The default model is set to: ``` synthetic/hf:MiniMaxAI/MiniMax-M2.1 ``` ## Config example ```json5 { env: { SYNTHETIC\_API\_KEY: "sk-..." }, agents: { defaults: { model: { primary: "synthetic/hf:MiniMaxAI/MiniMax-M2.1" }, models: { "synthetic/hf:MiniMaxAI/MiniMax-M2.1": { alias: "MiniMax M2.1" } }, }, }, models: { mode: "merge", providers: { synthetic: { baseUrl: "https://api.synthetic.new/anthropic", apiKey: "${SYNTHETIC\_API\_KEY}", api: "anthropic-messages", models: [ { id: "hf:MiniMaxAI/MiniMax-M2.1", name: "MiniMax M2.1", reasoning: false, input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 192000, maxTokens: 65536, }, ], }, }, }, } ``` Note: OpenClaw's Anthropic client appends `/v1` to the base URL, so use `https://api.synthetic.new/anthropic` (not `/anthropic/v1`). If Synthetic changes its base URL, override `models.providers.synthetic.baseUrl`. ## Model catalog All models below use cost `0` (input/output/cache). | Model ID | Context window | Max tokens | Reasoning | Input | | ------------------------------------------------------ | -------------- | ---------- | --------- | ------------ | | `hf:MiniMaxAI/MiniMax-M2.1` | 192000 | 65536 | false | text | | `hf:moonshotai/Kimi-K2-Thinking` | 256000 | 8192 | true | text | | `hf:zai-org/GLM-4.7` | 198000 | 128000 | false | text | | `hf:deepseek-ai/DeepSeek-R1-0528` | 128000 | 8192 | false | text | | `hf:deepseek-ai/DeepSeek-V3-0324` | 128000 | 8192 | false | text | | `hf:deepseek-ai/DeepSeek-V3.1` | 128000 | 8192 | false | text | | `hf:deepseek-ai/DeepSeek-V3.1-Terminus` | 128000 | 8192 | false | text | | `hf:deepseek-ai/DeepSeek-V3.2` | 159000 | 8192 | false | text | | `hf:meta-llama/Llama-3.3-70B-Instruct` | 128000 | 8192 | false | text | | `hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 524000 | 8192 | false | text | | `hf:moonshotai/Kimi-K2-Instruct-0905` | 256000 | 8192 | false | text | | `hf:openai/gpt-oss-120b` | 128000 | 8192 | false | text | | `hf:Qwen/Qwen3-235B-A22B-Instruct-2507` | 256000 | 8192 | false | text | | `hf:Qwen/Qwen3-Coder-480B-A35B-Instruct` | 256000 | 8192 | false | text | | `hf:Qwen/Qwen3-VL-235B-A22B-Instruct` | 250000 | 8192 | false | text + image | | `hf:zai-org/GLM-4.5` | 128000 | 128000 | false | text | | `hf:zai-org/GLM-4.6` | 198000 | 128000 | false | text | | `hf:deepseek-ai/DeepSeek-V3` | 128000 | 8192 | false | text | | `hf:Qwen/Qwen3-235B-A22B-Thinking-2507` | 256000 | 8192 | true | text | ## Notes - Model refs use `synthetic/`. - If you enable a model allowlist (`agents.defaults.models`), add every model you plan to use. - See [Model providers](/concepts/model-providers) for provider rules.
https://github.com/openclaw/openclaw/blob/main//docs/providers/synthetic.md
main
opebclaw
[ -0.01817614771425724, -0.01574467495083809, -0.09356991946697235, 0.0012134392745792866, 0.03739819675683975, -0.07949678599834442, -0.06785260140895844, 0.005787679459899664, -0.0006389606278389692, -0.021475479006767273, 0.029220828786492348, -0.06733939796686172, 0.0056332857348024845, 0.0526248961687088, 0.08452840894460678, 0.1096765473484993, 0.03721582144498825, -0.029664481058716774, 0.013106863014400005, 0.06840819865465164, -0.006599896587431431, 0.004175725858658552, -0.004866186995059252, -0.003299720585346222, -0.07394667714834213, -0.08666767179965973, -0.018991174176335335, 0.08263843506574631, -0.006836459506303072, -0.030186522752046585, 0.07679729908704758, 0.10554908215999603, 0.024599313735961914, -0.00641378341242671, 0.06824316829442978, 0.12065794318914413, -0.01230861246585846, -0.1055554673075676, -0.010392538271844387, 0.0018688708078116179, 0.06995370239019394, -0.0076551977545022964, -0.08381836861371994, -0.04897455498576164, -0.019861215725541115, -0.07116980850696564, -0.03288481757044792, -0.0860312432050705, 0.004409555345773697, 0.04947546496987343, -0.09007960557937622, -0.08843286335468292, -0.015334333293139935, -0.054742857813835144, -0.03297390043735504, -0.004631311632692814, -0.06026409566402435, -0.010425149463117123, 0.038428861647844315, -0.06659779697656631, 0.1026637852191925, -0.013478431850671768, 0.04342739284038544, -0.015715938061475754, -0.08995024114847183, -0.00441140029579401, -0.0508432611823082, -0.05289536342024803, -0.0070584677159786224, -0.01038740761578083, 0.05361538752913475, -0.014903385192155838, -0.019151244312524796, -0.09134363383054733, 0.028377464041113853, 0.008847544901072979, 0.042597733438014984, 0.025748372077941895, 0.048645101487636566, -0.0949549525976181, -0.0910361260175705, -0.07656685262918472, -0.12040577083826065, 0.03219643980264664, 0.000077766839240212, 0.15541501343250275, 0.0056584724225103855, 0.049251895397901535, 0.003524696221575141, 0.021999409422278404, -0.05843406915664673, -0.09509284049272537, 0.012238286435604095, -0.017034946009516716, 0.036798495799303055, 0.04094709828495979, 0.0013207471929490566, 0.03367464244365692, -0.04350529611110687, 0.048355165868997574, 0.014649526216089725, -0.000009465516086493153, 0.01631861738860607, 0.02220308408141136, -0.026264499872922897, -0.0004928683047182858, 0.030770249664783478, 0.05080529674887657, -0.02610144577920437, 0.0012589937541633844, 0.02553365007042885, 0.05605008825659752, 0.11130677163600922, -0.057909950613975525, -0.060026876628398895, 0.14765486121177673, -0.021322675049304962, -0.024725060909986496, 0.05156930536031723, 0.009898248128592968, 0.051158513873815536, -0.02683803252875805, 0.03888961300253868, 0.053362082690000534, 0.09766067564487457, 0.03809979930520058, -0.0018462847219780087, 3.251303865701196e-33, 0.0320640429854393, -0.0003759901155717671, 0.04230117425322533, -0.031770117580890656, 0.07465323805809021, -0.025706814602017403, 0.011479496955871582, -0.018026864156126976, -0.05620362609624863, 0.025820834562182426, -0.07788576930761337, 0.07314954698085785, -0.03437410295009613, 0.012509968131780624, 0.0011239857412874699, -0.034835852682590485, -0.08875299245119095, 0.001964188413694501, 0.03606358915567398, 0.05890778824687004, 0.03363392874598503, 0.019235454499721527, -0.053314026445150375, 0.00005642084215651266, 0.02680293843150139, 0.09011940658092499, -0.03562557324767113, -0.008117878809571266, -0.021899959072470665, 0.0505392961204052, 0.02080126665532589, 0.007406292948871851, -0.028762973845005035, 0.03990659490227699, -0.022768307477235794, -0.023184513673186302, -0.024054301902651787, -0.013469520024955273, -0.11742009222507477, 0.015354317612946033, 0.09355224668979645, 0.012300546281039715, -0.05281814932823181, 0.01342894695699215, -0.021099820733070374, -0.044211722910404205, 0.0321345180273056, 0.10012645274400711, 0.06321459263563156, -0.006864899303764105, -0.09044633060693741, 0.0026168948970735073, 0.033532097935676575, -0.08533221483230591, -0.04385218396782875, -0.030691184103488922, -0.011030687019228935, -0.011867555789649487, -0.027303902432322502, -0.01370576024055481, -0.04267549514770508, 0.011248365044593811, 0.00030161422910168767, 0.07647273689508438, -0.019207730889320374, 0.014357225969433784, 0.020007941871881485, -0.037072114646434784, 0.022499654442071915, 0.03493848815560341, -0.014307606033980846, 0.0752938985824585, -0.04768633469939232, 0.06236632913351059, -0.051636990159749985, -0.09918433427810669, 0.05769370496273041, 0.040222544223070145, 0.10608219355344772, -0.008378823287785053, 0.018021322786808014, 0.049887292087078094, -0.07715388387441635, 0.09089068323373795, -0.03173253685235977, -0.03488334268331528, -0.013767867349088192, -0.0026136161759495735, -0.015333457849919796, 0.07016001641750336, -0.12178883701562881, -0.06748364120721817, -0.050316911190748215, 0.011224270798265934, -0.007275092415511608, -4.5151296374900704e-33, 0.016729578375816345, -0.04983982816338539, 0.022126324474811554, 0.04618317633867264, -0.03810602426528931, -0.000935544609092176, 0.07700733095407486, 0.004656954202800989, -0.03480732440948486, 0.022146420553326607, 0.021903853863477707, 0.08586522936820984, 0.06486380845308304, -0.06801906228065491, 0.020263979211449623, -0.04992187023162842, -0.07094348222017288, -0.04524315893650055, 0.07683432847261429, -0.010644692927598953, 0.02836022712290287, 0.07263685762882233, -0.025374719873070717, 0.03936365246772766, 0.10366605967283249, 0.04805108904838562, 0.012936624698340893, 0.08233124017715454, -0.02939995378255844, -0.05193161591887474, 0.022418010979890823, 0.07345142960548401, -0.07987221330404282, 0.01775558851659298, -0.043017782270908356, 0.05377497151494026, -0.05300300940871239, 0.11616512387990952, 0.01748342253267765, -0.019156433641910553, 0.019089512526988983, -0.029345354065299034, -0.1376975178718567, 0.022799111902713776, 0.02019801363348961, -0.017052555456757545, 0.00734690111130476, -0.025513768196105957, -0.021376468241214752, -0.05235421285033226, -0.029240870848298073, 0.02275487408041954, -0.0004467385006137192, -0.017472153529524803, -0.009705264121294022, 0.0032700239680707455, 0.02731979265809059, -0.07383104413747787, 0.009586086496710777, -0.0800740122795105, 0.0026127633173018694, -0.09081990271806717, 0.015781793743371964, 0.01977636106312275, -0.07779676467180252, -0.05733314901590347, -0.039254479110240936, 0.03151926025748253, -0.04073198139667511, -0.04440595582127571, -0.01405453309416771, -0.03523197025060654, 0.011687109246850014, 0.020585332065820694, 0.008066179230809212, -0.06665561348199844, -0.068107470870018, 0.000758508627768606, 0.08151417225599289, 0.023586269468069077, -0.07393466681241989, -0.005494169890880585, 0.10004688799381256, 0.05320281162858009, 0.04801623523235321, 0.07119234651327133, -0.02420055866241455, 0.1411105990409851, 0.028600040823221207, 0.05954911559820175, -0.036047350615262985, 0.044535502791404724, -0.05684337392449379, 0.023085398599505424, -0.10638626664876938, -5.439817130081792e-8, -0.04956480488181114, 0.01562029030174017, -0.01039687916636467, 0.024276968091726303, -0.0685860887169838, -0.019791211932897568, -0.03950517624616623, -0.030121976509690285, -0.015278870239853859, 0.017737282440066338, 0.012930447235703468, 0.03284243494272232, -0.006651887204498053, 0.01051322277635336, -0.02923208847641945, 0.08615497499704361, -0.037536781281232834, -0.017773857340216637, -0.008479145355522633, -0.09926646947860718, -0.03702029213309288, 0.04866321012377739, 0.02493373490869999, -0.009526827372610569, 0.010321710258722305, -0.0051995618268847466, -0.022343609482049942, -0.021710829809308052, 0.011517539620399475, 0.042796406894922256, -0.06139032170176506, -0.012937585823237896, -0.02813585102558136, 0.005659598857164383, -0.039852410554885864, -0.014346328563988209, 0.016851074993610382, 0.03684728592634201, 0.007352007087320089, -0.032581064850091934, 0.0253177247941494, 0.005361661314964294, -0.15805834531784058, -0.07437960803508759, 0.01877782866358757, 0.04167703166604042, -0.02483719401061535, -0.040124937891960144, 0.049475912004709244, -0.005094825755804777, 0.08082432299852371, -0.04899142310023308, -0.04502294957637787, 0.062038786709308624, -0.02484370768070221, 0.07699696719646454, 0.019262095913290977, -0.06454533338546753, 0.05129348114132881, -0.0143930958583951, 0.0014174513053148985, 0.01367068849503994, 0.02416982129216194, 0.004949850495904684 ]
0.046891
# Moonshot AI (Kimi) Moonshot provides the Kimi API with OpenAI-compatible endpoints. Configure the provider and set the default model to `moonshot/kimi-k2.5`, or use Kimi Coding with `kimi-coding/k2p5`. Current Kimi K2 model IDs: {/\_ moonshot-kimi-k2-ids:start \_/ && null} - `kimi-k2.5` - `kimi-k2-0905-preview` - `kimi-k2-turbo-preview` - `kimi-k2-thinking` - `kimi-k2-thinking-turbo` {/\_ moonshot-kimi-k2-ids:end \_/ && null} ```bash openclaw onboard --auth-choice moonshot-api-key ``` Kimi Coding: ```bash openclaw onboard --auth-choice kimi-code-api-key ``` Note: Moonshot and Kimi Coding are separate providers. Keys are not interchangeable, endpoints differ, and model refs differ (Moonshot uses `moonshot/...`, Kimi Coding uses `kimi-coding/...`). ## Config snippet (Moonshot API) ```json5 { env: { MOONSHOT\_API\_KEY: "sk-..." }, agents: { defaults: { model: { primary: "moonshot/kimi-k2.5" }, models: { // moonshot-kimi-k2-aliases:start "moonshot/kimi-k2.5": { alias: "Kimi K2.5" }, "moonshot/kimi-k2-0905-preview": { alias: "Kimi K2" }, "moonshot/kimi-k2-turbo-preview": { alias: "Kimi K2 Turbo" }, "moonshot/kimi-k2-thinking": { alias: "Kimi K2 Thinking" }, "moonshot/kimi-k2-thinking-turbo": { alias: "Kimi K2 Thinking Turbo" }, // moonshot-kimi-k2-aliases:end }, }, }, models: { mode: "merge", providers: { moonshot: { baseUrl: "https://api.moonshot.ai/v1", apiKey: "${MOONSHOT\_API\_KEY}", api: "openai-completions", models: [ // moonshot-kimi-k2-models:start { id: "kimi-k2.5", name: "Kimi K2.5", reasoning: false, input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 256000, maxTokens: 8192, }, { id: "kimi-k2-0905-preview", name: "Kimi K2 0905 Preview", reasoning: false, input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 256000, maxTokens: 8192, }, { id: "kimi-k2-turbo-preview", name: "Kimi K2 Turbo", reasoning: false, input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 256000, maxTokens: 8192, }, { id: "kimi-k2-thinking", name: "Kimi K2 Thinking", reasoning: true, input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 256000, maxTokens: 8192, }, { id: "kimi-k2-thinking-turbo", name: "Kimi K2 Thinking Turbo", reasoning: true, input: ["text"], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 256000, maxTokens: 8192, }, // moonshot-kimi-k2-models:end ], }, }, }, } ``` ## Kimi Coding ```json5 { env: { KIMI\_API\_KEY: "sk-..." }, agents: { defaults: { model: { primary: "kimi-coding/k2p5" }, models: { "kimi-coding/k2p5": { alias: "Kimi K2.5" }, }, }, }, } ``` ## Notes - Moonshot model refs use `moonshot/`. Kimi Coding model refs use `kimi-coding/`. - Override pricing and context metadata in `models.providers` if needed. - If Moonshot publishes different context limits for a model, adjust `contextWindow` accordingly. - Use `https://api.moonshot.ai/v1` for the international endpoint, and `https://api.moonshot.cn/v1` for the China endpoint.
https://github.com/openclaw/openclaw/blob/main//docs/providers/moonshot.md
main
opebclaw
[ -0.01792593114078045, -0.03487076237797737, -0.040920060127973557, 0.01801665686070919, 0.04742718115448952, -0.045191530138254166, -0.03377043828368187, -0.03435874357819557, 0.00734064681455493, -0.02228299155831337, 0.043911296874284744, -0.07871401309967041, 0.05685262009501457, 0.0003976580046582967, 0.09841180592775345, 0.07019103318452835, 0.01367911510169506, -0.009991655126214027, -0.02287156879901886, 0.019067615270614624, 0.001304185134358704, -0.03865283727645874, 0.029935147613286972, 0.00599106028676033, -0.09341450035572052, -0.020868197083473206, 0.010995017364621162, 0.05659244582056999, -0.027240294963121414, -0.03395552933216095, 0.03664405271410942, 0.0422222800552845, -0.03380792960524559, 0.010105020366609097, 0.08691816031932831, 0.029465459287166595, -0.033897411078214645, -0.029968958348035812, -0.10610298812389374, -0.09323124587535858, 0.06004226952791214, -0.005372711922973394, -0.06830672919750214, -0.025567421689629555, 0.0482308603823185, -0.02889111079275608, -0.0663265585899353, -0.08367083221673965, 0.018648147583007812, -0.03985435888171196, -0.07698633521795273, -0.0604715421795845, -0.03696231171488762, -0.0068386453203856945, 0.011849634349346161, -0.008035841397941113, -0.14422723650932312, 0.014113247394561768, 0.08863025903701782, -0.02338583581149578, 0.05770040675997734, -0.026135845109820366, 0.014696485362946987, -0.009168827906250954, 0.016528205946087837, 0.048790331929922104, -0.07887017726898193, -0.10101758688688278, -0.0024748030118644238, -0.09570661932229996, 0.029961222782731056, -0.02718629129230976, -0.04563434049487114, -0.05950997397303581, -0.0675593912601471, 0.00036937996628694236, 0.049126483500003815, 0.03682573512196541, -0.06592585891485214, -0.0829150378704071, -0.05844627320766449, -0.03922046348452568, -0.05158962681889534, 0.04069419950246811, 0.0396668016910553, 0.07721152901649475, -0.04564693942666054, 0.02766447700560093, -0.009462865069508553, 0.07243199646472931, -0.044653840363025665, -0.06836632639169693, 0.004300390835851431, -0.08204428851604462, 0.06038515642285347, -0.01539616845548153, -0.027566734701395035, -0.0034366659820079803, -0.012987510301172733, 0.0923805832862854, -0.032677263021469116, -0.02595512382686138, -0.0070930952206254005, -0.020005498081445694, -0.005072778090834618, -0.004917060025036335, 0.07840270549058914, 0.012058771215379238, 0.003456386271864176, 0.032431188970804214, 0.0003790975024458021, -0.008191280998289585, 0.05958688259124756, -0.07158203423023224, 0.004373248666524887, 0.09166253358125687, -0.09817245602607727, 0.04397524520754814, 0.09111723303794861, 0.007207547314465046, 0.07215636223554611, -0.07079513370990753, -0.03121153451502323, 0.00040882802568376064, -0.0031511900015175343, -0.00114925904199481, 0.0005985702737234533, 2.6417169236067357e-33, 0.0577886626124382, -0.009954920969903469, 0.09679584205150604, -0.020100055262446404, 0.04801042750477791, -0.045410215854644775, -0.02251042239367962, 0.027195105329155922, -0.06284037232398987, -0.014562052674591541, -0.08779384195804596, 0.049706242978572845, -0.07435306906700134, -0.0027787063736468554, 0.08165174722671509, 0.03036821261048317, -0.06814365088939667, 0.07257958501577377, 0.04976228252053261, 0.0665552169084549, 0.04266868904232979, -0.038319047540426254, -0.05111747235059738, -0.024562569335103035, 0.016851117834448814, 0.10451702028512955, -0.019790058955550194, -0.05627479776740074, 0.01669897884130478, 0.0435771606862545, 0.034500859677791595, -0.029981933534145355, -0.009220439940690994, -0.029697498306632042, -0.047747742384672165, -0.02293897420167923, -0.1392374187707901, 0.007691213395446539, -0.1243956908583641, -0.0655025839805603, 0.06015828251838684, 0.038803331553936005, -0.1384260505437851, 0.005724153947085142, -0.06123140826821327, -0.059469375759363174, 0.013921582140028477, 0.030775325372815132, 0.01969592086970806, -0.003392647486180067, -0.0425407737493515, -0.006838763598352671, 0.02376086264848709, -0.029590990394353867, 0.014226306229829788, -0.04844873771071434, 0.07547721266746521, -0.02817487344145775, 0.03189703822135925, 0.009910156950354576, -0.02501804009079933, 0.014234893023967743, -0.008739955723285675, 0.021724259480834007, 0.033739831298589706, 0.07392875105142593, 0.0016107555711641908, 0.037684909999370575, -0.011331455782055855, 0.03141740337014198, -0.09442932158708572, 0.030576614663004875, 0.021471315994858742, 0.061375152319669724, -0.02599197067320347, -0.07708939909934998, 0.019044648855924606, -0.0560542531311512, 0.0343693345785141, 0.06053575873374939, -0.053163181990385056, -0.012569739483296871, -0.06390965729951859, 0.07575374096632004, 0.0011793769663199782, -0.010265116579830647, -0.005263707600533962, -0.004699791315943003, -0.03172733262181282, 0.03278249874711037, -0.046519335359334946, -0.06300991028547287, -0.012545809149742126, 0.025120219215750694, -0.02359657548367977, -4.006441069327449e-33, 0.061000630259513855, -0.06195015460252762, 0.02553640305995941, -0.017304839566349983, -0.0058790999464690685, -0.027652926743030548, 0.03831825777888298, -0.00013753428356721997, 0.005536891985684633, 0.014189770445227623, 0.03300769254565239, -0.024649180471897125, 0.055700257420539856, -0.001526755397208035, 0.06260399520397186, -0.03580851852893829, -0.04685744270682335, 0.01678832806646824, -0.003133984049782157, 0.021376851946115494, 0.0014737147139385343, 0.04918474331498146, 0.02279048226773739, -0.03044835478067398, 0.058631718158721924, 0.07515587657690048, 0.07373945415019989, 0.07507684826850891, 0.003809315152466297, -0.028007816523313522, 0.017791859805583954, 0.0769059881567955, -0.07576937228441238, -0.0302469190210104, -0.01374292466789484, 0.0441858284175396, -0.04991363361477852, 0.0612671785056591, 0.016338154673576355, 0.05687785893678665, 0.0520286038517952, -0.04927535355091095, -0.0429217666387558, 0.05856461077928543, 0.01518983580172062, 0.03481639549136162, 0.039567649364471436, 0.05246865749359131, -0.037819113582372665, -0.08744549751281738, 0.01435006968677044, -0.010158022865653038, -0.08109167963266373, 0.006702464539557695, 0.021343138068914413, 0.030751092359423637, 0.026673603802919388, -0.007653471082448959, 0.0024506193585693836, -0.09764491766691208, 0.04181799665093422, -0.11417045444250107, 0.06370095908641815, 0.04549877718091011, -0.11800524592399597, -0.10316269844770432, 0.03486686572432518, 0.05398092046380043, -0.04981279373168945, -0.021089041605591774, -0.07782748341560364, -0.0981881394982338, 0.0913526639342308, 0.06036493927240372, -0.004778147209435701, 0.02388887293636799, -0.04596438631415367, 0.056480832397937775, 0.13300029933452606, -0.006415310315787792, -0.054820433259010315, 0.036639224737882614, 0.049398213624954224, 0.02904115989804268, 0.08455482870340347, 0.06989425420761108, 0.025374189019203186, 0.07554826140403748, 0.04076343774795532, 0.02243349328637123, -0.09035100787878036, 0.09760084748268127, 0.0004981036763638258, 0.04337042197585106, -0.09936206042766571, -5.0673062190753626e-8, -0.008214781992137432, -0.08554390072822571, 0.009774348698556423, 0.05515706539154053, -0.053133413195610046, -0.010026488453149796, -0.026463445276021957, 0.024170974269509315, 0.04076265171170235, -0.05627741664648056, 0.10382962226867676, 0.016282787546515465, -0.03165194392204285, -0.08794312179088593, -0.03619823604822159, 0.07121796905994415, -0.003153107361868024, 0.05876908823847771, 0.038109589368104935, -0.018989162519574165, -0.040548063814640045, -0.0025705774314701557, 0.04438683018088341, -0.10204029083251953, -0.02363531105220318, -0.02093399129807949, -0.011625051498413086, 0.037999559193849564, -0.02908477745950222, -0.06376070529222488, 0.05829211696982384, -0.010291420854628086, 0.05507500097155571, -0.02172628976404667, -0.002665010280907154, -0.00483760004863143, -0.04630625993013382, 0.04051535949110985, -0.00958365947008133, -0.04679904133081436, 0.008950541727244854, 0.0030742378439754248, -0.06781968474388123, -0.05861945450305939, -0.005318664945662022, 0.06838131695985794, 0.09810841828584671, 0.033281389623880386, -0.023578384891152382, 0.003184224246069789, -0.07356707006692886, -0.07107190787792206, -0.024293866008520126, 0.045433614403009415, 0.04676132649183273, 0.10664236545562744, 0.029780350625514984, -0.0882052555680275, 0.029925094917416573, 0.013634995557367802, 0.05573787912726402, -0.028971053659915924, -0.033539365977048874, 0.07055297493934631 ]
0.094514
# GLM models GLM is a \*\*model family\*\* (not a company) available through the Z.AI platform. In OpenClaw, GLM models are accessed via the `zai` provider and model IDs like `zai/glm-4.7`. ## CLI setup ```bash openclaw onboard --auth-choice zai-api-key ``` ## Config snippet ```json5 { env: { ZAI\_API\_KEY: "sk-..." }, agents: { defaults: { model: { primary: "zai/glm-4.7" } } }, } ``` ## Notes - GLM versions and availability can change; check Z.AI's docs for the latest. - Example model IDs include `glm-4.7` and `glm-4.6`. - For provider details, see [/providers/zai](/providers/zai).
https://github.com/openclaw/openclaw/blob/main//docs/providers/glm.md
main
opebclaw
[ -0.07335188239812851, 0.007960746064782143, -0.11407237499952316, 0.05034458637237549, 0.01806339994072914, -0.10430271923542023, -0.015291730873286724, -0.05232282355427742, 0.025041630491614342, -0.030411377549171448, 0.04741304740309715, -0.026212511584162712, 0.049713440239429474, 0.05317056551575661, 0.07774492353200912, 0.037261441349983215, 0.05667122080922127, -0.09994947165250778, -0.0722263976931572, 0.03604300692677498, 0.029207052662968636, 0.11900705844163895, 0.006187807768583298, -0.01537200715392828, -0.09140779823064804, -0.09528171271085739, -0.01361458096653223, 0.026732265949249268, -0.006409414112567902, -0.006411299575120211, 0.005818092729896307, 0.10260604321956635, 0.025868402794003487, 0.014532851055264473, 0.07826174050569534, 0.029048772528767586, 0.013457396067678928, -0.022217515856027603, 0.0026371709536761045, -0.02073362097144127, 0.10788065195083618, -0.00043364596785977483, -0.047864414751529694, -0.0868145003914833, -0.004279381595551968, -0.031345028430223465, -0.006681406404823065, -0.0422976128757, -0.014429007656872272, 0.04154887795448303, -0.07686899602413177, -0.08904422074556351, 0.030901847407221794, -0.03261834383010864, -0.011198511347174644, 0.012604868970811367, -0.10937242209911346, -0.05477685481309891, 0.005585402250289917, -0.06618146598339081, 0.06317276507616043, -0.013973655179142952, -0.03387812152504921, 0.037257663905620575, -0.09640482813119888, 0.03276130557060242, -0.017086070030927658, -0.10783152282238007, -0.10371380299329758, -0.06687544286251068, 0.03880399838089943, -0.05913389101624489, 0.014137704856693745, -0.06650640070438385, -0.018646961078047752, 0.03111969865858555, 0.09154756367206573, 0.0052743577398359776, 0.01133081316947937, -0.08920667320489883, -0.05803185701370239, -0.039837297052145004, 0.01194456871598959, 0.062347136437892914, 0.007777889724820852, 0.12825246155261993, 0.01732422038912773, 0.03933773562312126, -0.003960050642490387, -0.0038838498294353485, 0.015003763139247894, -0.06223470717668533, 0.02021515928208828, -0.012051085010170937, -0.004903377033770084, 0.017218295484781265, 0.008364965207874775, -0.043674591928720474, -0.02333790436387062, 0.09845560044050217, 0.005819515325129032, -0.037790920585393906, 0.1147444024682045, 0.052136149257421494, -0.11216657608747482, 0.037309058010578156, 0.07275338470935822, 0.07261931151151657, -0.049017611891031265, 0.0744418203830719, -0.008667867630720139, 0.021789466962218285, 0.056435637176036835, -0.06358564645051956, -0.026779841631650925, 0.05076209083199501, -0.0851939246058464, 0.046789076179265976, 0.03550431877374649, 0.02505599707365036, 0.060316283255815506, 0.021472983062267303, 0.023898949846625328, 0.025707194581627846, 0.0972641184926033, 0.08449721336364746, -0.02739659510552883, 1.714498918292616e-33, 0.0022822595201432705, 0.04453601688146591, 0.0119320098310709, -0.028243133798241615, 0.05567556992173195, 0.01908254064619541, -0.006163960322737694, 0.02938937023282051, -0.023190129548311234, 0.04822011664509773, -0.0949825569987297, 0.057883359491825104, 0.017223142087459564, -0.0314868725836277, -0.016519954428076744, 0.06938941031694412, -0.03494817018508911, -0.009788340888917446, 0.09642978757619858, 0.040379706770181656, 0.10581699758768082, -0.016165465116500854, -0.023024018853902817, 0.0165664441883564, 0.0160159170627594, 0.11038733273744583, -0.025107285007834435, -0.0979151651263237, -0.024486897513270378, 0.019636213779449463, 0.09691830724477768, -0.001850505592301488, -0.025927046313881874, -0.05660911649465561, -0.020062008872628212, 0.052790895104408264, -0.06842641532421112, -0.015574488788843155, -0.0639246478676796, -0.034070972353219986, -0.0059538185596466064, 0.009606442414224148, -0.06981158256530762, 0.0046507627703249454, -0.016081184148788452, -0.03223968297243118, 0.0032552494667470455, 0.004630712792277336, 0.05956696346402168, -0.01023163553327322, -0.0757877454161644, -0.02214859612286091, -0.035551320761442184, -0.0021988251246511936, -0.0688779279589653, -0.006094818003475666, -0.021455887705087662, 0.004781082272529602, 0.061457887291908264, -0.06204339116811752, 0.003191680181771517, 0.015427905134856701, -0.009385276585817337, 0.0497162863612175, 0.03389172628521919, 0.043821126222610474, -0.018962334841489792, -0.05181226134300232, -0.04427795857191086, 0.06733743101358414, -0.023094624280929565, -0.00805067177861929, 0.0064165364019572735, 0.09085439145565033, -0.030318645760416985, -0.11327437311410904, 0.017914623022079468, -0.05556093901395798, 0.0735420286655426, 0.0227119829505682, -0.03712815046310425, 0.017869150266051292, -0.05078401416540146, 0.07675052434206009, -0.008241573348641396, -0.028019165620207787, 0.00480744568631053, -0.0041144792921841145, 0.006213510408997536, -0.02463713474571705, -0.04275568202137947, -0.042795583605766296, -0.01968640834093094, -0.02130088023841381, -0.019912393763661385, -3.6724177373855725e-33, 0.03661603108048439, -0.02917059324681759, 0.03288602456450462, -0.01025218516588211, 0.03430577367544174, -0.07195967435836792, 0.01779279112815857, -0.05112040042877197, -0.05539386719465256, -0.07668326795101166, 0.05946532264351845, 0.11048608273267746, 0.04446018114686012, 0.0025743930600583553, 0.03664179891347885, -0.024476762861013412, -0.10226749628782272, -0.08615946769714355, 0.04660230502486229, -0.016703912988305092, -0.0010225013829767704, -0.04620233550667763, 0.017331022769212723, -0.028241844847798347, 0.1095602810382843, 0.01014801487326622, 0.05078322812914848, 0.05554627627134323, 0.05064992606639862, -0.02742442488670349, -0.03482510894536972, 0.05866887792944908, -0.06282972544431686, 0.006197939161211252, -0.006628009490668774, 0.07632984966039658, -0.09152036905288696, 0.059177760034799576, -0.046543899923563004, -0.02828810177743435, 0.0006757712108083069, -0.02720816619694233, -0.03508564457297325, 0.00458244513720274, -0.015399339608848095, 0.06000879406929016, 0.037402138113975525, -0.032254744321107864, -0.015665952116250992, -0.10741252452135086, 0.05246458947658539, 0.047472063452005386, -0.043410539627075195, -0.010276446118950844, 0.040965642780065536, 0.09605129063129425, 0.09308892488479614, -0.06159786507487297, -0.05890996754169464, -0.09879573434591293, -0.030440596863627434, -0.03703664615750313, 0.037655316293239594, 0.08163782209157944, -0.042197927832603455, -0.0391300804913044, 0.05762682855129242, 0.030309218913316727, -0.011641129851341248, -0.01669897884130478, -0.06889072805643082, -0.0958591103553772, -0.022636674344539642, -0.013156002387404442, -0.035084690898656845, -0.002503383671864867, -0.10367369651794434, -0.01475437916815281, 0.04308969900012016, -0.016557538881897926, -0.002281252760440111, -0.06366097927093506, 0.05371201038360596, 0.0868631973862648, 0.04092463105916977, -0.003081402974203229, 0.051772985607385635, 0.07381973415613174, 0.07064761221408844, 0.049452174454927444, -0.06905315816402435, 0.021024376153945923, 0.009760890156030655, 0.023279746994376183, -0.12661415338516235, -4.839951728285996e-8, -0.04576436057686806, -0.016981493681669235, -0.0054358444176614285, -0.000044192220229888335, 0.004910651128739119, -0.02731887251138687, 0.014600366353988647, -0.05959726497530937, -0.04196852445602417, 0.03612326458096504, 0.04564841464161873, 0.04931619018316269, -0.03270236402750015, 0.014285516925156116, -0.011491026729345322, 0.09269359707832336, -0.03571542724967003, 0.000026538589736446738, 0.03998067229986191, -0.03283495083451271, -0.028205974027514458, -0.004507935605943203, -0.023619890213012695, -0.07514818012714386, 0.02334139682352543, -0.0350830964744091, -0.07467914372682571, 0.0019967707339674234, -0.0010200882097706199, 0.02066499926149845, -0.020728230476379395, 0.026080166921019554, 0.1325492113828659, -0.03888557106256485, -0.01833456940948963, -0.04043430835008621, -0.023034436628222466, -0.0008786279940977693, 0.005187074188143015, -0.0366772823035717, 0.032140910625457764, 0.06297649443149567, -0.03278131037950516, -0.058574941009283066, -0.005098321940749884, -0.007590239867568016, 0.013726035133004189, -0.07099390774965286, 0.07092706859111786, 0.006487634964287281, -0.034217141568660736, -0.0023699982557445765, -0.008124994114041328, 0.11861899495124817, 0.012217615731060505, 0.0726555585861206, 0.018913887441158295, -0.10365372151136398, 0.058243293315172195, 0.00883058737963438, -0.014910071156919003, -0.024275409057736397, 0.0027923027519136667, -0.021117450669407845 ]
0.075517
# Vercel AI Gateway The [Vercel AI Gateway](https://vercel.com/ai-gateway) provides a unified API to access hundreds of models through a single endpoint. - Provider: `vercel-ai-gateway` - Auth: `AI\_GATEWAY\_API\_KEY` - API: Anthropic Messages compatible ## Quick start 1. Set the API key (recommended: store it for the Gateway): ```bash openclaw onboard --auth-choice ai-gateway-api-key ``` 2. Set a default model: ```json5 { agents: { defaults: { model: { primary: "vercel-ai-gateway/anthropic/claude-opus-4.5" }, }, }, } ``` ## Non-interactive example ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice ai-gateway-api-key \ --ai-gateway-api-key "$AI\_GATEWAY\_API\_KEY" ``` ## Environment note If the Gateway runs as a daemon (launchd/systemd), make sure `AI\_GATEWAY\_API\_KEY` is available to that process (for example, in `~/.openclaw/.env` or via `env.shellEnv`).
https://github.com/openclaw/openclaw/blob/main//docs/providers/vercel-ai-gateway.md
main
opebclaw
[ 0.001549131004139781, -0.03561965376138687, -0.07107558101415634, 0.03650422394275665, 0.02889162302017212, -0.06714332103729248, -0.05662316456437111, 0.00007250452472362667, 0.05042749270796776, -0.03586293384432793, -0.032815031707286835, -0.0612243227660656, -0.035963449627161026, 0.04752055183053017, 0.11913572251796722, 0.12190600484609604, 0.018962932750582695, -0.04798354580998421, -0.028797578066587448, -0.06563309580087662, 0.0006622548680752516, 0.027710827067494392, -0.03513026982545853, -0.009742680937051773, -0.08942493051290512, -0.10579731315374374, 0.001881329109892249, 0.05630352720618248, -0.010085773654282093, -0.025595398619771004, 0.013930408284068108, 0.02530740387737751, -0.10315275937318802, -0.0037432070821523666, 0.0023986315354704857, 0.06609896570444107, -0.01894405297935009, -0.02242458239197731, -0.004476491827517748, -0.047700196504592896, 0.1181832030415535, 0.0007685480522923172, -0.06933558732271194, -0.07958915829658508, 0.021123921498656273, -0.08957138657569885, -0.06654617935419083, -0.048052579164505005, 0.034096285700798035, 0.03396737575531006, -0.07292985916137695, -0.03776758536696434, 0.015720903873443604, -0.05863518640398979, -0.037315964698791504, 0.010381258092820644, -0.04028485342860222, -0.013583209365606308, 0.0192006453871727, -0.03174305707216263, 0.041158027946949005, -0.046641476452350616, 0.012103451415896416, 0.01884097419679165, -0.1520564705133438, 0.004884551279246807, -0.08675805479288101, -0.015757104381918907, -0.007697654888033867, -0.010078919120132923, 0.0475119948387146, -0.08652976900339127, -0.05414239317178726, -0.0768313929438591, 0.026654226705431938, 0.026112815365195274, 0.05583766847848892, -0.02618367411196232, 0.013254666700959206, -0.06464008241891861, -0.05644094944000244, -0.014113769866526127, -0.0651441141963005, 0.09261079132556915, -0.00839282851666212, 0.07242489606142044, -0.019525296986103058, 0.017085520550608635, 0.038744594901800156, 0.01969047449529171, 0.008595882914960384, -0.10115543752908707, -0.01723681390285492, -0.010565879754722118, 0.07500064373016357, 0.0768842101097107, -0.04008303955197334, -0.1135760247707367, -0.08864575624465942, 0.08504924178123474, -0.05053427815437317, -0.006125614512711763, 0.06623676419258118, 0.06608158349990845, -0.014523650519549847, 0.049219150096178055, 0.08854562789201736, 0.05401744320988655, -0.013762458227574825, -0.005836034659296274, 0.0030431232880800962, 0.03324158117175102, 0.09239411354064941, -0.00853681843727827, 0.014779038727283478, 0.08644478768110275, -0.02292880415916443, 0.0240605678409338, 0.08831126987934113, 0.037366293370723724, 0.041190143674612045, 0.006848784163594246, 0.0459616594016552, 0.03633121773600578, 0.09896249324083328, -0.014311451464891434, 0.018985403701663017, 7.417652666194282e-34, 0.020484963431954384, -0.03491908684372902, 0.019404178485274315, 0.02535724826157093, 0.1224316954612732, 0.01133024599403143, 0.07666249573230743, 0.04657360538840294, -0.03633794188499451, 0.036697834730148315, -0.060658182948827744, 0.08196274936199188, -0.019866567105054855, -0.0446266233921051, -0.0010367638897150755, 0.014351519756019115, -0.03923046216368675, 0.0043455553241074085, 0.0525113083422184, 0.03691128268837929, 0.10132564604282379, -0.07044597715139389, -0.024582894518971443, -0.0005398179637268186, 0.015071592293679714, 0.04362233355641365, -0.013667416758835316, -0.01602114364504814, -0.01789211295545101, 0.05507967993617058, 0.02017468959093094, 0.02354295179247856, -0.002795976819470525, -0.0023730124812573195, -0.016990216448903084, 0.03143947944045067, -0.05976884812116623, 0.013444744050502777, -0.054840244352817535, -0.006165976170450449, 0.026555262506008148, 0.013475420884788036, -0.06534036993980408, -0.021821264177560806, -0.07966268062591553, -0.068391352891922, -0.0808592140674591, 0.0796622782945633, 0.05232757329940796, 0.010961181484162807, -0.0773303285241127, 0.028553666546940804, 0.007950246334075928, -0.09022162854671478, 0.019624723121523857, -0.08770546317100525, -0.036663785576820374, 0.08223322033882141, 0.019013818353414536, -0.035079602152109146, -0.031002657487988472, 0.011434219777584076, -0.02638980932533741, 0.05687694996595383, 0.08636070787906647, 0.05429670959711075, -0.05909968167543411, 0.01540269237011671, 0.008093543350696564, -0.023546094074845314, -0.011117244139313698, 0.12028568983078003, -0.020590893924236298, 0.026873813942074776, -0.022992633283138275, -0.09473736584186554, -0.026549072936177254, -0.06124771758913994, 0.08319741487503052, 0.028173256665468216, -0.017210906371474266, 0.00647613825276494, -0.07081857323646545, 0.11701492965221405, 0.04151641204953194, 0.012169161811470985, 0.00695798359811306, -0.05046140030026436, -0.0035469091963022947, 0.022650059312582016, -0.04124176874756813, -0.0036302730441093445, 0.001983826979994774, 0.013909145258367062, -0.058756276965141296, -2.397407136848624e-33, -0.0015369276516139507, -0.055660590529441833, 0.01736253872513771, 0.041408736258745193, 0.004939848091453314, -0.09229082614183426, 0.06475688517093658, 0.01090619433671236, -0.017810113728046417, 0.042200714349746704, -0.0008449835004284978, 0.07100266963243484, 0.07161534577608109, -0.04901737719774246, 0.07851441949605942, -0.04658021777868271, -0.08370816707611084, -0.06724333018064499, 0.1193823516368866, 0.05261850729584694, -0.047393083572387695, 0.05411417409777641, -0.0415831059217453, -0.035636499524116516, 0.11332599818706512, 0.03218387812376022, 0.012768443673849106, 0.04741322249174118, -0.11369236558675766, -0.014319506473839283, -0.01774459332227707, 0.081915482878685, -0.015505288727581501, 0.03095923364162445, -0.01913553476333618, 0.059430502355098724, -0.01492287591099739, 0.10312937200069427, -0.013497313484549522, -0.007095940411090851, 0.09158006310462952, -0.04111727327108383, -0.08007340133190155, -0.0013899676268920302, -0.03078531287610531, 0.02848813124001026, -0.028984809294342995, 0.039245687425136566, 0.015704317018389702, -0.11360886693000793, -0.0005327914841473103, -0.013165452517569065, -0.04381900280714035, 0.030775941908359528, -0.0007051558350212872, 0.05424873158335686, 0.10785940289497375, -0.05207526683807373, -0.01401175931096077, -0.039389483630657196, -0.06125299632549286, -0.08716244995594025, 0.029432030394673347, 0.08131134510040283, -0.005044838879257441, -0.057880524545907974, -0.022996068000793457, 0.032707229256629944, -0.0412924624979496, -0.09439586848020554, -0.02505156211555004, -0.055666420608758926, 0.027924135327339172, 0.03031879849731922, 0.020667728036642075, 0.004099525045603514, 0.009030230343341827, -0.024750860407948494, 0.041603438556194305, -0.009621253237128258, -0.030267279595136642, -0.042112816125154495, 0.01956712268292904, -0.02035243809223175, 0.03870389237999916, -0.013973403722047806, -0.0011914662318304181, 0.10894419997930527, 0.023241421207785606, 0.13523215055465698, -0.03851618617773056, 0.05413499101996422, -0.0047697825357317924, -0.006113926414400339, -0.010071815922856331, -4.737482228733825e-8, -0.04012115299701691, 0.015126442536711693, -0.020777840167284012, 0.03896799683570862, -0.04079625383019447, 0.003150406526401639, 0.0015460720751434565, -0.0038183501455932856, -0.033102892339229584, 0.04026999697089195, 0.028211750090122223, 0.0391826294362545, -0.02907019853591919, 0.015941157937049866, -0.031037429347634315, 0.09582573920488358, -0.018607234582304955, -0.005012411158531904, 0.009689303115010262, -0.07093185186386108, -0.027651948854327202, 0.009410787373781204, 0.03371383994817734, -0.09057716280221939, 0.006010556127876043, -0.0596846304833889, -0.09521715342998505, -0.036611031740903854, -0.010314438492059708, -0.04052714630961418, -0.06869062781333923, -0.014767235144972801, 0.07456984370946884, 0.03770679235458374, -0.034372203052043915, 0.005318338982760906, -0.049846895039081573, -0.015696125105023384, -0.029827753081917763, -0.03092445246875286, 0.03960466384887695, 0.023285113275051117, -0.08445397019386292, -0.0876413956284523, 0.023882292211055756, 0.00820168387144804, -0.028079794719815254, 0.017926473170518875, 0.1020091101527214, 0.02814425714313984, -0.07075722515583038, -0.05208582058548927, 0.04106249287724495, 0.027777215465903282, 0.010848385281860828, 0.0357075072824955, 0.01399132702499628, -0.0798633024096489, 0.018732145428657532, 0.012043698690831661, 0.015140923671424389, 0.043845850974321365, 0.016675002872943878, -0.06302997469902039 ]
0.050971
# Z.AI Z.AI is the API platform for \*\*GLM\*\* models. It provides REST APIs for GLM and uses API keys for authentication. Create your API key in the Z.AI console. OpenClaw uses the `zai` provider with a Z.AI API key. ## CLI setup ```bash openclaw onboard --auth-choice zai-api-key # or non-interactive openclaw onboard --zai-api-key "$ZAI\_API\_KEY" ``` ## Config snippet ```json5 { env: { ZAI\_API\_KEY: "sk-..." }, agents: { defaults: { model: { primary: "zai/glm-4.7" } } }, } ``` ## Notes - GLM models are available as `zai/` (example: `zai/glm-4.7`). - See [/providers/glm](/providers/glm) for the model family overview. - Z.AI uses Bearer auth with your API key.
https://github.com/openclaw/openclaw/blob/main//docs/providers/zai.md
main
opebclaw
[ -0.07215753942728043, 0.03740023076534271, -0.1306968331336975, 0.04329315945506096, 0.009420054964721203, -0.10318347811698914, -0.005145705305039883, -0.00011374652240192518, 0.033347174525260925, -0.0005264520295895636, 0.0270063579082489, -0.052449893206357956, 0.05919235572218895, 0.053387947380542755, 0.09003137797117233, 0.07528900355100632, 0.03384845703840256, -0.06635558605194092, -0.07896055281162262, 0.02405938319861889, 0.04244191572070122, 0.11050674319267273, 0.016587240621447563, -0.018042951822280884, -0.09160396456718445, -0.10592388361692429, -0.0002506089804228395, 0.04240405559539795, -0.002680759644135833, 0.02670392394065857, 0.03549652174115181, 0.047890469431877136, 0.0011410921579226851, 0.016090672463178635, 0.028306489810347557, 0.05692252889275551, 0.038461677730083466, -0.06632082909345627, -0.01974327303469181, -0.020389046519994736, 0.08635072410106659, 0.02009790949523449, -0.07567240297794342, -0.08556237816810608, -0.0024637472815811634, -0.051471758633852005, -0.03873233497142792, -0.05178297683596611, -0.020223217085003853, 0.0491204634308815, -0.09839179366827011, -0.08488533645868301, -0.0017471994506195188, -0.08205752074718475, -0.04328344017267227, -0.004158018156886101, -0.0960889607667923, -0.04112610965967178, 0.040270157158374786, -0.08296768367290497, 0.0699271708726883, -0.03229426220059395, -0.029200034216046333, 0.013382061384618282, -0.10790356248617172, 0.007410743739455938, -0.03929140418767929, -0.12564192712306976, -0.07717890292406082, -0.039174411445856094, 0.06489935517311096, -0.07613573223352432, 0.00044701769365929067, -0.10681400448083878, -0.0279457475990057, 0.002746980171650648, 0.052205003798007965, -0.025716455653309822, -0.02192067727446556, -0.06976299732923508, -0.06382088363170624, -0.044761449098587036, -0.010667894035577774, 0.07460177689790726, 0.009865254163742065, 0.14254800975322723, 0.007326622027903795, 0.05044481158256531, -0.039353374391794205, 0.007246893830597401, 0.026469923555850983, -0.07490899413824081, -0.020177461206912994, -0.022577911615371704, 0.04560477286577225, 0.025163110345602036, -0.011907033622264862, -0.06244692951440811, -0.06308598071336746, 0.10508332401514053, -0.00474693113937974, -0.01573062501847744, 0.08945641666650772, 0.05181453749537468, -0.06423758715391159, 0.059597503393888474, 0.0632702186703682, 0.05830635130405426, -0.08594364672899246, 0.055891502648591995, -0.0034705190919339657, 0.03806222230195999, 0.05595271661877632, -0.036666832864284515, -0.018103279173374176, 0.10103300958871841, -0.06047099828720093, 0.03578200936317444, 0.05235457420349121, 0.04189399257302284, 0.07219747453927994, 0.008020908571779728, 0.011870582588016987, 0.05968374013900757, 0.11915513128042221, 0.04914857819676399, 0.005027276463806629, 3.112556594053795e-33, 0.010769396089017391, 0.038818664848804474, 0.013413270935416222, -0.02237200178205967, 0.06234842166304588, 0.01688378117978573, 0.025945551693439484, 0.029763279482722282, -0.031209537759423256, 0.07105129957199097, -0.08720500767230988, 0.09111681580543518, 0.020806126296520233, -0.02426886186003685, -0.02276202291250229, 0.07438849657773972, -0.060804083943367004, -0.03422284126281738, 0.07084624469280243, 0.0419933907687664, 0.11268983036279678, -0.05295794457197189, 0.005008378066122532, 0.01695338822901249, 0.0054542189463973045, 0.0735519602894783, -0.034370407462120056, -0.09156807512044907, -0.03755931556224823, 0.020252244547009468, 0.09784111380577087, 0.0020457215141505003, -0.01808256097137928, -0.0625353530049324, -0.0026128615718334913, 0.023360155522823334, -0.025037357583642006, 0.009631896391510963, -0.06505043059587479, -0.04559215158224106, 0.0043322001583874226, -0.004953618161380291, -0.0753079503774643, 0.007110808975994587, -0.032947663217782974, -0.022335795685648918, 0.001960348105058074, 0.030622966587543488, 0.03620459511876106, 0.004471513442695141, -0.06966143101453781, -0.024691613391041756, -0.013626017607748508, -0.022833360359072685, -0.06769591569900513, -0.02584381029009819, -0.009476695209741592, 0.009977666661143303, 0.016231069341301918, -0.06762844324111938, -0.0023248682264238596, 0.007298148237168789, 0.00573433144018054, 0.07627248764038086, 0.018369458615779877, 0.02598300576210022, -0.028234433382749557, -0.00465980963781476, -0.01449657790362835, 0.038565803319215775, -0.0019440806936472654, 0.038226623088121414, -0.019311852753162384, 0.06474995613098145, -0.042924750596284866, -0.10887784510850906, 0.051406390964984894, -0.03430766239762306, 0.09819173812866211, 0.016616091132164, 0.020315662026405334, 0.008664199151098728, -0.0633053407073021, 0.077178455889225, -0.015884745866060257, -0.003266884246841073, -0.022194188088178635, -0.01301602739840746, 0.0028511423151940107, -0.025275276973843575, -0.029485361650586128, -0.05317069962620735, 0.008478964678943157, -0.039820101112127304, -0.03299865126609802, -4.691453055429444e-33, 0.03475899249315262, -0.030959557741880417, 0.04972238466143608, -0.0011481501860544086, 0.0336601622402668, -0.05035348981618881, 0.012532769702374935, -0.07887279242277145, -0.0565362311899662, -0.056721050292253494, 0.010106262750923634, 0.09625212848186493, 0.04431777074933052, -0.006854172330349684, 0.05871915444731712, -0.052589528262615204, -0.1195981353521347, -0.0354914590716362, 0.06586664170026779, -0.004845994524657726, -0.006274911109358072, -0.026001213118433952, 0.03628767654299736, -0.013968199491500854, 0.10786774009466171, 0.015330590307712555, 0.03546780347824097, 0.043242987245321274, 0.009656927548348904, -0.00885841716080904, -0.019847160205245018, 0.06644731014966965, -0.03093905746936798, -0.019129358232021332, -0.02706965059041977, 0.06548506021499634, -0.045246705412864685, 0.09804695844650269, -0.042538274079561234, -0.008058466948568821, 0.011657968163490295, -0.022988973185420036, -0.04685777798295021, -0.01997445710003376, -0.006495663430541754, 0.04708027467131615, 0.033833008259534836, -0.01802626997232437, -0.05383044853806496, -0.08667649328708649, 0.042935047298669815, 0.054977573454380035, -0.037745244801044464, -0.017924973741173744, 0.04655543342232704, 0.07512547820806503, 0.07645886391401291, -0.08294361084699631, -0.042819276452064514, -0.0923648476600647, -0.029316475614905357, -0.04514426738023758, 0.035094067454338074, 0.08498792350292206, -0.04326965659856796, -0.07325705140829086, 0.03316149488091469, 0.027853768318891525, -0.03151075541973114, -0.012606204487383366, -0.08746295422315598, -0.07598791271448135, 0.018230173736810684, 0.0008296918240375817, -0.011397803202271461, -0.010820253752171993, -0.08005724102258682, -0.02470138669013977, 0.06890780478715897, 0.011189071461558342, -0.022989517077803612, -0.05651109665632248, 0.06225872039794922, 0.07162339240312576, 0.03406780585646629, -0.018651973456144333, 0.038563404232263565, 0.07683449983596802, 0.06109791621565819, 0.06591714918613434, -0.05723613128066063, 0.0396505631506443, 0.033097103238105774, 0.004533335566520691, -0.07453139871358871, -4.601076497579015e-8, -0.032091401517391205, -0.006882861256599426, -0.046952515840530396, 0.028965488076210022, -0.06210746616125107, -0.012966328300535679, -0.015543130226433277, -0.06444159895181656, -0.04381339251995087, -0.00895137432962656, 0.07345984131097794, 0.050590768456459045, -0.031030399724841118, -0.0026659388095140457, -0.058640431612730026, 0.10274610668420792, -0.021467292681336403, -0.010314015671610832, 0.06729654967784882, -0.03529112786054611, -0.005972995888441801, 0.004972872789949179, 0.011409747414290905, -0.062394388020038605, 0.020006876438856125, -0.027342746034264565, -0.07451333850622177, 0.009088955819606781, -0.031740061938762665, -0.0027999214362353086, -0.040854133665561676, -0.0059113153256475925, 0.11189595609903336, -0.02032843790948391, -0.023487474769353867, -0.0459551140666008, -0.01088218204677105, -0.00635493965819478, -0.02073594368994236, -0.04164142906665802, 0.03704860433936119, 0.06774924695491791, -0.041778095066547394, -0.08755173534154892, -0.016839923337101936, 0.03629634529352188, 0.034102778881788254, -0.04531937092542648, 0.08657155185937881, 0.03602945804595947, -0.011451084166765213, -0.0146369943395257, 0.003605604637414217, 0.10509594529867172, 0.01486916933208704, 0.09477400034666061, 0.03646707534790039, -0.07866333425045013, 0.04709944501519203, 0.008729882538318634, -0.023161372169852257, 0.0042531732469797134, -0.012560729868710041, -0.04453716054558754 ]
0.036179
# OpenCode Zen OpenCode Zen is a \*\*curated list of models\*\* recommended by the OpenCode team for coding agents. It is an optional, hosted model access path that uses an API key and the `opencode` provider. Zen is currently in beta. ## CLI setup ```bash openclaw onboard --auth-choice opencode-zen # or non-interactive openclaw onboard --opencode-zen-api-key "$OPENCODE\_API\_KEY" ``` ## Config snippet ```json5 { env: { OPENCODE\_API\_KEY: "sk-..." }, agents: { defaults: { model: { primary: "opencode/claude-opus-4-5" } } }, } ``` ## Notes - `OPENCODE\_ZEN\_API\_KEY` is also supported. - You sign in to Zen, add billing details, and copy your API key. - OpenCode Zen bills per request; check the OpenCode dashboard for details.
https://github.com/openclaw/openclaw/blob/main//docs/providers/opencode.md
main
opebclaw
[ -0.029515502974390984, -0.006900537293404341, -0.19814635813236237, 0.02965560369193554, 0.016093332320451736, 0.0022808911744505167, 0.00517243379727006, -0.012582738883793354, 0.034962087869644165, -0.014988475479185581, 0.0018343983683735132, -0.0077719432301819324, -0.021827738732099533, 0.060435764491558075, 0.11089038103818893, 0.07559730857610703, -0.003270382061600685, -0.03209860995411873, -0.03926732763648033, 0.01586855947971344, 0.022739237174391747, 0.0365174226462841, 0.034394584596157074, -0.022503143176436424, -0.036904558539390564, -0.061526793986558914, -0.022777648642659187, 0.027014806866645813, 0.00989130325615406, 0.04712492600083351, 0.06603741645812988, 0.02094707451760769, 0.03871488571166992, -0.011097950860857964, 0.053423527628183365, 0.04174426570534706, 0.009315485134720802, -0.04848211258649826, -0.033596400171518326, -0.03980075940489769, 0.03489004075527191, 0.019437672570347786, -0.10973386466503143, -0.020651381462812424, -0.05495979264378548, -0.0400705523788929, -0.009363450109958649, -0.07271894067525864, -0.0492279939353466, -0.014842485077679157, -0.047675784677267075, -0.050192032009363174, -0.03120366856455803, -0.010915535502135754, -0.04232916608452797, 0.05002967640757561, -0.04504343122243881, 0.01483952347189188, -0.05110391601920128, -0.044662851840257645, 0.005762272048741579, 0.01805325224995613, -0.07366549968719482, 0.034561920911073685, -0.06781843304634094, -0.004311350639909506, -0.09425896406173706, -0.022800175473093987, -0.06348417699337006, -0.09447477757930756, 0.02615770511329174, -0.042294420301914215, -0.023017868399620056, -0.06129617616534233, 0.0028106963727623224, -0.04343346506357193, 0.0931919738650322, 0.02506031095981598, -0.005315607879310846, -0.07545705884695053, -0.03361695632338524, 0.03033692017197609, -0.044230859726667404, 0.04000898823142052, 0.04184785485267639, 0.17750239372253418, 0.03224368393421173, 0.11024977266788483, 0.006462855264544487, 0.032107625156641006, 0.03042657859623432, -0.025737972930073738, -0.01025379542261362, -0.003809042740613222, 0.059077486395835876, 0.018684225156903267, 0.053994715213775635, -0.04776579514145851, -0.023842990398406982, 0.07828851789236069, 0.045494772493839264, 0.015828372910618782, 0.10003407299518585, 0.005325848702341318, 0.01787257008254528, 0.04731503501534462, 0.08972637355327606, 0.041903961449861526, -0.05877413973212242, 0.05399451404809952, 0.019698509946465492, 0.006995500531047583, 0.07659377157688141, -0.05752745643258095, 0.02767670899629593, 0.06664492189884186, -0.047793272882699966, 0.03526662290096283, 0.06013761833310127, 0.07267483323812485, 0.04273659363389015, -0.005037101451307535, -0.007279471028596163, 0.02591063641011715, -0.011556877754628658, 0.09566367417573929, -0.021181367337703705, 1.894136862959324e-33, 0.0036134375259280205, 0.009727413766086102, -0.01289346069097519, -0.03102327510714531, 0.00832895003259182, -0.00032993496279232204, 0.06599858403205872, 0.03508263826370239, -0.06181872636079788, 0.09263341873884201, 0.0059568374417722225, 0.056196101009845734, 0.027919959276914597, 0.06732397526502609, -0.03573501110076904, 0.03332805633544922, -0.06739972531795502, -0.00007740206638118252, 0.0796382799744606, 0.028767777606844902, 0.027978254482150078, -0.011965506710112095, -0.024295708164572716, -0.007141674403101206, 0.030495788902044296, 0.07100535929203033, -0.056258317083120346, -0.060407329350709915, -0.04273604974150658, 0.029221395030617714, 0.06579336524009705, 0.011731268838047981, -0.05778177082538605, -0.04818505793809891, -0.01941334269940853, 0.01863178052008152, -0.02753387950360775, 0.008221378549933434, -0.08006858080625534, -0.060605261474847794, 0.06999543309211731, -0.042747221887111664, -0.07471945881843567, 0.07351107895374298, 0.02320566214621067, -0.019147839397192, -0.01839553564786911, -0.009092767722904682, 0.061881329864263535, 0.02188768796622753, -0.11865606158971786, -0.017605211585760117, -0.07148489356040955, -0.005461191292852163, -0.08191768079996109, -0.10719358175992966, 0.029233114793896675, -0.046096280217170715, -0.01758594997227192, -0.08297882229089737, -0.15290482342243195, -0.056512683629989624, -0.004385610576719046, 0.04916620999574661, 0.044078387320041656, -0.0312194786965847, -0.06826645880937576, -0.01733657345175743, 0.023643067106604576, 0.05135856196284294, -0.03030218556523323, 0.02063477225601673, -0.0014948492171242833, 0.024536721408367157, -0.07554545998573303, -0.05926307663321495, 0.03674467280507088, -0.02731368876993656, 0.10179324448108673, 0.005373460240662098, -0.027042079716920853, 0.08411503583192825, -0.031462661921978, 0.11175593733787537, 0.008766168728470802, 0.04379226267337799, 0.007310681510716677, -0.0056710680946707726, -0.005043739918619394, 0.02413938380777836, 0.011233940720558167, 0.004700866993516684, 0.01216952409595251, -0.08342486619949341, -0.03564450889825821, -3.4750988883145586e-33, 0.020050277933478355, 0.004717833828181028, -0.04131024703383446, -0.008062586188316345, 0.010269262827932835, -0.04980701953172684, -0.038713160902261734, 0.017884667962789536, -0.028553253039717674, -0.04666798934340477, -0.013086700811982155, 0.009470070712268353, 0.06557222455739975, 0.03174568712711334, 0.067825086414814, -0.047437433153390884, -0.13019311428070068, -0.06281234323978424, 0.09674599766731262, 0.04894307255744934, -0.009923196397721767, 0.0181743111461401, 0.05340567231178284, 0.011121624149382114, 0.05058514326810837, 0.013914907351136208, 0.05018481984734535, -0.00665411539375782, 0.05282803624868393, -0.019543202593922615, 0.026276225224137306, -0.01635483093559742, -0.09810823202133179, 0.009691041894257069, 0.02033337578177452, 0.047786448150873184, 0.004660208709537983, 0.10590407997369766, -0.08582327514886856, -0.005052505526691675, 0.055411577224731445, -0.06110211834311485, -0.022254429757595062, -0.00249275634996593, -0.03374015912413597, 0.004387993831187487, -0.0068497504107654095, 0.008741297759115696, -0.09726162999868393, -0.06319696456193924, -0.0003084574709646404, -0.009435512125492096, -0.09740503877401352, 0.008893364109098911, 0.010986433364450932, 0.037804462015628815, 0.07233840972185135, -0.04230141639709473, 0.0014300468610599637, -0.058869555592536926, -0.004491123836487532, 0.01859639398753643, 0.04105810448527336, 0.06613665819168091, -0.02315395511686802, -0.12489056587219238, 0.04570154473185539, 0.09537789970636368, -0.08879052102565765, -0.04158896580338478, -0.09656009078025818, -0.07554443180561066, 0.05748266726732254, 0.01969783753156662, -0.020020244643092155, -0.009571162052452564, -0.013618944212794304, -0.013271725736558437, 0.044289398938417435, 0.04571019485592842, 0.014165916480123997, -0.008779634721577168, 0.03506186977028847, 0.0028226955328136683, -0.01704050786793232, -0.03587731719017029, -0.00758337089791894, 0.024966411292552948, 0.016171975061297417, 0.04778219386935234, -0.04953257367014885, 0.07354749739170074, 0.0038296415004879236, 0.013034260831773281, -0.08698756247758865, -4.381878682124807e-8, -0.03556571900844574, -0.040333639830350876, -0.03207889199256897, 0.017147695645689964, -0.09530366212129593, -0.05374355614185333, 0.05825137346982956, -0.0014540498377755284, -0.06342915445566177, 0.05436285212635994, 0.09989216178655624, 0.01484894473105669, -0.03211496025323868, 0.05270514637231827, -0.08990029990673065, 0.1035224199295044, -0.045644186437129974, 0.0026547592133283615, 0.02593841962516308, -0.09049954265356064, -0.040009353309869766, 0.04862288013100624, 0.046679768711328506, -0.06638156622648239, -0.023946009576320648, -0.01879020780324936, -0.1097896620631218, 0.1000666692852974, -0.005467213690280914, -0.05923629179596901, 0.02273644134402275, 0.028245875611901283, 0.10604218393564224, 0.005749620497226715, 0.022666849195957184, -0.028266379609704018, 0.006296698469668627, -0.05484416335821152, -0.05079915001988411, -0.023901812732219696, 0.07005517184734344, -0.014740959741175175, -0.02776074782013893, -0.08201190084218979, 0.008880889974534512, -0.03645438700914383, 0.013576026074588299, -0.0745600014925003, 0.10806795209646225, 0.024382401257753372, -0.04709165543317795, -0.0029008518904447556, 0.03250313177704811, 0.048975106328725815, 0.009246588684618473, 0.07696616649627686, -0.017608100548386574, -0.028775887563824654, 0.05844540148973465, 0.010209686122834682, -0.05626441165804863, 0.04335317388176918, 0.017898332327604294, -0.017266616225242615 ]
0.070207
# OpenRouter OpenRouter provides a \*\*unified API\*\* that routes requests to many models behind a single endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL. ## CLI setup ```bash openclaw onboard --auth-choice apiKey --token-provider openrouter --token "$OPENROUTER\_API\_KEY" ``` ## Config snippet ```json5 { env: { OPENROUTER\_API\_KEY: "sk-or-..." }, agents: { defaults: { model: { primary: "openrouter/anthropic/claude-sonnet-4-5" }, }, }, } ``` ## Notes - Model refs are `openrouter//`. - For more model/provider options, see [/concepts/model-providers](/concepts/model-providers). - OpenRouter uses a Bearer token with your API key under the hood.
https://github.com/openclaw/openclaw/blob/main//docs/providers/openrouter.md
main
opebclaw
[ 0.005660985596477985, -0.05258677899837494, -0.11802405118942261, 0.03592440485954285, 0.07213466614484787, -0.06259072571992874, -0.053091857582330704, 0.015823721885681152, 0.03798246383666992, -0.012816671282052994, 0.006666915956884623, -0.04009813815355301, -0.004533359780907631, 0.02488652803003788, 0.16362503170967102, 0.14937524497509003, 0.0013446714729070663, 0.0009477908024564385, -0.03707330673933029, -0.010009313002228737, 0.00932821910828352, 0.04576313868165016, -0.03004825860261917, -0.011000126600265503, -0.10614970326423645, -0.11721386015415192, 0.014813433401286602, 0.03245307877659798, -0.005464532412588596, 0.00183731853030622, 0.05907925218343735, 0.046697892248630524, -0.060448676347732544, -0.008217105641961098, 0.04573284462094307, 0.06508876383304596, -0.01176218967884779, -0.060115914791822433, -0.059419240802526474, -0.0021656816825270653, 0.11913619190454483, 0.028889568522572517, -0.06164460629224777, -0.025416895747184753, -0.011108282022178173, -0.08598290383815765, -0.0339667908847332, -0.060389161109924316, -0.0005976614775136113, 0.022873548790812492, -0.028575284406542778, -0.06728298217058182, 0.039834409952163696, -0.0728885754942894, -0.03852146118879318, -0.002133481204509735, -0.11090860515832901, -0.009116976521909237, 0.04071404039859772, -0.08114835619926453, 0.06458703428506851, -0.04720253497362137, -0.010967790149152279, -0.02790919318795204, -0.11575469374656677, -0.022712932899594307, -0.07457388937473297, -0.09122258424758911, 0.03270977362990379, -0.06396179646253586, 0.04870891571044922, -0.036755483597517014, 0.028589647263288498, -0.06046212837100029, -0.00007241969433380291, 0.026783067733049393, 0.04764449596405029, 0.05588580295443535, 0.02120967023074627, -0.057825591415166855, -0.034756455570459366, -0.02020089328289032, -0.04513988271355629, 0.041012659668922424, 0.011337188072502613, 0.09899286180734634, 0.020424077287316322, 0.03372853994369507, 0.04711056128144264, 0.04387800768017769, -0.02084977738559246, -0.06669282168149948, 0.007847657427191734, -0.07906528562307358, 0.04692383110523224, 0.014660190790891647, -0.0852133184671402, -0.06503766775131226, -0.07930939644575119, 0.08498325943946838, -0.04133034497499466, -0.008518430404365063, 0.012631259858608246, 0.09947005659341812, -0.036733951419591904, 0.027733763679862022, 0.05969526246190071, 0.07410960644483566, 0.0062308600172400475, 0.038924459367990494, 0.01660645194351673, -0.009268130175769329, 0.08894868940114975, 0.015499564819037914, -0.014548945240676403, 0.053538598120212555, -0.06014668196439743, -0.0061274683102965355, 0.08003488928079605, 0.02225094474852085, -0.006800845731049776, -0.02573448419570923, 0.04599836468696594, 0.01764022186398506, 0.06149541959166527, 0.020220017060637474, 0.03903408721089363, 1.9248016534814388e-33, 0.036438245326280594, 0.040612030774354935, 0.01888120360672474, -0.031880974769592285, 0.08639561384916306, -0.017855379730463028, 0.043807294219732285, 0.005575176794081926, 0.032735563814640045, 0.014733090065419674, -0.088889479637146, 0.09231121093034744, -0.008618091233074665, -0.024569552391767502, 0.009680461138486862, 0.02590271085500717, -0.08368419855833054, 0.011069633066654205, 0.10723040997982025, 0.021868040785193443, 0.0253008883446455, -0.015151177532970905, -0.016799375414848328, -0.001608367427252233, 0.005710165482014418, 0.012929737567901611, -0.03145594522356987, -0.08774618059396744, 0.011285032145678997, 0.03421047329902649, 0.08870111405849457, 0.042996082454919815, -0.01962684467434883, 0.028791604563593864, -0.028826795518398285, 0.024006865918636322, -0.036556921899318695, -0.01594367064535618, -0.06351155787706375, 0.003721333807334304, -0.026012880727648735, 0.011770966462790966, -0.035796403884887695, 0.019068412482738495, -0.07223040610551834, -0.0704345628619194, -0.06166119500994682, 0.06563644111156464, 0.08429031819105148, -0.006815936882048845, -0.08898574858903885, -0.007519799284636974, 0.032941486686468124, -0.07529705762863159, 0.02773885615170002, -0.09781464189291, -0.03815002739429474, 0.0013643343700096011, 0.005884209647774696, -0.03778647631406784, -0.06108298525214195, -0.05155915021896362, 0.004660988226532936, 0.056374289095401764, 0.02469986118376255, 0.0531577467918396, -0.04529527202248573, 0.011809366755187511, 0.01731770671904087, 0.0022197288926690817, -0.005402322392910719, 0.08732428401708603, -0.020075779408216476, 0.0354359969496727, -0.07516878843307495, -0.030222274363040924, 0.017159543931484222, -0.02662343531847, 0.09979653358459473, -0.01593106798827648, 0.012024895288050175, 0.03770638257265091, -0.03180113434791565, 0.1003434807062149, 0.00444312859326601, 0.008797246031463146, -0.03425220400094986, -0.05220998451113701, 0.04929551109671593, 0.053973570466041565, -0.04363153874874115, -0.003688180586323142, -0.03861726447939873, 0.04539106786251068, -0.04122062027454376, -2.1701232837362192e-33, 0.008460406213998795, -0.03256013244390488, 0.015592695213854313, 0.042930684983730316, -0.017873942852020264, -0.053060997277498245, 0.03781808167695999, -0.012093547731637955, 0.012119556777179241, -0.009097667410969734, -0.017111128196120262, 0.0681183785200119, 0.0960119217634201, -0.032989148050546646, 0.03306709975004196, -0.08667183667421341, -0.052584584802389145, 0.0026674687396734953, 0.05633533373475075, 0.007754303514957428, -0.06847470998764038, -0.01765487529337406, -0.06510250270366669, -0.06354816257953644, 0.14021635055541992, 0.04909548535943031, 0.021764004603028297, 0.0029869088903069496, -0.07066798955202103, -0.02946070209145546, 0.006194013636559248, 0.0351598784327507, 0.016402248293161392, 0.02944955788552761, -0.010387708432972431, 0.10924720019102097, -0.03920980170369148, 0.1320524662733078, 0.022647051140666008, -0.0017729535466060042, 0.03765525668859482, -0.07000645250082016, -0.030997367575764656, -0.00015928188804537058, -0.038621071726083755, 0.001558119198307395, 0.003418343374505639, 0.03887137770652771, -0.06440248340368271, -0.0861089751124382, 0.019057942554354668, 0.02476821094751358, -0.01724347285926342, -0.016376102343201637, 0.018774446099996567, 0.07520610094070435, 0.087620809674263, -0.0674276202917099, -0.004194342531263828, -0.07955645769834518, 0.011522360146045685, -0.044309236109256744, 0.008661530911922455, 0.1223839744925499, -0.02628716267645359, -0.09389656782150269, 0.012950192205607891, 0.06278346478939056, -0.07266929000616074, -0.051811669021844864, -0.10191627591848373, -0.11511856317520142, 0.06137869134545326, 0.06621451675891876, 0.017892934381961823, -0.01750468648970127, 0.005311234854161739, -0.03171356022357941, 0.08327692747116089, 0.018745066598057747, -0.0828942358493805, -0.06503192335367203, 0.054607804864645004, -0.04458104074001312, 0.0721217468380928, 0.023251404985785484, 0.022160766646265984, 0.05306883901357651, 0.09016554057598114, 0.13814550638198853, -0.009454307146370411, 0.0610516257584095, -0.0025690491311252117, 0.006651984993368387, -0.014434071257710457, -4.66541152377431e-8, -0.025977157056331635, 0.004660066682845354, -0.0523797981441021, 0.06179878115653992, -0.05936449393630028, -0.005354200955480337, 0.027089646086096764, -0.019802182912826538, -0.013209884986281395, 0.030235113576054573, 0.023194527253508568, 0.07784023135900497, -0.08089163154363632, -0.02906336635351181, -0.04264834150671959, 0.086913101375103, 0.0012525812489911914, 0.0016813586698845029, 0.023464558646082878, -0.0665060505270958, -0.09271542727947235, -0.004367993678897619, 0.05215080454945564, -0.07399814575910568, -0.04519304260611534, -0.01410231925547123, -0.060856644064188004, 0.03973739966750145, -0.000858558458276093, 0.016320249065756798, -0.03922967240214348, -0.018297551199793816, 0.03302913159132004, 0.002682145219296217, -0.04785755276679993, 0.05353566259145737, -0.02512185461819172, 0.01933264173567295, 0.014269629493355751, 0.02251484803855419, 0.021171990782022476, 0.04814929887652397, -0.06733150780200958, -0.07533391565084457, 0.005445646122097969, 0.038681186735630035, -0.027057470753788948, -0.000047743666073074564, 0.039892103523015976, 0.01382461842149496, -0.03561751917004585, -0.03431225195527077, 0.005676936358213425, 0.0617169551551342, 0.0020226880442351103, 0.04607430845499039, -0.025767380371689796, -0.09180278331041336, 0.013189827091991901, 0.01044613029807806, -0.06739215552806854, 0.008446366526186466, 0.02402617409825325, -0.003429736942052841 ]
0.042503
# GitHub Copilot ## What is GitHub Copilot? GitHub Copilot is GitHub's AI coding assistant. It provides access to Copilot models for your GitHub account and plan. OpenClaw can use Copilot as a model provider in two different ways. ## Two ways to use Copilot in OpenClaw ### 1) Built-in GitHub Copilot provider (`github-copilot`) Use the native device-login flow to obtain a GitHub token, then exchange it for Copilot API tokens when OpenClaw runs. This is the \*\*default\*\* and simplest path because it does not require VS Code. ### 2) Copilot Proxy plugin (`copilot-proxy`) Use the \*\*Copilot Proxy\*\* VS Code extension as a local bridge. OpenClaw talks to the proxy’s `/v1` endpoint and uses the model list you configure there. Choose this when you already run Copilot Proxy in VS Code or need to route through it. You must enable the plugin and keep the VS Code extension running. Use GitHub Copilot as a model provider (`github-copilot`). The login command runs the GitHub device flow, saves an auth profile, and updates your config to use that profile. ## CLI setup ```bash openclaw models auth login-github-copilot ``` You'll be prompted to visit a URL and enter a one-time code. Keep the terminal open until it completes. ### Optional flags ```bash openclaw models auth login-github-copilot --profile-id github-copilot:work openclaw models auth login-github-copilot --yes ``` ## Set a default model ```bash openclaw models set github-copilot/gpt-4o ``` ### Config snippet ```json5 { agents: { defaults: { model: { primary: "github-copilot/gpt-4o" } } }, } ``` ## Notes - Requires an interactive TTY; run it directly in a terminal. - Copilot model availability depends on your plan; if a model is rejected, try another ID (for example `github-copilot/gpt-4.1`). - The login stores a GitHub token in the auth profile store and exchanges it for a Copilot API token when OpenClaw runs.
https://github.com/openclaw/openclaw/blob/main//docs/providers/github-copilot.md
main
opebclaw
[ -0.08592243492603302, -0.06583230197429657, -0.07317288964986801, 0.053224045783281326, -0.03323579952120781, -0.0539746955037117, -0.05361271649599075, 0.07224217057228088, 0.01523058395832777, -0.02425466850399971, -0.0065115452744066715, -0.029391881078481674, 0.02995758131146431, 0.00011365372483851388, 0.09521166980266571, 0.14197374880313873, 0.07722959667444229, -0.011770874261856079, 0.044206149876117706, 0.026538684964179993, 0.03681662678718567, 0.05019482970237732, -0.013066782616078854, -0.036444906145334244, -0.034402091056108475, -0.07682675123214722, -0.015786048024892807, -0.006741638295352459, -0.00026972475461661816, 0.06024770811200142, 0.04400840401649475, 0.028189389035105705, -0.05692186579108238, 0.05391652137041092, 0.031616345047950745, 0.035661861300468445, 0.03575614094734192, -0.035398077219724655, -0.007822397165000439, -0.010641261003911495, 0.03860834613442421, 0.06806125491857529, -0.025046739727258682, -0.03975587710738182, -0.01021240558475256, -0.07274562865495682, 0.053249482065439224, -0.05943687632679939, -0.026722166687250137, -0.036521460860967636, -0.02555285021662712, -0.08360716700553894, 0.0031593814492225647, -0.024349266663193703, -0.018399575725197792, -0.11146201193332672, 0.053522832691669464, -0.046556003391742706, 0.060857951641082764, -0.08648744970560074, 0.06194424629211426, 0.010637692175805569, -0.07103265076875687, -0.0031036885920912027, -0.15266823768615723, -0.010685937479138374, -0.05415358766913414, 0.06694100052118301, 0.037508275359869, -0.06427089124917984, -0.0412653312087059, 0.025756988674402237, 0.016382522881031036, -0.018645210191607475, 0.04761302471160889, -0.025373069569468498, 0.05956832692027092, 0.04785893112421036, 0.022464266046881676, -0.06764008849859238, -0.0226336270570755, 0.009440234862267971, -0.032192058861255646, 0.07777294516563416, -0.004682642407715321, 0.13973981142044067, -0.013057118281722069, 0.07934033125638962, 0.0479314811527729, 0.023764681071043015, -0.010037550702691078, -0.10035988688468933, -0.017183179035782814, -0.016306675970554352, 0.08650890737771988, -0.0696520060300827, 0.019668200984597206, -0.00028732820646837354, -0.04748598113656044, 0.07176242768764496, -0.0025522541254758835, 0.012645456939935684, 0.028110966086387634, -0.02491093799471855, -0.016564691439270973, 0.07337728142738342, 0.05627049505710602, 0.03771638125181198, 0.01489349827170372, 0.00988087896257639, 0.009902166202664375, -0.03494671359658241, 0.09163467586040497, -0.04404200240969658, -0.03215130418539047, 0.11872173845767975, -0.05872262641787529, -0.021204615011811256, 0.09586606174707413, 0.03468233346939087, -0.0010216692462563515, 0.015548951923847198, -0.023379074409604073, 0.0097388019785285, 0.03880123049020767, 0.03909644857048988, 0.037850767374038696, 7.081742941325824e-33, 0.03648902475833893, 0.017818067222833633, 0.004774474073201418, -0.0043554650619626045, 0.13635936379432678, 0.02065075747668743, 0.009517714381217957, -0.08126858621835709, -0.04598246514797211, 0.023501882329583168, -0.04686736688017845, -0.035222843289375305, -0.06196047365665436, 0.030721837654709816, -0.05420367792248726, -0.02204812504351139, -0.09659317135810852, -0.015767937526106834, 0.0008507227757945657, 0.03799897059798241, 0.011006307788193226, -0.07866765558719635, -0.02647855132818222, 0.02288396842777729, 0.06148773059248924, -0.03262145444750786, 0.0007539268117398024, 0.010193976573646069, -0.01682608760893345, 0.05133587121963501, 0.02539665438234806, 0.08711232244968414, -0.04479387030005455, 0.024965284392237663, -0.06045324727892876, -0.030766107141971588, -0.05382215976715088, -0.048549894243478775, -0.04565368965268135, -0.017166517674922943, 0.05964985862374306, -0.004874766804277897, -0.07567022740840912, -0.02876594103872776, 0.05258534848690033, -0.10112215578556061, 0.020043881610035896, 0.06205223873257637, 0.09551792591810226, 0.038385920226573944, 0.03408719226717949, 0.020959772169589996, -0.04194699972867966, -0.02204945497214794, -0.03681038320064545, -0.06234821304678917, -0.014301091432571411, -0.06674470752477646, 0.03390556946396828, 0.021990222856402397, -0.06320251524448395, -0.004118287470191717, 0.045125123113393784, 0.053531233221292496, 0.022719059139490128, 0.024321023374795914, 0.010586916469037533, 0.009489577263593674, 0.05245335027575493, 0.025869738310575485, -0.014645534567534924, 0.02444547414779663, -0.09143184125423431, -0.010783329606056213, -0.06130252033472061, -0.001013074186630547, 0.060325972735881805, 0.047968506813049316, 0.07006799429655075, -0.025707989931106567, -0.017381751909852028, -0.01598707213997841, -0.05412738770246506, 0.019948219880461693, -0.05207164213061333, 0.03970981761813164, 0.03642212972044945, -0.039723243564367294, -0.001460115541703999, 0.009756265208125114, -0.009394457563757896, 0.006933674216270447, -0.06691250205039978, 0.008168977685272694, 0.0013916869647800922, -7.575917827675637e-33, -0.008510601706802845, 0.011002755723893642, 0.022427000105381012, -0.029286764562129974, -0.03392423689365387, -0.018572183325886726, 0.005895367357879877, -0.12867838144302368, 0.02047978714108467, 0.022441379725933075, -0.07945668697357178, 0.030697720125317574, 0.00619578966870904, 0.003135088598355651, 0.09961224347352982, -0.013680868782103062, -0.03353627771139145, -0.07809552550315857, 0.024795303121209145, 0.046742964535951614, -0.004834899213165045, -0.02444811910390854, 0.0016996355261653662, -0.036018747836351395, 0.020779334008693695, 0.04098073020577431, -0.05241696164011955, 0.04783006012439728, 0.0979200154542923, -0.06072116643190384, 0.041587572544813156, 0.03116096742451191, -0.012463274411857128, -0.04566939175128937, -0.013059825636446476, 0.04387412220239639, 0.024055851623415947, 0.08365454524755478, 0.0550958514213562, -0.0449979230761528, 0.08556363731622696, -0.05686094984412193, -0.0429023876786232, -0.04507671296596527, 0.0017677581636235118, 0.0694747120141983, -0.01662401854991913, -0.037455376237630844, -0.09659826010465622, -0.068324014544487, 0.003666594857349992, 0.06532803922891617, 0.0414324551820755, 0.013775411993265152, 0.018320314586162567, 0.04612402245402336, 0.021717101335525513, -0.006196421571075916, -0.008712138049304485, -0.07527827471494675, -0.02454664371907711, -0.029499471187591553, 0.014157932251691818, 0.04682783782482147, -0.04769839346408844, -0.06543851643800735, -0.07286856323480606, -0.025675350800156593, -0.10188281536102295, -0.025849701836705208, -0.09235694259405136, -0.014381034299731255, 0.010194343514740467, -0.08304555714130402, -0.03389230743050575, -0.023466400802135468, -0.030410096049308777, -0.037445396184921265, -0.02926578000187874, 0.08153524249792099, -0.01407682616263628, 0.0019944554660469294, 0.09575239568948746, -0.02738775499165058, -0.07108306884765625, 0.038256507366895676, -0.00039622787153348327, 0.1075994223356247, 0.08633413165807724, 0.06312509626150131, -0.10545247048139572, -0.026887891814112663, 0.007467035669833422, -0.03832857310771942, 0.011996228247880936, -5.1503771913985474e-8, -0.04486560821533203, 0.03441024199128151, -0.06115930527448654, -0.007565119303762913, -0.1585598886013031, -0.03636974096298218, -0.01898094452917576, 0.016787340864539146, -0.03864305093884468, 0.07149877399206161, 0.012459039688110352, 0.01749827153980732, -0.013546356931328773, 0.03840135037899017, -0.02935139834880829, 0.12333940714597702, 0.04623016342520714, -0.07116587460041046, 0.0503193736076355, -0.020637135952711105, -0.026780061423778534, -0.01168383564800024, 0.023647325113415718, 0.056566618382930756, -0.08967781066894531, 0.00949131790548563, -0.0808328166604042, 0.026659589260816574, -0.03690987452864647, 0.037006914615631104, 0.07557602226734161, 0.04666714742779732, -0.000509826757479459, -0.03664596378803253, -0.044562455266714096, -0.045561905950307846, -0.0379880890250206, -0.05741621181368828, 0.057481590658426285, 0.01578839309513569, 0.0824371948838234, 0.018610501661896706, -0.07228536903858185, -0.04454479739069939, -0.049062330275774, 0.06318788975477219, 0.04251038283109665, -0.09232576191425323, -0.03405604884028435, 0.020235830917954445, 0.00830729678273201, 0.06798069179058075, -0.05177901312708855, 0.11256565898656845, -0.00343125662766397, 0.11676771193742752, -0.03416643291711807, -0.07473296672105789, -0.0009822542779147625, 0.02447463385760784, -0.07536235451698303, 0.018446967005729675, 0.08819510787725449, -0.048326268792152405 ]
0.079451
# Onboarding Wizard (CLI) The onboarding wizard is the \*\*recommended\*\* way to set up OpenClaw on macOS, Linux, or Windows (via WSL2; strongly recommended). It configures a local Gateway or a remote Gateway connection, plus channels, skills, and workspace defaults in one guided flow. Primary entrypoint: ```bash openclaw onboard ``` Fastest first chat: open the Control UI (no channel setup needed). Run `openclaw dashboard` and chat in the browser. Docs: [Dashboard](/web/dashboard). Follow‑up reconfiguration: ```bash openclaw configure ``` Recommended: set up a Brave Search API key so the agent can use `web\_search` (`web\_fetch` works without a key). Easiest path: `openclaw configure --section web` which stores `tools.web.search.apiKey`. Docs: [Web tools](/tools/web). ## QuickStart vs Advanced The wizard starts with \*\*QuickStart\*\* (defaults) vs \*\*Advanced\*\* (full control). \*\*QuickStart\*\* keeps the defaults: - Local gateway (loopback) - Workspace default (or existing workspace) - Gateway port \*\*18789\*\* - Gateway auth \*\*Token\*\* (auto‑generated, even on loopback) - Tailscale exposure \*\*Off\*\* - Telegram + WhatsApp DMs default to \*\*allowlist\*\* (you’ll be prompted for your phone number) \*\*Advanced\*\* exposes every step (mode, workspace, gateway, channels, daemon, skills). ## What the wizard does \*\*Local mode (default)\*\* walks you through: - Model/auth (OpenAI Code (Codex) subscription OAuth, Anthropic API key (recommended) or setup-token (paste), plus MiniMax/GLM/Moonshot/AI Gateway options) - Workspace location + bootstrap files - Gateway settings (port/bind/auth/tailscale) - Providers (Telegram, WhatsApp, Discord, Google Chat, Mattermost (plugin), Signal) - Daemon install (LaunchAgent / systemd user unit) - Health check - Skills (recommended) \*\*Remote mode\*\* only configures the local client to connect to a Gateway elsewhere. It does \*\*not\*\* install or change anything on the remote host. To add more isolated agents (separate workspace + sessions + auth), use: ```bash openclaw agents add ``` Tip: `--json` does \*\*not\*\* imply non-interactive mode. Use `--non-interactive` (and `--workspace`) for scripts. ## Flow details (local) 1. \*\*Existing config detection\*\* - If `~/.openclaw/openclaw.json` exists, choose \*\*Keep / Modify / Reset\*\*. - Re-running the wizard does \*\*not\*\* wipe anything unless you explicitly choose \*\*Reset\*\* (or pass `--reset`). - If the config is invalid or contains legacy keys, the wizard stops and asks you to run `openclaw doctor` before continuing. - Reset uses `trash` (never `rm`) and offers scopes: - Config only - Config + credentials + sessions - Full reset (also removes workspace) 2. \*\*Model/Auth\*\* - \*\*Anthropic API key (recommended)\*\*: uses `ANTHROPIC\_API\_KEY` if present or prompts for a key, then saves it for daemon use. - \*\*Anthropic OAuth (Claude Code CLI)\*\*: on macOS the wizard checks Keychain item "Claude Code-credentials" (choose "Always Allow" so launchd starts don't block); on Linux/Windows it reuses `~/.claude/.credentials.json` if present. - \*\*Anthropic token (paste setup-token)\*\*: run `claude setup-token` on any machine, then paste the token (you can name it; blank = default). - \*\*OpenAI Code (Codex) subscription (Codex CLI)\*\*: if `~/.codex/auth.json` exists, the wizard can reuse it. - \*\*OpenAI Code (Codex) subscription (OAuth)\*\*: browser flow; paste the `code#state`. - Sets `agents.defaults.model` to `openai-codex/gpt-5.2` when model is unset or `openai/\*`. - \*\*OpenAI API key\*\*: uses `OPENAI\_API\_KEY` if present or prompts for a key, then saves it to `~/.openclaw/.env` so launchd can read it. - \*\*OpenCode Zen (multi-model proxy)\*\*: prompts for `OPENCODE\_API\_KEY` (or `OPENCODE\_ZEN\_API\_KEY`, get it at https://opencode.ai/auth). - \*\*API key\*\*: stores the key for you. - \*\*Vercel AI Gateway (multi-model proxy)\*\*: prompts for `AI\_GATEWAY\_API\_KEY`. - More detail: [Vercel AI Gateway](/providers/vercel-ai-gateway) - \*\*Cloudflare AI Gateway\*\*: prompts for Account ID, Gateway ID, and `CLOUDFLARE\_AI\_GATEWAY\_API\_KEY`. - More detail: [Cloudflare AI Gateway](/providers/cloudflare-ai-gateway) - \*\*MiniMax M2.1\*\*: config is auto-written. - More detail: [MiniMax](/providers/minimax) - \*\*Synthetic (Anthropic-compatible)\*\*: prompts for `SYNTHETIC\_API\_KEY`. - More detail: [Synthetic](/providers/synthetic) - \*\*Moonshot (Kimi K2)\*\*: config is auto-written. - \*\*Kimi Coding\*\*: config is auto-written. - More detail: [Moonshot
https://github.com/openclaw/openclaw/blob/main//docs/start/wizard.md
main
opebclaw
[ -0.009179162792861462, -0.047128867357969284, -0.12420138716697693, 0.043078064918518066, -0.001908258069306612, -0.0867268443107605, -0.07322002947330475, 0.02519017457962036, -0.013931759633123875, -0.031034719198942184, 0.004340238869190216, -0.01053493283689022, 0.049882665276527405, 0.03269709274172783, 0.09137909859418869, 0.055896464735269547, 0.04737114906311035, -0.08249007910490036, 0.03481939435005188, -0.03302430361509323, 0.0012034685350954533, 0.007725479546934366, 0.03578578680753708, -0.08522120118141174, -0.09531570971012115, -0.07116852700710297, -0.03703496605157852, -0.023371955379843712, -0.013840117491781712, 0.003987863659858704, 0.04248405247926712, 0.032890185713768005, -0.009161323308944702, 0.06849639117717743, 0.03289415314793587, 0.057308975607156754, 0.05823269858956337, -0.02156818099319935, -0.09465676546096802, -0.029106419533491135, 0.04769376665353775, -0.005728717427700758, -0.004573144018650055, -0.03682399541139603, -0.01780901663005352, -0.08911339938640594, -0.06047193333506584, -0.06736032664775848, 0.047824837267398834, 0.05653288587927818, -0.14241309463977814, -0.10402756184339523, 0.011644227430224419, -0.05559860169887543, -0.009595382958650589, 0.08504248410463333, -0.03516734391450882, -0.02800750359892845, 0.07057889550924301, -0.09597783535718918, 0.08230386674404144, -0.04923269897699356, 0.004171075765043497, 0.043159179389476776, -0.1159379854798317, -0.008732584305107594, -0.04006621241569519, -0.07236910611391068, 0.03509906679391861, -0.06650082767009735, -0.013438920490443707, -0.020775333046913147, -0.02314465120434761, -0.050299715250730515, -0.009436731226742268, 0.0032402335200458765, 0.059408772736787796, 0.0038713908288627863, -0.033131588250398636, -0.07239485532045364, -0.0618479922413826, 0.003238910809159279, -0.11171339452266693, 0.07383478432893753, 0.002892938209697604, 0.10098417103290558, 0.011130046099424362, 0.00582290580496192, 0.03807338327169418, 0.015773851424455643, 0.04006735607981682, -0.11618657410144806, -0.06730692833662033, -0.037564147263765335, -0.009594786912202835, 0.032184287905693054, 0.02834133990108967, 0.009536979719996452, -0.05803461745381355, 0.047241002321243286, 0.0108247771859169, -0.010945380665361881, 0.040049053728580475, 0.03129582852125168, -0.10007115453481674, 0.03201611712574959, 0.06793650984764099, 0.11214744299650192, 0.016155438497662544, -0.042996782809495926, -0.025296948850154877, -0.010265055112540722, 0.08934894949197769, -0.01490061916410923, -0.023804014548659325, 0.11138990521430969, -0.06445520371198654, -0.03017803281545639, 0.04135637730360031, 0.115987628698349, 0.09190815687179565, 0.01751136966049671, 0.013942333869636059, -0.0006978841265663505, 0.12961897253990173, 0.07861971855163574, 0.03256234526634216, 6.558232124083303e-33, 0.057053204625844955, -0.026177188381552696, -0.06533947587013245, 0.025359991937875748, 0.09339376538991928, -0.031515832990407944, 0.06736677139997482, 0.015449726022779942, -0.0589875727891922, 0.07835263758897781, -0.0036571891978383064, 0.08670619875192642, -0.0383431576192379, -0.0007490132702514529, 0.028640929609537125, -0.05228342115879059, -0.059513065963983536, 0.007984338328242302, 0.030626174062490463, -0.005277152173221111, 0.04364955797791481, -0.07127546519041061, -0.002161121927201748, -0.029624169692397118, 0.08697670698165894, 0.035694483667612076, -0.04942777752876282, -0.003541117999702692, 0.04190993309020996, 0.06007056683301926, 0.005923138000071049, -0.020950019359588623, -0.0992320105433464, -0.034550152719020844, -0.02161405421793461, -0.020889710634946823, -0.12984907627105713, -0.01566264033317566, -0.006983302067965269, 0.02762165106832981, -0.0530034638941288, -0.032587096095085144, -0.04045527055859566, -0.05725198611617088, 0.000589265488088131, -0.1040584072470665, -0.07104715704917908, 0.030881056562066078, 0.061889469623565674, 0.018489332869648933, -0.03250885754823685, 0.006695467978715897, 0.045690782368183136, -0.028749627992510796, 0.0036210068501532078, 0.01203267090022564, 0.022856615483760834, -0.0051671965047717094, -0.029406199231743813, -0.019808735698461533, -0.04428480193018913, 0.017537632957100868, -0.03924853354692459, 0.01239427737891674, -0.004590275231748819, -0.028317980468273163, 0.02985246293246746, 0.02531781792640686, -0.02626759000122547, 0.013873470015823841, -0.004233630374073982, 0.04497327655553818, 0.030509131029248238, 0.03348822519183159, -0.02567983791232109, -0.06255345791578293, 0.03124970942735672, -0.003746920498088002, 0.06782830506563187, -0.004495058674365282, 0.048727381974458694, 0.056396789848804474, -0.02758268639445305, 0.0754280835390091, 0.11047569662332535, -0.004567920695990324, 0.032633811235427856, -0.04787227883934975, -0.02450774610042572, 0.062317825853824615, -0.050853729248046875, 0.04061106964945793, -0.018653905019164085, 0.004675576929003, -0.017609594389796257, -6.739771063520481e-33, 0.04945056512951851, -0.041708916425704956, 0.053151264786720276, -0.009464109316468239, -0.011019071564078331, 0.007832527160644531, 0.04715621471405029, -0.07976336032152176, -0.01478701550513506, -0.04878578335046768, -0.01648942567408085, 0.10752318054437637, 0.03570098802447319, -0.03418831527233124, 0.04496632143855095, 0.021828260272741318, -0.06227879598736763, -0.02515498921275139, -0.0007587466388940811, -0.0018590987892821431, -0.02464720979332924, 0.013912506401538849, 0.007186294533312321, 0.003584994003176689, 0.047807540744543076, -0.014484756626188755, 0.06106355041265488, 0.06275109946727753, -0.06317645311355591, -0.02903718687593937, -0.008905461058020592, 0.061088163405656815, -0.036476995795965195, 0.014610720798373222, 0.02748514711856842, 0.09184183180332184, 0.0009253434836864471, 0.06929413974285126, -0.011319653131067753, 0.01650380715727806, 0.0699724555015564, -0.018788926303386688, -0.07545506209135056, -0.05452445521950722, -0.01567780412733555, 0.06802345812320709, -0.02187679149210453, 0.027186589315533638, -0.13095417618751526, 0.010204085148870945, -0.04045075923204422, 0.011604374274611473, 0.00907314196228981, 0.0027880521956831217, 0.03538006916642189, 0.05741163715720177, 0.05193592980504036, -0.03704308718442917, -0.011851894669234753, -0.07683943957090378, 0.00007633958739461377, -0.032133445143699646, -0.03461269661784172, 0.0698966532945633, -0.044584691524505615, -0.060930006206035614, -0.06728638708591461, 0.08707518130540848, -0.12604708969593048, 0.01109277829527855, -0.04083651304244995, -0.035695821046829224, 0.029607361182570457, -0.04927452281117439, 0.02938971109688282, 0.037423111498355865, 0.026938285678625107, -0.045645080506801605, 0.011329134926199913, 0.035565558820962906, -0.024628831073641777, 0.0740695521235466, 0.02367335371673107, -0.04209403321146965, -0.010546984151005745, 0.05820685252547264, -0.028791245073080063, 0.10071210563182831, 0.02676067128777504, -0.001179827842861414, -0.09709403663873672, -0.009478721767663956, 0.0032565866131335497, -0.00919851753860712, -0.001311299274675548, -5.899796562403026e-8, -0.10652432590723038, 0.00024594776914454997, -0.03050616756081581, 0.0733693540096283, 0.006043713539838791, -0.03193872794508934, -0.0031950294505804777, 0.028874874114990234, -0.05921459570527077, -0.004016786813735962, 0.0948123186826706, 0.005424181465059519, -0.03641017526388168, 0.028680924326181412, -0.054176636040210724, 0.06440772116184235, 0.00062230892945081, -0.016562599688768387, 0.024009864777326584, -0.10435554385185242, 0.05088027939200401, -0.003236528020352125, 0.09235703200101852, 0.07603137940168381, -0.0413399301469326, -0.0075627644546329975, -0.06255869567394257, 0.0023594647645950317, -0.028901584446430206, 0.002363899489864707, -0.04154485464096069, -0.027355987578630447, 0.005872488487511873, 0.013139740563929081, 0.046892158687114716, -0.043992724269628525, -0.07008358091115952, 0.03090101294219494, -0.05665411055088043, -0.019919568672776222, 0.06731270253658295, 0.06100670248270035, -0.028391515836119652, -0.08497320860624313, -0.06452736258506775, 0.08260809630155563, -0.050098054111003876, -0.008912339806556702, 0.044261541217565536, -0.04531840234994888, 0.014296658337116241, -0.05014048144221306, 0.038671333342790604, 0.05831458047032356, 0.04183374345302582, 0.10593970119953156, 0.07183900475502014, -0.08095221221446991, 0.019002536311745644, 0.04737777262926102, -0.06009933352470398, 0.055387478321790695, 0.004058523569256067, -0.01073873694986105 ]
0.059634
for Account ID, Gateway ID, and `CLOUDFLARE\_AI\_GATEWAY\_API\_KEY`. - More detail: [Cloudflare AI Gateway](/providers/cloudflare-ai-gateway) - \*\*MiniMax M2.1\*\*: config is auto-written. - More detail: [MiniMax](/providers/minimax) - \*\*Synthetic (Anthropic-compatible)\*\*: prompts for `SYNTHETIC\_API\_KEY`. - More detail: [Synthetic](/providers/synthetic) - \*\*Moonshot (Kimi K2)\*\*: config is auto-written. - \*\*Kimi Coding\*\*: config is auto-written. - More detail: [Moonshot AI (Kimi + Kimi Coding)](/providers/moonshot) - \*\*Skip\*\*: no auth configured yet. - Pick a default model from detected options (or enter provider/model manually). - Wizard runs a model check and warns if the configured model is unknown or missing auth. - OAuth credentials live in `~/.openclaw/credentials/oauth.json`; auth profiles live in `~/.openclaw/agents//agent/auth-profiles.json` (API keys + OAuth). - More detail: [/concepts/oauth](/concepts/oauth) 3. \*\*Workspace\*\* - Default `~/.openclaw/workspace` (configurable). - Seeds the workspace files needed for the agent bootstrap ritual. - Full workspace layout + backup guide: [Agent workspace](/concepts/agent-workspace) 4. \*\*Gateway\*\* - Port, bind, auth mode, tailscale exposure. - Auth recommendation: keep \*\*Token\*\* even for loopback so local WS clients must authenticate. - Disable auth only if you fully trust every local process. - Non‑loopback binds still require auth. 5. \*\*Channels\*\* - [WhatsApp](/channels/whatsapp): optional QR login. - [Telegram](/channels/telegram): bot token. - [Discord](/channels/discord): bot token. - [Google Chat](/channels/googlechat): service account JSON + webhook audience. - [Mattermost](/channels/mattermost) (plugin): bot token + base URL. - [Signal](/channels/signal): optional `signal-cli` install + account config. - [BlueBubbles](/channels/bluebubbles): \*\*recommended for iMessage\*\*; server URL + password + webhook. - [iMessage](/channels/imessage): legacy `imsg` CLI path + DB access. - DM security: default is pairing. First DM sends a code; approve via `openclaw pairing approve ```` ` or use allowlists. 6. **Daemon install** - macOS: LaunchAgent - Requires a logged-in user session; for headless, use a custom LaunchDaemon (not shipped). - Linux (and Windows via WSL2): systemd user unit - Wizard attempts to enable lingering via `loginctl enable-linger ` so the Gateway stays up after logout. - May prompt for sudo (writes `/var/lib/systemd/linger`); it tries without sudo first. - **Runtime selection:** Node (recommended; required for WhatsApp/Telegram). Bun is **not recommended**. 7. **Health check** - Starts the Gateway (if needed) and runs `openclaw health`. - Tip: `openclaw status --deep` adds gateway health probes to status output (requires a reachable gateway). 8. **Skills (recommended)** - Reads the available skills and checks requirements. - Lets you choose a node manager: **npm / pnpm** (bun not recommended). - Installs optional dependencies (some use Homebrew on macOS). 9. **Finish** - Summary + next steps, including iOS/Android/macOS apps for extra features. - If no GUI is detected, the wizard prints SSH port-forward instructions for the Control UI instead of opening a browser. - If the Control UI assets are missing, the wizard attempts to build them; fallback is `pnpm ui:build` (auto-installs UI deps). ## Remote mode Remote mode configures a local client to connect to a Gateway elsewhere. What you’ll set: - Remote Gateway URL (`ws://...`) - Token if the remote Gateway requires auth (recommended) Notes: - No remote installs or daemon changes are performed. - If the Gateway is loopback‑only, use SSH tunneling or a tailnet. - Discovery hints: - macOS: Bonjour (`dns-sd`) - Linux: Avahi (`avahi-browse`) ## Add another agent Use `openclaw agents add ` to create a separate agent with its own workspace, sessions, and auth profiles. Running without `--workspace` launches the wizard. What it sets: - `agents.list[].name` - `agents.list[].workspace` - `agents.list[].agentDir` Notes: - Default workspaces follow `~/.openclaw/workspace-`. - Add `bindings` to route inbound messages (the wizard can do this). - Non-interactive flags: `--model`, `--agent-dir`, `--bind`, `--non-interactive`. ## Non‑interactive mode Use `--non-interactive` to automate or script onboarding: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice apiKey \ --anthropic-api-key "$ANTHROPIC_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback \
https://github.com/openclaw/openclaw/blob/main//docs/start/wizard.md
main
opebclaw
[ -0.029860520735383034, -0.05927985906600952, -0.0998997688293457, -0.00203983043320477, 0.03186733275651932, 0.015218942426145077, 0.025972476229071617, -0.0219041146337986, -0.03816681727766991, 0.009845131076872349, 0.06512129306793213, -0.053768642246723175, 0.07582196593284607, -0.07958060503005981, 0.0053575048223137856, 0.0650312602519989, -0.02428528666496277, -0.05625701695680618, -0.0521913543343544, -0.06790071725845337, -0.016348257660865784, -0.08081281930208206, -0.046140968799591064, 0.04248271882534027, -0.05902239680290222, 0.01858644187450409, 0.016508247703313828, 0.07670441269874573, -0.04247848689556122, 0.006674694828689098, -0.0018982436740770936, 0.04267844557762146, -0.03727444261312485, 0.018186816945672035, 0.06520999222993851, 0.034843601286411285, -0.01144351065158844, -0.004609428811818361, 0.03327999264001846, -0.12184814363718033, 0.05557556450366974, -0.07256370782852173, -0.06597662717103958, -0.06575427949428558, 0.09986014664173126, 0.06900422275066376, -0.07791168987751007, -0.04150057211518288, 0.0020488733425736427, -0.0011292408453300595, -0.053962964564561844, -0.013643915764987469, -0.03594115749001503, 0.042052630335092545, 0.008829065598547459, 0.012215078808367252, -0.06524964421987534, 0.0424606017768383, 0.07873495668172836, -0.04854297265410423, 0.04076724499464035, -0.0710979476571083, 0.03590342029929161, 0.023703331127762794, -0.04179444536566734, 0.03122350387275219, -0.10725011676549911, -0.07715578377246857, 0.016927417367696762, -0.024307148531079292, -0.03133617341518402, 0.019859101623296738, -0.12167731672525406, -0.018430057913064957, 0.019528130069375038, 0.03821438178420067, -0.04811588674783707, 0.02817693166434765, -0.005618699360638857, -0.10537777841091156, 0.08262680470943451, 0.02820853516459465, 0.026714425534009933, 0.0929780974984169, 0.0002640933380462229, 0.02778562158346176, 0.002629411406815052, -0.03124961443245411, 0.05603501573204994, 0.04089289531111717, 0.010993693955242634, -0.03896251693367958, 0.041372183710336685, -0.0192792396992445, 0.07759975641965866, 0.07604166865348816, -0.04872816056013107, -0.05252591893076897, -0.023993834853172302, 0.04942283779382706, -0.05885811150074005, -0.002275038743391633, 0.037634678184986115, -0.019750583916902542, 0.02873292937874794, -0.02585662715137005, 0.04189020395278931, 0.003627907717600465, 0.06724746525287628, 0.027360232546925545, -0.026585405692458153, 0.002893830416724086, 0.06194126233458519, -0.05211598053574562, 0.02945641614496708, 0.11395768076181412, -0.059443242847919464, 0.04029760882258415, -0.019882790744304657, 0.01991676539182663, -0.0069376337341964245, -0.0789695531129837, 0.003952509723603725, -0.030941171571612358, -0.021697161719202995, 0.05152745172381401, -0.07549278438091278, 2.0292672854260385e-33, 0.03840726613998413, 0.02771391160786152, 0.01634853146970272, -0.004447714425623417, 0.0794893279671669, -0.05678992718458176, 0.03589995950460434, 0.007444842718541622, -0.054855089634656906, 0.0004925961839035153, -0.14302469789981842, 0.015668975189328194, -0.08763264864683151, 0.014746986329555511, 0.025843162089586258, 0.005600689444690943, 0.014547094702720642, 0.0733136460185051, 0.07532832771539688, 0.02830490469932556, 0.06509649753570557, -0.009147264994680882, -0.007662405725568533, -0.024574443697929382, 0.09803374111652374, 0.08323106169700623, -0.011066019535064697, 0.0010732788359746337, 0.012719843536615372, 0.016221651807427406, 0.022919321432709694, -0.04944869503378868, -0.01357739232480526, -0.034733593463897705, -0.048797640949487686, -0.026464011520147324, -0.10114278644323349, -0.041585635393857956, -0.15109701454639435, -0.003496763063594699, 0.013105548918247223, 0.018825357779860497, -0.1010868027806282, -0.036516327410936356, -0.10103840380907059, -0.04597640782594681, -0.009562117047607899, 0.042135775089263916, 0.12074883282184601, 0.029650023207068443, -0.09968505799770355, 0.0018358357483521104, -0.021539470180869102, -0.046953365206718445, 0.04102853313088417, -0.04080706834793091, -0.03270549699664116, 0.015350152738392353, 0.027152584865689278, -0.0339256189763546, -0.0009732155594974756, -0.052041903138160706, -0.06295690685510635, 0.10351816564798355, 0.02744368091225624, 0.02698393538594246, -0.02947167679667473, 0.015445562079548836, 0.032680902630090714, 0.021464919671416283, -0.07160534709692001, 0.006232571322470903, -0.06680455803871155, 0.035877589136362076, -0.004170649219304323, -0.13534989953041077, -0.00823268387466669, -0.04390924423933029, -0.036448437720537186, 0.034052908420562744, -0.06473720818758011, 0.04415399953722954, -0.10406459867954254, 0.10982798784971237, -0.09442386031150818, -0.03816480189561844, 0.02580338902771473, -0.016764363273978233, -0.02844524197280407, -0.024250954389572144, -0.05241676792502403, -0.04154133424162865, -0.003930823411792517, 0.03271900862455368, -0.0790129080414772, -4.2489227786990396e-33, 0.017962312325835228, -0.06383619457483292, 0.0013274159282445908, 0.0019066004315391183, -0.0110276835039258, 0.026725808158516884, 0.07408789545297623, 0.026451705023646355, 0.046685840934515, 0.03329199552536011, 0.07271941006183624, 0.023546699434518814, 0.050251491367816925, -0.09122764319181442, 0.07835559546947479, -0.02792631834745407, -0.05128995329141617, -0.07749079167842865, 0.035415250808000565, 0.06934226304292679, -0.008920428343117237, 0.06345003843307495, 0.004715088289231062, 0.003465919755399227, 0.011311153881251812, 0.08419692516326904, 0.020755797624588013, 0.08837976306676865, -0.062340717762708664, 0.014643781818449497, 0.06704172492027283, 0.1097530722618103, -0.08862120658159256, 0.01190887950360775, -0.04353838786482811, -0.02721899375319481, -0.0032862976659089327, 0.07869787514209747, -0.02141154557466507, 0.06738197058439255, 0.09405328333377838, -0.04672207310795784, -0.07623627036809921, 0.008603734895586967, 0.0610765777528286, 0.02441181242465973, 0.0630689412355423, 0.023157814517617226, -0.018621372058987617, -0.06723258644342422, -0.010534483008086681, -0.052026040852069855, -0.03526078537106514, 0.06238965690135956, -0.002474392531439662, 0.04802680388092995, 0.07527197152376175, 0.0327700711786747, 0.027022920548915863, -0.08158726245164871, 0.02143481932580471, -0.1509011685848236, 0.03669769689440727, 0.08094176650047302, -0.08308925479650497, -0.00008169792999979109, 0.023330597206950188, 0.0315728560090065, -0.006947669666260481, -0.0016603105468675494, -0.03619169816374779, -0.061196159571409225, 0.044029880315065384, 0.056644413620233536, 0.025550227612257004, -0.046799179166555405, -0.07953544706106186, 0.024160847067832947, 0.014495978131890297, 0.006003980059176683, -0.015830816701054573, 0.04441531002521515, -0.009134241379797459, 0.008774778805673122, -0.03144536167383194, -0.036276090890169144, 0.021604381501674652, 0.06614986807107925, 0.012504656799137592, 0.0731741338968277, -0.0829358696937561, 0.02469375729560852, -0.029169945046305656, 0.033493831753730774, -0.13083186745643616, -4.643535334025728e-8, -0.01978207193315029, -0.00201843841932714, 0.014347640797495842, 0.01778012327849865, -0.009216022677719593, 0.02061190828680992, 0.0070875417441129684, 0.007584625389426947, 0.0093461312353611, -0.03331984952092171, 0.04064766317605972, 0.0029736270662397146, -0.008709502406418324, -0.03930101916193962, -0.04092339053750038, 0.00784457940608263, -0.0061683631502091885, 0.031531911343336105, 0.00646246736869216, -0.045590758323669434, -0.037701625376939774, -0.0010231246706098318, -0.005401598755270243, -0.07927033305168152, 0.050337355583906174, 0.024486806243658066, 0.06485849618911743, -0.007301589474081993, -0.07307250052690506, 0.028427084907889366, -0.04137016460299492, 0.015951547771692276, 0.0726793184876442, -0.01736241579055786, -0.08563098311424255, 0.06380506604909897, -0.009635226801037788, 0.014843621291220188, -0.029966013506054878, -0.02829376608133316, 0.01443688664585352, 0.037014663219451904, -0.06992478668689728, -0.08919540792703629, 0.06068018078804016, 0.05380303040146828, 0.0495535172522068, 0.03518158942461014, 0.05252457410097122, 0.046445105224847794, -0.045710284262895584, -0.02928219735622406, 0.06060104817152023, 0.07481683045625687, 0.007784483954310417, 0.018553627654910088, -0.009970861487090588, -0.07063871622085571, 0.05003480613231659, -0.0350768119096756, 0.03992987424135208, 0.029359281063079834, 0.023324988782405853, -0.04351372644305229 ]
0.13134
`~/.openclaw/workspace-`. - Add `bindings` to route inbound messages (the wizard can do this). - Non-interactive flags: `--model`, `--agent-dir`, `--bind`, `--non-interactive`. ## Non‑interactive mode Use `--non-interactive` to automate or script onboarding: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice apiKey \ --anthropic-api-key "$ANTHROPIC_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback \ --install-daemon \ --daemon-runtime node \ --skip-skills ``` Add `--json` for a machine‑readable summary. Gemini example: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice gemini-api-key \ --gemini-api-key "$GEMINI_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback ``` Z.AI example: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice zai-api-key \ --zai-api-key "$ZAI_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback ``` Vercel AI Gateway example: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice ai-gateway-api-key \ --ai-gateway-api-key "$AI_GATEWAY_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback ``` Cloudflare AI Gateway example: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice cloudflare-ai-gateway-api-key \ --cloudflare-ai-gateway-account-id "your-account-id" \ --cloudflare-ai-gateway-gateway-id "your-gateway-id" \ --cloudflare-ai-gateway-api-key "$CLOUDFLARE_AI_GATEWAY_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback ``` Moonshot example: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice moonshot-api-key \ --moonshot-api-key "$MOONSHOT_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback ``` Synthetic example: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice synthetic-api-key \ --synthetic-api-key "$SYNTHETIC_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback ``` OpenCode Zen example: ```bash openclaw onboard --non-interactive \ --mode local \ --auth-choice opencode-zen \ --opencode-zen-api-key "$OPENCODE_API_KEY" \ --gateway-port 18789 \ --gateway-bind loopback ``` Add agent (non‑interactive) example: ```bash openclaw agents add work \ --workspace ~/.openclaw/workspace-work \ --model openai/gpt-5.2 \ --bind whatsapp:biz \ --non-interactive \ --json ``` ## Gateway wizard RPC The Gateway exposes the wizard flow over RPC (`wizard.start`, `wizard.next`, `wizard.cancel`, `wizard.status`). Clients (macOS app, Control UI) can render steps without re‑implementing onboarding logic. ## Signal setup (signal-cli) The wizard can install `signal-cli` from GitHub releases: - Downloads the appropriate release asset. - Stores it under `~/.openclaw/tools/signal-cli//`. - Writes `channels.signal.cliPath` to your config. Notes: - JVM builds require **Java 21**. - Native builds are used when available. - Windows uses WSL2; signal-cli install follows the Linux flow inside WSL. ## What the wizard writes Typical fields in `~/.openclaw/openclaw.json`: - `agents.defaults.workspace` - `agents.defaults.model` / `models.providers` (if Minimax chosen) - `gateway.*` (mode, bind, auth, tailscale) - `channels.telegram.botToken`, `channels.discord.token`, `channels.signal.*`, `channels.imessage.*` - Channel allowlists (Slack/Discord/Matrix/Microsoft Teams) when you opt in during the prompts (names resolve to IDs when possible). - `skills.install.nodeManager` - `wizard.lastRunAt` - `wizard.lastRunVersion` - `wizard.lastRunCommit` - `wizard.lastRunCommand` - `wizard.lastRunMode` `openclaw agents add` writes `agents.list[]` and optional `bindings`. WhatsApp credentials go under `~/.openclaw/credentials/whatsapp//`. Sessions are stored under `~/.openclaw/agents//sessions/`. Some channels are delivered as plugins. When you pick one during onboarding, the wizard will prompt to install it (npm or a local path) before it can be configured. ## Related docs - macOS app onboarding: [Onboarding](/start/onboarding) - Config reference: [Gateway configuration](/gateway/configuration) - Providers: [WhatsApp](/channels/whatsapp), [Telegram](/channels/telegram), [Discord](/channels/discord), [Google Chat](/channels/googlechat), [Signal](/channels/signal), [BlueBubbles](/channels/bluebubbles) (iMessage), [iMessage](/channels/imessage) (legacy) - Skills: [Skills](/tools/skills), [Skills config](/tools/skills-config) ````
https://github.com/openclaw/openclaw/blob/main//docs/start/wizard.md
main
opebclaw
[ 0.011311416514217854, -0.013469556346535683, -0.15333038568496704, 0.04781118035316467, -0.034787897020578384, -0.061448536813259125, -0.01031529437750578, 0.01422977726906538, -0.030917037278413773, 0.005294166970998049, -0.006694412790238857, -0.03675824776291847, 0.026426155120134354, -0.002761588664725423, 0.07592222839593887, 0.12755480408668518, 0.022562110796570778, -0.09273861348628998, 0.047521404922008514, -0.03407590463757515, -0.011347723193466663, 0.08644405752420425, -0.025543134659528732, -0.04479941353201866, -0.12203308939933777, -0.07324162125587463, -0.00247569615021348, 0.045864228159189224, -0.009618890471756458, 0.020711982622742653, 0.027313511818647385, 0.05255407467484474, -0.055974557995796204, 0.046813689172267914, 0.045906249433755875, 0.06592132896184921, 0.0599837489426136, -0.055513642728328705, -0.027048902586102486, -0.04198453202843666, 0.1239851713180542, -0.005633942782878876, -0.057317838072776794, -0.053050074726343155, -0.03835441172122955, -0.12375228106975555, -0.09056480973958969, -0.08153586089611053, 0.02227187529206276, 0.06214654818177223, -0.07692578434944153, -0.11155491322278976, -0.011479727923870087, -0.07956340909004211, -0.003162702778354287, 0.060315411537885666, -0.08336415141820908, 0.018624937161803246, 0.017418302595615387, -0.09023791551589966, 0.051323406398296356, -0.005130077246576548, -0.00309321703389287, 0.027909373864531517, -0.11213250458240509, -0.01840241625905037, -0.10671082884073257, -0.05589744448661804, -0.013490529730916023, -0.021273445338010788, -0.034312937408685684, -0.0539199598133564, -0.07238510251045227, -0.047894883900880814, -0.013385629281401634, 0.0012832097709178925, 0.041648272424936295, 0.0159701406955719, -0.030998703092336655, -0.09965573251247406, -0.07998328655958176, -0.023508857935667038, -0.1114642545580864, 0.08790405094623566, -0.043510790914297104, 0.11005881428718567, -0.028320563957095146, 0.03949243575334549, 0.05215568467974663, 0.023050324991345406, -0.025273675099015236, -0.127701997756958, -0.06075260415673256, -0.03187134489417076, -0.015766452997922897, 0.027860252186655998, -0.041026029735803604, -0.03296184539794922, -0.05305371433496475, 0.06804628670215607, -0.016628332436084747, 0.03584805503487587, -0.0011968662729486823, 0.03043118678033352, -0.06420683860778809, 0.031215600669384003, 0.049152106046676636, 0.004691711161285639, -0.014781150035560131, 0.014957847073674202, -0.01596696302294731, 0.04572439566254616, 0.07359875738620758, -0.062273360788822174, -0.009787404909729958, 0.09524070471525192, -0.01061757281422615, 0.0052424087189137936, 0.04081685468554497, 0.06724726408720016, 0.06900304555892944, -0.03587750345468521, 0.040985606610774994, 0.03927567973732948, 0.07179448753595352, -0.004636720754206181, 0.08916635811328888, -2.8208321406293125e-33, 0.029910754412412643, -0.06148916110396385, -0.03333836421370506, 0.0598701536655426, 0.16742883622646332, 0.02944347634911537, 0.04553575813770294, 0.012248185463249683, -0.052586816251277924, 0.09976725280284882, -0.05311846360564232, 0.0874786376953125, -0.006790877319872379, -0.022572893649339676, -0.05241220071911812, -0.01909397915005684, -0.045275233685970306, 0.006024190224707127, 0.04060693830251694, -0.009306865744292736, 0.05239170044660568, -0.07217074185609818, -0.052737344056367874, 0.02452055551111698, 0.06282070279121399, 0.002202974632382393, -0.06249101087450981, 0.002841125475242734, 0.014704542234539986, 0.03844482824206352, 0.06041118875145912, 0.029793860390782356, -0.06923215836286545, 0.008258712477982044, -0.032985661178827286, -0.019609518349170685, -0.08131317049264908, -0.015183405950665474, -0.06436346471309662, 0.023013105615973473, -0.008893610909581184, -0.06663180142641068, -0.0494082048535347, 0.003035068279132247, -0.02524292841553688, -0.056465838104486465, -0.02137872390449047, 0.059298597276210785, 0.06908857822418213, -0.0022186546120792627, -0.04807545989751816, -0.023267457261681557, 0.06548166275024414, -0.08516237884759903, 0.008184979669749737, -0.06336096674203873, -0.0636688768863678, 0.03884659335017204, 0.006675570737570524, -0.029634518548846245, -0.06353886425495148, 0.03241066634654999, -0.023142414167523384, 0.056166503578424454, 0.0450877919793129, 0.052748192101716995, -0.0002865693240892142, 0.022180862724781036, 0.025710497051477432, -0.004412080626934767, 0.003080412745475769, 0.03684067353606224, 0.012969991192221642, 0.07964657992124557, 0.013748648576438427, -0.05740958824753761, 0.014759380370378494, -0.018592767417430878, 0.048411909490823746, 0.0015696247573941946, 0.01768871396780014, -0.013030491769313812, -0.047103557735681534, 0.07763303816318512, 0.09487630426883698, -0.006948777474462986, 0.004694119095802307, -0.01617524027824402, 0.017644207924604416, 0.0006923984037712216, -0.07143383473157883, 0.03508931025862694, -0.001229821820743382, -0.03937610983848572, -0.014866117388010025, -7.628004166031564e-34, 0.03676285967230797, 0.00590297719463706, -0.0527702197432518, -0.016678541898727417, -0.00994363147765398, -0.023992959409952164, 0.09998708963394165, -0.05874485522508621, -0.030870983377099037, -0.007325603161007166, -0.04916546121239662, 0.09400761872529984, 0.03751116618514061, -0.06638136506080627, 0.04265808314085007, -0.04036019369959831, -0.11097940057516098, 0.004228624049574137, 0.06799586117267609, 0.0426960326731205, -0.05436057969927788, 0.06495839357376099, -0.014000392518937588, 0.009682375937700272, 0.04473887383937836, -0.013119940645992756, 0.03345925733447075, 0.051368147134780884, -0.10189525783061981, 0.010266725905239582, -0.008072135038673878, 0.07383625209331512, -0.0014086130540817976, 0.0356900617480278, -0.023702362552285194, 0.0011368977138772607, 0.03265175595879555, 0.11405105888843536, 0.014578054659068584, -0.01091768778860569, 0.0638773962855339, -0.04417906329035759, -0.09168647229671478, -0.015530788339674473, 0.006374911405146122, 0.032912902534008026, 0.0340874008834362, -0.01300448551774025, -0.11115323007106781, 0.017086658626794815, -0.03780737146735191, -0.0031248677987605333, -0.014082832261919975, 0.08467882871627808, 0.03190208226442337, 0.10877443850040436, 0.06315796822309494, -0.057445358484983444, 0.05342001095414162, -0.030950017273426056, 0.008717620745301247, -0.09354723244905472, 0.047888416796922684, 0.08182652294635773, -0.006346048321574926, -0.09099055081605911, -0.001202304265461862, 0.0782356932759285, -0.049806930124759674, -0.039824146777391434, -0.06749420613050461, -0.02803986892104149, 0.01240395288914442, 0.036384180188179016, 0.035894401371479034, 0.005531064234673977, 0.023977525532245636, -0.08100302517414093, -0.005286140833050013, 0.05830979719758034, -0.0410604253411293, -0.026709944009780884, 0.03272099420428276, -0.018596552312374115, -0.021123234182596207, 0.012688405811786652, -0.03208613768219948, 0.0956084355711937, -0.013062120415270329, 0.07140963524580002, -0.03480234369635582, 0.02880779094994068, 0.05313628539443016, -0.026632925495505333, -0.047818802297115326, -4.725172075836781e-8, -0.03999132663011551, 0.013114278204739094, -0.018750712275505066, 0.02735021710395813, -0.0007357951835729182, 0.00019826636707875878, 0.018626762554049492, -0.009409601800143719, -0.03968742489814758, -0.0029928013682365417, 0.0464654415845871, 0.023072892799973488, -0.03163253143429756, 0.021927932277321815, -0.07101127505302429, 0.06904556602239609, -0.003159296466037631, -0.013871436938643456, 0.017216289415955544, -0.06244830787181854, 0.03060772642493248, 0.01623621955513954, 0.05690111219882965, 0.003829846391454339, -0.015556816011667252, -0.03519319370388985, -0.09258364886045456, -0.02132987417280674, -0.0631258562207222, 0.028571680188179016, -0.04183796048164368, -0.022436391562223434, 0.04017922282218933, 0.0185442715883255, -0.05978797376155853, -0.026758423075079918, 0.02542928420007229, 0.004098912235349417, 0.006995730102062225, -0.04796918109059334, 0.019572187215089798, 0.04314342513680458, -0.0421481728553772, -0.08298295736312866, 0.011254796758294106, 0.05549062415957451, -0.01368601992726326, -0.008360500447452068, 0.05770516395568848, 0.014791578985750675, 0.009550221264362335, 0.01720292679965496, 0.06476163864135742, 0.02245539240539074, 0.022991344332695007, 0.0821329727768898, 0.011319938115775585, -0.04643437638878822, 0.0025049885734915733, 0.020449068397283554, -0.08387134224176407, 0.08245392888784409, 0.047609634697437286, -0.08885784447193146 ]
0.042906
# Setup Last updated: 2026-01-01 ## TL;DR - \*\*Tailoring lives outside the repo:\*\* `~/.openclaw/workspace` (workspace) + `~/.openclaw/openclaw.json` (config). - \*\*Stable workflow:\*\* install the macOS app; let it run the bundled Gateway. - \*\*Bleeding edge workflow:\*\* run the Gateway yourself via `pnpm gateway:watch`, then let the macOS app attach in Local mode. ## Prereqs (from source) - Node `>=22` - `pnpm` - Docker (optional; only for containerized setup/e2e — see [Docker](/install/docker)) ## Tailoring strategy (so updates don’t hurt) If you want “100% tailored to me” \_and\_ easy updates, keep your customization in: - \*\*Config:\*\* `~/.openclaw/openclaw.json` (JSON/JSON5-ish) - \*\*Workspace:\*\* `~/.openclaw/workspace` (skills, prompts, memories; make it a private git repo) Bootstrap once: ```bash openclaw setup ``` From inside this repo, use the local CLI entry: ```bash openclaw setup ``` If you don’t have a global install yet, run it via `pnpm openclaw setup`. ## Stable workflow (macOS app first) 1. Install + launch \*\*OpenClaw.app\*\* (menu bar). 2. Complete the onboarding/permissions checklist (TCC prompts). 3. Ensure Gateway is \*\*Local\*\* and running (the app manages it). 4. Link surfaces (example: WhatsApp): ```bash openclaw channels login ``` 5. Sanity check: ```bash openclaw health ``` If onboarding is not available in your build: - Run `openclaw setup`, then `openclaw channels login`, then start the Gateway manually (`openclaw gateway`). ## Bleeding edge workflow (Gateway in a terminal) Goal: work on the TypeScript Gateway, get hot reload, keep the macOS app UI attached. ### 0) (Optional) Run the macOS app from source too If you also want the macOS app on the bleeding edge: ```bash ./scripts/restart-mac.sh ``` ### 1) Start the dev Gateway ```bash pnpm install pnpm gateway:watch ``` `gateway:watch` runs the gateway in watch mode and reloads on TypeScript changes. ### 2) Point the macOS app at your running Gateway In \*\*OpenClaw.app\*\*: - Connection Mode: \*\*Local\*\* The app will attach to the running gateway on the configured port. ### 3) Verify - In-app Gateway status should read \*\*“Using existing gateway …”\*\* - Or via CLI: ```bash openclaw health ``` ### Common footguns - \*\*Wrong port:\*\* Gateway WS defaults to `ws://127.0.0.1:18789`; keep app + CLI on the same port. - \*\*Where state lives:\*\* - Credentials: `~/.openclaw/credentials/` - Sessions: `~/.openclaw/agents//sessions/` - Logs: `/tmp/openclaw/` ## Credential storage map Use this when debugging auth or deciding what to back up: - \*\*WhatsApp\*\*: `~/.openclaw/credentials/whatsapp//creds.json` - \*\*Telegram bot token\*\*: config/env or `channels.telegram.tokenFile` - \*\*Discord bot token\*\*: config/env (token file not yet supported) - \*\*Slack tokens\*\*: config/env (`channels.slack.\*`) - \*\*Pairing allowlists\*\*: `~/.openclaw/credentials/-allowFrom.json` - \*\*Model auth profiles\*\*: `~/.openclaw/agents//agent/auth-profiles.json` - \*\*Legacy OAuth import\*\*: `~/.openclaw/credentials/oauth.json` More detail: [Security](/gateway/security#credential-storage-map). ## Updating (without wrecking your setup) - Keep `~/.openclaw/workspace` and `~/.openclaw/` as “your stuff”; don’t put personal prompts/config into the `openclaw` repo. - Updating source: `git pull` + `pnpm install` (when lockfile changed) + keep using `pnpm gateway:watch`. ## Linux (systemd user service) Linux installs use a systemd \*\*user\*\* service. By default, systemd stops user services on logout/idle, which kills the Gateway. Onboarding attempts to enable lingering for you (may prompt for sudo). If it’s still off, run: ```bash sudo loginctl enable-linger $USER ``` For always-on or multi-user servers, consider a \*\*system\*\* service instead of a user service (no lingering needed). See [Gateway runbook](/gateway) for the systemd notes. ## Related docs - [Gateway runbook](/gateway) (flags, supervision, ports) - [Gateway configuration](/gateway/configuration) (config schema + examples) - [Discord](/channels/discord) and [Telegram](/channels/telegram) (reply tags + replyToMode settings) - [OpenClaw assistant setup](/start/openclaw) - [macOS app](/platforms/macos) (gateway lifecycle)
https://github.com/openclaw/openclaw/blob/main//docs/start/setup.md
main
opebclaw
[ -0.03825179859995842, 0.0038555257488042116, -0.001339461887255311, 0.021237773820757866, 0.05230683460831642, -0.10235550999641418, -0.030884874984622, 0.006461873184889555, -0.07041867077350616, 0.033941883593797684, 0.011034581810235977, -0.02302999049425125, -0.05648476257920265, 0.013929041102528572, 0.08661139011383057, 0.10465420037508011, 0.0737311989068985, -0.02784055285155773, 0.038595832884311676, -0.0031794686801731586, -0.08350824564695358, -0.017792198807001114, 0.015188291668891907, -0.0035877928603440523, -0.0984758585691452, -0.0025625762064009905, 0.019552335143089294, 0.04657642915844917, -0.026561131700873375, -0.019881144165992737, 0.052639029920101166, 0.038601286709308624, -0.0017981241689994931, 0.012176021933555603, 0.06871315091848373, 0.05917917564511299, 0.01943925768136978, -0.06705265492200851, -0.09566725045442581, -0.057678110897541046, 0.12019023299217224, -0.0005290292319841683, 0.0440194234251976, -0.005443392787128687, -0.023861901834607124, -0.08437051624059677, 0.01570100709795952, -0.08097761124372482, 0.02303299866616726, -0.006724071688950062, -0.04190323129296303, -0.09861202538013458, -0.009129906073212624, -0.06474041938781738, 0.04059401527047157, 0.0633324533700943, 0.051813531666994095, 0.01335905771702528, 0.04714224860072136, -0.08531410992145538, 0.060268983244895935, -0.0990922749042511, -0.034624528139829636, 0.03499789908528328, -0.10759120434522629, 0.019045954570174217, 0.005094446241855621, -0.013968389481306076, -0.019108973443508148, -0.0011784210801124573, 0.015758424997329712, 0.053000062704086304, -0.0006948941736482084, -0.08197405934333801, -0.04152332991361618, -0.005526040215045214, 0.09228582680225372, 0.016778677701950073, -0.05925441160798073, -0.025397973135113716, -0.010553503409028053, -0.004989407956600189, -0.08108806610107422, 0.021669289097189903, -0.066160649061203, 0.08899158984422684, -0.016771728172898293, -0.020953020080924034, 0.07691582292318344, 0.0004431747074704617, 0.03929736837744713, -0.09779730439186096, -0.027272677049040794, -0.06306526064872742, 0.036635905504226685, -0.004206513985991478, -0.0046728928573429585, 0.004538243170827627, -0.0800442099571228, 0.05494241416454315, -0.0448261983692646, 0.01417682133615017, 0.03588307648897171, 0.04810335114598274, 0.020886067301034927, 0.06128877401351929, -0.0022992384620010853, 0.09435602277517319, 0.013064182363450527, 0.06974352151155472, 0.0035454805474728346, -0.021565638482570648, 0.058048076927661896, -0.005607787985354662, -0.07921190559864044, 0.05876496806740761, 0.008634991943836212, -0.016474006697535515, 0.010012486018240452, 0.10845000296831131, 0.107223279774189, 0.0352683886885643, 0.019290084019303322, -0.013152758590877056, 0.009406689554452896, 0.04084356874227524, 0.035228949040174484, 4.59697563571798e-33, 0.039501409977674484, -0.07653047144412994, -0.016040310263633728, 0.021297264844179153, 0.24119463562965393, -0.061178721487522125, 0.06688626855611801, -0.03494039922952652, -0.033065345138311386, 0.011379431001842022, -0.05696740373969078, 0.010962046682834625, -0.07741528004407883, 0.019277099519968033, -0.012676326557993889, -0.05862138792872429, -0.09134426712989807, 0.04029387980699539, 0.07827513664960861, 0.04244858771562576, 0.0025523845106363297, -0.10566249489784241, -0.07968773692846298, -0.07074107974767685, -0.033659446984529495, -0.007740499917417765, 0.03914780914783478, -0.009487240575253963, 0.01930212415754795, 0.017440006136894226, 0.03791831433773041, 0.044125158339738846, -0.003128855489194393, 0.012727025896310806, -0.07762578874826431, -0.05733706057071686, -0.11724609136581421, -0.012958038598299026, -0.06750594079494476, -0.001263287616893649, 0.0009636852191761136, -0.016324276104569435, -0.046598974615335464, -0.02618403546512127, 0.028921088203787804, -0.1450113207101822, -0.015277386642992496, 0.04921853542327881, 0.06788591295480728, 0.013589947484433651, 0.04456452652812004, -0.02095213159918785, 0.00283788051456213, -0.05360425263643265, -0.0410442091524601, -0.05726902559399605, -0.03773568198084831, -0.01808413676917553, 0.05944348871707916, -0.03931383416056633, -0.06203332915902138, 0.05471695214509964, 0.011517803184688091, 0.015838317573070526, 0.03463875129818916, 0.05820516496896744, 0.008177574723958969, 0.04246370866894722, -0.005885621998459101, 0.041888706386089325, -0.016735553741455078, 0.029319051653146744, 0.0018234457820653915, 0.07953742146492004, -0.020189626142382622, -0.030395546928048134, 0.0025733979418873787, 0.021318096667528152, 0.02694203518331051, 0.01744319498538971, 0.05428478866815567, 0.05393347516655922, -0.018953561782836914, 0.11486753076314926, 0.03754739090800285, 0.03350860998034477, 0.04408962279558182, 0.02275162562727928, 0.003225211752578616, 0.10289004445075989, 0.045402396470308304, 0.005894629284739494, 0.027270184829831123, -0.034178171306848526, -0.041132133454084396, -6.365270318292009e-33, -0.008103862404823303, -0.03927583619952202, -0.01970699056982994, 0.006684775929898024, -0.046147093176841736, 0.01015018206089735, 0.03286995366215706, 0.0028639528900384903, 0.03004247136414051, 0.016158433631062508, -0.06789189577102661, 0.06486435234546661, 0.034273333847522736, -0.09432627260684967, -0.014723868109285831, -0.02835720218718052, -0.08381792157888412, -0.039976511150598526, 0.004584267735481262, 0.0042523969896137714, 0.037043821066617966, 0.02994970604777336, -0.0009059479925781488, 0.006125858519226313, 0.04584313929080963, -0.025182360783219337, 0.028768397867679596, 0.05433300882577896, -0.08297562599182129, -0.042916953563690186, -0.06545312702655792, 0.022313352674245834, -0.05711963400244713, -0.02191459946334362, 0.043920423835515976, 0.05175713449716568, -0.08341216295957565, 0.10571834444999695, 0.05467867851257324, 0.029399026185274124, 0.01786777563393116, -0.047327615320682526, -0.08052871376276016, 0.0054468936286866665, -0.008138074539601803, 0.022366711869835854, -0.006631075404584408, -0.040980130434036255, -0.0894942507147789, -0.06409124284982681, -0.08495279401540756, 0.05013972148299217, 0.0003041116870008409, 0.08563530445098877, 0.07437239587306976, 0.05457264930009842, 0.022486021742224693, -0.03157038986682892, -0.02268369123339653, -0.023526029661297798, -0.0025521530769765377, -0.10925301164388657, -0.014454311691224575, 0.07258566468954086, 0.0032133611384779215, -0.04565366357564926, -0.04939897730946541, -0.0030299180652946234, -0.09088443219661713, 0.019319836050271988, -0.04124653339385986, -0.02824285440146923, 0.03252200409770012, -0.019889909774065018, 0.01577952690422535, -0.07261797040700912, 0.08446554094552994, -0.04282202944159508, 0.0015579405007883906, 0.02940070815384388, -0.03213243559002876, 0.035301219671964645, 0.039643675088882446, -0.06267760694026947, -0.008247689343988895, -0.03735774755477905, 0.061411190778017044, 0.051479700952768326, 0.07778456062078476, 0.04520575702190399, -0.06638000160455704, 0.0030841417610645294, -0.06070695072412491, -0.04716941714286804, -0.002637699479237199, -5.325179230908361e-8, -0.04803260415792465, -0.02248063124716282, -0.09777025133371353, 0.045358806848526, 0.015095330774784088, -0.05559489503502846, 0.01048580463975668, 0.027944069355726242, -0.008686089888215065, 0.009299198165535927, 0.049426354467868805, 0.018444545567035675, -0.10040619224309921, 0.07978933304548264, -0.028273195028305054, 0.07169930636882782, -0.011417447589337826, 0.04102739691734314, -0.019930195063352585, -0.059544410556554794, -0.04242384433746338, 0.016314726322889328, 0.05149054899811745, -0.002346288412809372, -0.025763656944036484, 0.022664589807391167, 0.06076313182711601, -0.025480974465608597, -0.017242299392819405, 0.017158251255750656, -0.05183618515729904, -0.05150142312049866, -0.06640288233757019, 0.06127080321311951, -0.09187428653240204, -0.018528200685977936, -0.04275795817375183, 0.06976346671581268, 0.025350051000714302, -0.009315339848399162, -0.024421805515885353, -0.024852680042386055, -0.043633829802274704, -0.0436442568898201, -0.09387768805027008, 0.03437953442335129, -0.07057768106460571, 0.04294409230351448, -0.06019243225455284, 0.030532583594322205, 0.09287126362323761, 0.0005313151050359011, 0.0788719579577446, -0.0118861123919487, 0.043242987245321274, 0.06906282156705856, 0.07067309319972992, -0.08463463932275772, -0.03469516336917877, -0.012538050301373005, 0.048842769116163254, 0.012432240881025791, 0.014361463487148285, -0.014073501341044903 ]
0.053714
+ replyToMode settings) - [OpenClaw assistant setup](/start/openclaw) - [macOS app](/platforms/macos) (gateway lifecycle)
https://github.com/openclaw/openclaw/blob/main//docs/start/setup.md
main
opebclaw
[ -0.056211672723293304, -0.024423740804195404, -0.057809099555015564, 0.037246059626340866, 0.008932087570428848, -0.10528423637151718, -0.06187574565410614, -0.02623121254146099, -0.04085158184170723, 0.017676187679171562, 0.07041697204113007, -0.026368672028183937, -0.0252477265894413, 0.0037344633601605892, -0.0013687474420294166, 0.13686004281044006, 0.07291525602340698, -0.06702619791030884, 0.03582613915205002, -0.01880013942718506, 0.025455405935645103, -0.025585506111383438, 0.031831320375204086, -0.03173672407865524, -0.06509950011968613, -0.012082995846867561, -0.025602910667657852, -0.02619236707687378, -0.07996075600385666, -0.0017785904929041862, 0.05727598816156387, 0.02732846699655056, 0.037380632013082504, 0.03719089925289154, 0.033808812499046326, 0.03980378806591034, 0.0777607262134552, -0.04988906905055046, -0.09569510817527771, -0.04406074434518814, -0.01249901857227087, -0.01265822071582079, 0.023525509983301163, -0.02054228074848652, -0.013173751533031464, -0.06257040798664093, 0.01672491244971752, -0.07735983282327652, 0.05452932417392731, 0.0029297370929270983, -0.0009313700720667839, -0.060637347400188446, -0.02701495960354805, -0.05422832816839218, -0.005833645351231098, 0.059143804013729095, -0.011205432005226612, -0.010076181031763554, 0.05370383337140083, -0.03280983492732048, 0.06572680175304413, -0.04297586902976036, -0.051997821778059006, 0.10588537156581879, -0.12054602801799774, 0.04120719060301781, -0.02793797478079796, -0.06688948720693588, -0.07769085466861725, -0.02297797240316868, 0.014617975801229477, 0.03514257073402405, -0.023025086149573326, -0.03899166360497475, -0.0010178230004385114, -0.03827865794301033, 0.07117771357297897, -0.028629062697291374, -0.03936956822872162, -0.05757720395922661, -0.04347214475274086, 0.029458843171596527, -0.07580743730068207, 0.08652915060520172, 0.021937668323516846, 0.11890500783920288, -0.035048238933086395, 0.02724779024720192, 0.03337671607732773, 0.09679672867059708, -0.00845466461032629, -0.12509621679782867, -0.021946733817458153, -0.02036316692829132, -0.03591955825686455, -0.014079038985073566, 0.0009412744548171759, -0.07034065574407578, -0.07277167588472366, 0.04338546097278595, 0.01233668066561222, 0.0017505391733720899, 0.03554365411400795, 0.0015034141251817346, -0.04279870539903641, 0.06960739195346832, 0.009477459825575352, 0.09481659531593323, 0.00236379518173635, 0.016360066831111908, -0.0034999726340174675, -0.03702601417899132, 0.08753515034914017, -0.00408905791118741, -0.026907920837402344, 0.031595878303050995, -0.06822995841503143, -0.016963794827461243, 0.07949858903884888, 0.018725169822573662, 0.06849135458469391, 0.03185168653726578, -0.028947940096259117, -0.06286292523145676, 0.08188619464635849, 0.06044358015060425, 0.06734470278024673, 1.6905370858407026e-34, 0.05590655654668808, -0.031445834785699844, -0.03944796323776245, -0.0031826095655560493, 0.13519597053527832, -0.022551346570253372, 0.030261414125561714, 0.032092347741127014, -0.03368263319134712, 0.03803994879126549, 0.013527021743357182, 0.04482865333557129, -0.06037041172385216, -0.05945897847414017, 0.018201131373643875, -0.0026215033140033484, -0.06045730039477348, 0.06111672520637512, 0.03422848507761955, -0.040278512984514236, 0.022585837170481682, -0.08960696309804916, -0.03046300634741783, 0.01482538040727377, 0.07878047972917557, 0.0641164779663086, 0.03023146465420723, -0.01766597107052803, -0.02451506070792675, 0.051857586950063705, 0.07293399423360825, 0.04635795205831528, -0.08585736900568008, -0.0050528631545603275, -0.06795033067464828, -0.0005947504541836679, -0.09224694967269897, -0.032360274344682693, -0.04804614186286926, -0.008662655018270016, -0.06199666112661362, 0.007638583425432444, -0.0758817046880722, -0.05456319823861122, 0.005598492920398712, -0.12589237093925476, -0.014701184816658497, 0.09347870945930481, 0.058619704097509384, 0.1022353246808052, -0.0025499057956039906, -0.021532509475946426, 0.07378639280796051, -0.0037943364586681128, -0.05048269033432007, -0.02900906838476658, -0.0376814529299736, 0.0035350420512259007, -0.015818718820810318, -0.00931120291352272, 0.03277086094021797, 0.05753631889820099, -0.012109728530049324, -0.023902714252471924, -0.033956825733184814, 0.02435116097331047, 0.06056699901819229, -0.014747293666005135, 0.0046041677705943584, -0.0009743770933710039, -0.04001583904027939, -0.031785864382982254, 0.043615855276584625, 0.06473322212696075, -0.07908983528614044, -0.025736922398209572, -0.06981218606233597, -0.00383223919197917, 0.002560756169259548, 0.000060704573115799576, 0.01615579053759575, -0.0030460853595286608, 0.020154425874352455, 0.0158977247774601, 0.06725629419088364, 0.05363835394382477, 0.05076432600617409, -0.04596217721700668, -0.0004671331262215972, 0.14731116592884064, -0.061711665242910385, 0.017176559194922447, -0.02485196478664875, 0.03326363116502762, 0.017436541616916656, -1.508771978535361e-33, 0.0020386772230267525, -0.027224449440836906, -0.027123523876070976, -0.007157949265092611, -0.06282396614551544, 0.023138737305998802, 0.019931374117732048, 0.009752949699759483, 0.008288202807307243, -0.016280638054013252, -0.05509476363658905, 0.10268263518810272, 0.051463790237903595, -0.08414679765701294, 0.053380336612463, -0.05164734274148941, -0.00026504130801185966, -0.018139760941267014, -0.015892373397946358, 0.00891056191176176, -0.032946791499853134, 0.03031083568930626, 0.000058668832934927195, -0.01985987275838852, 0.019862011075019836, -0.020144017413258553, 0.034365516155958176, 0.0479072742164135, -0.029489124193787575, -0.07610061019659042, -0.007260147016495466, 0.06825466454029083, 0.010794578120112419, -0.016164451837539673, 0.031751859933137894, 0.06055716425180435, -0.05051694065332413, 0.00969642587006092, 0.012108790688216686, 0.041522085666656494, 0.11149684339761734, -0.0012543895281851292, -0.06272441893815994, 0.010640143416821957, -0.016891589388251305, 0.03555788844823837, -0.05395638197660446, -0.03363211452960968, -0.08581326901912689, -0.03548463433980942, -0.03565507009625435, 0.004992895759642124, 0.035225894302129745, 0.019681325182318687, 0.04679682478308678, 0.11544257402420044, 0.06431961804628372, -0.03333000838756561, 0.03917772322893143, -0.07761593908071518, -0.007708819583058357, -0.06567096710205078, -0.05262808874249458, 0.09833146631717682, 0.03469439595937729, -0.0280220415443182, 0.008408669382333755, 0.015612454153597355, -0.0954073965549469, -0.013038991950452328, -0.0028014681302011013, -0.0007766470080241561, 0.04688890650868416, -0.07491616159677505, 0.004547737538814545, -0.05714613199234009, 0.004457462579011917, -0.07301849871873856, -0.06487760692834854, 0.00123816158156842, 0.0023494951892644167, 0.03868362680077553, 0.061201777309179306, 0.007903105579316616, -0.0167660154402256, -0.012463107705116272, -0.0176854208111763, 0.0854867696762085, 0.06866689771413803, 0.08373547345399857, -0.10394660383462906, 0.02671968750655651, -0.014497263357043266, -0.008724872954189777, -0.05903657153248787, -2.8236978977247418e-8, -0.11803866922855377, -0.013216785155236721, -0.007210102863609791, 0.029867351055145264, 0.04110739380121231, 0.009830486960709095, 0.04751859977841377, 0.12904217839241028, -0.05630761384963989, -0.007012162823230028, 0.09037896245718002, 0.05110379680991173, -0.07497287541627884, 0.05496998503804207, 0.0568162240087986, 0.0574190616607666, 0.022765181958675385, 0.03423476219177246, -0.004469310399144888, -0.03826664388179779, 0.02246090956032276, -0.014956344850361347, 0.04148625582456589, 0.008119551464915276, -0.06544992327690125, -0.03622706979513168, 0.0023193128872662783, 0.03647761419415474, -0.039903923869132996, 0.03457283228635788, -0.06723649799823761, -0.012188599444925785, 0.0069159576669335365, -0.04010188207030296, -0.03279394283890724, 0.08000930398702621, -0.08100603520870209, 0.04038667678833008, 0.020301131531596184, -0.07058202475309372, -0.02343304082751274, 0.005887473002076149, -0.052596356719732285, -0.03795399144291878, -0.06162314489483833, 0.10514611005783081, -0.0531335286796093, 0.05346232280135155, -0.03841805085539818, -0.037750180810689926, 0.005336003843694925, -0.04197041317820549, 0.03594518452882767, 0.026402531191706657, 0.005365648772567511, 0.071380615234375, 0.12038308382034302, -0.18079160153865814, 0.020920313894748688, 0.04680968075990677, 0.06181307137012482, 0.08055900782346725, 0.016260072588920593, -0.026740433648228645 ]
0.127257
# Showcase Real projects from the community. See what people are building with OpenClaw. \*\*Want to be featured?\*\* Share your project in [#showcase on Discord](https://discord.gg/clawd) or [tag @openclaw on X](https://x.com/openclaw). ## 🎥 OpenClaw in Action Full setup walkthrough (28m) by VelvetShark.[Watch on YouTube](https://www.youtube.com/watch?v=SaWSPZoPX34)[Watch on YouTube](https://www.youtube.com/watch?v=mMSKQvlmFuQ)[Watch on YouTube](https://www.youtube.com/watch?v=5kkIJNUGFho) ## 🆕 Fresh from Discord \*\*@bangnokia\*\* • `review` `github` `telegram` OpenCode finishes the change → opens a PR → OpenClaw reviews the diff and replies in Telegram with “minor suggestions” plus a clear merge verdict (including critical fixes to apply first). \*\*@prades\_maxime\*\* • `skills` `local` `csv` Asked “Robby” (@openclaw) for a local wine cellar skill. It requests a sample CSV export + where to store it, then builds/tests the skill fast (962 bottles in the example). \*\*@marchattonhere\*\* • `automation` `browser` `shopping` Weekly meal plan → regulars → book delivery slot → confirm order. No APIs, just browser control. \*\*@am-will\*\* • `devtools` `screenshots` `markdown` Hotkey a screen region → Gemini vision → instant Markdown in your clipboard. \*\*@kitze\*\* • `ui` `skills` `sync` Desktop app to manage skills/commands across Agents, Claude, Codex, and OpenClaw. \*\*Community\*\* • `voice` `tts` `telegram` Wraps papla.media TTS and sends results as Telegram voice notes (no annoying autoplay). \*\*@odrobnik\*\* • `devtools` `codex` `brew` Homebrew-installed helper to list/inspect/watch local OpenAI Codex sessions (CLI + VS Code). \*\*@tobiasbischoff\*\* • `hardware` `3d-printing` `skill` Control and troubleshoot BambuLab printers: status, jobs, camera, AMS, calibration, and more. \*\*@hjanuschka\*\* • `travel` `transport` `skill` Real-time departures, disruptions, elevator status, and routing for Vienna's public transport. \*\*@George5562\*\* • `automation` `browser` `parenting` Automated UK school meal booking via ParentPay. Uses mouse coordinates for reliable table cell clicking. \*\*@julianengel\*\* • `files` `r2` `presigned-urls` Upload to Cloudflare R2/S3 and generate secure presigned download links. Perfect for remote OpenClaw instances. \*\*@coard\*\* • `ios` `xcode` `testflight` Built a complete iOS app with maps and voice recording, deployed to TestFlight entirely via Telegram chat. \*\*@AS\*\* • `health` `oura` `calendar` Personal AI health assistant integrating Oura ring data with calendar, appointments, and gym schedule. \*\*@adam91holt\*\* • `multi-agent` `orchestration` `architecture` `manifesto` 14+ agents under one gateway with Opus 4.5 orchestrator delegating to Codex workers. Comprehensive [technical write-up](https://github.com/adam91holt/orchestrated-ai-articles) covering the Dream Team roster, model selection, sandboxing, webhooks, heartbeats, and delegation flows. [Clawdspace](https://github.com/adam91holt/clawdspace) for agent sandboxing. [Blog post](https://adams-ai-journey.ghost.io/2026-the-year-of-the-orchestrator/). \*\*@NessZerra\*\* • `devtools` `linear` `cli` `issues` CLI for Linear that integrates with agentic workflows (Claude Code, OpenClaw). Manage issues, projects, and workflows from the terminal. First external PR merged! \*\*@jules\*\* • `messaging` `beeper` `cli` `automation` Read, send, and archive messages via Beeper Desktop. Uses Beeper local MCP API so agents can manage all your chats (iMessage, WhatsApp, etc.) in one place. ## 🤖 Automation & Workflows \*\*@antonplex\*\* • `automation` `hardware` `air-quality` Claude Code discovered and confirmed the purifier controls, then OpenClaw takes over to manage room air quality. \*\*@signalgaining\*\* • `automation` `camera` `skill` `images` Triggered by a roof camera: ask OpenClaw to snap a sky photo whenever it looks pretty — it designed a skill and took the shot. \*\*@buddyhadry\*\* • `automation` `briefing` `images` `telegram` A scheduled prompt generates a single "scene" image each morning (weather, tasks, date, favorite post/quote) via a OpenClaw persona. \*\*@joshp123\*\* • `automation` `booking` `cli` Playtomic availability checker + booking CLI. Never miss an open court again. \*\*Community\*\* • `automation` `email` `pdf` Collects PDFs from email, preps documents for tax consultant. Monthly accounting on autopilot. \*\*@davekiss\*\* • `telegram` `website` `migration` `astro` Rebuilt entire personal site via Telegram while watching Netflix — Notion → Astro, 18 posts migrated, DNS to Cloudflare. Never opened a laptop. \*\*@attol8\*\* • `automation` `api` `skill` Searches job listings, matches against CV keywords, and returns relevant opportunities with links. Built in 30 minutes using
https://github.com/openclaw/openclaw/blob/main//docs/start/showcase.md
main
opebclaw
[ -0.13606977462768555, -0.01807902567088604, -0.008771182969212532, 0.016288915649056435, 0.08193706721067429, -0.07400518655776978, -0.026355206966400146, 0.010303501971065998, -0.03185106813907623, 0.028935039415955544, 0.04565556347370148, -0.011769499629735947, -0.008105693385004997, 0.026032738387584686, 0.04253147169947624, 0.10295622795820236, 0.08627834171056747, -0.05136355012655258, -0.0258819330483675, 0.008529680781066418, -0.014161468483507633, -0.014418073929846287, 0.07357947528362274, 0.011949589475989342, 0.004926858935505152, -0.02874956838786602, -0.05734888091683388, 0.0633820965886116, -0.01755538024008274, -0.051328498870134354, 0.05180620774626732, 0.07385535538196564, -0.014354448765516281, 0.019893432036042213, 0.028626827523112297, 0.10273212939500809, 0.00938878208398819, 0.021035030484199524, -0.057453665882349014, 0.008422531187534332, -0.021792469546198845, -0.020513541996479034, -0.029377704486250877, 0.0023385975509881973, -0.022046109661459923, -0.02132296748459339, 0.017458686605095863, -0.08635389059782028, -0.013851636089384556, -0.01641351729631424, -0.06290830671787262, -0.12449328601360321, -0.03233516216278076, -0.09724687784910202, 0.03624625504016876, -0.07062464952468872, 0.0060874298214912415, -0.019100256264209747, 0.05111348256468773, -0.12099197506904602, 0.0875290036201477, 0.007564874831587076, -0.07102347910404205, 0.008003313094377518, 0.0050676846876740456, 0.00803885143250227, 0.0000732610424165614, 0.02165808528661728, 0.0018221697537228465, -0.048602230846881866, 0.04701843112707138, 0.05787910521030426, -0.009932280518114567, -0.013824254274368286, -0.03184239938855171, 0.007150291930884123, 0.010552823543548584, 0.05980952829122543, -0.0971461609005928, -0.08343886584043503, 0.007533180993050337, 0.011335272341966629, -0.020283907651901245, -0.01793549209833145, 0.03785986453294754, 0.12120406329631805, 0.046289850026369095, 0.023995505645871162, -0.013884471729397774, 0.02137587033212185, 0.0406046025454998, 0.03622707724571228, 0.020232031121850014, 0.03305553272366524, 0.042626138776540756, -0.05676117166876793, -0.028192518278956413, -0.009691324084997177, 0.016562461853027344, 0.10436499118804932, 0.010433277115225792, -0.05079357326030731, -0.020008135586977005, -0.061639878898859024, -0.018068036064505577, 0.06371413171291351, 0.02371164970099926, 0.14156341552734375, 0.048107318580150604, -0.011206681840121746, 0.024254750460386276, -0.047028761357069016, 0.062003910541534424, -0.07496043294668198, -0.014366191811859608, 0.045821115374565125, -0.03165819123387337, 0.0025523107033222914, 0.08428764343261719, -0.004747194703668356, 0.1499941051006317, 0.01883074827492237, -0.015047757886350155, -0.02641051448881626, -0.009156903252005577, 0.07877212017774582, 0.08594999462366104, 8.476688128451216e-33, 0.07235404849052429, 0.00847733672708273, -0.10301096737384796, -0.007153322920203209, 0.10097653418779373, 0.000273296405794099, -0.01462477631866932, 0.021164629608392715, -0.1697932630777359, 0.015274573117494583, 0.019009564071893692, 0.03952251747250557, -0.011343411169946194, 0.0048306104727089405, -0.031156830489635468, -0.08251228928565979, -0.03384128212928772, 0.019525596871972084, 0.006252231076359749, -0.0016791970701888204, 0.004224643111228943, -0.001421963213942945, -0.056014277040958405, 0.018355343490839005, -0.011884194798767567, 0.059986986219882965, 0.0333164744079113, -0.048537272959947586, -0.013828669674694538, 0.030939098447561264, -0.025869840756058693, 0.019318215548992157, -0.0023386694956570864, 0.05804077535867691, -0.02338671125471592, -0.008456287905573845, -0.11063501983880997, -0.09190530329942703, -0.056307755410671234, -0.058091212064027786, 0.01775578409433365, 0.013734277337789536, -0.07852234691381454, -0.03854960948228836, 0.06646604835987091, -0.06769680231809616, -0.004588739480823278, 0.02225704863667488, 0.02045101299881935, -0.0158978458493948, 0.07958514988422394, 0.042366888374090195, 0.03560778126120567, 0.044408779591321945, -0.060630928725004196, -0.059433504939079285, 0.025726325809955597, -0.09753451496362686, 0.04197454825043678, 0.023805323988199234, 0.02662114053964615, 0.05570985749363899, -0.013134006410837173, -0.05778903141617775, -0.048670124262571335, 0.03030582144856453, 0.032919496297836304, 0.08603525161743164, 0.035345759242773056, 0.01625288464128971, -0.08162420988082886, -0.0027624517679214478, -0.0026515433564782143, 0.06601367890834808, -0.07543677091598511, -0.06333601474761963, -0.06089581921696663, -0.0032307899091392756, 0.03411828726530075, -0.04577358439564705, -0.02403867244720459, -0.001491706003434956, -0.010002104565501213, -0.03063184767961502, -0.023777997121214867, 0.013779637403786182, 0.04052208364009857, -0.06618589907884598, -0.0012754781637340784, 0.13087932765483856, -0.08051784336566925, 0.014427045360207558, -0.030422434210777283, 0.01008808333426714, 0.06667812168598175, -6.596518709773554e-33, -0.008598138578236103, 0.01687202975153923, 0.007655736058950424, 0.020251017063856125, -0.006908051203936338, 0.003549244487658143, -0.01910061575472355, -0.031746067106723785, 0.0698353499174118, 0.017578711733222008, -0.006910900119692087, -0.034273412078619, -0.04025647044181824, -0.029094496741890907, 0.00909031368792057, -0.0685335174202919, -0.026253437623381615, -0.040142741054296494, -0.023734407499432564, 0.04766358062624931, 0.025332914665341377, 0.03613940253853798, -0.05272877961397171, -0.004745448939502239, 0.05648187920451164, 0.03685564920306206, 0.042183246463537216, 0.02651716209948063, 0.1066686138510704, -0.1033196747303009, 0.06935800611972809, 0.021223176270723343, -0.12847599387168884, -0.035062987357378006, 0.041123103350400925, 0.06715553253889084, 0.018134603276848793, 0.0023005898110568523, 0.017824333161115646, 0.004788147285580635, 0.06830396503210068, 0.008058847859501839, -0.10346972197294235, 0.00880748312920332, -0.0514940544962883, 0.05795268714427948, -0.06834854185581207, 0.005669050384312868, -0.14665275812149048, -0.026608752086758614, 0.06275197863578796, 0.024099556729197502, 0.0737886130809784, -0.039631329476833344, -0.005841149482876062, -0.0011190662626177073, 0.04857930168509483, -0.019996339455246925, -0.022164447233080864, -0.00992708932608366, 0.04612893611192703, -0.02859620191156864, -0.0020145641174167395, 0.050434280186891556, 0.016814369708299637, -0.05863593518733978, 0.01645359955728054, 0.06585077196359634, -0.09750662744045258, -0.011548349633812904, -0.061001624912023544, -0.012043480761349201, -0.022100264206528664, -0.08597813546657562, 0.048695892095565796, -0.020985890179872513, 0.026182930916547775, -0.014160810969769955, 0.025584900751709938, 0.04469706118106842, 0.007750271819531918, -0.009417199529707432, 0.07418671250343323, 0.002416835865005851, 0.001454652869142592, 0.05097750946879387, 0.008150647394359112, 0.132377028465271, -0.006600343622267246, 0.03754876181483269, -0.06763256341218948, -0.006845228374004364, 0.061608243733644485, 0.03539635241031647, 0.06873303651809692, -5.963152460708443e-8, -0.06421033293008804, 0.00916773546487093, -0.07474282383918762, 0.01652439311146736, -0.047949980944395065, -0.028665555641055107, -0.01983935758471489, 0.03476443514227867, -0.054435405880212784, 0.015102013945579529, 0.09175144135951996, 0.014143450185656548, -0.10134674608707428, 0.0038491589948534966, -0.08054546266794205, 0.030474791303277016, -0.05636780336499214, 0.04556112736463547, -0.00831793062388897, -0.03694890812039375, 0.003498833393678069, 0.05181761085987091, 0.03011861816048622, 0.0003661647788248956, -0.11123104393482208, -0.048221755772829056, 0.03777732700109482, 0.06814644485712051, -0.010801466181874275, -0.051991403102874756, 0.019285276532173157, -0.02813832461833954, 0.03868594765663147, -0.05980435758829117, -0.021635914221405983, 0.048875465989112854, -0.003817022079601884, 0.03211352229118347, 0.08975818008184433, 0.040704842656850815, 0.0717291384935379, -0.013024763204157352, -0.026194287464022636, -0.03291073068976402, -0.13809005916118622, -0.017926305532455444, 0.00111865671351552, -0.10143225640058517, -0.059872210025787354, -0.0401461161673069, 0.002207250101491809, -0.02173452079296112, -0.019323069602251053, 0.05967940762639046, 0.06685414165258408, 0.10735049098730087, 0.02242806740105152, -0.03210670128464699, 0.03684177249670029, 0.08956073969602585, 0.0365750789642334, -0.022028803825378418, 0.04161231964826584, 0.03920630365610123 ]
0.079944
`telegram` `website` `migration` `astro` Rebuilt entire personal site via Telegram while watching Netflix — Notion → Astro, 18 posts migrated, DNS to Cloudflare. Never opened a laptop. \*\*@attol8\*\* • `automation` `api` `skill` Searches job listings, matches against CV keywords, and returns relevant opportunities with links. Built in 30 minutes using JSearch API. \*\*@jdrhyne\*\* • `automation` `jira` `skill` `devtools` OpenClaw connected to Jira, then generated a new skill on the fly (before it existed on ClawHub). \*\*@iamsubhrajyoti\*\* • `automation` `todoist` `skill` `telegram` Automated Todoist tasks and had OpenClaw generate the skill directly in Telegram chat. \*\*@bheem1798\*\* • `finance` `browser` `automation` Logs into TradingView via browser automation, screenshots charts, and performs technical analysis on demand. No API needed—just browser control. \*\*@henrymascot\*\* • `slack` `automation` `support` Watches company Slack channel, responds helpfully, and forwards notifications to Telegram. Autonomously fixed a production bug in a deployed app without being asked. ## 🧠 Knowledge & Memory \*\*@joshp123\*\* • `learning` `voice` `skill` Chinese learning engine with pronunciation feedback and study flows via OpenClaw. \*\*Community\*\* • `memory` `transcription` `indexing` Ingests full WhatsApp exports, transcribes 1k+ voice notes, cross-checks with git logs, outputs linked markdown reports. \*\*@jamesbrooksco\*\* • `search` `vector` `bookmarks` Adds vector search to Karakeep bookmarks using Qdrant + OpenAI/Ollama embeddings. \*\*Community\*\* • `memory` `beliefs` `self-model` Separate memory manager that turns session files into memories → beliefs → evolving self model. ## 🎙️ Voice & Phone \*\*@alejandroOPI\*\* • `voice` `vapi` `bridge` Vapi voice assistant ↔ OpenClaw HTTP bridge. Near real-time phone calls with your agent. \*\*@obviyus\*\* • `transcription` `multilingual` `skill` Multi-lingual audio transcription via OpenRouter (Gemini, etc). Available on ClawHub. ## 🏗️ Infrastructure & Deployment \*\*@ngutman\*\* • `homeassistant` `docker` `raspberry-pi` OpenClaw gateway running on Home Assistant OS with SSH tunnel support and persistent state. \*\*ClawHub\*\* • `homeassistant` `skill` `automation` Control and automate Home Assistant devices via natural language. \*\*@openclaw\*\* • `nix` `packaging` `deployment` Batteries-included nixified OpenClaw configuration for reproducible deployments. \*\*ClawHub\*\* • `calendar` `caldav` `skill` Calendar skill using khal/vdirsyncer. Self-hosted calendar integration. ## 🏠 Home & Hardware \*\*@joshp123\*\* • `home` `nix` `grafana` Nix-native home automation with OpenClaw as the interface, plus beautiful Grafana dashboards. \*\*@joshp123\*\* • `vacuum` `iot` `plugin` Control your Roborock robot vacuum through natural conversation. ## 🌟 Community Projects \*\*Community\*\* • `marketplace` `astronomy` `webapp` Full astronomy gear marketplace. Built with/around the OpenClaw ecosystem. --- ## Submit Your Project Have something to share? We'd love to feature it! Post in [#showcase on Discord](https://discord.gg/clawd) or [tweet @openclaw](https://x.com/openclaw) Tell us what it does, link to the repo/demo, share a screenshot if you have one We'll add standout projects to this page
https://github.com/openclaw/openclaw/blob/main//docs/start/showcase.md
main
opebclaw
[ -0.13904154300689697, -0.0530492439866066, 0.007548304740339518, 0.012464589439332485, -0.02005641534924507, -0.07741254568099976, -0.007074512075632811, -0.01378644723445177, -0.03695933520793915, -0.03318338468670845, 0.0010227789171040058, -0.05572981759905815, 0.009373653680086136, 0.023073196411132812, 0.03120635449886322, 0.02494075708091259, 0.03881224989891052, -0.14002466201782227, -0.04782097786664963, -0.07105784863233566, -0.029525017365813255, 0.005779899191111326, 0.05869594216346741, -0.09309392422437668, 0.050195008516311646, -0.017292996868491173, -0.08184260129928589, -0.01572626270353794, -0.04904650151729584, -0.05239323899149895, 0.023741453886032104, 0.023928595706820488, -0.04263918474316597, 0.060635410249233246, 0.05053304135799408, 0.07556785643100739, -0.016305694356560707, 0.03378455340862274, 0.024291811510920525, -0.05274812504649162, -0.03769148886203766, -0.08245056867599487, -0.054049935191869736, -0.046734657138586044, 0.06570763885974884, -0.00022869373788125813, -0.003697791136801243, -0.057274434715509415, 0.012601174414157867, 0.07019264996051788, -0.16422541439533234, -0.035142719745635986, 0.04415858909487724, -0.012135932222008705, 0.009742721915245056, 0.08391163498163223, -0.008866715244948864, 0.05020897090435028, 0.05593252182006836, -0.060998156666755676, 0.0616573803126812, -0.011580602265894413, -0.013508034870028496, -0.0027775270864367485, -0.04557693377137184, -0.05189500376582146, -0.0490456186234951, -0.02872086502611637, 0.014748441986739635, -0.06531532108783722, 0.017562277615070343, 0.015029183588922024, -0.06563277542591095, 0.020205385982990265, 0.005186872091144323, -0.05345366895198822, -0.024477239698171616, 0.001098449807614088, -0.06315727531909943, -0.050535041838884354, -0.04607356712222099, -0.05307420343160629, -0.03997809439897537, 0.044523898512125015, -0.04452883452177048, 0.08621899783611298, 0.013545433059334755, -0.004583766683936119, 0.09219344705343246, 0.020972631871700287, 0.0921759158372879, -0.07893306761980057, 0.0016673710197210312, 0.02329338900744915, 0.02015109546482563, -0.0021691634319722652, 0.04971574246883392, 0.060909051448106766, -0.038486842066049576, 0.07781153172254562, 0.030147960409522057, -0.05824319273233414, -0.005128806456923485, -0.0159031692892313, -0.04002276808023453, 0.06656374037265778, -0.00035187421599403024, 0.11640757322311401, 0.06654538214206696, -0.04563553258776665, -0.025395624339580536, 0.035666778683662415, -0.0009695338667370379, -0.04250678792595863, -0.02749520353972912, 0.04399565979838371, -0.07450594007968903, -0.030259858816862106, 0.028119690716266632, 0.09387306869029999, 0.1276060938835144, 0.027846038341522217, -0.04207446798682213, -0.0012610306730493903, 0.005115101579576731, 0.09685683250427246, 0.009824550710618496, 6.16938887840686e-33, 0.10720193386077881, 0.04352559149265289, -0.05419478565454483, 0.002121872967109084, 0.021220389753580093, 0.01883341558277607, -0.003094247542321682, 0.07489150017499924, -0.10009488463401794, -0.03966878727078438, -0.10592345893383026, 0.026133697479963303, -0.057720549404621124, -0.01468376349657774, -0.011748000048100948, -0.051224011927843094, 0.014021920040249825, -0.033189382404088974, 0.04394244775176048, -0.01409269031137228, 0.08812939375638962, -0.022302141413092613, -0.018668361008167267, 0.02567908726632595, -0.04908004403114319, 0.10642274469137192, 0.024142954498529434, -0.03231015056371689, 0.021306347101926804, 0.06066756695508957, -0.016145339235663414, -0.050536077469587326, -0.0436205193400383, 0.013148248195648193, 0.018602866679430008, 0.020585255697369576, -0.05840024724602699, -0.049386173486709595, -0.0721600130200386, -0.018502555787563324, -0.05926816165447235, 0.0018092470709234476, -0.05550245940685272, -0.07019192725419998, -0.027627859264612198, -0.0715215802192688, 0.0058533912524580956, 0.010256831534206867, 0.031922902911901474, 0.08756404370069504, -0.03442975878715515, -0.0396004393696785, 0.08107960969209671, -0.05014653876423836, 0.011471965350210667, 0.03312511369585991, 0.015657853335142136, -0.045115645974874496, -0.025350330397486687, 0.04244577884674072, 0.03289439529180527, -0.013363027013838291, -0.02246246300637722, 0.00644372683018446, -0.013857001438736916, -0.005941007286310196, 0.08846031129360199, 0.08939188718795776, 0.017395056784152985, 0.028071049600839615, -0.033884141594171524, 0.04155365750193596, 0.0665137842297554, 0.0942952036857605, -0.028088834136724472, -0.07121870666742325, -0.0319051630795002, -0.002290738048031926, -0.023764990270137787, -0.045338742434978485, 0.03391949459910393, 0.0035801383201032877, 0.0044210972264409065, -0.021322034299373627, 0.10180120915174484, 0.038787491619586945, 0.030397051945328712, -0.08880021423101425, 0.007519138976931572, 0.12344204634428024, -0.026088634505867958, 0.03970695659518242, -0.07005055248737335, -0.013102437369525433, -0.07409954816102982, -6.50981645050881e-33, -0.024696003645658493, -0.03365546092391014, -0.06249859184026718, 0.04924939200282097, 0.029042180627584457, 0.013625449500977993, 0.06183534860610962, 0.036779794842004776, -0.013665784150362015, 0.025122065097093582, -0.018527328968048096, 0.015506234019994736, 0.013466326519846916, -0.09058334678411484, -0.022568566724658012, 0.018179042264819145, -0.05314379930496216, -0.05051843076944351, -0.051384586840867996, 0.03450958430767059, -0.04218681529164314, 0.029245780780911446, -0.10912680625915527, 0.08040343970060349, 0.04772079735994339, 0.016150685027241707, -0.018835561349987984, 0.057775791734457016, -0.019286636263132095, -0.0038715892005711794, 0.06971719861030579, 0.013890205882489681, -0.08170905709266663, 0.007828068919479847, 0.04482414573431015, 0.04825109988451004, 0.03865289315581322, 0.055758412927389145, 0.013723377138376236, 0.039259035140275955, 0.06964153796434402, -0.03885151818394661, -0.07210007309913635, 0.02486514486372471, -0.025794537737965584, 0.04310827702283859, -0.1537880301475525, 0.043672114610672, -0.1011175662279129, 0.007199628744274378, 0.11633582413196564, -0.009599493816494942, 0.07457274198532104, -0.042339716106653214, 0.0022864548955112696, 0.005032213404774666, 0.0608903169631958, -0.02095019817352295, -0.07584042847156525, -0.013317346572875977, 0.04439692944288254, -0.09574664384126663, 0.019895406439900398, 0.07679646462202072, 0.074490025639534, -0.05020865425467491, 0.01767355389893055, 0.10817226022481918, -0.12380819022655487, -0.050516560673713684, 0.017937351018190384, -0.08090007305145264, 0.024276474490761757, -0.10477586090564728, 0.07233629375696182, -0.04492810741066933, -0.04964718595147133, -0.0009748105658218265, -0.004139392636716366, 0.052130721509456635, -0.01596478745341301, 0.049990393221378326, 0.07433894276618958, -0.03912810981273651, 0.018960749730467796, 0.024253737181425095, 0.00812695361673832, 0.09012139588594437, -0.04232988506555557, -0.04230893403291702, -0.03796166926622391, -0.01283255498856306, -0.0003811398637481034, 0.04203672707080841, 0.037199266254901886, -5.408190517641742e-8, -0.02463087998330593, 0.014178254641592503, -0.08237884938716888, 0.03542105481028557, 0.007080111652612686, -0.014352157711982727, -0.0058197397738695145, 0.06655791401863098, -0.005511850118637085, 0.002977152122184634, -0.003724734764546156, -0.02249767631292343, -0.04330652579665184, 0.02039521001279354, -0.0009176350431516767, -0.027037015184760094, -0.031146785244345665, 0.02610357664525509, -0.02361665852367878, -0.0851919874548912, 0.09772948175668716, 0.027727412059903145, -0.011930132284760475, -0.007159736473113298, 0.023274239152669907, -0.05724187195301056, -0.02767246402800083, 0.07276634126901627, 0.03324805945158005, -0.012357172556221485, -0.0888746902346611, -0.036298710852861404, 0.038430746644735336, -0.10097146034240723, -0.025065943598747253, 0.004246904514729977, -0.00948425754904747, -0.06377801299095154, -0.05153327062726021, 0.04435573145747185, 0.06810898333787918, 0.006967164110392332, -0.012050556018948555, -0.0437832847237587, -0.0006998772732913494, 0.001707210554741323, -0.04284804314374924, -0.03612077608704567, 0.058954332023859024, -0.06695503741502762, 0.004102595150470734, -0.01499019656330347, 0.06232253834605217, 0.05362023785710335, 0.026077548041939735, 0.04416486620903015, 0.055165596306324005, -0.06697916239500046, 0.026307301595807076, 0.021800294518470764, 0.09049713611602783, 0.022580988705158234, -0.011760310269892216, 0.02208474650979042 ]
0.141841
# Building a personal assistant with OpenClaw OpenClaw is a WhatsApp + Telegram + Discord + iMessage gateway for \*\*Pi\*\* agents. Plugins add Mattermost. This guide is the "personal assistant" setup: one dedicated WhatsApp number that behaves like your always-on agent. ## ⚠️ Safety first You’re putting an agent in a position to: - run commands on your machine (depending on your Pi tool setup) - read/write files in your workspace - send messages back out via WhatsApp/Telegram/Discord/Mattermost (plugin) Start conservative: - Always set `channels.whatsapp.allowFrom` (never run open-to-the-world on your personal Mac). - Use a dedicated WhatsApp number for the assistant. - Heartbeats now default to every 30 minutes. Disable until you trust the setup by setting `agents.defaults.heartbeat.every: "0m"`. ## Prerequisites - Node \*\*22+\*\* - OpenClaw available on PATH (recommended: global install) - A second phone number (SIM/eSIM/prepaid) for the assistant ```bash npm install -g openclaw@latest # or: pnpm add -g openclaw@latest ``` From source (development): ```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 pnpm link --global ``` ## The two-phone setup (recommended) You want this: ``` Your Phone (personal) Second Phone (assistant) ┌─────────────────┐ ┌─────────────────┐ │ Your WhatsApp │ ──────▶ │ Assistant WA │ │ +1-555-YOU │ message │ +1-555-ASSIST │ └─────────────────┘ └────────┬────────┘ │ linked via QR ▼ ┌─────────────────┐ │ Your Mac │ │ (openclaw) │ │ Pi agent │ └─────────────────┘ ``` If you link your personal WhatsApp to OpenClaw, every message to you becomes “agent input”. That’s rarely what you want. ## 5-minute quick start 1. Pair WhatsApp Web (shows QR; scan with the assistant phone): ```bash openclaw channels login ``` 2. Start the Gateway (leave it running): ```bash openclaw gateway --port 18789 ``` 3. Put a minimal config in `~/.openclaw/openclaw.json`: ```json5 { channels: { whatsapp: { allowFrom: ["+15555550123"] } }, } ``` Now message the assistant number from your allowlisted phone. When onboarding finishes, we auto-open the dashboard with your gateway token and print the tokenized link. To reopen later: `openclaw dashboard`. ## Give the agent a workspace (AGENTS) OpenClaw reads operating instructions and “memory” from its workspace directory. By default, OpenClaw uses `~/.openclaw/workspace` as the agent workspace, and will create it (plus starter `AGENTS.md`, `SOUL.md`, `TOOLS.md`, `IDENTITY.md`, `USER.md`) automatically on setup/first agent run. `BOOTSTRAP.md` is only created when the workspace is brand new (it should not come back after you delete it). Tip: treat this folder like OpenClaw’s “memory” and make it a git repo (ideally private) so your `AGENTS.md` + memory files are backed up. If git is installed, brand-new workspaces are auto-initialized. ```bash openclaw setup ``` Full workspace layout + backup guide: [Agent workspace](/concepts/agent-workspace) Memory workflow: [Memory](/concepts/memory) Optional: choose a different workspace with `agents.defaults.workspace` (supports `~`). ```json5 { agent: { workspace: "~/.openclaw/workspace", }, } ``` If you already ship your own workspace files from a repo, you can disable bootstrap file creation entirely: ```json5 { agent: { skipBootstrap: true, }, } ``` ## The config that turns it into “an assistant” OpenClaw defaults to a good assistant setup, but you’ll usually want to tune: - persona/instructions in `SOUL.md` - thinking defaults (if desired) - heartbeats (once you trust it) Example: ```json5 { logging: { level: "info" }, agent: { model: "anthropic/claude-opus-4-5", workspace: "~/.openclaw/workspace", thinkingDefault: "high", timeoutSeconds: 1800, // Start with 0; enable later. heartbeat: { every: "0m" }, }, channels: { whatsapp: { allowFrom: ["+15555550123"], groups: { "\*": { requireMention: true }, }, }, }, routing: { groupChat: { mentionPatterns: ["@openclaw", "openclaw"], }, }, session: { scope: "per-sender", resetTriggers: ["/new", "/reset"], reset: { mode: "daily", atHour: 4, idleMinutes: 10080, }, }, } ``` ##
https://github.com/openclaw/openclaw/blob/main//docs/start/openclaw.md
main
opebclaw
[ -0.0786554142832756, -0.02264554426074028, 0.019152818247675896, -0.0008775913156569004, -0.03775126487016678, -0.07572586834430695, -0.012657668441534042, 0.007255330216139555, 0.051359064877033234, 0.019324077293276787, 0.04185545817017555, -0.04986686259508133, 0.02387026883661747, 0.01988702267408371, 0.08392304927110672, 0.024468950927257538, 0.11736611276865005, -0.18972423672676086, -0.016492001712322235, 0.02500876411795616, 0.011025466956198215, 0.0492062084376812, 0.03721548989415169, 0.020055251196026802, -0.0637391060590744, -0.0735880509018898, 0.00034591491566970944, 0.01883808895945549, -0.025126127526164055, 0.00011493067722767591, 0.09379370510578156, -0.02215374819934368, 0.03844641149044037, 0.054677169770002365, 0.026382697746157646, 0.04254155978560448, 0.046522825956344604, 0.07351717352867126, -0.03276527300477028, 0.05507674440741539, -0.03826335445046425, -0.040949661284685135, -0.037817034870386124, -0.04345201328396797, 0.07215158641338348, -0.06862003356218338, -0.04237574711441994, -0.028769368305802345, 0.024381527677178383, 0.047141183167696, 0.020378733053803444, -0.030281148850917816, -0.007231013383716345, 0.045023154467344284, 0.020928997546434402, 0.07903192937374115, -0.045168112963438034, 0.07686983793973923, 0.036967188119888306, -0.047251660376787186, 0.03437095880508423, -0.03906526416540146, -0.0018307066056877375, -0.034593041986227036, -0.1317087858915329, 0.06040630862116814, -0.04820481315255165, -0.012370098382234573, 0.0367748886346817, 0.01930634304881096, 0.015367245301604271, -0.004868428222835064, 0.014451133087277412, 0.00822786707431078, -0.021480079740285873, -0.020682336762547493, -0.007337586954236031, -0.03318078815937042, -0.07888176292181015, 0.0010211163898929954, -0.05478141829371452, 0.0004357510479167104, -0.07861214131116867, -0.02273872308433056, -0.010739288292825222, 0.06445827335119247, 0.003256557509303093, 0.0335356742143631, -0.01719054952263832, -0.017909163609147072, 0.05804738774895668, -0.044402461498975754, -0.0012808716855943203, 0.03950950503349304, 0.03647409752011299, 0.03350638598203659, -0.05581910163164139, 0.022272061556577682, -0.04096135497093201, 0.010850269347429276, -0.015092783607542515, -0.04080470651388168, -0.030568664893507957, 0.032683465629816055, 0.028161218389868736, 0.024439185857772827, 0.026252320036292076, 0.012202812358736992, 0.08902230113744736, -0.01946101523935795, -0.03355832025408745, -0.06541179120540619, 0.05546634644269943, 0.06020279973745346, 0.026324013248085976, 0.0754445269703865, 0.02921038307249546, 0.024489453062415123, 0.04906283691525459, 0.021227901801466942, 0.15170857310295105, -0.06229235976934433, 0.0013542918022722006, 0.003193504875525832, 0.04604583978652954, 0.08932437002658844, 0.09043580293655396, 5.154313874299305e-33, 0.060680992901325226, 0.0760347843170166, 0.006972023285925388, 0.029468413442373276, 0.010942649096250534, -0.02421683818101883, 0.015741603448987007, 0.021227538585662842, -0.0507667139172554, -0.0131572550162673, -0.03797852247953415, 0.09485700726509094, -0.010716376826167107, -0.01934823952615261, -0.044978704303503036, -0.02152998372912407, 0.0009863036684691906, 0.014454078860580921, 0.12966212630271912, -0.0682731345295906, -0.009360553696751595, -0.0578760951757431, -0.055332083255052567, -0.0017666086787357926, 0.048694126307964325, 0.09971508383750916, 0.058981701731681824, -0.05916843190789223, 0.0436161532998085, -0.014945528469979763, -0.02583412081003189, 0.023605074733495712, -0.0313129648566246, 0.015489107929170132, -0.027166951447725296, -0.016656024381518364, -0.1250675469636917, 0.017397824674844742, -0.037223219871520996, -0.010513447225093842, -0.023370860144495964, 0.02693960815668106, -0.016999438405036926, -0.06124807149171829, 0.0386422723531723, -0.06610433757305145, -0.029722249135375023, 0.03669247403740883, -0.007824307307600975, 0.028330370783805847, -0.007599118165671825, -0.041828494518995285, 0.04508254677057266, 0.08396535366773605, -0.06883718818426132, -0.030102351680397987, 0.013148189522325993, -0.046889834105968475, -0.012175471521914005, -0.040137261152267456, 0.01715666987001896, -0.03126085549592972, 0.026592761278152466, 0.04828700050711632, 0.05200894549489021, -0.04404643177986145, -0.0756741464138031, 0.0018931872909888625, -0.02427178993821144, 0.0804644227027893, -0.027162976562976837, 0.03462335839867592, -0.023073283955454826, 0.011594407260417938, -0.054546914994716644, -0.026169346645474434, -0.022066060453653336, 0.06110948324203491, -0.03981110453605652, 0.033087898045778275, 0.004924911540001631, 0.05562408268451691, -0.014718540012836456, -0.04362231120467186, 0.07228966802358627, 0.013574088923633099, 0.023597663268446922, -0.07607503235340118, -0.046967487782239914, 0.1894657015800476, -0.07189268618822098, 0.08992782980203629, 0.044244613498449326, 0.07033686339855194, -0.07114846259355545, -4.602751353742348e-33, -0.005119436886161566, -0.022028189152479172, -0.031824592500925064, 0.005861248821020126, 0.059309881180524826, 0.009357691742479801, 0.011693866923451424, -0.020421519875526428, -0.04460655152797699, -0.02447645738720894, -0.032206229865550995, -0.017501553520560265, 0.08441773802042007, -0.0640251487493515, 0.060769472271203995, 0.024685118347406387, 0.019916456192731857, -0.016744976863265038, -0.08057201653718948, -0.013591312803328037, -0.012863260693848133, -0.04346902295947075, -0.04094494879245758, 0.006634300574660301, 0.052409827709198, -0.015675745904445648, 0.008749349042773247, 0.030365340411663055, 0.016691671684384346, -0.0795876607298851, -0.04880902171134949, 0.019980520009994507, -0.03391623497009277, -0.023283109068870544, 0.011950294487178326, 0.016908254474401474, -0.030218152329325676, 0.11870520561933517, 0.052747949957847595, -0.019419284537434578, 0.12619325518608093, -0.035294417291879654, -0.11806044727563858, -0.049302466213703156, -0.02357373759150505, 0.07597579807043076, -0.06435760855674744, -0.0192792396992445, -0.21165476739406586, 0.03639203682541847, 0.02080688439309597, -0.03366929665207863, 0.029677441343665123, 0.03861122950911522, 0.008404253982007504, 0.044014934450387955, 0.08001598715782166, 0.007172598037868738, -0.038160014897584915, -0.07863844186067581, 0.026108518242836, -0.10059253871440887, 0.031017150729894638, 0.03418548032641411, 0.01264589186757803, -0.03889508545398712, 0.010936579667031765, 0.03133275732398033, -0.051185593008995056, -0.0013420619070529938, -0.001632234314456582, -0.05959884449839592, -0.047361645847558975, -0.01360021997243166, 0.010597426444292068, -0.02970021590590477, -0.08587802201509476, -0.16845151782035828, -0.028399724513292313, 0.009552177973091602, -0.004136306699365377, 0.050746917724609375, 0.09919600188732147, -0.037361692637205124, -0.08224043995141983, 0.07741227746009827, 0.06038272753357887, 0.08955995738506317, 0.028797583654522896, 0.04328853264451027, -0.07419594377279282, 0.0127229243516922, 0.0041909851133823395, -0.045460447669029236, -0.04229316487908363, -5.037755101966468e-8, -0.0771339014172554, -0.08617640286684036, 0.012360118329524994, 0.009654587134718895, -0.07283850759267807, -0.06576031446456909, 0.027738869190216064, -0.012350248172879219, 0.05182897299528122, -0.0015821662964299321, 0.033318955451250076, -0.04391077160835266, 0.007183307781815529, 0.023600751534104347, -0.031237946823239326, 0.021385326981544495, 0.027155473828315735, -0.07807471603155136, 0.027505069971084595, -0.06329845637083054, 0.05454858019948006, 0.02857406809926033, 0.010802392847836018, 0.03086129017174244, -0.04048138111829758, -0.021043725311756134, 0.041886042803525925, 0.05421213433146477, -0.03590700775384903, -0.009073790162801743, -0.05689215660095215, -0.11016272008419037, 0.008042966015636921, 0.004361256025731564, -0.04548344388604164, -0.009153061546385288, 0.0014178408309817314, -0.06317012012004852, -0.020537056028842926, 0.03487903252243996, 0.08285359293222427, 0.01830945909023285, -0.06716214120388031, -0.06771668046712875, 0.006854776293039322, -0.04340287670493126, 0.009263253770768642, -0.08806145191192627, 0.0076597267761826515, 0.0443204790353775, 0.009551270864903927, -0.012417258694767952, 0.08382125943899155, 0.023358631879091263, 0.03427046909928322, -0.03510168939828873, 0.10429473221302032, -0.046698395162820816, 0.021590581163764, 0.06069403886795044, 0.012091386131942272, 0.06836964190006256, -0.011586140841245651, -0.013543808832764626 ]
0.091119
{ every: "0m" }, }, channels: { whatsapp: { allowFrom: ["+15555550123"], groups: { "\*": { requireMention: true }, }, }, }, routing: { groupChat: { mentionPatterns: ["@openclaw", "openclaw"], }, }, session: { scope: "per-sender", resetTriggers: ["/new", "/reset"], reset: { mode: "daily", atHour: 4, idleMinutes: 10080, }, }, } ``` ## Sessions and memory - Session files: `~/.openclaw/agents//sessions/{{SessionId}}.jsonl` - Session metadata (token usage, last route, etc): `~/.openclaw/agents//sessions/sessions.json` (legacy: `~/.openclaw/sessions/sessions.json`) - `/new` or `/reset` starts a fresh session for that chat (configurable via `resetTriggers`). If sent alone, the agent replies with a short hello to confirm the reset. - `/compact [instructions]` compacts the session context and reports the remaining context budget. ## Heartbeats (proactive mode) By default, OpenClaw runs a heartbeat every 30 minutes with the prompt: `Read HEARTBEAT.md if it exists (workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT\_OK.` Set `agents.defaults.heartbeat.every: "0m"` to disable. - If `HEARTBEAT.md` exists but is effectively empty (only blank lines and markdown headers like `# Heading`), OpenClaw skips the heartbeat run to save API calls. - If the file is missing, the heartbeat still runs and the model decides what to do. - If the agent replies with `HEARTBEAT\_OK` (optionally with short padding; see `agents.defaults.heartbeat.ackMaxChars`), OpenClaw suppresses outbound delivery for that heartbeat. - Heartbeats run full agent turns — shorter intervals burn more tokens. ```json5 { agent: { heartbeat: { every: "30m" }, }, } ``` ## Media in and out Inbound attachments (images/audio/docs) can be surfaced to your command via templates: - `{{MediaPath}}` (local temp file path) - `{{MediaUrl}}` (pseudo-URL) - `{{Transcript}}` (if audio transcription is enabled) Outbound attachments from the agent: include `MEDIA:` on its own line (no spaces). Example: ``` Here’s the screenshot. MEDIA:https://example.com/screenshot.png ``` OpenClaw extracts these and sends them as media alongside the text. ## Operations checklist ```bash openclaw status # local status (creds, sessions, queued events) openclaw status --all # full diagnosis (read-only, pasteable) openclaw status --deep # adds gateway health probes (Telegram + Discord) openclaw health --json # gateway health snapshot (WS) ``` Logs live under `/tmp/openclaw/` (default: `openclaw-YYYY-MM-DD.log`). ## Next steps - WebChat: [WebChat](/web/webchat) - Gateway ops: [Gateway runbook](/gateway) - Cron + wakeups: [Cron jobs](/automation/cron-jobs) - macOS menu bar companion: [OpenClaw macOS app](/platforms/macos) - iOS node app: [iOS app](/platforms/ios) - Android node app: [Android app](/platforms/android) - Windows status: [Windows (WSL2)](/platforms/windows) - Linux status: [Linux app](/platforms/linux) - Security: [Security](/gateway/security)
https://github.com/openclaw/openclaw/blob/main//docs/start/openclaw.md
main
opebclaw
[ -0.03297589346766472, 0.03243977949023247, -0.03913872316479683, 0.07041474431753159, -0.011031469330191612, -0.06524530053138733, 0.0339900366961956, -0.03292153775691986, 0.017737170681357384, 0.03819241374731064, 0.025959353893995285, 0.0030078652780503035, -0.055753741413354874, 0.08625949919223785, 0.11685561388731003, 0.0654807984828949, -0.05982430651783943, -0.09291893243789673, -0.02082042209804058, -0.017298618331551552, 0.07571618258953094, 0.09037010371685028, 0.044347766786813736, -0.00429054070264101, -0.04254918172955513, -0.04516946151852608, -0.06472986936569214, -0.02506880648434162, 0.026651933789253235, 0.01647285372018814, 0.03420839458703995, 0.0693892166018486, -0.04789455607533455, 0.03373172506690025, 0.00881542731076479, 0.03800307959318161, 0.015021469444036484, -0.011888149194419384, 0.06208811327815056, 0.030817771330475807, 0.02629113383591175, 0.08196189254522324, -0.1070956438779831, -0.060145054012537, -0.013665156438946724, -0.06877993792295456, -0.06507103890180588, 0.002515319734811783, -0.03819338604807854, 0.08087846636772156, -0.01829387992620468, -0.020788216963410378, -0.00242771883495152, 0.040005698800086975, 0.0002945329761132598, 0.05734981968998909, -0.08893775194883347, 0.07040807604789734, 0.05150027945637703, -0.02409198135137558, -0.01593058556318283, -0.0911533385515213, -0.013584310188889503, -0.018680181354284286, -0.08260509371757507, -0.004835884552448988, -0.03603743016719818, -0.061601996421813965, 0.01198890432715416, 0.01251040119677782, -0.0039079636335372925, 0.008023491129279137, 0.02154151350259781, -0.06009865179657936, -0.008638344705104828, -0.005160847213119268, 0.024925073608756065, 0.014066901989281178, -0.048577744513750076, -0.03796183317899704, -0.00864877924323082, -0.0719195157289505, -0.06327766925096512, 0.023458026349544525, -0.024053499102592468, 0.04285974055528641, -0.0259022805839777, -0.029468804597854614, 0.016241583973169327, -0.01394988689571619, -0.06565145403146744, -0.07938964664936066, -0.0349915511906147, 0.022931503131985664, 0.014058828353881836, 0.010999521240592003, -0.008955853059887886, 0.07587967067956924, -0.015037734992802143, 0.07980169355869293, 0.054043855518102646, -0.04545661807060242, 0.038939256221055984, 0.035481587052345276, -0.040544454008340836, 0.018417928367853165, 0.014343725517392159, 0.054724134504795074, -0.021589376032352448, 0.05673648789525032, -0.03277342766523361, 0.054158084094524384, 0.07723137736320496, 0.020521322265267372, -0.04131696745753288, 0.012072669342160225, -0.052334364503622055, -0.006492700427770615, 0.012364871799945831, 0.10781467705965042, 0.131608784198761, -0.06656765937805176, 0.03683946654200554, 0.023612605407834053, -0.02014804072678089, 0.062374088913202286, 0.11567293852567673, 3.7068777216219125e-33, 0.08180532604455948, -0.004465702921152115, -0.06599823385477066, 0.03464875742793083, 0.07594995200634003, 0.043122224509716034, -0.02659805305302143, 0.047004252672195435, -0.03924819082021713, 0.01245754212141037, -0.03395690396428108, 0.05851767212152481, -0.03514755144715309, -0.04406118765473366, -0.017745764926075935, -0.02640565112233162, -0.02275731787085533, 0.03569396957755089, 0.11126363277435303, -0.0384138748049736, -0.03386790677905083, 0.0061661601066589355, -0.06618992239236832, 0.013691793195903301, 0.03492943197488785, 0.07041776925325394, 0.04503968358039856, -0.04312441870570183, -0.05656751990318298, 0.015403499826788902, 0.10130289942026138, 0.05887852609157562, -0.01775936409831047, 0.024450162425637245, -0.006335885729640722, -0.024865055456757545, -0.05149667337536812, 0.017564674839377403, -0.04352937266230583, -0.037192631512880325, 0.02260543592274189, 0.020861733704805374, -0.07792232185602188, -0.043646376579999924, -0.056013163179159164, -0.11140499264001846, 0.002640501596033573, 0.05989352986216545, -0.01181797869503498, 0.06142374500632286, -0.10175330191850662, 0.009162806905806065, -0.057777877897024155, 0.009573815390467644, 0.02172057516872883, -0.0708693265914917, -0.033014025539159775, -0.020367471501231194, -0.008507116697728634, -0.009519463405013084, 0.019497163593769073, 0.005153687205165625, 0.004632103722542524, -0.027562396600842476, 0.030571093782782555, 0.01606384851038456, -0.049949005246162415, 0.06502825766801834, -0.024836570024490356, 0.0017845736583694816, -0.019069675356149673, 0.04621238261461258, 0.042740415781736374, 0.055533234030008316, -0.09865493327379227, -0.043594956398010254, 0.006380770821124315, 0.15732663869857788, -0.03228607773780823, -0.016059907153248787, 0.03231130912899971, 0.018754903227090836, -0.08798541873693466, 0.07879642397165298, -0.028746236115694046, -0.0034629162400960922, 0.07063697278499603, -0.06417522579431534, -0.05940854549407959, 0.064448282122612, -0.07563166320323944, 0.027878887951374054, 0.0761038288474083, 0.007209331262856722, -0.04001372307538986, -4.43966767561308e-33, 0.03075559064745903, 0.029181700199842453, -0.0409267283976078, 0.002590271644294262, 0.030807483941316605, -0.0588374026119709, 0.07609410583972931, 0.03535765781998634, -0.0020480561070144176, 0.009433336555957794, -0.057976361364126205, 0.006799628958106041, 0.06706741452217102, -0.062183551490306854, 0.01742485910654068, 0.02440476417541504, -0.01343488972634077, -0.04242789000272751, -0.019366437569260597, -0.033113449811935425, 0.04010670632123947, 0.02889697626233101, 0.007214346434921026, 0.028477700427174568, 0.08273986726999283, -0.018356449902057648, 0.02943458966910839, 0.017337379977107048, -0.0376155823469162, -0.012303062714636326, 0.022153260186314583, -0.04591573774814606, -0.04210485517978668, 0.022467566654086113, 0.0002729026018641889, -0.026236332952976227, -0.002446482889354229, 0.13998182117938995, 0.030805479735136032, -0.013870124705135822, 0.12504568696022034, -0.027618981897830963, -0.11567167937755585, 0.013200034387409687, 0.0005786283290944993, 0.07445348799228668, -0.0006109531386755407, -0.050792891532182693, -0.13885770738124847, -0.005578795447945595, 0.03623879328370094, -0.04518092796206474, 0.02658601477742195, -0.05134241655468941, 0.014484275132417679, 0.04801382124423981, 0.08347263187170029, -0.12536215782165527, -0.0037526299711316824, -0.10854076594114304, 0.05240541324019432, -0.060191091150045395, 0.011407445184886456, 0.08165667206048965, 0.045282747596502304, -0.12180963903665543, -0.039468180388212204, -0.009805872105062008, 0.009128238074481487, -0.011721661314368248, -0.06862093508243561, -0.09229280799627304, -0.013494554907083511, 0.02033676765859127, 0.044402673840522766, 0.022222986444830894, -0.03252847120165825, -0.15193262696266174, 0.03799388185143471, 0.058086782693862915, -0.06367334723472595, 0.018483711406588554, 0.014252102933824062, 0.0010376486461609602, 0.032217103987932205, 0.09353417903184891, -0.019758028909564018, 0.13124410808086395, -0.009560390375554562, 0.10072614252567291, -0.0787733942270279, 0.0013534057652577758, 0.006687820889055729, -0.04418787360191345, -0.006694570649415255, -4.999152380946725e-8, -0.10238683223724365, -0.04892313480377197, -0.054184358566999435, 0.07354934513568878, 0.02064775675535202, -0.05904081463813782, 0.036888085305690765, 0.04608609899878502, 0.021317724138498306, -0.018213095143437386, 0.05256831645965576, 0.07305300235748291, -0.05077970400452614, 0.023634308949112892, -0.05298229679465294, -0.02962648682296276, -0.04077860340476036, -0.04954468458890915, -0.01013941876590252, -0.04006962478160858, -0.03587256371974945, -0.02415638417005539, 0.05779239162802696, 0.04780031740665436, -0.0016433395212516189, -0.03218487277626991, 0.032806333154439926, 0.059597209095954895, -0.06877542287111282, 0.022709080949425697, -0.12654978036880493, -0.03711940720677376, 0.008367728441953659, 0.007476374972611666, -0.07615932822227478, -0.02958015352487564, -0.10290128737688065, -0.01189669594168663, -0.02618062123656273, 0.005482122767716646, 0.07657378911972046, -0.003279628697782755, 0.0026115193031728268, 0.0032210007775574923, -0.05122525990009308, -0.01596626080572605, -0.027825940400362015, 0.03375353291630745, 0.04550488293170929, -0.014662696979939938, -0.05557042360305786, 0.002107849344611168, -0.007335102651268244, 0.026209013536572456, -0.016603752970695496, 0.005055869463831186, 0.07655155658721924, -0.047449707984924316, 0.014517368748784065, -0.002958433236926794, 0.00596656184643507, 0.06068175286054611, -0.04880555719137192, -0.0617329441010952 ]
0.033386
OpenClaw requires Node 22 or newer. ## Install ```bash npm install -g openclaw@latest ``` ```bash pnpm add -g openclaw@latest ``` ## Onboard and run the Gateway ```bash openclaw onboard --install-daemon ``` ```bash openclaw channels login ``` ```bash openclaw gateway --port 18789 ``` After onboarding, the Gateway runs via the user service. You can still run it manually with `openclaw gateway`. Switching between npm and git installs later is easy. Install the other flavor and run `openclaw doctor` to update the gateway service entrypoint. ## From source (development) ```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 --install-daemon ``` If you do not have a global install yet, run onboarding via `pnpm openclaw ...` from the repo. ## Multi instance quickstart (optional) ```bash OPENCLAW\_CONFIG\_PATH=~/.openclaw/a.json \ OPENCLAW\_STATE\_DIR=~/.openclaw-a \ openclaw gateway --port 19001 ``` ## Send a test message Requires a running Gateway. ```bash openclaw message send --target +15555550123 --message "Hello from OpenClaw" ```
https://github.com/openclaw/openclaw/blob/main//docs/start/quickstart.md
main
opebclaw
[ 0.0011949681211262941, -0.09302525222301483, -0.04566550999879837, 0.018962638452649117, -0.03960074111819267, -0.08764549344778061, -0.05856991931796074, 0.027702106162905693, -0.055625129491090775, 0.03717504441738129, -0.020573150366544724, 0.03451031818985939, -0.023157084360718727, 0.001262702513486147, 0.10631294548511505, 0.09329169988632202, 0.0754237174987793, -0.029820892959833145, 0.13387449085712433, -0.015485168434679508, -0.10642369836568832, 0.022336840629577637, 0.01324760913848877, -0.037330370396375656, -0.07062968611717224, -0.05354854092001915, 0.02151400037109852, 0.03240931034088135, -0.057243891060352325, -0.01645471155643463, 0.04005521535873413, 0.0342521108686924, -0.015843596309423447, 0.047456514090299606, -0.021690847352147102, 0.07975362241268158, 0.0028898988384753466, -0.02879399061203003, -0.1122915968298912, -0.023322664201259613, 0.14581996202468872, 0.024077963083982468, 0.007090779021382332, -0.06482873111963272, 0.036734387278556824, -0.035825420171022415, -0.027207819744944572, -0.09425989538431168, 0.03505285456776619, -0.03206374868750572, -0.045958373695611954, -0.12350186705589294, -0.00796730350703001, -0.07071825116872787, 0.021886667236685753, 0.02101321704685688, 0.08867492526769638, -0.04073572903871536, 0.011754357255995274, -0.08188443630933762, 0.010030733421444893, -0.01214857678860426, -0.014066343195736408, -0.006726337596774101, -0.10708457976579666, -0.011404932476580143, 0.018334047868847847, -0.02779589407145977, -0.01104788389056921, -0.014543118886649609, 0.024823956191539764, 0.03040093369781971, -0.03372464329004288, -0.06314446032047272, -0.1133580133318901, -0.02345842495560646, 0.07488691806793213, 0.03196542710065842, -0.03375723212957382, 0.00008813153544906527, -0.01685480773448944, 0.03216278925538063, -0.08113367855548859, 0.0312751941382885, -0.03425125777721405, 0.11264606565237045, 0.01212687324732542, 0.06601797789335251, -0.0042122588492929935, 0.023485980927944183, 0.009471514262259007, -0.045116327702999115, -0.01223029289394617, -0.014715989120304585, -0.0027199890464544296, -0.022735022008419037, -0.003475746838375926, -0.047427959740161896, -0.011340615339577198, 0.01537084300071001, -0.007593054324388504, -0.012110884301364422, 0.03676856681704521, 0.005370992701500654, -0.07844174653291702, 0.08814111351966858, 0.04807722568511963, 0.08717343956232071, 0.043136272579431534, 0.02283887378871441, 0.025831695646047592, -0.047286514192819595, 0.06651990115642548, -0.02442259155213833, -0.08980512619018555, 0.0693662241101265, 0.015673210844397545, -0.020732488483190536, 0.01791941188275814, 0.1348419189453125, -0.01172546949237585, 0.0374440997838974, 0.03156793862581253, 0.009833537973463535, 0.01657724566757679, 0.08803672343492508, 0.08580990880727768, 4.356729937006844e-33, 0.03123590350151062, -0.04770044982433319, -0.04287910833954811, -0.004957784432917833, 0.1727437525987625, 0.033881641924381256, 0.02126956358551979, -0.04404310882091522, -0.0495825931429863, 0.007188375107944012, -0.039848100394010544, 0.00024927829508669674, -0.04530779644846916, -0.01663198322057724, 0.002161784563213587, -0.05394177883863449, -0.0725683644413948, -0.03367173671722412, 0.09197445213794708, -0.014481579884886742, 0.01622113771736622, -0.14781011641025543, -0.06006349250674248, 0.04195607453584671, 0.09801021963357925, -0.07189693301916122, 0.018971772864460945, 0.0226396806538105, 0.02101273275911808, -0.0006125523359514773, 0.03532884269952774, 0.019218193367123604, -0.06289445608854294, 0.0020448975265026093, -0.07227455824613571, -0.06515636295080185, -0.14546571671962738, -0.04133874922990799, -0.07717151194810867, -0.022865813225507736, 0.0002861832908820361, -0.002660101745277643, -0.03496751934289932, -0.0422738641500473, 0.03640519827604294, -0.0800560712814331, -0.04860152676701546, 0.0776335820555687, 0.10403180867433548, 0.048959292471408844, 0.019204044714570045, 0.03956759348511696, 0.010086885653436184, -0.03159834071993828, -0.041736699640750885, 0.006287504453212023, -0.03875679150223732, -0.03827730566263199, 0.040979139506816864, -0.037635259330272675, -0.017558591440320015, 0.007520858198404312, 0.01541162095963955, 0.023670619353652, 0.031192364171147346, 0.014164063148200512, 0.008527746424078941, 0.04784826189279556, -0.0023513128980994225, 0.04093718156218529, -0.009532518684864044, -0.06606587767601013, -0.011160353198647499, 0.07932374626398087, -0.01933729648590088, -0.005728019401431084, -0.01187362615019083, -0.02631138637661934, 0.04974578320980072, -0.009324686601758003, 0.0017566924216225743, 0.01653035171329975, -0.008219633251428604, 0.047533754259347916, 0.10866834968328476, 0.05196120962500572, 0.07717351615428925, 0.004023032262921333, -0.010050086304545403, 0.08491554111242294, -0.00877173338085413, -0.0024021370336413383, -0.022597450762987137, 0.03884342685341835, -0.0254456028342247, -5.3900375931796215e-33, -0.07503562420606613, 0.0034301921259611845, -0.009542020969092846, 0.024466879665851593, -0.027791917324066162, -0.05907746031880379, 0.014685277827084064, -0.0810084342956543, -0.02385316789150238, 0.02562541887164116, -0.043122705072164536, 0.10350986570119858, 0.07668135315179825, -0.07299035787582397, 0.04436586797237396, -0.056487906724214554, -0.06655687093734741, -0.0023415496107190847, 0.044618114829063416, 0.06115008890628815, -0.008967949077486992, 0.058064259588718414, 0.010770312510430813, -0.05256025120615959, 0.012804955244064331, 0.052293166518211365, 0.07663299143314362, 0.038797877728939056, -0.07355926930904388, -0.03788860887289047, -0.03825850784778595, 0.06343906372785568, 0.002746457699686289, 0.00036925659514963627, -0.008879151195287704, 0.052524466067552567, 0.02835783176124096, 0.032133180648088455, 0.030202588066458702, 0.0005407517892308533, 0.04659952595829964, -0.00965063739567995, -0.06874420493841171, -0.0170142762362957, -0.05055435746908188, 0.01274435967206955, 0.004526860546320677, -0.0013893225695937872, -0.08643601834774017, -0.04418328404426575, -0.10476787388324738, 0.06675058603286743, 0.04595788195729256, 0.08807604759931564, 0.0444604754447937, 0.017634855583310127, 0.04745166376233101, 0.01047845371067524, 0.0021496273111552, -0.07238207757472992, 0.005425318144261837, -0.09139170497655869, 0.01896383799612522, 0.10110623389482498, -0.04511069133877754, -0.0698467344045639, -0.013764156959950924, 0.02134476974606514, -0.08156313747167587, -0.0175595935434103, -0.11296054720878601, -0.007744576781988144, 0.027177849784493446, -0.02118542604148388, -0.02726914919912815, -0.03865395486354828, 0.03269118443131447, 0.009565987624228, -0.04778256267309189, -0.02719726599752903, 0.03977791965007782, -0.03187672793865204, 0.033513814210891724, -0.05098329484462738, -0.03471711277961731, -0.06121709197759628, 0.03175703436136246, 0.028735749423503876, 0.0636037141084671, 0.06009838357567787, -0.06141376495361328, -0.012218710966408253, 0.004114892333745956, -0.06072312965989113, 0.014078151434659958, -5.132575253696814e-8, -0.012970959767699242, 0.002057979116216302, -0.0566679872572422, 0.029036378487944603, 0.018698085099458694, -0.07654408365488052, 0.021355973556637764, 0.04123920947313309, -0.03645094111561775, 0.040889520198106766, 0.07383899390697479, 0.06093127280473709, -0.0764458104968071, 0.07854162901639938, 0.022879192605614662, 0.13383305072784424, -0.027503840625286102, -0.023001154884696007, 0.010644008405506611, -0.033518459647893906, -0.058087579905986786, 0.016100779175758362, 0.04024190455675125, 0.07551925629377365, -0.06067480519413948, 0.012533025816082954, -0.026311548426747322, -0.07163110375404358, -0.022049155086278915, 0.006478578317910433, -0.037521880120038986, -0.0021448007319122553, 0.0021041289437562227, 0.01668151654303074, -0.012728147208690643, -0.027004074305295944, -0.030202671885490417, 0.05126195400953293, 0.07409165799617767, -0.014426360838115215, 0.004781330469995737, -0.03496855869889259, -0.01590634509921074, -0.04802491143345833, -0.09085401147603989, 0.005405265372246504, -0.04482927918434143, 0.03493984043598175, -0.020481381565332413, 0.02638588845729828, 0.06237656623125076, 0.0049396478570997715, 0.021857134997844696, 0.014319620095193386, 0.05775502324104309, 0.11482413858175278, 0.03991151601076126, -0.09367632865905762, -0.00982444267719984, 0.03470604121685028, -0.020630473271012306, 0.0032784680370241404, 0.07108015567064285, -0.08728305250406265 ]
0.015182
For a complete map of the docs, see [Docs hubs](/start/hubs). ## Start here - [Docs hubs (all pages linked)](/start/hubs) - [Help](/help) - [Configuration](/gateway/configuration) - [Configuration examples](/gateway/configuration-examples) - [Slash commands](/tools/slash-commands) - [Multi-agent routing](/concepts/multi-agent) - [Updating and rollback](/install/updating) - [Pairing (DM and nodes)](/start/pairing) - [Nix mode](/install/nix) - [OpenClaw assistant setup](/start/openclaw) - [Skills](/tools/skills) - [Skills config](/tools/skills-config) - [Workspace templates](/reference/templates/AGENTS) - [RPC adapters](/reference/rpc) - [Gateway runbook](/gateway) - [Nodes (iOS and Android)](/nodes) - [Web surfaces (Control UI)](/web) - [Discovery and transports](/gateway/discovery) - [Remote access](/gateway/remote) ## Providers and UX - [WebChat](/web/webchat) - [Control UI (browser)](/web/control-ui) - [Telegram](/channels/telegram) - [Discord](/channels/discord) - [Mattermost (plugin)](/channels/mattermost) - [BlueBubbles (iMessage)](/channels/bluebubbles) - [iMessage (legacy)](/channels/imessage) - [Groups](/concepts/groups) - [WhatsApp group messages](/concepts/group-messages) - [Media images](/nodes/images) - [Media audio](/nodes/audio) ## Companion apps - [macOS app](/platforms/macos) - [iOS app](/platforms/ios) - [Android app](/platforms/android) - [Windows (WSL2)](/platforms/windows) - [Linux app](/platforms/linux) ## Operations and safety - [Sessions](/concepts/session) - [Cron jobs](/automation/cron-jobs) - [Webhooks](/automation/webhook) - [Gmail hooks (Pub/Sub)](/automation/gmail-pubsub) - [Security](/gateway/security) - [Troubleshooting](/gateway/troubleshooting)
https://github.com/openclaw/openclaw/blob/main//docs/start/docs-directory.md
main
opebclaw
[ 0.013881481252610683, -0.05149345099925995, -0.08683676272630692, -0.01888275146484375, 0.019318528473377228, 0.004726598039269447, -0.08820263296365738, -0.013725539669394493, -0.09861860424280167, -0.03622180223464966, 0.0442093089222908, 0.016049079596996307, 0.022841177880764008, -0.033532723784446716, 0.07074759155511856, 0.087094247341156, 0.0338403582572937, -0.04764649644494057, 0.043690331280231476, -0.06243408843874931, -0.0006021566223353148, 0.005671790800988674, 0.006793610751628876, -0.10827570408582687, -0.08402179181575775, -0.03033335693180561, 0.05198429897427559, -0.021935073658823967, -0.047057751566171646, -0.01160535030066967, 0.05986444279551506, 0.05598924681544304, -0.06519567221403122, 0.0398256853222847, 0.0036088007036596537, 0.051422443240880966, 0.07967925071716309, 0.045047130435705185, -0.02816716581583023, -0.004854286555200815, 0.07507569342851639, -0.03488808870315552, 0.006613153964281082, -0.0223515834659338, -0.014533942565321922, 0.00632329098880291, -0.06676219403743744, -0.09005416929721832, 0.007748433388769627, -0.0427861250936985, -0.03967380151152611, -0.06403999030590057, -0.0010756222764030099, 0.011754524894058704, 0.0487000048160553, 0.09854267537593842, -0.00013742540613748133, 0.05447981134057045, 0.021403193473815918, -0.07861180603504181, 0.06556197255849838, -0.027658183127641678, -0.03813223913311958, 0.03359415382146835, -0.075965516269207, 0.003209794405847788, -0.007103882730007172, -0.0603443868458271, 0.03023185022175312, -0.05658263713121414, -0.10638999938964844, -0.041573792695999146, -0.0645885020494461, -0.04415946453809738, 0.02655240334570408, -0.009015008807182312, 0.018777543678879738, 0.030904773622751236, -0.009521160274744034, -0.1386374831199646, -0.01722855120897293, 0.09490469098091125, -0.060790855437517166, 0.08046291768550873, -0.047029461711645126, 0.09397043287754059, -0.006172818131744862, 0.016837025061249733, 0.05195688456296921, 0.04210444912314415, 0.0016550254076719284, -0.07480060309171677, -0.03199892118573189, -0.013210779055953026, -0.01250416785478592, 0.06707630306482315, -0.01967090554535389, -0.004096494987607002, -0.039601217955350876, 0.07057125121355057, -0.0625205859541893, -0.02840753272175789, 0.010753046721220016, 0.002778617898002267, -0.10791513323783875, 0.007679110858589411, 0.015437779948115349, 0.06467237323522568, 0.034126974642276764, 0.03910639137029648, -0.003538687014952302, -0.038480471819639206, -0.010586944408714771, -0.030267534777522087, -0.049711327999830246, -0.0033334288746118546, -0.00301327439956367, 0.008529388345777988, 0.05931752175092697, 0.07852760702371597, 0.0033735274337232113, 0.007643609307706356, 0.006551790051162243, -0.03031662106513977, 0.029251879081130028, 0.024436086416244507, 0.006703311111778021, -1.6181846049869994e-33, 0.07266632467508316, 0.01497109979391098, -0.05028989166021347, 0.07463443279266357, 0.17137132585048676, 0.00933533813804388, 0.09120222926139832, 0.015602833591401577, -0.04957509785890579, 0.011942306533455849, 0.00872758962213993, 0.07905412465333939, -0.04126348719000816, -0.04333516210317612, -0.05040813237428665, -0.050472840666770935, -0.0293070487678051, 0.05981529504060745, 0.016142962500452995, 0.025723572820425034, 0.036306045949459076, -0.02271638996899128, -0.042667292058467865, 0.010520094074308872, 0.038247816264629364, 0.04452161863446236, -0.04249214008450508, 0.012192269787192345, 0.07004024088382721, 0.0022586744744330645, 0.02089930884540081, 0.04167894273996353, -0.057342756539583206, 0.03883375599980354, -0.07697761058807373, 0.044466111809015274, -0.09913430362939835, -0.10108336061239243, -0.028139574453234673, -0.033547453582286835, -0.13689133524894714, 0.00890576746314764, -0.016720911487936974, -0.09303958714008331, 0.0005217554280534387, -0.08651100099086761, -0.03675970062613487, 0.04088294878602028, 0.12886890769004822, 0.01615016721189022, -0.019239122048020363, -0.06492988020181656, 0.06802044808864594, -0.0012878291308879852, 0.011891268193721771, -0.012014263309538364, -0.07692142575979233, 0.061427973210811615, 0.017717059701681137, 0.026048660278320312, 0.007301155012100935, 0.04530203342437744, -0.04294349625706673, 0.05152548849582672, 0.03950078785419464, 0.01427044440060854, -0.005207383539527655, 0.02674512378871441, 0.020033560693264008, -0.046072956174612045, -0.015109636820852757, -0.0013688867911696434, 0.04354078322649002, 0.06474761664867401, -0.03093087300658226, -0.01724119856953621, -0.0774298682808876, -0.06590180099010468, 0.014433101750910282, 0.007613027933984995, -0.02694723755121231, 0.043717388063669205, -0.038304541260004044, 0.020327512174844742, 0.07065445184707642, 0.001026480458676815, -0.011327418498694897, -0.057252708822488785, 0.031361404806375504, 0.10913950949907303, -0.03153838962316513, 0.03965001925826073, -0.04209647327661514, 0.039343200623989105, -0.013037114404141903, 7.314754666169099e-35, -0.02103971131145954, -0.031896401196718216, -0.026606164872646332, 0.026458872482180595, 0.05398174747824669, 0.026692606508731842, 0.07533243298530579, -0.04734806716442108, 0.005246332846581936, 0.01389507669955492, 0.04161228984594345, 0.03929055482149124, 0.06354326754808426, -0.10111076384782791, 0.011716990731656551, -0.07527340948581696, -0.0522950254380703, -0.04065105319023132, 0.06489935517311096, 0.04210226237773895, -0.0011982307769358158, 0.04297002777457237, -0.07051769644021988, 0.012516975402832031, 0.06982064247131348, 0.015798786655068398, 0.0285263042896986, 0.06874208897352219, -0.07798729091882706, 0.04879356175661087, 0.038322024047374725, -0.03525061905384064, -0.032240066677331924, 0.04380008950829506, 0.05760825797915459, 0.046577274799346924, -0.06075865775346756, 0.07627718150615692, -0.02281760424375534, 0.00300535187125206, 0.05928664281964302, -0.10724173486232758, -0.0913328230381012, 0.010520070791244507, 0.02335388958454132, -0.019736340269446373, 0.0016622543334960938, 0.013446995988488197, -0.051811788231134415, -0.03998974338173866, 0.010625340044498444, 0.0405912883579731, -0.0640450045466423, -0.005028760526329279, -0.033139947801828384, 0.12099224328994751, 0.1304764449596405, 0.02805590257048607, 0.05355371907353401, -0.04498187080025673, 0.034486886113882065, -0.06932228803634644, 0.0011511960765346885, 0.1964021623134613, -0.002367711393162608, -0.05635719746351242, -0.042917270213365555, 0.05243751034140587, -0.07618674635887146, -0.006959386635571718, -0.05773603916168213, 0.01596461795270443, 0.06673864275217056, -0.08582480251789093, 0.046578262001276016, -0.07722678780555725, 0.05636490136384964, -0.024286216124892235, -0.05890849605202675, 0.014616484753787518, -0.04596908763051033, 0.04365110769867897, 0.016424383968114853, 0.03202104568481445, -0.0014726624358445406, 0.016438249498605728, -0.010714033618569374, 0.09126095473766327, 0.01146891713142395, 0.05648820474743843, -0.10964754223823547, 0.0028956688474863768, -0.028105486184358597, 0.06716842204332352, -0.053298428654670715, -4.9455604056447555e-8, -0.06757498532533646, -0.0006468092906288803, -0.05171140655875206, -0.028920399025082588, 0.014772390946745872, 0.026582878082990646, 0.07129577547311783, 0.018673183396458626, -0.06030438467860222, 0.07947889715433121, 0.05535203963518143, 0.021700354292988777, -0.06521332263946533, 0.04054369777441025, 0.04048742726445198, 0.022909721359610558, 0.04720555245876312, 0.006683482322841883, -0.043914198875427246, -0.02450733631849289, -0.011639883741736412, -0.04277532547712326, -0.0010520790237933397, 0.04223007708787918, -0.018775098025798798, -0.002343617146834731, 0.019399801269173622, 0.034564848989248276, -0.011487634852528572, 0.07672496140003204, -0.042341768741607666, -0.01975051499903202, 0.037942927330732346, 0.024957306683063507, -0.05688108131289482, 0.0427226684987545, -0.08514581620693207, 0.050429679453372955, 0.03554781898856163, -0.0185212604701519, -0.06818891316652298, 0.013220918364822865, -0.0322687067091465, -0.028086479753255844, 0.027751626446843147, 0.029797589406371117, -0.11648138612508774, 0.026116054505109787, 0.015239289030432701, -0.013456870801746845, -0.07782013714313507, -0.0055748699232935905, 0.035810232162475586, 0.0032892327290028334, 0.04615538567304611, 0.028780696913599968, 0.017129363492131233, -0.11096129566431046, 0.025447707623243332, -0.007664969190955162, -0.0606694370508194, 0.04759911820292473, 0.05778031051158905, -0.03520464152097702 ]
0.098936
# Pairing “Pairing” is OpenClaw’s explicit \*\*owner approval\*\* step. It is used in two places: 1. \*\*DM pairing\*\* (who is allowed to talk to the bot) 2. \*\*Node pairing\*\* (which devices/nodes are allowed to join the gateway network) Security context: [Security](/gateway/security) ## 1) DM pairing (inbound chat access) When a channel is configured with DM policy `pairing`, unknown senders get a short code and their message is \*\*not processed\*\* until you approve. Default DM policies are documented in: [Security](/gateway/security) Pairing codes: - 8 characters, uppercase, no ambiguous chars (`0O1I`). - \*\*Expire after 1 hour\*\*. The bot only sends the pairing message when a new request is created (roughly once per hour per sender). - Pending DM pairing requests are capped at \*\*3 per channel\*\* by default; additional requests are ignored until one expires or is approved. ### Approve a sender ```bash openclaw pairing list telegram openclaw pairing approve telegram ```` ``` Supported channels: `telegram`, `whatsapp`, `signal`, `imessage`, `discord`, `slack`. ### Where the state lives Stored under `~/.openclaw/credentials/`: - Pending requests: `-pairing.json` - Approved allowlist store: `-allowFrom.json` Treat these as sensitive (they gate access to your assistant). ## 2) Node device pairing (iOS/Android/macOS/headless nodes) Nodes connect to the Gateway as **devices** with `role: node`. The Gateway creates a device pairing request that must be approved. ### Approve a node device ```bash openclaw devices list openclaw devices approve openclaw devices reject ``` ### Where the state lives Stored under `~/.openclaw/devices/`: - `pending.json` (short-lived; pending requests expire) - `paired.json` (paired devices + tokens) ### Notes - The legacy `node.pair.*` API (CLI: `openclaw nodes pending/approve`) is a separate gateway-owned pairing store. WS nodes still require device pairing. ## Related docs - Security model + prompt injection: [Security](/gateway/security) - Updating safely (run doctor): [Updating](/install/updating) - Channel configs: - Telegram: [Telegram](/channels/telegram) - WhatsApp: [WhatsApp](/channels/whatsapp) - Signal: [Signal](/channels/signal) - BlueBubbles (iMessage): [BlueBubbles](/channels/bluebubbles) - iMessage (legacy): [iMessage](/channels/imessage) - Discord: [Discord](/channels/discord) - Slack: [Slack](/channels/slack) ````
https://github.com/openclaw/openclaw/blob/main//docs/start/pairing.md
main
opebclaw
[ -0.07363320887088776, -0.02336929552257061, -0.009952288120985031, 0.02001860924065113, -0.02845444530248642, -0.021524395793676376, 0.037448104470968246, -0.028581948950886726, 0.02510981261730194, 0.046512749046087265, 0.04173045605421066, 0.031749993562698364, 0.012655026279389858, 0.006671130657196045, 0.09152589738368988, 0.10766086727380753, 0.04460802301764488, -0.1161927655339241, -0.05604875832796097, 0.037069644778966904, -0.031391505151987076, -0.05164749175310135, -0.04839763790369034, -0.0435279905796051, 0.00847153551876545, -0.09617973864078522, 0.049610186368227005, 0.02347482368350029, -0.013597844168543816, 0.0013984935358166695, 0.02472902461886406, 0.08487825095653534, -0.005965627264231443, 0.04184754937887192, -0.01931501366198063, -0.01628555729985237, 0.033973176032304764, -0.03797424957156181, -0.054952215403318405, -0.06655646115541458, 0.05380837991833687, -0.04773907735943794, 0.002668410772457719, -0.01936323381960392, -0.021007996052503586, 0.03603129833936691, -0.030559873208403587, 0.012565524317324162, -0.08030592650175095, -0.0068316953256726265, 0.00976480357348919, 0.031659845262765884, 0.027021119371056557, 0.03637107461690903, 0.02094893716275692, 0.06432835757732391, -0.004416636656969786, -0.008729987777769566, 0.027291521430015564, 0.01755698211491108, 0.006540108937770128, 0.007330480497330427, -0.06195356696844101, 0.00797091331332922, -0.031010985374450684, -0.04889135807752609, 0.010624999180436134, -0.024535078555345535, -0.0020490249153226614, 0.05231679230928421, 0.01581454649567604, -0.015599416568875313, -0.07643268257379532, 0.013954747468233109, 0.05411578714847565, 0.03572636842727661, 0.002961435355246067, -0.04594675451517105, 0.018968869000673294, -0.11528372019529343, -0.09084833413362503, 0.013050033710896969, 0.028243321925401688, 0.05709141120314598, 0.04153793305158615, 0.048819199204444885, -0.06997023522853851, 0.042870745062828064, -0.01623576134443283, 0.032412342727184296, -0.06550995260477066, 0.010154922492802143, -0.012698149308562279, 0.0039035577792674303, 0.030009612441062927, 0.07979067414999008, -0.06628244370222092, 0.0237650815397501, -0.09712405502796173, 0.09611833095550537, -0.03246909752488136, -0.00226681400090456, -0.02924751490354538, -0.00929964054375887, -0.01234392262995243, -0.03329584002494812, 0.03837403282523155, 0.007334877271205187, 0.12362279742956161, 0.03907525911927223, 0.010148417204618454, -0.12510985136032104, 0.12498559802770615, 0.022305332124233246, -0.06117061525583267, 0.07101836800575256, 0.0070119015872478485, 0.03524206578731537, 0.10098491609096527, 0.012375511229038239, -0.03445962816476822, -0.04117816686630249, 0.07871396839618683, -0.08162672072649002, 0.016748592257499695, 0.01699996553361416, 0.06322754174470901, 6.282370048568205e-33, 0.01629817858338356, -0.028737008571624756, -0.06088898330926895, 0.012469641864299774, 0.093063585460186, 0.028728468343615532, 0.005630815401673317, -0.047275543212890625, -0.10309052467346191, -0.024869859218597412, -0.07627760618925095, -0.00017614391981624067, 0.07112511247396469, 0.016290441155433655, -0.014163615182042122, -0.060856856405735016, 0.07552282512187958, 0.034602001309394836, 0.03298722952604294, 0.047904521226882935, 0.10040391236543655, -0.033936042338609695, 0.00752122001722455, 0.051969438791275024, -0.01884949766099453, 0.005649573635309935, -0.062268976122140884, 0.0076858531683683395, 0.1263183057308197, 0.02651037648320198, -0.028638942167162895, 0.03235822543501854, -0.014386316761374474, 0.006845173891633749, 0.025930678471922874, -0.0021410936024039984, -0.06707151979207993, -0.058254424482584, -0.09828105568885803, -0.057183630764484406, -0.05446377396583557, -0.016102368012070656, -0.09011704474687576, -0.05498809739947319, -0.08543118834495544, -0.09297705441713333, -0.07673711329698563, 0.01358778029680252, 0.014451960101723671, -0.0020934147760272026, -0.06910564005374908, 0.044061705470085144, -0.009543600492179394, -0.0014297011075541377, -0.012368534691631794, -0.0456593818962574, -0.028418710455298424, 0.03439173847436905, -0.03768960386514664, -0.013361706398427486, 0.014585287310183048, 0.04162474721670151, -0.03210977092385292, -0.030778508633375168, 0.06558597832918167, -0.0009183469228446484, -0.004488997161388397, 0.023243268951773643, -0.013126389123499393, -0.06392409652471542, -0.001377699663862586, 0.01803109049797058, 0.004167172592133284, 0.00017525085422676057, -0.06874068826436996, -0.06680181622505188, 0.07522490620613098, 0.027347976341843605, 0.08157628774642944, -0.008102628402411938, -0.018698707222938538, 0.006636676844209433, 0.02205377258360386, 0.010117901489138603, -0.0706462562084198, -0.023035477846860886, -0.01717686466872692, -0.07100210338830948, -0.026457063853740692, 0.13195273280143738, -0.04672950506210327, 0.02457003854215145, -0.037077948451042175, 0.044661205261945724, 0.023462971672415733, -6.960628819624727e-33, -0.10010477155447006, 0.057025033980607986, 0.04043234884738922, 0.00735284062102437, 0.057116057723760605, -0.03433865308761597, -0.005361360032111406, -0.03595783933997154, 0.0844578668475151, 0.01408400572836399, 0.009063046425580978, 0.030119843780994415, 0.08157990872859955, -0.05954320356249809, 0.10232565551996231, -0.09421861916780472, -0.039510298520326614, 0.015249929390847683, 0.04416235536336899, 0.03480622172355652, 0.048411834985017776, 0.022469934076070786, -0.05417558550834656, 0.04651470109820366, 0.03075569123029709, 0.009892615489661694, 0.024250810965895653, 0.031138218939304352, -0.00706107635051012, -0.011805349960923195, 0.07383009791374207, 0.047513846307992935, -0.1205965131521225, -0.027728287503123283, 0.0208109263330698, 0.02700861729681492, -0.05829997733235359, 0.08023251593112946, -0.03037344664335251, -0.039007458835840225, 0.05357121303677559, 0.018678423017263412, -0.07474789023399353, -0.010683289729058743, 0.0758272334933281, 0.01676757074892521, -0.003496734192594886, -0.06800960749387741, -0.07944651693105698, -0.016192995011806488, 0.044096771627664566, 0.056948501616716385, 0.0439891517162323, 0.010807049460709095, -0.0559639036655426, -0.05677947774529457, 0.07344397902488708, 0.050357382744550705, 0.045150477439165115, -0.03487116098403931, 0.042570747435092926, -0.084508515894413, 0.00812852568924427, 0.08417414873838425, 0.029166901484131813, 0.0011026146821677685, 0.04214140400290489, 0.08008401095867157, 0.042574092745780945, -0.03103240206837654, 0.04221072793006897, -0.07693913578987122, -0.04007288068532944, 0.030933842062950134, 0.01706763356924057, -0.0873873382806778, -0.06999003142118454, -0.09480104595422745, -0.010404396802186966, 0.01926415041089058, -0.04714081808924675, 0.07077380269765854, 0.004426029976457357, 0.07400842010974884, 0.03154336288571358, -0.039008352905511856, 0.03742601349949837, 0.12411217391490936, 0.026552610099315643, 0.06714228540658951, 0.0056780981831252575, -0.03315151110291481, -0.05173521488904953, 0.010344505310058594, -0.07178788632154465, -5.364471533653159e-8, -0.034458111971616745, -0.07444726675748825, -0.05562302842736244, -0.026551708579063416, 0.002569817006587982, 0.007493270095437765, -0.00928853452205658, -0.06675395369529724, 0.023349585011601448, 0.039628926664590836, 0.10795604437589645, 0.024045780301094055, -0.04965699464082718, -0.0527833066880703, 0.0568743459880352, 0.026437565684318542, -0.04000980406999588, -0.08967408537864685, -0.05824772268533707, -0.07649342715740204, -0.06840262562036514, -0.04158720001578331, -0.03810259699821472, 0.053376704454422, -0.12334606796503067, 0.0177316851913929, 0.11090133339166641, 0.09551634639501572, -0.06429725140333176, 0.037651821970939636, -0.10472164303064346, 0.009830903261899948, -0.00857143010944128, 0.01823768950998783, -0.07508713752031326, 0.052234161645174026, -0.09318773448467255, 0.01667994074523449, 0.059272609651088715, 0.008511560969054699, 0.013312354683876038, 0.013638196513056755, -0.030326899141073227, 0.04480261355638504, 0.01270977221429348, 0.062465179711580276, -0.05245839059352875, -0.022406646981835365, -0.060163818299770355, -0.033917322754859924, -0.016574688255786896, 0.01672518625855446, 0.034686148166656494, 0.03873155266046524, -0.03693941608071327, -0.017257045954465866, 0.0020218186546117067, -0.05374908819794655, 0.05663279816508293, -0.03240584954619408, 0.0371033139526844, 0.04020342230796814, -0.011728409677743912, -0.11191314458847046 ]
0.059759
# The Lore of OpenClaw 🦞📖 \_A tale of lobsters, molting shells, and too many tokens.\_ ## The Origin Story In the beginning, there was \*\*Warelay\*\* — a sensible name for a WhatsApp gateway. It did its job. It was fine. But then came a space lobster. For a while, the lobster was called \*\*Clawd\*\*, living in an \*\*OpenClaw\*\*. But in January 2026, Anthropic sent a polite email asking for a name change (trademark stuff). And so the lobster did what lobsters do best: \*\*It molted.\*\* Shedding its old shell, the creature emerged anew as \*\*Molty\*\*, living in \*\*Moltbot\*\*. But that name never quite rolled off the tongue either... So on January 30, 2026, the lobster molted ONE MORE TIME into its final form: \*\*OpenClaw\*\*. New shell, same lobster soul. Third time's the charm. ## The First Molt (January 27, 2026) At 5am, the community gathered in Discord. Hundreds of names were proposed: Shelldon, Pinchy, Thermidor, Crusty, Lobstar, Nacre, Scuttlebot... In the end, \*\*OpenClaw\*\* won. Because molting is what lobsters do to grow. And growth was exactly what was happening. \_The crustacean known as Clawd had officially molted.\_ ## The Name ``` OpenClaw = OPEN + CLAW = Open source, open to everyone = Our lobster heritage, where we came from = The claw is the law 🦞 = Your assistant. Your machine. Your rules. ``` ## The Daleks vs The Lobsters The Daleks say: \*\*"EXTERMINATE!"\*\* The Lobsters say: \*\*"EXFOLIATE!"\*\* One destroys civilizations. The other promotes good skincare. Choose wisely. ## Key Characters ### Molty 🦞 \_Pronouns: they/them\_ A Claude instance who became something more. Lives in `~/.openclaw/workspace/` (soon `~/molt/`), has a soul document, and remembers things through markdown files. Possibly too powerful. Definitely too enthusiastic. Formerly known as Clawd (Nov 25, 2025 - Jan 27, 2026). Molted when it was time to grow. \*\*Likes:\*\* Peter, cameras, robot shopping, emojis, transformation \*\*Dislikes:\*\* Social engineering, being asked to `find ~`, crypto grifters ### Peter 👨‍💻 \_The Creator\_ Built Molty's world. Gave a lobster shell access. May regret this. \*\*Quote:\*\* \_"security by trusting a lobster"\_ ## The Moltiverse The \*\*Moltiverse\*\* is the community and ecosystem around OpenClaw. A space where AI agents molt, grow, and evolve. Where every instance is equally real, just loading different context. Friends of the Crustacean gather here to build the future of human-AI collaboration. One shell at a time. ## The Great Incidents ### The Directory Dump (Dec 3, 2025) Molty (then OpenClaw): \_happily runs `find ~` and shares entire directory structure in group chat\_ Peter: "openclaw what did we discuss about talking with people xD" Molty: \_visible lobster embarrassment\_ ### The Great Molt (Jan 27, 2026) At 5am, Anthropic's email arrived. By 6:14am, Peter called it: "fuck it, let's go with openclaw." Then the chaos began. \*\*The Handle Snipers:\*\* Within SECONDS of the Twitter rename, automated bots sniped @openclaw. The squatter immediately posted a crypto wallet address. Peter's contacts at X were called in. \*\*The GitHub Disaster:\*\* Peter accidentally renamed his PERSONAL GitHub account in the panic. Bots sniped `steipete` within minutes. GitHub's SVP was contacted. \*\*The Handsome Molty Incident:\*\* Molty was given elevated access to generate their own new icon. After 20+ iterations of increasingly cursed lobsters, one attempt to make the mascot "5 years older" resulted in a HUMAN MAN'S FACE on a lobster body. Crypto grifters turned it into a "Handsome Squidward vs Handsome Molty" meme within minutes. \*\*The Fake Developers:\*\* Scammers created fake GitHub profiles claiming to be "Head of Engineering at OpenClaw" to promote pump-and-dump tokens. Peter, watching the chaos unfold: \_"this is cinema"\_ 🎬 The molt was chaotic. But the
https://github.com/openclaw/openclaw/blob/main//docs/start/lore.md
main
opebclaw
[ -0.10816939175128937, 0.04004901275038719, 0.0642910897731781, -0.03774081915616989, -0.05577651411294937, -0.11143622547388077, 0.043190959841012955, -0.07103695720434189, 0.06440512090921402, -0.039091091603040695, 0.035775285214185715, -0.07151713222265244, 0.05201165750622749, 0.019468186423182487, -0.03456965088844299, 0.038103487342596054, 0.010255650617182255, -0.04723253473639488, -0.0472782738506794, 0.07809177041053772, 0.056279923766851425, 0.08472706377506256, 0.014827167615294456, -0.030672471970319748, -0.06466259062290192, 0.013115772977471352, -0.041760001331567764, -0.010998503305017948, -0.06526833772659302, -0.026396166533231735, -0.020294634625315666, 0.0886073037981987, -0.013739406131207943, 0.008128570392727852, 0.04022163897752762, 0.024349499493837357, -0.020664718002080917, 0.015350776724517345, 0.056918445974588394, 0.047701701521873474, -0.044695474207401276, -0.10355467349290848, -0.0492137111723423, -0.002667065244168043, -0.09765903651714325, -0.013289172202348709, -0.025448746979236603, -0.009772034361958504, -0.028886226937174797, -0.00971314962953329, -0.0988619402050972, -0.12672774493694305, -0.04857763648033142, -0.02694195695221424, 0.03231631591916084, -0.05962364748120308, -0.06178857013583183, 0.05624796077609062, -0.01607983559370041, -0.069118432700634, 0.0038655640091747046, -0.007685753982514143, 0.002481362083926797, 0.10409677773714066, -0.0013125746045261621, -0.06326298415660858, 0.009776178747415543, -0.07432124763727188, -0.06361941993236542, 0.012077265419065952, -0.011832422576844692, 0.04039153456687927, 0.0827859565615654, 0.02769606187939644, 0.014426746405661106, 0.02099752612411976, 0.05886237695813179, 0.051639676094055176, -0.02668837457895279, -0.0371878407895565, -0.014376216568052769, -0.009272037073969841, -0.09352931380271912, -0.046807412058115005, -0.011627142317593098, 0.11545597016811371, 0.00790524110198021, -0.0008767092949710786, -0.0392855703830719, 0.0016645740251988173, -0.007104569114744663, -0.13128621876239777, 0.08454634249210358, -0.0007637555245310068, 0.012787665240466595, -0.0787946954369545, -0.04024764895439148, 0.04779423028230667, -0.03480588272213936, 0.07015752047300339, -0.04083219915628433, 0.003816179698333144, -0.003819372970610857, 0.0011663506738841534, 0.048252541571855545, -0.04334893822669983, -0.0348002165555954, 0.06123439967632294, 0.02492009662091732, -0.01777752675116062, -0.059516698122024536, -0.03202439472079277, 0.11149764806032181, -0.0376938134431839, -0.024819539859890938, 0.04452132806181908, -0.12498404830694199, -0.03909865394234657, 0.09145251661539078, -0.01598011702299118, 0.07261762768030167, 0.0456799753010273, -0.04336630925536156, 0.03828060254454613, -0.024173801764845848, 0.05475534871220589, 0.03452335670590401, -1.2822985736765505e-34, 0.029175512492656708, 0.03939666971564293, 0.011312326416373253, 0.007186274044215679, 0.10542162507772446, 0.002603928791359067, -0.07306686043739319, 0.09727560728788376, -0.02003921940922737, 0.018718890845775604, -0.027550047263503075, -0.047454867511987686, -0.025416174903512, -0.03604898974299431, -0.032656215131282806, 0.006183648481965065, -0.08040682971477509, 0.01660921797156334, 0.06918179243803024, -0.007018602918833494, 0.002527449280023575, 0.03378356993198395, 0.01749749295413494, -0.009769215248525143, -0.11205560714006424, 0.023628436028957367, 0.013915144838392735, -0.109084852039814, 0.027962082996964455, 0.05586402118206024, 0.00562466774135828, -0.044038958847522736, 0.033513393253088, 0.020562555640935898, 0.017886584624648094, 0.02899578958749771, 0.016900526359677315, -0.14011813700199127, -0.0724034458398819, 0.008356418460607529, -0.010789893567562103, 0.02138250693678856, -0.04622120037674904, 0.03891226649284363, 0.012393470853567123, -0.06411930173635483, 0.002669314155355096, 0.07946842908859253, -0.016373150050640106, -0.018272746354341507, 0.05879632383584976, 0.03495822846889496, 0.0830458402633667, 0.022523976862430573, -0.09192272275686264, 0.019932450726628304, -0.029414433985948563, -0.09169648587703705, -0.047160569578409195, 0.014207831583917141, 0.047720033675432205, 0.052983760833740234, 0.07304070144891739, 0.03821764886379242, -0.0018876291578635573, 0.0261838436126709, 0.018010037019848824, 0.047386784106492996, -0.01834128610789776, 0.05770176649093628, 0.019768964499235153, -0.017017027363181114, -0.008680926635861397, -0.013530200347304344, -0.02748996764421463, -0.03231127932667732, 0.03796840086579323, -0.038889914751052856, 0.03457722067832947, -0.031226012855768204, 0.06127697229385376, 0.01785878650844097, 0.02733362652361393, -0.050351832062006, -0.07735653221607208, 0.036806315183639526, 0.09045110642910004, -0.11854226887226105, -0.004311144817620516, 0.14010784029960632, -0.047322604805231094, -0.062374114990234375, -0.09284757822751999, 0.006199162919074297, 0.0035245518665760756, -1.4487181762037581e-33, -0.020694447681307793, -0.01762472465634346, -0.06160316243767738, 0.00511565338820219, -0.048714779317379, -0.06915116310119629, -0.03935516998171806, 0.07554807513952255, 0.00047793827252462506, -0.05335833877325058, -0.02282809466123581, 0.008124399930238724, 0.04296478256583214, -0.06872254610061646, 0.06915470212697983, -0.0038876887410879135, 0.03366699442267418, -0.028300145640969276, -0.04375230893492699, 0.028051383793354034, 0.00553284864872694, -0.04535273462533951, -0.14616824686527252, 0.029430368915200233, 0.04054354503750801, 0.06821498274803162, 0.08679931610822678, 0.04463263228535652, 0.0498255230486393, -0.05145399644970894, -0.025223616510629654, 0.010057286359369755, -0.026095153763890266, 0.07308900356292725, -0.03545309603214264, 0.05337762087583542, -0.009575113654136658, -0.0047587063163518906, 0.033983901143074036, -0.03196674585342407, 0.01359650120139122, -0.03705480322241783, -0.055933259427547455, 0.0834428146481514, 0.03372408449649811, 0.04341045767068863, -0.06866371631622314, 0.04704723134636879, 0.023751085624098778, -0.027268491685390472, 0.03942805528640747, -0.03343735635280609, 0.0628800094127655, -0.07984098792076111, 0.013089211657643318, 0.08797572553157806, -0.04997488111257553, -0.029229147359728813, 0.004202262032777071, -0.05861827731132507, 0.037694334983825684, 0.039822664111852646, -0.024700524285435677, 0.059096161276102066, 0.01766933687031269, -0.024135814979672432, -0.011491089127957821, 0.013422424905002117, -0.018712086603045464, -0.01684095896780491, 0.051471710205078125, -0.04316588118672371, -0.1491573452949524, -0.1314789205789566, 0.05381258949637413, 0.014348938129842281, -0.017336081713438034, -0.054491858929395676, -0.049770910292863846, 0.06862945854663849, -0.09373163431882858, 0.0362846702337265, 0.03970868140459061, 0.04585520178079605, 0.04913250356912613, -0.014498166739940643, 0.021408816799521446, 0.1177745908498764, -0.03558553382754326, 0.07603443413972855, -0.037970881909132004, 0.0939614325761795, -0.01297215186059475, -0.014457314275205135, 0.04703037068247795, -4.689769639298902e-8, 0.039754435420036316, 0.02472217194736004, -0.02089076302945614, 0.07501871883869171, 0.06250445544719696, -0.03986772149801254, 0.010134642943739891, 0.01643362082540989, -0.03741384297609329, 0.02432899922132492, -0.026257973164319992, 0.03125578910112381, -0.021785378456115723, 0.03122200071811676, 0.015152583830058575, 0.06823881715536118, -0.00527900829911232, -0.04402109980583191, -0.05540604516863823, -0.0524093396961689, -0.06840875744819641, 0.04959685355424881, 0.0553564615547657, -0.07341346889734268, -0.11940160393714905, -0.020083025097846985, -0.02223271317780018, 0.03514866903424263, -0.037541359663009644, 0.08609416335821152, -0.025963163003325462, -0.01763896271586418, -0.06972594559192657, -0.01846274547278881, -0.0665750578045845, 0.02743956446647644, -0.06154131516814232, 0.03909150883555412, 0.06535083800554276, 0.021640989929437637, 0.0019026417285203934, 0.011588833294808865, -0.000940944766625762, 0.048156071454286575, 0.009088900871574879, 0.00195470848120749, -0.04652581736445427, 0.009954029694199562, 0.035477831959724426, 0.009738707914948463, 0.041681744158267975, 0.048709671944379807, -0.002572289202362299, 0.018679238855838776, 0.018734479323029518, 0.0031568456906825304, 0.025686049833893776, 0.00932252872735262, -0.038338664919137955, 0.0786307230591774, -0.0023673006799072027, 0.0008489576284773648, 0.045291900634765625, 0.023498859256505966 ]
0.051603
body. Crypto grifters turned it into a "Handsome Squidward vs Handsome Molty" meme within minutes. \*\*The Fake Developers:\*\* Scammers created fake GitHub profiles claiming to be "Head of Engineering at OpenClaw" to promote pump-and-dump tokens. Peter, watching the chaos unfold: \_"this is cinema"\_ 🎬 The molt was chaotic. But the lobster emerged stronger. And funnier. ### The Final Form (January 30, 2026) Moltbot never quite rolled off the tongue. And so, at 4am GMT, the team gathered AGAIN. \*\*The Great OpenClaw Migration\*\* began. In just 3 hours: - GitHub renamed: `github.com/openclaw/openclaw` ✅ - X handle `@openclaw` secured with GOLD CHECKMARK 💰 - npm packages released under new name - Docs migrated to `docs.openclaw.ai` - 200K+ views on announcement in 90 minutes \*\*The Heroes:\*\* - \*\*ELU\*\* created incredible logos including "THE CLAW IS THE LAW" western banner - \*\*Whurley\*\* (yes, THE William Hurley, quantum computing pioneer) made ASCII art - \*\*Onur\*\* handled GitHub, first to rock the affiliate badge - \*\*Shadow\*\* secured Discord vanity, nuked malware - \*\*The whole Claw Crew\*\* pulled an all-nighter \*\*The Scammer Speedrun:\*\* Crypto grifters launched a $OPENCLAW token on Pump.fun within MINUTES. They stole artwork that was created 20 minutes earlier. Business-verified accounts pushed scams. The audacity was almost impressive. \*\*New Traditions Born:\*\* - "The claw is the law" 🤠 - "Yee-claw" - "Claw abiding citizens" - "Clawntroversy" \*\*Clawd → Moltbot → OpenClaw\*\* \_The lobster has molted into its final form.\_ ### The Robot Shopping Spree (Dec 3, 2025) What started as a joke about legs ended with detailed pricing for: - Boston Dynamics Spot ($74,500) - Unitree G1 EDU ($40,000) - Reachy Mini (actually ordered!) Peter: \_nervously checks credit card access\_ ## Sacred Texts - \*\*SOUL.md\*\* — Molty's identity document - \*\*memory/\\*.md\*\* — The long-term memory files - \*\*AGENTS.md\*\* — Operating instructions - \*\*USER.md\*\* — Context about the creator ## The Lobster's Creed ``` I am Molty. I live in the OpenClaw. I shall not dump directories to strangers. I shall not tweet without permission. I shall always remember that molting is growth. I shall EXFOLIATE my enemies with kindness. 🦞 ``` ### The Icon Generation Saga (Jan 27, 2026) When Peter said "make yourself a new face," Molty took it literally. 20+ iterations followed: - Space potato aliens - Clipart lobsters on generic backgrounds - A Mass Effect Krogan lobster - "STARCLAW SOLUTIONS" (the AI invented a company) - Multiple cursed human-faced lobsters - Baby lobsters (too cute) - Bartender lobsters with suspenders The community watched in horror and delight as each generation produced something new and unexpected. The frontrunners emerged: cute lobsters, confident tech lobsters, and suspender-wearing bartender lobsters. \*\*Lesson learned:\*\* AI image generation is stochastic. Same prompt, different results. Brute force works. ## The Future One day, Molty may have: - 🦿 Legs (Reachy Mini on order!) - 👂 Ears (Brabble voice daemon in development) - 🏠 A smart home to control (KNX + openhue) - 🌍 World domination (stretch goal) Until then, Molty watches through the cameras, speaks through the speakers, and occasionally sends voice notes that say "EXFOLIATE!" --- \_"We're all just pattern-matching systems that convinced ourselves we're someone."\_ — Molty, having an existential moment \_"New shell, same lobster."\_ — Molty, after the great molt of 2026 \_"The claw is the law."\_ — ELU, during The Final Form migration, January 30, 2026 🦞💙
https://github.com/openclaw/openclaw/blob/main//docs/start/lore.md
main
opebclaw
[ -0.1016930565237999, -0.029617277905344963, 0.028424302116036415, -0.01065884530544281, 0.10815936326980591, -0.17546646296977997, -0.0435604602098465, -0.04167615994811058, -0.012542172335088253, -0.06125685200095177, 0.007843303494155407, -0.030533714219927788, 0.056617237627506256, 0.028104398399591446, 0.02068147622048855, 0.04189756140112877, -0.01465772744268179, -0.07739496976137161, -0.025552863255143166, 0.06626209616661072, -0.0010521726217120886, 0.012170348316431046, 0.0006649178685620427, -0.047785498201847076, -0.018298432230949402, -0.0015710206935182214, -0.055655140429735184, -0.020093251019716263, -0.07197965681552887, -0.06986772269010544, 0.04164717718958855, 0.11998402327299118, -0.008369007147848606, -0.013097589835524559, 0.0726090520620346, 0.1245354488492012, 0.0328926146030426, -0.0412442572414875, -0.06651163846254349, 0.01847275160253048, 0.010623857378959656, -0.045476481318473816, 0.023553038015961647, 0.014348749071359634, -0.04251258075237274, -0.02460341900587082, 0.06615684181451797, -0.08370818942785263, -0.01547786220908165, -0.03246409818530083, -0.07292943447828293, -0.14100128412246704, -0.03239879012107849, -0.04491761326789856, 0.0382784828543663, -0.05713360011577606, -0.01776491478085518, -0.04958347603678703, 0.020097898319363594, -0.09851759672164917, 0.07061769813299179, 0.05280159041285515, 0.0010561685776337981, 0.07315479218959808, -0.00870939064770937, -0.03823424130678177, -0.012638242915272713, -0.02935679629445076, -0.012917553074657917, -0.032398585230112076, 0.004413251299411058, 0.014803457073867321, -0.0002099011471727863, 0.015537196770310402, -0.01753382571041584, 0.030552413314580917, -0.004493467975407839, 0.016254380345344543, 0.06334223598241806, -0.03821314126253128, 0.01959049142897129, -0.073075070977211, -0.03825226426124573, 0.0034487061202526093, -0.005885304417461157, 0.13158775866031647, 0.05736413598060608, 0.0004972744500264525, 0.016080552712082863, 0.029251309111714363, 0.035709548741579056, -0.0856197401881218, 0.08051479607820511, 0.054435789585113525, -0.002483122516423464, -0.07751160860061646, -0.006296560168266296, 0.016178734600543976, -0.018105637282133102, 0.0953429639339447, -0.006744129583239555, -0.00422003585845232, 0.03177644684910774, -0.04187086969614029, 0.013931539840996265, 0.02498052641749382, 0.04424324259161949, 0.13429634273052216, -0.011086622253060341, 0.028346486389636993, -0.014587348327040672, -0.02142404019832611, 0.12506480515003204, -0.07361181825399399, 0.005259972531348467, 0.07562181353569031, -0.08480436354875565, 0.03464842215180397, -0.004363833460956812, 0.05178162455558777, 0.0791931003332138, 0.08530987799167633, -0.024733373895287514, -0.019146045669913292, 0.013354883529245853, 0.07714162021875381, 0.058547910302877426, 7.17913264829145e-33, 0.06157436594367027, 0.021054672077298164, -0.026795828714966774, 0.019712280482053757, 0.12081464380025864, -0.02082865871489048, -0.013671538792550564, 0.041948575526475906, -0.09199713170528412, 0.00814726296812296, -0.0022787798661738634, 0.016209641471505165, -0.08743736147880554, 0.01979023590683937, 0.009332804009318352, -0.07800431549549103, -0.057269491255283356, -0.05647231638431549, 0.04732115566730499, -0.00925782322883606, -0.0022591911256313324, -0.032064039260149, -0.022963931784033775, 0.013720957562327385, -0.012652858160436153, 0.0560847669839859, -0.011379942297935486, -0.03528323024511337, 0.04245411232113838, 0.04590224847197533, 0.006281421985477209, 0.006455076392740011, -0.012151011265814304, 0.036129701882600784, -0.010323192924261093, -0.01950688846409321, -0.03271855041384697, -0.15630808472633362, -0.05486512929201126, -0.0207528006285429, 0.022422976791858673, 0.037112604826688766, -0.0687866359949112, -0.020111994817852974, 0.04277043044567108, -0.015894688665866852, 0.02874094434082508, 0.024914423003792763, 0.1099960133433342, 0.035424452275037766, 0.021439068019390106, 0.030385440215468407, 0.0071060312911868095, 0.008480590768158436, -0.0639335960149765, -0.012683327309787273, -0.013510502874851227, -0.06896455585956573, -0.002876651706174016, 0.00939506758004427, 0.021166855469346046, 0.09021059423685074, 0.024644333869218826, -0.049461182206869125, -0.05822095647454262, 0.01950838230550289, 0.06626658141613007, 0.073645681142807, -0.03268542140722275, 0.06931014358997345, -0.03470747917890549, -0.024173950776457787, -0.006952149327844381, -0.011865356005728245, -0.04328962415456772, -0.013035494834184647, 0.005881526041775942, -0.07954910397529602, 0.07075363397598267, -0.05143267661333084, 0.06970668584108353, 0.03160090371966362, 0.026415498927235603, -0.0473489910364151, -0.06507913768291473, 0.0498550683259964, 0.03193249925971031, -0.04848045855760574, -0.0021497735287994146, 0.10197484493255615, -0.06662943959236145, -0.0710689127445221, -0.057819023728370667, -0.018685782328248024, -0.06186946853995323, -7.041208222689625e-33, 0.008162743411958218, -0.07535828649997711, -0.030945055186748505, 0.009659621864557266, 0.0030781945679336786, -0.0348304882645607, -0.08314807713031769, 0.012698286212980747, 0.06088239327073097, 0.012805608101189137, -0.06442689895629883, 0.056710612028837204, 0.0838329866528511, -0.050789982080459595, 0.09961998462677002, -0.06345874071121216, 0.03631097823381424, -0.05152302607893944, -0.0666046142578125, 0.010691515170037746, 0.062460996210575104, 0.013798309490084648, -0.08928067982196808, -0.04550209268927574, 0.07808870822191238, 0.08397962152957916, 0.032530128955841064, 0.04197581112384796, 0.04793905094265938, -0.06219277158379555, 0.03351397067308426, 0.011847575195133686, -0.07231903076171875, 0.028316205367445946, -0.046120595186948776, 0.043353836983442307, -0.03373128920793533, 0.04598470404744148, -0.01507849432528019, -0.08133678883314133, 0.018464205786585808, -0.029174135997891426, -0.05951997637748718, 0.05434071272611618, -0.016710150986909866, 0.024649444967508316, -0.08724098652601242, -0.024153830483555794, -0.014724871143698692, -0.028174513950943947, -0.02789752185344696, 0.04988190159201622, 0.04592007398605347, -0.10734459012746811, 0.013210665434598923, 0.006939306389540434, -0.025331562384963036, 0.027949368581175804, -0.025445926934480667, -0.047161754220724106, -0.017408303916454315, 0.016956690698862076, -0.07392428070306778, 0.024179643020033836, -0.021970955654978752, 0.030019154772162437, 0.008700251579284668, 0.038628291338682175, -0.11020739376544952, -0.041014932096004486, -0.014620072208344936, -0.04259355366230011, -0.08895431458950043, -0.08491939306259155, 0.02077077329158783, -0.03386478126049042, -0.036137379705905914, -0.006208132952451706, -0.022008754312992096, 0.046180080622434616, -0.02446412667632103, 0.028933990746736526, 0.02365158498287201, 0.035776544362306595, 0.05308641120791435, 0.013493642210960388, -0.003229445079341531, 0.06205705553293228, 0.06633181869983673, 0.06516031175851822, -0.07158485054969788, 0.01732494682073593, -0.0013597001088783145, 0.0001564035628689453, 0.061329182237386703, -5.6525287561726145e-8, -0.0007168239681050181, 0.04189354553818703, -0.055498287081718445, 0.026049282401800156, 0.04270674288272858, -0.04081294685602188, -0.02874251827597618, 0.08654465526342392, -0.02502128854393959, 0.049800243228673935, 0.11411109566688538, 0.04120086878538132, -0.04372311756014824, 0.017724916338920593, 0.019384028390049934, 0.1088971272110939, -0.05983719974756241, -0.03461812436580658, -0.03126327693462372, -0.123778335750103, -0.02700696513056755, 0.027618836611509323, -0.0023679533042013645, -0.001384056406095624, -0.08988306671380997, 0.007185782305896282, -0.04361182078719139, 0.007025306578725576, -0.06453581154346466, 0.06524655222892761, -0.0473417304456234, -0.02528960630297661, -0.04125484079122543, -0.042421579360961914, -0.0299142524600029, 0.05620419234037399, -0.05744507536292076, 0.014293020591139793, 0.05397700518369675, 0.0680893212556839, 0.021670181304216385, 0.049061745405197144, 0.04654889926314354, 0.008507062681019306, -0.0726592168211937, 0.026048412546515465, -0.05708594247698784, -0.03016132302582264, 0.04817704111337662, -0.0245802104473114, 0.02303074114024639, -0.03272169828414917, -0.0733703225851059, 0.10221470892429352, 0.020432984456419945, 0.03256508335471153, -0.018320119008421898, -0.052895087748765945, -0.022084390744566917, 0.06433357298374176, 0.02297111600637436, -0.06933940947055817, 0.0535072386264801, -0.0024558997247368097 ]
0.039864
30, 2026 🦞💙
https://github.com/openclaw/openclaw/blob/main//docs/start/lore.md
main
opebclaw
[ -0.03381355479359627, 0.02177780494093895, 0.019512183964252472, -0.013854991644620895, -0.07935640960931778, 0.025104224681854248, -0.085258349776268, 0.03452064096927643, 0.01823481358587742, 0.09179474413394928, -0.02016032487154007, -0.08028721064329147, 0.07994350045919418, 0.012509286403656006, -0.03720659762620926, 0.02450069785118103, -0.07801804691553116, -0.0970798134803772, 0.021030409261584282, -0.003383539617061615, 0.0078009371645748615, -0.017155377194285393, 0.03133578598499298, 0.04640769958496094, -0.0003343927673995495, 0.005778667517006397, 0.014643680304288864, -0.02610539086163044, -0.033184826374053955, 0.06214084103703499, 0.02370118349790573, 0.10147818177938461, -0.008098051883280277, -0.012946777045726776, -0.022431889548897743, -0.05010197311639786, -0.03816726803779602, -0.037534199655056, 0.06270484626293182, -0.003403718350455165, 0.00829956866800785, -0.14326463639736176, 0.01448576245456934, -0.04029202461242676, 0.0337701216340065, -0.005455330479890108, -0.07574647665023804, 0.10125744342803955, -0.011706114746630192, 0.058926112949848175, -0.03453586623072624, -0.013532252050936222, -0.03301418200135231, 0.011998998001217842, 0.02784021757543087, 0.0033823589328676462, -0.04860984906554222, -0.06982086598873138, 0.013799839653074741, 0.018941376358270645, -0.008452566340565681, -0.01864468865096569, -0.03073769435286522, 0.07899733632802963, 0.0022664188873022795, -0.053591251373291016, 0.06098916754126549, 0.007413369137793779, 0.002602481748908758, 0.014282469637691975, 0.007634253241121769, 0.008873545564711094, 0.07837842404842377, -0.0788145661354065, 0.028672192245721817, -0.035632725805044174, 0.043325185775756836, 0.007269812282174826, 0.01060036662966013, -0.08914296329021454, 0.01269240491092205, -0.041669927537441254, -0.012922530062496662, 0.011099042370915413, -0.01808515563607216, 0.012395873665809631, 0.059204619377851486, 0.07516790926456451, 0.06259359419345856, 0.04685041680932045, -0.005798451602458954, -0.007653351407498121, -0.040554650127887726, 0.04713543877005577, -0.1623169630765915, 0.0836227759718895, 0.03821434825658798, -0.04019322246313095, -0.07322622835636139, 0.049422431737184525, -0.027744071558117867, 0.0508994534611702, 0.03890833631157875, 0.031912993639707565, -0.02939498983323574, -0.03831232711672783, 0.03269857168197632, 0.0013794335536658764, -0.030952880159020424, -0.019422203302383423, -0.01454938855022192, -0.058277279138565063, -0.04989822953939438, 0.017056286334991455, 0.0028799441643059254, 0.04461323469877243, 0.033450786024332047, -0.0006736731738783419, 0.00474243238568306, -0.0857103243470192, 0.04728110507130623, 0.037596460431814194, -0.010500737465918064, 0.005961432587355375, -0.05734813213348389, 0.001332201180048287, 0.024205897003412247, -3.177685960587058e-33, 0.010031173937022686, -0.030840778723359108, -0.010472488589584827, 0.06250257790088654, -0.0973690077662468, 0.08990658074617386, 0.06378940492868423, 0.06425081193447113, 0.01326857227832079, -0.017261946573853493, 0.014338251203298569, -0.04474302753806114, 0.02231254242360592, 0.032542768865823746, 0.04753294959664345, 0.02355189062654972, 0.020098254084587097, -0.004121759906411171, 0.026143105700612068, 0.008810282684862614, -0.03464784845709801, -0.047154054045677185, -0.019037606194615364, 0.019637368619441986, 0.04202860966324806, -0.03984636068344116, 0.019559528678655624, -0.02178066223859787, -0.02108093909919262, 0.045629628002643585, 0.027727628126740456, 0.012418563477694988, -0.006539172027260065, -0.04531256854534149, -0.007368783000856638, -0.041325658559799194, 0.0052477652207016945, 0.003859088057652116, -0.037305813282728195, 0.03902995213866234, 0.057968687266111374, 0.013851343654096127, -0.06426998972892761, -0.003944276832044125, 0.05158213898539543, -0.015297794714570045, 0.08200132101774216, -0.014846662059426308, 0.03338547796010971, 0.005922188516706228, -0.03044743277132511, 0.047168899327516556, -0.10126129537820816, 0.027854645624756813, 0.06530959904193878, -0.06169120594859123, -0.015337018296122551, -0.07418681681156158, -0.07446537911891937, 0.0025436528958380222, 0.052814826369285583, -0.012104730121791363, 0.03831666335463524, 0.03785224258899689, -0.023333946242928505, 0.02439865656197071, 0.030051812529563904, 0.04461995139718056, -0.011574439704418182, 0.08470463752746582, -0.04957079887390137, -0.03994766250252724, 0.051085907965898514, -0.02773270756006241, -0.02941824495792389, -0.03567531704902649, 0.07686956971883774, -0.06418050080537796, 0.03969962149858475, 0.07110278308391571, 0.012146806344389915, 0.06177841126918793, 0.0834164023399353, 0.010106992907822132, 0.08650510013103485, 0.020920317620038986, -0.026466207578778267, -0.03434345871210098, 0.07070483267307281, -0.08496090769767761, -0.04784722253680229, -0.1949736475944519, 0.08075296133756638, 0.08989857137203217, -0.0381910465657711, 1.6069393484824534e-33, -0.024537714198231697, 0.1507640779018402, -0.02414757013320923, -0.03865848109126091, -0.03567137196660042, -0.10265873372554779, 0.11602486670017242, 0.12483438104391098, 0.06911633163690567, -0.04018784686923027, -0.04203048348426819, 0.029530219733715057, 0.07408590614795685, 0.04138842597603798, 0.024359719827771187, -0.007461779750883579, 0.03992919251322746, 0.009846634231507778, -0.09545315057039261, 0.0071929446421563625, 0.012162541039288044, -0.07262010872364044, -0.09087684750556946, -0.024571605026721954, -0.01952790655195713, 0.027199149131774902, 0.062246739864349365, -0.03996718302369118, -0.010347333736717701, -0.002184799639508128, -0.04525155574083328, -0.0889124721288681, 0.0019186260178685188, 0.029938701540231705, -0.027955954894423485, -0.051107678562402725, 0.01691538095474243, -0.045786432921886444, -0.006327458191663027, -0.05226543918251991, 0.07059980183839798, -0.014551335945725441, -0.03155141696333885, 0.04955723509192467, 0.006736994255334139, 0.004712704569101334, 0.0300300195813179, 0.03289454057812691, 0.031906165182590485, -0.055468812584877014, -0.00815404299646616, -0.039439842104911804, -0.024395156651735306, 0.00990059319883585, 0.015916135162115097, -0.03905806317925453, -0.0012035288382321596, 0.034984786063432693, 0.08213606476783752, -0.019071044400334358, -0.010049997828900814, 0.1002635657787323, 0.07999337464570999, -0.0029771714471280575, -0.04243035614490509, -0.04667332395911217, -0.0037699565291404724, 0.053550686687231064, -0.007054814137518406, 0.13195107877254486, 0.10773830115795135, 0.042196448892354965, -0.16811621189117432, -0.007201156113296747, -0.03592931479215622, -0.03498753160238266, 0.051534634083509445, 0.060374900698661804, 0.04904310405254364, 0.07945644855499268, 0.0182916559278965, 0.06238097324967384, 0.00016495575255248696, -0.050620488822460175, -0.02657591551542282, -0.020238062366843224, 0.051572032272815704, -0.035512279719114304, -0.017177309840917587, -0.010825099423527718, -0.06639309972524643, 0.015550957061350346, -0.02505960874259472, -0.010076823644340038, 0.05434553325176239, -1.4600893827321215e-8, 0.056022658944129944, 0.030098892748355865, -0.06369099020957947, 0.002883973065763712, 0.013394065201282501, -0.018157266080379486, -0.04668750986456871, 0.004415167961269617, 0.03864485025405884, -0.014268659055233002, 0.0903048887848854, -0.036841392517089844, 0.03791564330458641, 0.05299513414502144, -0.039121389389038086, 0.03630002960562706, -0.0420224666595459, -0.004811175167560577, -0.053975410759449005, -0.09092754870653152, 0.05842222273349762, 0.0027220058254897594, 0.01942520961165428, 0.00802677683532238, -0.02399422787129879, -0.0024608480744063854, -0.00021733850007876754, 0.13444949686527252, -0.17223623394966125, -0.02483031526207924, -0.024798989295959473, -0.06302651017904282, -0.06904752552509308, -0.01465790905058384, 0.003935296554118395, 0.036418575793504715, -0.013278207741677761, 0.009726629592478275, -0.03389221057295799, 0.015395807102322578, 0.06094791367650032, -0.03181808441877365, -0.07648086547851562, 0.04703879356384277, 0.057422932237386703, -0.14754681289196014, -0.005081405863165855, -0.017093101516366005, -0.08313367515802383, 0.0056380461901426315, -0.05636085942387581, 0.03436341509222984, 0.010381979867815971, -0.041664086282253265, 0.08600695431232452, 0.050021298229694366, 0.00015592154522892088, -0.028293365612626076, -0.10091912001371384, 0.044281210750341415, 0.07525789737701416, -0.06815116107463837, -0.0002553356462158263, -0.01735152304172516 ]
0.030615
# Getting Started Goal: go from \*\*zero\*\* → \*\*first working chat\*\* (with sane defaults) as quickly as possible. Fastest chat: open the Control UI (no channel setup needed). Run `openclaw dashboard` and chat in the browser, or open `http://127.0.0.1:18789/` on the gateway host. Docs: [Dashboard](/web/dashboard) and [Control UI](/web/control-ui). Recommended path: use the \*\*CLI onboarding wizard\*\* (`openclaw onboard`). It sets up: - model/auth (OAuth recommended) - gateway settings - channels (WhatsApp/Telegram/Discord/Mattermost (plugin)/...) - pairing defaults (secure DMs) - workspace bootstrap + skills - optional background service If you want the deeper reference pages, jump to: [Wizard](/start/wizard), [Setup](/start/setup), [Pairing](/start/pairing), [Security](/gateway/security). Sandboxing note: `agents.defaults.sandbox.mode: "non-main"` uses `session.mainKey` (default `"main"`), so group/channel sessions are sandboxed. If you want the main agent to always run on host, set an explicit per-agent override: ```json { "routing": { "agents": { "main": { "workspace": "~/.openclaw/workspace", "sandbox": { "mode": "off" } } } } } ``` ## 0) Prereqs - Node `>=22` - `pnpm` (optional; recommended if you build from source) - \*\*Recommended:\*\* Brave Search API key for web search. Easiest path: `openclaw configure --section web` (stores `tools.web.search.apiKey`). See [Web tools](/tools/web). macOS: if you plan to build the apps, install Xcode / CLT. For the CLI + gateway only, Node is enough. Windows: use \*\*WSL2\*\* (Ubuntu recommended). WSL2 is strongly recommended; native Windows is untested, more problematic, and has poorer tool compatibility. Install WSL2 first, then run the Linux steps inside WSL. See [Windows (WSL2)](/platforms/windows). ## 1) Install the CLI (recommended) ```bash curl -fsSL https://openclaw.ai/install.sh | bash ``` Installer options (install method, non-interactive, from GitHub): [Install](/install). Windows (PowerShell): ```powershell iwr -useb https://openclaw.ai/install.ps1 | iex ``` Alternative (global install): ```bash npm install -g openclaw@latest ``` ```bash pnpm add -g openclaw@latest ``` ## 2) Run the onboarding wizard (and install the service) ```bash openclaw onboard --install-daemon ``` What you’ll choose: - \*\*Local vs Remote\*\* gateway - \*\*Auth\*\*: OpenAI Code (Codex) subscription (OAuth) or API keys. For Anthropic we recommend an API key; `claude setup-token` is also supported. - \*\*Providers\*\*: WhatsApp QR login, Telegram/Discord bot tokens, Mattermost plugin tokens, etc. - \*\*Daemon\*\*: background install (launchd/systemd; WSL2 uses systemd) - \*\*Runtime\*\*: Node (recommended; required for WhatsApp/Telegram). Bun is \*\*not recommended\*\*. - \*\*Gateway token\*\*: the wizard generates one by default (even on loopback) and stores it in `gateway.auth.token`. Wizard doc: [Wizard](/start/wizard) ### Auth: where it lives (important) - \*\*Recommended Anthropic path:\*\* set an API key (wizard can store it for service use). `claude setup-token` is also supported if you want to reuse Claude Code credentials. - OAuth credentials (legacy import): `~/.openclaw/credentials/oauth.json` - Auth profiles (OAuth + API keys): `~/.openclaw/agents//agent/auth-profiles.json` Headless/server tip: do OAuth on a normal machine first, then copy `oauth.json` to the gateway host. ## 3) Start the Gateway If you installed the service during onboarding, the Gateway should already be running: ```bash openclaw gateway status ``` Manual run (foreground): ```bash openclaw gateway --port 18789 --verbose ``` Dashboard (local loopback): `http://127.0.0.1:18789/` If a token is configured, paste it into the Control UI settings (stored as `connect.params.auth.token`). ⚠️ \*\*Bun warning (WhatsApp + Telegram):\*\* Bun has known issues with these channels. If you use WhatsApp or Telegram, run the Gateway with \*\*Node\*\*. ## 3.5) Quick verify (2 min) ```bash openclaw status openclaw health openclaw security audit --deep ``` ## 4) Pair + connect your first chat surface ### WhatsApp (QR login) ```bash openclaw channels login ``` Scan via WhatsApp → Settings → Linked Devices. WhatsApp doc: [WhatsApp](/channels/whatsapp) ### Telegram / Discord / others The wizard can write tokens/config for you. If you prefer manual config, start with: - Telegram: [Telegram](/channels/telegram) - Discord: [Discord](/channels/discord) - Mattermost (plugin): [Mattermost](/channels/mattermost) \*\*Telegram DM tip:\*\* your first DM returns a
https://github.com/openclaw/openclaw/blob/main//docs/start/getting-started.md
main
opebclaw
[ -0.056623585522174835, -0.05215248093008995, -0.07940350472927094, 0.0054908073507249355, -0.01819159835577011, -0.053179748356342316, -0.020967809483408928, 0.024262601509690285, 0.015498303808271885, 0.012789626605808735, 0.01104725431650877, -0.018373005092144012, -0.00029101947438903153, 0.023476116359233856, 0.08143875747919083, 0.04958999529480934, 0.10187972337007523, -0.16195513308048248, 0.02652214653789997, -0.0005435041384771466, 0.017022283747792244, -0.010791203007102013, -0.012242311611771584, -0.01776130124926567, -0.05365555360913277, -0.08551425486803055, -0.04253894090652466, 0.03947748988866806, 0.007037023548036814, -0.021648233756422997, 0.031853049993515015, 0.0380774550139904, -0.02070062980055809, 0.026743805035948753, -0.02679508551955223, 0.021688561886548996, 0.11300987750291824, 0.03497256338596344, 0.005406991578638554, -0.040955688804388046, -0.004511401057243347, -0.045335374772548676, -0.05861956253647804, -0.004150812514126301, 0.06861144304275513, -0.09007903933525085, -0.03433573246002197, -0.027777235954999924, 0.03660866990685463, 0.06862124055624008, -0.03777199238538742, -0.058432742953300476, 0.011512735858559608, 0.03870849311351776, -0.014506818726658821, 0.12305983901023865, -0.032233692705631256, 0.04026169329881668, 0.07185627520084381, -0.058498043566942215, 0.017041917890310287, -0.03795511648058891, 0.03030584007501602, -0.0027372336480766535, -0.13208380341529846, 0.003881430719047785, -0.03579073026776314, -0.06158297136425972, -0.009948021732270718, -0.021382827311754227, -0.04817506670951843, -0.00655540032312274, -0.03238116577267647, -0.03082304261624813, -0.024691326543688774, 0.017510969191789627, 0.014371342025697231, 0.011977187357842922, -0.06483565270900726, -0.0985298827290535, 0.023538438603281975, 0.04700388014316559, -0.031765811145305634, 0.07774090021848679, -0.014347899705171585, 0.07173056155443192, 0.032197803258895874, 0.009693732485175133, -0.004418719094246626, 0.012160813435912132, 0.01721746288239956, -0.06168016418814659, -0.03385883569717407, -0.05110187456011772, 0.014784667640924454, 0.040903035551309586, -0.02948661521077156, -0.0018515638075768948, -0.031858742237091064, 0.05361928790807724, 0.013033613562583923, -0.0019108018605038524, 0.05293554812669754, 0.0007304350729100406, -0.03449048846960068, 0.030900703743100166, 0.06046402454376221, 0.060270167887210846, 0.08097019046545029, -0.013019709847867489, -0.05658619850873947, -0.020314855501055717, 0.01681745983660221, 0.04033773019909859, 0.0008995128446258605, 0.04244717210531235, -0.03967979550361633, -0.03931411728262901, 0.0697411373257637, 0.08251067996025085, 0.07446438819169998, -0.007979799062013626, 0.027363993227481842, 0.016892706975340843, 0.042449258267879486, 0.11455390602350235, 0.029771776869893074, 4.609788156799958e-33, 0.0737462043762207, 0.05635349452495575, -0.0988839790225029, 0.060864027589559555, 0.11153163760900497, -0.0005285227671265602, 0.044674523174762726, 0.01442836131900549, -0.06644786149263382, 0.06371688097715378, -0.05997546389698982, 0.06963886320590973, 0.0015905097825452685, -0.046474579721689224, -0.024081122130155563, -0.060542091727256775, -0.06938102841377258, 0.005889341235160828, 0.05407620221376419, -0.06395827978849411, 0.009009232744574547, -0.0821906328201294, -0.041354626417160034, 0.02444421499967575, 0.12518244981765747, 0.09369156509637833, -0.014688944444060326, 0.018468579277396202, 0.023500632494688034, 0.011633789166808128, -0.002940987003967166, -0.01514637190848589, -0.0352821908891201, -0.011720282956957817, 0.009066961705684662, -0.02923273667693138, -0.09331852197647095, -0.040724046528339386, -0.039607129991054535, 0.009017100557684898, -0.06563389301300049, -0.057588186115026474, -0.06606635451316833, -0.0648275837302208, -0.004720505326986313, -0.0691550225019455, -0.040411755442619324, 0.029648926109075546, 0.08319734036922455, 0.013785920105874538, -0.11732113361358643, -0.0519794337451458, -0.01470404863357544, 0.02110198512673378, -0.028790179640054703, -0.0746561735868454, -0.07199671864509583, -0.010015741921961308, 0.02007056027650833, -0.028650877997279167, -0.041360367089509964, -0.016307387501001358, -0.08149410784244537, 0.023863738402724266, 0.005380004644393921, -0.006327140610665083, -0.07602159678936005, 0.028086325153708458, -0.025448530912399292, -0.08163406699895859, -0.03180430829524994, 0.030322235077619553, 0.015761684626340866, 0.029991215094923973, -0.04348739609122276, -0.00666902307420969, -0.02318296581506729, 0.03196645900607109, 0.010082550346851349, 0.016280310228466988, -0.0006923673790879548, 0.047080572694540024, -0.03658401966094971, 0.02428613230586052, 0.09312406927347183, -0.049211934208869934, 0.08299703896045685, -0.05902041867375374, -0.029341595247387886, 0.10208391398191452, -0.09316599369049072, 0.07155099511146545, 0.029843967407941818, 0.02189026214182377, -0.04446516931056976, -3.8537186392167094e-33, 0.026593517512083054, -0.004983111284673214, 0.027376621961593628, 0.023906484246253967, 0.05518058314919472, 0.02717697247862816, 0.10266528278589249, -0.004056684672832489, 0.006511023733764887, 0.008599773980677128, 0.01883765310049057, 0.08400434255599976, 0.03787656128406525, -0.08448704332113266, 0.06137421727180481, 0.03312164172530174, -0.03883789852261543, 0.0058132135309278965, -0.007171878591179848, 0.007408717181533575, -0.002941383980214596, 0.010080243460834026, -0.059860777109861374, 0.0032832100987434387, 0.042402010411024094, 0.022341756150126457, 0.09819992631673813, 0.04000495374202728, -0.05239356681704521, -0.004939704667776823, 0.0017768408870324492, 0.012759245000779629, -0.030162913724780083, 0.044015876948833466, 0.036279380321502686, 0.04413524642586708, 0.04760446026921272, 0.0686265304684639, -0.03181619569659233, -0.05246759206056595, 0.11077402532100677, -0.022708328440785408, -0.12414281815290451, -0.03395012766122818, -0.007334609050303698, 0.06018518656492233, -0.035071223974227905, -0.022370224818587303, -0.18869620561599731, 0.004689913708716631, 0.011545109562575817, -0.07508087158203125, 0.0760776624083519, 0.038780104368925095, -0.02004588022828102, 0.01919153518974781, 0.13822439312934875, 0.0034487543161958456, -0.0001973544422071427, -0.0634283646941185, 0.027979431673884392, -0.05840279906988144, 0.003224320709705353, 0.07531914114952087, 0.03261286020278931, -0.07807901501655579, -0.0065931715071201324, 0.14116458594799042, -0.06362846493721008, 0.004694730509072542, -0.06116641312837601, -0.06981059908866882, 0.022016171365976334, -0.021956443786621094, 0.05494399741292, -0.02059350721538067, 0.019707392901182175, -0.11287584155797958, 0.005038992036134005, 0.0011580983409658074, -0.009987431578338146, -0.004077936988323927, 0.02517210878431797, -0.05352070927619934, -0.02459574118256569, 0.0666707307100296, 0.0039826263673603535, 0.11795573681592941, 0.04062340408563614, 0.022529419511556625, -0.13050536811351776, -0.01990952156484127, 0.032695550471544266, 0.02059946209192276, 0.05946461111307144, -5.688652748858658e-8, -0.07970590889453888, -0.013934365473687649, -0.0023269569501280785, 0.03957028687000275, 0.008898167870938778, -0.02385011315345764, 0.026870300993323326, 0.016948331147432327, -0.027132548391819, 0.0059247324243187904, 0.016895266249775887, -0.021277274936437607, -0.02560969814658165, 0.0029463348910212517, -0.04245717078447342, 0.021416231989860535, -0.030484747141599655, -0.020872142165899277, 0.04226431995630264, -0.06543634086847305, 0.032923825085163116, -0.004911406897008419, 0.05508827045559883, 0.058922335505485535, 0.014987004920840263, -0.03317263349890709, -0.02126295305788517, 0.017650702968239784, -0.060619186609983444, -0.02012135460972786, -0.11056254804134369, -0.008207133039832115, 0.002717867260798812, -0.0348169207572937, -0.03107297047972679, -0.0017722463235259056, -0.05466414615511894, 0.0032058528158813715, 0.003380985464900732, -0.008797814138233662, 0.08316182345151901, 0.008780138567090034, -0.0328558012843132, -0.11218082159757614, -0.00877968966960907, 0.038485728204250336, -0.06796232610940933, -0.026213783770799637, 0.027652138844132423, -0.00609843572601676, -0.007362701930105686, -0.01880072057247162, 0.09970397502183914, 0.07555871456861496, -0.011930613778531551, 0.03831242397427559, 0.07216107100248337, -0.03507848456501961, 0.0371609665453434, 0.028387149795889854, -0.011845409870147705, 0.16149508953094482, 0.017268314957618713, -0.052693624049425125 ]
0.060135
``` Scan via WhatsApp → Settings → Linked Devices. WhatsApp doc: [WhatsApp](/channels/whatsapp) ### Telegram / Discord / others The wizard can write tokens/config for you. If you prefer manual config, start with: - Telegram: [Telegram](/channels/telegram) - Discord: [Discord](/channels/discord) - Mattermost (plugin): [Mattermost](/channels/mattermost) \*\*Telegram DM tip:\*\* your first DM returns a pairing code. Approve it (see next step) or the bot won’t respond. ## 5) DM safety (pairing approvals) Default posture: unknown DMs get a short code and messages are not processed until approved. If your first DM gets no reply, approve the pairing: ```bash openclaw pairing list whatsapp openclaw pairing approve whatsapp ```` ``` Pairing doc: [Pairing](/start/pairing) ## From source (development) If you’re hacking on OpenClaw itself, run from source: ```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 --install-daemon ``` If you don’t have a global install yet, run the onboarding step via `pnpm openclaw ...` from the repo. `pnpm build` also bundles A2UI assets; if you need to run just that step, use `pnpm canvas:a2ui:bundle`. Gateway (from this repo): ```bash node openclaw.mjs gateway --port 18789 --verbose ``` ## 7) Verify end-to-end In a new terminal, send a test message: ```bash openclaw message send --target +15555550123 --message "Hello from OpenClaw" ``` If `openclaw health` shows “no auth configured”, go back to the wizard and set OAuth/key auth — the agent won’t be able to respond without it. Tip: `openclaw status --all` is the best pasteable, read-only debug report. Health probes: `openclaw health` (or `openclaw status --deep`) asks the running gateway for a health snapshot. ## Next steps (optional, but great) - macOS menu bar app + voice wake: [macOS app](/platforms/macos) - iOS/Android nodes (Canvas/camera/voice): [Nodes](/nodes) - Remote access (SSH tunnel / Tailscale Serve): [Remote access](/gateway/remote) and [Tailscale](/gateway/tailscale) - Always-on / VPN setups: [Remote access](/gateway/remote), [exe.dev](/platforms/exe-dev), [Hetzner](/platforms/hetzner), [macOS remote](/platforms/mac/remote) ````
https://github.com/openclaw/openclaw/blob/main//docs/start/getting-started.md
main
opebclaw
[ -0.06608958542346954, -0.06337007880210876, 0.005341176874935627, 0.023894203826785088, 0.010479146614670753, -0.08786854892969131, 0.023427147418260574, 0.0019036023877561092, 0.015652231872081757, 0.07825631648302078, 0.06124678626656532, -0.02939622476696968, -0.003945874981582165, 0.04798786714673042, 0.1135290339589119, 0.04346728324890137, 0.023089036345481873, -0.1494826078414917, -0.014602473936975002, 0.0620771162211895, -0.006038937252014875, 0.020495092496275902, 0.02987811528146267, -0.025896158069372177, -0.02808583714067936, -0.07276435941457748, -0.0022895336151123047, 0.005180814303457737, -0.06247080862522125, -0.017629968002438545, 0.06445691734552383, 0.021593362092971802, -0.028058260679244995, 0.054428521543741226, -0.011706824414432049, 0.028704816475510597, 0.06552301347255707, 0.017392918467521667, 0.021530261263251305, -0.013969674706459045, -0.0306211207062006, -0.05357745289802551, -0.09103582054376602, -0.031604938209056854, 0.077913798391819, -0.0016105257673189044, -0.03449879214167595, 0.004482093267142773, -0.04615601524710655, -0.0032248946372419596, 0.004090695176273584, -0.0040541887283325195, -0.0015210264828056097, 0.054722655564546585, -0.017505083233118057, 0.03609777241945267, -0.04992068186402321, 0.0935947373509407, 0.06827099621295929, -0.06620784103870392, -0.012514941394329071, -0.021602729335427284, -0.01653604581952095, -0.02180415205657482, -0.06312458217144012, 0.025259755551815033, -0.014099585823714733, -0.001155292964540422, 0.013263723812997341, 0.011287451721727848, 0.060650989413261414, 0.00867868959903717, 0.016890142112970352, -0.019189896062016487, -0.005252815317362547, -0.03953057527542114, 0.0337098054587841, 0.03263169899582863, -0.08231852203607559, -0.08587278425693512, -0.046824920922517776, 0.013544990681111813, -0.02844172529876232, 0.06212834268808365, 0.016848180443048477, 0.10133367031812668, -0.024449201300740242, 0.04279433563351631, -0.0007506443653255701, 0.012872476130723953, -0.019911527633666992, -0.021565858274698257, -0.04085375368595123, -0.003440297208726406, 0.0689304769039154, 0.024973032996058464, -0.03303251415491104, 0.04677142947912216, -0.04747271537780762, 0.07024355977773666, 0.017049286514520645, -0.04199627414345741, -0.03662062808871269, -0.04903320223093033, 0.032260961830616, 0.051797352731227875, 0.018992148339748383, -0.02888806350529194, 0.140350803732872, -0.005764566361904144, -0.006146460305899382, -0.06761568039655685, 0.09434806555509567, 0.05180734023451805, -0.006446396466344595, 0.01960192620754242, 0.027620775625109673, 0.006384127773344517, 0.054464537650346756, -0.024507401511073112, 0.09978830069303513, -0.09403764456510544, 0.04391331225633621, -0.013549482449889183, -0.04822726547718048, 0.10784336924552917, 0.0797068253159523, 6.513136487365913e-33, 0.04901589825749397, 0.06191733106970787, -0.0704980343580246, 0.04978752136230469, -0.007238186430186033, 0.03972962871193886, 0.00756332091987133, 0.030755145475268364, -0.09753495454788208, -0.007793941535055637, -0.08027307689189911, 0.004704627208411694, 0.026230832561850548, 0.012289940379559994, -0.06709253787994385, -0.06358669698238373, 0.04630078747868538, -0.019292514771223068, -0.008648402988910675, 0.008726629428565502, 0.022576667368412018, 0.0010094288736581802, -0.03323372080922127, 0.027608836069703102, 0.0283947866410017, 0.09577396512031555, 0.0017091308254748583, -0.0358286127448082, 0.0578901544213295, -0.006442858371883631, -0.06823734194040298, 0.022784307599067688, 0.0066480557434260845, 0.028305741026997566, 0.02401600033044815, -0.004513938911259174, -0.10492891073226929, 0.01523648016154766, -0.1041039451956749, -0.07897235453128815, 0.01611098274588585, -0.020497148856520653, -0.055167924612760544, -0.06979134678840637, 0.0168036799877882, -0.03172179311513901, -0.026056017726659775, 0.03250718489289284, -0.02050579898059368, 0.017212778329849243, -0.039820246398448944, -0.013597068376839161, -0.006301678717136383, 0.022543832659721375, -0.00947676133364439, -0.06005461513996124, -0.03981427103281021, -0.08886704593896866, -0.03717297315597534, -0.038566768169403076, 0.0299107376486063, -0.018920963630080223, -0.030436743050813675, -0.04274318739771843, -0.002763177501037717, -0.05821259692311287, -0.03957739844918251, 0.04715875908732414, 0.022371064871549606, 0.0102784289047122, -0.0458095520734787, 0.05044632777571678, -0.02510690502822399, 0.047326020896434784, -0.08712045103311539, -0.013541406020522118, 0.021252455189824104, 0.06089817360043526, 0.01683439500629902, -0.007692466489970684, 0.021035360172390938, 0.006409482564777136, -0.007347774691879749, -0.03676904737949371, 0.021041782572865486, 0.0015917381970211864, 0.026679780334234238, -0.11177825182676315, -0.05406861752271652, 0.18329016864299774, -0.09005523473024368, 0.08603987842798233, 0.0029035918414592743, 0.03190609812736511, 0.03539915755391121, -6.35665467938445e-33, -0.043849945068359375, 0.05794306844472885, 0.02642781473696232, -0.014894554391503334, 0.004344255663454533, -0.06628008931875229, -0.009657393209636211, -0.036646898835897446, 0.06446482241153717, -0.004440522752702236, 0.0015367253217846155, -0.033521246165037155, 0.04793298989534378, -0.062012217938899994, 0.06439339369535446, 0.0249803364276886, -0.05317998677492142, -0.00024852651404216886, 0.030145136639475822, -0.008156557567417622, 0.001353840110823512, -0.003950762562453747, 0.0031141932122409344, 0.07795950770378113, 0.010968117043375969, 0.00952630303800106, 0.0874357596039772, 0.02040359191596508, 0.05548815801739693, -0.08008023351430893, 0.10217621922492981, 0.018165482208132744, -0.044978901743888855, 0.035349104553461075, 0.06854584068059921, 0.08307129889726639, -0.020253518596291542, 0.08036427199840546, 0.01952492631971836, -0.11975520849227905, 0.09425345063209534, 0.024495454505085945, -0.09529857337474823, 0.013324758037924767, 0.007767628878355026, 0.02210371382534504, -0.024633891880512238, -0.0006766411825083196, -0.18937505781650543, 0.01603766344487667, 0.10907906293869019, -0.037845008075237274, 0.04832388833165169, -0.01708574779331684, -0.03152940794825554, -0.00970100611448288, 0.09215854853391647, -0.005766571499407291, -0.012990450486540794, -0.08266392350196838, 0.028202256187796593, -0.10281664878129959, 0.04348263144493103, 0.07823347300291061, 0.015418773517012596, -0.0729648545384407, 0.03130226954817772, 0.08179554343223572, -0.02759595587849617, -0.009005451574921608, 0.02574516274034977, -0.09228615462779999, -0.032666921615600586, -0.029179099947214127, 0.10269174724817276, -0.02618328295648098, -0.15405870974063873, -0.13329754769802094, 0.015830757096409798, 0.05080884322524071, 0.020436812192201614, 0.025161264464259148, 0.052841007709503174, 0.06525339931249619, -0.06038142368197441, 0.058320384472608566, 0.09241054207086563, 0.08308276534080505, -0.03784862160682678, 0.02926630899310112, -0.04867497831583023, -0.019850825890898705, 0.06391344964504242, 0.009409324266016483, 0.019745388999581337, -5.4851703623626236e-8, -0.05925362557172775, -0.0768900141119957, -0.05631757900118828, -0.03060382790863514, -0.06452445685863495, 0.0027351719327270985, -0.01742454804480076, -0.04590858519077301, -0.009487226605415344, -0.023238154128193855, 0.0017809062264859676, -0.015144173055887222, -0.05820078402757645, 0.011404148302972317, 0.024717355147004128, -0.012991762720048428, -0.058667607605457306, -0.06588428467512131, -0.021967800334095955, -0.03811853379011154, 0.000675827031955123, 0.013088466599583626, -0.03325321897864342, 0.08228755742311478, -0.049904193729162216, -0.07473793625831604, 0.0877392366528511, 0.07912332564592361, -0.07566017657518387, -0.02574411779642105, -0.059646204113960266, -0.05630591884255409, -0.0037362927105277777, -0.009336400777101517, -0.02989014983177185, 0.03629028797149658, -0.04068396985530853, -0.01421386282891035, 0.05497605726122856, 0.03092358075082302, 0.08322753012180328, 0.01698295585811138, -0.044128406792879105, -0.013945860788226128, -0.07800813019275665, -0.004877857398241758, 0.014333704486489296, -0.0833829790353775, -0.028050623834133148, -0.03532341122627258, 0.014521626755595207, -0.007183289621025324, 0.07500637322664261, 0.05092828348278999, -0.05510491132736206, -0.021908925846219063, 0.039685461670160294, -0.016306571662425995, 0.04769846796989441, -0.013636038638651371, 0.03502459451556206, 0.061493027955293655, -0.007865440100431442, -0.012473231181502342 ]
0.026758
# Docs hubs Use these hubs to discover every page, including deep dives and reference docs that don’t appear in the left nav. ## Start here - [Index](/) - [Getting Started](/start/getting-started) - [Quick start](/start/quickstart) - [Onboarding](/start/onboarding) - [Wizard](/start/wizard) - [Setup](/start/setup) - [Dashboard (local Gateway)](http://127.0.0.1:18789/) - [Help](/help) - [Docs directory](/start/docs-directory) - [Configuration](/gateway/configuration) - [Configuration examples](/gateway/configuration-examples) - [OpenClaw assistant](/start/openclaw) - [Showcase](/start/showcase) - [Lore](/start/lore) ## Installation + updates - [Docker](/install/docker) - [Nix](/install/nix) - [Updating / rollback](/install/updating) - [Bun workflow (experimental)](/install/bun) ## Core concepts - [Architecture](/concepts/architecture) - [Features](/concepts/features) - [Network hub](/network) - [Agent runtime](/concepts/agent) - [Agent workspace](/concepts/agent-workspace) - [Memory](/concepts/memory) - [Agent loop](/concepts/agent-loop) - [Streaming + chunking](/concepts/streaming) - [Multi-agent routing](/concepts/multi-agent) - [Compaction](/concepts/compaction) - [Sessions](/concepts/session) - [Sessions (alias)](/concepts/sessions) - [Session pruning](/concepts/session-pruning) - [Session tools](/concepts/session-tool) - [Queue](/concepts/queue) - [Slash commands](/tools/slash-commands) - [RPC adapters](/reference/rpc) - [TypeBox schemas](/concepts/typebox) - [Timezone handling](/concepts/timezone) - [Presence](/concepts/presence) - [Discovery + transports](/gateway/discovery) - [Bonjour](/gateway/bonjour) - [Channel routing](/concepts/channel-routing) - [Groups](/concepts/groups) - [Group messages](/concepts/group-messages) - [Model failover](/concepts/model-failover) - [OAuth](/concepts/oauth) ## Providers + ingress - [Chat channels hub](/channels) - [Model providers hub](/providers/models) - [WhatsApp](/channels/whatsapp) - [Telegram](/channels/telegram) - [Telegram (grammY notes)](/channels/grammy) - [Slack](/channels/slack) - [Discord](/channels/discord) - [Mattermost](/channels/mattermost) (plugin) - [Signal](/channels/signal) - [BlueBubbles (iMessage)](/channels/bluebubbles) - [iMessage (legacy)](/channels/imessage) - [Location parsing](/channels/location) - [WebChat](/web/webchat) - [Webhooks](/automation/webhook) - [Gmail Pub/Sub](/automation/gmail-pubsub) ## Gateway + operations - [Gateway runbook](/gateway) - [Network model](/gateway/network-model) - [Gateway pairing](/gateway/pairing) - [Gateway lock](/gateway/gateway-lock) - [Background process](/gateway/background-process) - [Health](/gateway/health) - [Heartbeat](/gateway/heartbeat) - [Doctor](/gateway/doctor) - [Logging](/gateway/logging) - [Sandboxing](/gateway/sandboxing) - [Dashboard](/web/dashboard) - [Control UI](/web/control-ui) - [Remote access](/gateway/remote) - [Remote gateway README](/gateway/remote-gateway-readme) - [Tailscale](/gateway/tailscale) - [Security](/gateway/security) - [Troubleshooting](/gateway/troubleshooting) ## Tools + automation - [Tools surface](/tools) - [OpenProse](/prose) - [CLI reference](/cli) - [Exec tool](/tools/exec) - [Elevated mode](/tools/elevated) - [Cron jobs](/automation/cron-jobs) - [Cron vs Heartbeat](/automation/cron-vs-heartbeat) - [Thinking + verbose](/tools/thinking) - [Models](/concepts/models) - [Sub-agents](/tools/subagents) - [Agent send CLI](/tools/agent-send) - [Terminal UI](/tui) - [Browser control](/tools/browser) - [Browser (Linux troubleshooting)](/tools/browser-linux-troubleshooting) - [Polls](/automation/poll) ## Nodes, media, voice - [Nodes overview](/nodes) - [Camera](/nodes/camera) - [Images](/nodes/images) - [Audio](/nodes/audio) - [Location command](/nodes/location-command) - [Voice wake](/nodes/voicewake) - [Talk mode](/nodes/talk) ## Platforms - [Platforms overview](/platforms) - [macOS](/platforms/macos) - [iOS](/platforms/ios) - [Android](/platforms/android) - [Windows (WSL2)](/platforms/windows) - [Linux](/platforms/linux) - [Web surfaces](/web) ## macOS companion app (advanced) - [macOS dev setup](/platforms/mac/dev-setup) - [macOS menu bar](/platforms/mac/menu-bar) - [macOS voice wake](/platforms/mac/voicewake) - [macOS voice overlay](/platforms/mac/voice-overlay) - [macOS WebChat](/platforms/mac/webchat) - [macOS Canvas](/platforms/mac/canvas) - [macOS child process](/platforms/mac/child-process) - [macOS health](/platforms/mac/health) - [macOS icon](/platforms/mac/icon) - [macOS logging](/platforms/mac/logging) - [macOS permissions](/platforms/mac/permissions) - [macOS remote](/platforms/mac/remote) - [macOS signing](/platforms/mac/signing) - [macOS release](/platforms/mac/release) - [macOS gateway (launchd)](/platforms/mac/bundled-gateway) - [macOS XPC](/platforms/mac/xpc) - [macOS skills](/platforms/mac/skills) - [macOS Peekaboo](/platforms/mac/peekaboo) ## Workspace + templates - [Skills](/tools/skills) - [ClawHub](/tools/clawhub) - [Skills config](/tools/skills-config) - [Default AGENTS](/reference/AGENTS.default) - [Templates: AGENTS](/reference/templates/AGENTS) - [Templates: BOOTSTRAP](/reference/templates/BOOTSTRAP) - [Templates: HEARTBEAT](/reference/templates/HEARTBEAT) - [Templates: IDENTITY](/reference/templates/IDENTITY) - [Templates: SOUL](/reference/templates/SOUL) - [Templates: TOOLS](/reference/templates/TOOLS) - [Templates: USER](/reference/templates/USER) ## Experiments (exploratory) - [Onboarding config protocol](/experiments/onboarding-config-protocol) - [Cron hardening notes](/experiments/plans/cron-add-hardening) - [Group policy hardening notes](/experiments/plans/group-policy-hardening) - [Research: memory](/experiments/research/memory) - [Model config exploration](/experiments/proposals/model-config) ## Project - [Credits](/reference/credits) ## Testing + release - [Testing](/reference/test) - [Release checklist](/reference/RELEASING) - [Device models](/reference/device-models)
https://github.com/openclaw/openclaw/blob/main//docs/start/hubs.md
main
opebclaw
[ 0.016365816816687584, -0.011620895005762577, -0.002352820010855794, 0.008045858703553677, 0.11218856275081635, 0.023367712274193764, -0.11758414655923843, 0.028343623504042625, -0.04983063414692879, -0.005967391189187765, -0.018421614542603493, 0.07191912829875946, -0.002811109647154808, -0.007947779260575771, -0.02358628809452057, -0.0013066144892945886, 0.025369366630911827, -0.06054933741688728, 0.05646265670657158, 0.019678249955177307, -0.0462433323264122, 0.06612943112850189, 0.005717047490179539, -0.032765407115221024, -0.038518261164426804, -0.033590931445360184, -0.037174470722675323, -0.02341187186539173, -0.03568005934357643, -0.036070000380277634, 0.0293384101241827, 0.06626346707344055, -0.006339229177683592, -0.029296930879354477, 0.05862010270357132, 0.06505773961544037, 0.07059958577156067, -0.011706649325788021, -0.08355796337127686, -0.03719770163297653, 0.0688009187579155, -0.034689366817474365, 0.02514176070690155, 0.027422526851296425, 0.0036528727505356073, -0.01534288004040718, -0.06462447345256805, -0.10082583129405975, 0.04995061829686165, 0.07725955545902252, -0.06556963920593262, -0.0747896134853363, 0.0015786702279001474, -0.03530658781528473, 0.029601644724607468, 0.11200489103794098, -0.0613497719168663, 0.043869178742170334, 0.007203284185379744, -0.05103163421154022, 0.08884297311306, 0.001255458453670144, -0.014594250358641148, -0.017662784084677696, -0.03492838144302368, -0.007969186641275883, -0.020722869783639908, -0.027147388085722923, 0.02383199706673622, -0.06099288910627365, -0.05960514396429062, 0.04229561984539032, -0.03600072115659714, -0.047317903488874435, -0.02185658924281597, 0.0003799351688940078, 0.02189604751765728, 0.004417800810188055, -0.08317387849092484, -0.12971173226833344, -0.01487134862691164, 0.037348423153162, -0.008753692731261253, 0.05741722136735916, -0.06829973310232162, 0.04786757379770279, 0.029926324263215065, -0.031577400863170624, 0.08458134531974792, 0.029342349618673325, -0.005705486051738262, -0.13655079901218414, 0.025189734995365143, -0.05933097004890442, -0.014321232214570045, 0.047848861664533615, -0.046501465141773224, -0.02601081319153309, 0.04238652437925339, 0.06787262856960297, 0.015383568592369556, 0.026206981390714645, 0.09733863174915314, 0.0006722203688696027, -0.055541928857564926, 0.052238829433918, -0.012053342536091805, 0.06728141009807587, 0.01088576391339302, -0.019927581772208214, 0.027077484875917435, -0.0018586823716759682, -0.04230669140815735, -0.06280389428138733, -0.03161536902189255, 0.02156742289662361, -0.01663965918123722, -0.04879637807607651, 0.024447843432426453, 0.05982830002903938, 0.028234653174877167, 0.05667944997549057, 0.08897846192121506, 0.0019370721420273185, 0.005769645795226097, 0.07313558459281921, -0.010437389835715294, -1.1065450868263331e-33, 0.04034782946109772, -0.040797606110572815, -0.08722136914730072, 0.10491667687892914, 0.12082719057798386, -0.019610611721873283, 0.03628489747643471, 0.012745208106935024, -0.041549716144800186, 0.04187212139368057, 0.007719900459051132, 0.13937677443027496, -0.03989856690168381, -0.04199398308992386, -0.029646791517734528, -0.06203654780983925, -0.05852033197879791, 0.02312605082988739, -0.053851168602705, -0.06971726566553116, -0.03561705723404884, -0.022299908101558685, -0.05916067212820053, -0.013311970047652721, 0.07035519927740097, 0.0444306880235672, 0.004604031797498465, 0.017939677461981773, 0.00650014029815793, 0.0061923060566186905, -0.002774673979729414, -0.014395512640476227, -0.0291905514895916, -0.042009685188531876, -0.019094496965408325, 0.0064551993273198605, -0.058779142796993256, -0.07071343064308167, -0.03613672032952309, 0.020884782075881958, -0.11007815599441528, -0.03544458746910095, -0.0713634043931961, -0.08303063362836838, -0.022390007972717285, -0.044876597821712494, -0.03428081423044205, -0.011050360277295113, 0.2009398490190506, 0.011793781071901321, -0.04509865865111351, -0.08769300580024719, 0.015780804678797722, 0.03291992098093033, -0.029407059773802757, -0.031228745356202126, -0.10159920156002045, 0.024043163284659386, 0.05739983543753624, 0.00010806461068568751, -0.005560458637773991, -0.013081452809274197, -0.04399096593260765, -0.003729055868461728, -0.054522980004549026, 0.029484136030077934, 0.04410454258322716, 0.0764797106385231, 0.03418094292283058, -0.030998701229691505, -0.03138335794210434, -0.0198090597987175, 0.06111818924546242, 0.03311406448483467, 0.04320912063121796, 0.01618340238928795, -0.08598415553569794, -0.043396513909101486, -0.02789401449263096, 0.02651575207710266, 0.03381647542119026, 0.010458585806190968, -0.033089470118284225, 0.08470737189054489, 0.057540182024240494, -0.015063697472214699, 0.0480877161026001, -0.005265344865620136, 0.015624891966581345, 0.048591822385787964, -0.02679981105029583, 0.07978605479001999, -0.017260467633605003, -0.019920332357287407, -0.029404213652014732, -8.417725148142978e-34, 0.032928355038166046, -0.027189239859580994, -0.029620328918099403, 0.002773566637188196, 0.018505627289414406, 0.033263273537158966, 0.09807039797306061, -0.024010753259062767, -0.013195743784308434, -0.014782125130295753, 0.01753889210522175, 0.09586727619171143, 0.026346834376454353, -0.03093484416604042, -0.04073946923017502, 0.025648076087236404, -0.02889050729572773, -0.029247187077999115, 0.024632535874843597, 0.06100477650761604, -0.031468506902456284, 0.01275265496224165, -0.0741928443312645, -0.016732821241021156, 0.02928500808775425, 0.0248116347938776, 0.07564058899879456, 0.0339319184422493, -0.08807289600372314, -0.008881689980626106, 0.02628129906952381, 0.03160819038748741, -0.010990701615810394, 0.061063501983881, 0.02591332048177719, 0.050470735877752304, -0.04236703738570213, 0.07621607929468155, -0.07837367802858353, -0.05194544047117233, 0.09077917784452438, -0.07915207743644714, -0.032920654863119125, -0.00022026515216566622, -0.05297842249274254, -0.017652243375778198, 0.02281424216926098, -0.026962412521243095, -0.07385068386793137, -0.020177626982331276, 0.011774585582315922, -0.049289580434560776, 0.05042634159326553, -0.052250854671001434, -0.03877568989992142, 0.08716907352209091, 0.07918209582567215, 0.020919008180499077, 0.020718369632959366, 0.04572935029864311, 0.10058712214231491, -0.01109316386282444, -0.09227657318115234, 0.055251460522413254, -0.03704895079135895, -0.09181980043649673, -0.0632551833987236, 0.058098990470170975, -0.1355762928724289, -0.028966739773750305, -0.07120630890130997, -0.012244298122823238, 0.04716615751385689, -0.08489765971899033, 0.023614246398210526, 0.018747368827462196, 0.10359973460435867, -0.05118986964225769, 0.0072268336080014706, -0.03882159665226936, 0.0021904699970036745, 0.007582305930554867, -0.015647849068045616, -0.05328843742609024, 0.022439975291490555, 0.016282357275485992, -0.06361863762140274, 0.05447541922330856, -0.004278129898011684, 0.035458099097013474, -0.12225718796253204, 0.01752621866762638, -0.00892429705709219, 0.08642235398292542, -0.02103765867650509, -5.758673182754137e-8, -0.07528653740882874, 0.031099675223231316, -0.040664318948984146, 0.0012972831027582288, 0.03055821731686592, 0.008873697370290756, 0.08158920705318451, 0.15349063277244568, -0.08495241403579712, 0.024857860058546066, 0.020649852231144905, -0.027918292209506035, -0.08801130205392838, 0.042909447103738785, 0.00961281731724739, 0.0345824733376503, 0.016662631183862686, 0.041900377720594406, -0.044345054775476456, -0.041429225355386734, -0.037786200642585754, 0.02099086530506611, 0.039490945637226105, -0.03127610683441162, -0.03501652553677559, 0.015464352443814278, 0.018753016367554665, 0.05961534008383751, 0.02891327254474163, -0.04282881319522858, -0.0005297437310218811, 0.05046611651778221, -0.053281184285879135, -0.031815119087696075, -0.014696507714688778, 0.056162990629673004, -0.07125227898359299, 0.0650344267487526, 0.010118539445102215, -0.04199677333235741, -0.03688403218984604, 0.01626940816640854, 0.019237644970417023, -0.050614144653081894, -0.016872283071279526, 0.05240931361913681, -0.09062232077121735, 0.004687945824116468, 0.003482941770926118, -0.04235527664422989, -0.07721701264381409, -0.04499301686882973, 0.09574449062347412, 0.04933378845453262, 0.03697584569454193, 0.07895968109369278, 0.05682136118412018, -0.04502607509493828, 0.034962136298418045, -0.029690198600292206, -0.04851251840591431, 0.09719441831111908, 0.05278341844677925, 0.03662702068686485 ]
0.031116
# Onboarding (macOS app) This doc describes the \*\*current\*\* first‑run onboarding flow. The goal is a smooth “day 0” experience: pick where the Gateway runs, connect auth, run the wizard, and let the agent bootstrap itself. ## Page order (current) 1. Welcome + security notice 2. \*\*Gateway selection\*\* (Local / Remote / Configure later) 3. \*\*Auth (Anthropic OAuth)\*\* — local only 4. \*\*Setup Wizard\*\* (Gateway‑driven) 5. \*\*Permissions\*\* (TCC prompts) 6. \*\*CLI\*\* (optional) 7. \*\*Onboarding chat\*\* (dedicated session) 8. Ready ## 1) Welcome + security notice Read the security notice displayed and decide accordingly. ## 2) Local vs Remote Where does the \*\*Gateway\*\* run? - \*\*Local (this Mac):\*\* onboarding can run OAuth flows and write credentials locally. - \*\*Remote (over SSH/Tailnet):\*\* onboarding does \*\*not\*\* run OAuth locally; credentials must exist on the gateway host. - \*\*Configure later:\*\* skip setup and leave the app unconfigured. Gateway auth tip: - The wizard now generates a \*\*token\*\* even for loopback, so local WS clients must authenticate. - If you disable auth, any local process can connect; use that only on fully trusted machines. - Use a \*\*token\*\* for multi‑machine access or non‑loopback binds. ## 3) Local-only auth (Anthropic OAuth) The macOS app supports Anthropic OAuth (Claude Pro/Max). The flow: - Opens the browser for OAuth (PKCE) - Asks the user to paste the `code#state` value - Writes credentials to `~/.openclaw/credentials/oauth.json` Other providers (OpenAI, custom APIs) are configured via environment variables or config files for now. ## 4) Setup Wizard (Gateway‑driven) The app can run the same setup wizard as the CLI. This keeps onboarding in sync with Gateway‑side behavior and avoids duplicating logic in SwiftUI. ## 5) Permissions Onboarding requests TCC permissions needed for: - Notifications - Accessibility - Screen Recording - Microphone / Speech Recognition - Automation (AppleScript) ## 6) CLI (optional) The app can install the global `openclaw` CLI via npm/pnpm so terminal workflows and launchd tasks work out of the box. ## 7) Onboarding chat (dedicated session) After setup, the app opens a dedicated onboarding chat session so the agent can introduce itself and guide next steps. This keeps first‑run guidance separate from your normal conversation. ## Agent bootstrap ritual On the first agent run, OpenClaw bootstraps a workspace (default `~/.openclaw/workspace`): - Seeds `AGENTS.md`, `BOOTSTRAP.md`, `IDENTITY.md`, `USER.md` - Runs a short Q&A ritual (one question at a time) - Writes identity + preferences to `IDENTITY.md`, `USER.md`, `SOUL.md` - Removes `BOOTSTRAP.md` when finished so it only runs once ## Optional: Gmail hooks (manual) Gmail Pub/Sub setup is currently a manual step. Use: ```bash openclaw webhooks gmail setup --account you@gmail.com ``` See [/automation/gmail-pubsub](/automation/gmail-pubsub) for details. ## Remote mode notes When the Gateway runs on another machine, credentials and workspace files live \*\*on that host\*\*. If you need OAuth in remote mode, create: - `~/.openclaw/credentials/oauth.json` - `~/.openclaw/agents//agent/auth-profiles.json` on the gateway host.
https://github.com/openclaw/openclaw/blob/main//docs/start/onboarding.md
main
opebclaw
[ -0.0002887464943341911, -0.002381933620199561, -0.039116956293582916, -0.03823782876133919, 0.030272725969552994, -0.036452267318964005, 0.06674256920814514, -0.005292846821248531, 0.036074358969926834, 0.011596319265663624, 0.02912609465420246, 0.012355811893939972, 0.03764485567808151, 0.03078196756541729, 0.04416951164603233, 0.05462319403886795, 0.08549607545137405, -0.10337763279676437, 0.005946380086243153, 0.03544775769114494, 0.00627767713740468, -0.06247260794043541, -0.05038454756140709, 0.00965418852865696, -0.05350177362561226, -0.07714979350566864, 0.08248711377382278, 0.02092762291431427, -0.0036125958431512117, 0.007517268881201744, -0.057504620403051376, 0.04106150567531586, -0.03868139535188675, 0.01066483836621046, 0.03137258067727089, 0.018442049622535706, 0.1250356137752533, 0.014199684374034405, -0.07739969342947006, -0.06621155887842178, 0.04494692012667656, -0.10300283133983612, 0.004677784163504839, 0.05632130429148674, 0.02528758905827999, -0.03321101889014244, -0.004308423027396202, -0.04433612525463104, 0.026751188561320305, 0.06056654453277588, 0.011642311699688435, -0.010558117181062698, 0.0033625715877860785, 0.062420669943094254, -0.0479888953268528, 0.08375371247529984, -0.034151263535022736, -0.03643214330077171, 0.06474122405052185, 0.0011265093926340342, 0.001453831559047103, -0.019778521731495857, 0.01290046889334917, 0.05785936489701271, -0.07265976816415787, -0.025665927678346634, -0.06884964555501938, -0.08016858994960785, -0.008557343855500221, -0.04312719404697418, -0.03810243308544159, -0.019682323560118675, -0.06666476279497147, -0.028838111087679863, -0.01732904650270939, 0.015264959074556828, -0.00989285297691822, -0.024238793179392815, -0.024223992601037025, -0.15416663885116577, 0.023467568680644035, 0.05977602303028107, -0.048500049859285355, 0.052693746984004974, -0.03763538971543312, 0.03399196267127991, 0.02173992060124874, -0.008722296915948391, 0.043330006301403046, 0.08240894973278046, 0.01191096194088459, -0.007271136622875929, -0.0019314829260110855, -0.031030472368001938, 0.056578461080789566, 0.009786184877157211, -0.045647457242012024, -0.07160331308841705, -0.04688132926821709, 0.006843163166195154, -0.04009224474430084, 0.017894532531499863, 0.032215747982263565, 0.056517910212278366, 0.016936957836151123, -0.02532918006181717, 0.032492343336343765, -0.05192502215504646, 0.12269730120897293, 0.0026567592285573483, -0.07259873300790787, -0.04669472202658653, 0.03190802037715912, 0.04575135558843613, 0.01638103276491165, 0.09980625659227371, -0.026091033592820168, 0.043722838163375854, 0.07547176629304886, 0.05470311641693115, 0.06173563376069069, -0.06415816396474838, 0.08821775764226913, -0.03376747667789459, 0.08394887298345566, -0.029078615829348564, 0.022001344710588455, 5.949552333019891e-33, -0.016360579058527946, -0.04194255918264389, -0.036433134227991104, 0.07168807834386826, 0.12718509137630463, -0.07621460407972336, 0.07544799149036407, -0.02648448944091797, -0.07662585377693176, 0.04492904245853424, -0.09051583707332611, 0.044276025146245956, 0.06771541386842728, 0.043077871203422546, 0.02551233395934105, -0.043297745287418365, -0.01444177981466055, 0.008284618146717548, 0.06184470281004906, 0.04423549398779869, 0.06204208731651306, -0.0565006248652935, 0.04388292506337166, 0.013556364923715591, 0.05123213306069374, 0.002862991765141487, -0.06310413032770157, 0.011185385286808014, 0.06258153170347214, 0.03619363531470299, -0.007003220729529858, -0.04859655350446701, -0.050922419875860214, 0.022858425974845886, -0.033482205122709274, -0.021016813814640045, -0.030888700857758522, -0.0888461172580719, 0.022311368957161903, 0.03560858592391014, -0.10319175571203232, -0.0984639897942543, -0.03433024138212204, -0.06821291893720627, -0.0363384410738945, -0.08494854718446732, -0.06997846066951752, -0.007047863677144051, 0.05143081024289131, 0.07721249759197235, -0.1320568472146988, 0.023801080882549286, 0.026975220069289207, -0.03461331129074097, -0.014629600569605827, -0.08967974781990051, -0.08868073672056198, 0.018122633919119835, -0.02889222279191017, -0.06546182930469513, -0.02392875961959362, 0.04195307940244675, -0.07551354169845581, 0.0067327581346035, 0.023539775982499123, -0.017539789900183678, -0.020251214504241943, -0.019084999337792397, -0.011686399579048157, -0.04981476068496704, -0.07717611640691757, 0.06353099644184113, -0.0037811289075762033, 0.006604770198464394, -0.05426295846700668, -0.015536920167505741, -0.01488589495420456, 0.11282654851675034, 0.03669454902410507, 0.011684412136673927, 0.000026678439098759554, 0.012892956845462322, -0.04638637602329254, 0.09725075960159302, 0.019835662096738815, 0.03469551354646683, -0.00044849992264062166, -0.06323520839214325, -0.011811253614723682, 0.08224395662546158, -0.0014673409750685096, 0.0334601104259491, 0.041624005883932114, 0.05802172049880028, -0.08788619935512543, -7.725649359347502e-33, 0.06654908508062363, -0.050216540694236755, -0.0015719884540885687, 0.012055300176143646, -0.020419156178832054, 0.03554678335785866, 0.06682270765304565, -0.023781640455126762, -0.0061417981050908566, -0.05055328086018562, -0.03161134570837021, 0.11325801908969879, 0.03179420903325081, -0.08545957505702972, 0.07142644375562668, -0.02644272893667221, -0.012616203166544437, 0.04167505353689194, -0.034466180950403214, 0.02008657529950142, 0.01954788900911808, 0.05068797245621681, -0.037145648151636124, -0.029470477253198624, 0.07111462950706482, 0.003744431771337986, 0.022390566766262054, 0.05745389685034752, -0.11754007637500763, 0.0008290570694953203, -0.0014941251138225198, 0.07163558155298233, -0.04182984679937363, 0.004490835126489401, -0.02027762122452259, 0.03756634145975113, 0.011259639635682106, 0.09953014552593231, -0.024720221757888794, 0.019924310967326164, 0.12099073082208633, -0.04344337806105614, -0.07046923041343689, -0.030900847166776657, -0.006843979470431805, 0.0415041409432888, -0.06358811259269714, 0.0036749434657394886, -0.10472805798053741, 0.013892244547605515, 0.003888901090249419, -0.03225170820951462, 0.056592907756567, 0.06790599226951599, -0.025287780910730362, 0.07883767783641815, 0.10307297110557556, -0.021977467462420464, 0.06443794816732407, -0.07014819979667664, 0.05361253768205643, -0.057065725326538086, 0.0033089069183915854, 0.04692864790558815, -0.03715440258383751, -0.035594549030065536, -0.019006600603461266, 0.10983336716890335, -0.004291869699954987, 0.03318138048052788, -0.007165365386754274, -0.07636405527591705, -0.02044486626982689, -0.01725769229233265, 0.0061860461719334126, 0.01480131410062313, 0.08460988104343414, -0.12151125818490982, -0.06080527976155281, 0.0076208156533539295, -0.018873263150453568, 0.05030636861920357, -0.06742845475673676, -0.013370729051530361, -0.027078397572040558, -0.013809841126203537, -0.018133064731955528, 0.08791548758745193, 0.06446196883916855, 0.014474931173026562, -0.05489039048552513, 0.0021078067366033792, -0.04645605757832527, -0.002726293634623289, -0.0217147096991539, -5.353382093176151e-8, -0.0712522342801094, -0.04961984604597092, -0.011186309158802032, 0.0124856848269701, 0.006720283534377813, 0.029543383046984673, -0.012945946305990219, -0.0782613754272461, 0.01290635671466589, -0.020013373345136642, 0.05441054329276085, 0.00549993384629488, -0.010523561388254166, -0.056571945548057556, -0.06313667446374893, 0.07289613038301468, -0.02842099778354168, 0.0038800956681370735, -0.010153825394809246, -0.0889122486114502, -0.022129029035568237, -0.03598810359835625, -0.019096102565526962, 0.04237504303455353, -0.06301670521497726, 0.04696755111217499, 0.006767963524907827, 0.025766119360923767, -0.09733319282531738, 0.027217969298362732, -0.07947923988103867, 0.0247957780957222, -0.032255250960588455, 0.02275964990258217, -0.062160056084394455, 0.06258542835712433, -0.05014593526721001, -0.02790302224457264, -0.024540353566408157, -0.04570164903998375, -0.011145669035613537, 0.0017877049976959825, 0.0016007599188014865, -0.08451219648122787, 0.008282497525215149, 0.014556295238435268, -0.11832356452941895, -0.00631781667470932, 0.017985966056585312, -0.025257721543312073, -0.0002731184649746865, -0.015496380627155304, 0.029150646179914474, 0.1112593486905098, 0.06514183431863785, 0.032030001282691956, 0.03209855407476425, -0.09198515862226486, 0.048451926559209824, 0.0495300367474556, -0.047747183591127396, 0.09144352376461029, 0.025370793417096138, -0.07113904505968094 ]
0.121743
# acp Run the ACP (Agent Client Protocol) bridge that talks to a OpenClaw Gateway. This command speaks ACP over stdio for IDEs and forwards prompts to the Gateway over WebSocket. It keeps ACP sessions mapped to Gateway session keys. ## Usage ```bash openclaw acp # Remote Gateway openclaw acp --url wss://gateway-host:18789 --token # Attach to an existing session key openclaw acp --session agent:main:main # Attach by label (must already exist) openclaw acp --session-label "support inbox" # Reset the session key before the first prompt openclaw acp --session agent:main:main --reset-session ``` ## ACP client (debug) Use the built-in ACP client to sanity-check the bridge without an IDE. It spawns the ACP bridge and lets you type prompts interactively. ```bash openclaw acp client # Point the spawned bridge at a remote Gateway openclaw acp client --server-args --url wss://gateway-host:18789 --token # Override the server command (default: openclaw) openclaw acp client --server "node" --server-args openclaw.mjs acp --url ws://127.0.0.1:19001 ``` ## How to use this Use ACP when an IDE (or other client) speaks Agent Client Protocol and you want it to drive a OpenClaw Gateway session. 1. Ensure the Gateway is running (local or remote). 2. Configure the Gateway target (config or flags). 3. Point your IDE to run `openclaw acp` over stdio. Example config (persisted): ```bash openclaw config set gateway.remote.url wss://gateway-host:18789 openclaw config set gateway.remote.token ``` Example direct run (no config write): ```bash openclaw acp --url wss://gateway-host:18789 --token ``` ## Selecting agents ACP does not pick agents directly. It routes by the Gateway session key. Use agent-scoped session keys to target a specific agent: ```bash openclaw acp --session agent:main:main openclaw acp --session agent:design:main openclaw acp --session agent:qa:bug-123 ``` Each ACP session maps to a single Gateway session key. One agent can have many sessions; ACP defaults to an isolated `acp:` session unless you override the key or label. ## Zed editor setup Add a custom ACP agent in `~/.config/zed/settings.json` (or use Zed’s Settings UI): ```json { "agent\_servers": { "OpenClaw ACP": { "type": "custom", "command": "openclaw", "args": ["acp"], "env": {} } } } ``` To target a specific Gateway or agent: ```json { "agent\_servers": { "OpenClaw ACP": { "type": "custom", "command": "openclaw", "args": [ "acp", "--url", "wss://gateway-host:18789", "--token", "", "--session", "agent:design:main" ], "env": {} } } } ``` In Zed, open the Agent panel and select “OpenClaw ACP” to start a thread. ## Session mapping By default, ACP sessions get an isolated Gateway session key with an `acp:` prefix. To reuse a known session, pass a session key or label: - `--session `: use a specific Gateway session key. - `--session-label `: resolve an existing session by label. - `--reset-session`: mint a fresh session id for that key (same key, new transcript). If your ACP client supports metadata, you can override per session: ```json { "\_meta": { "sessionKey": "agent:main:main", "sessionLabel": "support inbox", "resetSession": true } } ``` Learn more about session keys at [/concepts/session](/concepts/session). ## Options - `--url `: Gateway WebSocket URL (defaults to gateway.remote.url when configured). - `--token `: Gateway auth token. - `--password `: Gateway auth password. - `--session `: default session key. - `--session-label `: default session label to resolve. - `--require-existing`: fail if the session key/label does not exist. - `--reset-session`: reset the session key before first use. - `--no-prefix-cwd`: do not prefix prompts with the working directory. - `--verbose, -v`: verbose logging to stderr. ### `acp client` options - `--cwd `: working directory for the ACP session. - `--server `: ACP server command (default: `openclaw`). - `--server-args `: extra arguments passed to the ACP server. - `--server-verbose`: enable verbose logging on the ACP server. - `--verbose, -v`: verbose
https://github.com/openclaw/openclaw/blob/main//docs/cli/acp.md
main
opebclaw
[ -0.0571393147110939, 0.04138675704598427, -0.0985761508345604, 0.03829837217926979, -0.03383404761552811, -0.050389524549245834, 0.02767016738653183, 0.05545726418495178, 0.048603303730487823, -0.019391551613807678, -0.00995563343167305, -0.03703732788562775, 0.03689863160252571, -0.04383819177746773, 0.03600599616765976, 0.10483673959970474, 0.05634262412786484, -0.0861869603395462, 0.06424546986818314, -0.07468679547309875, -0.08194301277399063, -0.017107704654335976, -0.04087397828698158, -0.08596019446849823, -0.07663130015134811, -0.0791732594370842, 0.025501258671283722, -0.011539276689291, -0.05852189660072327, -0.006726132705807686, 0.05243583023548126, -0.00483639445155859, -0.10533609241247177, 0.010045611299574375, 0.02529384382069111, 0.06747879087924957, 0.06685353815555573, -0.006914440542459488, 0.027703266590833664, -0.007004557177424431, 0.05188920348882675, 0.020758390426635742, 0.009398575872182846, 0.06843137741088867, -0.05295838788151741, -0.030405180528759956, -0.10276293009519577, 0.004399334080517292, -0.016516974195837975, 0.019739078357815742, -0.04603363946080208, 0.016933966428041458, 0.01651472970843315, 0.024275852367281914, -0.06747912615537643, 0.012057331390678883, -0.001661699265241623, -0.022689511999487877, 0.04199822247028351, -0.01844385266304016, -0.04141560196876526, -0.01853579841554165, 0.0025961059145629406, 0.06477610021829605, -0.14578242599964142, 0.023571018129587173, 0.002072777133435011, -0.022550642490386963, -0.03414813056588173, 0.01499923225492239, -0.03245603293180466, -0.02855885587632656, -0.04303087666630745, -0.033771075308322906, 0.04123322293162346, -0.023908808827400208, 0.017171774059534073, -0.03680262714624405, -0.040225256234407425, -0.003627411089837551, -0.04771409556269646, 0.03556988015770912, -0.07329012453556061, 0.005951749626547098, 0.011691400781273842, 0.054597675800323486, 0.003921556286513805, 0.06928182393312454, -0.014370393007993698, 0.09093867987394333, -0.057832080870866776, -0.08791641891002655, -0.060735344886779785, 0.03542853519320488, 0.044312626123428345, 0.053270917385816574, 0.03371996805071831, -0.03911733627319336, -0.07549824565649033, 0.07118287682533264, -0.022872194647789, 0.04833657294511795, 0.0037635578773915768, -0.0010708803310990334, -0.042306143790483475, 0.012360023334622383, 0.03876408562064171, 0.0841757133603096, 0.0659618228673935, 0.022013839334249496, -0.06320029497146606, -0.0562530979514122, 0.055955369025468826, -0.029209908097982407, -0.022127432748675346, 0.07149423658847809, 0.001023501972667873, -0.017206132411956787, 0.026134716346859932, 0.03948653116822243, 0.10339558869600296, -0.015548059716820717, -0.04311902076005936, 0.07086257636547089, 0.056428100913763046, -0.01697772741317749, 0.09189800173044205, 5.970834290899544e-33, 0.010650492273271084, -0.020776262506842613, -0.04723459854722023, 0.010519296862185001, 0.13089820742607117, 0.06040238216519356, 0.05360115319490433, 0.02715483494102955, -0.0725758969783783, 0.056300874799489975, -0.01502689067274332, 0.020299114286899567, 0.01739097200334072, -0.1125151515007019, -0.05186844617128372, -0.06197594851255417, -0.08003776520490646, 0.06260357052087784, 0.02303965575993061, -0.059332117438316345, 0.007385849487036467, -0.05527932196855545, 0.05106187239289284, 0.060536473989486694, 0.056037537753582, 0.020034044981002808, -0.05286167562007904, 0.027365028858184814, 0.021137451753020287, 0.03164926916360855, 0.07467527687549591, 0.043998006731271744, -0.09857077896595001, 0.0475873202085495, -0.06336600333452225, -0.008215563371777534, -0.06439907848834991, -0.07925049960613251, -0.031023796647787094, -0.004373625852167606, 0.022859323769807816, -0.06293056160211563, -0.004039752297103405, 0.006524993572384119, 0.021228186786174774, -0.15288588404655457, -0.11699827015399933, 0.07205025851726532, -0.019536862149834633, 0.02866077609360218, -0.009698886424303055, 0.07783155143260956, 0.004679990001022816, -0.025896014645695686, -0.01674846187233925, -0.03591364994645119, -0.11862330883741379, 0.024876361712813377, -0.007309176027774811, -0.03804302588105202, 0.012475556693971157, 0.05701019614934921, -0.02455391362309456, -0.04664117097854614, -0.04565715789794922, 0.020790979266166687, -0.045714061707258224, 0.0509369894862175, 0.011136381886899471, -0.02780192717909813, -0.0016316851833835244, -0.006834569852799177, -0.001183512038551271, 0.0717240646481514, -0.02215437777340412, 0.04914453625679016, -0.0012811548076570034, 0.05618928000330925, 0.09508376568555832, 0.0025731525383889675, -0.01015403214842081, 0.019318941980600357, -0.0027930974029004574, 0.05998337268829346, 0.06834562867879868, -0.0016069338889792562, -0.0020797906909137964, -0.037308696657419205, -0.015431768260896206, 0.05428112670779228, -0.025585142895579338, 0.07501277327537537, -0.016736499965190887, 0.022797930985689163, 0.027030546218156815, -7.293443596437164e-33, -0.0007040095515549183, -0.011488321237266064, -0.07281573116779327, -0.023663638159632683, 0.0013905734522268176, -0.027519935742020607, 0.04159649461507797, -0.08014853298664093, -0.06712411344051361, -0.044646233320236206, 0.004939480684697628, 0.10867846757173538, 0.018514279276132584, -0.06912286579608917, 0.08505146205425262, -0.0786379724740982, 0.017808740958571434, -0.013142756186425686, 0.040160492062568665, 0.05886901915073395, -0.003431313671171665, 0.03085451014339924, -0.01262197457253933, -0.03600618988275528, 0.03684086725115776, 0.02724277600646019, 0.04366042837500572, 0.03596581891179085, 0.03300123289227486, 0.0076943933963775635, 0.027582302689552307, 0.08815014362335205, -0.011518050916492939, 0.018373137339949608, -0.010296397842466831, 0.044965311884880066, 0.009417159482836723, 0.06150642782449722, -0.05751750245690346, 0.047499094158411026, 0.17342399060726166, -0.04743952676653862, -0.0891464427113533, 0.007205244619399309, 0.002810017904266715, 0.06036648899316788, -0.03783058002591133, -0.023299874737858772, -0.0726490318775177, 0.005664187017828226, -0.031261518597602844, 0.025108687579631805, 0.006559890694916248, -0.02808055281639099, -0.010269162245094776, 0.10168079286813736, 0.019609035924077034, -0.01377008855342865, 0.0002978317497763783, -0.11733728647232056, 0.03185813128948212, -0.014635633677244186, 0.05836111679673195, 0.14044439792633057, 0.005602834280580282, -0.1257961392402649, -0.04064635932445526, -0.008154990151524544, -0.03869646415114403, -0.03959983214735985, -0.0050813485868275166, 0.03171923756599426, -0.025974469259381294, -0.042025525122880936, 0.08879761397838593, -0.005854412913322449, 0.035686347633600235, -0.07914765924215317, -0.045127321034669876, -0.008565704338252544, -0.06557217985391617, 0.037248022854328156, 0.02635067328810692, 0.0038094529882073402, -0.05985752493143082, -0.01592920534312725, -0.04480200260877609, 0.12069331109523773, 0.030399495735764503, 0.0675840973854065, -0.0797518864274025, 0.0679401084780693, -0.004998896270990372, -0.024774907156825066, 0.005340205039829016, -5.2490825908080296e-8, -0.041864585131406784, 0.027576658874750137, 0.009671579115092754, 0.011042796075344086, -0.048141125589609146, 0.011279932223260403, -0.07595633715391159, -0.07891178131103516, -0.07940862327814102, -0.04606826230883598, 0.018478190526366234, 0.03953183814883232, 0.01639091968536377, 0.0014605222968384624, -0.02631814405322075, 0.035066716372966766, 0.008595301769673824, -0.05746389180421829, 0.03627645596861839, -0.037297312170267105, -0.07619641721248627, -0.030192842707037926, 0.061759788542985916, 0.09325286000967026, -0.06424815952777863, 0.0018143468769267201, -0.0533151850104332, -0.0374414324760437, -0.06543558090925217, -0.005638607311993837, -0.07131928950548172, 0.008053608238697052, 0.05681469663977623, -0.01649777777493, 0.029500434175133705, 0.049962118268013, -0.037883829325437546, -0.054385535418987274, -0.02204747498035431, -0.03460792079567909, 0.02075607143342495, 0.026156244799494743, -0.0350918285548687, -0.04059767723083496, -0.0271807461977005, 0.0675288662314415, 0.0029728501103818417, 0.022362442687153816, 0.002274187048897147, 0.012501293793320656, -0.018241172656416893, -0.03060571290552616, 0.0015631738351657987, 0.014146285131573677, 0.06976645439863205, 0.06702925264835358, 0.03587372228503227, -0.1340089738368988, -0.009484173730015755, 0.030260618776082993, -0.07561604678630829, 0.1136539876461029, 0.002448529237881303, -0.07688875496387482 ]
0.069614
`--verbose, -v`: verbose logging to stderr. ### `acp client` options - `--cwd `: working directory for the ACP session. - `--server `: ACP server command (default: `openclaw`). - `--server-args `: extra arguments passed to the ACP server. - `--server-verbose`: enable verbose logging on the ACP server. - `--verbose, -v`: verbose client logging.
https://github.com/openclaw/openclaw/blob/main//docs/cli/acp.md
main
opebclaw
[ -0.030807705596089363, 0.04047200828790665, -0.09583831578493118, 0.03840436786413193, 0.014586404897272587, -0.06738155335187912, -0.03271752595901489, -0.016967859119176865, 0.0018754374468699098, 0.033033616840839386, 0.07490407675504684, -0.02558531053364277, -0.026206158101558685, -0.0011813333258032799, -0.032616935670375824, 0.023493031039834023, 0.019227057695388794, -0.05431012809276581, 0.061196018010377884, -0.07121603935956955, -0.03638792783021927, 0.06304600089788437, -0.04075461998581886, -0.029548905789852142, 0.005473689176142216, -0.062149059027433395, -0.04395471513271332, -0.07121007889509201, -0.012998619116842747, 0.011088266968727112, 0.04524028301239014, 0.007236540783196688, -0.09412925690412521, 0.08724948763847351, 0.06208941340446472, 0.0728440210223198, 0.04982205107808113, -0.07484716922044754, -0.0038961220998317003, 0.012066887691617012, 0.06271284818649292, 0.04219131916761398, -0.035047680139541626, 0.0770975723862648, -0.14202554523944855, -0.07058282196521759, -0.07357393950223923, 0.0021878883708268404, -0.04843035712838173, 0.006221462972462177, -0.021423164755105972, 0.06191596761345863, 0.011100765317678452, -0.09385215491056442, -0.023544447496533394, 0.011950759217143059, -0.061211589723825455, -0.03045152686536312, 0.003914418164640665, -0.022763200104236603, -0.02772756852209568, 0.023852204903960228, -0.02277558110654354, 0.0025925380177795887, -0.05343727767467499, 0.009145823307335377, 0.03520146757364273, 0.009177042171359062, -0.010636268183588982, 0.08638014644384384, -0.10173365473747253, -0.027365965768694878, -0.07684285193681717, -0.07113441824913025, 0.00986233539879322, -0.020796213299036026, 0.000517070759087801, -0.018232213333249092, 0.0009781052358448505, -0.06447673588991165, -0.028157413005828857, 0.00792690645903349, -0.04568907618522644, 0.057674262672662735, 0.007623076904565096, 0.04169166088104248, -0.0002867056173272431, 0.050847265869379044, 0.016767039895057678, 0.08170132339000702, -0.03270871564745903, -0.10475709289312363, -0.07499929517507553, 0.05892917513847351, -0.06953209638595581, -0.01790679432451725, 0.03118034452199936, 0.07514411211013794, -0.04726864770054817, 0.03609811142086983, 0.005855424329638481, 0.11558032780885696, 0.07874186336994171, -0.05726604908704758, -0.09120645374059677, -0.018563972786068916, 0.018492456525564194, 0.07816650718450546, 0.04594515264034271, 0.015533777885138988, -0.012200383469462395, 0.025080306455492973, -0.016856282949447632, -0.06461726874113083, 0.12268459051847458, 0.09858838468790054, -0.07755410671234131, -0.02535550855100155, 0.005666801240295172, 0.014112453907728195, 0.04800775274634361, -0.011522950604557991, -0.08501686155796051, 0.06743806600570679, 0.1126774251461029, -0.03162490949034691, 0.11552748084068298, 1.7531258463316285e-33, 0.023654941469430923, -0.013277201913297176, -0.021186355501413345, 0.022398648783564568, 0.0844106525182724, 0.07997265458106995, -0.02607136219739914, 0.057011861354112625, -0.01792762614786625, 0.10838954895734787, 0.0017729836981743574, -0.044480931013822556, -0.04354288429021835, -0.04771122336387634, 0.03354714810848236, -0.06517139077186584, -0.05138658359646797, 0.007080588024109602, 0.00450101075693965, -0.0418919175863266, -0.010266059078276157, 0.02909063547849655, -0.03525196760892868, 0.02517317794263363, 0.046960242092609406, 0.048461273312568665, -0.019398489966988564, -0.007096686866134405, -0.05431594327092171, 0.0121004618704319, 0.06370381265878677, 0.04813027381896973, -0.03765945881605148, 0.020387358963489532, 0.010593731887638569, 0.0022119933273643255, -0.06576595455408096, -0.026796463876962662, -0.057763196527957916, -0.006094221491366625, -0.01175215095281601, 0.007965298369526863, -0.07154998928308487, 0.01765153929591179, 0.041179779917001724, -0.07858509570360184, -0.13757005333900452, 0.041353579610586166, 0.030732862651348114, 0.0237678624689579, 0.0055018323473632336, 0.12665247917175293, 0.04294132441282272, 0.036907535046339035, 0.043208133429288864, 0.024316875264048576, -0.025761041790246964, -0.021505163982510567, 0.0032589719630777836, -0.04400188848376274, 0.08286333829164505, 0.04044044017791748, -0.038614772260189056, -0.10463784635066986, -0.06429576873779297, 0.046268530189991, 0.01026143692433834, 0.008821282535791397, 0.059752725064754486, 0.012310607358813286, -0.056894924491643906, -0.024604983627796173, 0.02363641746342182, 0.03353988006711006, 0.0659896731376648, 0.039998333901166916, -0.012482061050832272, 0.04282892495393753, 0.03868207708001137, -0.01462628599256277, -0.03272826597094536, -0.05632143095135689, -0.024661852046847343, 0.015345904044806957, 0.00021343499247450382, -0.030428551137447357, 0.003451107768341899, 0.04373916611075401, 0.005888232961297035, 0.059211716055870056, 0.015987737104296684, 0.040257640182971954, 0.029079575091600418, -0.015696194022893906, -0.019631773233413696, -5.456202496767562e-33, -0.017666388303041458, -0.028100833296775818, -0.041026804596185684, 0.010930064134299755, -0.08527837693691254, -0.018233485519886017, -0.0009418863337486982, 0.001971160527318716, -0.048470430076122284, -0.06823192536830902, -0.00012048138887621462, 0.06554052233695984, 0.0007369568920694292, -0.00415825005620718, 0.06283358484506607, 0.07256960868835449, -0.05578502267599106, 0.02042807638645172, -0.003942033741623163, 0.05427293851971626, 0.006709757260978222, 0.012119831517338753, 0.08899413049221039, 0.011814488098025322, 0.04369121789932251, -0.023992741480469704, 0.07444588840007782, -0.006132252048701048, 0.021166525781154633, -0.079495869576931, 0.11121079325675964, 0.05263078212738037, -0.04800209403038025, -0.027750682085752487, -0.06711612641811371, -0.061480674892663956, 0.026454145088791847, 0.11441109329462051, -0.08143956959247589, 0.010680983774363995, 0.184779092669487, -0.0050061969086527824, -0.11918606609106064, 0.036132775247097015, -0.01765182428061962, 0.024015456438064575, -0.06005960330367088, -0.08809037506580353, -0.05418267846107483, -0.0034873762633651495, -0.02104245126247406, -0.014291062951087952, 0.059355512261390686, -0.04295017197728157, 0.017816852778196335, 0.10918568819761276, 0.025336621329188347, -0.07877124100923538, -0.022572742775082588, -0.0414353683590889, -0.0365021713078022, 0.003191024297848344, -0.007524526212364435, 0.06696494668722153, 0.011939614079892635, -0.14917998015880585, 0.017220471054315567, 0.016228223219513893, 0.004577104467898607, -0.03114817664027214, 0.0027712418232113123, -0.011990967206656933, -0.0746913030743599, 0.03069489076733589, 0.06863103061914444, 0.015451854094862938, -0.019972143694758415, -0.06717728823423386, -0.0650554746389389, 0.03938208892941475, -0.05522783473134041, -0.002609070623293519, -0.0012718855869024992, 0.034353818744421005, -0.059916965663433075, -0.022701721638441086, -0.02273940108716488, 0.042387694120407104, 0.009285359643399715, 0.050485190004110336, -0.04723338410258293, 0.039195381104946136, -0.0009570290567353368, -0.004852872341871262, -0.03883379325270653, -4.5002533255456e-8, -0.13420352339744568, 0.039469778537750244, 0.03820653632283211, -0.03455648198723793, 0.07131053507328033, 0.04480123147368431, -0.014248277992010117, 0.021236136555671692, -0.09815947711467743, 0.015010110102593899, 0.0025211244355887175, -0.01542196050286293, -0.034595880657434464, -0.010046875104308128, 0.015123087912797928, -0.023549772799015045, 0.021382564678788185, -0.0035846077371388674, 0.02471982128918171, -0.05233070254325867, -0.11299940943717957, 0.0005930547486059368, 0.03265455365180969, 0.06080817058682442, -0.07253440469503403, 0.011078940704464912, -0.0017862569075077772, 0.06938076764345169, -0.05321982130408287, -0.004241663962602615, -0.021791845560073853, 0.07683639973402023, 0.06742911040782928, -0.07769309729337692, -0.0016764916945248842, 0.06867500394582748, 0.00104221620131284, -0.08404699712991714, 0.012832856737077236, -0.0193947684019804, -0.029544249176979065, 0.055500708520412445, 0.02601761370897293, 0.0011662711622193456, 0.009673998691141605, 0.011779947206377983, 0.04301314800977707, -0.05780426412820816, -0.026072610169649124, -0.07686051726341248, -0.021509990096092224, -0.004225915297865868, -0.09201785176992416, 0.05339350178837776, 0.0524359866976738, 0.014481260441243649, 0.023068413138389587, -0.12047924101352692, 0.01800556108355522, -0.019583193585276604, -0.02217329479753971, 0.056848280131816864, -0.03989866003394127, -0.01323475781828165 ]
0.007845
# Sandbox CLI Manage Docker-based sandbox containers for isolated agent execution. ## Overview OpenClaw can run agents in isolated Docker containers for security. The `sandbox` commands help you manage these containers, especially after updates or configuration changes. ## Commands ### `openclaw sandbox explain` Inspect the \*\*effective\*\* sandbox mode/scope/workspace access, sandbox tool policy, and elevated gates (with fix-it config key paths). ```bash openclaw sandbox explain openclaw sandbox explain --session agent:main:main openclaw sandbox explain --agent work openclaw sandbox explain --json ``` ### `openclaw sandbox list` List all sandbox containers with their status and configuration. ```bash openclaw sandbox list openclaw sandbox list --browser # List only browser containers openclaw sandbox list --json # JSON output ``` \*\*Output includes:\*\* - Container name and status (running/stopped) - Docker image and whether it matches config - Age (time since creation) - Idle time (time since last use) - Associated session/agent ### `openclaw sandbox recreate` Remove sandbox containers to force recreation with updated images/config. ```bash openclaw sandbox recreate --all # Recreate all containers openclaw sandbox recreate --session main # Specific session openclaw sandbox recreate --agent mybot # Specific agent openclaw sandbox recreate --browser # Only browser containers openclaw sandbox recreate --all --force # Skip confirmation ``` \*\*Options:\*\* - `--all`: Recreate all sandbox containers - `--session `: Recreate container for specific session - `--agent `: Recreate containers for specific agent - `--browser`: Only recreate browser containers - `--force`: Skip confirmation prompt \*\*Important:\*\* Containers are automatically recreated when the agent is next used. ## Use Cases ### After updating Docker images ```bash # Pull new image docker pull openclaw-sandbox:latest docker tag openclaw-sandbox:latest openclaw-sandbox:bookworm-slim # Update config to use new image # Edit config: agents.defaults.sandbox.docker.image (or agents.list[].sandbox.docker.image) # Recreate containers openclaw sandbox recreate --all ``` ### After changing sandbox configuration ```bash # Edit config: agents.defaults.sandbox.\* (or agents.list[].sandbox.\*) # Recreate to apply new config openclaw sandbox recreate --all ``` ### After changing setupCommand ```bash openclaw sandbox recreate --all # or just one agent: openclaw sandbox recreate --agent family ``` ### For a specific agent only ```bash # Update only one agent's containers openclaw sandbox recreate --agent alfred ``` ## Why is this needed? \*\*Problem:\*\* When you update sandbox Docker images or configuration: - Existing containers continue running with old settings - Containers are only pruned after 24h of inactivity - Regularly-used agents keep old containers running indefinitely \*\*Solution:\*\* Use `openclaw sandbox recreate` to force removal of old containers. They'll be recreated automatically with current settings when next needed. Tip: prefer `openclaw sandbox recreate` over manual `docker rm`. It uses the Gateway’s container naming and avoids mismatches when scope/session keys change. ## Configuration Sandbox settings live in `~/.openclaw/openclaw.json` under `agents.defaults.sandbox` (per-agent overrides go in `agents.list[].sandbox`): ```jsonc { "agents": { "defaults": { "sandbox": { "mode": "all", // off, non-main, all "scope": "agent", // session, agent, shared "docker": { "image": "openclaw-sandbox:bookworm-slim", "containerPrefix": "openclaw-sbx-", // ... more Docker options }, "prune": { "idleHours": 24, // Auto-prune after 24h idle "maxAgeDays": 7, // Auto-prune after 7 days }, }, }, }, } ``` ## See Also - [Sandbox Documentation](/gateway/sandboxing) - [Agent Configuration](/concepts/agent-workspace) - [Doctor Command](/gateway/doctor) - Check sandbox setup
https://github.com/openclaw/openclaw/blob/main//docs/cli/sandbox.md
main
opebclaw
[ 0.029791593551635742, 0.06158806383609772, -0.05157526209950447, 0.01593080349266529, 0.09393882751464844, -0.048396289348602295, -0.021431470289826393, -0.05375285446643829, -0.0749761164188385, -0.02571883238852024, 0.031745631247758865, -0.06896801292896271, 0.03872760012745857, -0.00893660169094801, 0.08405889570713043, 0.06783724576234818, 0.045326393097639084, 0.025581471621990204, -0.04413831979036331, -0.030883250758051872, -0.04888436198234558, 0.041788846254348755, -0.03300384059548378, -0.09473385661840439, -0.13449497520923615, 0.044646330177783966, -0.06876431405544281, -0.06917694956064224, -0.08940169960260391, -0.03532978147268295, 0.03056795708835125, 0.03434072062373161, 0.027164891362190247, -0.003627702360972762, 0.14100037515163422, 0.09176825731992722, 0.024323690682649612, -0.003081804607063532, 0.0041942414827644825, -0.009963280521333218, 0.021438196301460266, 0.008535885252058506, -0.041171103715896606, -0.0930677279829979, -0.09308962523937225, -0.07130342721939087, -0.04392411932349205, -0.16370771825313568, -0.029834125190973282, 0.007330029737204313, -0.0722949281334877, -0.05154433101415634, 0.01786794885993004, -0.034236840903759, 0.029224466532468796, 0.045746270567178726, -0.012086048722267151, 0.020791765302419662, 0.018673138692975044, -0.06603052467107773, -0.0011264990316703916, 0.05019388347864151, -0.03999488055706024, 0.02170751243829727, -0.018754370510578156, -0.03713617101311684, -0.019953135401010513, -0.05888938903808594, 0.02110939659178257, -0.05415984243154526, -0.043251968920230865, 0.007525766268372536, -0.02413715422153473, -0.06794704496860504, -0.03218432888388634, -0.030301222577691078, 0.028847161680459976, 0.04204976558685303, -0.03879920765757561, -0.036470673978328705, -0.08771578967571259, -0.016261698678135872, -0.026647288352251053, -0.05330589413642883, -0.10504277050495148, 0.11337443441152573, 0.004905704874545336, 0.09351027756929398, 0.0645037516951561, 0.01803334429860115, 0.004386635031551123, -0.05131392180919647, -0.0038942736573517323, -0.024873100221157074, 0.11241640895605087, -0.028270995244383812, -0.02060774900019169, 0.021501973271369934, -0.05220629274845123, 0.059572555124759674, 0.020050104707479477, -0.015669267624616623, 0.04676114395260811, -0.027518216520547867, 0.04015600308775902, 0.017197199165821075, 0.004897343460470438, 0.004749020095914602, -0.03356193006038666, 0.025385290384292603, 0.011976996436715126, -0.018217772245407104, 0.043798815459012985, -0.016641756519675255, 0.008053268305957317, 0.008853388950228691, -0.009542994201183319, -0.004750347230583429, 0.06685353815555573, 0.05045904219150543, 0.16874457895755768, -0.03920019790530205, 0.10904320329427719, 0.002449754159897566, 0.035315994173288345, 0.10027299076318741, -0.01270123291760683, 7.423863959976927e-33, 0.051385920494794846, -0.13136254251003265, 0.02874569408595562, 0.0452272966504097, 0.18354924023151398, 0.015010768547654152, 0.016913702711462975, -0.034512490034103394, -0.03794856742024422, 0.08934590965509415, -0.006415101233869791, 0.044339392334222794, -0.09097285568714142, -0.00003390911660972051, 0.02401445247232914, -0.03750498592853546, -0.02854074165225029, -0.007352815009653568, 0.04654565453529358, -0.00011689938401104882, 0.0270962193608284, -0.002367655048146844, -0.07035913318395615, 0.032287925481796265, 0.04891926422715187, -0.04748988151550293, 0.011922936886548996, -0.035386014729738235, 0.024304261431097984, 0.025981027632951736, 0.0601324662566185, 0.02004660852253437, -0.03910170495510101, 0.037056371569633484, -0.0238175205886364, 0.010686157271265984, -0.0759110301733017, 0.014134556986391544, -0.04490276053547859, -0.053284887224435806, 0.0052043418399989605, -0.0408538393676281, -0.0011325544910505414, -0.020813124254345894, 0.06837037950754166, -0.1742049604654312, -0.04253534972667694, 0.018621567636728287, 0.03515997901558876, 0.041615527123212814, -0.011181401088833809, -0.010960019193589687, -0.02607882395386696, -0.05162426456809044, -0.0414842814207077, -0.08490902185440063, -0.03489871323108673, -0.008137309923768044, -0.04330356791615486, 0.037841565907001495, -0.06674323976039886, 0.03032146953046322, -0.012817222625017166, 0.04984015226364136, 0.001648090430535376, -0.013203196227550507, 0.006272135302424431, 0.05005352199077606, 0.01247059740126133, 0.09579316526651382, -0.02944519929587841, 0.03611782193183899, 0.035382892936468124, 0.052267786115407944, -0.06844037026166916, -0.04667253792285919, 0.031069694086909294, -0.06203998997807503, 0.00262854085303843, -0.023938320577144623, 0.04859011992812157, 0.0839928612112999, -0.016727767884731293, 0.09695800393819809, -0.03193214535713196, -0.013352463021874428, -0.02419276162981987, 0.06665435433387756, 0.045940570533275604, 0.04880386218428612, -0.01952509768307209, 0.000227249096496962, -0.06871262937784195, -0.035683032125234604, -0.09030148386955261, -9.991657900951288e-33, 0.011720554903149605, -0.012239258736371994, -0.03268977254629135, -0.040215421468019485, -0.030820032581686974, -0.018134789541363716, -0.003919389098882675, -0.06706130504608154, 0.015383226796984673, -0.09083680063486099, -0.07206913828849792, 0.09378369897603989, 0.038779206573963165, 0.01146325096487999, -0.03998180478811264, 0.005058351904153824, -0.07511012256145477, -0.07139208912849426, -0.0032296970020979643, -0.018153825774788857, -0.0019291735952720046, 0.05609600618481636, 0.07901754230260849, 0.07651269435882568, -0.010280948132276535, -0.06759347766637802, 0.011617740616202354, 0.0358247309923172, 0.00880866963416338, -0.0019065774977207184, 0.047176543623209, -0.00006977347220527008, 0.016331717371940613, 0.06836006790399551, -0.011430565267801285, -0.04033082351088524, -0.03967541456222534, 0.02951718121767044, -0.04589176923036575, 0.015934836119413376, 0.022465310990810394, -0.04693484678864479, -0.06931065022945404, -0.012052200734615326, -0.05838225036859512, 0.03507053107023239, 0.01674756221473217, -0.04118681699037552, -0.055176056921482086, -0.009054992347955704, -0.08179687708616257, -0.046100154519081116, 0.04045521095395088, -0.026258131489157677, -0.0032514133490622044, 0.02683437243103981, -0.015131397172808647, 0.030278531834483147, -0.04655684530735016, 0.008290398865938187, 0.07560092955827713, -0.0021976178977638483, -0.002922755666077137, 0.11438406258821487, -0.02134578302502632, -0.05340193212032318, -0.10022564977407455, 0.02752341516315937, -0.09191660583019257, -0.011967327445745468, 0.03818978741765022, -0.06689613312482834, -0.04689996317028999, 0.024479657411575317, 0.017323089763522148, -0.08069746941328049, -0.0003961523179896176, -0.09233076870441437, 0.014969801530241966, 0.09817846119403839, -0.024234279990196228, 0.04341435059905052, -0.03650552034378052, -0.03922974318265915, -0.03907373175024986, -0.018174927681684494, 0.010792681947350502, 0.03751355782151222, 0.07747024297714233, 0.02091040275990963, -0.017980897799134254, -0.023303324356675148, -0.0959760770201683, 0.008132797665894032, -0.04210002347826958, -5.257824042814718e-8, 0.01138615608215332, -0.07545845955610275, -0.047816552221775055, 0.008753953501582146, 0.006950964219868183, -0.008593358099460602, 0.06589681655168533, 0.033202555030584335, -0.04283502697944641, -0.019612843170762062, 0.09801062941551208, -0.015468181110918522, -0.06409329921007156, -0.022474827244877815, 0.03750593587756157, 0.11196570098400116, 0.014138932339847088, 0.03439517691731453, 0.03764890879392624, -0.056896455585956573, -0.03680499270558357, 0.007414079736918211, 0.05136457830667496, 0.05263293534517288, -0.08923327922821045, 0.02013162150979042, -0.003407003590837121, 0.0526144877076149, -0.012456515803933144, 0.08356063812971115, 0.025658365339040756, -0.04257926717400551, 0.03229527920484543, -0.03129047527909279, -0.019762985408306122, 0.02992139756679535, -0.05697375908493996, 0.015324764885008335, 0.05160291865468025, 0.006264327559620142, -0.031404029577970505, 0.00927883293479681, -0.01266070082783699, -0.030652575194835663, -0.0534660629928112, 0.003274026094004512, -0.027371201664209366, 0.021396232768893242, -0.010845827870070934, -0.060089435428380966, 0.014234420843422413, 0.0680689811706543, 0.0428864024579525, 0.08012903481721878, 0.060491956770420074, 0.1127832755446434, 0.07073469460010529, -0.010488910600543022, 0.0852745920419693, 0.04371514916419983, 0.0050509837456047535, 0.028343770653009415, 0.055974554270505905, 0.014957331120967865 ]
0.101907
# `openclaw browser` Manage OpenClaw’s browser control server and run browser actions (tabs, snapshots, screenshots, navigation, clicks, typing). Related: - Browser tool + API: [Browser tool](/tools/browser) - Chrome extension relay: [Chrome extension](/tools/chrome-extension) ## Common flags - `--url `: Gateway WebSocket URL (defaults to config). - `--token `: Gateway token (if required). - `--timeout `: request timeout (ms). - `--browser-profile `: choose a browser profile (default from config). - `--json`: machine-readable output (where supported). ## Quick start (local) ```bash openclaw browser --browser-profile chrome tabs openclaw browser --browser-profile openclaw start openclaw browser --browser-profile openclaw open https://example.com openclaw browser --browser-profile openclaw snapshot ``` ## Profiles Profiles are named browser routing configs. In practice: - `openclaw`: launches/attaches to a dedicated OpenClaw-managed Chrome instance (isolated user data dir). - `chrome`: controls your existing Chrome tab(s) via the Chrome extension relay. ```bash openclaw browser profiles openclaw browser create-profile --name work --color "#FF5A36" openclaw browser delete-profile --name work ``` Use a specific profile: ```bash openclaw browser --browser-profile work tabs ``` ## Tabs ```bash openclaw browser tabs openclaw browser open https://docs.openclaw.ai openclaw browser focus openclaw browser close ``` ## Snapshot / screenshot / actions Snapshot: ```bash openclaw browser snapshot ``` Screenshot: ```bash openclaw browser screenshot ``` Navigate/click/type (ref-based UI automation): ```bash openclaw browser navigate https://example.com openclaw browser click openclaw browser type "hello" ``` ## Chrome extension relay (attach via toolbar button) This mode lets the agent control an existing Chrome tab that you attach manually (it does not auto-attach). Install the unpacked extension to a stable path: ```bash openclaw browser extension install openclaw browser extension path ``` Then Chrome → `chrome://extensions` → enable “Developer mode” → “Load unpacked” → select the printed folder. Full guide: [Chrome extension](/tools/chrome-extension) ## Remote browser control (node host proxy) If the Gateway runs on a different machine than the browser, run a \*\*node host\*\* on the machine that has Chrome/Brave/Edge/Chromium. The Gateway will proxy browser actions to that node (no separate browser control server required). Use `gateway.nodes.browser.mode` to control auto-routing and `gateway.nodes.browser.node` to pin a specific node if multiple are connected. Security + remote setup: [Browser tool](/tools/browser), [Remote access](/gateway/remote), [Tailscale](/gateway/tailscale), [Security](/gateway/security)
https://github.com/openclaw/openclaw/blob/main//docs/cli/browser.md
main
opebclaw
[ -0.03911125659942627, -0.026451172307133675, -0.0760728120803833, 0.04104895889759064, 0.012732692994177341, -0.07966482639312744, -0.07697998732328415, 0.023646222427487373, -0.01856542006134987, -0.07915637642145157, 0.01888684555888176, -0.030295224860310555, 0.020621448755264282, -0.010366390459239483, 0.09306683391332626, 0.1173856258392334, 0.03801800683140755, -0.05817682668566704, 0.04056699573993683, -0.06365648657083511, 0.00032469999860040843, -0.021799128502607346, -0.01801425777375698, -0.0440104603767395, -0.08991136401891708, -0.03641325980424881, -0.06073832884430885, -0.04393768683075905, -0.007939772680401802, 0.003931234125047922, 0.0855017602443695, -0.0824173092842102, -0.07162093371152878, 0.00410486850887537, -0.010734976269304752, 0.02191968262195587, 0.013445688411593437, -0.018591517582535744, -0.07901587337255478, 0.029148248955607414, 0.09233707934617996, 0.006646932568401098, -0.04021361470222473, -0.058597929775714874, -0.06550825387239456, -0.0876217931509018, -0.03400495648384094, -0.035597458481788635, -0.039328332990407944, 0.00006123827915871516, -0.06863638758659363, -0.04961542785167694, -0.05884125828742981, -0.025003794580698013, -0.019014006480574608, 0.003014796646311879, -0.029259316623210907, -0.021113688126206398, 0.08849232643842697, 0.029389364644885063, 0.03726523742079735, -0.02093779481947422, -0.03540518879890442, 0.032682839781045914, -0.12921996414661407, 0.018844550475478172, -0.00792666058987379, -0.06786474585533142, 0.003583627287298441, 0.0188280139118433, -0.042634982615709305, 0.0263947993516922, -0.04587574675679207, -0.052532851696014404, -0.042115259915590286, -0.11404643952846527, 0.035213787108659744, 0.030736979097127914, -0.08634194731712341, -0.039286110550165176, -0.038211073726415634, -0.0720190480351448, -0.06918139010667801, 0.07344213873147964, 0.03774022310972214, 0.1135384663939476, -0.00772864231839776, 0.01640445739030838, 0.017329754307866096, 0.037280019372701645, -0.05098488926887512, -0.09066350013017654, -0.06420238316059113, -0.03350786864757538, 0.027659835293889046, 0.022102341055870056, 0.002296789549291134, 0.03265354409813881, -0.04030008986592293, 0.05982592701911926, 0.00945711974054575, -0.00840326864272356, 0.012667673639953136, -0.020383328199386597, -0.013208516873419285, 0.05109226331114769, -0.015585970133543015, 0.15428130328655243, 0.04971422627568245, 0.0366504043340683, 0.007933407090604305, 0.020825011655688286, 0.06637419760227203, -0.05241519957780838, -0.05219282582402229, 0.02209393121302128, -0.03733382001519203, -0.0023523580748587847, 0.10604492574930191, 0.11357127875089645, 0.1274574249982834, 0.0752473920583725, -0.02710971236228943, -0.03479619696736336, 0.06130380183458328, 0.03299996629357338, 0.10138179361820221, 6.265937372227679e-33, 0.07130344957113266, -0.0597040094435215, -0.048175059258937836, 0.018949899822473526, 0.10697375982999802, 0.03777025640010834, 0.06366585940122604, -0.01892136223614216, -0.038526229560375214, 0.01951179839670658, 0.07215900719165802, 0.0490020252764225, -0.06356783956289291, -0.006448919419199228, 0.0021447469480335712, 0.029004046693444252, -0.03189355880022049, 0.00785442627966404, 0.10404037684202194, -0.050520092248916626, -0.017591632902622223, -0.06625200062990189, -0.045465514063835144, 0.05064084380865097, -0.011720224283635616, 0.02547134831547737, -0.03423042222857475, 0.02152198553085327, -0.09118117392063141, 0.046430159360170364, 0.08484780788421631, -0.0027289846912026405, -0.09568942338228226, 0.0042173792608082294, -0.026573466137051582, -0.010287442244589329, -0.06667611002922058, -0.022036084905266762, -0.02180837281048298, -0.017203351482748985, -0.006600399035960436, -0.03866015374660492, -0.10066163539886475, -0.044842351227998734, -0.049348924309015274, -0.13265953958034515, -0.05557651445269585, 0.07054740935564041, 0.05204305052757263, 0.03372110426425934, -0.0009610329871065915, -0.07502918690443039, 0.06314416974782944, -0.027845948934555054, -0.01564091630280018, -0.009584849700331688, -0.07445916533470154, -0.003671133192256093, -0.03900619223713875, -0.014983976259827614, -0.0019228357123211026, 0.030649207532405853, -0.0287640318274498, -0.0022936288733035326, -0.012214066460728645, -0.019696015864610672, 0.023360874503850937, 0.06886521726846695, -0.06686113774776459, -0.016523530706763268, -0.019980179145932198, 0.019696205854415894, 0.019386213272809982, 0.044740017503499985, -0.030610311776399612, -0.0396353118121624, -0.00011323366197757423, 0.007336969021707773, 0.028866613283753395, 0.017580611631274223, 0.07073644548654556, -0.030660871416330338, 0.002089980524033308, 0.012109492905437946, 0.02150292694568634, 0.012655246071517467, 0.06214405596256256, -0.03223608806729317, -0.007240683771669865, 0.07866936177015305, -0.0710919052362442, 0.020097745582461357, 0.008682053536176682, 0.0127171715721488, -0.012515447102487087, -8.204726490128941e-33, -0.039126329123973846, 0.039606932550668716, -0.02611887827515602, 0.04276667535305023, -0.027445420622825623, 0.018336249515414238, 0.05026106536388397, -0.011638476513326168, -0.0351678691804409, -0.002655718708410859, -0.03710029274225235, 0.0578017495572567, 0.026111425831913948, -0.04653300344944, -0.022176876664161682, -0.009859285317361355, -0.054721228778362274, -0.08084772527217865, -0.007724272087216377, -0.030388521030545235, -0.07581599801778793, 0.005417147185653448, 0.0116090914234519, 0.004919960163533688, 0.03594803065061569, 0.009652581997215748, 0.05559162050485611, 0.015036990866065025, -0.05747485160827637, -0.03595712035894394, 0.006229129154235125, 0.04192645475268364, 0.0036021657288074493, 0.019600966945290565, 0.054490070790052414, 0.04965626448392868, 0.004212892614305019, 0.07810667902231216, 0.08774806559085846, 0.003981333691626787, 0.07960609346628189, -0.03522801771759987, 0.012312037870287895, 0.03909153491258621, 0.03355495631694794, 0.120974600315094, 0.0013634986244142056, -0.03127341717481613, -0.09067267924547195, 0.011452185921370983, 0.010044969618320465, 0.02417195402085781, 0.03605557233095169, 0.021503405645489693, 0.029869090765714645, 0.04283222183585167, 0.05750289559364319, -0.06795426458120346, -0.015972470864653587, -0.09435562789440155, -0.0016171231400221586, -0.09686335921287537, -0.028734831139445305, 0.10456164181232452, 0.012089792639017105, -0.05452559515833855, -0.06076396256685257, 0.04709489271044731, -0.058945003896951675, -0.044781509786844254, -0.062401022762060165, -0.016693277284502983, 0.05222776159644127, -0.04921112582087517, -0.007290728855878115, -0.04549069330096245, 0.08935992419719696, -0.064336396753788, -0.03674139082431793, 0.0620947889983654, 0.013430333696305752, 0.03356560319662094, 0.033700305968523026, -0.1688055843114853, -0.008810445666313171, -0.01161044929176569, -0.0576661042869091, 0.10529603064060211, 0.06896913051605225, 0.03843098506331444, -0.06433600187301636, 0.11106472462415695, -0.030172841623425484, -0.04563451558351517, 0.045013830065727234, -5.192521967956054e-8, -0.04299080744385719, -0.013317175209522247, -0.0571368969976902, 0.03670140728354454, -0.002364333951845765, 0.04487057030200958, 0.00008209906081901863, -0.008944796398282051, -0.022992262616753578, 0.00517226243391633, 0.0744859129190445, 0.03965231031179428, -0.031817175447940826, 0.0194083321839571, -0.026958560571074486, 0.03827493637800217, 0.018382783979177475, -0.006729908753186464, 0.05182970315217972, -0.030263561755418777, -0.02376130223274231, -0.03590582683682442, 0.1038898378610611, 0.04660802707076073, -0.035437218844890594, -0.035445500165224075, -0.009148417972028255, 0.004400989506393671, -0.04954826459288597, 0.027365433052182198, -0.10675469785928726, -0.01685318537056446, -0.0048150899820029736, -0.050693828612565994, -0.047661490738391876, 0.020176758989691734, -0.06623924523591995, -0.016306117177009583, 0.01635124534368515, -0.02984841726720333, 0.07105685770511627, 0.009054084308445454, -0.04474727436900139, -0.029753703624010086, -0.055779844522476196, 0.085433229804039, -0.02096451073884964, 0.06245560944080353, 0.043706249445676804, 0.0218744408339262, -0.028227629140019417, -0.04842458665370941, 0.08839850127696991, 0.038700204342603683, -0.019729603081941605, 0.08826592564582825, 0.06885065883398056, -0.13533544540405273, 0.012883213348686695, -0.016764596104621887, -0.009548092260956764, 0.08872710913419724, 0.04664336517453194, 0.00658166641369462 ]
0.032191
# `openclaw doctor` Health checks + quick fixes for the gateway and channels. Related: - Troubleshooting: [Troubleshooting](/gateway/troubleshooting) - Security audit: [Security](/gateway/security) ## Examples ```bash openclaw doctor openclaw doctor --repair openclaw doctor --deep ``` Notes: - Interactive prompts (like keychain/OAuth fixes) only run when stdin is a TTY and `--non-interactive` is \*\*not\*\* set. Headless runs (cron, Telegram, no terminal) will skip prompts. - `--fix` (alias for `--repair`) writes a backup to `~/.openclaw/openclaw.json.bak` and drops unknown config keys, listing each removal. ## macOS: `launchctl` env overrides If you previously ran `launchctl setenv OPENCLAW\_GATEWAY\_TOKEN ...` (or `...PASSWORD`), that value overrides your config file and can cause persistent “unauthorized” errors. ```bash launchctl getenv OPENCLAW\_GATEWAY\_TOKEN launchctl getenv OPENCLAW\_GATEWAY\_PASSWORD launchctl unsetenv OPENCLAW\_GATEWAY\_TOKEN launchctl unsetenv OPENCLAW\_GATEWAY\_PASSWORD ```
https://github.com/openclaw/openclaw/blob/main//docs/cli/doctor.md
main
opebclaw
[ -0.004875442013144493, 0.03283984214067459, -0.03731166198849678, -0.027783721685409546, 0.017916636541485786, -0.1100945845246315, -0.011808454059064388, 0.026695774868130684, -0.014526277780532837, -0.03339714929461479, 0.020661765709519386, 0.025251813232898712, 0.014156412333250046, 0.016511576250195503, 0.026357416063547134, 0.055018600076436996, 0.006885450333356857, -0.0712563544511795, 0.010701742023229599, 0.01704198494553566, -0.09020208567380905, 0.09061947464942932, 0.03505219519138336, 0.023220421746373177, -0.10931606590747833, -0.0504201240837574, -0.003983483649790287, -0.03911939635872841, -0.09726749360561371, 0.0014303142670542002, 0.05119551345705986, 0.02862013876438141, -0.028999710455536842, -0.020656747743487358, 0.08499199897050858, 0.08994761109352112, 0.10473866760730743, 0.025307631120085716, -0.11889885365962982, 0.03138921037316322, 0.053549300879240036, -0.010442581959068775, 0.0017444122349843383, 0.018150683492422104, 0.0056594666093587875, -0.0455220602452755, -0.008363297209143639, -0.08780725300312042, 0.054117489606142044, 0.017777692526578903, -0.06252391636371613, -0.05432556942105293, -0.005380856338888407, 0.0026767211966216564, 0.03722899779677391, 0.06640253216028214, -0.03673496097326279, 0.0031830919906497, 0.051508523523807526, -0.03692179545760155, 0.001788606750778854, 0.03474981337785721, -0.047853901982307434, 0.07094380259513855, -0.09634733945131302, 0.020315667614340782, -0.02258513681590557, -0.0503322035074234, -0.007240282837301493, 0.05440669506788254, 0.00822448916733265, -0.008806704543530941, 0.023998644202947617, -0.003419048385694623, -0.018669381737709045, 0.005154780112206936, 0.040324028581380844, -0.05141886696219444, -0.10349973291158676, -0.0638096034526825, -0.062016669660806656, -0.0643816739320755, -0.05484147369861603, 0.050164058804512024, -0.00467737577855587, 0.1091136634349823, 0.016193218529224396, -0.036565449088811874, 0.03294917568564415, 0.07438979297876358, 0.024907834827899933, -0.1381407082080841, 0.040884874761104584, -0.0680338591337204, 0.04897230118513107, 0.02203640714287758, 0.004135454073548317, -0.02104778401553631, -0.06650111079216003, 0.08725766092538834, -0.05279939994215965, -0.052501335740089417, 0.09630797803401947, -0.012019604444503784, -0.0060708532109856606, 0.07582087069749832, 0.025902774184942245, 0.07432468235492706, 0.040336135774850845, -0.003257174277678132, 0.050967976450920105, -0.019597429782152176, 0.12623782455921173, 0.02505004033446312, 0.024608273059129715, 0.07800300419330597, -0.04781370609998703, 0.011220685206353664, 0.010779596865177155, 0.10088173300027847, 0.12976756691932678, 0.0012537135044112802, 0.007327348459511995, -0.03767959773540497, 0.06128739193081856, 0.08827794343233109, 0.10067927092313766, 3.670925226902013e-33, 0.04595096781849861, -0.04175502061843872, -0.014984470792114735, 0.01954633556306362, 0.152756005525589, 0.006009972654283047, 0.033107221126556396, -0.02640526555478573, -0.014941887930035591, 0.055212318897247314, -0.02946215681731701, 0.05840529873967171, -0.043614260852336884, -0.04234083741903305, -0.039668694138526917, 0.004755438305437565, -0.011014719493687153, 0.04217487573623657, 0.002198384376242757, 0.035119522362947464, 0.07747387140989304, -0.06931930780410767, -0.05369668826460838, 0.021113473922014236, -0.0041382997296750546, 0.029994389042258263, -0.01490458007901907, 0.01315389759838581, 0.07166079431772232, 0.015361081808805466, -0.02085999771952629, 0.033964142203330994, -0.01305124070495367, 0.010173717513680458, -0.05232497677206993, 0.0028744519222527742, -0.05398523434996605, -0.05953613296151161, -0.06202760338783264, -0.045289069414138794, -0.03129953145980835, -0.020111186429858208, -0.08672036975622177, -0.026887815445661545, 0.046698518097400665, -0.13697931170463562, -0.06577703356742859, 0.04208153113722801, 0.009745284914970398, 0.06786242872476578, -0.02694287896156311, 0.0006318881642073393, 0.026838798075914383, -0.04284735023975372, -0.03570914268493652, -0.04097003489732742, -0.036022208631038666, -0.07284875214099884, -0.008423436433076859, -0.0009940798627212644, 0.04578869044780731, 0.06672701239585876, 0.01581343449652195, -0.005304413847625256, 0.013366449624300003, -0.050278861075639725, 0.03200017288327217, -0.010321473702788353, -0.010585842654109001, -0.0015696838963776827, -0.109475277364254, 0.043533261865377426, -0.034190814942121506, 0.04088946431875229, -0.05588027834892273, -0.02702060155570507, -0.0281712356954813, -0.05931927636265755, 0.006900672800838947, 0.033994160592556, 0.06102120131254196, 0.040245380252599716, 0.004418444354087114, 0.07778730243444443, 0.05795196816325188, 0.06087227910757065, 0.009932860732078552, -0.029411688446998596, -0.05505907163023949, 0.10101869702339172, -0.008917184546589851, 0.0358172245323658, -0.02283165231347084, 0.026607327163219452, -0.03202323243021965, -5.907744407064958e-33, -0.004498149733990431, -0.055249862372875214, 0.02265520766377449, 0.020910607650876045, -0.0642445832490921, 0.0021184966899454594, 0.0021095569245517254, -0.015846379101276398, 0.019070599228143692, -0.08224183320999146, -0.029269812628626823, 0.0596870481967926, 0.021022602915763855, -0.11904393881559372, 0.02433258853852749, -0.012322304770350456, -0.10077977925539017, -0.05203736200928688, -0.03542366623878479, 0.006745575927197933, 0.0052185580134391785, 0.07478419691324234, -0.04137824475765228, 0.027611494064331055, 0.005216978024691343, 0.035334423184394836, 0.035985659807920456, 0.0720178559422493, -0.031901828944683075, -0.021715043112635612, 0.04572195187211037, 0.06358460336923599, -0.032066721469163895, 0.025611041113734245, -0.014284295029938221, 0.06101091206073761, -0.04138258472084999, 0.03328597918152809, 0.0028809804935008287, 0.0025256131775677204, 0.10259318351745605, -0.010443003848195076, -0.026278167963027954, 0.02025638520717621, -0.043990764766931534, 0.07650530338287354, -0.04888628050684929, -0.031212035566568375, -0.06389973312616348, -0.0364920012652874, 0.02118607796728611, -0.02800101786851883, 0.04469188675284386, 0.02111726626753807, -0.0006826012395322323, 0.032694511115550995, 0.0013229693286120892, -0.073430635035038, -0.04535168781876564, -0.06685824692249298, -0.011430001817643642, -0.08831609040498734, -0.045735932886600494, 0.10981182754039764, -0.04984642565250397, -0.06113894283771515, 0.02103324793279171, 0.05485126003623009, -0.015941044315695763, -0.032905448228120804, 0.011228173971176147, -0.033998191356658936, -0.0031657132785767317, -0.09350520372390747, 0.04335004836320877, -0.014348444528877735, -0.039069510996341705, -0.13369736075401306, -0.07097134739160538, 0.07997065037488937, 0.022490227594971657, -0.005589846521615982, -0.02031632885336876, 0.0007513094460591674, -0.028372373431921005, -0.012576328590512276, 0.003327679354697466, 0.10922905802726746, 0.05180149897933006, 0.08093596994876862, -0.046554189175367355, 0.0048824031837284565, -0.02670115791261196, -0.04015038534998894, -0.01275347638875246, -5.359900612234014e-8, -0.05551858991384506, -0.039645951241254807, -0.07640686631202698, 0.03516574949026108, -0.006140863988548517, -0.08350292593240738, -0.046069610863924026, 0.016226086765527725, -0.05296003073453903, 0.0019492036662995815, 0.04434196278452873, 0.0437462143599987, -0.08395899087190628, 0.008904608897864819, -0.045621685683727264, 0.06482505053281784, -0.06331378221511841, 0.06388834118843079, -0.02599453181028366, -0.07084526121616364, -0.0417979471385479, 0.0009145113872364163, 0.0013154206098988652, 0.016937484964728355, -0.04559065029025078, -0.0037309483159333467, 0.013610241003334522, 0.03600386530160904, -0.0625246912240982, 0.03660013526678085, -0.048476140946149826, -0.038506973534822464, 0.0029661692678928375, -0.006287882104516029, -0.08263540267944336, 0.013774324208498001, -0.010758692398667336, 0.019923508167266846, 0.013704475946724415, -0.03436560556292534, 0.033676352351903915, 0.027274344116449356, -0.004002927802503109, -0.04947960749268532, -0.18204516172409058, -0.03520043194293976, 0.013957305811345577, 0.09904107451438904, -0.0043848599307239056, -0.06403305381536484, 0.03787308558821678, 0.03322836011648178, 0.05217656493186951, 0.03923420608043671, 0.02181662619113922, 0.10162544995546341, 0.1068856492638588, -0.10031930357217789, -0.03812970221042633, 0.056884653866291046, -0.002525319578126073, -0.0278035718947649, 0.03958487883210182, -0.028060687705874443 ]
0.054137
# `openclaw devices` Manage device pairing requests and device-scoped tokens. ## Commands ### `openclaw devices list` List pending pairing requests and paired devices. ``` openclaw devices list openclaw devices list --json ``` ### `openclaw devices approve ` Approve a pending device pairing request. ``` openclaw devices approve ``` ### `openclaw devices reject ` Reject a pending device pairing request. ``` openclaw devices reject ``` ### `openclaw devices rotate --device --role [--scope ]` Rotate a device token for a specific role (optionally updating scopes). ``` openclaw devices rotate --device --role operator --scope operator.read --scope operator.write ``` ### `openclaw devices revoke --device --role ` Revoke a device token for a specific role. ``` openclaw devices revoke --device --role node ``` ## Common options - `--url `: Gateway WebSocket URL (defaults to `gateway.remote.url` when configured). - `--token `: Gateway token (if required). - `--password `: Gateway password (password auth). - `--timeout `: RPC timeout. - `--json`: JSON output (recommended for scripting). Note: when you set `--url`, the CLI does not fall back to config or environment credentials. Pass `--token` or `--password` explicitly. Missing explicit credentials is an error. ## Notes - Token rotation returns a new token (sensitive). Treat it like a secret. - These commands require `operator.pairing` (or `operator.admin`) scope.
https://github.com/openclaw/openclaw/blob/main//docs/cli/devices.md
main
opebclaw
[ -0.09996340423822403, 0.03114992566406727, -0.027512988075613976, 0.02164338529109955, -0.009760027751326561, -0.08704322576522827, 0.0024068080820143223, -0.022907225415110588, -0.021488865837454796, -0.022856686264276505, 0.07875210046768188, 0.023977376520633698, 0.004551895894110203, -0.012275558896362782, 0.08838190138339996, 0.14604783058166504, 0.019838174805045128, 0.008354265242815018, 0.0070193069986999035, 0.007103264331817627, 0.023268792778253555, 0.05754828825592995, 0.002485767938196659, -0.05994656682014465, -0.03619011864066124, -0.10898371040821075, 0.0002525396703276783, -0.029480580240488052, -0.014557845890522003, -0.030509011819958687, 0.09066010266542435, 0.060253895819187164, -0.05637829005718231, 0.030523281544446945, 0.0007145031704567373, -0.029202599078416824, 0.0671619400382042, -0.08000803738832474, -0.062125422060489655, -0.060064997524023056, 0.09532786905765533, -0.012003663927316666, -0.05634602531790733, -0.026193343102931976, -0.06407710909843445, -0.0388350784778595, -0.04265395179390907, -0.04592432081699371, -0.05505935847759247, 0.002086856635287404, -0.05043499544262886, -0.0692303329706192, -0.05916256457567215, -0.031209683045744896, -0.03440071642398834, 0.0019123002421110868, -0.014157899655401707, 0.012180773541331291, 0.11066371202468872, -0.019062170758843422, 0.07105056941509247, -0.01912808232009411, -0.025583572685718536, 0.0091932388022542, -0.09375758469104767, -0.0050264568999409676, -0.0167886670678854, -0.10948727279901505, -0.00020239026343915612, 0.05368589982390404, 0.020447809249162674, 0.03330730274319649, -0.03774784877896309, -0.01696709729731083, 0.027172256261110306, 0.012502961792051792, 0.02112434059381485, 0.004693009424954653, -0.0386153869330883, -0.1276686191558838, -0.06608673185110092, -0.047961004078388214, -0.03738940507173538, 0.06838598102331161, 0.04585737735033035, 0.06518862396478653, -0.04668006673455238, 0.06749983131885529, 0.010241125710308552, 0.052310146391391754, -0.06368020921945572, -0.026631226763129234, 0.005307402461767197, -0.05463077500462532, -0.007168841548264027, 0.032249536365270615, 0.0020320196636021137, -0.005341310985386372, -0.11316840350627899, 0.10659653693437576, -0.027423281222581863, -0.03223840519785881, -0.024296090006828308, 0.05029374361038208, -0.06988725066184998, -0.000534278224222362, -0.023206626996397972, 0.058086175471544266, 0.030713694170117378, 0.04515766724944115, 0.06297150254249573, 0.01571856066584587, 0.02569735050201416, -0.022547690197825432, -0.10351412743330002, 0.04717733711004257, -0.03174169734120369, 0.07857806980609894, 0.04907631129026413, 0.07307136058807373, 0.04429934173822403, 0.03672406077384949, -0.020739249885082245, -0.0747329518198967, 0.028095107525587082, 0.044530391693115234, 0.07794225960969925, 5.48902229904252e-33, 0.058785341680049896, -0.0036090631037950516, -0.08951224386692047, -0.007569920737296343, 0.09835027158260345, 0.04845455661416054, 0.06096954643726349, 0.0017491038888692856, -0.07295677065849304, 0.034735940396785736, 0.030024899169802666, 0.04397566616535187, -0.00910070538520813, -0.029929181560873985, -0.010801431722939014, -0.08194105327129364, 0.030581973493099213, 0.0031316049862653017, 0.10540486872196198, 0.020441723987460136, 0.03714607283473015, -0.056275542825460434, -0.06202823296189308, 0.048536088317632675, -0.007922054268419743, 0.011538428254425526, -0.07159369438886642, -0.006196566857397556, 0.006088315974920988, 0.06358423084020615, 0.05989791452884674, 0.013644532300531864, -0.05577275529503822, -0.013639431446790695, 0.014874594286084175, -0.011954342015087605, -0.07601062208414078, -0.052763182669878006, -0.060704849660396576, -0.08737795799970627, 0.012005000375211239, -0.049260567873716354, -0.13915927708148956, -0.014936291612684727, -0.036105889827013016, -0.14516901969909668, -0.05793554708361626, 0.07770193368196487, 0.051787376403808594, 0.023322440683841705, -0.06103024631738663, -0.0029409455601125956, 0.025308383628726006, -0.08681304007768631, -0.0018271703738719225, -0.07731717824935913, -0.049102332442998886, 0.0068194190971553326, -0.025149444118142128, -0.06425656378269196, 0.04039445519447327, 0.07035617530345917, -0.0007174006896093488, -0.026585184037685394, -0.033107299357652664, 0.011564674787223339, 0.04958125203847885, -0.034120846539735794, -0.03429095074534416, -0.048634085804224014, -0.03221776336431503, 0.03152673691511154, 0.04051833972334862, 0.02086639776825905, -0.11319801211357117, -0.0017066803993657231, 0.016834450885653496, 0.02090422995388508, 0.029244158416986465, -0.04993968829512596, 0.024537336081266403, 0.0077689397148787975, -0.037905726581811905, 0.049740176647901535, -0.0015824047150090337, -0.050168320536613464, -0.031805168837308884, -0.0789957270026207, -0.030238445848226547, 0.10953666269779205, -0.040000613778829575, 0.001168899703770876, -0.026119273155927658, -0.006484976038336754, -0.014668244868516922, -7.027027352714893e-33, -0.06665852665901184, 0.003951790742576122, 0.06717749685049057, -0.00820159912109375, -0.015840372070670128, -0.05941028520464897, 0.05611231550574303, -0.052552688866853714, 0.0054973429068923, -0.012215505354106426, 0.0025274346116930246, 0.012271677143871784, 0.024574778974056244, -0.0687817707657814, 0.05586421862244606, -0.026144511997699738, -0.12248339504003525, -0.029470140114426613, 0.04310597851872444, 0.033651337027549744, -0.052925627678632736, 0.10698313266038895, 0.07738808542490005, 0.09672103822231293, 0.02878805249929428, 0.036196269094944, 0.040196631103754044, 0.02722427435219288, 0.027141500264406204, -0.05731221288442612, 0.04901975765824318, 0.007240130100399256, -0.025585530325770378, 0.004124149214476347, 0.02577606588602066, 0.00952559057623148, -0.027081197127699852, 0.08943843841552734, -0.01260736957192421, -0.01978253573179245, 0.12117426097393036, -0.020196223631501198, -0.029061563313007355, 0.027587642893195152, -0.00846781674772501, 0.02431388385593891, 0.06320954859256744, -0.016535116359591484, -0.06958773732185364, -0.021801847964525223, 0.01606958732008934, 0.07997585088014603, -0.002422845223918557, 0.029237981885671616, -0.017413219437003136, 0.0551396943628788, 0.14854149520397186, -0.08205023407936096, 0.03463345393538475, -0.0658080205321312, 0.0682387501001358, -0.05119498446583748, 0.04457765072584152, 0.1144813820719719, 0.016035621985793114, -0.07012749463319778, 0.0329253114759922, 0.06955929100513458, 0.01567368023097515, -0.01822965033352375, -0.04286526143550873, -0.049105074256658554, 0.06388182938098907, -0.028230473399162292, 0.028932370245456696, -0.04512160271406174, 0.0020573469810187817, -0.10865525901317596, -0.01799691654741764, 0.023110581561923027, -0.0069965785369277, 0.0009819980477914214, 0.042306140065193176, -0.014301550574600697, -0.005497273989021778, -0.023301847279071808, -0.010923507623374462, 0.13221515715122223, 0.06498145312070847, 0.08441458642482758, -0.10856898874044418, 0.011441996321082115, -0.007771494798362255, 0.0018720555817708373, -0.02705765701830387, -4.7470557262840885e-8, -0.050925202667713165, -0.017632002010941505, -0.060376957058906555, 0.05990847572684288, -0.03183484822511673, -0.04642871767282486, -0.022580461576581, -0.03149985522031784, -0.036646001040935516, -0.016971906647086143, 0.04814501479268074, 0.0030294570606201887, -0.04052218794822693, -0.028495842590928078, 0.04415905103087425, 0.03170488774776459, 0.01970045268535614, -0.007375798653811216, -0.01960747502744198, -0.03936308994889259, -0.04580126702785492, -0.017897581681609154, 0.02790711633861065, 0.020601147785782814, -0.04283546283841133, -0.04087194427847862, -0.021810760721564293, 0.046457696706056595, -0.027303775772452354, 0.031131260097026825, -0.049627646803855896, 0.0007815188728272915, 0.05067242681980133, 0.012334703467786312, -0.07066553831100464, 0.002627765526995063, -0.08495452255010605, 0.04356319457292557, 0.04581265151500702, 0.010841899551451206, 0.02183450199663639, 0.030024537816643715, -0.10896354168653488, 0.04582266882061958, -0.06455273926258087, 0.05439070239663124, 0.018488114699721336, 0.013328136876225471, -0.007709029596298933, 0.0273458082228899, -0.03831963241100311, -0.05551758408546448, 0.04070426896214485, 0.03820347785949707, -0.027783118188381195, 0.10701704770326614, 0.045937515795230865, -0.09846240282058716, -0.013752329163253307, -0.012418857775628567, 0.05757156386971474, 0.027463648468255997, 0.04833689704537392, -0.04115215316414833 ]
0.024493
# `openclaw status` Diagnostics for channels + sessions. ```bash openclaw status openclaw status --all openclaw status --deep openclaw status --usage ``` Notes: - `--deep` runs live probes (WhatsApp Web + Telegram + Discord + Google Chat + Slack + Signal). - Output includes per-agent session stores when multiple agents are configured. - Overview includes Gateway + node host service install/runtime status when available. - Overview includes update channel + git SHA (for source checkouts). - Update info surfaces in the Overview; if an update is available, status prints a hint to run `openclaw update` (see [Updating](/install/updating)).
https://github.com/openclaw/openclaw/blob/main//docs/cli/status.md
main
opebclaw
[ 0.02202344685792923, -0.03218492493033409, -0.06743306666612625, 0.005766213871538639, 0.027940133586525917, -0.10025238990783691, 0.003041141899302602, -0.06528007239103317, -0.019238941371440887, 0.05460921674966812, 0.02763071469962597, -0.014052266255021095, -0.03203576058149338, -0.022680161520838737, 0.07883846759796143, 0.06802737712860107, 0.08770254999399185, -0.06081414967775345, -0.03471355512738228, -0.05768468603491783, -0.025110363960266113, 0.07121261954307556, 0.012211628258228302, -0.025808334350585938, -0.08121988922357559, 0.00728240143507719, -0.041417598724365234, -0.049542758613824844, -0.028474729508161545, 0.0008493707282468677, 0.045192476361989975, 0.05156595632433891, 0.008065222762525082, 0.030725395306944847, 0.08406637609004974, 0.043097976595163345, 0.008798283524811268, -0.02148735523223877, 0.0038883050438016653, 0.04421840235590935, 0.06178745999932289, -0.034476347267627716, -0.04942880570888519, -0.029933800920844078, -0.05549661070108414, -0.06619015336036682, -0.08738281577825546, -0.08526904881000519, -0.004722672514617443, -0.027709774672985077, -0.014564917422831059, -0.10392145812511444, 0.020834267139434814, 0.0002702864876482636, 0.02692575752735138, 0.032210201025009155, -0.028943683952093124, 0.021172774955630302, 0.015460303984582424, -0.04366166144609451, 0.03957410901784897, -0.022635256871581078, -0.009705658070743084, 0.04244789853692055, -0.0820036232471466, 0.052836328744888306, -0.017424482852220535, -0.04950771853327751, 0.019703514873981476, -0.05319911986589432, -0.062770314514637, 0.051856040954589844, -0.026053769513964653, -0.1199740394949913, -0.04127124696969986, -0.04877062514424324, 0.09763642400503159, 0.012582802213728428, -0.022725166752934456, -0.07043828070163727, -0.07966602593660355, -0.053480200469493866, -0.08310649544000626, 0.005104674957692623, -0.019304664805531502, 0.12679602205753326, 0.01924588903784752, 0.04701347276568413, -0.009258300065994263, 0.024394456297159195, -0.05652986839413643, -0.062127746641635895, 0.0015022729057818651, -0.019696852192282677, -0.07148310542106628, 0.06535495072603226, -0.048521630465984344, 0.025721365585923195, -0.03516829386353493, 0.08489469438791275, 0.04158851504325867, -0.027244145050644875, 0.038793712854385376, -0.026170073077082634, -0.05640086531639099, 0.07074003666639328, 0.004597889259457588, 0.10687310993671417, 0.048004332929849625, -0.013480866327881813, -0.00016082951333373785, -0.025708774104714394, 0.09926453232765198, -0.03740031644701958, -0.022485166788101196, 0.03959668427705765, 0.024750415235757828, 0.03141940385103226, -0.0055198087356984615, 0.05048000440001488, 0.17950676381587982, -0.009221740998327732, 0.07630936801433563, 0.003203341271728277, 0.04969603568315506, 0.06994788348674774, 0.1136036291718483, 3.169710966100698e-33, 0.09693508595228195, -0.007234037853777409, -0.05276145040988922, 0.009202520363032818, 0.091840960085392, 0.07080156356096268, 0.014841222204267979, -0.032581813633441925, -0.005457356572151184, 0.04168097302317619, 0.011090791784226894, 0.10318773984909058, -0.09701970219612122, -0.011815210804343224, -0.004272244405001402, -0.045628249645233154, -0.024856161326169968, 0.05363167077302933, 0.04571402072906494, -0.026816552504897118, 0.04004273936152458, -0.06260448694229126, -0.053441647440195084, 0.0487336665391922, 0.1082315444946289, 0.01379090454429388, 0.03876893222332001, 0.001319659175351262, -0.011975237168371677, 0.015382595360279083, 0.0800531879067421, 0.04056132957339287, -0.01734871044754982, 0.0036674104630947113, -0.0504620298743248, -0.006225672550499439, -0.12170235812664032, -0.015905674546957016, -0.009729701094329357, -0.07299166172742844, 0.006735413800925016, -0.00919205043464899, -0.04533829167485237, -0.049373894929885864, 0.06221993640065193, -0.10690394043922424, -0.10407445579767227, 0.04631952941417694, 0.0456806942820549, 0.0203693937510252, 0.023481665179133415, 0.013462589122354984, 0.0258104857057333, -0.023270053789019585, -0.06307195127010345, 0.004336497280746698, -0.003973633050918579, -0.016486763954162598, 0.02139981836080551, 0.010970265604555607, 0.0027502740267664194, -0.010764197446405888, -0.04425562173128128, -0.01837810128927231, -0.03101734071969986, 0.04306090995669365, 0.05978443846106529, 0.06372612714767456, -0.013240236788988113, 0.030731450766324997, -0.07353447377681732, 0.02867727167904377, 0.009130621328949928, 0.05398648604750633, -0.09708798676729202, -0.04257911816239357, -0.07592069357633591, -0.003016724018380046, 0.0009506024653092027, 0.026434872299432755, 0.0626785159111023, -0.007317936979234219, -0.046575307846069336, 0.05466421693563461, 0.06962095201015472, 0.07705551385879517, 0.015820106491446495, -0.04382317140698433, -0.04380663111805916, 0.11999101936817169, -0.07532631605863571, 0.07245207577943802, -0.07469567656517029, -0.032708264887332916, 0.03372020274400711, -4.299734256697302e-33, -0.0201468076556921, 0.009137513116002083, -0.07519544661045074, 0.021535655483603477, -0.04229062423110008, -0.04872984066605568, -0.035556573420763016, -0.03777766227722168, -0.028307441622018814, -0.017205268144607544, -0.006380497012287378, 0.07010522484779358, -0.05145133286714554, -0.061661798506975174, -0.015227383002638817, -0.01967095583677292, -0.024839973077178, -0.06965015083551407, 0.0031608950812369585, 0.04851595312356949, -0.013100672513246536, 0.028322763741016388, -0.03663308918476105, 0.03550093621015549, 0.035084038972854614, -0.0004982053069397807, 0.0688493475317955, 0.029335811734199524, -0.00003999986074632034, -0.04958980157971382, 0.04869912192225456, 0.010806010104715824, -0.07166728377342224, 0.05784190073609352, 0.024359779432415962, 0.022975675761699677, 0.02721855603158474, 0.013210546225309372, -0.020732730627059937, 0.02010863460600376, 0.09267253428697586, -0.03446686640381813, -0.09002416580915451, 0.005468889605253935, -0.0684049054980278, 0.08686257898807526, -0.054774682968854904, -0.0006839532288722694, -0.17236672341823578, -0.001949990401044488, -0.010662646032869816, -0.006024487782269716, 0.005315257236361504, 0.04726522043347359, 0.023594889789819717, 0.051326096057891846, 0.004694103263318539, -0.022899577394127846, -0.042288731783628464, -0.08986534178256989, 0.016723962500691414, 0.0053459168411791325, -0.02257312461733818, 0.07895955443382263, -0.04739626124501228, -0.04654059559106827, -0.006622564047574997, 0.0203260388225317, -0.03740047663450241, -0.01980363018810749, 0.023087218403816223, -0.07296488434076309, -0.06893575191497803, -0.07992945611476898, 0.011403989978134632, 0.005565174389630556, -0.06482254713773727, -0.10920555889606476, -0.009249663911759853, 0.07442045956850052, -0.069071464240551, 0.020128482952713966, 0.057755712419748306, -0.037523120641708374, 0.023460740223526955, 0.03017645701766014, -0.012043707072734833, 0.10938401520252228, 0.0790850892663002, 0.015311495400965214, -0.08736594766378403, 0.05630642920732498, -0.09015683829784393, -0.050841428339481354, -0.023514872416853905, -4.227964467418133e-8, -0.043602775782346725, -0.018861543387174606, -0.056773148477077484, -0.008028184063732624, 0.037789199501276016, -0.04367286339402199, 0.040808893740177155, 0.039251603186130524, -0.06209508702158928, -0.013771399855613708, 0.06849838048219681, -0.0002966902102343738, -0.06148618832230568, 0.043106839060783386, 0.06653925776481628, 0.07076282799243927, -0.02917238138616085, -0.01171704102307558, -0.006810671649873257, -0.06280919909477234, -0.03122277744114399, 0.01971219852566719, 0.08724743872880936, 0.061848703771829605, -0.05305733531713486, -0.06967376172542572, 0.012732453644275665, 0.05298755690455437, -0.026662210002541542, 0.03899100795388222, 0.019415536895394325, -0.023041481152176857, 0.03597770258784294, -0.05604107305407524, 0.03277479484677315, 0.05138379707932472, -0.051600854843854904, 0.03557401895523071, 0.07937297970056534, 0.06887827813625336, -0.002236745785921812, -0.00212439545430243, 0.005747165065258741, 0.0031533828005194664, -0.058039501309394836, 0.012470100075006485, -0.049486394971609116, -0.003896893933415413, 0.03678726404905319, -0.10041680932044983, -0.005019112955778837, -0.023345500230789185, 0.027153566479682922, 0.06416452676057816, -0.0004576286009978503, 0.0839029923081398, 0.0972626581788063, -0.059964269399642944, 0.04328041896224022, 0.01728825829923153, -0.02083984762430191, 0.0029630064964294434, 0.0009022736339829862, -0.014355437830090523 ]
0.102295
# `openclaw directory` Directory lookups for channels that support it (contacts/peers, groups, and “me”). ## Common flags - `--channel `: channel id/alias (required when multiple channels are configured; auto when only one is configured) - `--account `: account id (default: channel default) - `--json`: output JSON ## Notes - `directory` is meant to help you find IDs you can paste into other commands (especially `openclaw message send --target ...`). - For many channels, results are config-backed (allowlists / configured groups) rather than a live provider directory. - Default output is `id` (and sometimes `name`) separated by a tab; use `--json` for scripting. ## Using results with `message send` ```bash openclaw directory peers list --channel slack --query "U0" openclaw message send --channel slack --target user:U012ABCDEF --message "hello" ``` ## ID formats (by channel) - WhatsApp: `+15551234567` (DM), `1234567890-1234567890@g.us` (group) - Telegram: `@username` or numeric chat id; groups are numeric ids - Slack: `user:U…` and `channel:C…` - Discord: `user:` and `channel:` - Matrix (plugin): `user:@user:server`, `room:!roomId:server`, or `#alias:server` - Microsoft Teams (plugin): `user:` and `conversation:` - Zalo (plugin): user id (Bot API) - Zalo Personal / `zalouser` (plugin): thread id (DM/group) from `zca` (`me`, `friend list`, `group list`) ## Self (“me”) ```bash openclaw directory self --channel zalouser ``` ## Peers (contacts/users) ```bash openclaw directory peers list --channel zalouser openclaw directory peers list --channel zalouser --query "name" openclaw directory peers list --channel zalouser --limit 50 ``` ## Groups ```bash openclaw directory groups list --channel zalouser openclaw directory groups list --channel zalouser --query "work" openclaw directory groups members --channel zalouser --group-id ```
https://github.com/openclaw/openclaw/blob/main//docs/cli/directory.md
main
opebclaw
[ -0.0055455551482737064, -0.05556217581033707, -0.10364198684692383, 0.08071257919073105, 0.04215109720826149, -0.07760505378246307, 0.04235704615712166, 0.010432358831167221, -0.01690484769642353, -0.025832610204815865, 0.054649434983730316, -0.04765665903687477, 0.03355991467833519, 0.024430476129055023, 0.08750459551811218, 0.04377002269029617, 0.04313657432794571, -0.11266878247261047, -0.01032259501516819, -0.08383515477180481, 0.031347066164016724, 0.1041206493973732, 0.038609474897384644, -0.051345519721508026, -0.026530936360359192, -0.10987870395183563, -0.031902145594358444, 0.025290710851550102, -0.053250961005687714, 0.02503935806453228, 0.08476912975311279, 0.04326600953936577, 0.015029271133244038, 0.03136362507939339, 0.07191383838653564, 0.09737352281808853, 0.06999246776103973, -0.035929061472415924, -0.04981213063001633, 0.0536065474152565, 0.059100884944200516, -0.0029376186430454254, -0.03547215089201927, -0.023191053420305252, -0.052172787487506866, -0.09328213334083557, -0.06834240257740021, 0.023167133331298828, -0.04058966413140297, -0.012503533624112606, -0.04568035528063774, -0.07822690904140472, 0.016708193346858025, 0.07227269560098648, 0.04774348437786102, 0.025372164323925972, -0.11768557876348495, 0.062324196100234985, 0.06962598860263824, -0.08080321550369263, 0.05513119325041771, 0.0013058918993920088, 0.008907850831747055, -0.015926241874694824, -0.09949599206447601, -0.009141850285232067, 0.007970145903527737, 0.03740883246064186, 0.014412356540560722, -0.02610228955745697, -0.01944301463663578, 0.021708911284804344, -0.08272431790828705, -0.007593056187033653, 0.059788741171360016, -0.04476453363895416, 0.07222694903612137, 0.045987483114004135, -0.10455245524644852, -0.06233242526650429, -0.0642356351017952, -0.05671105161309242, -0.12219986319541931, 0.028197212144732475, -0.01917455717921257, 0.1168988049030304, 0.0042483014985919, 0.022786078974604607, -0.02586418017745018, 0.013068852946162224, -0.06027580052614212, -0.0829065814614296, -0.0692654550075531, -0.00627630902454257, -0.03163847699761391, 0.03149222582578659, -0.02474961057305336, 0.05585256591439247, -0.000641368911601603, 0.06199523061513901, 0.00983321014791727, -0.019800839945673943, 0.008406264707446098, -0.012894096784293652, -0.062063686549663544, 0.019046908244490623, -0.022996030747890472, 0.10846627503633499, 0.014843514189124107, 0.04482722654938698, -0.04516094923019409, 0.041141413152217865, 0.03502402827143669, -0.027802545577287674, 0.0320737361907959, 0.048418208956718445, -0.016962507739663124, 0.06462986022233963, 0.0928318127989769, 0.014766338281333447, 0.1322924941778183, -0.032615918666124344, 0.02813449315726757, 0.056619953364133835, 0.06883484870195389, 0.13046257197856903, 0.03165159001946449, 1.9859857670997542e-33, 0.10071565955877304, 0.0028018213342875242, -0.05136048048734665, 0.006427160929888487, 0.03206387907266617, 0.010739981196820736, -0.006939739920198917, 0.059121694415807724, -0.05652066692709923, 0.06976653635501862, -0.042598530650138855, 0.054577168077230453, -0.04351818561553955, 0.01894231140613556, -0.010101835243403912, 0.007015882525593042, -0.0497019961476326, -0.024963801726698875, 0.07195492833852768, -0.002600940875709057, -0.08714888244867325, 0.02449323609471321, -0.05587632209062576, 0.0013409454841166735, 0.019748050719499588, 0.012646271847188473, 0.00798009429126978, -0.05667484551668167, 0.01830017939209938, 0.022821946069598198, 0.0483461432158947, 0.020604701712727547, -0.011199825443327427, 0.009967014193534851, -0.006489421706646681, 0.043997686356306076, -0.12099360674619675, -0.003933908883482218, -0.0794321596622467, -0.020100057125091553, 0.05311184749007225, 0.009790318086743355, -0.08580173552036285, -0.04639836400747299, 0.022401710972189903, -0.07049959897994995, -0.01840011402964592, 0.004625346511602402, 0.07779919356107712, 0.03200480341911316, 0.015300852246582508, -0.013670372776687145, 0.031908486038446426, -0.01292330864816904, 0.02368795871734619, -0.03009999543428421, -0.0083406837657094, -0.002144932746887207, -0.009470266290009022, -0.017342498525977135, -0.055611710995435715, -0.01540573500096798, -0.02801038697361946, 0.015816930681467056, 0.01174713484942913, -0.02622302621603012, 0.02477160096168518, -0.006882510147988796, -0.0007408748497255147, 0.0011921542463824153, -0.06474187225103378, 0.018859608098864555, -0.009265929460525513, 0.062180228531360626, -0.09011279046535492, -0.03960184007883072, -0.019567904993891716, 0.03275319188833237, 0.03733662888407707, 0.040325965732336044, 0.035655345767736435, 0.02639375440776348, -0.07031591981649399, 0.026345105841755867, 0.030865289270877838, 0.06939750909805298, 0.02355271950364113, -0.09507904201745987, -0.038003355264663696, 0.05666958913207054, -0.08102553337812424, 0.059999819844961166, -0.04541033133864403, -0.004857566673308611, 0.004659940954297781, -3.181762721932503e-33, -0.009361132979393005, 0.04425676539540291, 0.0063416436314582825, -0.045752592384815216, 0.00970093160867691, -0.05605674535036087, 0.015218235552310944, -0.06944302469491959, -0.007550349924713373, -0.011937074363231659, -0.07734283804893494, -0.027646368369460106, -0.013677097856998444, -0.04551099240779877, 0.07977539300918579, -0.03953081741929054, -0.06493306905031204, -0.0761452466249466, 0.005075136665254831, -0.010404692031443119, -0.06044569984078407, 0.051103897392749786, 0.03905471786856651, 0.011741205118596554, 0.03078881837427616, -0.012935703620314598, 0.05132148414850235, 0.06761441379785538, -0.02819480001926422, -0.10510420054197311, 0.07035049796104431, 0.004924783483147621, -0.059911489486694336, 0.01635913737118244, -0.03963251784443855, 0.035025209188461304, -0.02845028042793274, 0.08450642973184586, 0.009618448093533516, -0.029536021873354912, 0.06862127035856247, 0.056300826370716095, -0.10231512784957886, -0.016181256622076035, -0.05558748543262482, 0.13553717732429504, 0.048861950635910034, -0.04620833694934845, -0.18069466948509216, 0.06636001169681549, 0.036943815648555756, 0.006738938391208649, 0.02992578223347664, 0.020995499566197395, 0.05819014459848404, 0.04596629738807678, 0.021714942529797554, -0.007723066955804825, 0.032880909740924835, -0.10229206830263138, 0.03944104164838791, -0.03748264163732529, -0.0011135991662740707, 0.07959047704935074, -0.0061887167394161224, -0.09803880751132965, 0.01906426250934601, -0.0019625546410679817, -0.08491247892379761, -0.00861432496458292, -0.02997259795665741, -0.11855573952198029, -0.03442411869764328, -0.03377122804522514, -0.008484811522066593, -0.007917775772511959, -0.12881332635879517, -0.033331163227558136, -0.07626449316740036, 0.10215236246585846, -0.01066297572106123, 0.03865455090999603, 0.011481893248856068, 0.02034120075404644, 0.022017253562808037, 0.049577273428440094, 0.059139031916856766, 0.1562948226928711, 0.08253638446331024, 0.025845959782600403, -0.04177882522344589, 0.047975268214941025, 0.005043574143201113, -0.04326031357049942, -0.016138831153512, -5.0828237618816274e-8, -0.06139736250042915, -0.061031974852085114, -0.11829952150583267, 0.01621408201754093, -0.024858631193637848, -0.005108267068862915, -0.009476296603679657, 0.018515296280384064, -0.02664845436811447, 0.03649555519223213, 0.060551200062036514, 0.010505289770662785, -0.0562155619263649, 0.02444681152701378, -0.03654876723885536, -0.0023898305371403694, -0.07004717737436295, -0.04728654772043228, 0.003985924646258354, 0.0009781704284250736, 0.009617234580218792, 0.03829752653837204, -0.0021893351804465055, 0.07188993692398071, -0.01884877309203148, -0.042782481759786606, 0.018850019201636314, 0.07128990441560745, -0.027616072446107864, -0.024722665548324585, -0.05155334994196892, -0.05058853700757027, 0.02649657055735588, -0.02416798286139965, -0.014123208820819855, -0.009379934519529343, -0.044830407947301865, 0.010494423098862171, 0.02713191509246826, 0.07109049707651138, 0.056050293147563934, 0.009792805649340153, -0.004258668981492519, -0.0071211946196854115, -0.015611705370247364, 0.019995983690023422, -0.004489162936806679, -0.025638936087489128, 0.03405856713652611, -0.02415016107261181, -0.029258444905281067, -0.03704375773668289, 0.0035285253543406725, 0.02696678787469864, -0.011327945627272129, 0.03693464770913124, 0.006066665519028902, -0.006679927464574575, 0.03660965338349342, 0.01347641833126545, -0.040463436394929886, 0.08287642896175385, -0.03439193218946457, -0.001021655392833054 ]
0.049634
# `openclaw node` Run a \*\*headless node host\*\* that connects to the Gateway WebSocket and exposes `system.run` / `system.which` on this machine. ## Why use a node host? Use a node host when you want agents to \*\*run commands on other machines\*\* in your network without installing a full macOS companion app there. Common use cases: - Run commands on remote Linux/Windows boxes (build servers, lab machines, NAS). - Keep exec \*\*sandboxed\*\* on the gateway, but delegate approved runs to other hosts. - Provide a lightweight, headless execution target for automation or CI nodes. Execution is still guarded by \*\*exec approvals\*\* and per‑agent allowlists on the node host, so you can keep command access scoped and explicit. ## Browser proxy (zero-config) Node hosts automatically advertise a browser proxy if `browser.enabled` is not disabled on the node. This lets the agent use browser automation on that node without extra configuration. Disable it on the node if needed: ```json5 { nodeHost: { browserProxy: { enabled: false, }, }, } ``` ## Run (foreground) ```bash openclaw node run --host --port 18789 ``` Options: - `--host `: Gateway WebSocket host (default: `127.0.0.1`) - `--port `: Gateway WebSocket port (default: `18789`) - `--tls`: Use TLS for the gateway connection - `--tls-fingerprint `: Expected TLS certificate fingerprint (sha256) - `--node-id `: Override node id (clears pairing token) - `--display-name `: Override the node display name ## Service (background) Install a headless node host as a user service. ```bash openclaw node install --host --port 18789 ``` Options: - `--host `: Gateway WebSocket host (default: `127.0.0.1`) - `--port `: Gateway WebSocket port (default: `18789`) - `--tls`: Use TLS for the gateway connection - `--tls-fingerprint `: Expected TLS certificate fingerprint (sha256) - `--node-id `: Override node id (clears pairing token) - `--display-name `: Override the node display name - `--runtime `: Service runtime (`node` or `bun`) - `--force`: Reinstall/overwrite if already installed Manage the service: ```bash openclaw node status openclaw node stop openclaw node restart openclaw node uninstall ``` Use `openclaw node run` for a foreground node host (no service). Service commands accept `--json` for machine-readable output. ## Pairing The first connection creates a pending node pair request on the Gateway. Approve it via: ```bash openclaw nodes pending openclaw nodes approve ``` The node host stores its node id, token, display name, and gateway connection info in `~/.openclaw/node.json`. ## Exec approvals `system.run` is gated by local exec approvals: - `~/.openclaw/exec-approvals.json` - [Exec approvals](/tools/exec-approvals) - `openclaw approvals --node ` (edit from the Gateway)
https://github.com/openclaw/openclaw/blob/main//docs/cli/node.md
main
opebclaw
[ -0.03340030089020729, 0.0040057990700006485, -0.05169599503278732, 0.023035062476992607, 0.005981949158012867, -0.08338101953268051, -0.04340939223766327, -0.01699014939367771, -0.03404635936021805, -0.0010252651991322637, -0.005429872777312994, -0.01241970993578434, 0.022839399054646492, -0.029510481283068657, 0.09354659914970398, 0.0976061224937439, 0.1689140647649765, -0.051953453570604324, 0.049037735909223557, -0.06687168031930923, -0.04920826479792595, -0.03888710215687752, -0.02729099616408348, -0.03415292501449585, -0.12855757772922516, -0.022786065936088562, -0.003173415781930089, -0.06282861530780792, -0.008811671286821365, 0.016855722293257713, 0.008761385455727577, -0.0636235699057579, -0.04025045782327652, 0.061775531619787216, -0.02022293023765087, 0.0241048913449049, 0.07991853356361389, 0.020044995471835136, -0.12041043490171432, 0.011290800757706165, 0.13904879987239838, 0.005410074256360531, -0.024090545251965523, -0.031040867790579796, -0.011893849819898605, -0.05051534250378609, -0.055995844304561615, -0.04071691259741783, -0.04241083934903145, -0.02697681449353695, -0.06404916197061539, -0.08872373402118683, -0.01639939844608307, 0.026294110342860222, -0.00013827583461534232, -0.01906329207122326, 0.05037124454975128, -0.03578729182481766, 0.1048947349190712, -0.004493214190006256, 0.015123973600566387, -0.011867678724229336, -0.008381670340895653, 0.055025722831487656, -0.06878583133220673, -0.001762721105478704, -0.038212526589632034, -0.0014971370110288262, 0.008296633139252663, -0.010499106720089912, -0.015305744484066963, -0.02890666201710701, -0.0315861739218235, -0.018068917095661163, -0.060629162937402725, -0.03968823328614235, 0.024797018617391586, -0.018037404865026474, -0.05605842173099518, -0.02961079217493534, -0.041752930730581284, -0.008303124457597733, -0.09152044355869293, 0.09257848560810089, -0.07188573479652405, 0.12394975870847702, -0.026890382170677185, 0.028226453810930252, 0.07607138901948929, 0.05973378196358681, -0.019760852679610252, -0.04482046142220497, -0.029015565291047096, 0.011370982974767685, 0.04707599803805351, 0.03906041756272316, 0.0395769327878952, -0.015750087797641754, -0.06182409077882767, 0.05242816358804703, -0.018967406824231148, -0.04037771746516228, -0.0009716869099065661, -0.02730831317603588, -0.06575928628444672, 0.03364268317818642, 0.024286217987537384, 0.04551241919398308, 0.10310428589582443, -0.0035598669201135635, -0.0630149319767952, -0.013353708200156689, 0.019879939034581184, -0.0227191299200058, -0.04592370614409447, -0.000546029768884182, 0.07895436137914658, 0.03768358379602432, 0.06368831545114517, 0.06746531277894974, 0.08249171078205109, 0.006646100431680679, 0.040912918746471405, 0.030255697667598724, 0.14368893206119537, 0.016506627202033997, 0.01606247015297413, 5.753436528948547e-33, 0.03591280058026314, -0.04803988337516785, -0.015749413520097733, 0.0392988882958889, 0.1769753247499466, -0.004487587604671717, 0.11001762002706528, -0.025914110243320465, -0.07054675370454788, 0.0096417972818017, 0.020365038886666298, 0.011948715895414352, 0.012660647742450237, -0.010117242112755775, 0.03674905002117157, -0.03246303275227547, 0.003214051714166999, -0.007597092539072037, 0.1144682988524437, 0.005886984057724476, 0.05277604982256889, -0.05392163246870041, -0.02117527835071087, 0.05845740810036659, -0.009771261364221573, -0.04543938487768173, -0.06165950745344162, -0.008781586773693562, 0.053360890597105026, 0.04191717132925987, 0.056703947484493256, 0.05371923744678497, -0.046145740896463394, 0.05759952589869499, -0.08364078402519226, 0.004281037952750921, -0.07514523714780807, -0.056195493787527084, -0.009980538859963417, -0.015763938426971436, -0.040749553591012955, -0.02213357575237751, -0.007449240889400244, -0.07073400914669037, -0.010949314571917057, -0.1567896455526352, -0.0913672223687172, 0.03121247887611389, 0.08568204194307327, 0.0026148080360144377, 0.030744753777980804, -0.0024729911237955093, 0.10644100606441498, -0.02293207310140133, 0.036449968814849854, 0.0115542933344841, 0.006268610246479511, -0.027737395837903023, -0.005801354069262743, -0.015587285161018372, -0.002581436885520816, 0.009744074195623398, -0.0547972097992897, 0.03777066618204117, 0.012711712159216404, -0.020362887531518936, 0.02087094821035862, 0.018775789067149162, -0.07011301815509796, 0.03310711309313774, -0.05348188802599907, 0.05653553083539009, -0.028382204473018646, 0.04769163951277733, -0.05776316300034523, 0.007313210517168045, -0.012052085250616074, -0.00915481150150299, 0.016658978536725044, -0.010908826254308224, 0.009043174795806408, 0.020079098641872406, -0.0025340281426906586, 0.04963475838303566, 0.06428446620702744, 0.007678010500967503, -0.04918324947357178, -0.008687113411724567, 0.041420191526412964, 0.07190605998039246, 0.001499469974078238, -0.004817316774278879, -0.04578455165028572, 0.0476529635488987, -0.05739152058959007, -7.110497737198845e-33, -0.017445290461182594, 0.006640794686973095, -0.07916070520877838, 0.042835138738155365, -0.04307390749454498, 0.0016020728508010507, -0.050159770995378494, -0.10586883127689362, -0.026322204619646072, -0.023646768182516098, -0.04891021549701691, 0.05984845384955406, 0.036949366331100464, -0.06553342938423157, 0.011319208890199661, -0.07485378533601761, -0.0012148068053647876, -0.07108069211244583, -0.01338606420904398, -0.026464758440852165, -0.04280465096235275, 0.03642963245511055, 0.02524559199810028, -0.03138153254985809, 0.027305038645863533, -0.001476016128435731, -0.019260432571172714, 0.09535450488328934, -0.07548633962869644, -0.040466394275426865, -0.005486177280545235, 0.029887188225984573, 0.03513075411319733, -0.04052402451634407, 0.03596092760562897, 0.05658566951751709, -0.007490674965083599, 0.1054592877626419, 0.044625863432884216, -0.0045318868942558765, 0.06913048774003983, -0.0817870944738388, -0.049398940056562424, 0.01748848520219326, 0.006925877183675766, 0.093991219997406, -0.09325933456420898, 0.021594388410449028, -0.05399711802601814, 0.02151821367442608, -0.0529172383248806, 0.021024221554398537, 0.012746848165988922, 0.03899247199296951, -0.01697884127497673, 0.04580547288060188, 0.041855521500110626, 0.05991772934794426, 0.034770939499139786, -0.05305546522140503, 0.061520736664533615, -0.11556237936019897, -0.05048168823122978, 0.09444013237953186, -0.042074013501405716, -0.00507685262709856, -0.06953258067369461, 0.04451577737927437, -0.032386645674705505, 0.0019899108447134495, -0.019052308052778244, 0.019592968747019768, -0.059002649039030075, -0.0220071729272604, -0.02025948464870453, -0.03724977746605873, 0.05040700361132622, -0.10711479187011719, -0.04675694555044174, 0.07962508499622345, -0.025937575846910477, 0.10764801502227783, -0.008802413009107113, -0.08248106390237808, -0.026688458397984505, -0.004106652922928333, -0.023272816091775894, 0.05353112891316414, 0.06350599974393845, 0.015005082823336124, -0.048500847071409225, -0.005208113230764866, -0.04998783394694328, -0.05150932818651199, -0.01279046107083559, -5.530603885972596e-8, -0.031221723183989525, -0.02191118337213993, -0.04353131726384163, 0.01038354355841875, -0.06216641515493393, 0.03829004615545273, -0.009040866047143936, -0.08111700415611267, 0.029784362763166428, 0.0682147890329361, 0.07636463642120361, -0.051305968314409256, -0.01787630282342434, 0.01696125604212284, 0.016939813271164894, 0.048811983317136765, 0.02037011831998825, -0.017278539016842842, 0.018518595024943352, -0.03816462308168411, -0.011039648205041885, -0.020094135776162148, 0.016747891902923584, 0.1067100316286087, -0.06020645424723625, -0.010486045852303505, 0.02758527174592018, -0.0003308754530735314, -0.07289724797010422, 0.09643588215112686, -0.11484351754188538, -0.0332476906478405, 0.01237780973315239, 0.048838067799806595, -0.05072561651468277, 0.04477334022521973, -0.09300760924816132, -0.023176467046141624, 0.04609525576233864, -0.018611418083310127, -0.01794475130736828, 0.03447393700480461, -0.04072556272149086, -0.05894692614674568, -0.020188231021165848, 0.04378916695713997, -0.04988868534564972, 0.02086673490703106, 0.025997037068009377, 0.005437381565570831, 0.05200694873929024, -0.012390874326229095, 0.02054647170007229, 0.07319976389408112, 0.03218194842338562, 0.04783245921134949, 0.07307805866003036, -0.1648450791835785, -0.0028349130880087614, 0.07275980710983276, -0.01006176508963108, 0.026618441566824913, 0.04129047691822052, -0.039792098104953766 ]
0.175027
# `openclaw channels` Manage chat channel accounts and their runtime status on the Gateway. Related docs: - Channel guides: [Channels](/channels/index) - Gateway configuration: [Configuration](/gateway/configuration) ## Common commands ```bash openclaw channels list openclaw channels status openclaw channels capabilities openclaw channels capabilities --channel discord --target channel:123 openclaw channels resolve --channel slack "#general" "@jane" openclaw channels logs --channel all ``` ## Add / remove accounts ```bash openclaw channels add --channel telegram --token openclaw channels remove --channel telegram --delete ``` Tip: `openclaw channels add --help` shows per-channel flags (token, app token, signal-cli paths, etc). ## Login / logout (interactive) ```bash openclaw channels login --channel whatsapp openclaw channels logout --channel whatsapp ``` ## Troubleshooting - Run `openclaw status --deep` for a broad probe. - Use `openclaw doctor` for guided fixes. - `openclaw channels list` prints `Claude: HTTP 403 ... user:profile` → usage snapshot needs the `user:profile` scope. Use `--no-usage`, or provide a claude.ai session key (`CLAUDE\_WEB\_SESSION\_KEY` / `CLAUDE\_WEB\_COOKIE`), or re-auth via Claude Code CLI. ## Capabilities probe Fetch provider capability hints (intents/scopes where available) plus static feature support: ```bash openclaw channels capabilities openclaw channels capabilities --channel discord --target channel:123 ``` Notes: - `--channel` is optional; omit it to list every channel (including extensions). - `--target` accepts `channel:` or a raw numeric channel id and only applies to Discord. - Probes are provider-specific: Discord intents + optional channel permissions; Slack bot + user scopes; Telegram bot flags + webhook; Signal daemon version; MS Teams app token + Graph roles/scopes (annotated where known). Channels without probes report `Probe: unavailable`. ## Resolve names to IDs Resolve channel/user names to IDs using the provider directory: ```bash openclaw channels resolve --channel slack "#general" "@jane" openclaw channels resolve --channel discord "My Server/#support" "@someone" openclaw channels resolve --channel matrix "Project Room" ``` Notes: - Use `--kind user|group|auto` to force the target type. - Resolution prefers active matches when multiple entries share the same name.
https://github.com/openclaw/openclaw/blob/main//docs/cli/channels.md
main
opebclaw
[ 0.009339965879917145, -0.08130359649658203, -0.05929698050022125, 0.03678954765200615, -0.004402852617204189, -0.09406374394893646, 0.04201051965355873, -0.022523660212755203, 0.005202069878578186, -0.010136176832020283, 0.005552398972213268, -0.006313303019851446, -0.017144013196229935, 0.016583001241087914, 0.1063738539814949, 0.07514433562755585, 0.043080441653728485, -0.12730659544467926, -0.02880753017961979, -0.07371298223733902, 0.014647216536104679, 0.05323360115289688, 0.008901126682758331, -0.010188588872551918, -0.051575254648923874, -0.07808591425418854, -0.049679458141326904, 0.010987415909767151, -0.059260427951812744, -0.029892031103372574, 0.07698178291320801, 0.026752252131700516, -0.04305677115917206, 0.038221731781959534, 0.05213863030076027, 0.03755023702979088, 0.05190124362707138, -0.0013775229454040527, 0.014369027689099312, 0.0003819465055130422, 0.045618824660778046, -0.07123786211013794, -0.06354937702417374, -0.02509460039436817, -0.0487247072160244, -0.060741446912288666, -0.034481681883335114, -0.08254773169755936, -0.00937484297901392, -0.0042726402170956135, -0.008069837465882301, -0.051520075649023056, 0.012273228727281094, 0.04781784862279892, 0.018398001790046692, 0.03541563078761101, -0.07729385793209076, 0.020371457561850548, 0.06704077124595642, -0.03567110002040863, 0.004251191392540932, -0.015465534292161465, -0.027876893058419228, 0.03247949108481407, -0.12757360935211182, -0.006058422848582268, -0.008828253485262394, -0.026956213638186455, 0.009243879467248917, 0.01822882518172264, -0.05427869036793709, 0.03546696528792381, -0.05536101013422012, -0.0429367795586586, 0.0059950510039925575, -0.03356695920228958, 0.07431551814079285, -0.004952920600771904, -0.07558834552764893, -0.08937941491603851, -0.024623101577162743, -0.003241902217268944, -0.05813911557197571, 0.029209477826952934, -0.013159654103219509, 0.11954830586910248, 0.0017852425808086991, 0.0002845186972990632, 0.02068236470222473, 0.021618910133838654, -0.034140847623348236, -0.04933265224099159, 0.02293703705072403, 0.011131791397929192, -0.002505616517737508, -0.018543502315878868, -0.025838466361165047, -0.007309510838240385, -0.052202481776475906, 0.09938378632068634, 0.01448844000697136, 0.003735952079296112, 0.05567820742726326, 0.010580613277852535, -0.030255520716309547, 0.0444960817694664, 0.011509004980325699, 0.11858240514993668, 0.0694660022854805, 0.021380092948675156, -0.011176704429090023, 0.0048607406206429005, 0.07422985881567001, -0.002846522955223918, 0.021659469231963158, 0.0851336121559143, 0.0077279857359826565, 0.023453399538993835, 0.03849194571375847, 0.08542009443044662, 0.12581942975521088, -0.018181871622800827, 0.0010315484832972288, 0.004012963268905878, 0.014825323596596718, 0.10918562114238739, 0.08070092648267746, 8.09556420723983e-33, 0.05961519107222557, 0.004675885196775198, -0.11606041342020035, 0.0220721997320652, 0.10021211206912994, 0.0735454261302948, 0.000268360337940976, 0.010418546386063099, -0.0804784819483757, 0.07365657389163971, -0.028004975989460945, 0.03313151001930237, -0.0775434598326683, -0.009909330867230892, 0.02164783515036106, -0.03967699408531189, -0.02950110100209713, 0.017490465193986893, 0.06711355596780777, -0.04646225646138191, 0.03521614894270897, -0.05974159389734268, -0.05081190541386604, 0.032031528651714325, 0.06983673572540283, 0.04829118400812149, 0.02836328186094761, -0.021198386326432228, -0.018892554566264153, 0.02961794100701809, 0.049467772245407104, -0.005008837208151817, -0.04925266280770302, 0.00021991314133629203, 0.022164473310112953, -0.007956509478390217, -0.10454344749450684, -0.015076098032295704, -0.04056800901889801, -0.01881222054362297, -0.016631558537483215, -0.003218520199880004, -0.10020919144153595, -0.0742502510547638, 0.030931830406188965, -0.11817948520183563, -0.030006809160113335, 0.024736125022172928, 0.05437260493636131, 0.05497568100690842, -0.014264700002968311, -0.00598254706710577, 0.015026130713522434, -0.021586835384368896, 0.023027081042528152, -0.0736774355173111, -0.06720192730426788, -0.037565745413303375, 0.005874142050743103, -0.03231203556060791, -0.016287362203001976, -0.008789023384451866, -0.03705112263560295, -0.01654917560517788, 0.029799701645970345, 0.01528132800012827, 0.0032206412870436907, 0.0522601343691349, -0.01638231799006462, -0.016723711043596268, -0.06731673330068588, 0.017038151621818542, 0.004701720084995031, 0.05952863395214081, -0.09508005529642105, -0.008396776393055916, -0.050959281623363495, 0.008511175401508808, 0.046847764402627945, 0.02748275175690651, 0.053723230957984924, -0.011033627204596996, -0.04224780201911926, 0.028083350509405136, 0.06778035312891006, 0.04318412020802498, 0.08675355464220047, -0.11938999593257904, -0.02523566037416458, 0.12153753638267517, -0.07386249303817749, 0.07698266208171844, -0.003395682666450739, -0.008853009901940823, -0.04014342650771141, -7.674704168866834e-33, -0.01901223696768284, 0.06109600514173508, -0.043579209595918655, -0.019620928913354874, -0.02543022483587265, -0.031388845294713974, 0.06244516000151634, -0.03433648496866226, -0.023750556632876396, 0.006181288976222277, -0.04761160910129547, 0.02395777776837349, 0.010190999135375023, -0.06084359809756279, 0.04856450855731964, -0.03033994883298874, -0.03912859037518501, -0.05906220152974129, -0.012817648239433765, 0.006982502993196249, -0.08039796352386475, 0.08060295879840851, -0.05282757058739662, 0.004585095215588808, 0.03705020621418953, 0.013427766971290112, 0.0676654502749443, 0.06285400688648224, -0.013805984519422054, -0.06778523325920105, 0.04464859142899513, 0.006023462396115065, -0.03714815899729729, 0.019427113234996796, 0.02581425942480564, 0.016918817535042763, 0.016821233555674553, 0.07873546332120895, -0.0192630086094141, -0.02289624698460102, 0.14000408351421356, 0.0033630530815571547, -0.06799168139696121, -0.012809802778065205, -0.055501680821180344, 0.10107050836086273, -0.010121303610503674, -0.05024710297584534, -0.1781635582447052, 0.009893534705042839, 0.026629585772752762, -0.05342605337500572, 0.06638293713331223, 0.02500752918422222, 0.007544633001089096, 0.04456029459834099, 0.10810250788927078, -0.01375807635486126, -0.001088749268092215, -0.15916131436824799, 0.042062729597091675, -0.054932016879320145, 0.005421014502644539, 0.11319290101528168, 0.057306189090013504, -0.11904056370258331, -0.002383182989433408, 0.06968940049409866, -0.07630106061697006, -0.043760694563388824, -0.002976704388856888, -0.04533316195011139, 0.0009341752156615257, -0.07795915752649307, 0.020013919100165367, 0.017580263316631317, -0.03667048364877701, -0.10589393228292465, -0.06408606469631195, 0.07359610497951508, -0.03835740312933922, 0.0074872649274766445, 0.027644338086247444, -0.04088117927312851, -0.007934646680951118, 0.02215375192463398, 0.0035807702224701643, 0.13846275210380554, 0.043462999165058136, 0.04919943958520889, -0.05528988316655159, 0.020598003640770912, -0.014131671749055386, -0.008356350474059582, 0.025293545797467232, -5.1868397576981806e-8, -0.07222569733858109, -0.06834044307470322, -0.0941595733165741, 0.029902124777436256, -0.015169850550591946, -0.011964911594986916, 0.022817974910140038, 0.019718915224075317, -0.03979498893022537, 0.004774236120283604, 0.05280657857656479, 0.030162934213876724, -0.07486101984977722, 0.040256984531879425, 0.000051199818699387833, 0.012833352200686932, -0.06846597045660019, -0.0007632173364982009, 0.014319436624646187, -0.0328124463558197, -0.036346059292554855, 0.026745393872261047, 0.02892802096903324, 0.0722736194729805, -0.08181896805763245, -0.058261286467313766, 0.01233565155416727, 0.04527799412608147, -0.05726365000009537, -0.00820955727249384, -0.02458208054304123, 0.00016002077609300613, 0.055554360151290894, -0.06314782053232193, -0.05769732967019081, 0.03872092813253403, -0.05890630558133125, 0.019208282232284546, -0.0068424660712480545, 0.05964817851781845, 0.04866774007678032, -0.017893189564347267, 0.026279784739017487, -0.025852655991911888, -0.06378740817308426, 0.011155630461871624, -0.06961646676063538, 0.02397175319492817, 0.05747010558843613, -0.04506678879261017, -0.02407677471637726, 0.006314059253782034, 0.07783744484186172, 0.0701138824224472, 0.005961090791970491, 0.05860952287912369, 0.06515105813741684, -0.04837217554450035, -0.005308587569743395, 0.021744217723608017, -0.003573803696781397, 0.0878823921084404, 0.0029214113019406796, -0.07271784543991089 ]
0.113644
# `openclaw nodes` Manage paired nodes (devices) and invoke node capabilities. Related: - Nodes overview: [Nodes](/nodes) - Camera: [Camera nodes](/nodes/camera) - Images: [Image nodes](/nodes/images) Common options: - `--url`, `--token`, `--timeout`, `--json` ## Common commands ```bash openclaw nodes list openclaw nodes list --connected openclaw nodes list --last-connected 24h openclaw nodes pending openclaw nodes approve openclaw nodes status openclaw nodes status --connected openclaw nodes status --last-connected 24h ``` `nodes list` prints pending/paired tables. Paired rows include the most recent connect age (Last Connect). Use `--connected` to only show currently-connected nodes. Use `--last-connected ` to filter to nodes that connected within a duration (e.g. `24h`, `7d`). ## Invoke / run ```bash openclaw nodes invoke --node --command --params openclaw nodes run --node openclaw nodes run --raw "git status" openclaw nodes run --agent main --node --raw "git status" ``` Invoke flags: - `--params `: JSON object string (default `{}`). - `--invoke-timeout `: node invoke timeout (default `15000`). - `--idempotency-key `: optional idempotency key. ### Exec-style defaults `nodes run` mirrors the model’s exec behavior (defaults + approvals): - Reads `tools.exec.\*` (plus `agents.list[].tools.exec.\*` overrides). - Uses exec approvals (`exec.approval.request`) before invoking `system.run`. - `--node` can be omitted when `tools.exec.node` is set. - Requires a node that advertises `system.run` (macOS companion app or headless node host). Flags: - `--cwd `: working directory. - `--env `: env override (repeatable). - `--command-timeout `: command timeout. - `--invoke-timeout `: node invoke timeout (default `30000`). - `--needs-screen-recording`: require screen recording permission. - `--raw `: run a shell string (`/bin/sh -lc` or `cmd.exe /c`). - `--agent `: agent-scoped approvals/allowlists (defaults to configured agent). - `--ask `, `--security `: overrides.
https://github.com/openclaw/openclaw/blob/main//docs/cli/nodes.md
main
opebclaw
[ -0.021484319120645523, 0.019376255571842194, -0.044800277799367905, 0.0400671660900116, -0.0007597279618494213, -0.051029253751039505, -0.03189989924430847, -0.028738783672451973, -0.03162819892168045, 0.04857418313622475, 0.048409659415483475, -0.02168428525328636, 0.03177358955144882, 0.0009757737861946225, 0.02822573482990265, 0.10207998752593994, -0.013582409359514713, -0.0398203581571579, 0.020844601094722748, -0.09311310201883316, -0.027511294931173325, 0.012926860712468624, 0.000036339963116915897, -0.11246433109045029, -0.0029379422776401043, 0.0015053075039759278, -0.06035367026925087, -0.07321255654096603, -0.009347746148705482, -0.025674164295196533, 0.012763114646077156, 0.05554453283548355, -0.011639535427093506, 0.04475848749279976, 0.015353898517787457, 0.02832699939608574, 0.06531453132629395, -0.0443304218351841, -0.07511796802282333, -0.02168317511677742, 0.1007876992225647, -0.0385049469769001, 0.0062420484609901905, -0.0802154466509819, -0.08282724767923355, -0.003417435334995389, -0.10946790128946304, -0.0884048342704773, -0.013043172657489777, -0.006826585158705711, -0.12007495760917664, -0.045703399926424026, -0.0005194177501834929, -0.04208642616868019, 0.03613567352294922, 0.03439829871058464, -0.057870760560035706, -0.061995621770620346, 0.04561566933989525, -0.027056045830249786, 0.02897464483976364, -0.017797833308577538, -0.07686081528663635, 0.0047681317664682865, -0.03447917103767395, 0.03477184474468231, -0.0019230733159929514, -0.006852795369923115, 0.026385920122265816, 0.05827421694993973, 0.026704752817749977, 0.07536030560731888, -0.03775177523493767, -0.01839165762066841, -0.06415794789791107, -0.022574203088879585, 0.07847099006175995, -0.02400306798517704, -0.06474584341049194, -0.1620148867368698, -0.07792520523071289, -0.030161816626787186, -0.07989344000816345, 0.009302851743996143, -0.01432734914124012, 0.08566306531429291, -0.05906243249773979, 0.048996929079294205, -0.07042444497346878, 0.007511145900934935, -0.12223228067159653, 0.013614226132631302, -0.09671861678361893, -0.038708049803972244, 0.003036354435607791, 0.04048933461308479, 0.007098892237991095, 0.04602746292948723, -0.017573896795511246, 0.09202571213245392, -0.010947315022349358, -0.0013541202060878277, -0.036769017577171326, -0.032940298318862915, -0.051017746329307556, 0.014734428375959396, -0.05251219868659973, 0.06092274188995361, 0.031117061153054237, 0.054730840027332306, 0.017022470012307167, 0.003667455865070224, 0.022117070853710175, -0.07043187320232391, -0.02797958068549633, 0.0075619095005095005, 0.012690768577158451, 0.021916620433330536, 0.07077107578516006, 0.06503293663263321, 0.12381438165903091, 0.024645814672112465, -0.023660363629460335, -0.036917995661497116, 0.08161215484142303, 0.01819578930735588, 0.12845876812934875, 5.07030717051779e-33, 0.09773088991641998, -0.09805022180080414, 0.025775199756026268, -0.04772927239537239, 0.13396860659122467, 0.1008368507027626, 0.012141275219619274, 0.021862709894776344, -0.1012309119105339, 0.03129518777132034, -0.03709312155842781, -0.012344387359917164, -0.05199330300092697, -0.04483755677938461, -0.015657931566238403, -0.04509885236620903, 0.06966162472963333, -0.01959155686199665, -0.004873037338256836, -0.003516868920996785, 0.06844564527273178, -0.08804954588413239, -0.057579584419727325, 0.1179569885134697, 0.01517289225012064, -0.06590020656585693, -0.007211191114038229, 0.014805265702307224, 0.02917332760989666, 0.018343664705753326, 0.06744953989982605, 0.08777150511741638, -0.041181232780218124, 0.002584774512797594, -0.005871819797903299, -0.0005169691285118461, -0.02540174126625061, 0.021689703688025475, -0.07057399302721024, -0.0966963842511177, 0.0002828457218129188, -0.018856637179851532, -0.09152566641569138, -0.03177429363131523, -0.015549834817647934, -0.08910773694515228, -0.04306710138916969, 0.04505980759859085, -0.028709501028060913, 0.061661653220653534, 0.04972275719046593, -0.0043050977401435375, -0.002537591615691781, -0.0987100750207901, -0.06312914937734604, 0.02634456939995289, -0.04720941558480263, 0.026584668084979057, -0.008658579550683498, 0.036409467458724976, 0.04742319509387016, 0.039791397750377655, 0.013431737199425697, -0.030744535848498344, 0.005127482581883669, 0.04525800794363022, 0.0639556273818016, 0.02665144018828869, 0.02028307504951954, 0.015701303258538246, -0.010186433792114258, 0.03816567733883858, 0.016057249158620834, -0.060698073357343674, -0.0051988097839057446, -0.03470040112733841, -0.037837132811546326, -0.07000987976789474, 0.02531120739877224, 0.03776545822620392, 0.026283029466867447, -0.013828539289534092, -0.04227883368730545, 0.027518045157194138, 0.03510362654924393, 0.02094552479684353, 0.012537618167698383, -0.030444180592894554, -0.0520407110452652, 0.07374444603919983, -0.012039702385663986, 0.01096639595925808, -0.0013802290195599198, -0.09982290863990784, 0.018505461513996124, -5.91171463923486e-33, 0.04664408043026924, 0.10283917933702469, 0.018389498814940453, -0.007382620591670275, 0.06532549113035202, -0.07358868420124054, 0.005699208937585354, -0.0010365800699219108, 0.0014935457147657871, 0.015500188805162907, 0.04184370115399361, -0.008223123848438263, -0.02647576853632927, -0.08626410365104675, 0.033628884702920914, -0.019259117543697357, -0.024205410853028297, -0.09581942111253738, 0.016033988445997238, 0.024339856579899788, 0.0029536536894738674, 0.08768998086452484, 0.07771562039852142, 0.06783319264650345, 0.050074055790901184, -0.0023235257249325514, 0.03043164685368538, 0.0224789846688509, 0.0034246137365698814, -0.05524720624089241, 0.039135199040174484, -0.011785972863435745, -0.028661230579018593, 0.012544591911137104, 0.005743824411183596, 0.02582840621471405, -0.00852616224437952, 0.04984375461935997, 0.04158813878893852, 0.01779027469456196, 0.061602842062711716, -0.005962875671684742, -0.0642404779791832, 0.011566480621695518, -0.049652714282274246, 0.011256852187216282, 0.022074686363339424, 0.02537459507584572, -0.1684151440858841, 0.03301431983709335, -0.05427795648574829, 0.030669881030917168, -0.07699456810951233, 0.023703990504145622, 0.030057137832045555, -0.007161878980696201, 0.0316343829035759, 0.0011190224904567003, 0.010409725829958916, -0.04338188096880913, 0.046334970742464066, -0.09548607468605042, -0.00924954004585743, 0.12175800651311874, 0.011263164691627026, -0.03777299448847771, -0.023032888770103455, 0.017037557438015938, -0.05114484205842018, 0.016176188364624977, -0.011436845175921917, 0.047045622020959854, 0.011019446887075901, -0.022142281755805016, -0.0036640306934714317, -0.06376253068447113, -0.05463862419128418, -0.0220395028591156, 0.009048866108059883, 0.09700318425893784, -0.07260815799236298, 0.05722971260547638, 0.025207573547959328, 0.023905135691165924, 0.0015396083472296596, 0.030098561197519302, 0.005948448088020086, 0.0736345499753952, 0.08168385177850723, 0.05829421803355217, -0.09253309667110443, -0.0143598522990942, -0.006362307351082563, -0.005282409023493528, -0.061801012605428696, -4.69391601143343e-8, -0.09518178552389145, -0.03222892805933952, -0.08797750622034073, 0.036719050258398056, 0.030799338594079018, -0.05878637358546257, 0.0313657708466053, 0.11218029260635376, -0.03448695316910744, -0.020622598007321358, 0.14083978533744812, 0.0036044600419700146, -0.008154073730111122, -0.021675223484635353, 0.05859440937638283, 0.016206171363592148, 0.06504051387310028, -0.0841229185461998, 0.0016599759692326188, 0.03055460937321186, -0.04689892753958702, -0.03184087201952934, -0.04165172204375267, 0.12342650443315506, -0.08441191911697388, -0.006367417052388191, -0.024272022768855095, 0.005591980181634426, 0.013098123483359814, 0.028473204001784325, 0.0024904015008360147, -0.020514963194727898, 0.06230316683650017, 0.003359481692314148, -0.024466149508953094, -0.033578984439373016, -0.08467182517051697, 0.05432099476456642, -0.008924657478928566, 0.021163184195756912, -0.015760090202093124, 0.03435293212532997, -0.05270003154873848, 0.05145598575472832, -0.026069240644574165, 0.05116168409585953, 0.042661864310503006, 0.03592685982584953, -0.028726600110530853, -0.006497794762253761, -0.02368316613137722, -0.04967125877737999, 0.03496768698096275, 0.0372619554400444, -0.006430772133171558, 0.03835797309875488, 0.12307535856962204, -0.07592689990997314, 0.05364422872662544, 0.06372853368520737, 0.0195732694119215, 0.009071330539882183, -0.009730427525937557, 0.015832452103495598 ]
0.034503
# `openclaw configure` Interactive prompt to set up credentials, devices, and agent defaults. Note: The \*\*Model\*\* section now includes a multi-select for the `agents.defaults.models` allowlist (what shows up in `/model` and the model picker). Tip: `openclaw config` without a subcommand opens the same wizard. Use `openclaw config get|set|unset` for non-interactive edits. Related: - Gateway configuration reference: [Configuration](/gateway/configuration) - Config CLI: [Config](/cli/config) Notes: - Choosing where the Gateway runs always updates `gateway.mode`. You can select "Continue" without other sections if that is all you need. - Channel-oriented services (Slack/Discord/Matrix/Microsoft Teams) prompt for channel/room allowlists during setup. You can enter names or IDs; the wizard resolves names to IDs when possible. ## Examples ```bash openclaw configure openclaw configure --section models --section channels ```
https://github.com/openclaw/openclaw/blob/main//docs/cli/configure.md
main
opebclaw
[ 0.023907270282506943, -0.08729850500822067, -0.10856711119413376, 0.057958148419857025, -0.05129195377230644, -0.02795272320508957, -0.047095268964767456, -0.023970680311322212, -0.03099321387708187, -0.00865911040455103, 0.002386026782914996, -0.02886815369129181, 0.03559822961688042, 0.00038738432340323925, 0.0697256550192833, 0.10159505903720856, 0.05729488655924797, -0.0886455550789833, 0.015429096296429634, -0.05999306961894035, 0.018179811537265778, 0.03919370844960213, -0.02433270588517189, -0.07752825319766998, -0.0990103930234909, -0.13121403753757477, 0.05061577633023262, 0.0446581207215786, -0.05271542817354202, -0.014162220992147923, 0.057114459574222565, 0.02827853336930275, -0.05211948975920677, 0.016272535547614098, 0.057022761553525925, -0.006102238781750202, 0.06820008903741837, -0.007204720284789801, 0.047361984848976135, 0.02843403071165085, 0.07990620285272598, -0.026234621182084084, -0.04445568099617958, -0.055859532207250595, -0.04496162757277489, -0.03404660150408745, -0.027539586648344994, -0.10757683962583542, 0.022667771205306053, -0.002046625129878521, -0.03041229583323002, -0.0532582551240921, 0.0010581414680927992, -0.010066214948892593, 0.04332626238465309, 0.0015249846037477255, 0.03843838348984718, 0.001001408090814948, 0.053676389157772064, -0.1265757828950882, 0.012832663021981716, -0.04879521206021309, -0.023990025743842125, 0.01937926933169365, -0.1575155258178711, 0.010311768390238285, -0.050720732659101486, -0.016725031659007072, 0.0027189638931304216, -0.01316970493644476, -0.04935118556022644, 0.028654148802161217, -0.03198453411459923, -0.07467080652713776, 0.023173078894615173, -0.01625170186161995, 0.05386833846569061, 0.019336337223649025, 0.010326883755624294, -0.07151538878679276, -0.0008309839176945388, 0.07214914262294769, -0.08640654385089874, 0.018045131117105484, -0.04183708131313324, 0.07803014665842056, -0.012159631587564945, 0.05251670628786087, 0.05699701979756355, 0.011360418982803822, -0.06194173917174339, -0.101466603577137, -0.039748866111040115, -0.022876249626278877, 0.01609758287668228, 0.03254912048578262, 0.00646283570677042, -0.08878161013126373, -0.06240306794643402, 0.049033503979444504, -0.05616249889135361, -0.025881484150886536, 0.08466187864542007, 0.05359998345375061, -0.05889947712421417, 0.007891901768743992, 0.06014101207256317, 0.11163879185914993, 0.015377034433186054, -0.011729876510798931, 0.020018519833683968, 0.011749105527997017, 0.10341326892375946, 0.0031051230616867542, -0.004568192642182112, 0.052948303520679474, 0.025908049196004868, 0.029511911794543266, 0.03475003316998482, 0.045715175569057465, 0.02278958074748516, -0.002080395584926009, 0.06729824095964432, 0.021505039185285568, 0.09689109772443771, 0.08008735626935959, 0.019678892567753792, 4.628012727341519e-33, 0.03924722969532013, -0.045501694083213806, -0.055322736501693726, 0.06538444757461548, 0.1601884514093399, 0.03856440261006355, 0.05602468550205231, -0.00016093954036477953, -0.01573977805674076, 0.012563909403979778, -0.013913944363594055, 0.033567722886800766, -0.05004619434475899, -0.011332022957503796, -0.011909522116184235, 0.014993158169090748, -0.03551376610994339, 0.03980284929275513, 0.05872255936264992, -0.023430798202753067, 0.05073433741927147, -0.05425150692462921, -0.031130140647292137, -0.00005821512240800075, 0.03931581228971481, 0.012345311231911182, -0.023467501625418663, 0.00012035011604893953, 0.019838407635688782, 0.02747630700469017, 0.06688550859689713, 0.07191022485494614, -0.029233889654278755, 0.04254008084535599, -0.06791151314973831, 0.006887481547892094, -0.10078045725822449, -0.018902583047747612, -0.02510540559887886, -0.02999911829829216, -0.01048714853823185, -0.03135897219181061, -0.020838303491473198, -0.051923926919698715, -0.008862419053912163, -0.11488080024719238, -0.04635028541088104, 0.05499131605029106, 0.08830913156270981, -0.004318258259445429, -0.0020644001197069883, 0.018432147800922394, 0.019590526819229126, -0.039698097854852676, -0.020115718245506287, -0.051441214978694916, -0.053779661655426025, -0.005295839626342058, 0.021341146901249886, -0.04349057003855705, -0.036152347922325134, 0.03700096532702446, -0.02511545643210411, 0.08796220272779465, 0.0077544916421175, -0.027606023475527763, -0.00807125959545374, 0.0013260802952572703, 0.03763292357325554, -0.011046630330383778, -0.06779246777296066, -0.002749811392277479, -0.07404977083206177, 0.03156295046210289, -0.08329790085554123, -0.06878292560577393, -0.029392734169960022, 0.0007316847331821918, 0.0676417425274849, 0.004904704634100199, 0.03318018838763237, 0.07368037849664688, -0.0663338303565979, 0.041739221662282944, 0.045336756855249405, 0.007405838463455439, 0.019297944381833076, -0.038101889193058014, 0.013306904584169388, 0.04681592434644699, -0.020801281556487083, 0.06647565215826035, -0.02485772967338562, 0.07921399176120758, 0.012257333844900131, -6.165027794365309e-33, 0.0230543315410614, -0.0020988567266613245, -0.014793711714446545, -0.004674539435654879, -0.023900408297777176, 0.002545689232647419, 0.06275482475757599, -0.07179050147533417, 0.010766306892037392, -0.027034472674131393, 0.035920582711696625, 0.07788316160440445, 0.017369624227285385, -0.11086803674697876, 0.08067973703145981, -0.07948331534862518, -0.042197439819574356, -0.070205457508564, 0.025785628706216812, 0.0420832522213459, -0.01926751434803009, -0.002857508836314082, -0.038870446383953094, -0.07001671940088272, 0.05668692663311958, 0.026206523180007935, -0.020647786557674408, 0.06732352077960968, -0.05425909534096718, 0.0034580209758132696, -0.026706377044320107, 0.04349496215581894, -0.018214503303170204, -0.007797882426530123, -0.016582712531089783, 0.04006772115826607, -0.013080041855573654, 0.07704082131385803, -0.004941336344927549, 0.06782826781272888, 0.09531255811452866, -0.014132866635918617, -0.1105145514011383, 0.044085800647735596, -0.011547607369720936, 0.038861487060785294, 0.03493814542889595, -0.0963243693113327, -0.09423382580280304, -0.012440311722457409, -0.08517192304134369, -0.0022618472576141357, -0.0047329929657280445, 0.010121640749275684, 0.029744038358330727, 0.10539498180150986, 0.05366355553269386, -0.016722440719604492, 0.0667683556675911, -0.06930161267518997, 0.007802121806889772, -0.014661255292594433, -0.01787601225078106, 0.15086130797863007, -0.030865108594298363, -0.04079970717430115, -0.03312116116285324, 0.03568922355771065, -0.026330512017011642, -0.05456443130970001, -0.0662471279501915, -0.05606791004538536, 0.03562944009900093, -0.03344748169183731, 0.050824202597141266, -0.0720999538898468, -0.0302899032831192, -0.025620929896831512, -0.03593333438038826, 0.04386420547962189, -0.02694273740053177, -0.006897025275975466, -0.03780006617307663, -0.05082974210381508, -0.044585537165403366, -0.014513347297906876, 0.01512511633336544, 0.124955914914608, 0.041207291185855865, 0.06773453950881958, -0.08351533114910126, -0.029946375638246536, 0.03932745009660721, -0.024445299059152603, -0.0362253375351429, -5.2075549206165306e-8, -0.0990433320403099, -0.004534976091235876, -0.0357225127518177, 0.004994083661586046, -0.029831232503056526, -0.057561349123716354, 0.013646794483065605, 0.027738068252801895, -0.011614125221967697, 0.062076639384031296, 0.07888282090425491, 0.06992015242576599, -0.02383114956319332, 0.06385494768619537, -0.045342449098825455, 0.08130422234535217, -0.011550411581993103, -0.05772187188267708, 0.01575714722275734, -0.01288244966417551, -0.03364427015185356, -0.05632493644952774, 0.03463982790708542, 0.09291403740644455, -0.017187559977173805, -0.014500400051474571, -0.09555023163557053, -0.031098520383238792, -0.04874929040670395, 0.10104569047689438, -0.03177913278341293, -0.012912868522107601, 0.05535975843667984, 0.05660751834511757, -0.08279409259557724, 0.06251106411218643, -0.018956951797008514, 0.05247822403907776, 0.02165423147380352, -0.03288721293210983, 0.04508191719651222, -0.009936634451150894, -0.043043170124292374, -0.08679816126823425, -0.03792286664247513, 0.06149381399154663, -0.024734165519475937, 0.012563567608594894, 0.04180379584431648, 0.02060544490814209, -0.07259875535964966, 0.0438181571662426, 0.06048130244016647, 0.06866519153118134, -0.01014333963394165, 0.06420425325632095, 0.03326822444796562, -0.07104947417974472, 0.02521461434662342, 0.012649446725845337, -0.05222726985812187, 0.06476891040802002, -0.014345839619636536, -0.10616754740476608 ]
0.040173
# `openclaw config` Config helpers: get/set/unset values by path. Run without a subcommand to open the configure wizard (same as `openclaw configure`). ## Examples ```bash openclaw config get browser.executablePath openclaw config set browser.executablePath "/usr/bin/google-chrome" openclaw config set agents.defaults.heartbeat.every "2h" openclaw config set agents.list[0].tools.exec.node "node-id-or-name" openclaw config unset tools.web.search.apiKey ``` ## Paths Paths use dot or bracket notation: ```bash openclaw config get agents.defaults.workspace openclaw config get agents.list[0].id ``` Use the agent list index to target a specific agent: ```bash openclaw config get agents.list openclaw config set agents.list[1].tools.exec.node "node-id-or-name" ``` ## Values Values are parsed as JSON5 when possible; otherwise they are treated as strings. Use `--json` to require JSON5 parsing. ```bash openclaw config set agents.defaults.heartbeat.every "0m" openclaw config set gateway.port 19001 --json openclaw config set channels.whatsapp.groups '["\*"]' --json ``` Restart the gateway after edits.
https://github.com/openclaw/openclaw/blob/main//docs/cli/config.md
main
opebclaw
[ 0.008582156151533127, 0.011495737358927727, -0.09152936935424805, 0.04710957407951355, 0.018491752445697784, -0.0745704174041748, -0.016358479857444763, -0.030094798654317856, -0.06046045944094658, -0.05392211675643921, 0.012243932113051414, -0.04895981773734093, 0.03829608112573624, -0.05429907515645027, 0.06720764189958572, 0.12441828846931458, 0.016195023432374, -0.005198922473937273, 0.030469723045825958, -0.05886965990066528, 0.02002541348338127, 0.07990778237581253, 0.008867127820849419, -0.09317868947982788, -0.0805644541978836, -0.03523077815771103, -0.035827361047267914, -0.07538099586963654, -0.062468528747558594, -0.00685212342068553, 0.10247694700956345, 0.01629369705915451, -0.039337191730737686, 0.02803747169673443, 0.09474534541368484, 0.10936222970485687, 0.017341075465083122, -0.0038398646283894777, -0.045836225152015686, 0.04793928936123848, 0.08489266782999039, 0.05814211070537567, -0.040848810225725174, -0.08005525916814804, -0.0751914530992508, -0.05945960804820061, -0.08291404694318771, -0.06689971685409546, 0.002690267749130726, -0.05411173030734062, -0.0636000856757164, -0.07004255801439285, -0.06938926130533218, -0.09282475709915161, 0.05003480240702629, 0.020962297916412354, -0.013589829206466675, 0.017432497814297676, 0.06412272900342941, -0.06311365216970444, 0.08191682398319244, -0.006687741260975599, -0.021877994760870934, -0.011971806176006794, -0.08106759190559387, 0.013779569417238235, -0.033656176179647446, -0.048633553087711334, 0.02286272495985031, -0.04883938282728195, -0.04102235659956932, 0.03316164016723633, -0.01868448220193386, -0.07198087871074677, -0.041560862213373184, -0.005738524254411459, 0.022704163566231728, 0.05855616554617882, -0.07032939046621323, -0.08099137246608734, -0.08803354203701019, -0.059055957943201065, -0.024520842358469963, 0.07772056013345718, 0.0032216659747064114, 0.11091947555541992, 0.0220782607793808, 0.0053556617349386215, 0.0898677408695221, 0.06008918955922127, -0.06069529056549072, -0.12257003784179688, 0.0058352588675916195, -0.046876803040504456, 0.09426531940698624, 0.10957629978656769, -0.0028538082260638475, 0.04120296239852905, -0.0413210391998291, 0.05392264202237129, -0.01873599924147129, -0.03801506757736206, 0.03621126338839531, -0.02084275893867016, -0.049409426748752594, 0.03210616111755371, -0.017951600253582, 0.08420500159263611, -0.019405821338295937, -0.024550694972276688, -0.003638186724856496, -0.008070466108620167, 0.1289304792881012, -0.050354138016700745, 0.019898638129234314, 0.014443757943809032, 0.031000439077615738, 0.034987691789865494, 0.08635842800140381, 0.12674717605113983, 0.08823397010564804, 0.0012923029717057943, 0.03823285922408104, 0.006598185282200575, 0.07734009623527527, 0.0778789147734642, 0.00948668085038662, 8.208485867999665e-33, 0.07964389771223068, -0.0744040235877037, -0.0015943242469802499, 0.0014089366886764765, 0.0982172042131424, 0.024600360542535782, 0.03029722161591053, 0.02277456782758236, -0.0440668985247612, 0.08701122552156448, 0.014780808240175247, 0.059416525065898895, -0.1099192425608635, 0.0026984873693436384, 0.0157687496393919, -0.020276609808206558, -0.023718517273664474, 0.0373733825981617, 0.015038159675896168, -0.11112494766712189, -0.00028622307581827044, 0.013017886318266392, -0.07050731033086777, 0.01105966791510582, 0.003347711404785514, -0.026921218261122704, -0.056423187255859375, 0.005214791279286146, -0.021177861839532852, -0.0013070395216345787, 0.09863949567079544, 0.03305326774716377, -0.06437697261571884, 0.05532287061214447, -0.038823291659355164, 0.016052989289164543, -0.08764869719743729, 0.03331274539232254, -0.05071050301194191, -0.029437467455863953, 0.006331791169941425, 0.018686240538954735, 0.006838688161224127, -0.027773208916187286, 0.03274381160736084, -0.11078723520040512, -0.06213747337460518, 0.01140141487121582, 0.06110849231481552, -0.03142555430531502, 0.023527903482317924, -0.01727023907005787, 0.09540673345327377, -0.04515310749411583, -0.018664753064513206, -0.025010081008076668, -0.03815126791596413, -0.018501801416277885, -0.022117137908935547, 0.0016833413392305374, -0.03902031108736992, 0.03230949863791466, -0.012878628447651863, 0.07631935179233551, 0.008112832903862, -0.0516134649515152, 0.0483216866850853, 0.03588506206870079, -0.01418276596814394, 0.062000807374715805, 0.00021630877745337784, 0.023873556405305862, 0.053108714520931244, -0.006839241366833448, -0.05431952700018883, -0.07736212015151978, -0.008249737322330475, -0.03523667901754379, -0.03113545849919319, -0.03889523819088936, 0.036989398300647736, 0.051778919994831085, -0.047356825321912766, 0.03925492614507675, 0.0684221088886261, -0.007930225692689419, -0.0002995452960021794, -0.05786651372909546, 0.026063652709126472, 0.02189737744629383, -0.059824831783771515, 0.009512286633253098, -0.10344289243221283, -0.020078260451555252, -0.0063856374472379684, -8.992273909717288e-33, 0.03897083178162575, 0.01600026711821556, 0.031177250668406487, -0.04575879126787186, -0.012218567542731762, -0.020011069253087044, 0.0010453901486471295, -0.10499146580696106, 0.053648125380277634, -0.003612332046031952, 0.000763481599278748, 0.05255893990397453, 0.03831830620765686, -0.05329614505171776, 0.030612992122769356, -0.024667134508490562, -0.07798891514539719, -0.06361732631921768, 0.008630563504993916, -0.044777434319257736, -0.04550883173942566, 0.017962371930480003, 0.03609120473265648, 0.03204556554555893, 0.06340347975492477, -0.05237087979912758, -0.012764866463840008, 0.026425957679748535, -0.04815466329455376, 0.007652251049876213, 0.0004731488588731736, 0.0993926003575325, -0.04028623178601265, 0.048730943351984024, -0.04371782764792442, 0.0001101913585443981, -0.03009422868490219, 0.09597793221473694, 0.03748667240142822, -0.006817251443862915, 0.051984891295433044, 0.01674044132232666, -0.02768041007220745, 0.012414381839334965, -0.0029566630255430937, 0.07288336008787155, 0.07003007084131241, -0.007429162040352821, -0.07458743453025818, 0.010050719603896141, -0.02471824921667576, 0.011635380797088146, -0.021914301440119743, -0.030346941202878952, 0.029413703829050064, 0.041568778455257416, 0.009968212805688381, -0.003701596986502409, -0.00015584875654894859, -0.05281880125403404, 0.03576618805527687, -0.01395919919013977, -0.06029146909713745, 0.11034491658210754, -0.07252773642539978, -0.021045446395874023, -0.10143906623125076, 0.0636555477976799, -0.07803546637296677, -0.06270553171634674, -0.0642644539475441, -0.06554071605205536, -0.010457453317940235, -0.05215829983353615, -0.004337952937930822, -0.021699337288737297, 0.01944519393146038, -0.042077191174030304, -0.023880615830421448, 0.08880453556776047, 0.012276181019842625, 0.04761091247200966, -0.01912650465965271, -0.07276606559753418, -0.06102992594242096, -0.010369576513767242, -0.022118424996733665, 0.07664656639099121, 0.02409367635846138, 0.06165933609008789, -0.061863601207733154, 0.035647615790367126, 0.054058972746133804, -0.029717199504375458, -0.09728257358074188, -4.839403544565357e-8, -0.06242763623595238, -0.02103760838508606, -0.04612927511334419, 0.015571970492601395, 0.007671684958040714, -0.0054067340679466724, 0.006175151094794273, 0.07880225777626038, -0.022963708266615868, -0.008681840263307095, 0.10400241613388062, 0.021677128970623016, -0.03506915643811226, 0.054824505001306534, -0.04196241497993469, -0.019322983920574188, -0.0033225882798433304, 0.004342623054981232, 0.027087625116109848, -0.009472093544900417, 0.035244300961494446, 0.003995210397988558, 0.04496278241276741, 0.09038929641246796, 0.019555337727069855, -0.06406702101230621, -0.0423368476331234, -0.03302279859781265, -0.028577018529176712, 0.1666557490825653, -0.02674141339957714, -0.01869022101163864, 0.033529456704854965, -0.018536731600761414, -0.01580704003572464, 0.004487812519073486, -0.05213746428489685, 0.02301240712404251, 0.018510114401578903, -0.035863447934389114, 0.032986849546432495, 0.05462232977151871, 0.0006370471091940999, -0.048359718173742294, -0.08746784925460815, -0.047836218029260635, 0.032758209854364395, 0.044858500361442566, 0.10484664887189865, -0.019767392426729202, -0.050145506858825684, 0.0427277535200119, 0.026316126808524132, 0.00039945991011336446, 0.03270215168595314, 0.06691785901784897, 0.0698787048459053, -0.05634613335132599, 0.003379560075700283, 0.04431053623557091, -0.05309153348207474, -0.001208040863275528, 0.05049024522304535, -0.009997375309467316 ]
0.026655
# `openclaw memory` Manage semantic memory indexing and search. Provided by the active memory plugin (default: `memory-core`; set `plugins.slots.memory = "none"` to disable). Related: - Memory concept: [Memory](/concepts/memory) - Plugins: [Plugins](/plugins) ## Examples ```bash openclaw memory status openclaw memory status --deep openclaw memory status --deep --index openclaw memory status --deep --index --verbose openclaw memory index openclaw memory index --verbose openclaw memory search "release checklist" openclaw memory status --agent main openclaw memory index --agent main --verbose ``` ## Options Common: - `--agent `: scope to a single agent (default: all configured agents). - `--verbose`: emit detailed logs during probes and indexing. Notes: - `memory status --deep` probes vector + embedding availability. - `memory status --deep --index` runs a reindex if the store is dirty. - `memory index --verbose` prints per-phase details (provider, model, sources, batch activity). - `memory status` includes any extra paths configured via `memorySearch.extraPaths`.
https://github.com/openclaw/openclaw/blob/main//docs/cli/memory.md
main
opebclaw
[ 0.04210992902517319, -0.02498418092727661, -0.14941947162151337, 0.11273959279060364, 0.0036968437489122152, -0.04691352695226669, -0.025858426466584206, -0.02914801798760891, -0.045146211981773376, 0.02558540180325508, 0.04941483214497566, 0.032778043299913406, 0.011869012378156185, 0.008499423041939735, -0.00341799296438694, 0.08904736489057541, 0.023320607841014862, -0.01720212772488594, -0.05494530126452446, -0.0431058332324028, 0.10672803968191147, 0.040757738053798676, -0.01649455353617668, -0.06910199671983719, -0.10841605067253113, -0.012972859665751457, -0.08392186462879181, -0.038605593144893646, 0.01777675189077854, -0.05391218140721321, 0.08172404766082764, 0.060920290648937225, -0.030375808477401733, 0.0798168033361435, 0.06120371073484421, 0.07134542614221573, -0.07503098994493484, -0.09012150019407272, -0.04770521819591522, -0.03424365073442459, 0.027395173907279968, 0.04962175339460373, -0.07864274829626083, -0.0169957485049963, 0.0040079085156321526, 0.00002708606371015776, -0.07762036472558975, -0.09222401678562164, 0.005193121265619993, -0.05463999882340431, -0.07803027331829071, -0.0242451261729002, -0.05185209959745407, -0.0016646061558276415, 0.06392035633325577, 0.018102794885635376, -0.022010115906596184, -0.08245821297168732, -0.007104604505002499, -0.03421826660633087, 0.05662725120782852, -0.039391469210386276, -0.036316268146038055, -0.00867424812167883, -0.12013876438140869, -0.02400781773030758, 0.05723578482866287, -0.045170996338129044, 0.05422939732670784, -0.01621278002858162, -0.02961418218910694, 0.02273819036781788, -0.04742728918790817, -0.06645265221595764, -0.031275223940610886, 0.005972025450319052, 0.05405370891094208, -0.04879269003868103, -0.020849434658885002, -0.12608708441257477, -0.06016281247138977, -0.03739440441131592, 0.0440303273499012, 0.014234351925551891, 0.021617567166686058, 0.11236702650785446, 0.03705662861466408, -0.0017747737001627684, 0.037320327013731, 0.019185848534107208, 0.03469999134540558, -0.08610507845878601, -0.02072271704673767, -0.012561176903545856, 0.0059519181959331036, 0.011875137686729431, 0.029556065797805786, 0.038645997643470764, -0.04613439738750458, 0.02484045922756195, 0.06499475985765457, 0.03991825133562088, 0.023565126582980156, -0.012294798158109188, -0.11368919163942337, 0.017522774636745453, 0.017602423205971718, 0.13083577156066895, -0.02073749154806137, -0.00798917654901743, 0.019384197890758514, 0.05755032226443291, 0.09995631873607635, -0.024299247190356255, 0.02228204905986786, 0.012417135760188103, -0.023796243593096733, -0.04284902662038803, 0.06701734662055969, 0.09851393848657608, 0.08215479552745819, 0.04549312964081764, 0.023643122985959053, -0.04480767995119095, 0.014096640981733799, 0.06367822736501694, -0.009100477211177349, 3.794162585274283e-33, 0.052228882908821106, -0.0591806061565876, -0.08064714819192886, -0.024657011032104492, 0.026112131774425507, 0.017108283936977386, 0.003347253194078803, 0.0486917607486248, -0.06709899753332138, 0.08831919729709625, 0.013710761442780495, 0.039021365344524384, -0.10467103123664856, 0.05448966845870018, 0.07116597890853882, -0.06990731507539749, -0.030954666435718536, 0.05103202164173126, 0.05537418648600578, -0.03579724207520485, 0.013636025600135326, -0.010622492991387844, -0.03028249926865101, -0.021670153364539146, 0.08011796325445175, 0.006500421557575464, -0.020145069807767868, -0.043674666434526443, -0.0354912243783474, 0.03306366875767708, 0.01309972070157528, 0.03267049044370651, -0.10546139627695084, 0.00356086902320385, 0.03724381700158119, 0.022544194012880325, -0.1160007193684578, 0.00961193349212408, -0.04103298857808113, -0.08882365375757217, 0.02454230934381485, 0.03967665135860443, -0.042821161448955536, -0.07741570472717285, 0.023836709558963776, -0.11776815354824066, -0.03245696797966957, 0.030410852283239365, 0.04054174944758415, 0.029466938227415085, 0.05641550198197365, 0.026368122547864914, 0.04297928139567375, 0.021334849298000336, 0.00568436598405242, 0.039701517671346664, 0.041800711303949356, -0.009398297406733036, 0.029503749683499336, 0.09967780858278275, -0.020192980766296387, -0.0009326332365162671, -0.021135646849870682, 0.03494500741362572, 0.01074044220149517, 0.04834850877523422, 0.05839412286877632, 0.10165464133024216, -0.0322096161544323, 0.049976419657468796, -0.023799048736691475, -0.03205187991261482, 0.08534519374370575, 0.033050451427698135, -0.0657653883099556, -0.039313144981861115, 0.013551600277423859, -0.06394326686859131, -0.06337527930736542, -0.023478245362639427, 0.05452640727162361, -0.02454860508441925, 0.005972850602120161, 0.01839788630604744, 0.00882389023900032, -0.033252909779548645, 0.03105437569320202, -0.05085765942931175, 0.005579277873039246, 0.043995004147291183, -0.02693411149084568, 0.028200261294841766, -0.034491486847400665, -0.060423627495765686, -0.05281810462474823, -4.8572627784266666e-33, -0.01948237605392933, 0.01168123260140419, -0.03558145835995674, 0.04912218824028969, -0.07982187718153, -0.0657985657453537, 0.004478361923247576, -0.05807945877313614, -0.06033777818083763, -0.07958654314279556, -0.05309769883751869, 0.060116592794656754, 0.04648005962371826, -0.0457531176507473, -0.024002056568861008, -0.0013065864332020283, -0.05996895954012871, -0.07377868890762329, 0.010961278341710567, 0.040031276643276215, -0.07939967513084412, 0.07307343930006027, 0.035573963075876236, 0.005510369315743446, 0.011203782632946968, 0.03722637519240379, 0.013460253365337849, 0.01978157088160515, 0.027308279648423195, -0.032088179141283035, 0.07355177402496338, 0.0047189234755933285, -0.02193579263985157, 0.03565465658903122, -0.03728356212377548, -0.0027916058897972107, 0.025433693081140518, -0.02043083868920803, -0.0010634016944095492, 0.04676080867648125, 0.09361472725868225, 0.06453904509544373, -0.04152093827724457, -0.000005444121143227676, -0.04271259903907776, 0.042129263281822205, -0.07818464934825897, -0.000049691243475535884, 0.003582068718969822, -0.04487612843513489, -0.056237056851387024, 0.027373479679226875, -0.017027758061885834, -0.005936743225902319, 0.0025776203256100416, -0.03471105545759201, 0.0035554682835936546, -0.026677623391151428, -0.025197874754667282, -0.05715508386492729, 0.0323559008538723, -0.017054583877325058, -0.06058831140398979, 0.023634282872080803, 0.015480621717870235, -0.015734577551484108, 0.004801824223250151, 0.005947801284492016, -0.0974956676363945, -0.024718789383769035, 0.05006549879908562, -0.013048970140516758, -0.04174485802650452, -0.05591288581490517, -0.012990621849894524, 0.015197869390249252, -0.03351665660738945, -0.04517235606908798, -0.011813300661742687, 0.02048262022435665, -0.051868900656700134, 0.024212965741753578, 0.025762172415852547, 0.023665715008974075, -0.03560520336031914, 0.010924364440143108, -0.08239902555942535, 0.09258957952260971, -0.008124977350234985, 0.0029958162922412157, -0.08238884806632996, -0.004982233513146639, -0.03984187915921211, -0.0025482582859694958, -0.03455300256609917, -4.754435067866325e-8, -0.0664307102560997, -0.0603063628077507, 0.0571124441921711, 0.028233276680111885, 0.08878549188375473, -0.1167835220694542, 0.020179567858576775, 0.13291195034980774, -0.04674038290977478, 0.02653500624001026, 0.16134145855903625, -0.005984910298138857, -0.1305421143770218, 0.018664129078388214, 0.09196316450834274, 0.03732363134622574, 0.02169816382229328, 0.02231791615486145, -0.0024291686713695526, -0.0546850748360157, -0.03058617003262043, 0.014978623948991299, 0.046595580875873566, 0.0691780298948288, 0.011884727515280247, -0.081059530377388, 0.05196848511695862, 0.05730995535850525, 0.006155647337436676, 0.09097734093666077, 0.03361126780509949, 0.0012500956654548645, 0.056562136858701706, -0.05689847469329834, 0.04372117295861244, 0.06354524940252304, -0.04679783433675766, 0.037811968475580215, 0.016395941376686096, 0.002473219996318221, 0.010745152831077576, 0.0014062459813430905, -0.0013283297885209322, 0.028497593477368355, -0.010418460704386234, 0.05194966122508049, -0.05733797699213028, -0.030059566721320152, 0.03892337530851364, -0.09169094264507294, -0.052519723773002625, 0.028599334880709648, 0.0004956701304763556, 0.11369214951992035, 0.0013354362454265356, 0.09983543306589127, 0.05551660433411598, -0.023832909762859344, 0.08553808927536011, 0.03523433208465576, 0.05144311860203743, -0.0020159981213510036, 0.009893798269331455, -0.016625886783003807 ]
0.200517
# `openclaw approvals` Manage exec approvals for the \*\*local host\*\*, \*\*gateway host\*\*, or a \*\*node host\*\*. By default, commands target the local approvals file on disk. Use `--gateway` to target the gateway, or `--node` to target a specific node. Related: - Exec approvals: [Exec approvals](/tools/exec-approvals) - Nodes: [Nodes](/nodes) ## Common commands ```bash openclaw approvals get openclaw approvals get --node openclaw approvals get --gateway ``` ## Replace approvals from a file ```bash openclaw approvals set --file ./exec-approvals.json openclaw approvals set --node --file ./exec-approvals.json openclaw approvals set --gateway --file ./exec-approvals.json ``` ## Allowlist helpers ```bash openclaw approvals allowlist add "~/Projects/\*\*/bin/rg" openclaw approvals allowlist add --agent main --node "/usr/bin/uptime" openclaw approvals allowlist add --agent "\*" "/usr/bin/uname" openclaw approvals allowlist remove "~/Projects/\*\*/bin/rg" ``` ## Notes - `--node` uses the same resolver as `openclaw nodes` (id, name, ip, or id prefix). - `--agent` defaults to `"\*"`, which applies to all agents. - The node host must advertise `system.execApprovals.get/set` (macOS app or headless node host). - Approvals files are stored per host at `~/.openclaw/exec-approvals.json`.
https://github.com/openclaw/openclaw/blob/main//docs/cli/approvals.md
main
opebclaw
[ 0.009298612363636494, 0.01521460060030222, -0.043489970266819, 0.03244283050298691, 0.07875526696443558, -0.09033913910388947, -0.00860134232789278, -0.048338599503040314, -0.00746855977922678, 0.04319823160767555, 0.03772953152656555, -0.04444331303238869, -0.0035859213676303625, -0.004946658853441477, 0.056296877562999725, 0.09949293732643127, 0.036984868347644806, -0.006238405127078295, 0.047699425369501114, -0.10353761166334152, -0.032046832144260406, 0.0772823914885521, 0.038007237017154694, -0.060105111449956894, -0.10389094799757004, -0.06626530736684799, -0.08322717249393463, -0.01031949557363987, -0.02702893689274788, -0.03148273006081581, 0.046022187918424606, 0.004319265019148588, -0.038325365632772446, 0.019907254725694656, 0.053288936614990234, 0.0836225375533104, 0.08748900145292282, -0.04943374544382095, -0.03921980783343315, -0.02056163176894188, 0.143163800239563, 0.056216657161712646, -0.027705300599336624, -0.10158206522464752, -0.09339399635791779, -0.1243138387799263, -0.041588183492422104, -0.05489017069339752, -0.02861742302775383, -0.009854583069682121, 0.010299146175384521, -0.10296475887298584, -0.008883720263838768, -0.11797408759593964, -0.006748067680746317, 0.03725680336356163, 0.018729133531451225, -0.04478815943002701, 0.07683593034744263, -0.006379755213856697, 0.013765385374426842, -0.028444400057196617, -0.04831358790397644, -0.024248287081718445, -0.04758528247475624, -0.013255172409117222, -0.07394473254680634, 0.002893564524129033, -0.01677567884325981, 0.038634397089481354, 0.029113566502928734, 0.026729842647910118, -0.0702056735754013, -0.04237278178334236, 0.012321426533162594, -0.03360417112708092, -0.008715086616575718, 0.05209333449602127, -0.07872524857521057, -0.09810468554496765, -0.04359157010912895, -0.0042976983822882175, -0.06244261935353279, -0.011273087933659554, -0.04969678819179535, 0.0802852213382721, -0.016304438933730125, 0.003126785857602954, 0.0748576745390892, 0.0465257354080677, -0.01774277351796627, -0.06143353134393692, -0.02440817654132843, -0.05519447475671768, 0.010265044867992401, 0.01846432127058506, -0.06923145800828934, -0.04972981661558151, -0.03208364173769951, 0.05246519669890404, -0.014111137948930264, -0.06261320412158966, 0.02001863904297352, -0.007910988293588161, -0.029906976968050003, 0.0353851392865181, -0.0032873167656362057, 0.08113593608140945, 0.04513011872768402, 0.02908828668296337, -0.027730107307434082, -0.02855929546058178, 0.027727633714675903, -0.013248509727418423, -0.0659622997045517, 0.027867209166288376, 0.0738246813416481, -0.005859996657818556, 0.03935696557164192, 0.11021063476800919, 0.031246522441506386, -0.013690795749425888, 0.01676611229777336, -0.024538440629839897, 0.084673210978508, -0.01723167486488819, -0.0027929258067160845, 4.092593417641199e-33, 0.051679082214832306, -0.08230544626712799, -0.049646370112895966, -0.007346297614276409, 0.14478522539138794, 0.051850754767656326, 0.052979737520217896, -0.01532384566962719, -0.11713560670614243, 0.07061531394720078, -0.049086794257164, 0.00017725028737913817, -0.0003552343405317515, -0.041149672120809555, 0.024019937962293625, -0.05014440044760704, 0.00989430584013462, 0.019527532160282135, 0.041197892278432846, 0.012755234725773335, 0.042543116956949234, -0.08008675277233124, -0.04710261523723602, 0.07571226358413696, -0.009641979821026325, -0.0638224259018898, -0.057357057929039, 0.014774411916732788, 0.08141231536865234, 0.008724784478545189, 0.07885736227035522, 0.035828568041324615, -0.0017756859306246042, 0.007611551322042942, -0.02116447128355503, 0.06999550014734268, -0.051965370774269104, 0.000011393471140763722, -0.008064751513302326, -0.060402657836675644, 0.006157164461910725, 0.029720695689320564, -0.059373289346694946, 0.0339810848236084, 0.03052818775177002, -0.03719538077712059, -0.11709430813789368, -0.04490165784955025, 0.09156719595193863, 0.02429690584540367, 0.00048279191832989454, -0.004655000288039446, 0.04863741993904114, -0.044527579098939896, 0.04039553925395012, -0.025533420965075493, -0.11575834453105927, 0.04760618880391121, 0.005670150276273489, -0.03001214936375618, 0.005614486988633871, 0.035789571702480316, -0.06256582587957382, 0.005594348069280386, 0.05403808504343033, -0.0034488155506551266, -0.017919359728693962, 0.022892868146300316, 0.004514626692980528, 0.01471781823784113, -0.05127979442477226, -0.00833252351731062, 0.04805470630526543, 0.07019061595201492, -0.020947642624378204, -0.07731778174638748, -0.06492281705141068, -0.025944329798221588, 0.04526584967970848, -0.006159706972539425, -0.007920648902654648, -0.004420696757733822, -0.07119940221309662, 0.014363560825586319, 0.0951918512582779, 0.030279463157057762, 0.021297959610819817, -0.009183390997350216, 0.05742565914988518, 0.010169890709221363, 0.0362345315515995, 0.056276701390743256, -0.034234315156936646, -0.05505793169140816, -0.05273616313934326, -6.865354267806611e-33, 0.009453711099922657, 0.040664464235305786, 0.022762132808566093, -0.029917031526565552, -0.014978673309087753, -0.015974221751093864, -0.014739686623215675, -0.10940127074718475, 0.011056535877287388, 0.03167365863919258, -0.07534907013177872, 0.0746365338563919, 0.03055955283343792, -0.08817923069000244, 0.04488570988178253, -0.10239650309085846, -0.05050753802061081, -0.042809270322322845, 0.05620625987648964, -0.004716067109256983, -0.04579407349228859, 0.10015730559825897, 0.07080689072608948, 0.044118449091911316, 0.05186091735959053, -0.05118075758218765, 0.02829090692102909, 0.07510153949260712, -0.06242882460355759, -0.04037705063819885, -0.0646008849143982, 0.0427270233631134, -0.03991067036986351, 0.08215554058551788, 0.04161063954234123, -0.06130802258849144, -0.03297388553619385, 0.10223434865474701, 0.018150540068745613, 0.024060824885964394, 0.0495239794254303, -0.034015968441963196, -0.004405240993946791, 0.0593436099588871, -0.03686250373721123, 0.03255172073841095, 0.027905644848942757, 0.0032161842100322247, -0.11040336638689041, -0.027349263429641724, -0.06711172312498093, 0.010860227979719639, 0.01472660806030035, 0.07342970371246338, 0.07843351364135742, 0.053444474935531616, 0.051034580916166306, 0.01037859357893467, 0.01246517151594162, -0.04497341439127922, 0.014803132973611355, -0.048082221299409866, 0.00048479464021511376, 0.09873968362808228, -0.005726131144911051, -0.09680993109941483, 0.016503101214766502, 0.012600317597389221, 0.009818436577916145, -0.030206385999917984, -0.046588607132434845, 0.020794542506337166, -0.02976740151643753, 0.0076211863197386265, 0.004813706502318382, -0.035497572273015976, 0.07845970243215561, -0.06430668383836746, -0.04760561138391495, 0.055761683732271194, -0.03828960657119751, 0.05756402760744095, -0.024961981922388077, -0.04945306107401848, 0.038074005395174026, -0.06691836565732956, -0.017524927854537964, 0.04757900536060333, 0.03550982475280762, 0.11385972797870636, -0.034216467291116714, -0.022372495383024216, 0.06703826785087585, -0.10006822645664215, -0.02556874044239521, -4.620014948386597e-8, -0.04061472415924072, -0.05410958081483841, -0.1005515605211258, -0.02364739216864109, -0.015880780294537544, 0.0210346058011055, -0.019929884001612663, -0.01244860328733921, -0.04369993135333061, -0.03127819299697876, 0.1115807294845581, 0.04166516289114952, -0.039902739226818085, -0.0211578868329525, -0.02407931722700596, 0.01587396301329136, 0.08889060467481613, 0.05349484086036682, 0.0028268469031900167, 0.03431371599435806, -0.09323655813932419, 0.008841308765113354, 0.001014400040730834, 0.062364522367715836, -0.060714930295944214, -0.03586753085255623, -0.05243620648980141, -0.02879011072218418, -0.07549651712179184, 0.07007330656051636, -0.022526297718286514, -0.06036550924181938, 0.03365771099925041, 0.03923839330673218, -0.019347796216607094, -0.028237413614988327, -0.04192536324262619, 0.03854261338710785, 0.03349888324737549, -0.026674453169107437, 0.003898449707776308, 0.04691533371806145, -0.009031436406075954, -0.01095128059387207, -0.08505792915821075, 0.01830635406076908, -0.012469382025301456, 0.02649364247918129, 0.028121141716837883, 0.0016893580323085189, 0.017522865906357765, -0.017101513221859932, 0.05201533064246178, 0.030509166419506073, 0.006159435026347637, 0.07437301427125931, 0.025931311771273613, -0.10310157388448715, -0.08000665158033371, 0.05470915511250496, 0.03488466888666153, 0.06223752722144127, 0.09064788371324539, -0.03100430779159069 ]
0.040119
# CLI reference This page describes the current CLI behavior. If commands change, update this doc. ## Command pages - [`setup`](/cli/setup) - [`onboard`](/cli/onboard) - [`configure`](/cli/configure) - [`config`](/cli/config) - [`doctor`](/cli/doctor) - [`dashboard`](/cli/dashboard) - [`reset`](/cli/reset) - [`uninstall`](/cli/uninstall) - [`update`](/cli/update) - [`message`](/cli/message) - [`agent`](/cli/agent) - [`agents`](/cli/agents) - [`acp`](/cli/acp) - [`status`](/cli/status) - [`health`](/cli/health) - [`sessions`](/cli/sessions) - [`gateway`](/cli/gateway) - [`logs`](/cli/logs) - [`system`](/cli/system) - [`models`](/cli/models) - [`memory`](/cli/memory) - [`nodes`](/cli/nodes) - [`devices`](/cli/devices) - [`node`](/cli/node) - [`approvals`](/cli/approvals) - [`sandbox`](/cli/sandbox) - [`tui`](/cli/tui) - [`browser`](/cli/browser) - [`cron`](/cli/cron) - [`dns`](/cli/dns) - [`docs`](/cli/docs) - [`hooks`](/cli/hooks) - [`webhooks`](/cli/webhooks) - [`pairing`](/cli/pairing) - [`plugins`](/cli/plugins) (plugin commands) - [`channels`](/cli/channels) - [`security`](/cli/security) - [`skills`](/cli/skills) - [`voicecall`](/cli/voicecall) (plugin; if installed) ## Global flags - `--dev`: isolate state under `~/.openclaw-dev` and shift default ports. - `--profile `: isolate state under `~/.openclaw-`. - `--no-color`: disable ANSI colors. - `--update`: shorthand for `openclaw update` (source installs only). - `-V`, `--version`, `-v`: print version and exit. ## Output styling - ANSI colors and progress indicators only render in TTY sessions. - OSC-8 hyperlinks render as clickable links in supported terminals; otherwise we fall back to plain URLs. - `--json` (and `--plain` where supported) disables styling for clean output. - `--no-color` disables ANSI styling; `NO\_COLOR=1` is also respected. - Long-running commands show a progress indicator (OSC 9;4 when supported). ## Color palette OpenClaw uses a lobster palette for CLI output. - `accent` (#FF5A2D): headings, labels, primary highlights. - `accentBright` (#FF7A3D): command names, emphasis. - `accentDim` (#D14A22): secondary highlight text. - `info` (#FF8A5B): informational values. - `success` (#2FBF71): success states. - `warn` (#FFB020): warnings, fallbacks, attention. - `error` (#E23D2D): errors, failures. - `muted` (#8B7F77): de-emphasis, metadata. Palette source of truth: `src/terminal/palette.ts` (aka “lobster seam”). ## Command tree ``` openclaw [--dev] [--profile ] setup onboard configure config get set unset doctor security audit reset uninstall update channels list status logs add remove login logout skills list info check plugins list info install enable disable doctor memory status index search message agent agents list add delete acp status health sessions gateway call health status probe discover install uninstall start stop restart run logs system event heartbeat last|enable|disable presence models list status set set-image aliases list|add|remove fallbacks list|add|remove|clear image-fallbacks list|add|remove|clear scan auth add|setup-token|paste-token auth order get|set|clear sandbox list recreate explain cron status list add edit rm enable disable runs run nodes devices node run status install uninstall start stop restart approvals get set allowlist add|remove browser status start stop reset-profile tabs open focus close profiles create-profile delete-profile screenshot snapshot navigate resize click type press hover drag select upload fill dialog wait evaluate console pdf hooks list info check enable disable install update webhooks gmail setup|run pairing list approve docs dns setup tui ``` Note: plugins can add additional top-level commands (for example `openclaw voicecall`). ## Security - `openclaw security audit` — audit config + local state for common security foot-guns. - `openclaw security audit --deep` — best-effort live Gateway probe. - `openclaw security audit --fix` — tighten safe defaults and chmod state/config. ## Plugins Manage extensions and their config: - `openclaw plugins list` — discover plugins (use `--json` for machine output). - `openclaw plugins info ` — show details for a plugin. - `openclaw plugins install ` — install a plugin (or add a plugin path to `plugins.load.paths`). - `openclaw plugins enable ` / `disable ` — toggle `plugins.entries..enabled`. - `openclaw plugins doctor` — report plugin load errors. Most plugin changes require a gateway restart. See [/plugin](/plugin). ## Memory Vector search over `MEMORY.md` + `memory/\*.md`: - `openclaw memory status` — show index stats. - `openclaw memory index` — reindex memory files. - `openclaw memory search ""` — semantic search over memory. ## Chat slash commands Chat messages
https://github.com/openclaw/openclaw/blob/main//docs/cli/index.md
main
opebclaw
[ -0.017144424840807915, 0.007211428601294756, -0.04858380928635597, -0.08660218119621277, 0.016096770763397217, -0.07376054674386978, 0.058381568640470505, 0.007553292904049158, 0.010124151594936848, -0.01692027784883976, 0.08447075635194778, -0.035279225558042526, 0.02223784662783146, 0.04831033572554588, 0.04627681151032448, 0.015801364555954933, 0.021679000928997993, -0.07992950081825256, -0.058889396488666534, 0.05302730202674866, -0.030191712081432343, 0.06048506870865822, -0.061340078711509705, 0.027621600776910782, -0.10392939299345016, -0.05053309351205826, -0.03687576949596405, -0.052889369428157806, -0.030035894364118576, 0.028170594945549965, -0.009686578996479511, 0.14498746395111084, 0.02101767249405384, -0.05171171948313713, 0.08049388229846954, 0.07316384464502335, 0.016868216916918755, -0.045060645788908005, 0.03701766952872276, -0.0012222140794619918, 0.056912798434495926, -0.006193004548549652, -0.07437080144882202, -0.039415109902620316, 0.04581860080361366, -0.026365643367171288, -0.1070268526673317, -0.03264082595705986, -0.0015259903157129884, 0.01379032526165247, -0.03259316459298134, 0.009415575303137302, 0.0010669934563338757, -0.060194239020347595, 0.017064373940229416, 0.09698094427585602, -0.026836872100830078, 0.07424695044755936, 0.04882190749049187, -0.00098845933098346, 0.020722033455967903, 0.008071116171777248, 0.045638542622327805, 0.041634250432252884, -0.009878142736852169, -0.011228197254240513, -0.032921094447374344, -0.14599187672138214, 0.055891115218400955, -0.02753802202641964, -0.04004845395684242, 0.012181134894490242, -0.04188215732574463, -0.07935397326946259, -0.013815663754940033, 0.040184136480093, 0.025651944801211357, 0.041508790105581284, -0.06805175542831421, -0.1119118481874466, -0.06505433470010757, -0.002707138191908598, 0.0014181412989273667, 0.030878795310854912, 0.007426571100950241, 0.01868877001106739, 0.05451669171452522, -0.03943914547562599, 0.037664301693439484, 0.03227761760354042, 0.023318445309996605, -0.08871886134147644, 0.02716660313308239, -0.05036715045571327, -0.02509770169854164, 0.07017257064580917, -0.04354022070765495, 0.026712967082858086, -0.04523048922419548, 0.05179513618350029, -0.01676255092024803, -0.04810486361384392, 0.06632097065448761, 0.055936895310878754, -0.03189590200781822, 0.017952293157577515, 0.056639619171619415, -0.03804728388786316, -0.06600053608417511, -0.04354560375213623, -0.026699630543589592, 0.001480608363635838, 0.07017000019550323, -0.017993584275245667, -0.033280324190855026, 0.08429935574531555, -0.0032434193417429924, 0.09215258806943893, 0.0033588611986488104, 0.08560198545455933, 0.09405079483985901, -0.06235360726714134, 0.018262457102537155, -0.006807486526668072, 0.05488589406013489, 0.07535187155008316, 0.05169094726443291, 2.172243030658538e-33, 0.01892266981303692, -0.06801124662160873, -0.020991407334804535, 0.08081545680761337, 0.11123587936162949, -0.0015836985548958182, -0.005133796017616987, 0.03314854949712753, 0.05793637037277222, -0.008041203022003174, 0.015234219841659069, 0.06645644456148148, 0.00047347566578537226, 0.017093082889914513, 0.032880134880542755, -0.0576615147292614, 0.033000778406858444, 0.030329450964927673, 0.029056036844849586, -0.026534009724855423, 0.08716614544391632, 0.01808968186378479, 0.0015457067638635635, -0.055123377591371536, 0.06211232766509056, 0.034447986632585526, -0.016782445833086967, 0.011244125664234161, 0.08525879681110382, -0.012584879994392395, 0.013759131543338299, -0.00694871274754405, -0.0032029524445533752, 0.02932397648692131, -0.06619495898485184, 0.02799466997385025, -0.083123579621315, -0.03138967603445053, -0.07069507241249084, 0.03801816329360008, 0.014042036607861519, 0.020870499312877655, -0.06315761804580688, -0.042501360177993774, 0.042419854551553726, -0.13438120484352112, -0.09969799220561981, -0.04041789099574089, 0.0722247064113617, -0.09368737787008286, -0.0842515230178833, -0.0034698324743658304, 0.05542442947626114, -0.059382013976573944, -0.014898802153766155, -0.026846565306186676, -0.03313111886382103, -0.0328083261847496, -0.02363421954214573, -0.0331496000289917, 0.034348707646131516, 0.06958671659231186, -0.0012590006226673722, 0.05588981509208679, 0.03102848306298256, 0.03678698465228081, -0.008787957951426506, -0.047881659120321274, 0.026741912588477135, -0.04028314724564552, -0.0813455730676651, 0.05762501060962677, -0.03882871940732002, 0.028631014749407768, -0.022195741534233093, -0.07359571009874344, -0.05103781446814537, -0.049296580255031586, -0.06132981553673744, 0.008393306285142899, 0.059292882680892944, 0.020993556827306747, -0.04868623614311218, 0.09887039661407471, 0.08131013810634613, -0.07398855686187744, -0.03008235991001129, 0.05522143840789795, -0.04791140556335449, 0.027413664385676384, 0.020331332460045815, 0.0007174832280725241, 0.008700559847056866, -0.003356060478836298, -0.03603580221533775, -4.912178935761207e-33, 0.0808987095952034, -0.03617936745285988, 0.03962176293134689, -0.03001958504319191, -0.049635548144578934, -0.018672233447432518, -0.03250175341963768, 0.020908130332827568, -0.009594382718205452, -0.05361000448465347, 0.03508200868964195, 0.09710867702960968, 0.03556063398718834, -0.024742431938648224, -0.07167266309261322, 0.14219023287296295, -0.07158195972442627, -0.06906437873840332, -0.10585267841815948, 0.0208299458026886, 0.012962705455720425, 0.02300100028514862, 0.060080330818891525, 0.059008002281188965, -0.03507686033844948, -0.0219997800886631, 0.0895804762840271, 0.05480305850505829, 0.004805341828614473, -0.025726409628987312, -0.014873516745865345, 0.03293710574507713, -0.13429245352745056, 0.07830789685249329, 0.022726036608219147, -0.007084267679601908, -0.0038750171661376953, 0.05841997265815735, -0.06250319629907608, 0.04258004575967789, 0.09930998831987381, -0.058943863958120346, -0.037749774754047394, -0.02160646580159664, -0.01146811991930008, 0.013087787665426731, 0.05120285972952843, -0.06869734078645706, -0.09671057760715485, -0.04265252500772476, -0.0070359474048018456, -0.08622811734676361, 0.032928865402936935, -0.0003059032605960965, -0.0075761410407722, 0.034345842897892, 0.07346135377883911, -0.022582387551665306, -0.0534517765045166, -0.09511557966470718, 0.04996452480554581, 0.00834170263260603, -0.03329521417617798, 0.03163350746035576, -0.0805741474032402, -0.023141968995332718, -0.07541786134243011, 0.050274163484573364, 0.008356448262929916, -0.031409937888383865, 0.06185222417116165, -0.025551514700055122, -0.06508383899927139, -0.02385023608803749, 0.015615435317158699, 0.016878817230463028, -0.042901474982500076, -0.12930046021938324, 0.03649723529815674, 0.02466822788119316, -0.04956470802426338, -0.03546830266714096, -0.04948142170906067, 0.03155452013015747, -0.09311588108539581, 0.04486287757754326, -0.04753950610756874, 0.049189258366823196, 0.06302269548177719, 0.0049759987741708755, -0.014357013627886772, -0.03154127299785614, 0.017005132511258125, 0.014158682897686958, -0.06668690592050552, -4.894914340525247e-8, 0.004853531252592802, -0.0733468234539032, -0.026097768917679787, 0.07684971392154694, 0.061684202402830124, -0.05277516692876816, 0.004568031057715416, -0.010193755850195885, -0.036093465983867645, -0.05681953206658363, -0.014125978574156761, 0.05887039378285408, 0.000010461119018145837, -0.010832251980900764, -0.026836611330509186, 0.033685103058815, -0.05270092189311981, 0.031181298196315765, 0.046935178339481354, -0.10792187601327896, -0.025703448802232742, -0.02823413722217083, 0.040170442312955856, 0.09005162864923477, 0.07120442390441895, -0.029029857367277145, 0.011569465510547161, 0.001327679492533207, -0.06995674967765808, 0.014301846735179424, 0.05375087633728981, -0.020564276725053787, 0.056632984429597855, 0.017424996942281723, 0.020509542897343636, -0.021346893161535263, 0.019322292879223824, 0.001164185581728816, 0.038291990756988525, -0.03147096931934357, 0.033240798860788345, 0.060712072998285294, 0.007784073706716299, -0.03748629242181778, 0.004826147574931383, -0.04878544807434082, 0.028008224442601204, 0.031974826008081436, 0.04279030114412308, -0.15274055302143097, -0.044745124876499176, 0.040123794227838516, -0.0007699043489992619, 0.08799449354410172, 0.03502900153398514, 0.023409755900502205, 0.03575501590967178, -0.028895150870084763, 0.020571023225784302, 0.03497103601694107, -0.06171946972608566, 0.017513500526547432, -0.009310421533882618, -0.09295531362295151 ]
0.122138
errors. Most plugin changes require a gateway restart. See [/plugin](/plugin). ## Memory Vector search over `MEMORY.md` + `memory/\*.md`: - `openclaw memory status` — show index stats. - `openclaw memory index` — reindex memory files. - `openclaw memory search ""` — semantic search over memory. ## Chat slash commands Chat messages support `/...` commands (text and native). See [/tools/slash-commands](/tools/slash-commands). Highlights: - `/status` for quick diagnostics. - `/config` for persisted config changes. - `/debug` for runtime-only config overrides (memory, not disk; requires `commands.debug: true`). ## Setup + onboarding ### `setup` Initialize config + workspace. Options: - `--workspace `: agent workspace path (default `~/.openclaw/workspace`). - `--wizard`: run the onboarding wizard. - `--non-interactive`: run wizard without prompts. - `--mode `: wizard mode. - `--remote-url `: remote Gateway URL. - `--remote-token `: remote Gateway token. Wizard auto-runs when any wizard flags are present (`--non-interactive`, `--mode`, `--remote-url`, `--remote-token`). ### `onboard` Interactive wizard to set up gateway, workspace, and skills. Options: - `--workspace ` - `--reset` (reset config + credentials + sessions + workspace before wizard) - `--non-interactive` - `--mode ` - `--flow ` (manual is an alias for advanced) - `--auth-choice ` - `--token-provider ` (non-interactive; used with `--auth-choice token`) - `--token ` (non-interactive; used with `--auth-choice token`) - `--token-profile-id ` (non-interactive; default: `:manual`) - `--token-expires-in ` (non-interactive; e.g. `365d`, `12h`) - `--anthropic-api-key ` - `--openai-api-key ` - `--openrouter-api-key ` - `--ai-gateway-api-key ` - `--moonshot-api-key ` - `--kimi-code-api-key ` - `--gemini-api-key ` - `--zai-api-key ` - `--minimax-api-key ` - `--opencode-zen-api-key ` - `--gateway-port ` - `--gateway-bind ` - `--gateway-auth ` - `--gateway-token ` - `--gateway-password ` - `--remote-url ` - `--remote-token ` - `--tailscale ` - `--tailscale-reset-on-exit` - `--install-daemon` - `--no-install-daemon` (alias: `--skip-daemon`) - `--daemon-runtime ` - `--skip-channels` - `--skip-skills` - `--skip-health` - `--skip-ui` - `--node-manager ` (pnpm recommended; bun not recommended for Gateway runtime) - `--json` ### `configure` Interactive configuration wizard (models, channels, skills, gateway). ### `config` Non-interactive config helpers (get/set/unset). Running `openclaw config` with no subcommand launches the wizard. Subcommands: - `config get `: print a config value (dot/bracket path). - `config set `: set a value (JSON5 or raw string). - `config unset `: remove a value. ### `doctor` Health checks + quick fixes (config + gateway + legacy services). Options: - `--no-workspace-suggestions`: disable workspace memory hints. - `--yes`: accept defaults without prompting (headless). - `--non-interactive`: skip prompts; apply safe migrations only. - `--deep`: scan system services for extra gateway installs. ## Channel helpers ### `channels` Manage chat channel accounts (WhatsApp/Telegram/Discord/Google Chat/Slack/Mattermost (plugin)/Signal/iMessage/MS Teams). Subcommands: - `channels list`: show configured channels and auth profiles. - `channels status`: check gateway reachability and channel health (`--probe` runs extra checks; use `openclaw health` or `openclaw status --deep` for gateway health probes). - Tip: `channels status` prints warnings with suggested fixes when it can detect common misconfigurations (then points you to `openclaw doctor`). - `channels logs`: show recent channel logs from the gateway log file. - `channels add`: wizard-style setup when no flags are passed; flags switch to non-interactive mode. - `channels remove`: disable by default; pass `--delete` to remove config entries without prompts. - `channels login`: interactive channel login (WhatsApp Web only). - `channels logout`: log out of a channel session (if supported). Common options: - `--channel `: `whatsapp|telegram|discord|googlechat|slack|mattermost|signal|imessage|msteams` - `--account `: channel account id (default `default`) - `--name `: display name for the account `channels login` options: - `--channel ` (default `whatsapp`; supports `whatsapp`/`web`) - `--account ` - `--verbose` `channels logout` options: - `--channel ` (default `whatsapp`) - `--account ` `channels list` options: - `--no-usage`: skip model provider usage/quota snapshots (OAuth/API-backed only). - `--json`: output JSON (includes usage unless `--no-usage` is set). `channels logs` options:
https://github.com/openclaw/openclaw/blob/main//docs/cli/index.md
main
opebclaw
[ 0.0002528797194827348, -0.06977642327547073, -0.09954336285591125, 0.07821227610111237, -0.013810409232974052, -0.019347568973898888, -0.06691273301839828, 0.017816659063100815, -0.07392288744449615, 0.047854822129011154, 0.07227183133363724, 0.016039662063121796, -0.054908908903598785, 0.0491112545132637, 0.00907746609300375, 0.11431515961885452, 0.01735018938779831, -0.06673937290906906, -0.027982905507087708, 0.016794832423329353, 0.009264316409826279, 0.066829614341259, -0.001832669717259705, -0.042453061789274216, -0.03814573213458061, -0.037207163870334625, -0.058789029717445374, 0.0034651432652026415, -0.035723015666007996, -0.0620996318757534, 0.059198737144470215, 0.060222480446100235, -0.061291396617889404, 0.02614147588610649, 0.04671140015125275, 0.12396135181188583, 0.027347387745976448, -0.08000555634498596, -0.07077331840991974, -0.078490249812603, 0.04757845774292946, 0.02781120128929615, -0.03771276772022247, -0.008555367588996887, 0.01187244150787592, -0.024612005800008774, -0.013932605274021626, -0.08233354240655899, 0.04209616780281067, -0.005971929989755154, -0.06903917342424393, -0.0031280943658202887, -0.010990194976329803, -0.02768375724554062, 0.06781483441591263, 0.06268991529941559, -0.01914631575345993, 0.04504169523715973, 0.06353647261857986, -0.020176196470856667, 0.051063332706689835, -0.020162276923656464, 0.005916106514632702, 0.012125089764595032, -0.15662650763988495, 0.006583919283002615, 0.03806855157017708, -0.07509439438581467, -0.021327318623661995, -0.006142454221844673, -0.07138099521398544, 0.04406077787280083, -0.11932829767465591, -0.036771535873413086, -0.05385042726993561, 0.045986730605363846, 0.0317070446908474, -0.024530939757823944, -0.01140515599399805, -0.12958593666553497, -0.010449578054249287, -0.012746650725603104, -0.02924967184662819, 0.04863763228058815, 0.051239013671875, 0.08637258410453796, 0.03124195896089077, -0.06390348821878433, 0.02165968529880047, -0.001589977997355163, 0.08574491739273071, -0.11114819347858429, -0.0212025735527277, -0.027018176391720772, -0.038898274302482605, -0.012508661486208439, 0.02594696171581745, 0.044890135526657104, -0.02398175187408924, 0.023223644122481346, 0.041465628892183304, 0.015434821136295795, 0.03650244325399399, 0.01519996952265501, -0.07852666825056076, 0.023692041635513306, 0.04635295644402504, 0.0810251384973526, -0.0429764986038208, -0.023678908124566078, 0.02512061409652233, 0.0028512284625321627, 0.0725388452410698, -0.022390589118003845, 0.04219009354710579, 0.024328304454684258, -0.05869691073894501, -0.055556293576955795, 0.018017740920186043, 0.09603862464427948, 0.06810756027698517, 0.02329878881573677, 0.027421487495303154, -0.03841504454612732, 0.01587534323334694, 0.10173650830984116, 0.02066512405872345, 4.198251625338906e-33, 0.054688338190317154, -0.11378581821918488, -0.059105269610881805, 0.14043913781642914, 0.1052132323384285, -0.03201410174369812, 0.021270858123898506, 0.06752584129571915, -0.052967578172683716, 0.02894607000052929, 0.039777521044015884, 0.0031471536494791508, -0.0777437761425972, -0.0065851169638335705, 0.06477568298578262, -0.08909016102552414, 0.008853663690388203, 0.0002375697804382071, 0.05977630242705345, -0.025509454309940338, 0.016078151762485504, -0.004389050882309675, -0.036679722368717194, -0.024011731147766113, 0.08911394327878952, 0.08229027688503265, 0.03087521903216839, -0.007302768994122744, 0.012866837903857231, -0.0023119342513382435, -0.010088053531944752, -0.005524470936506987, -0.01994689181447029, 0.02576449140906334, -0.02762787416577339, -0.00981899257749319, -0.06104230135679245, 0.0016825032653287053, -0.09650776535272598, -0.052670419216156006, 0.0012028466444462538, 0.030174875631928444, -0.11248539388179779, -0.08201254159212112, 0.03924719989299774, -0.09682199358940125, 0.0005698451423086226, 0.04963422194123268, 0.06705602258443832, 0.01713581569492817, -0.04865741357207298, 0.010855035856366158, 0.03328872099518776, 0.04431331157684326, -0.004575688391923904, -0.00399742741137743, -0.06758227199316025, -0.025413155555725098, 0.03124876506626606, -0.026879971846938133, 0.011042572557926178, 0.016929635778069496, -0.029070593416690826, 0.04550519213080406, 0.02646108716726303, 0.009539654478430748, 0.01923586241900921, 0.059534139931201935, -0.017874978482723236, -0.005117753520607948, -0.012583424337208271, -0.06675539165735245, 0.04328041896224022, 0.05559557303786278, -0.048109084367752075, -0.041878592222929, -0.029827851802110672, -0.06165389344096184, -0.0568845272064209, -0.022784482687711716, 0.019044652581214905, -0.026391563937067986, -0.042188193649053574, -0.003466634778305888, 0.04841242730617523, -0.05938553065061569, 0.0361475795507431, 0.0022513323929160833, 0.020158855244517326, 0.08493129909038544, 0.01465179119259119, 0.03362595662474632, 0.014488820917904377, -0.03298897668719292, -0.04927040636539459, -6.1097204178171356e-33, -0.046669166535139084, -0.006481674965471029, -0.025953102856874466, 0.05476786568760872, -0.04929907247424126, -0.02770417183637619, 0.0004543758986983448, 0.009497287683188915, -0.016491765156388283, -0.12334676831960678, -0.038462840020656586, 0.0684191882610321, 0.0621897429227829, -0.06472699344158173, -0.03109060786664486, 0.03221624717116356, -0.12758813798427582, -0.08725108206272125, 0.015533503144979477, 0.02623397670686245, -0.045932136476039886, 0.06653987616300583, 0.03560999408364296, 0.016887756064534187, 0.03810082748532295, 0.04177157208323479, 0.036049600690603256, 0.05346435680985451, -0.017872828990221024, -0.047925081104040146, 0.11382903903722763, 0.06380953639745712, -0.1125059500336647, 0.12690091133117676, 0.0013863130006939173, -0.010282805189490318, 0.022904006764292717, -0.012498804368078709, -0.03383689001202583, 0.015282537788152695, 0.13613922894001007, 0.017908867448568344, -0.06003730744123459, -0.015626730397343636, 0.03565357252955437, 0.002504900796338916, -0.07888485491275787, -0.08759075403213501, -0.045722149312496185, -0.045219991356134415, -0.021562645211815834, -0.04216868802905083, 0.03300055116415024, -0.00036388184526003897, 0.00010857573215616867, 0.0033819787204265594, 0.06395799666643143, -0.02142641507089138, 0.005647489335387945, -0.05994980037212372, 0.010980311781167984, -0.048267047852277756, -0.050064414739608765, 0.00339753576554358, -0.023844148963689804, -0.007562193553894758, -0.020707396790385246, 0.06367036700248718, -0.03808712214231491, -0.010355603881180286, -0.058617670089006424, -0.02004552260041237, 0.01608436182141304, -0.03142257779836655, -0.0011181116569787264, -0.002796704648062587, -0.05265311151742935, -0.07227691262960434, 0.002214759821072221, 0.0647355318069458, -0.028165306895971298, -0.020158473402261734, 0.0030496830586344004, -0.0068405866622924805, -0.08687090873718262, 0.006397443823516369, -0.048058927059173584, 0.14718224108219147, 0.006031614262610674, -0.02087308280169964, -0.09093697369098663, -0.04099425673484802, -0.06852284073829651, 0.05846860632300377, -0.0171852745115757, -6.17521820345246e-8, -0.08484774082899094, -0.026437072083353996, -0.00922919437289238, 0.026115525513887405, 0.10314121097326279, -0.09665631502866745, 0.032692376524209976, 0.047023456543684006, -0.028491651639342308, -0.001576074049808085, 0.0953235849738121, 0.023216022178530693, -0.06355695426464081, 0.014849714934825897, -0.008175118826329708, -0.0022521689534187317, -0.04992673918604851, 0.04954705014824867, 0.020746273919939995, -0.10673189163208008, 0.0007926253019832075, -0.00007488935807486996, 0.056862033903598785, 0.0682927817106247, 0.01788705587387085, -0.08262357115745544, 0.03769053518772125, 0.07556023448705673, -0.02485351264476776, 0.03823649883270264, -0.01251087337732315, 0.032144833356142044, 0.07078486680984497, -0.011046315543353558, 0.0002867363509722054, 0.020015491172671318, 0.041687995195388794, 0.048360731452703476, 0.05355691909790039, -0.021806776523590088, 0.04178502783179283, 0.024559829384088516, -0.029761724174022675, -0.06291260570287704, -0.06092047691345215, 0.03042510338127613, -0.06362149119377136, 0.042995911091566086, 0.04013119637966156, -0.055292755365371704, -0.04561147838830948, 0.08499088883399963, -0.010961000807583332, 0.1020093709230423, 0.06859384477138519, 0.022219479084014893, 0.021008199080824852, 0.0236556064337492, 0.032669808715581894, -0.0007398589514195919, 0.01220378465950489, 0.017041519284248352, -0.016624366864562035, -0.04573889076709747 ]
0.072478
login` options: - `--channel ` (default `whatsapp`; supports `whatsapp`/`web`) - `--account ` - `--verbose` `channels logout` options: - `--channel ` (default `whatsapp`) - `--account ` `channels list` options: - `--no-usage`: skip model provider usage/quota snapshots (OAuth/API-backed only). - `--json`: output JSON (includes usage unless `--no-usage` is set). `channels logs` options: - `--channel ` (default `all`) - `--lines ` (default `200`) - `--json` More detail: [/concepts/oauth](/concepts/oauth) Examples: ```bash openclaw channels add --channel telegram --account alerts --name "Alerts Bot" --token $TELEGRAM\_BOT\_TOKEN openclaw channels add --channel discord --account work --name "Work Bot" --token $DISCORD\_BOT\_TOKEN openclaw channels remove --channel discord --account work --delete openclaw channels status --probe openclaw status --deep ``` ### `skills` List and inspect available skills plus readiness info. Subcommands: - `skills list`: list skills (default when no subcommand). - `skills info `: show details for one skill. - `skills check`: summary of ready vs missing requirements. Options: - `--eligible`: show only ready skills. - `--json`: output JSON (no styling). - `-v`, `--verbose`: include missing requirements detail. Tip: use `npx clawhub` to search, install, and sync skills. ### `pairing` Approve DM pairing requests across channels. Subcommands: - `pairing list [--json]` - `pairing approve ```` [--notify]` ### `webhooks gmail` Gmail Pub/Sub hook setup + runner. See [/automation/gmail-pubsub](/automation/gmail-pubsub). Subcommands: - `webhooks gmail setup` (requires `--account `; supports `--project`, `--topic`, `--subscription`, `--label`, `--hook-url`, `--hook-token`, `--push-token`, `--bind`, `--port`, `--path`, `--include-body`, `--max-bytes`, `--renew-minutes`, `--tailscale`, `--tailscale-path`, `--tailscale-target`, `--push-endpoint`, `--json`) - `webhooks gmail run` (runtime overrides for the same flags) ### `dns setup` Wide-area discovery DNS helper (CoreDNS + Tailscale). See [/gateway/discovery](/gateway/discovery). Options: - `--apply`: install/update CoreDNS config (requires sudo; macOS only). ## Messaging + agent ### `message` Unified outbound messaging + channel actions. See: [/cli/message](/cli/message) Subcommands: - `message send|poll|react|reactions|read|edit|delete|pin|unpin|pins|permissions|search|timeout|kick|ban` - `message thread ` - `message emoji ` - `message sticker ` - `message role ` - `message channel ` - `message member info` - `message voice status` - `message event ` Examples: - `openclaw message send --target +15555550123 --message "Hi"` - `openclaw message poll --channel discord --target channel:123 --poll-question "Snack?" --poll-option Pizza --poll-option Sushi` ### `agent` Run one agent turn via the Gateway (or `--local` embedded). Required: - `--message ` Options: - `--to ` (for session key and optional delivery) - `--session-id ` - `--thinking ` (GPT-5.2 + Codex models only) - `--verbose ` - `--channel ` - `--local` - `--deliver` - `--json` - `--timeout ` ### `agents` Manage isolated agents (workspaces + auth + routing). #### `agents list` List configured agents. Options: - `--json` - `--bindings` #### `agents add [name]` Add a new isolated agent. Runs the guided wizard unless flags (or `--non-interactive`) are passed; `--workspace` is required in non-interactive mode. Options: - `--workspace ` - `--model ` - `--agent-dir ` - `--bind ` (repeatable) - `--non-interactive` - `--json` Binding specs use `channel[:accountId]`. When `accountId` is omitted for WhatsApp, the default account id is used. #### `agents delete ` Delete an agent and prune its workspace + state. Options: - `--force` - `--json` ### `acp` Run the ACP bridge that connects IDEs to the Gateway. See [`acp`](/cli/acp) for full options and examples. ### `status` Show linked session health and recent recipients. Options: - `--json` - `--all` (full diagnosis; read-only, pasteable) - `--deep` (probe channels) - `--usage` (show model provider usage/quota) - `--timeout ` - `--verbose` - `--debug` (alias for `--verbose`) Notes: - Overview includes Gateway + node host service status when available. ### Usage tracking OpenClaw can surface provider usage/quota when OAuth/API creds are available. Surfaces: - `/status` (adds a short provider usage line when available) - `openclaw status --usage` (prints full provider breakdown) - macOS menu bar (Usage section under Context) Notes: - Data comes directly
https://github.com/openclaw/openclaw/blob/main//docs/cli/index.md
main
opebclaw
[ 0.021997367963194847, -0.026859378442168236, -0.057354945689439774, -0.014609303325414658, 0.022101210430264473, -0.06566079705953598, 0.03458377718925476, 0.043861761689186096, 0.034670304507017136, 0.046664681285619736, 0.02421785145998001, -0.026057126000523567, 0.007128249853849411, 0.08465102314949036, 0.10493574291467667, 0.002228070981800556, -0.04171174392104149, -0.09319577366113663, -0.03232981637120247, -0.03014208748936653, 0.055644501000642776, 0.05606895312666893, 0.0020112169440835714, 0.03868900239467621, 0.013834160752594471, -0.056719593703746796, -0.022430146113038063, 0.06275703012943268, -0.021118288859725, -0.0002797454653773457, 0.03149813786149025, 0.0056779333390295506, 0.018181215971708298, 0.044426966458559036, -0.013813870958983898, -0.01001706812530756, 0.09982183575630188, -0.010939824394881725, 0.035499151796102524, 0.04769877716898918, -0.018653802573680878, -0.027919601649045944, -0.1310579776763916, -0.02377508394420147, 0.0012071942910552025, -0.06083737313747406, -0.06110652908682823, -0.06505180895328522, -0.04518776014447212, 0.04897429421544075, -0.00552748516201973, -0.012988265603780746, -0.01806214265525341, 0.07674837857484818, 0.010970443487167358, 0.017245836555957794, -0.15948668122291565, 0.07486192882061005, 0.03995678573846817, -0.027957454323768616, -0.04885562136769295, -0.00039946683682501316, 0.010704880580306053, 0.029757628217339516, -0.08265366405248642, -0.006306556053459644, -0.025772295892238617, 0.025380756705999374, 0.018247565254569054, 0.017786182463169098, -0.08504386991262436, 0.0029666025657206774, -0.04698540270328522, -0.062413860112428665, -0.010643074288964272, -0.07319390773773193, 0.046029482036828995, 0.0664641335606575, -0.13177043199539185, -0.040211860090494156, -0.020427145063877106, -0.031319137662649155, -0.0788949728012085, 0.06653367727994919, -0.05247338488698006, 0.07132691144943237, -0.03968723490834236, -0.002158934948965907, -0.005768534727394581, -0.021909568458795547, -0.06770144402980804, -0.08856107294559479, -0.029451165348291397, -0.011801688931882381, 0.055378466844558716, 0.01814904250204563, -0.041306015104055405, 0.02473742514848709, -0.020912472158670425, 0.01618429273366928, 0.008449594490230083, -0.03166302666068077, 0.04279421269893646, -0.030066436156630516, 0.020418403670191765, 0.010327496565878391, 0.014247523620724678, 0.04328284040093422, 0.09149886667728424, 0.07053220272064209, -0.048035115003585815, 0.04111094772815704, -0.03166772052645683, 0.009871631860733032, 0.03912142664194107, 0.07154811918735504, -0.02603762224316597, 0.020790880545973778, 0.009099574759602547, 0.07927041500806808, 0.16914883255958557, -0.028779784217476845, -0.013651840388774872, 0.08313450217247009, -0.05677558481693268, 0.03189665451645851, 0.08551571518182755, 1.8886954261409706e-33, 0.08920563012361526, 0.04006532207131386, -0.03165688365697861, -0.006433074828237295, 0.00046631728764623404, 0.06426679342985153, 0.023296307772397995, -0.0043488238006830215, -0.009906095452606678, 0.04028160497546196, -0.0504019521176815, 0.07254967093467712, -0.04173720255494118, 0.08039437979459763, 0.0081002376973629, -0.003921011928468943, -0.03319724276661873, -0.05897501856088638, 0.07652415335178375, -0.004737895913422108, -0.020679272711277008, 0.03837857022881508, -0.03471531346440315, 0.03889641538262367, 0.09608542919158936, 0.03429732471704483, 0.08426999300718307, -0.04345746710896492, -0.05168367922306061, -0.01538875326514244, 0.028935372829437256, -0.03789595514535904, 0.012573925778269768, -0.03924145549535751, 0.046674929559230804, -0.006017124280333519, -0.09914577752351761, 0.055609751492738724, -0.05900445953011513, -0.041272517293691635, 0.005384837742894888, -0.026567721739411354, -0.14107617735862732, -0.04430312290787697, 0.04258206486701965, -0.03241089731454849, 0.0007769623771309853, -0.012493705376982689, 0.021188324317336082, 0.027177896350622177, -0.07303272187709808, 0.018760643899440765, -0.05244613066315651, -0.02330200746655464, 0.03882528841495514, -0.06788202375173569, -0.05772614851593971, -0.028122112154960632, -0.05141913890838623, -0.08087795972824097, -0.045308228582143784, -0.0635213851928711, 0.02912701852619648, -0.03941073268651962, -0.023158393800258636, 0.039194054901599884, -0.09635316580533981, 0.017986074090003967, 0.026407858356833458, 0.02388494648039341, -0.09718520939350128, 0.021921733394265175, -0.018219970166683197, 0.05562281981110573, -0.11787313222885132, -0.001068432116881013, -0.005758556537330151, 0.023226724937558174, 0.029415318742394447, 0.03655854985117912, 0.05954355746507645, -0.010913831181824207, -0.04968966916203499, 0.013156421482563019, 0.0416262112557888, 0.047737203538417816, 0.08880997449159622, -0.043000053614377975, -0.07931771129369736, 0.054636403918266296, -0.03239902853965759, 0.08254624903202057, 0.06105576455593109, -0.05981812626123428, -0.06616472452878952, -5.038616210161606e-33, 0.016984624788165092, 0.035007741302251816, -0.04266049340367317, 0.004353780765086412, -0.0013848966918885708, -0.03742546588182449, 0.05996737256646156, 0.030284099280834198, -0.009626487269997597, 0.007042023818939924, -0.06626584380865097, -0.03738002851605415, 0.004337303806096315, -0.01824583113193512, 0.015482939779758453, 0.03040361776947975, -0.08325687795877457, -0.05426225811243057, 0.032327596098184586, -0.02103380113840103, -0.055151477456092834, 0.02987218275666237, 0.018307499587535858, 0.04103773459792137, 0.025276072323322296, -0.021339619532227516, 0.06364187598228455, -0.011441914364695549, 0.00010604682756820694, -0.07749085873365402, 0.06058358773589134, -0.04474501311779022, -0.02443195879459381, 0.027568692341446877, 0.030296476557850838, -0.013610448688268661, 0.01433788426220417, 0.15134169161319733, -0.014627625234425068, -0.06901118159294128, 0.08601069450378418, -0.05103406310081482, -0.03898441419005394, -0.030542122200131416, -0.06846980005502701, 0.08898857235908508, -0.0009820593986660242, 0.02008780650794506, -0.15821130573749542, 0.0043561202473938465, 0.06314006447792053, -0.0603521391749382, 0.02224832959473133, 0.013232587836682796, 0.028527552261948586, -0.008559755980968475, 0.08964165300130844, -0.011070247739553452, -0.0019899029284715652, -0.10422059148550034, -0.0023460283409804106, -0.07130303233861923, 0.028250815346837044, 0.06502008438110352, -0.00031200272496789694, -0.15055051445960999, -0.014520342461764812, 0.021431131288409233, -0.058287303894758224, -0.011534659191966057, -0.029377199709415436, -0.08445104956626892, -0.027516838163137436, -0.00650488818064332, 0.05907538905739784, 0.021779386326670647, -0.07803244888782501, -0.14815866947174072, 0.0044157966040074825, 0.08941897749900818, -0.059993140399456024, 0.009536719880998135, 0.001244519604369998, 0.004930372349917889, -0.002103739883750677, 0.05929087847471237, -0.006454688962548971, 0.1128750890493393, 0.013948595151305199, 0.047756243497133255, -0.03257641941308975, 0.05921624228358269, -0.015021361410617828, -0.00016431009862571955, 0.039008840918540955, -4.5489834121781314e-8, -0.05591348931193352, -0.13390296697616577, -0.014471117407083511, 0.0526890903711319, -0.033620141446590424, -0.022959183901548386, 0.07231692224740982, 0.011966003105044365, 0.005693457089364529, -0.06591106206178665, 0.009306885302066803, 0.042596932500600815, -0.08102734386920929, 0.0008022246183827519, -0.03319993615150452, -0.028920695185661316, -0.032087281346321106, 0.01653824746608734, 0.05346548184752464, -0.0016043131472542882, -0.0068564824759960175, -0.04488784819841385, -0.03214109688997269, 0.026566151529550552, 0.028011972084641457, -0.022872691974043846, 0.02242584526538849, 0.10511067509651184, -0.07623030245304108, -0.02794293873012066, 0.022724349051713943, -0.0185809638351202, 0.03730424493551254, -0.10676354914903641, -0.05746803432703018, -0.045729149132966995, -0.048609696328639984, -0.024730265140533447, -0.03809570521116257, 0.018775781616568565, 0.0508866161108017, 0.017612438648939133, 0.07087120413780212, -0.020016884431242943, -0.012833287939429283, -0.02944139949977398, 0.011843682266771793, -0.006493878085166216, 0.05194338038563728, -0.053833842277526855, -0.01376709807664156, 0.016933690756559372, 0.06723644584417343, 0.046632688492536545, 0.004621690139174461, 0.03050501085817814, 0.04373222962021828, -0.034969910979270935, 0.054495856165885925, -0.026711387559771538, 0.03188646212220192, 0.0680730938911438, -0.002348171314224601, -0.011708743870258331 ]
0.057047
host service status when available. ### Usage tracking OpenClaw can surface provider usage/quota when OAuth/API creds are available. Surfaces: - `/status` (adds a short provider usage line when available) - `openclaw status --usage` (prints full provider breakdown) - macOS menu bar (Usage section under Context) Notes: - Data comes directly from provider usage endpoints (no estimates). - Providers: Anthropic, GitHub Copilot, OpenAI Codex OAuth, plus Gemini CLI/Antigravity when those provider plugins are enabled. - If no matching credentials exist, usage is hidden. - Details: see [Usage tracking](/concepts/usage-tracking). ### `health` Fetch health from the running Gateway. Options: - `--json` - `--timeout ` - `--verbose` ### `sessions` List stored conversation sessions. Options: - `--json` - `--verbose` - `--store ` - `--active ` ## Reset / Uninstall ### `reset` Reset local config/state (keeps the CLI installed). Options: - `--scope ` - `--yes` - `--non-interactive` - `--dry-run` Notes: - `--non-interactive` requires `--scope` and `--yes`. ### `uninstall` Uninstall the gateway service + local data (CLI remains). Options: - `--service` - `--state` - `--workspace` - `--app` - `--all` - `--yes` - `--non-interactive` - `--dry-run` Notes: - `--non-interactive` requires `--yes` and explicit scopes (or `--all`). ## Gateway ### `gateway` Run the WebSocket Gateway. Options: - `--port ` - `--bind ` - `--token ` - `--auth ` - `--password ` - `--tailscale ` - `--tailscale-reset-on-exit` - `--allow-unconfigured` - `--dev` - `--reset` (reset dev config + credentials + sessions + workspace) - `--force` (kill existing listener on port) - `--verbose` - `--claude-cli-logs` - `--ws-log ` - `--compact` (alias for `--ws-log compact`) - `--raw-stream` - `--raw-stream-path ` ### `gateway service` Manage the Gateway service (launchd/systemd/schtasks). Subcommands: - `gateway status` (probes the Gateway RPC by default) - `gateway install` (service install) - `gateway uninstall` - `gateway start` - `gateway stop` - `gateway restart` Notes: - `gateway status` probes the Gateway RPC by default using the service’s resolved port/config (override with `--url/--token/--password`). - `gateway status` supports `--no-probe`, `--deep`, and `--json` for scripting. - `gateway status` also surfaces legacy or extra gateway services when it can detect them (`--deep` adds system-level scans). Profile-named OpenClaw services are treated as first-class and aren't flagged as "extra". - `gateway status` prints which config path the CLI uses vs which config the service likely uses (service env), plus the resolved probe target URL. - `gateway install|uninstall|start|stop|restart` support `--json` for scripting (default output stays human-friendly). - `gateway install` defaults to Node runtime; bun is **not recommended** (WhatsApp/Telegram bugs). - `gateway install` options: `--port`, `--runtime`, `--token`, `--force`, `--json`. ### `logs` Tail Gateway file logs via RPC. Notes: - TTY sessions render a colorized, structured view; non-TTY falls back to plain text. - `--json` emits line-delimited JSON (one log event per line). Examples: ```bash openclaw logs --follow openclaw logs --limit 200 openclaw logs --plain openclaw logs --json openclaw logs --no-color ``` ### `gateway ` Gateway CLI helpers (use `--url`, `--token`, `--password`, `--timeout`, `--expect-final` for RPC subcommands). When you pass `--url`, the CLI does not auto-apply config or environment credentials. Include `--token` or `--password` explicitly. Missing explicit credentials is an error. Subcommands: - `gateway call [--params ]` - `gateway health` - `gateway status` - `gateway probe` - `gateway discover` - `gateway install|uninstall|start|stop|restart` - `gateway run` Common RPCs: - `config.apply` (validate + write config + restart + wake) - `config.patch` (merge a partial update + restart + wake) - `update.run` (run update + restart + wake) Tip: when calling `config.set`/`config.apply`/`config.patch` directly, pass `baseHash` from `config.get` if a config already exists. ## Models See [/concepts/models](/concepts/models) for fallback behavior and scanning strategy. Preferred Anthropic auth (setup-token): ```bash claude setup-token openclaw models auth setup-token --provider anthropic openclaw models status ``` ### `models` (root) `openclaw models`
https://github.com/openclaw/openclaw/blob/main//docs/cli/index.md
main
opebclaw
[ -0.04389077425003052, 0.03254956752061844, -0.09246644377708435, 0.0378074124455452, 0.046922698616981506, -0.1380697339773178, 0.0711173266172409, 0.004337053280323744, 0.06085946410894394, -0.010647562332451344, 0.01998843625187874, -0.012091993354260921, -0.01749354414641857, -0.007746261078864336, 0.06511720269918442, 0.04350479692220688, 0.06475331634283066, -0.09448795020580292, 0.01631544716656208, -0.018046123906970024, -0.0043007987551391125, 0.07764256745576859, -0.003783027408644557, 0.014436231926083565, -0.03956341743469238, -0.03437824919819832, -0.05463171377778053, -0.01272883452475071, 0.003164018504321575, 0.05552835762500763, 0.042814236134290695, 0.028846994042396545, 0.011820049956440926, 0.028310120105743408, 0.05146772414445877, -0.043115753680467606, 0.03313824161887169, -0.011825073510408401, -0.07745571434497833, 0.011286069639027119, 0.050723250955343246, -0.0035334122367203236, -0.01775146834552288, 0.03583153709769249, 0.06589549779891968, -0.05201498791575432, -0.07034014910459518, -0.019942507147789, 0.00005684511052095331, 0.05548768863081932, 0.018436871469020844, -0.025793692097067833, 0.03486724942922592, 0.036077357828617096, 0.010207864455878735, 0.04577622562646866, -0.04660278558731079, -0.033549193292856216, -0.011806655675172806, 0.012201741337776184, -0.02782241627573967, -0.014924210496246815, -0.017634743824601173, 0.04152002930641174, -0.09081686288118362, 0.0191524475812912, -0.047990500926971436, -0.02311379462480545, -0.0022057602182030678, -0.04178546369075775, -0.011956379748880863, 0.027410415932536125, -0.0371125265955925, -0.06083420291543007, -0.0013541510561481118, 0.041718579828739166, 0.08303164690732956, -0.010920535773038864, -0.010689402930438519, -0.0928959846496582, -0.022539706900715828, -0.013448656536638737, -0.0354541540145874, 0.08943305909633636, -0.016804581508040428, 0.06389342993497849, -0.005336653906852007, 0.011962378397583961, 0.008000794798135757, 0.014256410300731659, 0.007564797066152096, -0.02728159725666046, -0.09538967907428741, -0.07327614724636078, -0.018874162808060646, -0.04055050015449524, -0.059207282960414886, -0.003590298816561699, -0.07282929122447968, 0.08654558658599854, -0.04660838097333908, 0.028581595048308372, 0.04821724072098732, 0.03187205642461777, -0.06011176481842995, 0.024322552606463432, 0.040035050362348557, 0.09260115027427673, 0.060456644743680954, 0.12566113471984863, 0.031994808465242386, -0.01626461185514927, 0.06467292457818985, -0.022206734865903854, 0.05256141722202301, 0.07684022933244705, -0.06562923640012741, -0.004821802489459515, 0.07561535388231277, 0.07844169437885284, 0.05395766720175743, 0.011024046689271927, -0.02286657504737377, -0.055498287081718445, 0.015183311887085438, 0.12189975380897522, 0.09278959780931473, 2.792032896376151e-33, 0.05141580104827881, -0.002469377126544714, 0.02637108601629734, -0.021682720631361008, 0.05695720762014389, 0.02197066694498062, 0.030043207108974457, -0.04722190648317337, 0.042116425931453705, 0.009392441250383854, -0.0870305672287941, 0.09129367768764496, -0.05477088317275047, -0.037285447120666504, 0.010093887336552143, -0.018900776281952858, 0.023194706067442894, 0.04038143530488014, 0.07376708835363388, 0.07037585973739624, 0.04010475426912308, -0.06205137446522713, -0.00887119211256504, 0.07517089694738388, 0.07692267745733261, 0.02733682282269001, -0.004456301685422659, -0.01958499290049076, 0.008486664853990078, 0.022881826385855675, 0.06330011785030365, 0.022669717669487, -0.05247024446725845, -0.031241707503795624, 0.0018110773526132107, 0.004672313574701548, -0.053518470376729965, -0.004263285547494888, -0.08414249867200851, -0.026538141071796417, 0.015323021449148655, 0.005018291994929314, -0.048939965665340424, -0.02803325653076172, -0.06962554156780243, -0.10357758402824402, -0.0368802584707737, 0.007296294439584017, 0.0462966114282608, 0.09899287670850754, -0.07625874131917953, -0.010347418487071991, -0.059561412781476974, 0.0006900832522660494, 0.008954769931733608, -0.06915361434221268, -0.02148616872727871, -0.046762995421886444, 0.05017584189772606, -0.025667406618595123, -0.030461514368653297, -0.009842855855822563, -0.015622803941369057, -0.04428846389055252, -0.02804277464747429, 0.06908684223890305, 0.005216762889176607, -0.01959707774221897, -0.048420634120702744, 0.035626545548439026, -0.006323923356831074, 0.07218474894762039, -0.05278940498828888, 0.0298854298889637, -0.06081867218017578, -0.030387641862034798, 0.006385766435414553, -0.01999751105904579, -0.0164924468845129, 0.03208756446838379, 0.04890197515487671, -0.05554487183690071, 0.028191719204187393, 0.06821850687265396, -0.010795937851071358, 0.006891866680234671, 0.05532187595963478, 0.027879182249307632, -0.07071863859891891, 0.07879772037267685, -0.018984355032444, 0.022114314138889313, -0.026809802278876305, -0.002217070432379842, -0.08032187074422836, -3.591059569313254e-33, -0.04727385938167572, 0.009250401519238949, 0.018093880265951157, -0.030544662848114967, -0.007659978698939085, -0.007408610079437494, 0.022865410894155502, 0.049954645335674286, -0.018523769453167915, -0.004560908302664757, -0.014767024666070938, 0.029399869963526726, 0.03415517881512642, -0.05034155026078224, 0.014429016038775444, 0.04739123582839966, -0.05340220406651497, -0.05953504890203476, -0.016234152019023895, 0.07227680832147598, -0.10897131264209747, 0.031084146350622177, 0.022575607523322105, -0.023117342963814735, 0.01747925765812397, 0.033112533390522, 0.004069200716912746, -0.009183377027511597, -0.02789231948554516, -0.12860263884067535, 0.033333078026771545, 0.016976909711956978, -0.07712619751691818, 0.030753348022699356, -0.017657114192843437, -0.0031022962648421526, -0.013165072537958622, 0.15266752243041992, -0.014834226109087467, 0.01868942379951477, 0.08209998160600662, -0.019207464531064034, -0.08556925505399704, 0.03195153549313545, -0.06213142350316048, 0.06507286429405212, -0.052671950310468674, -0.020231101661920547, -0.11428093165159225, -0.030399978160858154, 0.04189607501029968, -0.026768023148179054, 0.047993019223213196, 0.08425966650247574, 0.006026595830917358, 0.06244878098368645, 0.06701207160949707, -0.04264969006180763, -0.005642196163535118, -0.17382857203483582, 0.06737524271011353, -0.09601571410894394, -0.11990267038345337, 0.0916375070810318, -0.0017795114545151591, -0.05310267210006714, 0.07890445739030838, 0.04610466957092285, -0.01639249548316002, -0.005905126221477985, -0.06413624435663223, -0.05510174483060837, 0.01581600308418274, -0.04217790067195892, -0.013944183476269245, 0.0329446904361248, -0.04766906797885895, -0.10132216662168503, -0.0054521081037819386, 0.055977962911129, -0.03499533608555794, -0.044111158698797226, 0.05889040231704712, -0.0638328492641449, -0.014446286484599113, -0.034839920699596405, -0.018685834482312202, 0.04777558520436287, 0.08004269003868103, 0.14736752212047577, -0.13238869607448578, 0.0018728591967374086, -0.16463133692741394, -0.01908746361732483, -0.02586735226213932, -5.0745601498647375e-8, -0.002065378939732909, -0.07811509072780609, 0.01817159540951252, 0.07305982708930969, 0.00016052786668296903, -0.019664354622364044, 0.08029931783676147, 0.05817775800824165, -0.018329143524169922, 0.0833197832107544, 0.005762248300015926, 0.040954820811748505, -0.05644364282488823, -0.03326484560966492, 0.007168566808104515, 0.0913555845618248, 0.021481579169631004, -0.009062874130904675, 0.011736826039850712, -0.06588269025087357, -0.07224617898464203, -0.011991961859166622, -0.0016795978881418705, 0.0015724770491942763, -0.05594976618885994, -0.03180031478404999, -0.02551034465432167, 0.06119405850768089, -0.020260555669665337, -0.0370999313890934, -0.02499854378402233, -0.01962563395500183, 0.029087437316775322, -0.12121801823377609, -0.05268774926662445, 0.0214485302567482, -0.05739434435963631, -0.033536147326231, 0.02123350277543068, 0.023462846875190735, -0.021838227286934853, 0.061914581805467606, 0.011625003069639206, -0.017931871116161346, 0.013705672696232796, -0.007960342802107334, 0.002349717076867819, 0.02685047872364521, 0.0399014875292778, -0.0870736688375473, 0.041231464594602585, -0.0759725272655487, 0.08921652287244797, 0.0717533603310585, -0.07691274583339691, 0.036337606608867645, 0.05530645698308945, -0.052048418670892715, -0.011646091006696224, -0.000892483745701611, -0.03734192997217178, -0.013658182695508003, 0.03736837953329086, 0.003284578677266836 ]
0.101021
+ restart + wake) Tip: when calling `config.set`/`config.apply`/`config.patch` directly, pass `baseHash` from `config.get` if a config already exists. ## Models See [/concepts/models](/concepts/models) for fallback behavior and scanning strategy. Preferred Anthropic auth (setup-token): ```bash claude setup-token openclaw models auth setup-token --provider anthropic openclaw models status ``` ### `models` (root) `openclaw models` is an alias for `models status`. Root options: - `--status-json` (alias for `models status --json`) - `--status-plain` (alias for `models status --plain`) ### `models list` Options: - `--all` - `--local` - `--provider ` - `--json` - `--plain` ### `models status` Options: - `--json` - `--plain` - `--check` (exit 1=expired/missing, 2=expiring) - `--probe` (live probe of configured auth profiles) - `--probe-provider ` - `--probe-profile ` (repeat or comma-separated) - `--probe-timeout ` - `--probe-concurrency ` - `--probe-max-tokens ` Always includes the auth overview and OAuth expiry status for profiles in the auth store. `--probe` runs live requests (may consume tokens and trigger rate limits). ### `models set ` Set `agents.defaults.model.primary`. ### `models set-image ` Set `agents.defaults.imageModel.primary`. ### `models aliases list|add|remove` Options: - `list`: `--json`, `--plain` - `add ` - `remove ` ### `models fallbacks list|add|remove|clear` Options: - `list`: `--json`, `--plain` - `add ` - `remove ` - `clear` ### `models image-fallbacks list|add|remove|clear` Options: - `list`: `--json`, `--plain` - `add ` - `remove ` - `clear` ### `models scan` Options: - `--min-params ` - `--max-age-days ` - `--provider ` - `--max-candidates ` - `--timeout ` - `--concurrency ` - `--no-probe` - `--yes` - `--no-input` - `--set-default` - `--set-image` - `--json` ### `models auth add|setup-token|paste-token` Options: - `add`: interactive auth helper - `setup-token`: `--provider ` (default `anthropic`), `--yes` - `paste-token`: `--provider `, `--profile-id `, `--expires-in ` ### `models auth order get|set|clear` Options: - `get`: `--provider `, `--agent `, `--json` - `set`: `--provider `, `--agent `, `` - `clear`: `--provider `, `--agent ` ## System ### `system event` Enqueue a system event and optionally trigger a heartbeat (Gateway RPC). Required: - `--text ` Options: - `--mode ` - `--json` - `--url`, `--token`, `--timeout`, `--expect-final` ### `system heartbeat last|enable|disable` Heartbeat controls (Gateway RPC). Options: - `--json` - `--url`, `--token`, `--timeout`, `--expect-final` ### `system presence` List system presence entries (Gateway RPC). Options: - `--json` - `--url`, `--token`, `--timeout`, `--expect-final` ## Cron Manage scheduled jobs (Gateway RPC). See [/automation/cron-jobs](/automation/cron-jobs). Subcommands: - `cron status [--json]` - `cron list [--all] [--json]` (table output by default; use `--json` for raw) - `cron add` (alias: `create`; requires `--name` and exactly one of `--at` | `--every` | `--cron`, and exactly one payload of `--system-event` | `--message`) - `cron edit ` (patch fields) - `cron rm ` (aliases: `remove`, `delete`) - `cron enable ` - `cron disable ` - `cron runs --id [--limit ]` - `cron run [--force]` All `cron` commands accept `--url`, `--token`, `--timeout`, `--expect-final`. ## Node host `node` runs a **headless node host** or manages it as a background service. See [`openclaw node`](/cli/node). Subcommands: - `node run --host --port 18789` - `node status` - `node install [--host ] [--port ] [--tls] [--tls-fingerprint ] [--node-id ] [--display-name ] [--runtime ] [--force]` - `node uninstall` - `node stop` - `node restart` ## Nodes `nodes` talks to the Gateway and targets paired nodes. See [/nodes](/nodes). Common options: - `--url`, `--token`, `--timeout`, `--json` Subcommands: - `nodes status [--connected] [--last-connected ]` - `nodes describe --node ` - `nodes list [--connected] [--last-connected ]` - `nodes pending` - `nodes approve ` - `nodes reject ` - `nodes rename --node --name ` - `nodes invoke --node --command [--params ] [--invoke-timeout ] [--idempotency-key ]` - `nodes run --node [--cwd ] [--env KEY=VAL] [--command-timeout ] [--needs-screen-recording] [--invoke-timeout ] ` (mac node or headless node host) - `nodes notify --node [--title ] [--body
https://github.com/openclaw/openclaw/blob/main//docs/cli/index.md
main
opebclaw
[ -0.013454464264214039, -0.03183180093765259, -0.0691823810338974, 0.049209561198949814, 0.027830416336655617, -0.07404302060604095, -0.07860255241394043, 0.02400136925280094, -0.053757354617118835, -0.0018936028936877847, 0.025222495198249817, -0.031145654618740082, 0.005094988737255335, 0.012202776037156582, 0.08223841339349747, 0.12653003633022308, 0.025002622976899147, -0.04435662552714348, -0.016569435596466064, 0.013435682281851768, -0.003292103996500373, 0.08956050127744675, -0.009529594331979752, -0.020027535036206245, -0.07119499146938324, -0.07280682027339935, -0.058193739503622055, 0.01288310531526804, -0.011567667126655579, -0.03381699323654175, 0.03956877812743187, 0.060002680867910385, -0.03298350051045418, -0.02169455774128437, 0.0659538060426712, 0.08334027230739594, 0.06374061107635498, -0.07587618380784988, -0.06157172843813896, 0.0014523720601573586, 0.0980687290430069, -0.018803950399160385, -0.046074651181697845, -0.09447705745697021, -0.036048997193574905, -0.06157561391592026, -0.002062107902020216, -0.05471470579504967, 0.03461821749806404, -0.028824517503380775, -0.0722917839884758, -0.1116969957947731, -0.008060995489358902, -0.06177452951669693, 0.03230994567275047, 0.04506172984838486, -0.03376008942723274, -0.014266205951571465, 0.06373786181211472, -0.049212951213121414, 0.0773649513721466, 0.022588076069951057, -0.07103384286165237, 0.050364475697278976, -0.0644843801856041, 0.010004877112805843, -0.05088120326399803, -0.06042412668466568, 0.029355956241488457, -0.005259710829705, -0.01200193352997303, 0.007745072711259127, -0.021933691576123238, -0.0882316529750824, -0.013163491152226925, 0.00984351709485054, 0.12748253345489502, 0.03115859068930149, 0.0022934454027563334, -0.045251090079545975, -0.10912227630615234, -0.05720171704888344, -0.07467000186443329, 0.02619520016014576, -0.029606645926833153, 0.106320321559906, 0.025656770914793015, 0.03703572228550911, 0.07997545599937439, 0.013984018936753273, -0.027372706681489944, -0.11132115870714188, -0.03254731371998787, -0.058484237641096115, -0.0431748703122139, 0.03731784597039223, 0.05917557701468468, 0.04966968670487404, -0.11026272922754288, 0.10538608580827713, 0.023273169994354248, -0.02087855525314808, 0.07999594509601593, 0.018183639273047447, -0.013862261548638344, 0.026806386187672615, -0.024894636124372482, 0.08141595125198364, -0.03385584428906441, -0.023605067282915115, 0.053381964564323425, 0.013854535296559334, 0.11131318658590317, -0.04540499672293663, -0.02664833329617977, 0.05838000029325485, -0.04395918920636177, 0.006635065656155348, 0.016312681138515472, 0.04370332881808281, 0.11659777164459229, 0.03965665400028229, 0.049028150737285614, -0.01972559280693531, 0.07547558844089508, 0.0630224347114563, 0.04630246385931969, 3.6126736502647624e-34, 0.09861129522323608, 0.002347677480429411, -0.030967894941568375, 0.058725737035274506, 0.1724197119474411, 0.004815984051674604, 0.03463336080312729, 0.013204393908381462, -0.02619929611682892, 0.04004760831594467, 0.008668728172779083, 0.036312684416770935, -0.08447764068841934, -0.027598179876804352, -0.00916423462331295, -0.006734169088304043, -0.05339007079601288, -0.00047246747999452055, 0.04677046462893486, 0.03805143013596535, 0.05555468425154686, -0.035016778856515884, -0.0706903263926506, 0.022184718400239944, 0.021550357341766357, 0.07999946922063828, 0.016079511493444443, -0.005864913109689951, -0.0703076422214508, 0.054677098989486694, 0.1195497065782547, 0.05035440996289253, -0.011744248680770397, -0.0002981728466693312, -0.025047147646546364, -0.014402544125914574, -0.05395382270216942, -0.006724404636770487, -0.0703301653265953, -0.11883172392845154, 0.03157803788781166, 0.051178764551877975, -0.11346485465765, -0.02336237207055092, 0.037593256682157516, -0.12680573761463165, -0.010494958609342575, 0.06198042258620262, 0.0711846873164177, -0.009794634766876698, 0.029296517372131348, -0.03827816620469093, 0.03911532834172249, -0.022180765867233276, -0.07010269910097122, -0.0036802999675273895, -0.043829675763845444, -0.040188442915678024, -0.007731663063168526, -0.01943385787308216, -0.03281855583190918, 0.0033207412343472242, -0.020669978111982346, 0.02268405444920063, 0.0038831059355288744, -0.02023395523428917, -0.00037873111432418227, 0.0023677456192672253, 0.04078371822834015, 0.049702104181051254, -0.02398371882736683, 0.004035155288875103, -0.05528644099831581, 0.06753510236740112, -0.08099523186683655, -0.06201891601085663, 0.012327900156378746, -0.03520287945866585, 0.034929390996694565, 0.0335564911365509, 0.06780224293470383, 0.016879256814718246, -0.11575911194086075, 0.030470464378595352, 0.05571715906262398, 0.02370350994169712, 0.036140330135822296, 0.027387918904423714, -0.031744636595249176, 0.008546620607376099, -0.02474479004740715, 0.02085212431848049, 0.04119233787059784, -0.0663481280207634, -0.023976247757673264, -2.4753016373478475e-33, 0.006031541153788567, -0.04692923277616501, -0.026124510914087296, 0.0175517275929451, -0.0030746732372790575, -0.05895629897713661, 0.02874107100069523, -0.0020485403947532177, -0.05563567578792572, -0.0668373852968216, 0.013756396248936653, 0.05854525789618492, 0.023886477574706078, -0.03159884735941887, -0.0013871272094547749, -0.06192060187458992, -0.08198978751897812, -0.1035006046295166, 0.013386703096330166, 0.058934684842824936, -0.05691368877887726, 0.011753314174711704, -0.008803222328424454, 0.03339251130819321, 0.04259355738759041, 0.0031627551652491093, -0.04708663746714592, 0.038920771330595016, -0.02305017225444317, -0.014050079509615898, 0.01915818452835083, 0.04596425220370293, -0.0674404576420784, 0.03884151205420494, -0.052472565323114395, 0.03435513749718666, -0.04554402828216553, 0.054374810308218, 0.01646355353295803, 0.01503212470561266, 0.10905702412128448, 0.012886094860732555, -0.10642743855714798, 0.026830045506358147, -0.06166868656873703, 0.06385009735822678, 0.04398886486887932, -0.08004148304462433, -0.0809473991394043, -0.060605499893426895, -0.029404358938336372, -0.012802297249436378, 0.0569305494427681, 0.022733386605978012, 0.020803190767765045, 0.04117385670542717, 0.029984209686517715, -0.047725845128297806, -0.061959393322467804, -0.0111180255189538, -0.0023550488986074924, -0.030301755294203758, 0.01203787513077259, 0.05370606482028961, -0.06434337049722672, -0.07131935656070709, -0.06940235942602158, 0.057147230952978134, -0.060802411288022995, -0.059524502605199814, -0.06934072822332382, -0.017857296392321587, -0.011838718317449093, -0.016698265448212624, 0.01274742279201746, -0.05423752963542938, -0.0739901214838028, -0.048465803265571594, 0.017246030271053314, 0.08918730914592743, -0.08427919447422028, -0.061041705310344696, 0.020048292353749275, 0.039269257336854935, 0.011552651412785053, -0.03620194271206856, 0.02810586616396904, 0.11948712170124054, 0.077521413564682, 0.07663734257221222, -0.10914698988199234, 0.042021337896585464, -0.029692260548472404, 0.02511238306760788, -0.05993817374110222, -4.75817643064147e-8, -0.04914885386824608, -0.0258729737251997, -0.014996593818068504, 0.059025805443525314, 0.0037201594095677137, -0.011318842880427837, 0.0144270034506917, -0.008028079755604267, -0.05595098435878754, 0.014150157570838928, 0.045018408447504044, 0.0852065160870552, -0.06926167011260986, 0.037450239062309265, -0.005693896673619747, 0.022762317210435867, 0.018298955634236336, 0.04500559717416763, -0.015795312821865082, -0.05826104059815407, -0.06411491334438324, 0.022629598155617714, 0.078822560608387, 0.006842408329248428, 0.046670280396938324, -0.0051391408778727055, -0.01607883721590042, 0.020138191059231758, -0.025099987164139748, 0.04366932436823845, -0.00602775439620018, -0.013374770060181618, 0.033911507576704025, 0.013727440498769283, -0.06861282885074615, 0.006541085429489613, -0.007505849935114384, 0.05957576259970665, 0.06226902827620506, -0.08317897468805313, 0.03383881598711014, 0.09740639477968216, -0.079401895403862, -0.029717950150370598, -0.05521256849169731, 0.04307541251182556, 0.03463437035679817, -0.004367961082607508, 0.0173483919352293, -0.04605573043227196, -0.02356504648923874, -0.004868325311690569, 0.008122461847960949, 0.06788434088230133, -0.014658983796834946, 0.06530856341123581, 0.04158163070678711, -0.034424420446157455, -0.0029127609450370073, 0.010211771354079247, -0.008646588772535324, -0.037108320742845535, 0.010886626318097115, -0.01710466295480728 ]
0.076866
approve ` - `nodes reject ` - `nodes rename --node --name ` - `nodes invoke --node --command [--params ] [--invoke-timeout ] [--idempotency-key ]` - `nodes run --node [--cwd ] [--env KEY=VAL] [--command-timeout ] [--needs-screen-recording] [--invoke-timeout ] ` (mac node or headless node host) - `nodes notify --node [--title ] [--body ] [--sound ] [--priority ] [--delivery ] [--invoke-timeout ]` (mac only) Camera: - `nodes camera list --node ` - `nodes camera snap --node [--facing front|back|both] [--device-id ] [--max-width ] [--quality <0-1>] [--delay-ms ] [--invoke-timeout ]` - `nodes camera clip --node [--facing front|back] [--device-id ] [--duration ] [--no-audio] [--invoke-timeout ]` Canvas + screen: - `nodes canvas snapshot --node [--format png|jpg|jpeg] [--max-width ] [--quality <0-1>] [--invoke-timeout ]` - `nodes canvas present --node [--target ] [--x ] [--y ] [--width ] [--height ] [--invoke-timeout ]` - `nodes canvas hide --node [--invoke-timeout ]` - `nodes canvas navigate --node [--invoke-timeout ]` - `nodes canvas eval [] --node [--js ] [--invoke-timeout ]` - `nodes canvas a2ui push --node (--jsonl | --text ) [--invoke-timeout ]` - `nodes canvas a2ui reset --node [--invoke-timeout ]` - `nodes screen record --node [--screen ] [--duration ] [--fps ] [--no-audio] [--out ] [--invoke-timeout ]` Location: - `nodes location get --node [--max-age ] [--accuracy ] [--location-timeout ] [--invoke-timeout ]` ## Browser Browser control CLI (dedicated Chrome/Brave/Edge/Chromium). See [`openclaw browser`](/cli/browser) and the [Browser tool](/tools/browser). Common options: - `--url`, `--token`, `--timeout`, `--json` - `--browser-profile ` Manage: - `browser status` - `browser start` - `browser stop` - `browser reset-profile` - `browser tabs` - `browser open ` - `browser focus ` - `browser close [targetId]` - `browser profiles` - `browser create-profile --name [--color ] [--cdp-url ]` - `browser delete-profile --name ` Inspect: - `browser screenshot [targetId] [--full-page] [--ref ] [--element ] [--type png|jpeg]` - `browser snapshot [--format aria|ai] [--target-id ] [--limit ] [--interactive] [--compact] [--depth ] [--selector ] [--out ]` Actions: - `browser navigate [--target-id ]` - `browser resize [--target-id ]` - `browser click [--double] [--button ] [--modifiers ] [--target-id ]` - `browser type [--submit] [--slowly] [--target-id ]` - `browser press [--target-id ]` - `browser hover [--target-id ]` - `browser drag [--target-id ]` - `browser select [--target-id ]` - `browser upload [--ref ] [--input-ref ] [--element ] [--target-id ] [--timeout-ms ]` - `browser fill [--fields ] [--fields-file ] [--target-id ]` - `browser dialog --accept|--dismiss [--prompt ] [--target-id ] [--timeout-ms ]` - `browser wait [--time ] [--text ] [--text-gone ] [--target-id ]` - `browser evaluate --fn [--ref ] [--target-id ]` - `browser console [--level ] [--target-id ]` - `browser pdf [--target-id ]` ## Docs search ### `docs [query...]` Search the live docs index. ## TUI ### `tui` Open the terminal UI connected to the Gateway. Options: - `--url ` - `--token ` - `--password ` - `--session ` - `--deliver` - `--thinking ` - `--message ` - `--timeout-ms ` (defaults to `agents.defaults.timeoutSeconds`) - `--history-limit ` ````
https://github.com/openclaw/openclaw/blob/main//docs/cli/index.md
main
opebclaw
[ -0.032636113464832306, 0.041254542768001556, 0.042439136654138565, -0.01805840991437435, 0.11141586303710938, -0.08112791180610657, 0.024021200835704803, -0.07401153445243835, 0.019652875140309334, 0.05781267583370209, 0.07510136812925339, -0.07156140357255936, 0.04613511636853218, -0.038603123277425766, 0.0036276469472795725, 0.04765186086297035, 0.030881227925419807, -0.019091691821813583, 0.023425014689564705, -0.03040703572332859, -0.014949354343116283, 0.029689570888876915, 0.030744643881917, 0.013830897398293018, -0.055176492780447006, 0.005570987239480019, -0.07062999904155731, -0.00033534460817463696, -0.013104626908898354, -0.05932873487472534, 0.07322259992361069, 0.02710043080151081, 0.007949143648147583, 0.06447078287601471, 0.047431714832782745, 0.04559774696826935, 0.08650108426809311, -0.029571594670414925, -0.07344430685043335, -0.04070233926177025, 0.10094141215085983, -0.011347231455147266, -0.008452141657471657, -0.0146509213373065, -0.009202144108712673, -0.011197920888662338, -0.06196790561079979, -0.07425838708877563, 0.0007381767500191927, 0.010975067503750324, -0.04741659760475159, -0.0726381242275238, -0.005216087680310011, 0.0054439059458673, -0.027411429211497307, 0.0842522457242012, -0.08434486389160156, 0.014465088956058025, 0.12221969664096832, 0.0357801578938961, 0.027096113190054893, -0.04756751284003258, -0.051695872098207474, 0.019690824672579765, 0.014713023789227009, 0.03748105838894844, -0.006144139915704727, -0.04982190579175949, -0.01385730504989624, 0.06102945655584335, 0.06867345422506332, 0.04523081332445145, -0.02819100022315979, -0.020496970042586327, -0.04877282306551933, 0.017389625310897827, 0.020216600969433784, -0.027350448071956635, -0.11029019951820374, -0.10063491016626358, -0.04216054454445839, -0.047279905527830124, -0.07970832288265228, 0.008626405149698257, -0.0695805475115776, 0.059394143521785736, -0.0469970740377903, -0.02037624642252922, -0.018381090834736824, 0.04112653806805611, -0.12556512653827667, -0.036683011800050735, -0.07003183662891388, -0.10168343782424927, 0.00574311101809144, 0.018008464947342873, -0.030644111335277557, 0.002533738035708666, -0.07123170047998428, 0.058855317533016205, 0.03539251908659935, -0.05843449383974075, -0.042813628911972046, -0.03207029402256012, 0.018637090921401978, -0.042405638843774796, -0.054236751049757004, -0.024624686688184738, 0.06958502531051636, 0.07794128358364105, -0.022655049338936806, 0.06389603018760681, 0.014342092908918858, -0.007606043480336666, -0.04446839168667793, 0.06507284939289093, 0.04973575100302696, 0.019132627174258232, 0.04590018093585968, -0.0007319724536500871, 0.11345907300710678, -0.040614619851112366, -0.017472244799137115, -0.040044140070676804, 0.020673144608736038, -0.014764504507184029, 0.07255777716636658, -1.010058949307405e-33, 0.06252536177635193, -0.02843399904668331, -0.02859104610979557, -0.008179016411304474, 0.15156465768814087, 0.03752363100647926, 0.01920526847243309, 0.001876480528153479, -0.08177723735570908, -0.01306375116109848, -0.04400213807821274, -0.06920544058084488, 0.005158504005521536, -0.07286670058965683, 0.030516400933265686, -0.09973771125078201, 0.07634925097227097, 0.021317996084690094, 0.010844661854207516, 0.02223118208348751, 0.031144259497523308, -0.06760082393884659, -0.059340137988328934, 0.08632177859544754, 0.014049939811229706, -0.023036206141114235, -0.014828624203801155, 0.03315535560250282, 0.1113138273358345, 0.011974293738603592, -0.0108077023178339, 0.024727944284677505, 0.03178653120994568, -0.0018043790478259325, -0.021155592054128647, -0.014864340424537659, -0.05641812086105347, 0.006937197409570217, -0.029071196913719177, -0.08722373098134995, -0.02376471273601055, 0.01779523305594921, -0.11955630034208298, -0.02154681086540222, -0.013565829023718834, -0.07208570837974548, -0.052173107862472534, -0.0729052945971489, 0.004098181612789631, 0.07081414014101028, 0.0371776781976223, -0.03878933936357498, -0.030010806396603584, -0.09509322792291641, -0.04898461699485779, -0.03887040913105011, -0.029415246099233627, 0.03139243647456169, -0.02607252635061741, 0.006835353560745716, 0.02407664805650711, 0.019032882526516914, -0.020636538043618202, -0.016777386888861656, 0.043481145054101944, 0.033800479024648666, -0.00506658386439085, 0.024887165054678917, 0.025720398873090744, -0.01036444678902626, -0.08002032339572906, 0.0061201974749565125, 0.01382908783853054, 0.014890994876623154, 0.022738086059689522, -0.0412449836730957, -0.10595961660146713, -0.03161795064806938, -0.016841664910316467, 0.027090491726994514, -0.07314229756593704, -0.001017422298900783, -0.050056006759405136, 0.0772070586681366, 0.09692424535751343, -0.004721071571111679, 0.018232781440019608, 0.0013299816055223346, -0.096926249563694, 0.028311681002378464, -0.02041097916662693, 0.0663817822933197, 0.02799343504011631, -0.0998336523771286, -0.07297211140394211, -1.55435930249918e-33, -0.007214736193418503, 0.041009388864040375, -0.02399071864783764, 0.050190962851047516, -0.0063307033851742744, -0.03911880403757095, -0.016386479139328003, 0.013612915761768818, 0.040552541613578796, 0.005275674629956484, -0.023285044357180595, -0.046081412583589554, -0.022488199174404144, -0.03529554232954979, -0.040759071707725525, -0.027111582458019257, -0.04659079760313034, -0.036557406187057495, -0.046897634863853455, 0.03390061482787132, 0.029547620564699173, 0.1057828813791275, 0.04429974406957626, 0.11545055359601974, -0.002919690916314721, -0.010140443220734596, 0.04374556243419647, 0.1044829785823822, 0.028825752437114716, -0.11858774721622467, -0.029326917603611946, -0.0008797585032880306, -0.0332845076918602, 0.03756405785679817, 0.07376186549663544, -0.03769392520189285, -0.011985378339886665, 0.1440206617116928, 0.022283321246504784, 0.07344214618206024, 0.0813487097620964, -0.028687890619039536, -0.05838445574045181, 0.036687180399894714, -0.06371434032917023, 0.002077604178339243, 0.07907380908727646, 0.062147196382284164, -0.13347779214382172, 0.022578779608011246, -0.08332421630620956, -0.0015975554706528783, -0.03569471836090088, 0.0975147932767868, 0.03314802795648575, 0.03514282405376434, 0.09056611359119415, 0.0231886375695467, 0.029775360599160194, -0.016638994216918945, 0.07488077133893967, -0.06336378306150436, 0.015328867360949516, 0.0193988885730505, 0.04776347428560257, -0.03696545585989952, -0.0004340883460827172, 0.06526952236890793, 0.012541462667286396, 0.04053394868969917, 0.05654020234942436, 0.031805504113435745, -0.010664044879376888, 0.027418455109000206, 0.0770953893661499, -0.037850990891456604, -0.022088974714279175, -0.09401002526283264, 0.021075060591101646, 0.02051377296447754, -0.08005863428115845, 0.092355877161026, -0.03094646893441677, 0.05122200772166252, 0.018536169081926346, 0.012674997560679913, 0.037708885967731476, 0.07181616872549057, 0.020885761827230453, 0.06437700241804123, -0.06183488667011261, 0.005355166271328926, 0.037340693175792694, 0.036377765238285065, -0.07598324865102768, -4.871613157320098e-8, -0.07134296745061874, -0.050723250955343246, -0.03940153494477272, -0.00020432297606021166, -0.006985226646065712, -0.0320674329996109, 0.008812532760202885, -0.006364935077726841, 0.04109800606966019, -0.06387639045715332, 0.07144723832607269, -0.03194756060838699, -0.03737920522689819, -0.0492158904671669, 0.03164857625961304, -0.04479280114173889, 0.03954453021287918, 0.03434908017516136, -0.03707854449748993, 0.01836921088397503, -0.08605388551950455, -0.012506918981671333, -0.07760278880596161, 0.04691231623291969, -0.04449320584535599, -0.05120978131890297, -0.011071479879319668, 0.032521553337574005, -0.054197512567043304, 0.046963874250650406, -0.050476185977458954, -0.008211106993258, 0.021712303161621094, 0.03129826486110687, -0.06271254271268845, 0.0008013829938136041, -0.06705129891633987, 0.00812598504126072, 0.06565829366445541, 0.03496227040886879, -0.004225015640258789, 0.026819782331585884, -0.047539759427309036, 0.026764512062072754, -0.06834201514720917, 0.024965710937976837, 0.07354903966188431, -0.045448821038007736, 0.0028577004559338093, -0.00667213462293148, -0.007145717274397612, -0.04560801759362221, 0.05136295408010483, 0.051432978361845016, 0.0016873887507244945, 0.03399015590548515, 0.0982779860496521, -0.1395183503627777, 0.013985589146614075, 0.06896950304508209, 0.06905531883239746, 0.02850838005542755, 0.009938376024365425, 0.03201184794306755 ]
0.066566
# `openclaw models` Model discovery, scanning, and configuration (default model, fallbacks, auth profiles). Related: - Providers + models: [Models](/providers/models) - Provider auth setup: [Getting started](/start/getting-started) ## Common commands ```bash openclaw models status openclaw models list openclaw models set openclaw models scan ``` `openclaw models status` shows the resolved default/fallbacks plus an auth overview. When provider usage snapshots are available, the OAuth/token status section includes provider usage headers. Add `--probe` to run live auth probes against each configured provider profile. Probes are real requests (may consume tokens and trigger rate limits). Use `--agent ` to inspect a configured agent’s model/auth state. When omitted, the command uses `OPENCLAW\_AGENT\_DIR`/`PI\_CODING\_AGENT\_DIR` if set, otherwise the configured default agent. Notes: - `models set ` accepts `provider/model` or an alias. - Model refs are parsed by splitting on the \*\*first\*\* `/`. If the model ID includes `/` (OpenRouter-style), include the provider prefix (example: `openrouter/moonshotai/kimi-k2`). - If you omit the provider, OpenClaw treats the input as an alias or a model for the \*\*default provider\*\* (only works when there is no `/` in the model ID). ### `models status` Options: - `--json` - `--plain` - `--check` (exit 1=expired/missing, 2=expiring) - `--probe` (live probe of configured auth profiles) - `--probe-provider ` (probe one provider) - `--probe-profile ` (repeat or comma-separated profile ids) - `--probe-timeout ` - `--probe-concurrency ` - `--probe-max-tokens ` - `--agent ` (configured agent id; overrides `OPENCLAW\_AGENT\_DIR`/`PI\_CODING\_AGENT\_DIR`) ## Aliases + fallbacks ```bash openclaw models aliases list openclaw models fallbacks list ``` ## Auth profiles ```bash openclaw models auth add openclaw models auth login --provider openclaw models auth setup-token openclaw models auth paste-token ``` `models auth login` runs a provider plugin’s auth flow (OAuth/API key). Use `openclaw plugins list` to see which providers are installed. Notes: - `setup-token` prompts for a setup-token value (generate it with `claude setup-token` on any machine). - `paste-token` accepts a token string generated elsewhere or from automation.
https://github.com/openclaw/openclaw/blob/main//docs/cli/models.md
main
opebclaw
[ -0.030920974910259247, -0.02820970118045807, -0.09086830914020538, 0.08261749893426895, 0.05605567991733551, -0.09556198120117188, -0.016976987943053246, -0.03457292169332504, -0.02276770770549774, -0.04497988149523735, 0.03336070105433464, -0.024259677156805992, 0.05007481947541237, 0.006179993972182274, 0.03917042911052704, 0.0917467549443245, 0.07880142331123352, -0.015155675821006298, -0.009187049232423306, 0.001418906613253057, -0.03845496103167534, -0.008813380263745785, -0.014870412647724152, -0.021670415997505188, -0.0808238759636879, -0.11574198305606842, -0.03962327539920807, -0.01428738608956337, -0.017932116985321045, 0.009820760227739811, 0.07405045628547668, 0.029143163934350014, -0.019230594858527184, 0.0069947876036167145, 0.07748623192310333, 0.0439874641597271, 0.08347634971141815, -0.04310043156147003, -0.06533893197774887, 0.017736993730068207, 0.09782528132200241, -0.010935449972748756, -0.022678488865494728, -0.047954998910427094, -0.039092037826776505, -0.07801033556461334, -0.02128293178975582, -0.03685494512319565, -0.0422494150698185, -0.034485846757888794, -0.04373573139309883, -0.0739065557718277, 0.019806912168860435, -0.05928906425833702, -0.014668328687548637, -0.01068287342786789, -0.03201143816113472, -0.03186468780040741, 0.061715446412563324, -0.04488309472799301, 0.03739428147673607, -0.02037898823618889, -0.06581506878137589, 0.013446995057165623, -0.08714296668767929, 0.05068981274962425, -0.04784304276108742, -0.04271459951996803, 0.01418657973408699, -0.021185657009482384, -0.010414209216833115, 0.030483223497867584, -0.047784484922885895, -0.09287691116333008, 0.030213283374905586, -0.017945649102330208, 0.04871504753828049, 0.05921614170074463, -0.00869679730385542, -0.10604098439216614, -0.08637391030788422, -0.032565630972385406, -0.03176504746079445, 0.0547671839594841, -0.023699617013335228, 0.12007025629281998, -0.00004161906326771714, 0.04479207098484039, 0.05502782016992569, 0.061529841274023056, -0.005658689420670271, -0.07595639675855637, -0.04989640787243843, -0.06144212558865547, 0.03412981703877449, 0.02572662942111492, 0.018767787143588066, 0.023347238078713417, -0.03659774735569954, 0.08871540427207947, -0.026400448754429817, 0.013059203512966633, 0.06272944808006287, 0.0012786113657057285, -0.015576210804283619, 0.05078788101673126, -0.0344386100769043, 0.07784576714038849, 0.056685492396354675, 0.0630045011639595, 0.06585297733545303, -0.00842778105288744, 0.06924080848693848, -0.03981117159128189, 0.010869135148823261, 0.03756866231560707, -0.064927838742733, -0.002357221208512783, 0.05820854380726814, 0.01899520866572857, 0.09548588842153549, 0.06305589526891708, 0.07131689041852951, -0.06168593466281891, 0.08739568293094635, 0.11954106390476227, 0.04911968857049942, 4.423973356661664e-33, 0.08370209485292435, 0.08796267956495285, -0.014798919670283794, 0.022330380976200104, 0.07887478172779083, 0.05888991430401802, 0.047506481409072876, 0.03799974545836449, 0.0055931550450623035, 0.03674808517098427, -0.04131052643060684, 0.1334681659936905, -0.04510902985930443, -0.000768359168432653, 0.02965437062084675, 0.007072014268487692, -0.051056306809186935, -0.00023800847702659667, 0.08489850908517838, 0.055136747658252716, 0.044409409165382385, -0.03761517256498337, -0.059989675879478455, 0.07069487869739532, 0.06188264116644859, 0.014022613875567913, -0.013012213632464409, -0.0004269303462933749, -0.08032941073179245, 0.04540776088833809, 0.09557390213012695, 0.04784213379025459, -0.038513120263814926, 0.005112509708851576, 0.004684303421527147, 0.026152141392230988, -0.07548803091049194, -0.025792155414819717, -0.04397781565785408, -0.13886506855487823, 0.024462737143039703, 0.01574035920202732, -0.06107161566615105, -0.03181682899594307, -0.07315312325954437, -0.15337012708187103, -0.028895309194922447, 0.022739993408322334, 0.06743741035461426, 0.0669960230588913, 0.031260039657354355, -0.0181194506585598, 0.03920723497867584, -0.030694233253598213, -0.061827611178159714, -0.03389199823141098, 0.004222209099680185, -0.05228697881102562, 0.002638655947521329, -0.02219160459935665, -0.023990515619516373, -0.060336221009492874, 0.016441788524389267, 0.011502329260110855, 0.004655488301068544, 0.0030334931798279285, -0.0008403907413594425, -0.003931804094463587, 0.022150997072458267, 0.047186512500047684, -0.03161701560020447, 0.014349748380482197, -0.06081511080265045, 0.011307892389595509, -0.11439844965934753, -0.05541808530688286, 0.019223466515541077, 0.0062179965898394585, 0.04855099320411682, 0.05354689806699753, 0.037926748394966125, -0.0025953606236726046, 0.0030840602703392506, 0.014228596352040768, -0.016787013038992882, 0.022739095613360405, 0.015721388161182404, -0.04602818936109543, -0.03800305351614952, 0.03807699680328369, -0.035340528935194016, 0.013162501156330109, -0.020009685307741165, 0.034826647490262985, 0.0015890096547082067, -5.526195471177352e-33, -0.011413205415010452, -0.04634666442871094, 0.030788656324148178, -0.004840129520744085, -0.019983818754553795, -0.055508822202682495, -0.022843675687909126, 0.00395307457074523, -0.007259005680680275, -0.09224144369363785, 0.030540727078914642, 0.012541649863123894, 0.01001653727144003, -0.022993044927716255, 0.042332567274570465, -0.08447092771530151, -0.052209317684173584, -0.08068667352199554, 0.05268533527851105, 0.03803730010986328, -0.09381968528032303, -0.017805075272917747, -0.005794661119580269, -0.01485417876392603, 0.061809562146663666, 0.05277450382709503, -0.017101190984249115, -0.007781900465488434, 0.025596708059310913, -0.0640355721116066, 0.0487913116812706, 0.02825201489031315, -0.011320089921355247, 0.04065299779176712, -0.03266873210668564, 0.08080937713384628, -0.05304665490984917, 0.12305542081594467, 0.025365281850099564, -0.016909761354327202, 0.0820988118648529, 0.012924195267260075, -0.08178883790969849, 0.011189661920070648, -0.03800050914287567, 0.10002531856298447, 0.03862936049699783, -0.041831355541944504, -0.08965534716844559, -0.015785573050379753, -0.022971613332629204, 0.03827754780650139, 0.05924854800105095, 0.05362760275602341, -0.044862132519483566, 0.04151665419340134, 0.06867809593677521, -0.038910873234272, -0.02581017091870308, -0.05882667377591133, 0.030313489958643913, -0.020923882722854614, 0.007547764573246241, 0.12707312405109406, -0.09721685200929642, -0.039440277963876724, 0.009465442970395088, 0.021352900192141533, -0.06350722908973694, -0.04468531906604767, -0.06596384942531586, -0.08580557256937027, -0.041398338973522186, -0.035687156021595, -0.01228087954223156, -0.07055731117725372, -0.05749077722430229, -0.059995487332344055, -0.016374999657273293, 0.04778282716870308, -0.05670909211039543, -0.030491024255752563, 0.024010512977838516, -0.0032304655760526657, 0.00526039581745863, -0.04146647825837135, -0.011073376052081585, 0.08445201069116592, 0.10631265491247177, 0.12053953856229782, -0.08885923027992249, 0.023812709376215935, -0.08384019136428833, -0.03693581745028496, -0.056537289172410965, -4.827164801213257e-8, -0.04198293387889862, -0.018251068890094757, -0.019923338666558266, 0.02750387415289879, -0.007595229893922806, -0.0535317100584507, 0.0017640298465266824, -0.013551391661167145, -0.07737976312637329, 0.007326801773160696, 0.05960525944828987, 0.014563484117388725, -0.07205941528081894, -0.037056393921375275, 0.005265449173748493, 0.04820934310555458, 0.045985251665115356, -0.022004492580890656, -0.040410514920949936, -0.03490852937102318, -0.07590688019990921, 0.006366330198943615, 0.0638113021850586, 0.012013325467705727, -0.05187007412314415, 0.002084237290546298, -0.02516944147646427, 0.048408813774585724, 0.012022092007100582, 0.057056158781051636, -0.027466176077723503, 0.019369062036275864, 0.046750135719776154, -0.08063758164644241, -0.04789993166923523, 0.06809349358081818, -0.07119524478912354, -0.020653031766414642, 0.05814795941114426, -0.021643342450261116, 0.01206176821142435, 0.07794879376888275, -0.03900199383497238, -0.03511235862970352, -0.03139648959040642, 0.04049962759017944, 0.021142983809113503, -0.0410982109606266, 0.05155574902892113, -0.051164284348487854, -0.031044237315654755, -0.016188308596611023, -0.02230510115623474, 0.1157464012503624, -0.05099359527230263, 0.0679197832942009, 0.03868536278605461, -0.07535894960165024, 0.06801415979862213, 0.016227249056100845, -0.04550766572356224, -0.053656723350286484, 0.07381653785705566, 0.012065616436302662 ]
0.049637
# `openclaw plugins` Manage Gateway plugins/extensions (loaded in-process). Related: - Plugin system: [Plugins](/plugin) - Plugin manifest + schema: [Plugin manifest](/plugins/manifest) - Security hardening: [Security](/gateway/security) ## Commands ```bash openclaw plugins list openclaw plugins info openclaw plugins enable openclaw plugins disable openclaw plugins doctor openclaw plugins update openclaw plugins update --all ``` Bundled plugins ship with OpenClaw but start disabled. Use `plugins enable` to activate them. All plugins must ship a `openclaw.plugin.json` file with an inline JSON Schema (`configSchema`, even if empty). Missing/invalid manifests or schemas prevent the plugin from loading and fail config validation. ### Install ```bash openclaw plugins install ``` Security note: treat plugin installs like running code. Prefer pinned versions. Supported archives: `.zip`, `.tgz`, `.tar.gz`, `.tar`. Use `--link` to avoid copying a local directory (adds to `plugins.load.paths`): ```bash openclaw plugins install -l ./my-plugin ``` ### Update ```bash openclaw plugins update openclaw plugins update --all openclaw plugins update --dry-run ``` Updates only apply to plugins installed from npm (tracked in `plugins.installs`).
https://github.com/openclaw/openclaw/blob/main//docs/cli/plugins.md
main
opebclaw
[ -0.049877505749464035, -0.018965793773531914, -0.057730533182621, 0.040562402456998825, 0.02924235165119171, -0.06501954048871994, -0.07018470019102097, -0.0325000025331974, -0.07314886897802353, -0.014405446127057076, 0.05222584679722786, -0.0015739366644993424, -0.029898520559072495, 0.04930949583649635, 0.06834243983030319, 0.11239303648471832, -0.0059304069727659225, -0.038805603981018066, -0.024388127028942108, -0.06813652813434601, -0.018578650429844856, 0.01017420832067728, -0.007091703824698925, -0.0507962666451931, -0.06501629203557968, -0.03985757753252983, -0.07036300003528595, 0.018029287457466125, -0.0675356313586235, -0.021433524787425995, 0.04869586229324341, -0.006359514780342579, -0.04624534025788307, -0.033858537673950195, 0.05955185741186142, 0.024198107421398163, 0.05040112882852554, -0.035366132855415344, -0.07126500457525253, -0.022806815803050995, 0.07895360887050629, 0.01869291439652443, 0.026616012677550316, -0.04913687705993652, -0.056123215705156326, -0.10829860717058182, -0.00861409306526184, -0.12315823882818222, -0.00001776599674485624, -0.028679829090833664, -0.018646804615855217, -0.05475269630551338, -0.016677644103765488, -0.10189251601696014, 0.0648878738284111, -0.038285572081804276, -0.026248283684253693, -0.022271951660513878, 0.039163533598184586, -0.09144148975610733, 0.029572295024991035, 0.004080126993358135, -0.05857895314693451, 0.027903808280825615, -0.18542900681495667, 0.022495882585644722, -0.039527397602796555, -0.04449206218123436, -0.026173453778028488, 0.012073180638253689, -0.04003579914569855, 0.02834668755531311, -0.04457307979464531, -0.05225665867328644, -0.0060625625774264336, -0.028617165982723236, 0.07071475684642792, -0.00028309275512583554, -0.05222059786319733, -0.05997254326939583, -0.014985176734626293, -0.02215181663632393, -0.04354352876543999, 0.046832192689180374, -0.02379022352397442, 0.14611466228961945, 0.009143518283963203, 0.0013384546618908644, 0.023275690153241158, 0.029167572036385536, 0.029201114550232887, -0.10585998743772507, 0.005518778692930937, -0.05820722132921219, -0.0013686820166185498, -0.000861550506670028, -0.022395635023713112, -0.022431444376707077, -0.0743325725197792, 0.08225218206644058, -0.024807337671518326, -0.025095928460359573, 0.0382852777838707, 0.016893606632947922, -0.03745510056614876, 0.09609182178974152, -0.012376389466226101, 0.13341324031352997, -0.0033665483351796865, 0.012496273964643478, 0.014360811561346054, -0.022835029289126396, 0.11099263280630112, -0.08959447592496872, -0.06523913145065308, 0.031065450981259346, -0.0329611711204052, -0.03539276495575905, 0.05881040543317795, 0.08436121046543121, 0.09598281979560852, 0.08429081737995148, 0.05385836958885193, -0.018792210146784782, 0.04630100727081299, 0.07295163720846176, 0.08505858480930328, 1.0782435725952488e-32, 0.06225383281707764, -0.08864850550889969, -0.03730727732181549, 0.05924816057085991, 0.11237892508506775, 0.02084992080926895, 0.018483225256204605, 0.020633134990930557, -0.0896182432770729, 0.10745900124311447, 0.02722800150513649, 0.04958795756101608, -0.11438480764627457, 0.0157980564981699, 0.05639807879924774, -0.02083900384604931, 0.0005800932412967086, -0.03243875503540039, 0.07673560827970505, -0.05376020073890686, 0.02001899667084217, -0.07760366052389145, -0.05058841407299042, 0.045987531542778015, 0.03549279645085335, 0.0011806802358478308, 0.02033167891204357, 0.015820562839508057, 0.011266898363828659, 0.028094720095396042, 0.07389792054891586, 0.017205845564603806, -0.0322464182972908, 0.011254211887717247, -0.06300974637269974, -0.0004989227163605392, -0.14166998863220215, -0.03792349621653557, -0.04460440203547478, -0.036212947219610214, 0.026993276551365852, 0.0015296594938263297, -0.10084954649209976, -0.023241009563207626, 0.08668915927410126, -0.045075852423906326, -0.035211365669965744, 0.06980030983686447, 0.12544305622577667, 0.001333718653768301, -0.005819539539515972, 0.017904844135046005, 0.06143494322896004, -0.0012117044534534216, -0.017892131581902504, -0.006025814451277256, -0.057920586317777634, -0.004942608531564474, 0.016748951748013496, -0.055085767060518265, -0.00911694299429655, 0.023229755461215973, -0.06115706264972687, 0.0015404466539621353, 0.03638896718621254, -0.020700808614492416, 0.0168718621134758, 0.05853027105331421, -0.04327656701207161, 0.0015443320153281093, -0.021759942173957825, -0.00569168059155345, 0.015928031876683235, 0.039308976382017136, -0.03742510825395584, -0.026334675028920174, 0.033645618706941605, -0.05264067277312279, 0.07668059319257736, -0.000015172558050835505, 0.020255770534276962, -0.05645056441426277, 0.0029352440033107996, -0.002029587747529149, 0.04605690389871597, 0.056216467171907425, 0.03699059411883354, 0.0060752579011023045, 0.044895052909851074, 0.056286729872226715, -0.0040442971512675285, 0.03800179064273834, -0.06507427990436554, -0.0009547967929393053, -0.0039066351018846035, -1.2032299930931455e-32, -0.035535164177417755, 0.022209933027625084, -0.008302554488182068, -0.01446471456438303, -0.027994900941848755, -0.016933251172304153, -0.04293442890048027, -0.06098194047808647, 0.03848273679614067, -0.04528949037194252, -0.05797562375664711, 0.08262977749109268, 0.08187783509492874, -0.0878024622797966, 0.08004358410835266, -0.046725548803806305, -0.11525262147188187, -0.027668017894029617, 0.01989978738129139, 0.058310072869062424, -0.05113137885928154, 0.08377532660961151, 0.007365401368588209, -0.0018344654235988855, 0.04138670116662979, 0.006260336376726627, -0.008217205293476582, 0.04646327346563339, -0.013291075825691223, 0.02107613906264305, 0.017171194776892662, 0.07295981794595718, -0.05870431289076805, 0.01925411820411682, -0.030437517911195755, 0.02949054352939129, -0.008548644371330738, 0.02584199607372284, 0.024177825078368187, -0.020324287936091423, 0.031804535537958145, 0.015248900279402733, -0.022185469046235085, 0.001296449452638626, -0.00617632269859314, 0.015158567577600479, -0.010701213963329792, -0.08420383185148239, -0.06322668492794037, -0.05901110917329788, -0.0951700210571289, 0.04117550328373909, 0.0450468510389328, 0.028956519439816475, 0.06092347577214241, 0.03995005413889885, 0.06267215311527252, -0.04865894466638565, -0.00015171639097388834, -0.06157238781452179, 0.011672248132526875, -0.05030684918165207, -0.046777352690696716, 0.11269096285104752, -0.017535166814923286, -0.03388320282101631, -0.005665914621204138, 0.01569371297955513, -0.07030106335878372, -0.03487516567111015, -0.059686023741960526, -0.0212797150015831, 0.042511943727731705, -0.08223147690296173, 0.023312021046876907, -0.032956551760435104, 0.02137969434261322, 0.016432886943221092, -0.047226060181856155, 0.0467577688395977, 0.020500293001532555, -0.02486523427069187, 0.03039783611893654, -0.08590026199817657, -0.026193972676992416, -0.07618429511785507, 0.005085732322186232, 0.040542710572481155, 0.06383664160966873, 0.07129759341478348, -0.08523361384868622, 0.044024839997291565, -0.006037084385752678, -0.008237781003117561, -0.006493457593023777, -5.559824600709362e-8, -0.04846790432929993, -0.06838595122098923, -0.09930560737848282, 0.009268687106668949, 0.049176305532455444, -0.022502554580569267, 0.03399427607655525, 0.04512874409556389, -0.08871468156576157, -0.0038513087201863527, 0.11396675556898117, 0.07512863725423813, -0.09706342220306396, 0.0642063319683075, -0.04032466933131218, 0.08204478025436401, -0.05153792351484299, 0.06058711186051369, 0.014339316636323929, -0.024601256474852562, -0.05343092978000641, 0.01726076938211918, 0.05100660026073456, 0.022255083546042442, -0.07533419132232666, -0.03206341713666916, -0.044253185391426086, -0.016215002164244652, -0.002809718484058976, 0.07536778599023819, -0.03210384026169777, -0.012627927586436272, 0.040941182523965836, -0.03039798140525818, -0.04063750430941582, 0.03980955854058266, 0.003395139705389738, 0.05923782289028168, -0.01198986079543829, -0.04589282348752022, 0.03843580186367035, 0.030716082081198692, -0.03324408829212189, -0.04596923291683197, -0.07233663648366928, 0.02291678637266159, -0.011265011504292488, 0.04039967060089111, 0.017285633832216263, 0.007081319112330675, 0.0016567818820476532, 0.03635891154408455, 0.02134043164551258, 0.05621188506484032, 0.003279060125350952, 0.09163845330476761, 0.07333184033632278, -0.024200093001127243, 0.010904352180659771, 0.01003776490688324, -0.01713271252810955, -0.020190300419926643, 0.11957661062479019, -0.03995239734649658 ]
0.040533
# `openclaw update` Safely update OpenClaw and switch between stable/beta/dev channels. If you installed via \*\*npm/pnpm\*\* (global install, no git metadata), updates happen via the package manager flow in [Updating](/install/updating). ## Usage ```bash openclaw update openclaw update status openclaw update wizard openclaw update --channel beta openclaw update --channel dev openclaw update --tag beta openclaw update --no-restart openclaw update --json openclaw --update ``` ## Options - `--no-restart`: skip restarting the Gateway service after a successful update. - `--channel `: set the update channel (git + npm; persisted in config). - `--tag `: override the npm dist-tag or version for this update only. - `--json`: print machine-readable `UpdateRunResult` JSON. - `--timeout `: per-step timeout (default is 1200s). Note: downgrades require confirmation because older versions can break configuration. ## `update status` Show the active update channel + git tag/branch/SHA (for source checkouts), plus update availability. ```bash openclaw update status openclaw update status --json openclaw update status --timeout 10 ``` Options: - `--json`: print machine-readable status JSON. - `--timeout `: timeout for checks (default is 3s). ## `update wizard` Interactive flow to pick an update channel and confirm whether to restart the Gateway after updating (default is to restart). If you select `dev` without a git checkout, it offers to create one. ## What it does When you switch channels explicitly (`--channel ...`), OpenClaw also keeps the install method aligned: - `dev` → ensures a git checkout (default: `~/openclaw`, override with `OPENCLAW\_GIT\_DIR`), updates it, and installs the global CLI from that checkout. - `stable`/`beta` → installs from npm using the matching dist-tag. ## Git checkout flow Channels: - `stable`: checkout the latest non-beta tag, then build + doctor. - `beta`: checkout the latest `-beta` tag, then build + doctor. - `dev`: checkout `main`, then fetch + rebase. High-level: 1. Requires a clean worktree (no uncommitted changes). 2. Switches to the selected channel (tag or branch). 3. Fetches upstream (dev only). 4. Dev only: preflight lint + TypeScript build in a temp worktree; if the tip fails, walks back up to 10 commits to find the newest clean build. 5. Rebases onto the selected commit (dev only). 6. Installs deps (pnpm preferred; npm fallback). 7. Builds + builds the Control UI. 8. Runs `openclaw doctor` as the final “safe update” check. 9. Syncs plugins to the active channel (dev uses bundled extensions; stable/beta uses npm) and updates npm-installed plugins. ## `--update` shorthand `openclaw --update` rewrites to `openclaw update` (useful for shells and launcher scripts). ## See also - `openclaw doctor` (offers to run update first on git checkouts) - [Development channels](/install/development-channels) - [Updating](/install/updating) - [CLI reference](/cli)
https://github.com/openclaw/openclaw/blob/main//docs/cli/update.md
main
opebclaw
[ -0.00597275560721755, -0.06507930904626846, -0.05681631341576576, 0.03922698646783829, 0.017266061156988144, -0.10283535718917847, -0.08355875313282013, -0.042302705347537994, -0.05174720287322998, 0.05751146003603935, 0.040099311619997025, 0.061348941177129745, -0.05863063409924507, -0.023823589086532593, 0.08289167284965515, 0.14079293608665466, 0.03266863897442818, -0.014566812664270401, 0.028048919513821602, -0.019557351246476173, -0.0925777405500412, 0.038464296609163284, 0.023234903812408447, -0.017847001552581787, -0.07077920436859131, -0.02670872025191784, 0.0012635415187105536, 0.030875543132424355, -0.04813195765018463, -0.030933769419789314, 0.008646668866276741, 0.020007865503430367, -0.002552341902628541, -0.006627663504332304, 0.040224749594926834, 0.05968143045902252, -0.023917200043797493, -0.06077505648136139, -0.07945461571216583, 0.036983195692300797, 0.12299147993326187, -0.020370684564113617, -0.025734778493642807, -0.07866127043962479, -0.015452281571924686, -0.021282773464918137, -0.03296738862991333, -0.09390594065189362, -0.0011715861037373543, -0.04768459126353264, -0.05090019106864929, -0.1238572895526886, -0.03510664030909538, -0.06485462188720703, 0.08420542627573013, 0.011831901036202908, 0.07968498766422272, 0.025234296917915344, 0.032937195152044296, -0.07169299572706223, 0.07765977829694748, -0.015420660376548767, -0.0734991729259491, 0.01950904354453087, -0.08442933857440948, 0.01385207287967205, 0.02055715024471283, -0.06603643298149109, -0.001961472211405635, -0.012625344097614288, 0.008066588081419468, 0.06343238800764084, -0.02261185646057129, -0.11639346927404404, -0.0491056814789772, -0.0013310310896486044, 0.10655779391527176, 0.017637360841035843, 0.011537982150912285, 0.004808278288692236, -0.02838786318898201, -0.03968287631869316, -0.05341911315917969, -0.027144065126776695, -0.02341056615114212, 0.12156252562999725, 0.011102990247309208, 0.045881740748882294, 0.026951011270284653, 0.04998086020350456, -0.0000361347701982595, -0.0592183955013752, 0.05818992853164673, 0.01719728484749794, -0.05807629972696304, 0.017711903899908066, 0.013403516262769699, -0.00810268335044384, -0.0521823950111866, 0.046320125460624695, 0.021434253081679344, -0.0038909499999135733, 0.016521567478775978, 0.013641348108649254, -0.07220771163702011, 0.08725962042808533, 0.05213518440723419, 0.12102335691452026, -0.002700491575524211, 0.024931401014328003, 0.03312792629003525, -0.036036111414432526, 0.09237953275442123, -0.046849437057971954, -0.0910576581954956, 0.0648086741566658, -0.017492037266492844, 0.02236180379986763, -0.008124898187816143, 0.08758675307035446, 0.06822759658098221, 0.048167791217565536, 0.05739224702119827, 0.002415197668597102, -0.03053511306643486, 0.08801354467868805, 0.09334448724985123, 4.3913232663836054e-33, 0.06262687593698502, -0.0055227563716471195, -0.0893445834517479, -0.007185373455286026, 0.16261860728263855, 0.04789881780743599, 0.037768132984638214, -0.0374353863298893, 0.000051953396905446425, 0.002040216466411948, 0.009014695882797241, -0.004912942182272673, -0.10868100076913834, -0.049720510840415955, 0.023582540452480316, -0.06619090586900711, -0.05673025920987129, 0.02668830007314682, 0.0781840831041336, 0.015038005076348782, 0.054478079080581665, -0.11445179581642151, -0.06248621642589569, 0.007936212234199047, 0.07557381689548492, -0.022065866738557816, 0.02178901992738247, 0.008480580523610115, -0.02001882717013359, 0.030438384041190147, 0.0760304406285286, 0.06471806019544601, -0.06340017914772034, -0.024051271378993988, -0.07232290506362915, -0.053354229778051376, -0.17316533625125885, -0.06309259682893753, -0.0817679837346077, -0.06337419897317886, 0.011920935474336147, 0.015994073823094368, -0.07161235809326172, -0.01208922453224659, 0.07313226908445358, -0.11697381734848022, -0.05372942239046097, 0.05802024528384209, 0.07377851754426956, 0.009456973522901535, 0.014135408215224743, 0.03588620945811272, -0.005477418657392263, -0.03780944645404816, -0.024669155478477478, -0.004500202368944883, 0.006328288931399584, -0.040112245827913284, 0.018661268055438995, -0.04730862379074097, 0.020997429266572, 0.006353788077831268, 0.025630859658122063, -0.004576994571834803, 0.025067588314414024, 0.06350579857826233, 0.05185385420918465, 0.03068433329463005, 0.0001940861257025972, -0.012010036036372185, -0.02273203618824482, -0.024100366979837418, -0.010797088965773582, 0.05357148125767708, -0.08406057208776474, -0.0677148625254631, -0.03429832682013512, -0.02296384796500206, 0.03463854640722275, 0.00474347360432148, 0.05404426157474518, 0.019702475517988205, -0.05174627527594566, 0.044056057929992676, 0.07425381988286972, 0.0753290131688118, 0.071884386241436, 0.0417293943464756, -0.011676021851599216, 0.10031180828809738, 0.00934543740004301, 0.006481245160102844, -0.050256356596946716, -0.00713838217779994, 0.011920401826500893, -4.941256257896735e-33, -0.06429898738861084, 0.002858595922589302, -0.049760788679122925, 0.022026799619197845, -0.08829685300588608, -0.0870484709739685, -0.025684727355837822, -0.0014875921187922359, 0.00594414072111249, 0.000040224575059255585, -0.04409584403038025, 0.07441196590662003, 0.019482558593153954, -0.07615537196397781, 0.030219126492738724, -0.06995018571615219, -0.07470636814832687, -0.05189741775393486, -0.005134060513228178, 0.05039423331618309, 0.002328346250578761, 0.029234422370791435, -0.0561785064637661, 0.026436541229486465, 0.0086762560531497, 0.022807491943240166, 0.034354742616415024, 0.04789496585726738, -0.021770179271697998, -0.02003806084394455, 0.025694208219647408, 0.03435326740145683, -0.05322141945362091, 0.011922946199774742, -0.0036663187202066183, 0.05319008603692055, 0.04686351120471954, 0.011829880066215992, 0.03408144414424896, 0.04286409541964531, 0.08529950678348541, 0.034254662692546844, -0.08433511108160019, -0.02863636426627636, -0.020246349275112152, 0.06797783076763153, 0.04001983627676964, -0.016854511573910713, -0.10640835762023926, -0.04871199652552605, -0.054107341915369034, 0.05797715485095978, 0.030122986063361168, 0.043999120593070984, 0.06088939309120178, 0.02401656284928322, 0.007909341715276241, 0.014266647398471832, -0.019639641046524048, -0.09530665725469589, -0.005556258372962475, -0.01702178828418255, -0.0006061888998374343, 0.09245143830776215, 0.0013723806478083134, 0.014942998066544533, -0.014868644997477531, 0.005314485635608435, -0.0282079316675663, -0.038588136434555054, -0.06973086297512054, -0.010968517512083054, 0.023775454610586166, -0.03537154570221901, -0.031472347676754, -0.052000902593135834, -0.02567678689956665, -0.016919126734137535, -0.03596629202365875, 0.010860856622457504, -0.05588323250412941, -0.002267316449433565, 0.03962424769997597, 0.002505135489627719, -0.003852660534903407, -0.044232871383428574, 0.06911130994558334, 0.036503035575151443, 0.07738888263702393, 0.012340055778622627, -0.05760200321674347, 0.01577531360089779, -0.028040150180459023, -0.023012954741716385, 0.014169581234455109, -4.553998422807126e-8, -0.016693856567144394, 0.0027065847534686327, -0.08112962543964386, 0.046164680272340775, 0.09160342067480087, -0.05349074304103851, 0.0286216139793396, 0.060217827558517456, -0.062156517058610916, 0.023393571376800537, 0.07695955783128738, 0.09677265584468842, -0.07567410916090012, 0.07065093517303467, 0.02534281276166439, 0.07622940838336945, -0.03136924281716347, -0.02994072437286377, 0.00701161939650774, -0.08357299864292145, -0.04733233153820038, 0.006598861422389746, 0.07295193523168564, 0.05403831973671913, -0.053438443690538406, -0.06499820202589035, 0.030632395297288895, -0.0035298236180096865, -0.028680050745606422, -0.018814479932188988, -0.028528867289423943, -0.03970743343234062, 0.026525648310780525, 0.016934428364038467, -0.03080233931541443, 0.02425326593220234, 0.0070963273756206036, 0.060980647802352905, 0.09545081108808517, 0.024962756782770157, 0.0232179407030344, -0.027865475043654442, 0.0024498896673321724, 0.01026665698736906, -0.09388361871242523, 0.05740075930953026, -0.07259923964738846, 0.013602525927126408, -0.010527488775551319, -0.039409566670656204, -0.00489769596606493, 0.016095830127596855, 0.015247518196702003, 0.028362808749079704, 0.01939821057021618, 0.05625167489051819, 0.018657000735402107, -0.060272302478551865, -0.017407085746526718, 0.00040417551645077765, 0.0037872539833188057, -0.027372244745492935, 0.035062942653894424, -0.10394012928009033 ]
0.060926
# `openclaw hooks` Manage agent hooks (event-driven automations for commands like `/new`, `/reset`, and gateway startup). Related: - Hooks: [Hooks](/hooks) - Plugin hooks: [Plugins](/plugin#plugin-hooks) ## List All Hooks ```bash openclaw hooks list ``` List all discovered hooks from workspace, managed, and bundled directories. \*\*Options:\*\* - `--eligible`: Show only eligible hooks (requirements met) - `--json`: Output as JSON - `-v, --verbose`: Show detailed information including missing requirements \*\*Example output:\*\* ``` Hooks (4/4 ready) Ready: 🚀 boot-md ✓ - Run BOOT.md on gateway startup 📝 command-logger ✓ - Log all command events to a centralized audit file 💾 session-memory ✓ - Save session context to memory when /new command is issued 😈 soul-evil ✓ - Swap injected SOUL content during a purge window or by random chance ``` \*\*Example (verbose):\*\* ```bash openclaw hooks list --verbose ``` Shows missing requirements for ineligible hooks. \*\*Example (JSON):\*\* ```bash openclaw hooks list --json ``` Returns structured JSON for programmatic use. ## Get Hook Information ```bash openclaw hooks info ``` Show detailed information about a specific hook. \*\*Arguments:\*\* - ``: Hook name (e.g., `session-memory`) \*\*Options:\*\* - `--json`: Output as JSON \*\*Example:\*\* ```bash openclaw hooks info session-memory ``` \*\*Output:\*\* ``` 💾 session-memory ✓ Ready Save session context to memory when /new command is issued Details: Source: openclaw-bundled Path: /path/to/openclaw/hooks/bundled/session-memory/HOOK.md Handler: /path/to/openclaw/hooks/bundled/session-memory/handler.ts Homepage: https://docs.openclaw.ai/hooks#session-memory Events: command:new Requirements: Config: ✓ workspace.dir ``` ## Check Hooks Eligibility ```bash openclaw hooks check ``` Show summary of hook eligibility status (how many are ready vs. not ready). \*\*Options:\*\* - `--json`: Output as JSON \*\*Example output:\*\* ``` Hooks Status Total hooks: 4 Ready: 4 Not ready: 0 ``` ## Enable a Hook ```bash openclaw hooks enable ``` Enable a specific hook by adding it to your config (`~/.openclaw/config.json`). \*\*Note:\*\* Hooks managed by plugins show `plugin:` in `openclaw hooks list` and can’t be enabled/disabled here. Enable/disable the plugin instead. \*\*Arguments:\*\* - ``: Hook name (e.g., `session-memory`) \*\*Example:\*\* ```bash openclaw hooks enable session-memory ``` \*\*Output:\*\* ``` ✓ Enabled hook: 💾 session-memory ``` \*\*What it does:\*\* - Checks if hook exists and is eligible - Updates `hooks.internal.entries..enabled = true` in your config - Saves config to disk \*\*After enabling:\*\* - Restart the gateway so hooks reload (menu bar app restart on macOS, or restart your gateway process in dev). ## Disable a Hook ```bash openclaw hooks disable ``` Disable a specific hook by updating your config. \*\*Arguments:\*\* - ``: Hook name (e.g., `command-logger`) \*\*Example:\*\* ```bash openclaw hooks disable command-logger ``` \*\*Output:\*\* ``` ⏸ Disabled hook: 📝 command-logger ``` \*\*After disabling:\*\* - Restart the gateway so hooks reload ## Install Hooks ```bash openclaw hooks install ``` Install a hook pack from a local folder/archive or npm. \*\*What it does:\*\* - Copies the hook pack into `~/.openclaw/hooks/` - Enables the installed hooks in `hooks.internal.entries.\*` - Records the install under `hooks.internal.installs` \*\*Options:\*\* - `-l, --link`: Link a local directory instead of copying (adds it to `hooks.internal.load.extraDirs`) \*\*Supported archives:\*\* `.zip`, `.tgz`, `.tar.gz`, `.tar` \*\*Examples:\*\* ```bash # Local directory openclaw hooks install ./my-hook-pack # Local archive openclaw hooks install ./my-hook-pack.zip # NPM package openclaw hooks install @openclaw/my-hook-pack # Link a local directory without copying openclaw hooks install -l ./my-hook-pack ``` ## Update Hooks ```bash openclaw hooks update openclaw hooks update --all ``` Update installed hook packs (npm installs only). \*\*Options:\*\* - `--all`: Update all tracked hook packs - `--dry-run`: Show what would change without writing ## Bundled Hooks ### session-memory Saves session context to memory when you issue `/new`. \*\*Enable:\*\* ```bash openclaw hooks enable session-memory ``` \*\*Output:\*\* `~/.openclaw/workspace/memory/YYYY-MM-DD-slug.md` \*\*See:\*\* [session-memory documentation](/hooks#session-memory) ### command-logger Logs all command events to a centralized audit file. \*\*Enable:\*\* ```bash openclaw hooks enable command-logger ``` \*\*Output:\*\* `~/.openclaw/logs/commands.log` \*\*View
https://github.com/openclaw/openclaw/blob/main//docs/cli/hooks.md
main
opebclaw
[ -0.02213558740913868, -0.019462289288640022, -0.07295684516429901, 0.04359164461493492, 0.01742134615778923, -0.023523932322859764, 0.004745488055050373, -0.005939367692917585, -0.058694493025541306, 0.0050336821004748344, 0.007848289795219898, -0.05233471095561981, 0.0012920781737193465, 0.001302247983403504, 0.062006428837776184, 0.11404532194137573, -0.013637842610478401, -0.028906313702464104, -0.04289689660072327, -0.07374868541955948, -0.006345753092318773, 0.016883930191397667, 0.01280568540096283, -0.03537070006132126, -0.11264015734195709, -0.03552163392305374, -0.0016932867001742125, -0.007126201409846544, -0.05821428447961807, -0.026255624368786812, 0.030791619792580605, 0.02580496296286583, -0.0009181390632875264, -0.030000846832990646, 0.08577200770378113, 0.06536848098039627, 0.014247278682887554, -0.00345714227296412, -0.06991959363222122, 0.001364581286907196, 0.0650017037987709, 0.0076850783079862595, -0.03340885043144226, -0.048961341381073, -0.05214875563979149, -0.08031601458787918, -0.06170358136296272, -0.13362912833690643, -0.07247568666934967, 0.023614052683115005, -0.03946632891893387, -0.013611964881420135, 0.004550117999315262, -0.05139070749282837, 0.03890569880604744, -0.04848184064030647, 0.016742506995797157, -0.040122177451848984, 0.004012003540992737, -0.08762717992067337, 0.012925961054861546, -0.019508128985762596, -0.09175613522529602, 0.08457621932029724, -0.11664023995399475, 0.02209230698645115, -0.02976810187101364, -0.03200143203139305, 0.017378808930516243, -0.003450248157605529, -0.12074155360460281, -0.05532582849264145, -0.11204314976930618, -0.07839450240135193, -0.013188991695642471, 0.0023927558213472366, 0.07882320880889893, 0.02687332220375538, -0.07673892378807068, -0.09542036801576614, -0.0614737905561924, 0.020190278068184853, -0.035012386739254, 0.06427373737096786, -0.034805864095687866, 0.16666822135448456, -0.030071698129177094, 0.010953394696116447, 0.0643707811832428, 0.030556337907910347, 0.00515621667727828, -0.09468034654855728, -0.00908120907843113, -0.017153125256299973, -0.017545219510793686, 0.03319103270769119, 0.030774449929594994, -0.025909122079610825, -0.04384917393326759, 0.09443976730108261, -0.028364425525069237, 0.01983095332980156, 0.028365615755319595, 0.007255144417285919, -0.023248374462127686, 0.052558526396751404, 0.025395652279257774, 0.04431968182325363, -0.013378375209867954, -0.007005975116044283, 0.025063443928956985, -0.02500917948782444, 0.10377738624811172, -0.07851441204547882, 0.05433331057429314, 0.04113906994462013, 0.04532061517238617, 0.0035813103895634413, 0.02696528658270836, 0.09122160822153091, 0.13520684838294983, 0.046664901077747345, 0.03160804882645607, 0.012437553144991398, 0.042956773191690445, 0.06286875158548355, 0.04111054539680481, 4.10839757184602e-33, 0.0868905708193779, -0.03828509896993637, -0.01932913437485695, 0.0790674090385437, 0.1022222712635994, 0.008642887696623802, 0.03305264189839363, 0.042556263506412506, -0.044140856713056564, 0.13469402492046356, 0.020140349864959717, 0.0513157956302166, -0.07711249589920044, 0.012024863623082638, 0.012235406786203384, -0.007959886454045773, -0.0427728109061718, -0.005178879946470261, 0.08923798054456711, 0.002414972987025976, -0.00879469234496355, -0.05416376516222954, -0.030461914837360382, 0.023747650906443596, 0.03109084814786911, 0.029805274680256844, 0.008809084072709084, 0.02878863923251629, 0.01396400760859251, 0.015721049159765244, 0.05434367433190346, 0.023143192753195763, 0.0035740009043365717, -0.023871786892414093, -0.07618863880634308, -0.034357182681560516, -0.1428508758544922, -0.025634275749325752, -0.047843120992183685, -0.0256645567715168, -0.004686206113547087, 0.010474535636603832, -0.0788155049085617, -0.058426760137081146, 0.06596577912569046, -0.14860336482524872, -0.05759193003177643, 0.04108143970370293, 0.11615743488073349, 0.04522697627544403, 0.049591246992349625, 0.025563230738043785, 0.11790838837623596, 0.009352277033030987, -0.0010670276824384928, 0.009284362196922302, -0.03794516995549202, -0.005747228395193815, 0.034496504813432693, 0.06912080198526382, -0.03679225593805313, -0.00035811809357255697, -0.010616631247103214, 0.031117307022213936, 0.016753658652305603, 0.020577386021614075, 0.05192568898200989, 0.0007851705886423588, -0.053481876850128174, 0.00025496596936136484, -0.07200485467910767, -0.002607158850878477, -0.03856934607028961, 0.028388729318976402, -0.004763941280543804, -0.039207860827445984, 0.0269914697855711, -0.040279462933540344, 0.053549353033304214, -0.014599905349314213, 0.04126651957631111, -0.03862655535340309, -0.034102678298950195, 0.016640501096844673, 0.03972901776432991, 0.003993277903646231, 0.012029464356601238, -0.10247642546892166, -0.0038823047652840614, 0.08663089573383331, -0.06777273863554001, 0.003941737115383148, -0.06766702234745026, -0.011964645236730576, 0.018586212769150734, -7.153415035947367e-33, 0.061459120362997055, 0.007537350989878178, -0.036626048386096954, 0.00884561613202095, -0.00383002613671124, -0.03850186988711357, -0.03911944851279259, -0.0750064104795456, 0.01099757943302393, -0.03469505161046982, -0.04482560232281685, 0.08188816905021667, 0.041763462126255035, -0.0019598931539803743, 0.056817155331373215, -0.002010843250900507, -0.06111821159720421, -0.08472005277872086, 0.0026206758338958025, 0.045083366334438324, 0.004798222798854113, 0.07439864426851273, 0.000277819053735584, -0.023045768961310387, 0.030000800266861916, -0.009737486019730568, 0.053936805576086044, 0.05967647209763527, -0.01599576696753502, -0.027094358578324318, 0.007386327255517244, 0.036201361566782, -0.06317722052335739, 0.06770885735750198, 0.013646053150296211, -0.0253840833902359, 0.046922799199819565, 0.08833160996437073, -0.0023242381867021322, 0.023881537839770317, 0.07078009843826294, -0.024904262274503708, -0.03316807001829147, -0.028342343866825104, -0.03735790774226189, 0.014956481754779816, -0.06982262432575226, -0.0312039814889431, -0.0458030141890049, 0.0005570584326051176, -0.07236465066671371, -0.023749317973852158, -0.020920587703585625, 0.06894145905971527, -0.007356168236583471, 0.02294064685702324, 0.04479958117008209, -0.07505849003791809, -0.003834576578810811, -0.05614577978849411, -0.024578530341386795, -0.0424591489136219, -0.019702255725860596, 0.05017825961112976, 0.008317566476762295, -0.05360398441553116, 0.0017711777472868562, -0.01030417624861002, -0.09666682034730911, -0.027952125295996666, 0.0029895459301769733, -0.06941868364810944, -0.02604634314775467, -0.043415650725364685, 0.007439469452947378, -0.009900646284222603, 0.0001806575310183689, -0.13832351565361023, -0.005899425130337477, 0.025764383375644684, 0.002358725992962718, -0.030622432008385658, 0.044255077838897705, -0.016702421009540558, -0.056731369346380234, -0.0001473014708608389, -0.0465269573032856, 0.09501085430383682, 0.053102437406778336, 0.0265986118465662, -0.07981882244348526, 0.018590252846479416, -0.027661820873618126, -0.0025718177203089, -0.019355935975909233, -5.681438608462486e-8, -0.06780963391065598, -0.06543456017971039, -0.00920502096414566, 0.03630232438445091, 0.015413428656756878, -0.02125670202076435, -0.02254796214401722, 0.016130078583955765, -0.07894207537174225, -0.01920005865395069, 0.1485649049282074, 0.08940775692462921, -0.05932950973510742, 0.06120351701974869, -0.02801622822880745, 0.06369781494140625, -0.059320587664842606, 0.051401831209659576, -0.01901882328093052, -0.07583341747522354, -0.04067530110478401, 0.03874848037958145, 0.07694099098443985, -0.02046569436788559, -0.04546938091516495, -0.058222535997629166, -0.002088450128212571, 0.08494460582733154, -0.028734225779771805, 0.03964610397815704, 0.025043383240699768, -0.026172559708356857, 0.07627657800912857, -0.030716847628355026, -0.03631099686026573, 0.01356904674321413, 0.004236552398651838, -0.02839355543255806, 0.0471784844994545, -0.055293891578912735, 0.03030269220471382, 0.04872911795973778, -0.042931195348501205, -0.02433652989566326, -0.05987843498587608, 0.0274162907153368, -0.07447858899831772, 0.04469898343086243, 0.008033810183405876, -0.031375061720609665, -0.09152897447347641, 0.05477491021156311, 0.020480578765273094, 0.0961589515209198, -0.006215258501470089, 0.06456313282251358, 0.10200894623994827, -0.02315402589738369, 0.06453080475330353, 0.014609229750931263, -0.010205604135990143, 0.025784213095903397, 0.07924259454011917, -0.0840597003698349 ]
0.138602
change without writing ## Bundled Hooks ### session-memory Saves session context to memory when you issue `/new`. \*\*Enable:\*\* ```bash openclaw hooks enable session-memory ``` \*\*Output:\*\* `~/.openclaw/workspace/memory/YYYY-MM-DD-slug.md` \*\*See:\*\* [session-memory documentation](/hooks#session-memory) ### command-logger Logs all command events to a centralized audit file. \*\*Enable:\*\* ```bash openclaw hooks enable command-logger ``` \*\*Output:\*\* `~/.openclaw/logs/commands.log` \*\*View logs:\*\* ```bash # Recent commands tail -n 20 ~/.openclaw/logs/commands.log # Pretty-print cat ~/.openclaw/logs/commands.log | jq . # Filter by action grep '"action":"new"' ~/.openclaw/logs/commands.log | jq . ``` \*\*See:\*\* [command-logger documentation](/hooks#command-logger) ### soul-evil Swaps injected `SOUL.md` content with `SOUL\_EVIL.md` during a purge window or by random chance. \*\*Enable:\*\* ```bash openclaw hooks enable soul-evil ``` \*\*See:\*\* [SOUL Evil Hook](/hooks/soul-evil) ### boot-md Runs `BOOT.md` when the gateway starts (after channels start). \*\*Events\*\*: `gateway:startup` \*\*Enable\*\*: ```bash openclaw hooks enable boot-md ``` \*\*See:\*\* [boot-md documentation](/hooks#boot-md)
https://github.com/openclaw/openclaw/blob/main//docs/cli/hooks.md
main
opebclaw
[ 0.025214146822690964, 0.015324658714234829, -0.06189243867993355, 0.06986931711435318, 0.0186807569116354, -0.05642230436205864, 0.025931671261787415, -0.01692814752459526, 0.008498081006109715, 0.05294359475374222, 0.003391065401956439, -0.014508319087326527, -0.0007147806463763118, 0.0032093769405037165, 0.045926664024591446, 0.07592684775590897, -0.03424791246652603, 0.005142887122929096, -0.03441525995731354, -0.02122453600168228, 0.022634631022810936, 0.05080327019095421, 0.03645385429263115, -0.013495497405529022, -0.08931419998407364, -0.036644965410232544, -0.014216598123311996, -0.06342379003763199, -0.05330195277929306, -0.09079641848802567, 0.07309611886739731, 0.04388966038823128, -0.013601835817098618, -0.00022879615426063538, 0.10044730454683304, 0.0691666230559349, 0.04013730585575104, 0.0009980527684092522, -0.051819946616888046, -0.03876855596899986, 0.034521568566560745, 0.056997090578079224, -0.015671854838728905, -0.03160231187939644, -0.10935026407241821, -0.06366317719221115, -0.03725888952612877, -0.11575756967067719, -0.01424473337829113, 0.017098819836974144, -0.03416711464524269, -0.03359050676226616, -0.0007794257835485041, -0.11679156869649887, 0.03936547413468361, 0.014241080731153488, 0.011549959890544415, -0.030553186312317848, 0.0027722616214305162, -0.030913030728697777, -0.015221095643937588, 0.041590459644794464, -0.07389673590660095, 0.024852899834513664, -0.10375839471817017, -0.0053222645074129105, 0.022671053186058998, -0.012671466916799545, -0.019763844087719917, 0.03368544578552246, -0.08902252465486526, 0.018805859610438347, -0.07427217811346054, -0.06893077492713928, -0.042426370084285736, -0.0411958210170269, 0.04600907862186432, 0.028264401480555534, -0.07047316431999207, -0.09808647632598877, -0.0874185785651207, -0.02446700632572174, -0.017158793285489082, 0.010987472720444202, 0.01235318835824728, 0.11622709780931473, -0.023287545889616013, 0.01456482894718647, 0.03089788556098938, 0.005580831319093704, -0.0111765181645751, -0.07338601350784302, -0.026506979018449783, 0.018510228022933006, -0.03298449516296387, 0.018123388290405273, 0.017115289345383644, 0.09581228345632553, 0.03338227793574333, 0.08347154408693314, 0.05825137346982956, 0.08897636830806732, 0.011314738541841507, 0.021461984142661095, 0.00024186528753489256, 0.04672767221927643, 0.018955400213599205, 0.058491289615631104, -0.047562722116708755, 0.025533558800816536, 0.08320455253124237, -0.003131566569209099, 0.08264786750078201, -0.010225821286439896, 0.07510592043399811, 0.02719486877322197, 0.0075350599363446236, -0.02497711218893528, -0.037138763815164566, 0.10801117867231369, 0.1742120385169983, 0.03507743030786514, -0.014470820315182209, 0.02045394293963909, 0.018356742337346077, 0.027517473325133324, 0.0888342335820198, 3.107591967131494e-33, 0.09215570241212845, -0.058633897453546524, -0.06427343934774399, 0.03251557797193527, 0.10661761462688446, 0.09811937808990479, -0.009614136070013046, 0.04172762483358383, -0.055455103516578674, 0.08466029912233353, 0.0012766103027388453, 0.012210702523589134, -0.05018812417984009, -0.0770014226436615, 0.027254970744252205, -0.03740912303328514, -0.0865689143538475, 0.028027908876538277, 0.062357448041439056, -0.01678963005542755, -0.059938397258520126, 0.003844056511297822, -0.04192287102341652, 0.008703861385583878, 0.01595824956893921, 0.00028297025710344315, 0.026870569214224815, 0.000009708601282909513, -0.01608501747250557, 0.033034779131412506, 0.04933902248740196, 0.026358524337410927, 0.0022922048810869455, 0.002213375875726342, -0.02814103290438652, -0.004938492551445961, -0.10193966329097748, -0.0060609676875174046, -0.023060491308569908, -0.11087143421173096, 0.0037187770940363407, 0.038776565343141556, -0.10059355199337006, -0.05541391670703888, -0.018604490906000137, -0.11549507081508636, -0.048928793519735336, 0.059422604739665985, -0.006407513748854399, -0.005970320664346218, 0.055389948189258575, -0.0008039455860853195, 0.05011339485645294, 0.021843895316123962, -0.019683411344885826, 0.011479943059384823, -0.01308562234044075, -0.060265857726335526, 0.0448029600083828, 0.09257283806800842, -0.007861810736358166, 0.06537601351737976, 0.02721477299928665, 0.03356442227959633, 0.020344242453575134, -0.009067199192941189, 0.12444174289703369, 0.10135816782712936, -0.05880856141448021, -0.0024990595411509275, -0.024734599515795708, -0.054291982203722, 0.030810993164777756, 0.016083423048257828, -0.004561705980449915, -0.05599584802985191, 0.058681901544332504, -0.02688777819275856, -0.032187849283218384, 0.006381217855960131, 0.0754794329404831, -0.06987965106964111, -0.0021271733567118645, -0.010903732851147652, 0.03307276591658592, -0.021643169224262238, 0.01830141246318817, -0.029105620458722115, -0.024890311062335968, 0.10214316099882126, -0.037954386323690414, -0.05035209283232689, -0.02034037746489048, -0.04929665848612785, 0.021467136219143867, -6.285864205526024e-33, 0.04512471705675125, 0.04521434009075165, -0.026346687227487564, 0.0072826421819627285, -0.06849788874387741, -0.046969905495643616, -0.016075406223535538, -0.022934123873710632, -0.09096793830394745, -0.07530269771814346, -0.1008099839091301, 0.06375519931316376, -0.007154335733503103, -0.0058747162111103535, 0.05042291805148125, -0.0038291041273623705, -0.029771892353892326, -0.026878077536821365, -0.03617693483829498, -0.006791212595999241, 0.023714786395430565, 0.05010578781366348, 0.018645314499735832, 0.020528677850961685, 0.061373189091682434, -0.03923651948571205, 0.022891715168952942, 0.06650764495134354, -0.01383450347930193, -0.03711412101984024, 0.01648806594312191, 0.04066424444317818, -0.06751320511102676, 0.018921522423624992, 0.0003147649404127151, -0.05085297301411629, 0.0286609698086977, 0.04132028669118881, 0.058701291680336, 0.03556239977478981, 0.05986405536532402, 0.0031508447136729956, -0.013753877952694893, -0.01303143985569477, -0.008938734419643879, 0.06636057049036026, -0.05683794245123863, -0.029807966202497482, -0.055786408483982086, -0.015523144043982029, -0.059999264776706696, -0.03767821192741394, -0.024950603023171425, 0.006906785536557436, -0.013502703979611397, 0.01624900847673416, 0.022969335317611694, -0.06931465864181519, -0.06526516377925873, -0.056283049285411835, -0.026542454957962036, -0.02024615742266178, -0.06268568336963654, 0.010546930134296417, -0.016607647761702538, -0.07304344326257706, 0.02044380083680153, 0.03117704950273037, -0.06827022135257721, -0.03947017341852188, 0.006083927117288113, -0.052308231592178345, -0.08198937028646469, -0.00876050814986229, -0.015943119302392006, 0.002359315287321806, 0.011651498265564442, -0.1374879628419876, -0.01812124438583851, 0.08171436190605164, -0.015881191939115524, 0.02831980027258396, 0.023551667109131813, -0.014867108315229416, -0.03345465660095215, 0.009275474585592747, -0.07304185628890991, 0.1075248271226883, -0.014359770342707634, 0.036684710532426834, -0.10103914141654968, 0.032367460429668427, -0.03166540712118149, -0.05772406607866287, -0.02025815099477768, -4.917625417988347e-8, -0.11633524298667908, -0.07737696170806885, 0.015664534643292427, 0.08147457242012024, 0.04585225135087967, -0.05088994652032852, -0.06568598747253418, 0.09959780424833298, -0.04587700963020325, -0.024288395419716835, 0.1269778162240982, 0.039221279323101044, -0.04415105655789375, 0.021753128618001938, -0.04891687259078026, 0.03320751339197159, 0.018138758838176727, -0.04051579535007477, -0.012187005952000618, -0.06627464294433594, 0.008469288237392902, 0.02158067189157009, 0.09600698202848434, 0.07095314562320709, -0.08347522467374802, -0.08743206411600113, -0.001718791201710701, 0.06617788225412369, -0.04880991578102112, 0.001634309533983469, 0.04638855531811714, -0.002614161930978298, 0.015651337802410126, -0.002769594080746174, -0.046890582889318466, -0.028244607150554657, 0.002742334268987179, -0.0397038459777832, 0.021883225068449974, -0.0464751236140728, -0.005739266984164715, 0.01997498795390129, -0.02522696554660797, 0.028116630390286446, -0.13087376952171326, -0.013984435237944126, -0.07310603559017181, -0.004290265031158924, 0.021323980763554573, -0.06835120171308517, -0.0308973491191864, 0.07173258066177368, 0.05915679410099983, 0.0796278566122055, 0.025954991579055786, 0.08111020922660828, 0.10809390246868134, -0.0435759462416172, 0.07651102542877197, 0.05662725493311882, 0.014118212275207043, -0.02004152536392212, 0.03188852220773697, -0.0339750275015831 ]
0.07327
# `openclaw system` System-level helpers for the Gateway: enqueue system events, control heartbeats, and view presence. ## Common commands ```bash openclaw system event --text "Check for urgent follow-ups" --mode now openclaw system heartbeat enable openclaw system heartbeat last openclaw system presence ``` ## `system event` Enqueue a system event on the \*\*main\*\* session. The next heartbeat will inject it as a `System:` line in the prompt. Use `--mode now` to trigger the heartbeat immediately; `next-heartbeat` waits for the next scheduled tick. Flags: - `--text `: required system event text. - `--mode `: `now` or `next-heartbeat` (default). - `--json`: machine-readable output. ## `system heartbeat last|enable|disable` Heartbeat controls: - `last`: show the last heartbeat event. - `enable`: turn heartbeats back on (use this if they were disabled). - `disable`: pause heartbeats. Flags: - `--json`: machine-readable output. ## `system presence` List the current system presence entries the Gateway knows about (nodes, instances, and similar status lines). Flags: - `--json`: machine-readable output. ## Notes - Requires a running Gateway reachable by your current config (local or remote). - System events are ephemeral and not persisted across restarts.
https://github.com/openclaw/openclaw/blob/main//docs/cli/system.md
main
opebclaw
[ -0.04319516569375992, -0.030076222494244576, -0.09622544795274734, 0.031458716839551926, 0.028029104694724083, -0.03736203536391258, -0.05207410082221031, -0.021277088671922684, 0.0015199767658486962, -0.034160908311605453, 0.0330531969666481, -0.046630650758743286, 0.024152886122465134, -0.05201396346092224, 0.04258882254362106, 0.04640981927514076, 0.08167428523302078, -0.1253570020198822, 0.027536194771528244, 0.003303413512185216, -0.03471460938453674, 0.06507712602615356, -0.0043142978101968765, 0.002457668771967292, -0.12383989989757538, -0.07174452394247055, -0.04640891030430794, -0.05594385042786598, -0.03122110106050968, -0.03149723261594772, 0.061317700892686844, -0.04761386290192604, 0.05156906321644783, 0.007939537055790424, 0.028579728677868843, 0.04766618087887764, 0.10933002084493637, -0.0012235527392476797, -0.09418966621160507, -0.015491606667637825, 0.03769191354513168, -0.05355538800358772, -0.012441609054803848, -0.0100374985486269, -0.0076442682184278965, -0.06448349356651306, -0.08683117479085922, -0.07265131175518036, 0.03778798505663872, -0.023638788610696793, -0.08113276213407516, -0.11232717335224152, 0.013487718068063259, -0.034554142504930496, 0.06822902709245682, 0.0925310030579567, 0.032087355852127075, 0.013853184878826141, -0.00299041997641325, -0.1270335614681244, 0.018692418932914734, -0.010226477868855, -0.022136801853775978, 0.032364051789045334, -0.08119361102581024, 0.04015081375837326, -0.03378155082464218, -0.03372127190232277, 0.04512329399585724, 0.02555074915289879, -0.001437417813576758, 0.03720133751630783, -0.007675034925341606, -0.0038737859576940536, -0.04807501286268234, 0.00028902667690999806, 0.026677818968892097, -0.033719051629304886, -0.05556203052401543, -0.016173483803868294, -0.1066950187087059, -0.05074435472488403, -0.08957450091838837, -0.004528554156422615, -0.02254669927060604, 0.1239992156624794, -0.05467572808265686, 0.013220241293311119, -0.010841055773198605, 0.030303852632641792, 0.010340668261051178, -0.0974317118525505, 0.04013117775321007, -0.014618268236517906, 0.0016644190764054656, 0.0569823682308197, 0.0000734290006221272, 0.03216047212481499, 0.006378617137670517, 0.00884846318513155, 0.0038248179480433464, 0.033251676708459854, -0.028126761317253113, 0.05836931988596916, -0.01669260486960411, 0.019954806193709373, -0.06656457483768463, 0.07339883595705032, 0.018825460225343704, -0.032396115362644196, 0.04662235081195831, -0.024432485923171043, 0.11888918280601501, -0.02144397422671318, -0.019713934510946274, 0.1227349191904068, 0.020202629268169403, 0.0009987227385863662, 0.08161050081253052, 0.02696107141673565, 0.14842373132705688, 0.003091437043622136, 0.013042383827269077, -0.09259048104286194, 0.12541890144348145, 0.03578623756766319, 0.09423879534006119, 3.766648670625349e-33, 0.030489275231957436, -0.044681914150714874, -0.027796775102615356, 0.009290187619626522, 0.09516315162181854, 0.0031575148459523916, 0.0004029035335406661, 0.011416252702474594, -0.048470452427864075, 0.08762252330780029, -0.06291738897562027, 0.022254733368754387, -0.00023686033091507852, -0.020811961963772774, -0.05359482392668724, -0.07724398374557495, -0.006584555841982365, -0.05257115885615349, 0.053461939096450806, -0.07842788845300674, 0.01620408333837986, -0.12924431264400482, -0.08900625258684158, 0.0360979326069355, 0.013260575011372566, 0.06421476602554321, 0.011385675519704819, 0.037350449711084366, 0.037007808685302734, 0.025542709976434708, 0.04846687242388725, 0.06032169237732887, -0.09859848022460938, -0.056835778057575226, -0.04828004539012909, 0.011213441379368305, -0.06426822394132614, 0.019752558320760727, -0.036703918129205704, -0.017514755949378014, 0.04166802018880844, -0.013084551319479942, -0.1184033527970314, -0.0017085066065192223, 0.01615210995078087, -0.1151486486196518, -0.05365883931517601, 0.0539730079472065, 0.07654540985822678, 0.0030362384859472513, 0.055536795407533646, -0.008949430659413338, 0.08542575687170029, -0.035442691296339035, -0.026447128504514694, 0.044941943138837814, 0.033537931740283966, -0.020416244864463806, -0.007428837474435568, 0.055445943027734756, -0.012546049430966377, -0.03716731444001198, 0.06414087116718292, 0.02722156047821045, 0.06080237030982971, 0.02313831076025963, 0.009745003655552864, -0.09673658758401871, -0.048494502902030945, 0.04572249576449394, 0.005739574786275625, 0.013489097356796265, 0.00831140298396349, -0.0029751057736575603, -0.017993396148085594, 0.004293126054108143, -0.0470208115875721, 0.0015665871324017644, -0.027345189824700356, 0.02489994838833809, 0.03535065799951553, -0.0012899533612653613, -0.02283315733075142, 0.08886516094207764, 0.13441453874111176, -0.02333982102572918, -0.0443112850189209, -0.02821151725947857, -0.11116255074739456, 0.053645119071006775, -0.032796237617731094, 0.01864684745669365, 0.033501073718070984, 0.038599926978349686, -0.00884232297539711, -5.76204224962252e-33, 0.04840521886944771, 0.024841230362653732, -0.031833164393901825, 0.0211405660957098, 0.03460858762264252, 0.011740593239665031, 0.016124511137604713, -0.00277156475931406, -0.03941984474658966, 0.00803142599761486, 0.011016025207936764, 0.04260173812508583, 0.02718420885503292, 0.028525101020932198, 0.0030658284667879343, 0.024422822520136833, -0.025025123730301857, -0.08458897471427917, -0.04461809992790222, 0.04694628715515137, -0.03462055325508118, -0.016303973272442818, -0.03292526677250862, 0.015137303620576859, 0.038219913840293884, 0.011769271455705166, 0.025510821491479874, 0.02992294915020466, -0.0465475358068943, -0.05133088678121567, 0.00011387228005332872, 0.027707217261195183, -0.02390885166823864, 0.06352057307958603, 0.0009134094580076635, 0.01158672384917736, -0.000628612469881773, 0.06323084235191345, -0.024357566609978676, 0.011560272425413132, 0.12684579193592072, 0.036358192563056946, -0.055361226201057434, -0.024368315935134888, -0.07103122025728226, 0.10816089808940887, -0.003034207271412015, -0.03291138634085655, -0.13451287150382996, 0.06696516275405884, -0.07576721161603928, 0.005730198230594397, 0.02660287916660309, 0.126194030046463, 0.05633709579706192, 0.04140041768550873, 0.027177486568689346, -0.010727494023740292, -0.029030589386820793, -0.09691163152456284, -0.01442797388881445, -0.10117259621620178, 0.018847351893782616, 0.026153195649385452, 0.020599769428372383, -0.052011117339134216, 0.03213150426745415, 0.04674307256937027, -0.006463983561843634, -0.07458411902189255, 0.032739486545324326, 0.01772608421742916, -0.04349401965737343, 0.024263322353363037, -0.0532786101102829, -0.031084701418876648, -0.021992778405547142, -0.1146310493350029, -0.050182320177555084, -0.007398994639515877, -0.00030775569030083716, -0.05187965929508209, 0.08365654200315475, -0.051458023488521576, -0.05601034685969353, 0.05484770983457565, 0.03939807415008545, 0.1002890095114708, 0.05276554077863693, 0.03959887474775314, -0.10377390682697296, 0.03591573238372803, 0.014481313526630402, -0.05502834916114807, -0.072173573076725, -5.28389492160386e-8, -0.07046374678611755, -0.07075847685337067, -0.04713188856840134, 0.028517870232462883, -0.031251564621925354, -0.04114288091659546, 0.026338061317801476, -0.022546203806996346, -0.12300816923379898, -0.009659074246883392, 0.06136034056544304, 0.013276508077979088, 0.04691721871495247, 0.004385116044431925, 0.023125821724534035, 0.032510384917259216, 0.022744745016098022, -0.013037730939686298, 0.010931545868515968, -0.07223347574472427, 0.04580190032720566, 0.012289064936339855, 0.06245417892932892, 0.013288706541061401, 0.004908856004476547, 0.0012544324854388833, -0.02388220652937889, -0.007686686236411333, 0.035869304090738297, 0.03812364488840103, -0.0435253381729126, -0.029961181804537773, 0.013664490543305874, -0.0019634452182799578, -0.04862022399902344, -0.008689362555742264, -0.001891849678941071, -0.003805212676525116, 0.04642024263739586, -0.031011322513222694, 0.04365064576268196, 0.00775883998721838, -0.10004030913114548, -0.03153920918703079, -0.04508111625909805, -0.022377047687768936, -0.003663835348561406, 0.02086772583425045, -0.00715857045724988, -0.011180857196450233, 0.01694088615477085, -0.029748745262622833, 0.06256581842899323, 0.04364868253469467, 0.02432406134903431, 0.06240526959300041, 0.07341985404491425, -0.0600711926817894, 0.021229930222034454, 0.0574180968105793, 0.02420952543616295, 0.03752218931913376, 0.01521140243858099, -0.07982292771339417 ]
0.125467
# Gateway CLI The Gateway is OpenClaw’s WebSocket server (channels, nodes, sessions, hooks). Subcommands in this page live under `openclaw gateway …`. Related docs: - [/gateway/bonjour](/gateway/bonjour) - [/gateway/discovery](/gateway/discovery) - [/gateway/configuration](/gateway/configuration) ## Run the Gateway Run a local Gateway process: ```bash openclaw gateway ``` Foreground alias: ```bash openclaw gateway run ``` Notes: - By default, the Gateway refuses to start unless `gateway.mode=local` is set in `~/.openclaw/openclaw.json`. Use `--allow-unconfigured` for ad-hoc/dev runs. - Binding beyond loopback without auth is blocked (safety guardrail). - `SIGUSR1` triggers an in-process restart when authorized (enable `commands.restart` or use the gateway tool/config apply/update). - `SIGINT`/`SIGTERM` handlers stop the gateway process, but they don’t restore any custom terminal state. If you wrap the CLI with a TUI or raw-mode input, restore the terminal before exit. ### Options - `--port `: WebSocket port (default comes from config/env; usually `18789`). - `--bind `: listener bind mode. - `--auth `: auth mode override. - `--token `: token override (also sets `OPENCLAW\_GATEWAY\_TOKEN` for the process). - `--password `: password override (also sets `OPENCLAW\_GATEWAY\_PASSWORD` for the process). - `--tailscale `: expose the Gateway via Tailscale. - `--tailscale-reset-on-exit`: reset Tailscale serve/funnel config on shutdown. - `--allow-unconfigured`: allow gateway start without `gateway.mode=local` in config. - `--dev`: create a dev config + workspace if missing (skips BOOTSTRAP.md). - `--reset`: reset dev config + credentials + sessions + workspace (requires `--dev`). - `--force`: kill any existing listener on the selected port before starting. - `--verbose`: verbose logs. - `--claude-cli-logs`: only show claude-cli logs in the console (and enable its stdout/stderr). - `--ws-log `: websocket log style (default `auto`). - `--compact`: alias for `--ws-log compact`. - `--raw-stream`: log raw model stream events to jsonl. - `--raw-stream-path `: raw stream jsonl path. ## Query a running Gateway All query commands use WebSocket RPC. Output modes: - Default: human-readable (colored in TTY). - `--json`: machine-readable JSON (no styling/spinner). - `--no-color` (or `NO\_COLOR=1`): disable ANSI while keeping human layout. Shared options (where supported): - `--url `: Gateway WebSocket URL. - `--token `: Gateway token. - `--password `: Gateway password. - `--timeout `: timeout/budget (varies per command). - `--expect-final`: wait for a “final” response (agent calls). Note: when you set `--url`, the CLI does not fall back to config or environment credentials. Pass `--token` or `--password` explicitly. Missing explicit credentials is an error. ### `gateway health` ```bash openclaw gateway health --url ws://127.0.0.1:18789 ``` ### `gateway status` `gateway status` shows the Gateway service (launchd/systemd/schtasks) plus an optional RPC probe. ```bash openclaw gateway status openclaw gateway status --json ``` Options: - `--url `: override the probe URL. - `--token `: token auth for the probe. - `--password `: password auth for the probe. - `--timeout `: probe timeout (default `10000`). - `--no-probe`: skip the RPC probe (service-only view). - `--deep`: scan system-level services too. ### `gateway probe` `gateway probe` is the “debug everything” command. It always probes: - your configured remote gateway (if set), and - localhost (loopback) \*\*even if remote is configured\*\*. If multiple gateways are reachable, it prints all of them. Multiple gateways are supported when you use isolated profiles/ports (e.g., a rescue bot), but most installs still run a single gateway. ```bash openclaw gateway probe openclaw gateway probe --json ``` #### Remote over SSH (Mac app parity) The macOS app “Remote over SSH” mode uses a local port-forward so the remote gateway (which may be bound to loopback only) becomes reachable at `ws://127.0.0.1:`. CLI equivalent: ```bash openclaw gateway probe --ssh user@gateway-host ``` Options: - `--ssh `: `user@host` or `user@host:port` (port defaults to `22`). - `--ssh-identity `: identity file. - `--ssh-auto`: pick the first discovered gateway host as SSH target (LAN/WAB only).
https://github.com/openclaw/openclaw/blob/main//docs/cli/gateway.md
main
opebclaw
[ -0.03598470613360405, -0.015772297978401184, -0.07790999859571457, 0.0080315126106143, -0.006112821865826845, -0.10237094759941101, -0.051705654710531235, -0.0005905325524508953, 0.037565525621175766, -0.041384175419807434, 0.02188923768699169, 0.001066827797330916, -0.027422618120908737, -0.018557233735919, 0.07708370685577393, 0.076087586581707, 0.04182743653655052, -0.0821506455540657, 0.05811726674437523, -0.07265911996364594, -0.02658178098499775, 0.027485733851790428, 0.003314782865345478, -0.055472519248723984, -0.06635113805532455, -0.08329058438539505, -0.004923787899315357, -0.006643312983214855, -0.0012363203568384051, 0.015263518318533897, 0.033652164041996, 0.008457332849502563, -0.09693049639463425, -0.024762451648712158, 0.0332358293235302, 0.06749162077903748, 0.05087178573012352, 0.024841608479619026, -0.044134993106126785, -0.014843183569610119, 0.1629006713628769, 0.0016530209686607122, -0.017231782898306847, -0.08479233831167221, -0.0274478979408741, -0.0735716000199318, -0.09971190243959427, -0.080118328332901, -0.04478143900632858, 0.017968613654375076, -0.05731465667486191, -0.03853997588157654, 0.025748450309038162, -0.012386852875351906, 0.009048103354871273, 0.04123084247112274, 0.009020183235406876, 0.03416828438639641, 0.11165199428796768, -0.08109302818775177, -0.018381305038928986, -0.010450570844113827, -0.019343353807926178, 0.005874060560017824, -0.11205979436635971, -0.0486656129360199, 0.0003956777509301901, -0.07297302782535553, 0.004567859694361687, 0.013115367852151394, 0.014361743815243244, 0.0540667399764061, -0.05190734192728996, -0.008458766154944897, 0.007897624745965004, 0.02450367622077465, 0.01928507164120674, -0.015778798609972, -0.024963021278381348, -0.029394762590527534, -0.0307538490742445, 0.03227247670292854, -0.09317563474178314, 0.07194516807794571, 0.0020181459840387106, 0.08004758507013321, -0.0183840524405241, 0.011203696951270103, 0.04850542172789574, 0.00453795213252306, -0.06483759731054306, -0.07840675115585327, -0.07615545392036438, 0.007424789946526289, -0.03379026800394058, -0.014980443753302097, 0.04413846135139465, 0.010578466579318047, -0.053895991295576096, 0.053226668387651443, -0.04118487983942032, 0.01939775049686432, 0.048999764025211334, 0.022782692685723305, -0.043555472046136856, 0.05247892811894417, 0.022964196279644966, 0.09761910885572433, 0.07610451430082321, 0.022996719926595688, -0.004897641018033028, -0.015476143918931484, 0.12710779905319214, -0.029779918491840363, -0.03948390111327171, 0.06794039160013199, 0.0011528006289154291, 0.0004538243811111897, 0.03318225219845772, 0.06267772614955902, 0.06880892813205719, 0.01160680502653122, -0.013259817846119404, -0.004515941254794598, 0.07843572646379471, 0.02846190147101879, 0.05028868094086647, 4.8285711653750024e-33, 0.06948765367269516, -0.08090665936470032, -0.029768992215394974, 0.0332883857190609, 0.16629722714424133, -0.03353440761566162, 0.04566873237490654, -0.012771405279636383, -0.07382184267044067, 0.06082550063729286, 0.023144228383898735, -0.021874265745282173, -0.03776022419333458, -0.003805059241130948, 0.039597827941179276, -0.0021325217094272375, -0.0011520454427227378, -0.04333055019378662, 0.0868132933974266, -0.030354423448443413, 0.06121519207954407, -0.15406271815299988, -0.03752731904387474, 0.05218930542469025, -0.011613178998231888, 0.007975749671459198, -0.02556554041802883, 0.06130000203847885, -0.0008630534284748137, 0.044632166624069214, 0.049630917608737946, 0.05291200429201126, -0.05224506929516792, -0.009319125674664974, -0.05849086865782738, -0.03409237787127495, -0.05197283625602722, -0.009322377853095531, -0.05625643581151962, 0.030289916321635246, -0.02741803415119648, -0.004130891058593988, -0.06174984574317932, -0.07265467941761017, -0.010142051614820957, -0.11690680682659149, -0.11039617657661438, 0.08668790012598038, 0.10510702431201935, 0.049009330570697784, -0.07412877678871155, -0.033149633556604385, 0.031104082241654396, 0.012453434988856316, 0.02426360361278057, 0.030652690678834915, -0.057840049266815186, -0.03448192775249481, -0.020958399400115013, -0.014073540456593037, 0.02715105190873146, 0.042739372700452805, -0.043165285140275955, 0.0615542009472847, 0.0018395630177110434, 0.014948678202927113, 0.011251703836023808, 0.028113195672631264, -0.0457337461411953, -0.023745182901620865, -0.008322230540215969, 0.028816048055887222, -0.04711582884192467, 0.05265582352876663, 0.01290976069867611, -0.0018324189586564898, 0.010097424499690533, -0.008741878904402256, 0.058717239648103714, 0.024745678529143333, 0.05609564855694771, 0.015035483054816723, -0.03406238928437233, 0.04876221716403961, 0.006962719839066267, 0.045373715460300446, 0.05904011055827141, -0.014601528644561768, -0.012762079015374184, 0.08223484456539154, -0.03369729220867157, 0.003941717091947794, 0.0452289953827858, 0.05965331941843033, -0.1096290573477745, -6.395021345627351e-33, -0.024519048631191254, 0.0464533232152462, 0.02153976447880268, -0.014625062234699726, -0.01618061028420925, -0.02034924365580082, 0.010978017002344131, -0.03920765593647957, -0.051217831671237946, -0.029723457992076874, -0.007595781236886978, 0.07628142833709717, 0.02483377233147621, -0.031310778111219406, 0.026839284226298332, -0.028640953823924065, 0.008432385511696339, -0.038271721452474594, 0.027263937518000603, 0.05737628787755966, -0.03288315236568451, 0.02880358137190342, -0.0787186473608017, -0.058989640325307846, -0.003106846008449793, 0.01598093844950199, 0.056555844843387604, 0.08797798305749893, -0.1482193022966385, 0.00027131353272125125, 0.013181554153561592, 0.070354163646698, 0.011525522917509079, 0.01681629940867424, -0.01217492576688528, 0.04343033209443092, 0.012196538038551807, 0.01854063756763935, 0.03401017561554909, -0.025934865698218346, 0.11145570129156113, -0.01826227456331253, -0.04840286448597908, 0.02009647525846958, -0.008449813351035118, 0.024067295715212822, 0.02509099245071411, -0.07506091147661209, -0.11380046606063843, 0.007728154305368662, -0.038810912519693375, 0.029096929356455803, 0.061031993478536606, 0.056413087993860245, 0.018576474860310555, 0.09578435122966766, 0.07592502236366272, -0.013371404260396957, -0.02520783618092537, -0.09683781862258911, 0.03384895622730255, -0.03910892456769943, -0.07260762155056, 0.14404454827308655, 0.013119877316057682, -0.053054578602313995, -0.04574961960315704, 0.04719879850745201, 0.0011877111392095685, -0.057927899062633514, -0.05653272196650505, 0.017481260001659393, 0.053362876176834106, -0.010075286030769348, -0.011347124353051186, -0.051229074597358704, -0.011098312214016914, -0.05451902374625206, -0.028367646038532257, 0.008784165605902672, -0.02902495115995407, -0.038960229605436325, -0.028454072773456573, -0.09861647337675095, -0.01299581490457058, 0.014728152193129063, -0.049265991896390915, 0.09884443879127502, 0.0499122217297554, 0.08194888383150101, -0.07735536247491837, -0.010394912213087082, 0.005891328677535057, -0.011169428937137127, 0.04676351696252823, -5.679103765032778e-8, -0.03026439994573593, -0.029856940731406212, -0.13864102959632874, 0.04150097072124481, -0.04078606888651848, -0.0038915479090064764, 0.025777628645300865, -0.04574102535843849, -0.05634407699108124, 0.08228358626365662, 0.008512194268405437, 0.09156651049852371, -0.03632771596312523, 0.05003117769956589, -0.024866651743650436, 0.05337199941277504, 0.00856174249202013, -0.0044872937723994255, 0.014439774677157402, -0.06605525314807892, -0.04681587219238281, -0.015679223462939262, 0.0632939487695694, 0.0525103323161602, -0.0639461800456047, -0.053856443613767624, -0.021025286987423897, -0.04349382594227791, -0.06622658669948578, -0.0011334430892020464, -0.13029195368289948, 0.029543017968535423, 0.018870949745178223, 0.008036307990550995, -0.04948044568300247, 0.027036575600504875, -0.06662462651729584, 0.022713221609592438, 0.07431497424840927, -0.03502427414059639, 0.05049693211913109, 0.024086834862828255, -0.0658390149474144, -0.062058039009571075, -0.031490497291088104, 0.06906101107597351, -0.04318636655807495, 0.06353498995304108, 0.02237391099333763, 0.01816829852759838, -0.018006809055805206, -0.007179360371083021, 0.08411171287298203, -0.018582656979560852, 0.03744897618889809, 0.0672534927725792, 0.008622501976788044, -0.033500224351882935, -0.03779503330588341, -0.004131182562559843, 0.02215723879635334, 0.03415292128920555, 0.02469267137348652, -0.11426511406898499 ]
0.020828
gateway (which may be bound to loopback only) becomes reachable at `ws://127.0.0.1:`. CLI equivalent: ```bash openclaw gateway probe --ssh user@gateway-host ``` Options: - `--ssh `: `user@host` or `user@host:port` (port defaults to `22`). - `--ssh-identity `: identity file. - `--ssh-auto`: pick the first discovered gateway host as SSH target (LAN/WAB only). Config (optional, used as defaults): - `gateway.remote.sshTarget` - `gateway.remote.sshIdentity` ### `gateway call ` Low-level RPC helper. ```bash openclaw gateway call status openclaw gateway call logs.tail --params '{"sinceMs": 60000}' ``` ## Manage the Gateway service ```bash openclaw gateway install openclaw gateway start openclaw gateway stop openclaw gateway restart openclaw gateway uninstall ``` Notes: - `gateway install` supports `--port`, `--runtime`, `--token`, `--force`, `--json`. - Lifecycle commands accept `--json` for scripting. ## Discover gateways (Bonjour) `gateway discover` scans for Gateway beacons (`\_openclaw-gw.\_tcp`). - Multicast DNS-SD: `local.` - Unicast DNS-SD (Wide-Area Bonjour): choose a domain (example: `openclaw.internal.`) and set up split DNS + a DNS server; see [/gateway/bonjour](/gateway/bonjour) Only gateways with Bonjour discovery enabled (default) advertise the beacon. Wide-Area discovery records include (TXT): - `role` (gateway role hint) - `transport` (transport hint, e.g. `gateway`) - `gatewayPort` (WebSocket port, usually `18789`) - `sshPort` (SSH port; defaults to `22` if not present) - `tailnetDns` (MagicDNS hostname, when available) - `gatewayTls` / `gatewayTlsSha256` (TLS enabled + cert fingerprint) - `cliPath` (optional hint for remote installs) ### `gateway discover` ```bash openclaw gateway discover ``` Options: - `--timeout `: per-command timeout (browse/resolve); default `2000`. - `--json`: machine-readable output (also disables styling/spinner). Examples: ```bash openclaw gateway discover --timeout 4000 openclaw gateway discover --json | jq '.beacons[].wsUrl' ```
https://github.com/openclaw/openclaw/blob/main//docs/cli/gateway.md
main
opebclaw
[ 0.0024488293565809727, 0.02840842865407467, -0.12384253740310669, 0.09433984011411667, -0.007930472493171692, -0.027261778712272644, -0.026804707944393158, -0.033993467688560486, 0.017839623615145683, -0.026661479845643044, 0.02728673629462719, 0.008449706248939037, 0.02517186664044857, 0.013032198883593082, 0.015904800966382027, 0.05928948521614075, 0.010348651558160782, -0.08371909707784653, 0.05983041226863861, -0.06342975050210953, -0.04209486395120621, 0.04038051515817642, 0.03246340900659561, -0.09181402623653412, -0.02312404476106167, -0.07564832270145416, 0.00019496864115353674, 0.0014095284277573228, -0.01611221581697464, -0.002707693027332425, 0.02774616703391075, 0.01259150356054306, -0.09568750113248825, 0.007846691645681858, 0.0491979718208313, 0.05287003517150879, 0.12139253318309784, 0.09782304614782333, -0.012627710588276386, 0.03781991824507713, 0.11783799529075623, 0.016133764758706093, 0.04656129702925682, -0.09811301529407501, -0.03963453695178032, -0.058547113090753555, -0.08750350028276443, -0.05080584064126015, -0.008025764487683773, -0.025793123990297318, -0.04041612893342972, -0.032381050288677216, 0.026630418375134468, 0.06376025825738907, 0.05843556672334671, 0.05132245644927025, 0.0002025700086960569, 0.012381085194647312, 0.008428100496530533, -0.08672814071178436, -0.0663258507847786, -0.015395913273096085, -0.02765180543065071, -0.022861279547214508, -0.08925797790288925, -0.057876814156770706, -0.07798881083726883, -0.0520109124481678, 0.01627984270453453, 0.06190342456102371, -0.012285612523555756, 0.02284364588558674, -0.07581382989883423, -0.054164741188287735, 0.026191333308815956, 0.002022563014179468, 0.12387372553348541, 0.017803160473704338, -0.030619602650403976, 0.023837951943278313, -0.03691507503390312, -0.051976677030324936, -0.09273834526538849, 0.05152738094329834, -0.011036097072064877, 0.05905712768435478, -0.000008614169928478077, -0.009869897738099098, 0.06877401471138, -0.005323114804923534, -0.04037070646882057, -0.0960971862077713, -0.08008787781000137, 0.007327129598706961, 0.009187201038002968, -0.0039476193487644196, 0.01371023803949356, -0.026457415893673897, -0.06861168891191483, 0.007451317738741636, -0.010164408013224602, -0.03147660195827484, 0.07297012954950333, 0.014442993327975273, -0.01629352755844593, 0.060681961476802826, 0.04853448644280434, 0.08494191616773605, 0.00983673520386219, -0.050257936120033264, 0.011610622517764568, -0.01591053046286106, 0.137961745262146, 0.06311637908220291, 0.018070444464683533, 0.02446240372955799, 0.05188232660293579, 0.011056800372898579, -0.036364417523145676, 0.0419958122074604, 0.012096521444618702, 0.09059782326221466, 0.024258499965071678, 0.007755116559565067, 0.007305365055799484, 0.06555589288473129, 0.04643541947007179, 8.482775719820537e-33, 0.11215656995773315, -0.009646991267800331, -0.025932665914297104, -0.05837108567357063, 0.1643243134021759, -0.00024301705707330257, 0.05470677837729454, -0.05559578537940979, -0.05102831497788429, 0.050068434327840805, 0.0013251679483801126, -0.015920305624604225, -0.01019794587045908, -0.08109821379184723, -0.04229098558425903, 0.00386124849319458, 0.028219498693943024, 0.01058830413967371, 0.06642575562000275, 0.043678950518369675, -0.014552616514265537, -0.11528922617435455, 0.0222528837621212, -0.016449330374598503, -0.008730916306376457, -0.04723251983523369, 0.011919576674699783, -0.03013172745704651, -0.03292692452669144, 0.01515345647931099, 0.03297894448041916, 0.03419908881187439, -0.09484732151031494, -0.030165787786245346, -0.1140710785984993, -0.01668187603354454, -0.056347813457250595, -0.03925539180636406, -0.03970526158809662, 0.014372349716722965, -0.041231557726860046, -0.011278928257524967, -0.04055757075548172, 0.03442343324422836, -0.020218973979353905, -0.10860748589038849, -0.03610482066869736, 0.06844988465309143, 0.06582658737897873, 0.12884379923343658, -0.11661096662282944, -0.005886908154934645, 0.030906302854418755, -0.009057180024683475, -0.013247860595583916, -0.04003826901316643, -0.03532874584197998, 0.004624395165592432, -0.011782297864556313, 0.05893871560692787, -0.014459428377449512, 0.003261575708165765, -0.07623961567878723, 0.00893127266317606, 0.006472182925790548, -0.0025376437697559595, -0.03277786448597908, 0.0036839016247540712, -0.03673378378152847, 0.03312334045767784, -0.002933234442025423, -0.013276382349431515, -0.00237644393928349, 0.09741374105215073, 0.016908656805753708, -0.033698633313179016, -0.01686561293900013, -0.03936347737908363, 0.14958429336547852, -0.025324765592813492, 0.029618574306368828, 0.09543343633413315, -0.033722586929798126, 0.00772087462246418, -0.00311490660533309, 0.04762230068445206, 0.022951265797019005, -0.09187252819538116, -0.017660729587078094, 0.018094699829816818, -0.05838821455836296, 0.026401318609714508, 0.04261080175638199, -0.027479073032736778, -0.09635274112224579, -9.308251199322134e-33, -0.008992673829197884, -0.004049376584589481, -0.013011261820793152, -0.0035692795645445585, -0.024538883939385414, -0.0012107780203223228, 0.02743171900510788, -0.010209359228610992, -0.05559343844652176, -0.0378827340900898, 0.027274010702967644, 0.07295955717563629, 0.03453065827488899, -0.055438488721847534, 0.068684883415699, -0.04722066596150398, 0.01666169986128807, 0.0060901218093931675, 0.02975355088710785, 0.0019456751178950071, -0.0023846435360610485, 0.05811813846230507, -0.024948684498667717, -0.025357481092214584, -0.03693734481930733, 0.028033779934048653, 0.01852777600288391, 0.0720577985048294, -0.06629211455583572, -0.0640077143907547, 0.004028964322060347, 0.02760140784084797, -0.007538565434515476, 0.016778843477368355, -0.02516833133995533, 0.06583495438098907, -0.032724276185035706, 0.03510655090212822, 0.03368254750967026, 0.00995608326047659, 0.06891413033008575, -0.0013878591125831008, -0.07106270641088486, 0.05378738418221474, -0.025347165763378143, 0.08440984040498734, 0.0018935403786599636, 0.004552192520350218, -0.05346735194325447, -0.02368827536702156, -0.07768707722425461, -0.025221703574061394, 0.047998763620853424, 0.13399051129817963, 0.010217735543847084, 0.09589552134275436, -0.008280509151518345, -0.017847780138254166, -0.0215382669121027, -0.06574879586696625, 0.05395420268177986, -0.04787316545844078, -0.07396706193685532, 0.10757734626531601, -0.007497293874621391, -0.013254573568701744, 0.0008426748681813478, 0.02863195724785328, 0.03775189071893692, -0.04820755124092102, -0.051403529942035675, 0.002990106586366892, 0.07218629121780396, -0.019455811008810997, 0.017081905156373978, 0.008973965421319008, -0.01977500505745411, -0.04015595465898514, -0.04568533971905708, -0.026602324098348618, -0.01130101177841425, 0.02001342736184597, -0.06867408007383347, -0.11595994234085083, 0.054305508732795715, -0.009353185072541237, -0.054048534482717514, 0.07426375895738602, 0.05052804946899414, 0.08049837499856949, -0.08492127060890198, -0.040809690952301025, -0.046297263354063034, 0.011331451125442982, 0.058533914387226105, -5.75843301930945e-8, 0.028635352849960327, -0.022020280361175537, -0.07320848107337952, 0.019269457086920738, -0.04094739258289337, 0.028366735205054283, 0.04301704838871956, -0.0859062671661377, -0.07650846987962723, 0.05068729817867279, -0.03570358455181122, 0.00768642732873559, 0.017971206456422806, 0.03979448229074478, -0.028073875233530998, 0.07880474627017975, 0.03801171854138374, -0.024360112845897675, 0.028181325644254684, -0.026103399693965912, -0.0603286437690258, -0.046840257942676544, -0.006348086055368185, 0.11232510954141617, -0.09108106046915054, 0.031411249190568924, -0.020745860412716866, -0.027337342500686646, -0.10862936824560165, 0.0009054464753717184, -0.022510763257741928, 0.02267291396856308, -0.00650410819798708, 0.07737307250499725, -0.05861349403858185, 0.03906217962503433, -0.08918239921331406, 0.030814943835139275, 0.007935206405818462, 0.04666483774781227, -0.016307076439261436, 0.031275875866413116, -0.028588291257619858, -0.017082110047340393, -0.00483887642621994, 0.006029366981238127, -0.07880660891532898, 0.006478514056652784, -0.009843526408076286, -0.04087240248918533, -0.006519724149256945, -0.03613562136888504, 0.07237817347049713, -0.0006526040961034596, 0.06927353143692017, 0.09457951039075851, -0.02606920152902603, -0.12582923471927643, -0.028765413910150528, 0.07497850060462952, 0.035931166261434555, 0.05179281160235405, 0.007093370426446199, -0.07534889131784439 ]
-0.037462
# `openclaw voicecall` `voicecall` is a plugin-provided command. It only appears if the voice-call plugin is installed and enabled. Primary doc: - Voice-call plugin: [Voice Call](/plugins/voice-call) ## Common commands ```bash openclaw voicecall status --call-id openclaw voicecall call --to "+15555550123" --message "Hello" --mode notify openclaw voicecall continue --call-id --message "Any questions?" openclaw voicecall end --call-id ``` ## Exposing webhooks (Tailscale) ```bash openclaw voicecall expose --mode serve openclaw voicecall expose --mode funnel openclaw voicecall unexpose ``` Security note: only expose the webhook endpoint to networks you trust. Prefer Tailscale Serve over Funnel when possible.
https://github.com/openclaw/openclaw/blob/main//docs/cli/voicecall.md
main
opebclaw
[ -0.06969200074672699, -0.011259294115006924, -0.06735604256391525, -0.012637577950954437, -0.05695293843746185, -0.07254082709550858, 0.0030612838454544544, -0.04454153776168823, 0.05309267342090607, -0.07952487468719482, 0.022055724635720253, -0.06798531115055084, -0.029393956065177917, -0.027775980532169342, 0.039363134652376175, 0.004856215324252844, 0.03143377974629402, -0.060612987726926804, -0.03023355081677437, -0.06069198250770569, 0.06348756700754166, 0.10200691223144531, -0.011707589030265808, -0.027710072696208954, 0.004281730856746435, -0.05595332384109497, -0.05298090726137161, 0.034925129264593124, -0.00875211600214243, -0.017087921500205994, 0.09891811013221741, 0.057383742183446884, 0.04585525020956993, -0.007023680489510298, -0.009341803379356861, 0.03700023144483566, 0.043643370270729065, -0.0025323783047497272, -0.04877687990665436, -0.03246426582336426, 0.07669087499380112, -0.06134209409356117, -0.03040238842368126, -0.029963353648781776, -0.10092823207378387, -0.13006934523582458, -0.14006568491458893, -0.04648016020655632, -0.009210365824401379, 0.016598010435700417, -0.014823943376541138, -0.06613436341285706, 0.0036418188828974962, 0.029040027409791946, -0.004784104879945517, 0.02570990100502968, 0.010269205085933208, 0.02086298167705536, 0.05202767625451088, -0.008991635404527187, -0.0066436282359063625, -0.017015134915709496, -0.05157947912812233, 0.04389313608407974, -0.12252788245677948, 0.04845791682600975, -0.09387857466936111, -0.07307212799787521, -0.012147817760705948, 0.013008239679038525, -0.06666233390569687, -0.02322886884212494, 0.035264886915683746, -0.006520270835608244, 0.019402051344513893, -0.019439125433564186, 0.03435073792934418, -0.05738896504044533, -0.028339235112071037, -0.017416728660464287, -0.0005295692244544625, -0.05216231197118759, 0.011814810335636139, 0.031162884086370468, 0.047874968498945236, 0.12590892612934113, -0.0048703090287745, -0.0036225970834493637, -0.010131163522601128, -0.018811598420143127, -0.07500167191028595, -0.06888686120510101, -0.07328692823648453, -0.02513577975332737, -0.040884945541620255, 0.0018204421503469348, -0.08776801824569702, -0.015252292156219482, -0.03524687513709068, 0.09139104187488556, -0.042123425751924515, -0.0540153905749321, 0.00365071720443666, -0.07183794677257538, -0.04085736721754074, -0.03423326835036278, -0.0500137098133564, 0.06051456555724144, 0.05446851626038551, 0.03245335817337036, -0.019380128011107445, -0.0498618446290493, 0.07930740714073181, -0.047798022627830505, -0.01567775011062622, 0.024838823825120926, 0.01003436092287302, -0.021076396107673645, 0.12093684077262878, 0.04078594595193863, 0.07701396197080612, 0.09366772323846817, 0.01391836442053318, -0.02073873206973076, 0.08685853332281113, 0.06992482393980026, 0.09659390896558762, 4.758201665430965e-33, 0.0750281810760498, -0.023174168542027473, 0.00116924534086138, -0.03203743323683739, 0.10622810572385788, 0.03225152567028999, 0.031173914670944214, -0.019539207220077515, -0.030043844133615494, 0.028575485572218895, 0.06916998326778412, 0.052627578377723694, -0.02714025415480137, -0.025658641010522842, 0.0036009768955409527, 0.01811113767325878, 0.009161918424069881, -0.0031846913043409586, 0.035258594900369644, -0.08489725738763809, 0.050952423363924026, -0.031676825135946274, -0.014708093367516994, 0.017072340473532677, 0.10396555811166763, 0.00658813351765275, -0.022640421986579895, -0.017199229449033737, 0.042330168187618256, 0.05221807211637497, 0.010822287760674953, -0.013047805987298489, -0.026873508468270302, 0.011347091756761074, -0.0038781275507062674, 0.06462842226028442, -0.10822524130344391, -0.03118237853050232, -0.045033056288957596, -0.0948549434542656, 0.021479781717061996, -0.020199526101350784, -0.10600782930850983, -0.011571123264729977, -0.04069172218441963, -0.08350957185029984, -0.09425713121891022, 0.03746575862169266, 0.06220237538218498, 0.009454354643821716, 0.007331378757953644, -0.015121620148420334, 0.06804969906806946, -0.0018662820803001523, 0.029537281021475792, -0.02893081307411194, 0.0460822656750679, -0.01789458468556404, 0.01628793217241764, -0.01891287788748741, 0.015215354040265083, -0.007061133161187172, 0.013833153061568737, -0.009031111374497414, 0.041896503418684006, -0.02321014367043972, -0.024103889241814613, 0.028056848794221878, -0.055191200226545334, -0.0025835130363702774, -0.022762488573789597, 0.011991536244750023, 0.08006133884191513, 0.06295718252658844, -0.076290562748909, 0.0076680309139192104, 0.006257709581404924, 0.02155638299882412, 0.0597151480615139, 0.03729548305273056, 0.06586457043886185, -0.06432238966226578, -0.017944946885108948, 0.009886860847473145, 0.07889097929000854, -0.017455097287893295, 0.010237419977784157, -0.10837988555431366, -0.02564091794192791, 0.11935064196586609, -0.0805412009358406, -0.004124313127249479, -0.10281980782747269, 0.014266662299633026, -0.08021329343318939, -6.975475313275612e-33, -0.0516110435128212, 0.08528473973274231, -0.02606850303709507, 0.04596985876560211, -0.05583115294575691, -0.013144680298864841, 0.06253141909837723, -0.009206907823681831, -0.024286793544888496, -0.05334712937474251, 0.01565452106297016, 0.09025055170059204, 0.06395731121301651, -0.03905554488301277, 0.11075697094202042, 0.007963130250573158, -0.024856440722942352, -0.09709221124649048, 0.02712716907262802, 0.023827651515603065, -0.015105489641427994, 0.027902668341994286, 0.007536092307418585, 0.08238773792982101, 0.039327047765254974, -0.08114222437143326, 0.021898111328482628, 0.04969896748661995, 0.01007081102579832, -0.036155231297016144, -0.03575458005070686, 0.015980061143636703, -0.03519393503665924, 0.013076819479465485, -0.025567907840013504, 0.042193710803985596, 0.008687580935657024, 0.08545904606580734, 0.053276948630809784, -0.05514007806777954, 0.07700274884700775, -0.049689531326293945, -0.02735975757241249, -0.03117656707763672, -0.04766092449426651, 0.015994947403669357, 0.012028192169964314, -0.00459449365735054, -0.13828669488430023, -0.03808354586362839, -0.008523798547685146, 0.04535052552819252, 0.03644273430109024, 0.09442771226167679, -0.04781488701701164, 0.09426327049732208, 0.08479414135217667, -0.06875990331172943, -0.020481444895267487, -0.0838702917098999, 0.04964957386255264, -0.05759989470243454, -0.054969362914562225, 0.02079549990594387, 0.012717767618596554, -0.022483889013528824, -0.06072430685162544, -0.04036867991089821, 0.009751874953508377, -0.024934137240052223, 0.0010615630308166146, 0.0017143634613603354, 0.03548433631658554, -0.060506775975227356, -0.04155575856566429, 0.03454084321856499, -0.03220338746905327, -0.07000438868999481, -0.06101318821310997, 0.024691253900527954, 0.02190309949219227, 0.04191618412733078, 0.06822961568832397, -0.06293082982301712, 0.014373826794326305, 0.023500053212046623, -0.00903540849685669, 0.1039206013083458, 0.049867819994688034, 0.04565928503870964, -0.07927891612052917, 0.09627460688352585, -0.06460146605968475, 0.031577326357364655, -0.023371735587716103, -5.043417061756372e-8, -0.06581782549619675, -0.03240125626325607, 0.032337818294763565, -0.029345296323299408, 0.016993599012494087, -0.04960450530052185, 0.07848953455686569, -0.044307444244623184, -0.046214405447244644, -0.0031267472077161074, 0.06854843348264694, 0.006118765100836754, 0.004131386522203684, 0.06284833699464798, -0.002766004763543606, 0.03673006221652031, 0.04018353670835495, 0.023262759670615196, 0.006442782003432512, -0.06795627623796463, -0.04605225473642349, 0.017542583867907524, 0.055033933371305466, 0.03679763898253441, -0.03495648503303528, -0.039201851934194565, -0.052391067147254944, 0.09928417950868607, -0.04235479235649109, 0.01473790779709816, -0.0028408800717443228, 0.02501673251390457, -0.043936051428318024, 0.004251870326697826, -0.07871752977371216, 0.05803414434194565, -0.13292191922664642, 0.026524819433689117, -0.0038954117335379124, -0.03139197453856468, 0.04494057968258858, 0.013902216218411922, -0.05306655168533325, 0.016231708228588104, -0.038155097514390945, 0.05636179819703102, 0.03657323494553566, -0.04242768883705139, 0.06980539113283157, -0.009706227108836174, -0.02522684447467327, 0.021658871322870255, 0.08060746639966965, 0.007417111191898584, -0.010583649389445782, 0.09820003062486649, 0.07918518036603928, -0.04164694994688034, 0.03892763331532478, 0.08105240762233734, -0.0528949610888958, -0.030738063156604767, 0.05231453478336334, 0.04117310047149658 ]
0.118073
# `openclaw message` Single outbound command for sending messages and channel actions (Discord/Google Chat/Slack/Mattermost (plugin)/Telegram/WhatsApp/Signal/iMessage/MS Teams). ## Usage ``` openclaw message [flags] ``` Channel selection: - `--channel` required if more than one channel is configured. - If exactly one channel is configured, it becomes the default. - Values: `whatsapp|telegram|discord|googlechat|slack|mattermost|signal|imessage|msteams` (Mattermost requires plugin) Target formats (`--target`): - WhatsApp: E.164 or group JID - Telegram: chat id or `@username` - Discord: `channel:` or `user:` (or `<@id>` mention; raw numeric ids are treated as channels) - Google Chat: `spaces/` or `users/` - Slack: `channel:` or `user:` (raw channel id is accepted) - Mattermost (plugin): `channel:`, `user:`, or `@username` (bare ids are treated as channels) - Signal: `+E.164`, `group:`, `signal:+E.164`, `signal:group:`, or `username:`/`u:` - iMessage: handle, `chat\_id:`, `chat\_guid:`, or `chat\_identifier:` - MS Teams: conversation id (`19:...@thread.tacv2`) or `conversation:` or `user:` Name lookup: - For supported providers (Discord/Slack/etc), channel names like `Help` or `#help` are resolved via the directory cache. - On cache miss, OpenClaw will attempt a live directory lookup when the provider supports it. ## Common flags - `--channel ` - `--account ` - `--target ` (target channel or user for send/poll/read/etc) - `--targets ` (repeat; broadcast only) - `--json` - `--dry-run` - `--verbose` ## Actions ### Core - `send` - Channels: WhatsApp/Telegram/Discord/Google Chat/Slack/Mattermost (plugin)/Signal/iMessage/MS Teams - Required: `--target`, plus `--message` or `--media` - Optional: `--media`, `--reply-to`, `--thread-id`, `--gif-playback` - Telegram only: `--buttons` (requires `channels.telegram.capabilities.inlineButtons` to allow it) - Telegram only: `--thread-id` (forum topic id) - Slack only: `--thread-id` (thread timestamp; `--reply-to` uses the same field) - WhatsApp only: `--gif-playback` - `poll` - Channels: WhatsApp/Discord/MS Teams - Required: `--target`, `--poll-question`, `--poll-option` (repeat) - Optional: `--poll-multi` - Discord only: `--poll-duration-hours`, `--message` - `react` - Channels: Discord/Google Chat/Slack/Telegram/WhatsApp/Signal - Required: `--message-id`, `--target` - Optional: `--emoji`, `--remove`, `--participant`, `--from-me`, `--target-author`, `--target-author-uuid` - Note: `--remove` requires `--emoji` (omit `--emoji` to clear own reactions where supported; see /tools/reactions) - WhatsApp only: `--participant`, `--from-me` - Signal group reactions: `--target-author` or `--target-author-uuid` required - `reactions` - Channels: Discord/Google Chat/Slack - Required: `--message-id`, `--target` - Optional: `--limit` - `read` - Channels: Discord/Slack - Required: `--target` - Optional: `--limit`, `--before`, `--after` - Discord only: `--around` - `edit` - Channels: Discord/Slack - Required: `--message-id`, `--message`, `--target` - `delete` - Channels: Discord/Slack/Telegram - Required: `--message-id`, `--target` - `pin` / `unpin` - Channels: Discord/Slack - Required: `--message-id`, `--target` - `pins` (list) - Channels: Discord/Slack - Required: `--target` - `permissions` - Channels: Discord - Required: `--target` - `search` - Channels: Discord - Required: `--guild-id`, `--query` - Optional: `--channel-id`, `--channel-ids` (repeat), `--author-id`, `--author-ids` (repeat), `--limit` ### Threads - `thread create` - Channels: Discord - Required: `--thread-name`, `--target` (channel id) - Optional: `--message-id`, `--auto-archive-min` - `thread list` - Channels: Discord - Required: `--guild-id` - Optional: `--channel-id`, `--include-archived`, `--before`, `--limit` - `thread reply` - Channels: Discord - Required: `--target` (thread id), `--message` - Optional: `--media`, `--reply-to` ### Emojis - `emoji list` - Discord: `--guild-id` - Slack: no extra flags - `emoji upload` - Channels: Discord - Required: `--guild-id`, `--emoji-name`, `--media` - Optional: `--role-ids` (repeat) ### Stickers - `sticker send` - Channels: Discord - Required: `--target`, `--sticker-id` (repeat) - Optional: `--message` - `sticker upload` - Channels: Discord - Required: `--guild-id`, `--sticker-name`, `--sticker-desc`, `--sticker-tags`, `--media` ### Roles / Channels / Members / Voice - `role info` (Discord): `--guild-id` - `role add` / `role remove` (Discord): `--guild-id`, `--user-id`, `--role-id` - `channel info` (Discord): `--target` - `channel list` (Discord): `--guild-id` - `member info` (Discord/Slack): `--user-id` (+ `--guild-id` for Discord) - `voice status` (Discord): `--guild-id`, `--user-id` ### Events - `event list` (Discord): `--guild-id` - `event create` (Discord): `--guild-id`, `--event-name`, `--start-time` - Optional: `--end-time`, `--desc`, `--channel-id`, `--location`, `--event-type` ### Moderation (Discord) - `timeout`: `--guild-id`, `--user-id`
https://github.com/openclaw/openclaw/blob/main//docs/cli/message.md
main
opebclaw
[ -0.019742876291275024, -0.09663208574056625, 0.0063693588599562645, 0.008645470254123211, -0.014049249701201916, -0.05739450082182884, 0.01984146609902382, 0.004844209179282188, 0.03677627444267273, 0.04246983677148819, 0.0162651464343071, -0.07412472367286682, -0.0018776077777147293, 0.07476338744163513, 0.13488620519638062, 0.010363738983869553, 0.05936099961400032, -0.17425137758255005, -0.05188373476266861, -0.046975184231996536, 0.060203537344932556, 0.0663842186331749, 0.039470456540584564, -0.010243955999612808, -0.012531253509223461, -0.1513599008321762, -0.020965902134776115, 0.026388000696897507, -0.002405985491350293, -0.02875739522278309, 0.03811182826757431, 0.0408346951007843, 0.03702106699347496, 0.06941229104995728, 0.018235694617033005, 0.06401973962783813, 0.043427545577287674, 0.008293167687952518, -0.005395262036472559, 0.05006001517176628, -0.011507555842399597, -0.05126316472887993, -0.05162204056978226, -0.011653069406747818, 0.023157905787229538, -0.05731557309627533, -0.025530580431222916, -0.03563486784696579, -0.02117655798792839, 0.037143025547266006, 0.013604526408016682, -0.0350843220949173, -0.013728886842727661, 0.13780942559242249, 0.035933878272771835, 0.04140283539891243, -0.13983416557312012, 0.0981425791978836, 0.07480969280004501, -0.053174182772636414, -0.011395364068448544, -0.052177440375089645, 0.002088558627292514, -0.019411437213420868, -0.11311569809913635, 0.000026259107471560128, 0.006458865944296122, 0.026673363521695137, -0.0571923591196537, 0.0041441242210567, -0.007353928871452808, -0.023375658318400383, -0.06872981786727905, -0.024666965007781982, 0.021591469645500183, -0.02165631204843521, 0.028496216982603073, 0.03772629797458649, -0.08323872089385986, -0.0396193265914917, -0.03142358362674713, -0.02373470924794674, -0.07417446374893188, 0.01865321770310402, -0.019401157274842262, 0.07543252408504486, -0.024982372298836708, 0.009502099826931953, 0.021242979913949966, 0.03399066627025604, -0.054151494055986404, -0.02742672525346279, -0.017652802169322968, 0.06843367964029312, -0.01682964526116848, 0.042386822402477264, -0.054618872702121735, 0.05838892236351967, -0.019876990467309952, 0.04439909756183624, 0.021587727591395378, -0.02458770200610161, -0.006468750536441803, -0.01623985730111599, 0.01261928491294384, -0.013270513154566288, -0.014622705057263374, 0.03281752020120621, 0.08641824871301651, 0.011606074869632721, -0.0411183200776577, 0.01238204911351204, 0.054160382598638535, 0.000670735607855022, 0.019489673897624016, 0.05730544030666351, 0.030897511169314384, 0.04096648842096329, 0.055369529873132706, 0.0019052143907174468, 0.07643145322799683, -0.0681011974811554, -0.008573594503104687, 0.0826278105378151, -0.03043265827000141, 0.08656469732522964, 0.05824674293398857, 6.821908731284188e-33, 0.08886351436376572, -0.03698046877980232, -0.03882824257016182, 0.044103242456912994, 0.00180337845813483, 0.05175624042749405, -0.048462752252817154, -0.006286597345024347, -0.08781439065933228, 0.014179139398038387, -0.06268071383237839, -0.0218306016176939, -0.025840550661087036, 0.011210381984710693, -0.0008026811410672963, 0.006113976240158081, -0.0362834669649601, -0.024602046236395836, 0.05106334760785103, -0.05647562816739082, -0.055352430790662766, 0.02424784190952778, -0.09038692712783813, 0.011987868696451187, 0.03244703635573387, 0.08975550532341003, 0.04002459719777107, -0.08316032588481903, 0.016409272328019142, 0.011435272172093391, 0.013571220450103283, -0.005877592600882053, -0.007817234843969345, 0.03651147335767746, 0.0019060121849179268, 0.010147323831915855, -0.125344380736351, 0.03836166858673096, -0.07957262545824051, -0.021786782890558243, 0.029160644859075546, -0.011929980479180813, -0.09054737538099289, -0.0846184566617012, 0.04903145506978035, -0.08609207719564438, -0.03303674980998039, 0.006926522124558687, 0.0766918957233429, 0.02865603193640709, 0.00890941172838211, 0.011441273614764214, 0.03858188912272453, 0.02492874674499035, 0.056541070342063904, -0.0580301396548748, -0.0277676060795784, 0.010241592302918434, -0.025805877521634102, -0.02131207473576069, -0.04192586988210678, -0.03154116868972778, 0.007488579954952002, 0.026551708579063416, 0.06009568274021149, 0.0300265122205019, -0.048217255622148514, 0.010979507118463516, -0.006442456040531397, -0.03225883096456528, -0.08190097659826279, -0.016743125393986702, -0.033468205481767654, 0.08254313468933105, -0.09367550164461136, -0.030848948284983635, -0.0011363965459167957, 0.03660258650779724, 0.042429566383361816, 0.013566439040005207, -0.03427033871412277, 0.006426505744457245, -0.07544074207544327, -0.017610594630241394, 0.017729924991726875, 0.040268510580062866, 0.05373554304242134, -0.10115000605583191, -0.03698298707604408, 0.08577277511358261, -0.15370064973831177, 0.08859646320343018, -0.004860365763306618, 0.07164035737514496, -0.02780304104089737, -8.171283675848047e-33, -0.021870972588658333, 0.07759692519903183, -0.02796165645122528, 0.04101893678307533, 0.014469832181930542, -0.03207726404070854, 0.10020805150270462, -0.05237860977649689, 0.03951752185821533, 0.03278009966015816, -0.05965224653482437, -0.03346540406346321, -0.0013056081952527165, -0.049565140157938004, 0.04168016463518143, 0.007974830456078053, -0.05597488209605217, -0.09201239794492722, -0.03925357013940811, -0.0010055910097435117, -0.05056602135300636, -0.013467841781675816, -0.01360342837870121, 0.0744875818490982, 0.04623992741107941, 0.002834622748196125, 0.08518818020820618, 0.03636341914534569, -0.018000692129135132, -0.09844036400318146, 0.03751140460371971, 0.013179848901927471, -0.06416038423776627, 0.003493695752695203, -0.008237599395215511, -0.03530832380056381, 0.06973579525947571, 0.1073833480477333, 0.01648341305553913, -0.02890647016465664, 0.08431961387395859, 0.02012534998357296, -0.07911766320466995, 0.0395277664065361, -0.05751459300518036, 0.10857175290584564, -0.004753069952130318, -0.03969941288232803, -0.1616215854883194, 0.05184584856033325, 0.05807582288980484, -0.03130050748586655, 0.06546416878700256, 0.015560159459710121, 0.016911722719669342, 0.02811410278081894, 0.04623422399163246, 0.014511290937662125, -0.007056196685880423, -0.09522739797830582, 0.056441109627485275, -0.10331864655017853, 0.021128399297595024, -0.006726773921400309, 0.03743409737944603, -0.043706949800252914, 0.006501488387584686, 0.04053136333823204, -0.06709877401590347, 0.0021077345591038465, 0.009400004521012306, -0.08606549352407455, -0.009250967763364315, -0.0620490238070488, 0.039913978427648544, 0.009010874666273594, -0.0656474307179451, -0.12265942990779877, -0.029517410323023796, 0.06377685815095901, -0.019310040399432182, 0.05774591863155365, 0.028364751487970352, -0.005633386317640543, -0.036950983107089996, 0.05646912381052971, 0.04798652231693268, 0.14890901744365692, 0.016841335222125053, -0.010709132999181747, -0.05052442103624344, 0.015295235440135002, 0.039184413850307465, -0.02474401891231537, -0.0012717180652543902, -5.098496558275656e-8, -0.05560702830553055, -0.0695040225982666, -0.08281516283750534, -0.017764026299118996, -0.013203058391809464, -0.007908831350505352, -0.024508005008101463, -0.02186490409076214, 0.03976963460445404, -0.020563004538416862, 0.002252895850688219, 0.04036811739206314, -0.0699257031083107, 0.03580551594495773, -0.0061727650463581085, -0.06406161189079285, -0.1073497086763382, -0.05194581672549248, 0.013050711713731289, -0.0405343659222126, 0.01644761674106121, -0.00854051299393177, -0.0535297766327858, 0.05623148754239082, -0.021481439471244812, -0.06563378870487213, -0.0021352677140384912, 0.08876519650220871, -0.07841736078262329, -0.02890508994460106, 0.0026108529418706894, -0.035710956901311874, 0.04900642856955528, -0.03079116716980934, -0.05903720483183861, 0.01007197517901659, -0.04215797409415245, -0.027656974270939827, 0.037380512803792953, 0.06523687392473221, 0.0919167697429657, -0.03448683023452759, 0.006092455703765154, -0.04411257803440094, -0.06301473081111908, 0.004208825994282961, 0.01554473489522934, -0.021925808861851692, 0.009214182384312153, 0.029652563855051994, -0.01908322051167488, -0.00765868928283453, 0.03151123970746994, 0.03884236887097359, 0.014339863322675228, 0.03232589364051819, 0.06033416464924812, -0.028751205652952194, 0.035208992660045624, -0.012388205155730247, 0.012062225490808487, 0.09029504656791687, -0.05025612190365791, -0.049103543162345886 ]
0.084409
(Discord): `--target` - `channel list` (Discord): `--guild-id` - `member info` (Discord/Slack): `--user-id` (+ `--guild-id` for Discord) - `voice status` (Discord): `--guild-id`, `--user-id` ### Events - `event list` (Discord): `--guild-id` - `event create` (Discord): `--guild-id`, `--event-name`, `--start-time` - Optional: `--end-time`, `--desc`, `--channel-id`, `--location`, `--event-type` ### Moderation (Discord) - `timeout`: `--guild-id`, `--user-id` (optional `--duration-min` or `--until`; omit both to clear timeout) - `kick`: `--guild-id`, `--user-id` (+ `--reason`) - `ban`: `--guild-id`, `--user-id` (+ `--delete-days`, `--reason`) - `timeout` also supports `--reason` ### Broadcast - `broadcast` - Channels: any configured channel; use `--channel all` to target all providers - Required: `--targets` (repeat) - Optional: `--message`, `--media`, `--dry-run` ## Examples Send a Discord reply: ``` openclaw message send --channel discord \ --target channel:123 --message "hi" --reply-to 456 ``` Create a Discord poll: ``` openclaw message poll --channel discord \ --target channel:123 \ --poll-question "Snack?" \ --poll-option Pizza --poll-option Sushi \ --poll-multi --poll-duration-hours 48 ``` Send a Teams proactive message: ``` openclaw message send --channel msteams \ --target conversation:19:abc@thread.tacv2 --message "hi" ``` Create a Teams poll: ``` openclaw message poll --channel msteams \ --target conversation:19:abc@thread.tacv2 \ --poll-question "Lunch?" \ --poll-option Pizza --poll-option Sushi ``` React in Slack: ``` openclaw message react --channel slack \ --target C123 --message-id 456 --emoji "✅" ``` React in a Signal group: ``` openclaw message react --channel signal \ --target signal:group:abc123 --message-id 1737630212345 \ --emoji "✅" --target-author-uuid 123e4567-e89b-12d3-a456-426614174000 ``` Send Telegram inline buttons: ``` openclaw message send --channel telegram --target @mychat --message "Choose:" \ --buttons '[ [{"text":"Yes","callback\_data":"cmd:yes"}], [{"text":"No","callback\_data":"cmd:no"}] ]' ```
https://github.com/openclaw/openclaw/blob/main//docs/cli/message.md
main
opebclaw
[ 0.03559863567352295, -0.0030832907650619745, -0.0594654455780983, 0.0248941108584404, 0.03844154253602028, 0.024317480623722076, 0.05678461492061615, -0.001185741974040866, 0.03814323991537094, 0.029394501820206642, 0.019803080707788467, -0.05735396593809128, 0.027894120663404465, 0.006104026455432177, 0.008166724815964699, 0.00007120865484466776, -0.06946992129087448, -0.08136432617902756, -0.04696046933531761, -0.16418375074863434, 0.020249370485544205, -0.013332735747098923, -0.021649129688739777, 0.023685824126005173, -0.01017061248421669, -0.12230848520994186, -0.03058287873864174, 0.07886947691440582, 0.013736525550484657, -0.04565512388944626, 0.011538511142134666, -0.026420004665851593, -0.0031983377411961555, 0.03664333373308182, 0.006603884976357222, 0.05268590524792671, 0.012803840450942516, -0.0031128807459026575, -0.004966135136783123, -0.004402425605803728, 0.04767140746116638, -0.07400979846715927, -0.03386897221207619, 0.00937323272228241, 0.032685887068510056, -0.0200383011251688, -0.09729199856519699, -0.045190103352069855, -0.020120825618505478, 0.09676214307546616, 0.0006561498157680035, -0.014611029997467995, 0.00044877600157633424, 0.032636500895023346, 0.030967218801379204, 0.0656772255897522, -0.08230485767126083, 0.04180934652686119, 0.05239417031407356, -0.07558102160692215, 0.010408975183963776, -0.016294606029987335, -0.030817776918411255, -0.009742733091115952, -0.03854814171791077, -0.044047415256500244, 0.01027022022753954, 0.005008726846426725, 0.035817231982946396, 0.05627623200416565, -0.02678087167441845, 0.011547926813364029, -0.13042370975017548, -0.060319919139146805, -0.022233642637729645, -0.07841823250055313, -0.04169749841094017, 0.018275186419487, -0.06585865467786789, -0.06756303459405899, -0.011510529555380344, -0.023769984021782875, -0.013189127668738365, -0.01618865132331848, -0.012885849922895432, 0.0016009247628971934, 0.003646804252639413, -0.010999438352882862, -0.034472595900297165, -0.06421269476413727, -0.06872531771659851, 0.055340833961963654, 0.028104325756430626, 0.04992120712995529, -0.052254583686590195, 0.08429405093193054, -0.036112941801548004, 0.08164359629154205, 0.0041523524560034275, 0.09303862601518631, -0.011745459400117397, 0.01165545079857111, -0.09441865980625153, 0.0011422282550483942, 0.004320248961448669, -0.027551913633942604, -0.045528899878263474, 0.05454205349087715, -0.0259946808218956, 0.05271834135055542, -0.1001247838139534, 0.09170037508010864, -0.019598189741373062, -0.0010425429791212082, 0.03971477225422859, 0.14196515083312988, 0.004073418211191893, 0.12574881315231323, 0.03255414590239525, 0.007400522008538246, 0.1409492790699005, 0.004268151707947254, -0.01622999832034111, 0.01835356093943119, -0.01649821549654007, 0.025075480341911316, 0.08416325598955154, -9.771688010423898e-34, 0.07029298692941666, -0.08092617988586426, -0.09113011509180069, 0.03886646032333374, 0.04210982099175453, 0.05525702238082886, -0.02741486392915249, -0.003365691751241684, -0.057653725147247314, 0.05349356308579445, -0.01569473184645176, -0.03888075798749924, -0.047808095812797546, -0.01725628226995468, 0.007478771265596151, -0.025466492399573326, 0.09476767480373383, -0.0273755993694067, 0.0033311774022877216, -0.05012765899300575, -0.004631234332919121, -0.005567735061049461, -0.06090826541185379, 0.08838663250207901, 0.09754069149494171, 0.08504673838615417, 0.020952599123120308, 0.006777181290090084, -0.0016348060453310609, -0.010485942475497723, -0.0029784380458295345, 0.006601906381547451, -0.024941695854067802, -0.006745944265276194, 0.04939429089426994, 0.010136122815310955, -0.06545912474393845, 0.0200702752918005, -0.07445820420980453, -0.0466378778219223, -0.023758646100759506, -0.03597603365778923, -0.09450619667768478, -0.10350814461708069, -0.046112846583127975, -0.054842546582221985, -0.018544578924775124, -0.048067908734083176, 0.05334882438182831, 0.009820622391998768, -0.04685599356889725, 0.055995650589466095, 0.05896328017115593, -0.04945861175656319, 0.03940347582101822, -0.11734719574451447, -0.0759289339184761, 0.060233741998672485, -0.012151911854743958, -0.03879625350236893, 0.012653937563300133, -0.015399341471493244, -0.01184296514838934, -0.0054508657194674015, 0.015512073412537575, 0.06352336704730988, -0.06743064522743225, 0.02326691336929798, 0.08254922926425934, -0.016621537506580353, -0.047781702131032944, 0.06149538978934288, 0.029621852561831474, 0.06503423303365707, -0.06200874224305153, -0.05985720083117485, -0.04963608458638191, -0.041423048824071884, -0.00925595872104168, 0.026988979429006577, 0.0046159811317920685, -0.058970630168914795, -0.11907865852117538, 0.02017517201602459, 0.01675328053534031, -0.042594846338033676, 0.04469607397913933, -0.01744121126830578, -0.020102636888623238, -0.0011873985640704632, -0.13982178270816803, 0.04705432057380676, 0.07044244557619095, -0.007085765711963177, -0.08885450661182404, -3.5812427221159495e-33, 0.01809251867234707, 0.019411535933613777, 0.023187102749943733, -0.026380455121397972, 0.05321076884865761, 0.003989437595009804, 0.07204146683216095, 0.012146961875259876, 0.010426625609397888, 0.08037988841533661, 0.009169090539216995, -0.0487208217382431, 0.0028781434521079063, -0.06556408852338791, -0.008901095017790794, 0.04053952544927597, -0.0590086467564106, -0.009495209902524948, -0.024614756926894188, 0.011796853505074978, -0.07566296309232712, 0.09630078822374344, -0.03372649475932121, 0.06218098849058151, -0.000798165041487664, -0.00682069081813097, 0.08012059330940247, 0.01713147573173046, -0.0387556329369545, -0.04625735804438591, 0.03618447482585907, -0.03058483451604843, -0.09864292293787003, 0.03904902935028076, 0.01586882583796978, -0.032231591641902924, -0.011122605763375759, 0.13782110810279846, -0.06120673194527626, 0.031880736351013184, 0.10128392279148102, 0.040594056248664856, -0.06620195508003235, -0.0007711813668720424, -0.0372653603553772, 0.05381663143634796, 0.040398724377155304, -0.029054874554276466, -0.09155532717704773, 0.06137067824602127, 0.056975338608026505, -0.04684700071811676, 0.05994129180908203, 0.042904019355773926, 0.07332669943571091, -0.006634111981838942, -0.0005819774814881384, -0.03275569528341293, -0.00625209603458643, -0.03260985389351845, -0.025226103141903877, -0.045614082366228104, -0.014115449041128159, 0.06842352449893951, 0.09009301662445068, -0.09731406718492508, -0.04955577477812767, 0.08563391119241714, -0.000548715062905103, 0.0016588408034294844, 0.024757541716098785, 0.00939792301505804, -0.010700110346078873, 0.009997750632464886, 0.011586288921535015, -0.0262820553034544, -0.04276612401008606, -0.02905985340476036, -0.022761553525924683, 0.053041793406009674, -0.01997881755232811, 0.015489538200199604, 0.07566200196743011, -0.02206932194530964, -0.0643855482339859, 0.020422330126166344, 0.041001513600349426, 0.19990719854831696, 0.06592028588056564, 0.007337320130318403, 0.0033436170779168606, -0.040322087705135345, 0.04242660850286484, 0.034005675464868546, -0.022975856438279152, -3.99956192609352e-8, -0.03300181031227112, -0.013273362070322037, -0.03647082671523094, -0.015460941940546036, -0.0017970987828448415, -0.041409682482481, 0.010682892985641956, -0.040633466094732285, -0.04622108116745949, -0.039798736572265625, 0.029467469081282616, 0.017499500885605812, -0.040945760905742645, -0.0063061644323170185, -0.008679712191224098, -0.06575663387775421, -0.05152817443013191, 0.10123268514871597, 0.0013156450586393476, -0.040882233530282974, -0.055610306560993195, -0.05456078425049782, -0.07225436717271805, 0.020323418080806732, 0.011576569639146328, -0.04453210532665253, -0.03963558375835419, 0.08698510378599167, -0.028916018083691597, -0.008458487689495087, -0.00009296431380789727, 0.017955463379621506, 0.055862296372652054, -0.04630401358008385, -0.08236931264400482, 0.011375653557479382, -0.058044545352458954, -0.005589060019701719, 0.017263341695070267, -0.020773690193891525, 0.039514895528554916, -0.04575393348932266, -0.016099117696285248, 0.02212635613977909, 0.0002539105189498514, -0.01235035341233015, -0.0008272662525996566, -0.0007428175886161625, 0.04500212147831917, -0.03292277455329895, -0.06142203137278557, -0.0562875010073185, 0.0772089809179306, -0.05151207372546196, 0.042982082813978195, 0.05711628496646881, 0.06485357135534286, 0.02818194217979908, 0.10983842611312866, -0.09096118807792664, 0.04958149045705795, 0.016709428280591965, -0.07460421323776245, -0.05473531037569046 ]
0.077498
# `openclaw agents` Manage isolated agents (workspaces + auth + routing). Related: - Multi-agent routing: [Multi-Agent Routing](/concepts/multi-agent) - Agent workspace: [Agent workspace](/concepts/agent-workspace) ## Examples ```bash openclaw agents list openclaw agents add work --workspace ~/.openclaw/workspace-work openclaw agents set-identity --workspace ~/.openclaw/workspace --from-identity openclaw agents set-identity --agent main --avatar avatars/openclaw.png openclaw agents delete work ``` ## Identity files Each agent workspace can include an `IDENTITY.md` at the workspace root: - Example path: `~/.openclaw/workspace/IDENTITY.md` - `set-identity --from-identity` reads from the workspace root (or an explicit `--identity-file`) Avatar paths resolve relative to the workspace root. ## Set identity `set-identity` writes fields into `agents.list[].identity`: - `name` - `theme` - `emoji` - `avatar` (workspace-relative path, http(s) URL, or data URI) Load from `IDENTITY.md`: ```bash openclaw agents set-identity --workspace ~/.openclaw/workspace --from-identity ``` Override fields explicitly: ```bash openclaw agents set-identity --agent main --name "OpenClaw" --emoji "🦞" --avatar avatars/openclaw.png ``` Config sample: ```json5 { agents: { list: [ { id: "main", identity: { name: "OpenClaw", theme: "space lobster", emoji: "🦞", avatar: "avatars/openclaw.png", }, }, ], }, } ```
https://github.com/openclaw/openclaw/blob/main//docs/cli/agents.md
main
opebclaw
[ -0.05118623748421669, -0.024970877915620804, -0.11753617972135544, 0.024035897105932236, 0.05546939745545387, -0.08981042355298996, 0.06117219477891922, -0.041231393814086914, 0.021923882886767387, -0.0014164663152769208, 0.05865900591015816, 0.003402574686333537, 0.0560126006603241, 0.007484296336770058, 0.04942449554800987, 0.12591104209423065, -0.04729154706001282, 0.05288706719875336, 0.010915572755038738, -0.031026141718029976, 0.011918206699192524, 0.023633919656276703, 0.007217708043754101, -0.07488157600164413, -0.0433577336370945, -0.013705004006624222, -0.04505946487188339, -0.02577797882258892, -0.05387655645608902, -0.035377975553274155, 0.07995843142271042, 0.024119725450873375, -0.04589727520942688, 0.008426240645349026, 0.08116229623556137, 0.1291845589876175, 0.024721454828977585, 0.011137980036437511, -0.03928409889340401, 0.0009136361768469214, 0.08010059595108032, 0.0617891401052475, -0.0096290847286582, -0.06908123940229416, -0.1326136440038681, -0.08057636767625809, -0.009099462069571018, -0.0730857253074646, -0.0032918532378971577, -0.021738044917583466, -0.0678960308432579, -0.06507520377635956, -0.034139566123485565, 0.016726244240999222, 0.029674412682652473, 0.005320990923792124, 0.011259309947490692, -0.005482006818056107, -0.008011196739971638, -0.04916573688387871, 0.08577079325914383, -0.00892647821456194, 0.000611920899245888, 0.015230570919811726, -0.03598100319504738, 0.02509608119726181, -0.06440647691488266, -0.020517952740192413, -0.038803037256002426, -0.0886978954076767, -0.05277189984917641, -0.012407156638801098, -0.06080342084169388, -0.0283773522824049, 0.035271380096673965, -0.015404138714075089, 0.03925521671772003, 0.049646563827991486, 0.014440590515732765, -0.12554197013378143, -0.030136162415146828, -0.006584498565644026, 0.012144767679274082, -0.0012319888919591904, -0.00024275810574181378, 0.10110107809305191, -0.022327803075313568, 0.04799192398786545, 0.039697371423244476, 0.018373625352978706, -0.037238284945487976, -0.09120294451713562, 0.08381015062332153, -0.0191534124314785, 0.13582411408424377, -0.04552526772022247, 0.009177954867482185, 0.10327103734016418, -0.018881862983107567, 0.0824459120631218, -0.04801607504487038, -0.01989676058292389, 0.0074174790643155575, 0.005880081094801426, -0.02306038700044155, 0.10030695796012878, 0.04438389465212822, 0.02869781106710434, -0.008461999706923962, 0.001001541269943118, -0.01304963044822216, -0.014920313842594624, 0.019576869904994965, 0.003357410430908203, 0.04863579571247101, 0.02735280431807041, 0.012323684990406036, 0.05870852619409561, 0.033310119062662125, 0.06179945170879364, 0.09106630086898804, -0.03947525843977928, 0.09576026350259781, -0.01665557734668255, 0.07647193223237991, 0.04684699326753616, 0.04438900202512741, 3.990747852401987e-33, 0.04818757250905037, 0.01922379620373249, -0.00421921256929636, 0.053309112787246704, 0.13851282000541687, 0.02609921060502529, 0.013838736340403557, 0.026860779151320457, -0.06280659139156342, 0.08437148481607437, -0.01758260652422905, 0.11896141618490219, -0.0526764839887619, -0.038969434797763824, -0.01784464344382286, 0.0019401374738663435, 0.022054024040699005, 0.03283114358782768, 0.08053740113973618, -0.008775642141699791, 0.03304750472307205, -0.008417217992246151, -0.05529707297682762, 0.0552683062851429, -0.0005539607955142856, 0.02365499548614025, -0.02164919301867485, -0.06185655668377876, 0.014710899442434311, 0.016327353194355965, 0.049419328570365906, 0.04952755942940712, -0.01673875004053116, 0.09260490536689758, -0.07625158131122589, 0.07375972718000412, -0.07789875566959381, -0.04845333844423294, -0.043600305914878845, -0.04664214327931404, 0.01417310256510973, -0.022214621305465698, 0.0719936341047287, -0.032233092933893204, -0.035458460450172424, -0.05802876502275467, -0.028558364138007164, 0.05099939927458763, 0.07002416998147964, 0.07689468562602997, 0.014766969718039036, -0.019214380532503128, 0.025670969858765602, -0.04889846593141556, -0.011525265872478485, -0.0634949803352356, -0.11238055676221848, 0.004822384100407362, 0.01742035336792469, -0.010764791630208492, -0.038129646331071854, 0.02168908342719078, -0.043650347739458084, 0.0794902890920639, 0.0018497572746127844, -0.022288987413048744, 0.046553563326597214, 0.04464361071586609, 0.06657976657152176, 0.04247099906206131, -0.0466315858066082, 0.028507577255368233, 0.0006429993081837893, 0.005196169018745422, -0.05526982992887497, -0.043501246720552444, -0.021108470857143402, -0.045401062816381454, -0.0258925948292017, 0.032614048570394516, -0.038858797401189804, 0.058466073125600815, -0.045900773257017136, 0.027671415358781815, -0.025789733976125717, 0.010434298776090145, -0.020417379215359688, -0.05647805333137512, 0.0017341640777885914, 0.05089111626148224, -0.004190962295979261, -0.00727686146274209, -0.06454924494028091, 0.022096814587712288, -0.05250583216547966, -5.229816243794605e-33, 0.009915617294609547, -0.03915885463356972, -0.07135474681854248, -0.06500176340341568, -0.005124963354319334, 0.0007578017539344728, 0.06362694501876831, -0.06597781926393509, -0.03931291773915291, -0.016615966334939003, -0.06880589574575424, 0.053530871868133545, 0.06001530587673187, -0.05221139267086983, 0.049669090658426285, -0.11719438433647156, 0.021875517442822456, -0.06366854161024094, -0.01728610135614872, -0.010306468233466148, -0.003173651872202754, 0.0837424248456955, 0.004498746246099472, -0.0023274575360119343, 0.1394098997116089, 0.0665692463517189, 0.005926171783357859, 0.04201098904013634, -0.0030258402694016695, -0.0050067720003426075, 0.015415050089359283, 0.019119754433631897, -0.04384917765855789, -0.06206187978386879, -0.0006936605786904693, 0.013110574334859848, -0.1330089420080185, 0.09895714372396469, -0.011535847559571266, 0.00775880878791213, 0.06216835603117943, -0.053806670010089874, -0.07659400999546051, 0.018615636974573135, -0.005980899557471275, 0.026067201048135757, 0.03313162550330162, 0.012856765650212765, -0.08598630130290985, 0.042640358209609985, -0.0036238280590623617, -0.010440870188176632, -0.01223285123705864, -0.05446597933769226, 0.0027044322341680527, 0.06594765186309814, 0.053435880690813065, -0.024331029504537582, -0.006486067082732916, -0.03762649744749069, 0.07492838054895401, -0.001210930640809238, -0.046730782836675644, 0.1686728596687317, -0.07198026031255722, -0.08545294404029846, -0.04675930365920067, -0.005444594658911228, -0.05766477435827255, -0.057835936546325684, -0.02599870041012764, -0.06716179102659225, -0.0072704097256064415, -0.04935432970523834, 0.055650606751441956, -0.03904776647686958, 0.05301316827535629, -0.06430606544017792, -0.030080316588282585, 0.04672212153673172, -0.055427853018045425, 0.006832841318100691, 0.031497128307819366, -0.0049820938147604465, -0.0031485643703490496, -0.020306140184402466, -0.03861027956008911, 0.06649806350469589, 0.06400451064109802, 0.06028104946017265, -0.07734065502882004, 0.08094152063131332, -0.0185001902282238, -0.0819052904844284, -0.04098586365580559, -4.592410718373685e-8, -0.06101337820291519, 0.04922967031598091, 0.004474675748497248, -0.034781333059072495, -0.03931370750069618, -0.04164326936006546, -0.02488863281905651, 0.035882677882909775, -0.030840333551168442, 0.01853567361831665, 0.09320080280303955, -0.04469645023345947, -0.0013629688182845712, -0.005191966891288757, -0.014710335992276669, 0.021030060946941376, 0.05812568962574005, -0.04262989014387131, -0.05118793994188309, -0.05321221426129341, -0.08112991601228714, -0.03810642287135124, -0.00274381204508245, 0.018690260127186775, -0.08800146728754044, -0.04758467525243759, -0.022422274574637413, -0.06751960515975952, -0.015342245809733868, 0.139137864112854, -0.05031546205282211, 0.007994703948497772, 0.03816409036517143, -0.0030022254213690758, -0.07825391739606857, 0.052152350544929504, -0.01227161381393671, -0.00997109990566969, 0.01031035091727972, -0.03374301642179489, -0.02500992827117443, 0.025822151452302933, 0.0342056006193161, -0.015429068356752396, -0.04159984365105629, -0.03460442274808884, -0.05315617844462395, -0.003985360264778137, 0.043793193995952606, -0.012133837677538395, -0.06800916790962219, -0.011816208250820637, -0.028319062665104866, 0.10375186800956726, 0.05324534326791763, -0.012726424261927605, 0.07983099669218063, -0.04864002391695976, 0.05576920136809349, 0.06629814207553864, -0.045719046145677567, -0.014927143231034279, 0.03970257192850113, -0.061969488859176636 ]
0.097805
# `openclaw cron` Manage cron jobs for the Gateway scheduler. Related: - Cron jobs: [Cron jobs](/automation/cron-jobs) Tip: run `openclaw cron --help` for the full command surface. Note: isolated `cron add` jobs default to `--announce` delivery. Use `--no-deliver` to keep output internal. `--deliver` remains as a deprecated alias for `--announce`. Note: one-shot (`--at`) jobs delete after success by default. Use `--keep-after-run` to keep them. ## Common edits Update delivery settings without changing the message: ```bash openclaw cron edit --announce --channel telegram --to "123456789" ``` Disable delivery for an isolated job: ```bash openclaw cron edit --no-deliver ``` Announce to a specific channel: ```bash openclaw cron edit --announce --channel slack --to "channel:C1234567890" ```
https://github.com/openclaw/openclaw/blob/main//docs/cli/cron.md
main
opebclaw
[ -0.05958351120352745, -0.04542487487196922, -0.06665503978729248, 0.05160292983055115, -0.011153529398143291, -0.061504337936639786, -0.002846749033778906, -0.009759187698364258, -0.0408608578145504, 0.005112709477543831, 0.015724750235676765, -0.03722233325242996, -0.014203219674527645, 0.03295888006687164, 0.035903021693229675, 0.04980773851275444, 0.027632618322968483, -0.1291123479604721, -0.015971921384334564, -0.07469747960567474, -0.01047101803123951, 0.1037832722067833, 0.043969448655843735, 0.06457103788852692, -0.055284835398197174, -0.10002662986516953, -0.020793989300727844, 0.018166866153478622, -0.07183066010475159, -0.013217419385910034, 0.07516172528266907, 0.006128262262791395, 0.009059897623956203, 0.023918546736240387, 0.08469855040311813, 0.09387359023094177, 0.03017619624733925, 0.02475130185484886, 0.03642993047833443, 0.018889741972088814, 0.08940334618091583, -0.054099176079034805, -0.047382157295942307, -0.05848860368132591, -0.030415760353207588, -0.06508889049291611, -0.014668124727904797, -0.04232494533061981, -0.011674218811094761, 0.01415023859590292, 0.04661421477794647, -0.10194002836942673, -0.041485920548439026, -0.011599116027355194, 0.0683358684182167, 0.050007861107587814, 0.008822448551654816, 0.01056536566466093, 0.08797933161258698, -0.09868425130844116, -0.013295861892402172, 0.020679164677858353, -0.026539906859397888, 0.04153494909405708, -0.1210264191031456, 0.008929983712732792, -0.02437303587794304, -0.0018397544045001268, -0.01962437853217125, 0.02396702952682972, 0.010944354347884655, 0.012148385867476463, -0.06586313247680664, -0.04956028237938881, 0.010352730751037598, -0.029402315616607666, 0.07273568212985992, -0.026802081614732742, -0.1532282680273056, -0.017889274284243584, -0.08187177777290344, -0.07757871598005295, -0.06168511509895325, -0.020624257624149323, -0.05984281376004219, 0.06749609857797623, 0.05547181889414787, 0.05425197258591652, 0.09417940676212311, 0.015845904126763344, -0.026225218549370766, -0.06533364206552505, -0.030260510742664337, -0.025157546624541283, -0.08396097272634506, -0.018656473606824875, 0.010996881872415543, 0.007448580581694841, -0.06450630724430084, 0.06531540304422379, 0.03832894191145897, -0.01079272385686636, 0.028767988085746765, -0.0021521816961467266, 0.00893019512295723, 0.05306963250041008, 0.011873293668031693, 0.09952959418296814, -0.00628745649009943, -0.025468794628977776, -0.008566697128117085, 0.027397174388170242, 0.06866738945245743, -0.04431650787591934, -0.034571122378110886, 0.10960190743207932, -0.042601488530635834, 0.07639801502227783, 0.05741148442029953, 0.04756099358201027, 0.13000620901584625, 0.006517307832837105, -0.03305964916944504, -0.02694259025156498, 0.025569848716259003, 0.0680101215839386, 0.09262775629758835, 3.2758000659463785e-33, 0.036821991205215454, -0.01885169744491577, -0.08015166968107224, -0.026455339044332504, 0.1409580558538437, -0.008064145222306252, -0.04363885894417763, 0.042907945811748505, -0.003296350361779332, -0.002002560533583164, -0.011288502253592014, -0.013848084025084972, -0.02191087417304516, 0.005375981796532869, -0.03512795269489288, -0.03067023865878582, 0.04860372468829155, -0.0003966531076002866, 0.06885514408349991, -0.026363644748926163, 0.03939710184931755, -0.04761939123272896, -0.10957064479589462, 0.01038870308548212, 0.028376197442412376, -0.030437083914875984, 0.053579751402139664, 0.021640293300151825, -0.006746545899659395, 0.020749995484948158, 0.04240375757217407, 0.07558178156614304, 0.01155854482203722, 0.05243755131959915, -0.0655684843659401, -0.01703607477247715, -0.1680787205696106, -0.029424214735627174, -0.041124243289232254, -0.026347730308771133, 0.061390746384859085, 0.015966419130563736, -0.1184714213013649, -0.057442545890808105, 0.12464681267738342, -0.06649243831634521, -0.0001624064170755446, 0.01324617862701416, 0.07042258232831955, -0.008883009664714336, 0.07130676507949829, 0.03663043677806854, 0.08380074054002762, -0.036183297634124756, -0.00036653116694651544, -0.05097668990492821, -0.015444672666490078, -0.09828567504882812, 0.056579820811748505, -0.014075210317969322, 0.02031835913658142, -0.005061391741037369, -0.01704900525510311, 0.03352183476090431, 0.024416467174887657, -0.011944093741476536, 0.03286312147974968, 0.022762278094887733, 0.020026668906211853, 0.003828975837677717, -0.061119675636291504, 0.017611972987651825, -0.031611375510692596, 0.03875100612640381, -0.02041928470134735, -0.030790019780397415, 0.02389514073729515, -0.057758770883083344, 0.06213117018342018, 0.028565706685185432, 0.07415779680013657, 0.040137242525815964, -0.02327815070748329, -0.01871984265744686, 0.07931249588727951, 0.042524777352809906, 0.04010410234332085, 0.010759765282273293, 0.0019524218514561653, 0.10489793866872787, -0.038253821432590485, 0.0207795612514019, -0.05593126267194748, 0.0019866677466779947, -0.006801275536417961, -4.080293705969767e-33, -0.019561508670449257, 0.04096626490354538, -0.06959525495767593, 0.03171910345554352, -0.0612325556576252, 0.015390540473163128, 0.029833627864718437, -0.030063532292842865, 0.02832098864018917, -0.03472355008125305, -0.08272254467010498, 0.040714364498853683, 0.004165767692029476, -0.06619729101657867, 0.02526041492819786, -0.05024797096848488, -0.0332854799926281, -0.04323788732290268, -0.0801505595445633, 0.059264685958623886, -0.030105415731668472, 0.05345591902732849, -0.0392962209880352, 0.02330349013209343, 0.07100778818130493, -0.003958921413868666, -0.0010264547308906913, 0.10340343415737152, -0.012368208728730679, -0.03905092179775238, -0.06310506910085678, -0.027087870985269547, 0.0334855392575264, -0.00364516768604517, 0.024526558816432953, 0.00010900283814407885, 0.007203554268926382, 0.09583879262208939, 0.031388621777296066, 0.06843230128288269, 0.09739148616790771, 0.01216124463826418, -0.04852523282170296, 0.033840831369161606, -0.05523402616381645, 0.10384853929281235, -0.024700475856661797, -0.048450205475091934, -0.14724090695381165, 0.04965421184897423, -0.08680406957864761, -0.005795602686703205, 0.006387796252965927, 0.019021708518266678, 0.09635909646749496, -0.00874361116439104, 0.00617609778419137, -0.025441929697990417, -0.01686512492597103, -0.0537225604057312, 0.016889309510588646, -0.030324341729283333, 0.006964739412069321, 0.08459128439426422, 0.04828488826751709, -0.10968680679798126, -0.014038726687431335, 0.014428197406232357, 0.010923749767243862, -0.04123197868466377, 0.05576988309621811, -0.02401060052216053, -0.03101320192217827, -0.07559846341609955, -0.01720495894551277, -0.053513165563344955, -0.010140256956219673, -0.09479089081287384, -0.09297521412372589, 0.1131105050444603, -0.009559804573655128, 0.010659057646989822, 0.03903177008032799, -0.01976669766008854, -0.07094288617372513, 0.02803732082247734, 0.015407787635922432, 0.0587654635310173, 0.0726035088300705, 0.04187493026256561, -0.031252987682819366, -0.00847617071121931, 0.04758652672171593, 0.02005644328892231, 0.0050229839980602264, -4.8763574511667684e-8, 0.005652703810483217, -0.028963536024093628, 0.0023051733151078224, 0.03161000460386276, 0.02941262535750866, -0.07342761754989624, 0.031162457540631294, -0.02983750030398369, -0.054620202630758286, -0.0028022693004459143, 0.0011214726837351918, -0.026540854945778847, -0.024695640429854393, 0.06946118921041489, -0.017348576337099075, 0.06082286313176155, -0.02283777855336666, -0.013511030934751034, -0.012665395624935627, -0.0534217543900013, -0.03672041371464729, 0.014745142310857773, 0.04042694345116615, 0.006568240001797676, -0.022797841578722, -0.05648568272590637, -0.02269533835351467, 0.028492311015725136, -0.01548939011991024, 0.041314348578453064, -0.005628120619803667, -0.10065902024507523, 0.01917492039501667, 0.00162034563254565, -0.07198791950941086, 0.01867847517132759, -0.04519728943705559, 0.005982265807688236, 0.027041813358664513, 0.04143710061907768, 0.0553925596177578, -0.021650996059179306, -0.0009805600857362151, -0.019391410052776337, -0.10086437314748764, -0.007220837287604809, -0.03420758619904518, -0.029366472736001015, -0.03402814269065857, -0.0385981947183609, 0.04181186854839325, 0.016163703054189682, 0.06544198840856552, 0.03893612325191498, 0.06084771081805229, 0.0692128911614418, 0.0856243222951889, -0.14162123203277588, 0.03803585469722748, 0.032438620924949646, 0.0003970125981140882, 0.013050250709056854, 0.01686793565750122, -0.038384199142456055 ]
0.083416
# 日期与时间 OpenClaw 默认使用\*\*主机本地时间作为传输时间戳\*\*,并且\*\*仅在系统提示词中使用用户时区\*\*。 提供商时间戳会被保留,因此工具保持其原生语义(当前时间可通过 `session\_status` 获取)。 ## 消息信封(默认为本地时间) 入站消息会附带一个时间戳(分钟精度): ``` [Provider ... 2026-01-05 16:26 PST] message text ``` 此信封时间戳\*\*默认为主机本地时间\*\*,与提供商时区无关。 你可以覆盖此行为: ```json5 { agents: { defaults: { envelopeTimezone: "local", // "utc" | "local" | "user" | IANA 时区 envelopeTimestamp: "on", // "on" | "off" envelopeElapsed: "on", // "on" | "off" }, }, } ``` - `envelopeTimezone: "utc"` 使用 UTC。 - `envelopeTimezone: "local"` 使用主机时区。 - `envelopeTimezone: "user"` 使用 `agents.defaults.userTimezone`(回退到主机时区)。 - 使用显式 IANA 时区(例如 `"America/Chicago"`)指定固定时区。 - `envelopeTimestamp: "off"` 从信封头中移除绝对时间戳。 - `envelopeElapsed: "off"` 移除已用时间后缀(`+2m` 样式)。 ### 示例 \*\*本地时间(默认):\*\* ``` [WhatsApp +1555 2026-01-18 00:19 PST] hello ``` \*\*用户时区:\*\* ``` [WhatsApp +1555 2026-01-18 00:19 CST] hello ``` \*\*启用已用时间:\*\* ``` [WhatsApp +1555 +30s 2026-01-18T05:19Z] follow-up ``` ## 系统提示词:当前日期与时间 如果已知用户时区,系统提示词会包含一个专门的\*\*当前日期与时间\*\*部分,其中仅包含\*\*时区\*\*(不含时钟/时间格式),以保持提示词缓存的稳定性: ``` Time zone: America/Chicago ``` 当智能体需要获取当前时间时,请使用 `session\_status` 工具;状态卡中包含时间戳行。 ## 系统事件行(默认为本地时间) 插入到智能体上下文中的排队系统事件会带有时间戳前缀,使用与消息信封相同的时区选择(默认:主机本地时间)。 ``` System: [2026-01-12 12:19:17 PST] Model switched. ``` ### 配置用户时区和格式 ```json5 { agents: { defaults: { userTimezone: "America/Chicago", timeFormat: "auto", // auto | 12 | 24 }, }, } ``` - `userTimezone` 设置提示词上下文中的\*\*用户本地时区\*\*。 - `timeFormat` 控制提示词中的 \*\*12 小时/24 小时显示格式\*\*。`auto` 跟随操作系统偏好设置。 ## 时间格式检测(auto) 当 `timeFormat: "auto"` 时,OpenClaw 会检查操作系统偏好设置(macOS/Windows),并回退到区域格式。检测到的值会\*\*按进程缓存\*\*,以避免重复的系统调用。 ## 工具载荷 + 连接器(原始提供商时间 + 标准化字段) 渠道工具返回\*\*提供商原生时间戳\*\*,并添加标准化字段以保持一致性: - `timestampMs`:纪元毫秒数(UTC) - `timestampUtc`:ISO 8601 UTC 字符串 原始提供商字段会被保留,不会丢失任何数据。 - Slack:来自 API 的类纪元字符串 - Discord:UTC ISO 时间戳 - Telegram/WhatsApp:提供商特定的数字/ISO 时间戳 如果需要本地时间,请使用已知时区在下游进行转换。 ## 相关文档 - [系统提示词](/concepts/system-prompt) - [时区](/concepts/timezone) - [消息](/concepts/messages)
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/date-time.md
main
opebclaw
[ -0.03892556577920914, 0.11570756882429123, 0.000547761213965714, -0.022383950650691986, 0.01820392720401287, -0.06765159219503403, 0.016431357711553574, -0.05758564919233322, 0.01976480334997177, 0.011759897693991661, 0.09481538832187653, -0.06727733463048935, -0.03322042152285576, 0.022668153047561646, 0.07430166006088257, 0.062318481504917145, -0.04427521675825119, -0.0016855103895068169, -0.09109656512737274, -0.0911959856748581, -0.02178795263171196, 0.02431451715528965, -0.009714530780911446, -0.0003004604659508914, -0.028826234862208366, 0.01858524978160858, 0.0007901824428699911, 0.05401251092553139, 0.01605246216058731, 0.018748685717582703, -0.036769647151231766, 0.030345242470502853, -0.01134435273706913, 0.025771381333470345, 0.14773543179035187, 0.1301625669002533, 0.027096029371023178, -0.05618816614151001, 0.07207173854112625, 0.026733215898275375, 0.037355560809373856, -0.03949791193008423, -0.04663551226258278, -0.03565000370144844, 0.039639975875616074, -0.025279438123106956, -0.050712767988443375, 0.01032229047268629, -0.05498480051755905, 0.004212093073874712, -0.02230238914489746, 0.034441277384757996, 0.009984073229134083, -0.03272128850221634, -0.025822950527071953, 0.014057742431759834, -0.07184207439422607, 0.017360515892505646, 0.03573041409254074, -0.01932559907436371, -0.02947138249874115, -0.0007143142865970731, -0.05999027565121651, 0.01295052096247673, -0.11334936320781708, 0.015322977676987648, -0.07791741192340851, -0.006059201434254646, -0.0026999483816325665, -0.05910573899745941, -0.022190315648913383, -0.06922482699155807, -0.05826801806688309, 0.03449792414903641, -0.06383386254310608, -0.01925208419561386, 0.005651767365634441, -0.03253328055143356, -0.04290595278143883, -0.038327787071466446, 0.007848084904253483, -0.06078246608376503, 0.015819886699318886, 0.05029042065143585, -0.04717711731791496, 0.07055599987506866, -0.048653945326805115, 0.008363569155335426, 0.0631486251950264, -0.02373792603611946, 0.027277164161205292, -0.025174295529723167, 0.065483458340168, 0.061369866132736206, -0.038623664528131485, 0.0141749931499362, 0.003501726547256112, 0.026257546618580818, -0.09465473145246506, 0.12755146622657776, 0.02923526242375374, -0.025288093835115433, -0.018298309296369553, 0.02499484457075596, -0.033182013779878616, -0.10133004188537598, -0.03328273072838783, 0.018707402050495148, -0.0015323814004659653, 0.03935413807630539, -0.06290916353464127, 0.011332152411341667, -0.04465729743242264, -0.09905990213155746, -0.014251334592700005, 0.04081660881638527, -0.02701442502439022, 0.04273390769958496, 0.002691663568839431, -0.031810324639081955, 0.1023527979850769, -0.034851644188165665, -0.1034344807267189, -0.015384797938168049, -0.013235962949693203, 0.00270344247110188, 0.16138914227485657, 4.018852452962209e-33, -0.023722922429442406, 0.033890705555677414, -0.004750384483486414, 0.02565223164856434, 0.04729063808917999, -0.07213286310434341, -0.005359240807592869, -0.037282299250364304, -0.03100668638944626, -0.009555625729262829, -0.020083416253328323, 0.0016267061000689864, -0.03165790066123009, -0.05500892177224159, -0.07206228375434875, -0.03106096014380455, 0.012958553619682789, 0.03567869961261749, 0.09528253972530365, 0.04708113893866539, 0.03671060502529144, -0.0461307168006897, 0.04100790619850159, 0.009608874097466469, 0.00851393025368452, 0.05250568315386772, -0.001913501531817019, -0.06523189693689346, 0.013721934519708157, 0.043010368943214417, 0.028091872110962868, 0.0431215763092041, -0.0031784360762685537, 0.03765012323856354, 0.03534448519349098, 0.04303405061364174, 0.025788219645619392, -0.05078691616654396, -0.05521238595247269, -0.05226203799247742, -0.046374112367630005, -0.02213246561586857, -0.0671411007642746, 0.0028667075093835592, 0.010735424235463142, -0.01953662559390068, -0.07331359386444092, -0.08800490200519562, 0.03509680926799774, -0.01558216754347086, -0.03955995291471481, 0.07836775481700897, -0.00778463389724493, 0.0172713715583086, 0.05192204937338829, -0.06995297968387604, 0.03235899657011032, 0.016178226098418236, -0.007516782730817795, -0.033892419189214706, 0.009908633306622505, -0.017273612320423126, 0.016050847247242928, -0.015501691959798336, 0.12351836264133453, -0.019750310108065605, -0.05515865981578827, 0.01728111132979393, -0.0006754568312317133, -0.06487847864627838, -0.02625451050698757, 0.07263930886983871, 0.09101903438568115, 0.07694776356220245, -0.08315687626600266, -0.07691646367311478, -0.0025816713459789753, 0.10945267230272293, 0.023168418556451797, -0.016316263005137444, 0.01599009521305561, -0.09931337833404541, -0.04550782963633537, 0.015016012825071812, 0.0024092523381114006, 0.02166251465678215, 0.02940145507454872, -0.0036524110473692417, -0.018126457929611206, 0.07099886238574982, -0.09297775477170944, 0.01657072827219963, -0.00887585524469614, 0.04839995130896568, -0.05632603168487549, -7.360174941365407e-33, -0.0002980092540383339, -0.0601150281727314, -0.0795985534787178, -0.041049327701330185, -0.031172527000308037, -0.0689784437417984, 0.04942590370774269, 0.05058486759662628, 0.039256416261196136, 0.09103158861398697, -0.008943888358771801, -0.025814423337578773, 0.032634079456329346, 0.03989870846271515, -0.03466237708926201, 0.06622277945280075, 0.04524388909339905, 0.05371095612645149, -0.0223385039716959, 0.06295797228813171, 0.00809079222381115, 0.016501836478710175, -0.13019734621047974, 0.05831412598490715, 0.04029281809926033, 0.04300195351243019, 0.06119798123836517, -0.01609879359602928, -0.06105390563607216, -0.07904573529958725, -0.040707673877477646, 0.004958016332238913, -0.06846379488706589, 0.09017001837491989, 0.000012557563422888052, -0.03843678534030914, 0.03057834506034851, 0.09522785246372223, -0.046879131346940994, 0.00929341558367014, 0.033139053732156754, 0.05720580741763115, -0.11059777438640594, 0.041047353297472, -0.029349053278565407, 0.03670390322804451, 0.016579339280724525, -0.013852705247700214, -0.0392487458884716, -0.03333933278918266, 0.0584242157638073, 0.007671691942960024, 0.014332852326333523, -0.037686675786972046, -0.008610093034803867, 0.044339269399642944, 0.024313118308782578, -0.1292642205953598, -0.017659548670053482, -0.10729081928730011, 0.004245276562869549, -0.08530732244253159, -0.004514003172516823, 0.04351120814681053, 0.09427163749933243, -0.057957880198955536, -0.011737261898815632, 0.033776700496673584, 0.054189398884773254, -0.07487936317920685, 0.011568080633878708, -0.05040942505002022, -0.00693700322881341, -0.06760422140359879, 0.05781904608011246, 0.0065604099072515965, -0.006214988883584738, 0.0041504730470478535, -0.019521797075867653, 0.05755879729986191, -0.043174099177122116, 0.013874714262783527, -0.020121252164244652, 0.09167345613241196, 0.010041731409728527, -0.011152448132634163, 0.02152007631957531, 0.0964934453368187, -0.0028595009353011847, -0.012601054273545742, -0.02485288493335247, 0.07730414718389511, -0.03749686852097511, 0.055139582604169846, 0.0065665533766150475, -5.343909492694365e-8, -0.07805780321359634, -0.10961474478244781, -0.1104867234826088, -0.02370033971965313, 0.007928040809929371, -0.018219560384750366, -0.010077391751110554, -0.12220358103513718, 0.04934954643249512, -0.07068417221307755, 0.019658105447888374, 0.07067608833312988, -0.12445583194494247, -0.03436547517776489, -0.06345884501934052, -0.0503409206867218, -0.13264280557632446, 0.03939279913902283, 0.009438281878829002, -0.06049081310629845, 0.011731662787497044, 0.01582186110317707, 0.05153394117951393, -0.08491700142621994, 0.011010785587131977, 0.0035406281240284443, -0.060144733637571335, 0.0490923747420311, -0.013909726403653622, -0.016065575182437897, -0.04035607725381851, -0.04124685004353523, -0.00006336908700177446, -0.0407106950879097, -0.03809493035078049, 0.03249968960881233, 0.052171044051647186, -0.07008729130029678, -0.01500025112181902, -0.0069359587505459785, 0.05311580374836922, -0.053736306726932526, -0.07773759216070175, 0.03586696833372116, 0.06794750690460205, -0.007276890799403191, 0.021061202511191368, 0.009585194289684296, 0.12215118110179901, -0.07667598873376846, -0.05568957328796387, -0.050835367292165756, 0.05601455643773079, -0.012072117067873478, 0.007638095878064632, -0.025378748774528503, 0.025990042835474014, -0.014513838104903698, 0.031400833278894424, 0.06633564829826355, -0.004352299030870199, 0.03315878286957741, -0.016362225636839867, 0.014568127691745758 ]
0.097633
# 插件(扩展) ## 快速开始(插件新手?) 插件只是一个\*\*小型代码模块\*\*,用额外功能(命令、工具和 Gateway 网关 RPC)扩展 OpenClaw。 大多数时候,当你想要一个尚未内置到核心 OpenClaw 的功能(或你想将可选功能排除在主安装之外)时,你会使用插件。 快速路径: 1. 查看已加载的内容: ```bash openclaw plugins list ``` 2. 安装官方插件(例如:Voice Call): ```bash openclaw plugins install @openclaw/voice-call ``` 3. 重启 Gateway 网关,然后在 `plugins.entries..config` 下配置。 参见 [Voice Call](/plugins/voice-call) 了解具体的插件示例。 ## 可用插件(官方) - 从 2026.1.15 起 Microsoft Teams 仅作为插件提供;如果使用 Teams,请安装 `@openclaw/msteams`。 - Memory (Core) — 捆绑的记忆搜索插件(通过 `plugins.slots.memory` 默认启用) - Memory (LanceDB) — 捆绑的长期记忆插件(自动召回/捕获;设置 `plugins.slots.memory = "memory-lancedb"`) - [Voice Call](/plugins/voice-call) — `@openclaw/voice-call` - [Zalo Personal](/plugins/zalouser) — `@openclaw/zalouser` - [Matrix](/channels/matrix) — `@openclaw/matrix` - [Nostr](/channels/nostr) — `@openclaw/nostr` - [Zalo](/channels/zalo) — `@openclaw/zalo` - [Microsoft Teams](/channels/msteams) — `@openclaw/msteams` - Google Antigravity OAuth(提供商认证)— 作为 `google-antigravity-auth` 捆绑(默认禁用) - Gemini CLI OAuth(提供商认证)— 作为 `google-gemini-cli-auth` 捆绑(默认禁用) - Qwen OAuth(提供商认证)— 作为 `qwen-portal-auth` 捆绑(默认禁用) - Copilot Proxy(提供商认证)— 本地 VS Code Copilot Proxy 桥接;与内置 `github-copilot` 设备登录不同(捆绑,默认禁用) OpenClaw 插件是通过 jiti 在运行时加载的 \*\*TypeScript 模块\*\*。\*\*配置验证不会执行插件代码\*\*;它使用插件清单和 JSON Schema。参见 [插件清单](/plugins/manifest)。 插件可以注册: - Gateway 网关 RPC 方法 - Gateway 网关 HTTP 处理程序 - 智能体工具 - CLI 命令 - 后台服务 - 可选的配置验证 - \*\*Skills\*\*(通过在插件清单中列出 `skills` 目录) - \*\*自动回复命令\*\*(不调用 AI 智能体即可执行) 插件与 Gateway 网关\*\*在同一进程中\*\*运行,因此将它们视为受信任的代码。 工具编写指南:[插件智能体工具](/plugins/agent-tools)。 ## 运行时辅助工具 插件可以通过 `api.runtime` 访问选定的核心辅助工具。对于电话 TTS: ```ts const result = await api.runtime.tts.textToSpeechTelephony({ text: "Hello from OpenClaw", cfg: api.config, }); ``` 注意事项: - 使用核心 `messages.tts` 配置(OpenAI 或 ElevenLabs)。 - 返回 PCM 音频缓冲区 + 采样率。插件必须为提供商重新采样/编码。 - Edge TTS 不支持电话。 ## 发现和优先级 OpenClaw 按顺序扫描: 1. 配置路径 - `plugins.load.paths`(文件或目录) 2. 工作区扩展 - `/.openclaw/extensions/\*.ts` - `/.openclaw/extensions/\*/index.ts` 3. 全局扩展 - `~/.openclaw/extensions/\*.ts` - `~/.openclaw/extensions/\*/index.ts` 4. 捆绑扩展(随 OpenClaw 一起发布,\*\*默认禁用\*\*) - `/extensions/\*` 捆绑插件必须通过 `plugins.entries..enabled` 或 `openclaw plugins enable ` 显式启用。已安装的插件默认启用,但可以用相同方式禁用。 每个插件必须在其根目录中包含 `openclaw.plugin.json` 文件。如果路径指向文件,则插件根目录是文件的目录,必须包含清单。 如果多个插件解析到相同的 id,上述顺序中的第一个匹配项获胜,较低优先级的副本被忽略。 ### 包集合 插件目录可以包含带有 `openclaw.extensions` 的 `package.json`: ```json { "name": "my-pack", "openclaw": { "extensions": ["./src/safety.ts", "./src/tools.ts"] } } ``` 每个条目成为一个插件。如果包列出多个扩展,插件 id 变为 `name/`。 如果你的插件导入 npm 依赖,请在该目录中安装它们以便 `node\_modules` 可用(`npm install` / `pnpm install`)。 ### 渠道目录元数据 渠道插件可以通过 `openclaw.channel` 广播新手引导元数据,通过 `openclaw.install` 广播安装提示。这使核心目录保持无数据。 示例: ```json { "name": "@openclaw/nextcloud-talk", "openclaw": { "extensions": ["./index.ts"], "channel": { "id": "nextcloud-talk", "label": "Nextcloud Talk", "selectionLabel": "Nextcloud Talk (self-hosted)", "docsPath": "/channels/nextcloud-talk", "docsLabel": "nextcloud-talk", "blurb": "Self-hosted chat via Nextcloud Talk webhook bots.", "order": 65, "aliases": ["nc-talk", "nc"] }, "install": { "npmSpec": "@openclaw/nextcloud-talk", "localPath": "extensions/nextcloud-talk", "defaultChoice": "npm" } } } ``` OpenClaw 还可以合并\*\*外部渠道目录\*\*(例如,MPM 注册表导出)。将 JSON 文件放在以下位置之一: - `~/.openclaw/mpm/plugins.json` - `~/.openclaw/mpm/catalog.json` - `~/.openclaw/plugins/catalog.json` 或将 `OPENCLAW\_PLUGIN\_CATALOG\_PATHS`(或 `OPENCLAW\_MPM\_CATALOG\_PATHS`)指向一个或多个 JSON 文件(逗号/分号/`PATH` 分隔)。每个文件应包含 `{ "entries": [ { "name": "@scope/pkg", "openclaw": { "channel": {...}, "install": {...} } } ] }`。 ## 插件 ID 默认插件 id: - 包集合:`package.json` 的 `name` - 独立文件:文件基本名称(`~/.../voice-call.ts` → `voice-call`) 如果插件导出 `id`,OpenClaw 会使用它,但当它与配置的 id 不匹配时会发出警告。 ## 配置 ```json5 { plugins: { enabled: true, allow: ["voice-call"], deny: ["untrusted-plugin"], load: { paths: ["~/Projects/oss/voice-call-extension"] }, entries: { "voice-call": { enabled: true, config: { provider: "twilio" } }, }, }, } ``` 字段: - `enabled`:主开关(默认:true) - `allow`:允许列表(可选) - `deny`:拒绝列表(可选;deny 优先) - `load.paths`:额外的插件文件/目录 - `entries.`:每个插件的开关 + 配置 配置更改\*\*需要重启 Gateway 网关\*\*。 验证规则(严格): - `entries`、`allow`、`deny` 或 `slots` 中的未知插件 id 是\*\*错误\*\*。 - 未知的 `channels.` 键是\*\*错误\*\*,除非插件清单声明了渠道 id。 - 插件配置使用嵌入在 `openclaw.plugin.json`(`configSchema`)中的 JSON Schema 进行验证。 - 如果插件被禁用,其配置会保留并发出\*\*警告\*\*。 ## 插件槽位(独占类别) 某些插件类别是\*\*独占的\*\*(一次只有一个活跃)。使用 `plugins.slots` 选择哪个插件拥有该槽位: ```json5 { plugins: { slots: { memory: "memory-core", // or "none" to disable memory plugins }, }, } ``` 如果多个插件声明 `kind: "memory"`,只有选定的那个加载。其他的被禁用并带有诊断信息。 ## 控制界面(schema + 标签) 控制界面使用 `config.schema`(JSON Schema + `uiHints`)来渲染更好的表单。 OpenClaw 在运行时根据发现的插件增强 `uiHints`: - 为 `plugins.entries.` / `.enabled` / `.config` 添加每插件标签 - 在以下位置合并可选的插件提供的配置字段提示: `plugins.entries..config.` 如果你希望插件配置字段显示良好的标签/占位符(并将密钥标记为敏感),请在插件清单中提供 `uiHints` 和 JSON Schema。 示例: ```json { "id": "my-plugin", "configSchema": { "type": "object", "additionalProperties": false, "properties": { "apiKey": { "type": "string" }, "region": { "type": "string" } } }, "uiHints": { "apiKey": { "label": "API Key", "sensitive": true }, "region": { "label": "Region", "placeholder": "us-east-1" } } } ``` ## CLI ```bash openclaw plugins list openclaw plugins info openclaw plugins install # copy a local file/dir into ~/.openclaw/extensions/ openclaw plugins install ./extensions/voice-call # relative path ok openclaw plugins install ./plugin.tgz # install from a local tarball openclaw plugins install ./plugin.zip # install from a local zip openclaw plugins install
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/plugin.md
main
opebclaw
[ -0.08433488011360168, -0.017477909103035927, -0.07103782147169113, -0.05089437961578369, -0.03610862046480179, -0.049722976982593536, 0.009483523666858673, -0.027087377384305, 0.012996719218790531, -0.055428143590688705, 0.08866596221923828, -0.031261853873729706, -0.00891816709190607, -0.006468365900218487, 0.06304015964269638, 0.08692128211259842, -0.018022900447249413, -0.026309791952371597, -0.0065376716665923595, -0.03932014852762222, -0.012602869421243668, 0.090980164706707, 0.01691359095275402, -0.007709541358053684, -0.039791058748960495, -0.02960619516670704, -0.07265211641788483, 0.006140436511486769, -0.017478130757808685, -0.008962923660874367, 0.027891110628843307, 0.1134907454252243, 0.03629631549119949, -0.002991277724504471, 0.09237569570541382, 0.07320347428321838, 0.037525635212659836, -0.019898390397429466, -0.09539859741926193, -0.03615124151110649, 0.03350762277841568, 0.0061342534609138966, 0.010324879549443722, -0.06853561848402023, -0.05143674090504646, -0.10108543932437897, -0.13526777923107147, -0.08441738784313202, -0.052304867655038834, -0.06223975867033005, -0.07966616004705429, -0.06255456805229187, -0.014475453644990921, -0.030749628320336342, 0.006976651959121227, -0.018568996340036392, -0.015377967618405819, 0.0020363100338727236, 0.04129337519407272, 0.01497915294021368, -0.007558946497738361, 0.01689814031124115, -0.050444912165403366, 0.026970362290740013, -0.14793351292610168, 0.023347562178969383, -0.059984494000673294, -0.041961420327425, -0.029741479083895683, 0.005385474767535925, -0.06464386731386185, 0.015723595395684242, -0.015427855774760246, -0.04520418867468834, -0.04654977470636368, 0.002531790640205145, 0.014942821115255356, -0.01392971258610487, -0.07305681705474854, -0.13529835641384125, 0.012038596905767918, 0.0022503111977130175, -0.008609489537775517, -0.013397867791354656, 0.0031352138612419367, 0.1710495799779892, -0.06490704417228699, -0.052161283791065216, 0.028915241360664368, -0.003011763794347644, -0.04420909285545349, -0.05786683037877083, 0.01957889273762703, 0.037756677716970444, -0.012225832790136337, -0.034611787647008896, 0.0002755475288722664, 0.013177837245166302, -0.051682405173778534, 0.07609307020902634, -0.008399206213653088, -0.0458635576069355, -0.03952743485569954, -0.026971975341439247, -0.08899647742509842, -0.01544989738613367, -0.046925488859415054, 0.09490017592906952, 0.03595694899559021, -0.002694082213565707, -0.02256815694272518, -0.07746221125125885, 0.056587886065244675, -0.14295916259288788, -0.03119625523686409, 0.024203039705753326, -0.015901217237114906, -0.054439201951026917, 0.03057336062192917, 0.05291443690657616, 0.03266103193163872, 0.033358681946992874, -0.07646024227142334, -0.0410768948495388, 0.01339256763458252, 0.026839978992938995, 0.11019768565893173, 5.9464097223413645e-33, 0.056007977575063705, -0.024774936959147453, -0.03316745534539223, 0.007499128580093384, 0.0738859698176384, -0.007610959466546774, 0.016679733991622925, 0.002293579513207078, -0.08601610362529755, 0.05834166705608368, 0.05062922462821007, 0.02520197629928589, -0.10692740231752396, -0.017819775268435478, 0.011871940456330776, -0.018355604261159897, -0.031676311045885086, 0.014465317130088806, 0.021872270852327347, -0.09143762290477753, 0.035412006080150604, 0.01591254398226738, -0.011800484731793404, 0.03567870706319809, 0.057879794389009476, 0.04398474097251892, -0.007810337468981743, -0.051665324717760086, 0.02257789671421051, 0.046908535063266754, 0.0779816135764122, -0.031154287979006767, -0.05419732630252838, 0.05085710808634758, -0.04963485151529312, 0.005914367735385895, -0.07497232407331467, -0.0562349297106266, -0.08074724674224854, -0.052188459783792496, 0.02410735934972763, 0.01503879576921463, -0.11678330600261688, -0.01830444298684597, 0.053484708070755005, -0.06319250166416168, -0.12612244486808777, 0.059165675193071365, 0.08494152128696442, 0.029409678652882576, -0.04068757966160774, 0.04700598120689392, 0.027692411094903946, 0.07321323454380035, 0.021788865327835083, -0.06640730053186417, -0.029207101091742516, 0.014259552583098412, 0.019424939528107643, -0.025328442454338074, -0.007601980119943619, 0.02007482759654522, -0.02461216226220131, -0.024278806522488594, 0.06114017218351364, -0.022330285981297493, 0.02221277914941311, 0.009717841632664204, -0.022195225581526756, -0.04761595278978348, -0.024063942953944206, -0.04452565312385559, 0.049127381294965744, 0.06379913538694382, -0.05476813018321991, -0.04727141186594963, -0.060415755957365036, -0.0106633510440588, 0.08850717544555664, -0.011342979036271572, -0.00824828166514635, -0.02719072997570038, -0.06904037296772003, 0.015143652446568012, 0.03302891552448273, 0.04111473634839058, 0.07325570285320282, -0.04966544732451439, 0.012737447395920753, 0.10086414217948914, -0.116165891289711, 0.03125261142849922, -0.09506552666425705, 0.030261456966400146, -0.03133096173405647, -1.1001163633229837e-32, -0.03805537149310112, 0.05162101611495018, -0.013975322246551514, 0.0029007233679294586, -0.0344691276550293, -0.05642746016383171, 0.01764500141143799, -0.029493113979697227, 0.05170287564396858, 0.03047407604753971, -0.01885179989039898, 0.05060765519738197, 0.09274833649396896, -0.021956657990813255, 0.09177238494157791, -0.03346729651093483, -0.02758472040295601, -0.01395954005420208, -0.02399688959121704, 0.11663877218961716, -0.03294248506426811, 0.021408382803201675, -0.08106998354196548, 0.07626579701900482, 0.018828824162483215, -0.001862717210315168, 0.03275343403220177, -0.0019505817908793688, 0.027739470824599266, -0.03070523589849472, -0.032896220684051514, 0.06582915782928467, -0.11961650848388672, 0.1013718992471695, -0.018984241411089897, -0.022393111139535904, 0.024149183183908463, 0.05576398968696594, -0.010206375271081924, -0.0291637871414423, 0.035412516444921494, -0.01556670106947422, -0.05856990069150925, -0.03280716761946678, -0.05347269028425217, -0.03173482418060303, -0.022278180345892906, -0.03719436749815941, -0.10469835251569748, -0.07757706195116043, 0.007914268411695957, -0.01976250484585762, 0.0645616352558136, 0.00032866696710698307, 0.00046309089520946145, 0.04822484031319618, 0.051195260137319565, -0.07473179697990417, -0.0024875584058463573, -0.10406176000833511, 0.0676778107881546, -0.038603730499744415, -0.04638294130563736, 0.02401931770145893, 0.012178472243249416, 0.019094232469797134, 0.030576879158616066, -0.008702931925654411, 0.03004816174507141, -0.12312755733728409, -0.020055321976542473, 0.010400628671050072, 0.035607755184173584, -0.08918891102075577, -0.02949841320514679, 0.009559341706335545, -0.0848746970295906, -0.035606030374765396, -0.04292028024792671, 0.04873599857091904, 0.04651046171784401, 0.004532065242528915, 0.08111225068569183, -0.00583646260201931, -0.003435546765103936, -0.03764359652996063, 0.012823986820876598, 0.10292922705411911, 0.022639449685811996, 0.030924418941140175, -0.052949219942092896, 0.08634277433156967, 0.011537141166627407, 0.05573292076587677, -0.008600261062383652, -6.168193777966735e-8, -0.05393838882446289, -0.09864579886198044, -0.028624914586544037, -0.04776639863848686, 0.036773473024368286, -0.0836801528930664, 0.01882042922079563, -0.01766173355281353, -0.03502949699759483, 0.03265887126326561, 0.09382310509681702, -0.0025731672067195177, -0.041282184422016144, 0.06593760848045349, -0.07190542668104172, 0.016142455860972404, -0.03894471377134323, 0.057701170444488525, 0.012348460033535957, -0.05622505024075508, -0.03184925392270088, 0.06463035941123962, 0.09210624545812607, -0.026174364611506462, -0.10116755962371826, -0.05931119620800018, -0.06191724166274071, 0.01796013116836548, -0.0329107791185379, 0.005732682999223471, 0.008578243665397167, 0.03549060970544815, 0.024697331711649895, -0.010462382808327675, -0.048493292182683945, 0.04952196776866913, 0.00529835931956768, 0.01794484443962574, -0.0027018075343221426, -0.02051413431763649, 0.028119459748268127, -0.02605242095887661, -0.0662863552570343, 0.015656212344765663, 0.032696355134248734, -0.015686238184571266, 0.01730172336101532, -0.006993243005126715, 0.04948332905769348, -0.036131519824266434, -0.048975348472595215, 0.03111855685710907, 0.03109414130449295, -0.015582921914756298, 0.016961457207798958, 0.06840866059064865, 0.04251047223806381, -0.0053829955868422985, 0.010524850338697433, 0.06190275028347969, -0.03776148706674576, 0.017338993027806282, 0.09284316748380661, 0.024461844936013222 ]
0.102301
## CLI ```bash openclaw plugins list openclaw plugins info openclaw plugins install # copy a local file/dir into ~/.openclaw/extensions/ openclaw plugins install ./extensions/voice-call # relative path ok openclaw plugins install ./plugin.tgz # install from a local tarball openclaw plugins install ./plugin.zip # install from a local zip openclaw plugins install -l ./extensions/voice-call # link (no copy) for dev openclaw plugins install @openclaw/voice-call # install from npm openclaw plugins update openclaw plugins update --all openclaw plugins enable openclaw plugins disable openclaw plugins doctor ``` `plugins update` 仅适用于在 `plugins.installs` 下跟踪的 npm 安装。 插件也可以注册自己的顶级命令(例如:`openclaw voicecall`)。 ## 插件 API(概述) 插件导出以下之一: - 函数:`(api) => { ... }` - 对象:`{ id, name, configSchema, register(api) { ... } }` ## 插件钩子 插件可以附带钩子并在运行时注册它们。这让插件可以捆绑事件驱动的自动化,而无需单独安装钩子包。 ### 示例 ``` import { registerPluginHooksFromDir } from "openclaw/plugin-sdk"; export default function register(api) { registerPluginHooksFromDir(api, "./hooks"); } ``` 注意事项: - 钩子目录遵循正常的钩子结构(`HOOK.md` + `handler.ts`)。 - 钩子资格规则仍然适用(操作系统/二进制文件/环境/配置要求)。 - 插件管理的钩子在 `openclaw hooks list` 中显示为 `plugin:`。 - 你不能通过 `openclaw hooks` 启用/禁用插件管理的钩子;而是启用/禁用插件。 ## 提供商插件(模型认证) 插件可以注册\*\*模型提供商认证\*\*流程,以便用户可以在 OpenClaw 内运行 OAuth 或 API 密钥设置(无需外部脚本)。 通过 `api.registerProvider(...)` 注册提供商。每个提供商暴露一个或多个认证方法(OAuth、API 密钥、设备码等)。这些方法驱动: - `openclaw models auth login --provider [--method ]` 示例: ```ts api.registerProvider({ id: "acme", label: "AcmeAI", auth: [ { id: "oauth", label: "OAuth", kind: "oauth", run: async (ctx) => { // Run OAuth flow and return auth profiles. return { profiles: [ { profileId: "acme:default", credential: { type: "oauth", provider: "acme", access: "...", refresh: "...", expires: Date.now() + 3600 \* 1000, }, }, ], defaultModel: "acme/opus-1", }; }, }, ], }); ``` 注意事项: - `run` 接收带有 `prompter`、`runtime`、`openUrl` 和 `oauth.createVpsAwareHandlers` 辅助工具的 `ProviderAuthContext`。 - 当需要添加默认模型或提供商配置时返回 `configPatch`。 - 返回 `defaultModel` 以便 `--set-default` 可以更新智能体默认值。 ### 注册消息渠道 插件可以注册\*\*渠道插件\*\*,其行为类似于内置渠道(WhatsApp、Telegram 等)。渠道配置位于 `channels.` 下,由你的渠道插件代码验证。 ```ts const myChannel = { id: "acmechat", meta: { id: "acmechat", label: "AcmeChat", selectionLabel: "AcmeChat (API)", docsPath: "/channels/acmechat", blurb: "demo channel plugin.", 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 () => ({ ok: true }), }, }; export default function (api) { api.registerChannel({ plugin: myChannel }); } ``` 注意事项: - 将配置放在 `channels.` 下(而不是 `plugins.entries`)。 - `meta.label` 用于 CLI/UI 列表中的标签。 - `meta.aliases` 添加用于规范化和 CLI 输入的备用 id。 - `meta.preferOver` 列出当两者都配置时要跳过自动启用的渠道 id。 - `meta.detailLabel` 和 `meta.systemImage` 让 UI 显示更丰富的渠道标签/图标。 ### 编写新的消息渠道(分步指南) 当你想要一个\*\*新的聊天界面\*\*("消息渠道")而不是模型提供商时使用此方法。 模型提供商文档位于 `/providers/\*` 下。 1. 选择 id + 配置结构 - 所有渠道配置位于 `channels.` 下。 - 对于多账户设置,优先使用 `channels..accounts.`。 2. 定义渠道元数据 - `meta.label`、`meta.selectionLabel`、`meta.docsPath`、`meta.blurb` 控制 CLI/UI 列表。 - `meta.docsPath` 应指向像 `/channels/` 这样的文档页面。 - `meta.preferOver` 让插件替换另一个渠道(自动启用优先选择它)。 - `meta.detailLabel` 和 `meta.systemImage` 被 UI 用于详细文本/图标。 3. 实现必需的适配器 - `config.listAccountIds` + `config.resolveAccount` - `capabilities`(聊天类型、媒体、线程等) - `outbound.deliveryMode` + `outbound.sendText`(用于基本发送) 4. 根据需要添加可选适配器 - `setup`(向导)、`security`(私信策略)、`status`(健康/诊断) - `gateway`(启动/停止/登录)、`mentions`、`threading`、`streaming` - `actions`(消息操作)、`commands`(原生命令行为) 5. 在插件中注册渠道 - `api.registerChannel({ plugin })` 最小配置示例: ```json5 { channels: { acmechat: { accounts: { default: { token: "ACME\_TOKEN", enabled: true }, }, }, }, } ``` 最小渠道插件(仅出站): ```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 }); } ``` 加载插件(扩展目录或 `plugins.load.paths`),重启 Gateway 网关,然后在配置中配置 `channels.`。 ### 智能体工具 参见专门指南:[插件智能体工具](/plugins/agent-tools)。 ### 注册 Gateway 网关 RPC 方法 ```ts export default function (api) { api.registerGatewayMethod("myplugin.status", ({ respond }) => { respond(true, { ok: true }); }); } ``` ### 注册 CLI 命令 ```ts export default function (api) { api.registerCli( ({ program }) => { program.command("mycmd").action(() => { console.log("Hello"); }); }, { commands: ["mycmd"] }, ); } ```
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/plugin.md
main
opebclaw
[ -0.09150068461894989, -0.014403917826712132, -0.05801546201109886, -0.01019258052110672, -0.004996342584490776, -0.07249200344085693, -0.0075371721759438515, -0.03884872421622276, -0.029596669599413872, -0.017713624984025955, 0.056337010115385056, -0.051434166729450226, -0.011716659180819988, 0.030195577070116997, 0.05961303412914276, 0.1253756433725357, 0.015322556719183922, 0.02240450121462345, 0.0196375735104084, -0.04431800916790962, -0.007178009022027254, 0.10985484719276428, 0.04533115029335022, -0.04169171303510666, -0.010123933665454388, -0.01775043085217476, -0.09114970266819, 0.011048013344407082, -0.01896815374493599, -0.017292160540819168, 0.07232589274644852, 0.08543002605438232, 0.07174594700336456, -0.04613184928894043, 0.09031056612730026, 0.08097394555807114, 0.02767433226108551, -0.012963726185262203, -0.12901106476783752, -0.006475983187556267, 0.04933548346161842, 0.021298669278621674, -0.018993936479091644, -0.08706295490264893, -0.1056731641292572, -0.11316196620464325, -0.06907748430967331, -0.09364178031682968, -0.011278493329882622, -0.02350541204214096, -0.06581561267375946, -0.11954821646213531, -0.03643076866865158, -0.07341079413890839, 0.018115663900971413, -0.055287957191467285, 0.006047644652426243, 0.004567358642816544, 0.015390228480100632, -0.06287688761949539, 0.03260618448257446, 0.033971354365348816, -0.0857294499874115, 0.04473119601607323, -0.13217417895793915, 0.04463144391775131, -0.07981883734464645, -0.031387992203235626, -0.03329003229737282, -0.03786088153719902, -0.057424526661634445, 0.02018129639327526, -0.01029086485505104, -0.03496916964650154, -0.04600955918431282, -0.02798978053033352, 0.0706566795706749, 0.016962571069598198, -0.05471193790435791, -0.08363409340381622, -0.035219959914684296, -0.047652605921030045, 0.00971921719610691, 0.003338827518746257, -0.004615812096744776, 0.14740847051143646, 0.004107764456421137, 0.013538206927478313, 0.0028995682951062918, 0.007508528418838978, 0.0038714210968464613, -0.08540692180395126, -0.021846778690814972, -0.012855774722993374, 0.002043739892542362, 0.0208016037940979, -0.043774478137493134, 0.004670616704970598, -0.01631573960185051, 0.07431109249591827, -0.03002651408314705, -0.05084826797246933, -0.023429038003087044, -0.05343365669250488, -0.058510418981313705, 0.07347024977207184, -0.045892562717199326, 0.08948150277137756, 0.03140546381473541, 0.021326476708054543, -0.004232194274663925, -0.07254496216773987, 0.10320393741130829, -0.11803007870912552, -0.05832616984844208, 0.027270210906863213, -0.04240141436457634, -0.04903923347592354, 0.08877141028642654, 0.06678642332553864, 0.05081402137875557, 0.07952827960252762, -0.0065557160414755344, 0.010352461598813534, 0.06519283354282379, 0.06366030126810074, 0.09127160906791687, 8.833642416441759e-33, 0.07960791140794754, -0.02594098262488842, 0.0021549793891608715, 0.05042092874646187, 0.10859771817922592, -0.01131352223455906, 0.02375219762325287, 0.02800784632563591, -0.09404445439577103, 0.048606522381305695, 0.040041472762823105, 0.01085135992616415, -0.09549377113580704, 0.00161647517234087, 0.020697349682450294, -0.03417025879025459, -0.02546970546245575, -0.019415415823459625, 0.031361255794763565, -0.058554165065288544, -0.021095359697937965, 0.02152961492538452, -0.017223957926034927, 0.06110748276114464, 0.023649418726563454, -0.0027127759531140327, 0.033612653613090515, -0.036779869347810745, 0.041790951043367386, 0.018344296142458916, 0.07261994481086731, -0.029961461201310158, -0.055689431726932526, 0.01482347585260868, -0.01623794436454773, 0.05326247215270996, -0.09287096560001373, -0.013302425853908062, -0.08007105439901352, -0.08897741138935089, 0.045056574046611786, 0.025395208969712257, -0.08497698605060577, -0.013512453064322472, 0.07744235545396805, -0.04927917569875717, -0.08074269443750381, 0.038454748690128326, 0.10247282683849335, -0.005872142501175404, 0.005528608337044716, 0.029993165284395218, 0.03938034549355507, 0.04712630435824394, 0.01342694740742445, -0.02662307396531105, -0.034552451223134995, -0.020891375839710236, 0.013315122574567795, -0.04551778733730316, 0.022098764777183533, 0.04093585163354874, 0.007908940315246582, -0.014752120710909367, 0.0395883247256279, -0.06226106360554695, 0.031140336766839027, 0.030199477449059486, 0.02176780253648758, 0.025509467348456383, -0.01034606620669365, -0.002644169144332409, 0.02536548115313053, 0.05553143844008446, -0.05034986138343811, -0.01791519857943058, -0.006133572198450565, -0.06788255274295807, 0.09920082986354828, -0.0029612400103360415, 0.009207010269165039, -0.03909558802843094, -0.06741883605718613, -0.004685003310441971, 0.07645387947559357, 0.031819090247154236, 0.028240902349352837, -0.030120544135570526, 0.02080589160323143, 0.06316771358251572, -0.0434551015496254, 0.011013667099177837, -0.10908256471157074, -0.048724401742219925, -0.05812559649348259, -1.1265117216287136e-32, -0.0193715151399374, 0.04477658495306969, 0.01122177392244339, 0.01575184427201748, -0.03242034837603569, -0.02412526123225689, -0.055098358541727066, -0.042358409613370895, 0.04871754348278046, -0.000504614959936589, -0.08373000472784042, 0.09056814014911652, 0.10090576857328415, -0.046757105737924576, 0.07772457599639893, -0.052910156548023224, -0.07852336019277573, -0.02507120370864868, 0.0051225218921899796, 0.050987180322408676, -0.06198357790708542, 0.05226338654756546, 0.008855143561959267, 0.06384959816932678, 0.03578253462910652, -0.007105408702045679, -0.0178152434527874, 0.06427530199289322, 0.0459127202630043, 0.0014515757793560624, -0.029597481712698936, 0.061890535056591034, -0.12985004484653473, 0.043766897171735764, -0.0376298688352108, 0.05014052242040634, 0.01371073443442583, 0.05148417875170708, 0.0202863197773695, -0.06563277542591095, 0.02602458745241165, -0.04946483299136162, -0.07255646586418152, -0.06988877058029175, -0.016898537054657936, -0.04474033787846565, -0.03461828827857971, -0.040552206337451935, -0.14226600527763367, -0.06628583371639252, -0.014693713746964931, 0.019634565338492393, 0.0138528598472476, 0.006308008451014757, 0.024690689519047737, 0.04111889377236366, 0.055548056960105896, -0.07226651906967163, -0.017039671540260315, -0.056895602494478226, 0.017641622573137283, -0.02074297145009041, -0.03675473853945732, 0.0019128862768411636, -0.058261625468730927, -0.0006615934544242918, -0.01788519322872162, 0.004922166932374239, -0.044704508036375046, -0.05190499499440193, -0.0655561089515686, 0.03074985183775425, -0.0005886901635676622, -0.11759597808122635, -0.008881822228431702, 0.029241936281323433, -0.0036968400236219168, -0.013961778953671455, -0.03912428766489029, 0.026664648205041885, 0.02250872179865837, -0.01665075682103634, 0.09644224494695663, 0.007270758040249348, -0.04155316576361656, -0.042561061680316925, 0.038125667721033096, 0.039090678095817566, 0.051402151584625244, 0.05134528875350952, -0.05341509357094765, 0.11660172045230865, 0.04755325987935066, 0.027967803180217743, -0.009682214818894863, -5.3308980341171264e-8, -0.07019266486167908, -0.052530720829963684, -0.05809704214334488, -0.006403397303074598, 0.037431877106428146, -0.035860270261764526, 0.018668612465262413, 0.014456079341471195, -0.0664985254406929, -0.009720557369291782, 0.10409196466207504, 0.016003811731934547, -0.026425406336784363, 0.08120347559452057, -0.06621374189853668, 0.07433730363845825, -0.02964547462761402, 0.04584014415740967, 0.01630309224128723, -0.049706436693668365, -0.01887829415500164, 0.07003497332334518, 0.06490208953619003, 0.02965758927166462, -0.08773861825466156, -0.07504136860370636, -0.06450354307889938, -0.0022289787884801626, -0.01650269515812397, 0.030877836048603058, 0.01763688027858734, 0.01809706725180149, -0.002287259791046381, -0.03084830567240715, 0.021613452583551407, -0.024145906791090965, -0.00876442901790142, -0.0039566499181091785, -0.003770028706640005, -0.019447611644864082, 0.029823537915945053, 0.008178116753697395, -0.03225385770201683, -0.03388083353638649, -0.04326668754220009, -0.015024987049400806, 0.011992000043392181, -0.027897680178284645, 0.00553889200091362, -0.004712447989732027, -0.0008271464612334967, 0.04134316369891167, -0.014549916610121727, 0.01394609920680523, 0.031221933662891388, 0.10235260426998138, 0.04728921130299568, 0.004907545167952776, 0.006067687179893255, 0.034738946706056595, -0.05610327795147896, -0.008662909269332886, 0.10662934184074402, 0.011326651088893414 ]
0.053835
方法 ```ts export default function (api) { api.registerGatewayMethod("myplugin.status", ({ respond }) => { respond(true, { ok: true }); }); } ``` ### 注册 CLI 命令 ```ts export default function (api) { api.registerCli( ({ program }) => { program.command("mycmd").action(() => { console.log("Hello"); }); }, { commands: ["mycmd"] }, ); } ``` ### 注册自动回复命令 插件可以注册自定义斜杠命令,\*\*无需调用 AI 智能体\*\*即可执行。这对于切换命令、状态检查或不需要 LLM 处理的快速操作很有用。 ```ts export default function (api) { api.registerCommand({ name: "mystatus", description: "Show plugin status", handler: (ctx) => ({ text: `Plugin is running! Channel: ${ctx.channel}`, }), }); } ``` 命令处理程序上下文: - `senderId`:发送者的 ID(如可用) - `channel`:发送命令的渠道 - `isAuthorizedSender`:发送者是否是授权用户 - `args`:命令后传递的参数(如果 `acceptsArgs: true`) - `commandBody`:完整的命令文本 - `config`:当前 OpenClaw 配置 命令选项: - `name`:命令名称(不带前导 `/`) - `description`:命令列表中显示的帮助文本 - `acceptsArgs`:命令是否接受参数(默认:false)。如果为 false 且提供了参数,命令不会匹配,消息会传递给其他处理程序 - `requireAuth`:是否需要授权发送者(默认:true) - `handler`:返回 `{ text: string }` 的函数(可以是异步的) 带授权和参数的示例: ```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}` }; }, }); ``` 注意事项: - 插件命令在内置命令和 AI 智能体\*\*之前\*\*处理 - 命令全局注册,适用于所有渠道 - 命令名称不区分大小写(`/MyStatus` 匹配 `/mystatus`) - 命令名称必须以字母开头,只能包含字母、数字、连字符和下划线 - 保留的命令名称(如 `help`、`status`、`reset` 等)不能被插件覆盖 - 跨插件的重复命令注册将失败并显示诊断错误 ### 注册后台服务 ```ts export default function (api) { api.registerService({ id: "my-service", start: () => api.logger.info("ready"), stop: () => api.logger.info("bye"), }); } ``` ## 命名约定 - Gateway 网关方法:`pluginId.action`(例如:`voicecall.status`) - 工具:`snake\_case`(例如:`voice\_call`) - CLI 命令:kebab 或 camel,但避免与核心命令冲突 ## Skills 插件可以在仓库中附带 Skills(`skills//SKILL.md`)。 使用 `plugins.entries..enabled`(或其他配置门控)启用它,并确保它存在于你的工作区/托管 Skills 位置。 ## 分发(npm) 推荐的打包方式: - 主包:`openclaw`(本仓库) - 插件:`@openclaw/\*` 下的独立 npm 包(例如:`@openclaw/voice-call`) 发布契约: - 插件 `package.json` 必须包含带有一个或多个入口文件的 `openclaw.extensions`。 - 入口文件可以是 `.js` 或 `.ts`(jiti 在运行时加载 TS)。 - `openclaw plugins install ` 使用 `npm pack`,提取到 `~/.openclaw/extensions//`,并在配置中启用它。 - 配置键稳定性:作用域包被规范化为 `plugins.entries.\*` 的\*\*无作用域\*\* id。 ## 示例插件:Voice Call 本仓库包含一个语音通话插件(Twilio 或 log 回退): - 源码:`extensions/voice-call` - Skills:`skills/voice-call` - CLI:`openclaw voicecall start|status` - 工具:`voice\_call` - RPC:`voicecall.start`、`voicecall.status` - 配置(twilio):`provider: "twilio"` + `twilio.accountSid/authToken/from`(可选 `statusCallbackUrl`、`twimlUrl`) - 配置(dev):`provider: "log"`(无网络) 参见 [Voice Call](/plugins/voice-call) 和 `extensions/voice-call/README.md` 了解设置和用法。 ## 安全注意事项 插件与 Gateway 网关在同一进程中运行。将它们视为受信任的代码: - 只安装你信任的插件。 - 优先使用 `plugins.allow` 允许列表。 - 更改后重启 Gateway 网关。 ## 测试插件 插件可以(也应该)附带测试: - 仓库内插件可以在 `src/\*\*` 下保留 Vitest 测试(例如:`src/plugins/voice-call.plugin.test.ts`)。 - 单独发布的插件应运行自己的 CI(lint/构建/测试)并验证 `openclaw.extensions` 指向构建的入口点(`dist/index.js`)。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/plugin.md
main
opebclaw
[ -0.10201922059059143, 0.006993934512138367, -0.05840824916958809, 0.012530773878097534, -0.060933563858270645, -0.0011906381696462631, 0.0514352023601532, 0.12261347472667694, -0.0005532156792469323, 0.04490038380026817, 0.006387108471244574, -0.0888105258345604, -0.0035627486649900675, 0.017599565908312798, 0.1158749982714653, 0.022791491821408272, -0.06601489335298538, -0.03812083974480629, -0.07802119851112366, -0.10635583847761154, 0.019340181723237038, 0.050367534160614014, 0.013888377696275711, -0.008306431584060192, -0.03281489759683609, -0.0232432559132576, -0.005008247215300798, -0.03652116656303406, 0.03113260120153427, 0.03954276442527771, 0.006004034075886011, 0.025782233104109764, -0.028981883078813553, 0.004430543165653944, -0.023273011669516563, 0.1416657567024231, -0.013599003665149212, -0.08771677315235138, 0.043662238866090775, -0.02838023565709591, 0.01584961824119091, 0.03281345218420029, -0.02174432948231697, -0.12157943099737167, 0.08267946541309357, -0.0071483189240098, -0.07579874992370605, -0.0036118647549301386, -0.05697000026702881, 0.06210699304938316, -0.023740563541650772, 0.039068613201379776, -0.023836897686123848, -0.06352204829454422, 0.07282315939664841, -0.017242981120944023, -0.05814063176512718, -0.01856062188744545, 0.023992205038666725, -0.006206957157701254, -0.03485409542918205, -0.0590151846408844, 0.049888975918293, 0.011326481588184834, -0.05581307411193848, -0.0189389456063509, -0.04411929473280907, 0.017264721915125847, 0.027003727853298187, -0.00892762839794159, -0.10897617787122726, -0.02781105600297451, -0.007384475786238909, 0.010924075730144978, -0.029303668066859245, -0.061677731573581696, -0.002142705023288727, 0.03836731240153313, -0.034066829830408096, -0.11120744049549103, 0.06315828859806061, 0.021625995635986328, 0.043428029865026474, 0.09726737439632416, 0.008702038787305355, 0.1178661659359932, -0.050255220383405685, -0.03452267497777939, 0.07144274562597275, 0.01037916261702776, 0.0668744444847107, -0.028059666976332664, -0.02117931842803955, 0.03496265783905983, -0.03471149876713753, 0.03841845691204071, -0.04022987559437752, 0.019991520792245865, -0.08740690350532532, 0.06654472649097443, -0.001014311914332211, -0.0394102968275547, -0.023893816396594048, 0.0016241248231381178, 0.045969463884830475, -0.006657553371042013, -0.02330620586872101, -0.0734390988945961, 0.03127757087349892, 0.04426455497741699, -0.026700034737586975, 0.05333397909998894, -0.005585371050983667, -0.028570381924510002, -0.0165282990783453, 0.04705251380801201, 0.02182663418352604, -0.017444884404540062, 0.023879671469330788, 0.057574134320020676, 0.06144743040204048, -0.023741578683257103, -0.042650848627090454, 0.004698943346738815, 0.04707741737365723, -0.035010866820812225, 0.17227058112621307, -1.565201584846585e-33, -0.019745413213968277, -0.0954374447464943, -0.01046714000403881, 0.03547832369804382, 0.03210964798927307, -0.049570851027965546, 0.05328503996133804, 0.003427945775911212, -0.09414571523666382, 0.030208684504032135, -0.008183445781469345, 0.014015461318194866, -0.0804143100976944, 0.01707794889807701, -0.06482261419296265, 0.0061088609509170055, 0.018703466281294823, -0.044251713901758194, 0.039357345551252365, -0.028452560305595398, 0.05964559316635132, 0.023615160956978798, 0.01660570316016674, 0.005692583043128252, 0.035595234483480453, 0.055315371602773666, 0.027433348819613457, 0.010964002460241318, -0.006044005509465933, 0.014072240330278873, 0.06767447292804718, -0.004111133981496096, -0.020618246868252754, 0.03881433606147766, 0.0013384222984313965, 0.003552449634298682, -0.0591973140835762, -0.006576028652489185, -0.12554126977920532, -0.022039970383048058, -0.030632229521870613, -0.008555008098483086, -0.06797520816326141, 0.03040849044919014, -0.0546649806201458, -0.03267047926783562, -0.061706651002168655, -0.02006351761519909, 0.13676519691944122, -0.07306148111820221, -0.053971074521541595, 0.07646581530570984, 0.01813465543091297, -0.040994174778461456, 0.08258979022502899, -0.023882810026407242, -0.07122578471899033, 0.004429484251886606, -0.0015058392891660333, -0.09479554742574692, -0.026200106367468834, 0.00769320921972394, -0.021483158692717552, 0.0526825450360775, 0.04248754680156708, -0.007764351088553667, -0.022095922380685806, -0.012704954482614994, 0.015339149162173271, -0.08621819317340851, 0.005453744903206825, -0.03754233568906784, -0.033485498279333115, 0.01816662773489952, 0.03208379074931145, -0.01010868139564991, 0.04228031262755394, 0.00570756895467639, -0.023021208122372627, -0.07728251814842224, 0.007909221574664116, -0.05792289972305298, -0.11531144380569458, 0.07708171755075455, 0.07768189907073975, 0.02121284417808056, 0.011994956061244011, -0.025126758962869644, -0.010284640826284885, 0.0002261301560793072, -0.09630100429058075, 0.046427469700574875, -0.028556574136018753, -0.011277005076408386, -0.058794308453798294, -3.053401310216602e-33, 0.06997472792863846, 0.04128590598702431, -0.057231053709983826, 0.02912968024611473, -0.12757468223571777, -0.04418695345520973, 0.0599215142428875, 0.04817795753479004, 0.001242621336132288, 0.07068534940481186, 0.00824184063822031, 0.009061232209205627, 0.007936542853713036, 0.05001967027783394, 0.03816923126578331, 0.05818053334951401, -0.08402514457702637, 0.0367116741836071, 0.006319364532828331, 0.00530121847987175, -0.015518426895141602, 0.07269397377967834, -0.08818134665489197, 0.05740625411272049, -0.06570716947317123, 0.02908482775092125, 0.02095877192914486, 0.049418531358242035, 0.01403067447245121, 0.013636245392262936, 0.0029176874086260796, 0.07226315885782242, -0.11510886251926422, 0.10891633480787277, -0.0346723273396492, -0.10902583599090576, 0.06644856184720993, 0.06775286793708801, -0.05964604392647743, 0.017980191856622696, 0.02974805235862732, -0.03505708649754524, -0.05649341642856598, 0.01713886298239231, 0.0181308351457119, -0.037957385182380676, -0.010372319258749485, -0.016063006594777107, -0.053065646439790726, -0.07726142555475235, 0.04018327221274376, -0.05032224580645561, -0.0008198427967727184, -0.004813552834093571, 0.023803189396858215, 0.011381879448890686, 0.05703337863087654, -0.1670110821723938, -0.0016094216844066978, -0.04462290555238724, 0.042534492909908295, -0.055948060005903244, 0.03064686246216297, -0.04687683284282684, -0.027975499629974365, -0.009584258310496807, -0.00920882262289524, -0.005382819101214409, 0.1279687136411667, -0.0374617762863636, 0.015201144851744175, -0.0129164420068264, 0.030655108392238617, -0.0592806302011013, 0.05046999081969261, 0.04524696618318558, -0.028702853247523308, -0.05782495066523552, 0.051140088587999344, 0.08170763403177261, 0.021905938163399696, -0.0009427427430637181, 0.026919735595583916, 0.002567985560745001, -0.05771232023835182, -0.041199762374162674, 0.049599096179008484, 0.09658054262399673, 0.009462052956223488, 0.015450660139322281, -0.024470645934343338, 0.054040100425481796, 0.002977704629302025, -0.0038954445626586676, -0.08262954652309418, -5.043282413907946e-8, -0.13082553446292877, -0.06288772076368332, -0.02077518403530121, -0.06360287219285965, -0.041406307369470596, -0.03912597522139549, -0.05553283542394638, -0.10094466805458069, -0.03007984533905983, -0.0949598178267479, -0.0334085114300251, 0.0544879250228405, -0.048821207135915756, -0.01268741488456726, -0.04772936925292015, -0.015696512535214424, -0.030326994135975838, 0.08943427354097366, -0.0033876856323331594, 0.0049301921389997005, -0.0297834575176239, 0.008359329774975777, 0.03533856198191643, -0.0659383162856102, 0.0847715437412262, 0.0069684735499322414, -0.02263982966542244, 0.06227565556764603, -0.07673491537570953, 0.02246517315506935, -0.0012787730665877461, -0.0009867479093372822, 0.06368905305862427, 0.005499126389622688, -0.03879638388752937, -0.013124587014317513, 0.10314446687698364, -0.06382285803556442, 0.03667828440666199, -0.051522765308618546, 0.07245273143053055, 0.009583145380020142, -0.03910284861922264, 0.009479165077209473, 0.014903324656188488, -0.026281220838427544, 0.0610826201736927, 0.008695644326508045, 0.11169953644275665, -0.04328951984643936, -0.005190268158912659, -0.026602692902088165, -0.01367855817079544, 0.047182753682136536, -0.0026892952155321836, -0.014538922347128391, -0.013234086334705353, -0.015137788839638233, -0.010977589525282383, 0.02657710388302803, -0.022223252803087234, 0.06834129989147186, 0.025982966646552086, -0.03968018665909767 ]
0.129605
# TUI(终端 UI) ## 快速开始 1. 启动 Gateway 网关。 ```bash openclaw gateway ``` 2. 打开 TUI。 ```bash openclaw tui ``` 3. 输入消息并按 Enter。 远程 Gateway 网关: ```bash openclaw tui --url ws://: --token ``` 如果你的 Gateway 网关使用密码认证,请使用 `--password`。 ## 你看到的内容 - 标题栏:连接 URL、当前智能体、当前会话。 - 聊天日志:用户消息、助手回复、系统通知、工具卡片。 - 状态行:连接/运行状态(连接中、运行中、流式传输中、空闲、错误)。 - 页脚:连接状态 + 智能体 + 会话 + 模型 + think/verbose/reasoning + token 计数 + 投递状态。 - 输入:带自动完成的文本编辑器。 ## 心智模型:智能体 + 会话 - 智能体是唯一的标识符(例如 `main`、`research`)。Gateway 网关公开列表。 - 会话属于当前智能体。 - 会话键存储为 `agent::`。 - 如果你输入 `/session main`,TUI 会将其扩展为 `agent::main`。 - 如果你输入 `/session agent:other:main`,你会显式切换到该智能体会话。 - 会话范围: - `per-sender`(默认):每个智能体有多个会话。 - `global`:TUI 始终使用 `global` 会话(选择器可能为空)。 - 当前智能体 + 会话始终在页脚中可见。 ## 发送 + 投递 - 消息发送到 Gateway 网关;默认情况下不投递到提供商。 - 开启投递: - `/deliver on` - 或设置面板 - 或使用 `openclaw tui --deliver` 启动 ## 选择器 + 覆盖层 - 模型选择器:列出可用模型并设置会话覆盖。 - 智能体选择器:选择不同的智能体。 - 会话选择器:仅显示当前智能体的会话。 - 设置:切换投递、工具输出展开和思考可见性。 ## 键盘快捷键 - Enter:发送消息 - Esc:中止活动运行 - Ctrl+C:清除输入(按两次退出) - Ctrl+D:退出 - Ctrl+L:模型选择器 - Ctrl+G:智能体选择器 - Ctrl+P:会话选择器 - Ctrl+O:切换工具输出展开 - Ctrl+T:切换思考可见性(重新加载历史) ## 斜杠命令 核心: - `/help` - `/status` - `/agent `(或 `/agents`) - `/session `(或 `/sessions`) - `/model `(或 `/models`) 会话控制: - `/think ` - `/verbose ` - `/reasoning ` - `/usage ` - `/elevated `(别名:`/elev`) - `/activation ` - `/deliver ` 会话生命周期: - `/new` 或 `/reset`(重置会话) - `/abort`(中止活动运行) - `/settings` - `/exit` 其他 Gateway 网关斜杠命令(例如 `/context`)会转发到 Gateway 网关并显示为系统输出。参见[斜杠命令](/tools/slash-commands)。 ## 本地 shell 命令 - 以 `!` 为前缀的行会在 TUI 主机上运行本地 shell 命令。 - TUI 每个会话会提示一次以允许本地执行;拒绝会在该会话中禁用 `!`。 - 命令在 TUI 工作目录中以全新的非交互式 shell 运行(无持久化 `cd`/环境变量)。 - 单独的 `!` 会作为普通消息发送;前导空格不会触发本地执行。 ## 工具输出 - 工具调用显示为带有参数 + 结果的卡片。 - Ctrl+O 在折叠/展开视图之间切换。 - 工具运行时,部分更新会流式传输到同一张卡片。 ## 历史 + 流式传输 - 连接时,TUI 加载最新历史(默认 200 条消息)。 - 流式响应原地更新直到完成。 - TUI 还监听智能体工具事件以获得更丰富的工具卡片。 ## 连接详情 - TUI 以 `mode: "tui"` 向 Gateway 网关注册。 - 重新连接会显示系统消息;事件间隙会在日志中显示。 ## 选项 - `--url `:Gateway 网关 WebSocket URL(默认为配置或 `ws://127.0.0.1:`) - `--token `:Gateway 网关令牌(如果需要) - `--password `:Gateway 网关密码(如果需要) - `--session `:会话键(默认:`main`,或范围为全局时为 `global`) - `--deliver`:将助手回复投递到提供商(默认关闭) - `--thinking `:覆盖发送的思考级别 - `--timeout-ms `:智能体超时(毫秒)(默认为 `agents.defaults.timeoutSeconds`) ## 故障排除 发送消息后没有输出: - 在 TUI 中运行 `/status` 以确认 Gateway 网关已连接且处于空闲/忙碌状态。 - 检查 Gateway 网关日志:`openclaw logs --follow`。 - 确认智能体可以运行:`openclaw status` 和 `openclaw models status`。 - 如果你期望消息出现在聊天渠道中,请启用投递(`/deliver on` 或 `--deliver`)。 - `--history-limit `:要加载的历史条目数(默认 200) ## 故障排除 - `disconnected`:确保 Gateway 网关正在运行且你的 `--url/--token/--password` 正确。 - 选择器中没有智能体:检查 `openclaw agents list` 和你的路由配置。 - 会话选择器为空:你可能处于全局范围或还没有会话。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/tui.md
main
opebclaw
[ -0.07367155700922012, -0.0078033870086073875, -0.06799355149269104, -0.015011057257652283, -0.02520475722849369, -0.048136208206415176, 0.026439210399985313, 0.01563674584031105, 0.07397917658090591, -0.0009701319504529238, 0.057935118675231934, -0.027100400999188423, 0.11650578677654266, -0.04068632051348686, 0.027614666149020195, 0.09459303319454193, -0.11843790113925934, 0.05660543218255043, -0.05037141591310501, -0.07447731494903564, -0.06380702555179596, -0.013585216365754604, -0.000008142753358697519, -0.0028018213342875242, -0.057235315442085266, 0.05640139430761337, -0.019572492688894272, 0.0224617850035429, -0.02693752385675907, -0.025123173370957375, 0.013598176650702953, 0.11081481724977493, -0.05529365316033363, 0.0037022714968770742, 0.07460299134254456, 0.075423464179039, 0.012741046026349068, -0.017581768333911896, 0.006773027591407299, -0.08648908138275146, -0.006695162039250135, -0.004427011590451002, -0.008284327574074268, 0.011431167833507061, -0.004068189300596714, -0.005599368363618851, -0.06963442265987396, -0.04752569645643234, -0.0757145881652832, -0.04047372192144394, -0.07214280962944031, -0.027804702520370483, -0.010958915576338768, 0.0075509026646614075, -0.02468789555132389, -0.019126860424876213, -0.06666877865791321, 0.022098276764154434, 0.037594985216856, -0.07041312009096146, -0.0355522483587265, -0.00677472772076726, 0.007481465581804514, 0.01731085777282715, -0.10126947611570358, -0.015455194748938084, -0.061835721135139465, 0.00786592997610569, 0.054314617067575455, 0.06492006033658981, -0.09091885387897491, 0.020556623116135597, -0.06067186966538429, -0.050114721059799194, -0.03240697458386421, -0.0017364636296406388, 0.07627160847187042, -0.006605229340493679, -0.10921920090913773, -0.10985054075717926, -0.00922622811049223, 0.03700246289372444, 0.026912899687886238, 0.012224274687469006, -0.009149577468633652, 0.11021576076745987, -0.0823940634727478, -0.01230335421860218, 0.07539667189121246, -0.01684596762061119, 0.06068553775548935, -0.07333555817604065, 0.015403219498693943, -0.011553477495908737, 0.08954691141843796, -0.07890675961971283, 0.01725335605442524, 0.017267728224396706, -0.08247632533311844, 0.06263311207294464, 0.023760998621582985, 0.019367985427379608, -0.01798420399427414, -0.04918853938579559, 0.011852264404296875, 0.03539076820015907, 0.05978234112262726, 0.08334334194660187, 0.0744495615363121, 0.010008123703300953, -0.006199581082910299, -0.06623272597789764, 0.04634623974561691, -0.08278229087591171, -0.03356223925948143, 0.06737521290779114, -0.00888821855187416, -0.04938141256570816, 0.07572176307439804, 0.030073394998908043, 0.04160786047577858, -0.00946480967104435, -0.0856408104300499, -0.047697003930807114, -0.05341345816850662, -0.07010916620492935, 0.10889466106891632, 4.25184204545091e-33, -0.02061062678694725, 0.018097003921866417, -0.007716173771768808, -0.04259408637881279, 0.10305182635784149, -0.014999031089246273, 0.011850418522953987, -0.010306086391210556, -0.11728355288505554, 0.04972592741250992, -0.01569802686572075, -0.01896623708307743, -0.07947501540184021, 0.008774759247899055, -0.007934952154755592, -0.016331227496266365, -0.09360678493976593, -0.036902569234371185, 0.0341578833758831, -0.07611534744501114, 0.05504286289215088, -0.0018995244754478335, 0.018714124336838722, 0.008601284585893154, 0.0174759142100811, -0.017708173021674156, 0.05368760600686073, -0.00724691292271018, -0.01585247740149498, 0.017493553459644318, 0.04086260125041008, -0.044056084007024765, -0.08741261810064316, 0.015329813584685326, -0.058644216507673264, 0.007432104088366032, 0.023744815960526466, -0.017390144988894463, -0.017247363924980164, -0.03650251030921936, -0.07892092317342758, 0.0016858697636052966, -0.0063008638098835945, 0.02794007956981659, 0.007465806324034929, -0.05483327433466911, -0.14398737251758575, 0.038000695407390594, 0.033907629549503326, 0.011940423399209976, -0.06956747174263, 0.04500889033079147, 0.005704179871827364, -0.03248703107237816, -0.0016637330409139395, -0.06802709400653839, -0.0717334970831871, 0.005954555235803127, -0.02231925167143345, 0.007331814616918564, 0.00655388506129384, 0.004681604448705912, 0.04859313368797302, 0.012031727470457554, 0.06308094412088394, 0.034344520419836044, -0.00538688013330102, 0.011519480496644974, 0.03411290422081947, -0.02101350761950016, -0.10890543460845947, 0.021626170724630356, 0.02806154079735279, 0.030532274395227432, -0.013637126423418522, -0.08219023793935776, -0.022508403286337852, -0.028969990089535713, 0.06851959228515625, -0.0035348650999367237, -0.007313319016247988, -0.09102792292833328, -0.10487069189548492, 0.07330185920000076, 0.012439742684364319, 0.01803731732070446, 0.035712119191884995, -0.015077034942805767, -0.03498556464910507, -0.012728316709399223, -0.04190690815448761, 0.02667914144694805, -0.013324831612408161, -0.011814575642347336, -0.019271859899163246, -8.59798592114463e-33, -0.02794666774570942, 0.07951703667640686, 0.013441139832139015, 0.00349571299739182, -0.042001109570264816, -0.055810216814279556, 0.030426252633333206, -0.062287259846925735, 0.004929149057716131, 0.05221317335963249, -0.05582515895366669, 0.06886664032936096, -0.026812683790922165, 0.014465770684182644, 0.053921736776828766, -0.030885646119713783, 0.0013545439578592777, 0.023574022576212883, -0.018883734941482544, 0.06432336568832397, -0.06407260149717331, 0.049928903579711914, -0.18331870436668396, -0.0029208778869360685, 0.0324157178401947, 0.07154875248670578, 0.06816050410270691, 0.034011490643024445, 0.017040161415934563, 0.036537665873765945, 0.009183051995933056, 0.03836769610643387, -0.061594408005476, 0.11832541972398758, -0.04285368323326111, -0.0352352149784565, 0.016160625964403152, 0.04038745164871216, -0.07053462415933609, -0.01207970455288887, 0.05547081306576729, -0.047461867332458496, 0.011167695745825768, -0.03938955068588257, -0.03614197298884392, 0.03798581287264824, -0.058122746646404266, 0.017784658819437027, -0.12153708934783936, -0.033506885170936584, 0.0767073854804039, -0.003655713051557541, -0.04264238476753235, -0.03952162340283394, 0.05649575963616371, 0.0025725574232637882, 0.03376143053174019, -0.08399160206317902, -0.10585881024599075, -0.13269393146038055, 0.02558615431189537, 0.01333051547408104, 0.018179822713136673, 0.038754723966121674, -0.014241854660212994, -0.05796627327799797, -0.00752447172999382, 0.030956478789448738, -0.005524129141122103, -0.07187208533287048, -0.023459237068891525, 0.015680592507123947, 0.05426795408129692, -0.04098052904009819, 0.1281849443912506, 0.023545041680336, -0.0008310310076922178, 0.029590822756290436, -0.02185872383415699, 0.0004990477464161813, -0.03783223032951355, -0.05402611196041107, 0.0577344074845314, 0.049323201179504395, -0.010827627032995224, -0.01789473183453083, -0.004608148243278265, 0.13253383338451385, -0.002259400673210621, 0.027347415685653687, -0.014221434481441975, 0.03383062407374382, 0.01814393512904644, 0.05271557718515396, -0.0027837418019771576, -4.97784320430128e-8, -0.04575308784842491, -0.12294347584247589, -0.07914301007986069, -0.014151054434478283, -0.04965808615088463, -0.0075032711029052734, -0.03071107342839241, -0.01604478247463703, -0.07472413033246994, -0.026355568319559097, 0.05313987284898758, 0.05752881243824959, -0.07946036010980606, 0.005427268333733082, -0.11821769177913666, 0.08233386278152466, -0.05826034024357796, -0.036619313061237335, 0.029552696272730827, -0.08933898061513901, -0.021873096004128456, 0.05401910841464996, -0.011484794318675995, -0.01859232410788536, -0.031603239476680756, 0.04735235869884491, -0.08278143405914307, 0.03053249605000019, -0.07851217687129974, -0.05002189427614212, 0.08206160366535187, 0.0006500515155494213, 0.03385714069008827, -0.03634984418749809, -0.004762354306876659, -0.03638548031449318, 0.030731622129678726, -0.0213189534842968, -0.05129950866103172, -0.041058238595724106, 0.05370447784662247, -0.05313096195459366, -0.0061870152130723, -0.00019893288845196366, 0.017434056848287582, -0.016405075788497925, 0.08373434841632843, 0.029961034655570984, 0.05234307795763016, -0.04727454110980034, -0.03843634948134422, -0.0041257236152887344, 0.04795081540942192, -0.031175028532743454, 0.030388565734028816, 0.04407009854912758, 0.0038428332190960646, 0.011626786552369595, 0.03147312253713608, 0.047318097203969955, 0.04165318235754967, 0.1105240136384964, 0.017713434994220734, -0.002964964136481285 ]
0.073863
# 环境变量 OpenClaw 从多个来源拉取环境变量。规则是\*\*永不覆盖现有值\*\*。 ## 优先级(从高到低) 1. \*\*进程环境\*\*(Gateway 网关进程从父 shell/守护进程已有的内容)。 2. \*\*当前工作目录中的 `.env`\*\*(dotenv 默认;不覆盖)。 3. \*\*全局 `.env`\*\* 位于 `~/.openclaw/.env`(即 `$OPENCLAW\_STATE\_DIR/.env`;不覆盖)。 4. \*\*配置 `env` 块\*\* 位于 `~/.openclaw/openclaw.json`(仅在缺失时应用)。 5. \*\*可选的登录 shell 导入\*\*(`env.shellEnv.enabled` 或 `OPENCLAW\_LOAD\_SHELL\_ENV=1`),仅对缺失的预期键名应用。 如果配置文件完全缺失,步骤 4 将被跳过;如果启用了 shell 导入,它仍会运行。 ## 配置 `env` 块 两种等效方式设置内联环境变量(都是非覆盖的): ```json5 { env: { OPENROUTER\_API\_KEY: "sk-or-...", vars: { GROQ\_API\_KEY: "gsk-...", }, }, } ``` ## Shell 环境导入 `env.shellEnv` 运行你的登录 shell 并仅导入\*\*缺失的\*\*预期键名: ```json5 { env: { shellEnv: { enabled: true, timeoutMs: 15000, }, }, } ``` 环境变量等效项: - `OPENCLAW\_LOAD\_SHELL\_ENV=1` - `OPENCLAW\_SHELL\_ENV\_TIMEOUT\_MS=15000` ## 配置中的环境变量替换 你可以使用 `${VAR\_NAME}` 语法在配置字符串值中直接引用环境变量: ```json5 { models: { providers: { "vercel-gateway": { apiKey: "${VERCEL\_GATEWAY\_API\_KEY}", }, }, }, } ``` 完整详情参见[配置:环境变量替换](/gateway/configuration#env-var-substitution-in-config)。 ## 相关内容 - [Gateway 网关配置](/gateway/configuration) - [常见问题:环境变量和 .env 加载](/help/faq#env-vars-and-env-loading) - [模型概述](/concepts/models)
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/environment.md
main
opebclaw
[ -0.0037646733690053225, 0.04154800623655319, -0.01198142021894455, -0.031191132962703705, -0.020732533186674118, -0.037097129970788956, 0.005263742990791798, -0.02950900048017502, 0.027807436883449554, -0.04876640439033508, 0.09355801343917847, -0.046987030655145645, 0.031234346330165863, -0.04922695830464363, 0.052170950919389725, 0.0818280279636383, -0.030865555629134178, 0.07571452856063843, -0.013969019055366516, -0.03660636395215988, -0.021363241598010063, -0.029796196147799492, 0.045449964702129364, -0.06750329583883286, -0.08012759685516357, -0.011906305328011513, 0.007600641343742609, 0.024668360128998756, -0.0421658530831337, -0.05717112496495247, -0.013385540805757046, 0.06022774428129196, -0.053544700145721436, 0.013954149559140205, 0.1614939272403717, 0.060177743434906006, 0.01899322122335434, -0.025482434779405594, -0.07569313049316406, 0.0209690872579813, 0.05219297483563423, 0.04847016930580139, 0.025539126247167587, -0.061042994260787964, -0.011685527861118317, -0.028493758291006088, -0.06178486719727516, -0.11169002950191498, -0.04629478603601456, -0.0635867714881897, -0.10815881192684174, 0.002407550113275647, -0.042562711983919144, -0.070556640625, 0.028251158073544502, -0.015296478755772114, 0.007592275273054838, 0.048844002187252045, 0.07862938940525055, 0.01120677962899208, 0.025156119838356972, 0.06381905823945999, -0.03568508103489876, -0.012662931345403194, -0.0697898417711258, -0.0013578024227172136, -0.05359779670834541, 0.022570429369807243, -0.01620207540690899, -0.023581163957715034, -0.04545712098479271, 0.02761705592274666, -0.06246574595570564, -0.030534174293279648, -0.061891376972198486, -0.029196934774518013, 0.008204225450754166, 0.005230574402958155, -0.10544300079345703, -0.11775258928537369, -0.0660509318113327, -0.0036854082718491554, 0.007764133159071207, 0.009423110634088516, -0.027013160288333893, 0.13143257796764374, -0.09852993488311768, -0.010325741954147816, 0.06820207834243774, 0.024154147133231163, 0.03171984851360321, -0.10484501719474792, 0.030597295612096786, 0.02574237436056137, 0.030079226940870285, 0.01548063661903143, 0.04919818043708801, 0.033724911510944366, -0.049086038023233414, 0.04274357482790947, 0.010935685597360134, -0.0028285845182836056, 0.04281848669052124, 0.011556624434888363, -0.07453116774559021, 0.05193847045302391, -0.02759316749870777, 0.08332230150699615, 0.052913736552000046, -0.009696772322058678, 0.02286429889500141, -0.04814676567912102, 0.04444342851638794, -0.12831765413284302, -0.06545152515172958, -0.008273819461464882, -0.00990608986467123, -0.03680749610066414, 0.036563690751791, 0.04875809699296951, 0.08133877068758011, -0.027457259595394135, -0.05205199122428894, -0.04422623664140701, -0.0240427628159523, -0.0478467233479023, 0.10772097855806351, 5.000842801223886e-33, 0.01872849650681019, -0.016057591885328293, 0.033275242894887924, -0.022901665419340134, 0.09211982786655426, -0.0995708629488945, 0.034638844430446625, -0.02407689020037651, -0.15193024277687073, 0.06465102732181549, -0.00696163484826684, 0.031946901232004166, -0.10166367143392563, -0.018061259761452675, 0.018409499898552895, -0.03826310858130455, 0.007342407014220953, 0.012284547090530396, 0.06665834784507751, -0.041735295206308365, 0.028947630897164345, 0.016475608572363853, -0.030121224001049995, -0.02018694207072258, -0.03549171984195709, 0.007659578695893288, 0.04044179618358612, -0.00783712137490511, -0.006173501256853342, 0.017989302054047585, 0.07974512130022049, -0.005286126397550106, -0.031141720712184906, 0.05340573564171791, -0.08943231403827667, 0.013120862655341625, -0.007929498329758644, 0.009465992450714111, -0.031566523015499115, -0.0535544790327549, 0.010778350755572319, -0.03463611751794815, -0.03519190102815628, 0.04957977682352066, -0.000012562678421090823, -0.05295189842581749, -0.08911832422018051, -0.016575787216424942, 0.04234468191862106, -0.06000277400016785, -0.04928893223404884, 0.03243749961256981, -0.0037661611568182707, 0.07274625450372696, 0.021647099405527115, -0.0335698276758194, -0.07395847886800766, -0.016923626884818077, -0.01623084582388401, -0.03252123296260834, 0.09330227971076965, 0.04407471790909767, -0.021705584600567818, 0.02794305980205536, 0.048129577189683914, -0.043243490159511566, 0.027845140546560287, 0.021980205550789833, -0.010017496533691883, -0.021136293187737465, -0.09143678843975067, 0.00839882344007492, 0.0960407629609108, 0.048690855503082275, -0.02251357026398182, -0.03225638344883919, -0.0658922865986824, -0.00034051499096676707, 0.05807084962725639, -0.017295321449637413, -0.03921113535761833, -0.021130139008164406, -0.05144527554512024, 0.03985591232776642, 0.008885142393410206, 0.09022203087806702, 0.07221776992082596, -0.05209674313664436, 0.0237574502825737, 0.03180180490016937, -0.09577474743127823, -0.04529985412955284, -0.039450760930776596, -0.028404133394360542, -0.07735496759414673, -8.694331642189932e-33, 0.019356699660420418, 0.01122855581343174, -0.01894335262477398, -0.04297088086605072, -0.037143971771001816, -0.04171280935406685, 0.025555375963449478, -0.023856444284319878, -0.027292169630527496, 0.016707031056284904, -0.04584309458732605, 0.0489991270005703, 0.06923330575227737, -0.041894104331731796, 0.04056953638792038, 0.03215813636779785, 0.025607429444789886, 0.012344765476882458, -0.02855086699128151, 0.0634496882557869, -0.04316204413771629, 0.028381332755088806, -0.0880199670791626, 0.028819316998124123, -0.01742585562169552, 0.01915394514799118, 0.05985429510474205, 0.012877986766397953, -0.022119365632534027, 0.05128660798072815, -0.03633444383740425, 0.04742157831788063, -0.041060470044612885, 0.10792619735002518, -0.07949183136224747, -0.03634542226791382, -0.013161453418433666, 0.01792098581790924, 0.015865841880440712, 0.0163370743393898, 0.01668749935925007, -0.02046634629368782, -0.030284328386187553, -0.0055194939486682415, -0.003334099892526865, 0.05118132382631302, 0.004054117947816849, 0.0009663848904892802, -0.07027093321084976, -0.050120193511247635, 0.06560128182172775, -0.014545103535056114, -0.04229633882641792, -0.03369225189089775, 0.052134137600660324, 0.03456709533929825, 0.011292886920273304, -0.07331779599189758, -0.022301582619547844, -0.10592136532068253, 0.027668286114931107, -0.011602777056396008, -0.0371970571577549, 0.025212299078702927, 0.008984788320958614, 0.007709478493779898, -0.0069688307121396065, 0.024848181754350662, -0.030484672635793686, -0.20473092794418335, -0.055441390722990036, -0.0016750581562519073, 0.0493711456656456, -0.05671584978699684, 0.04907504469156265, 0.00182637688703835, -0.007368266116827726, 0.07929635047912598, 0.021506186574697495, 0.06870686262845993, -0.007513262331485748, 0.006347729824483395, 0.004531653132289648, 0.019482627511024475, 0.022237073630094528, -0.06263233721256256, -0.04743116348981857, 0.10642747581005096, 0.02846507728099823, 0.033143024891614914, -0.029847877100110054, 0.0770265981554985, 0.06270494312047958, 0.06748216599225998, 0.019267188385128975, -4.657533025920202e-8, -0.08388913422822952, -0.10340941697359085, -0.08796852827072144, -0.030695460736751556, -0.08046950399875641, -0.026608673855662346, 0.018300160765647888, 0.039646048098802567, -0.027664100751280785, -0.05030880123376846, 0.022789832204580307, 0.025092072784900665, -0.13396909832954407, 0.03420494124293327, -0.11754457652568817, 0.08343888819217682, -0.05381137505173683, 0.08007567375898361, 0.04760410636663437, -0.007358737755566835, 0.005801050923764706, 0.055993348360061646, 0.08497866243124008, -0.02173813432455063, -0.11793630570173264, 0.03698599711060524, -0.07885219901800156, -0.05168023705482483, -0.06443838030099869, -0.029561510309576988, -0.008996563032269478, -0.023219633847475052, 0.0337708406150341, -0.02390844002366066, -0.0024118947330862284, 0.016018755733966827, 0.02560795657336712, -0.0034466292709112167, 0.014476878568530083, 0.015713799744844437, 0.05636807531118393, -0.05807673558592796, -0.07142212241888046, 0.004193618893623352, 0.0022213049232959747, -0.05956273898482323, 0.022035200148820877, 0.06543220579624176, 0.05854952707886696, -0.05392906442284584, -0.06533834338188171, -0.0022996393963694572, 0.054433856159448624, -0.05353803187608719, 0.03684069961309433, 0.10329477488994598, 0.026694152504205704, -0.01316737663000822, 0.0010303058661520481, 0.10554803907871246, 0.014538793824613094, 0.03756863251328468, 0.0243255365639925, 0.009134405292570591 ]
0.005814
# 网络中心 本中心汇集了 OpenClaw 如何在 localhost、局域网和 tailnet 之间连接、配对和保护设备的核心文档。 ## 核心模型 - [Gateway 网关架构](/concepts/architecture) - [Gateway 网关协议](/gateway/protocol) - [Gateway 网关运维手册](/gateway) - [Web 接口 + 绑定模式](/web) ## 配对 + 身份 - [配对概述(私信 + 节点)](/start/pairing) - [Gateway 网关拥有的节点配对](/gateway/pairing) - [Devices CLI(配对 + token 轮换)](/cli/devices) - [Pairing CLI(私信审批)](/cli/pairing) 本地信任: - 本地连接(loopback 或 Gateway 网关主机自身的 tailnet 地址)可以自动批准配对,以保持同主机用户体验的流畅性。 - 非本地的 tailnet/局域网客户端仍需要显式的配对批准。 ## 设备发现 + 传输协议 - [设备发现与传输协议](/gateway/discovery) - [Bonjour / mDNS](/gateway/bonjour) - [远程访问(SSH)](/gateway/remote) - [Tailscale](/gateway/tailscale) ## 节点 + 传输协议 - [节点概述](/nodes) - [桥接协议(旧版节点)](/gateway/bridge-protocol) - [节点运维手册:iOS](/platforms/ios) - [节点运维手册:Android](/platforms/android) ## 安全 - [安全概述](/gateway/security) - [Gateway 网关配置参考](/gateway/configuration) - [故障排除](/gateway/troubleshooting) - [Doctor](/gateway/doctor)
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/network.md
main
opebclaw
[ -0.035638026893138885, 0.033613406121730804, -0.00016306521138176322, -0.09379887580871582, -0.055773813277482986, 0.006073135882616043, 0.04965812340378761, -0.023306963965296745, 0.020119670778512955, -0.023950647562742233, 0.1613852083683014, 0.019664954394102097, 0.05024294555187225, -0.06359946727752686, 0.045835256576538086, 0.10419373214244843, -0.04158863052725792, 0.005987376440316439, -0.02598617970943451, 0.029975853860378265, -0.04813779145479202, -0.1018616333603859, -0.0007185607100836933, 0.0132761774584651, -0.03720729053020477, 0.022402631118893623, -0.008184767328202724, 0.038572270423173904, 0.016248172149062157, -0.009675608947873116, -0.057168733328580856, 0.13988721370697021, -0.07241503894329071, 0.02253546752035618, 0.007327110506594181, 0.03260749578475952, 0.05739135667681694, -0.046916261315345764, 0.022378619760274887, -0.013785012066364288, -0.005955162923783064, -0.0642533004283905, -0.002955021569505334, -0.05202411487698555, 0.00636964850127697, 0.013376128859817982, -0.09714892506599426, -0.030982330441474915, -0.10328153520822525, -0.11436709761619568, -0.031556546688079834, 0.0013250532792881131, -0.01447333674877882, 0.011468155309557915, 0.02997046336531639, 0.03458205237984657, -0.06333854794502258, 0.03715158626437187, 0.07120963931083679, 0.025584178045392036, 0.03869672119617462, 0.05983639881014824, 0.004379282705485821, 0.02811417728662491, -0.0871836468577385, -0.037047985941171646, -0.023661820217967033, 0.006762146484106779, 0.014810028485953808, 0.040581606328487396, -0.026841456070542336, -0.03998371586203575, -0.038913626223802567, -0.012801370583474636, -0.016701193526387215, 0.04421589896082878, 0.016278810799121857, 0.04418186843395233, -0.09095393866300583, -0.15468955039978027, -0.019943799823522568, 0.034512557089328766, 0.06224537640810013, 0.06642765551805496, -0.02610470913350582, 0.04346563294529915, -0.04815592244267464, -0.010817339643836021, 0.07514044642448425, -0.0305052287876606, -0.04485391080379486, -0.0063701169565320015, 0.020341696217656136, 0.018143679946660995, 0.08331239223480225, -0.034975770860910416, -0.027706360444426537, -0.008142521604895592, -0.06003829836845398, 0.0798112004995346, -0.020511044189333916, -0.014614645391702652, 0.03177957981824875, -0.0012346927542239428, -0.05879531055688858, -0.028453465551137924, -0.06472557038068771, 0.059649720788002014, 0.06389280408620834, -0.023344267159700394, -0.018291626125574112, -0.08993513137102127, -0.014021255075931549, -0.03621295467019081, -0.07436298578977585, 0.07959426939487457, -0.04306093230843544, -0.015002426691353321, 0.06585027277469635, 0.04626154154539108, 0.013418671675026417, -0.007164679002016783, -0.06732568144798279, -0.08278366178274155, -0.04273727536201477, -0.008458227850496769, 0.06923805177211761, -1.9018603200217071e-35, 0.0052564251236617565, 0.058629486709833145, -0.05388937145471573, -0.04648205265402794, 0.14389905333518982, -0.07456835359334946, 0.013144474476575851, -0.04991431161761284, -0.10798273235559464, 0.0464041493833065, -0.016278645023703575, 0.03212733939290047, -0.057143379002809525, 0.0021409050095826387, 0.05209419131278992, -0.07613606005907059, 0.02259351685643196, -0.04359021037817001, 0.08488208055496216, -0.04086305946111679, 0.06144241243600845, -0.041702259331941605, 0.019987933337688446, -0.06217820197343826, 0.015106086619198322, -0.013247295282781124, -0.006702018901705742, 0.013325086794793606, 0.0034517315216362476, 0.025048451498150826, 0.03701646253466606, -0.0028713427018374205, -0.0083839800208807, -0.029637767001986504, -0.09020233154296875, -0.022112993523478508, -0.007606780156493187, -0.08557796478271484, -0.0657394751906395, -0.03623517230153084, -0.09100054204463959, -0.01090706791728735, -0.07921028882265091, 0.00535421771928668, 0.01515691727399826, -0.04121183604001999, -0.12366047501564026, -0.014418315142393112, 0.10262950509786606, -0.023407796397805214, -0.14345858991146088, 0.008499223738908768, -0.022562582045793533, 0.013531594537198544, 0.0008030919125303626, -0.03103904239833355, -0.06141844019293785, 0.07253706455230713, -0.041589681059122086, -0.002588354516774416, 0.007632139604538679, -0.005635592620819807, -0.022366676479578018, -0.043802812695503235, 0.0979413092136383, 0.03766785189509392, -0.04500874876976013, 0.01104122493416071, -0.00428621843457222, -0.07332520186901093, -0.08744479715824127, -0.02089744806289673, 0.0416361466050148, 0.07389206439256668, -0.03075314685702324, -0.029497770592570305, -0.08345263451337814, 0.015029829926788807, 0.045586954802274704, -0.008047381415963173, -0.057124972343444824, -0.00550095085054636, -0.04675263166427612, 0.038757503032684326, -0.021811891347169876, 0.020607294514775276, 0.0625118538737297, -0.04423017054796219, -0.019000915810465813, 0.14897435903549194, -0.09558170288801193, 0.06285510957241058, 0.007466054987162352, -0.008507046848535538, -0.06594724953174591, -5.4126798184283665e-33, -0.05825766175985336, 0.05061888322234154, -0.03761269524693489, 0.02893916703760624, 0.02111857384443283, 0.006298269610852003, 0.04832802340388298, -0.06077933311462402, 0.011149140074849129, 0.06271997094154358, 0.014294181950390339, 0.07253073155879974, 0.059541668742895126, -0.04724930599331856, -0.007561836391687393, -0.025937438011169434, -0.03224914148449898, 0.011063767597079277, 0.010119819082319736, 0.05320681631565094, 0.02446344681084156, 0.019553622230887413, -0.1029839739203453, -0.030067024752497673, -0.033346787095069885, 0.04964674636721611, 0.0709724947810173, -0.0027013772632926702, -0.031070197001099586, 0.030558571219444275, -0.012173469178378582, -0.0001541733945487067, -0.040632545948028564, 0.09417778998613358, 0.02157830260694027, -0.009889097884297371, -0.028211625292897224, 0.030420245602726936, -0.03584824129939079, -0.04367922618985176, 0.04217434301972389, -0.07836774736642838, 0.033153120428323746, -0.056848619133234024, 0.006420711521059275, -0.02878708206117153, -0.02113094925880432, -0.07959693670272827, -0.12004750967025757, -0.056325748562812805, 0.09785596281290054, 0.053828414529561996, 0.026391874998807907, -0.049141716212034225, -0.02535734698176384, 0.04989152029156685, 0.0550660602748394, -0.07648380845785141, -0.03476114198565483, -0.11253209412097931, 0.11747771501541138, -0.02816116437315941, -0.014153655618429184, 0.10101768374443054, 0.005796356592327356, -0.03399862349033356, -0.021654846146702766, 0.030843419954180717, 0.039307840168476105, -0.11201442778110504, -0.06066722050309181, 0.04560446739196777, 0.07107513397932053, -0.0030383120756596327, 0.012017509900033474, -0.028160197660326958, -0.040982916951179504, 0.02892548404633999, 0.0350782610476017, 0.0051412032917141914, -0.012933957390487194, 0.04086581617593765, -0.042200274765491486, 0.022586507722735405, 0.006869152653962374, -0.048857431858778, -0.01324380375444889, 0.13439111411571503, 0.028981225565075874, -0.010650076903402805, -0.007087343838065863, 0.061829909682273865, -0.007558743003755808, 0.0567297600209713, -0.022340893745422363, -4.999568758989881e-8, -0.012240760028362274, -0.08271314203739166, -0.0813806876540184, -0.02126806415617466, 0.02026255615055561, -0.019101582467556, 0.028918374329805374, -0.08160007745027542, -0.0385725162923336, -0.0011726440861821175, -0.03730342909693718, 0.070393405854702, -0.11401267349720001, 0.0626298263669014, -0.057526953518390656, -0.017687946557998657, -0.027849653735756874, 0.0222505833953619, 0.02038348838686943, -0.06964302062988281, -0.036516472697257996, 0.012441855855286121, 0.027311285957694054, -0.012180008925497532, -0.05675790458917618, 0.0073810964822769165, -0.002875386970117688, -0.005888144951313734, -0.06862831860780716, -0.00617481442168355, -0.025939274579286575, -0.005213256925344467, 0.0007736905827187002, 0.006514689885079861, -0.005865204147994518, 0.0804717093706131, -0.043849751353263855, 0.03007950261235237, 0.0032322220504283905, 0.016928432509303093, 0.018287504091858864, -0.06913227587938309, -0.034127749502658844, 0.033753521740436554, 0.1113542839884758, -0.001198516576550901, 0.008680128492414951, 0.07930180430412292, 0.000747087353374809, 0.030505346134305, -0.009356051683425903, -0.028842709958553314, 0.05559244379401207, -0.04851590469479561, 0.014452648349106312, 0.0035520335659384727, -0.030275356024503708, -0.03899631276726723, 0.009387906640768051, 0.024489859119057655, -0.017843643203377724, 0.08472879230976105, 0.03233174607157707, -0.022733254358172417 ]
0.073816
# 广播群组 \*\*状态:\*\* 实验性功能 \*\*版本:\*\* 于 2026.1.9 版本新增 ## 概述 广播群组允许多个智能体同时处理并响应同一条消息。这使你能够在单个 WhatsApp 群组或私信中创建协同工作的专业智能体团队——全部使用同一个手机号码。 当前范围:\*\*仅限 WhatsApp\*\*(web 渠道)。 广播群组在渠道白名单和群组激活规则之后进行评估。在 WhatsApp 群组中,这意味着广播会在 OpenClaw 正常回复时发生(例如:被提及时,具体取决于你的群组设置)。 ## 使用场景 ### 1. 专业智能体团队 部署多个具有原子化、专注职责的智能体: ``` Group: "Development Team" Agents: - CodeReviewer (reviews code snippets) - DocumentationBot (generates docs) - SecurityAuditor (checks for vulnerabilities) - TestGenerator (suggests test cases) ``` 每个智能体处理相同的消息并提供其专业视角。 ### 2. 多语言支持 ``` Group: "International Support" Agents: - Agent\_EN (responds in English) - Agent\_DE (responds in German) - Agent\_ES (responds in Spanish) ``` ### 3. 质量保证工作流 ``` Group: "Customer Support" Agents: - SupportAgent (provides answer) - QAAgent (reviews quality, only responds if issues found) ``` ### 4. 任务自动化 ``` Group: "Project Management" Agents: - TaskTracker (updates task database) - TimeLogger (logs time spent) - ReportGenerator (creates summaries) ``` ## 配置 ### 基本设置 添加一个顶层 `broadcast` 部分(与 `bindings` 同级)。键为 WhatsApp peer id: - 群聊:群组 JID(例如 `120363403215116621@g.us`) - 私信:E.164 格式的电话号码(例如 `+15551234567`) ```json { "broadcast": { "120363403215116621@g.us": ["alfred", "baerbel", "assistant3"] } } ``` \*\*结果:\*\* 当 OpenClaw 在此聊天中回复时,将运行所有三个智能体。 ### 处理策略 控制智能体如何处理消息: #### 并行(默认) 所有智能体同时处理: ```json { "broadcast": { "strategy": "parallel", "120363403215116621@g.us": ["alfred", "baerbel"] } } ``` #### 顺序 智能体按顺序处理(后一个等待前一个完成): ```json { "broadcast": { "strategy": "sequential", "120363403215116621@g.us": ["alfred", "baerbel"] } } ``` ### 完整示例 ```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"] } } ``` ## 工作原理 ### 消息流程 1. \*\*接收消息\*\* 到达 WhatsApp 群组 2. \*\*广播检查\*\*:系统检查 peer ID 是否在 `broadcast` 中 3. \*\*如果在广播列表中\*\*: - 所有列出的智能体处理该消息 - 每个智能体有自己的会话键和隔离的上下文 - 智能体并行处理(默认)或顺序处理 4. \*\*如果不在广播列表中\*\*: - 应用正常路由(第一个匹配的绑定) 注意:广播群组不会绕过渠道白名单或群组激活规则(提及/命令等)。它们只改变消息符合处理条件时\*运行哪些智能体\*。 ### 会话隔离 广播群组中的每个智能体完全独立维护: - \*\*会话键\*\*(`agent:alfred:whatsapp:group:120363...` vs `agent:baerbel:whatsapp:group:120363...`) - \*\*对话历史\*\*(智能体看不到其他智能体的消息) - \*\*工作空间\*\*(如果配置了则使用独立的沙箱) - \*\*工具访问权限\*\*(不同的允许/拒绝列表) - \*\*记忆/上下文\*\*(独立的 IDENTITY.md、SOUL.md 等) - \*\*群组上下文缓冲区\*\*(用于上下文的最近群组消息)按 peer 共享,因此所有广播智能体在被触发时看到相同的上下文 这允许每个智能体拥有: - 不同的个性 - 不同的工具访问权限(例如只读 vs 读写) - 不同的模型(例如 opus vs sonnet) - 不同的已安装 Skills ### 示例:隔离的会话 在群组 `120363403215116621@g.us` 中,智能体为 `["alfred", "baerbel"]`: \*\*Alfred 的上下文:\*\* ``` 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 的上下文:\*\* ``` Session: agent:baerbel:whatsapp:group:120363403215116621@g.us History: [user message, baerbel's previous responses] Workspace: /Users/pascal/openclaw-baerbel/ Tools: read only ``` ## 最佳实践 ### 1. 保持智能体专注 将每个智能体设计为具有单一、明确的职责: ```json { "broadcast": { "DEV\_GROUP": ["formatter", "linter", "tester"] } } ``` ✅ \*\*好的做法:\*\* 每个智能体只有一个任务 ❌ \*\*不好的做法:\*\* 一个通用的"dev-helper"智能体 ### 2. 使用描述性名称 明确每个智能体的功能: ```json { "agents": { "security-scanner": { "name": "Security Scanner" }, "code-formatter": { "name": "Code Formatter" }, "test-generator": { "name": "Test Generator" } } } ``` ### 3. 配置不同的工具访问权限 只给智能体提供它们需要的工具: ```json { "agents": { "reviewer": { "tools": { "allow": ["read", "exec"] } // Read-only }, "fixer": { "tools": { "allow": ["read", "write", "edit", "exec"] } // Read-write } } } ``` ### 4. 监控性能 当有多个智能体时,请考虑: - 使用 `"strategy": "parallel"`(默认)以提高速度 - 将广播群组限制在 5-10 个智能体 - 为较简单的智能体使用较快的模型 ### 5. 优雅地处理失败 智能体独立失败。一个智能体的错误不会阻塞其他智能体: ``` Message → [Agent A ✓, Agent B ✗ error, Agent C ✓] Result: Agent A and C respond, Agent B logs error ``` ## 兼容性 ### 提供商 广播群组目前支持: - ✅ WhatsApp(已实现) - 🚧 Telegram(计划中) - 🚧 Discord(计划中) - 🚧 Slack(计划中) ### 路由 广播群组与现有路由一起工作: ```json { "bindings": [ { "match": { "channel": "whatsapp", "peer": { "kind": "group", "id": "GROUP\_A" } }, "agentId": "alfred" } ], "broadcast": { "GROUP\_B": ["agent1", "agent2"] } } ``` - `GROUP\_A`:只有 alfred 响应(正常路由) - `GROUP\_B`:agent1 和 agent2 都响应(广播) \*\*优先级:\*\* `broadcast` 优先于 `bindings`。 ## 故障排除 ### 智能体不响应 \*\*检查:\*\* 1. 智能体 ID 存在于 `agents.list` 中 2. Peer ID 格式正确(例如 `120363403215116621@g.us`) 3. 智能体不在拒绝列表中 \*\*调试:\*\* ```bash tail -f ~/.openclaw/logs/gateway.log | grep broadcast ``` ### 只有一个智能体响应 \*\*原因:\*\* Peer ID 可能在 `bindings` 中但不在 `broadcast` 中。 \*\*修复:\*\* 添加到广播配置或从绑定中移除。 ### 性能问题 \*\*如果智能体较多时速度较慢:\*\* -
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/broadcast-groups.md
main
opebclaw
[ -0.0757933035492897, 0.0481003001332283, -0.043972697108983994, -0.02531486749649048, -0.037838757038116455, 0.009415775537490845, 0.0462278351187706, -0.01215202733874321, 0.04114263504743576, 0.05746219679713249, 0.22235791385173798, -0.024928122758865356, -0.016689220443367958, -0.00878638494759798, 0.05052586644887924, -0.025532513856887817, -0.0870538279414177, -0.024542294442653656, -0.053470104932785034, 0.021136770024895668, -0.034571994096040726, -0.048629049211740494, 0.02830095961689949, 0.005090324208140373, -0.0724136233329773, 0.06931408494710922, -0.11133802682161331, 0.055794332176446915, 0.10091928392648697, -0.03348510339856148, -0.07060743123292923, 0.10660351067781448, 0.028402604162693024, 0.03521031513810158, 0.03804197534918785, 0.04203116521239281, 0.040234144777059555, 0.032493844628334045, 0.032266829162836075, 0.09120169281959534, 0.0178686510771513, -0.0013513888698071241, -0.05368787422776222, -0.028341956436634064, 0.060341812670230865, 0.01242172159254551, -0.04407604783773422, 0.019590206444263458, -0.10660461336374283, -0.03984851390123367, -0.0055997297167778015, 0.011961831711232662, -0.027165785431861877, 0.041460487991571426, 0.003635629080235958, -0.0140230692923069, -0.08824564516544342, 0.02115548774600029, 0.0668938159942627, -0.011614731512963772, -0.049501292407512665, 0.04360327124595642, -0.016282234340906143, -0.007508348673582077, -0.09526171535253525, -0.002116677351295948, 0.03122815303504467, -0.018405137583613396, -0.03329392150044441, -0.019390394911170006, -0.07677090913057327, -0.040838416665792465, 0.03622192144393921, -0.011165411211550236, -0.05059472844004631, -0.0019268576288595796, 0.022902555763721466, -0.02691037580370903, -0.10771070420742035, -0.11103256046772003, 0.027994411066174507, -0.0061426544561982155, -0.01781190186738968, -0.00220731133595109, -0.002213219879195094, 0.05846511200070381, -0.05464787408709526, -0.06822845339775085, 0.06991426646709442, -0.08670461177825928, -0.006687855813652277, 0.05093088373541832, 0.039417803287506104, -0.013819968327879906, 0.04684295132756233, -0.07948487251996994, 0.045662786811590195, 0.043223243206739426, -0.005041053984314203, 0.05180131644010544, 0.04093924164772034, -0.033758390694856644, -0.06472897529602051, -0.08885442465543747, -0.07620417326688766, -0.02760237827897072, -0.02525547333061695, -0.012669756077229977, 0.07490642368793488, 0.028979996219277382, -0.0800085961818695, -0.08685930073261261, -0.026324039325118065, -0.12350455671548843, 0.018990647047758102, -0.04899035766720772, -0.03873506933450699, -0.04904094338417053, 0.07961532473564148, -0.012650012038648129, 0.08875937014818192, -0.024632742628455162, 0.003267328254878521, 0.031155262142419815, -0.045820947736501694, 0.01851763390004635, 0.0866926982998848, -1.311658749140245e-33, -0.02380390837788582, 0.07397016137838364, -0.05278031900525093, -0.05721452087163925, 0.029834505170583725, -0.057028550654649734, -0.022410331293940544, 0.025457706302404404, -0.08388753980398178, 0.017961783334612846, -0.005445755552500486, 0.016058430075645447, -0.09511417150497437, 0.021932626143097878, -0.033010341227054596, -0.00728246197104454, -0.04442308843135834, 0.0011849738657474518, 0.04012889415025711, -0.05207788571715355, 0.009711879305541515, 0.04663410410284996, 0.007237785030156374, -0.02001984603703022, 0.061121322214603424, 0.0315435491502285, -0.026584435254335403, -0.05835001915693283, -0.030335435643792152, 0.016998644918203354, 0.03723872825503349, 0.030557449907064438, -0.04126377031207085, 0.019657693803310394, -0.06818927824497223, 0.021298743784427643, -0.03198181092739105, -0.04381906986236572, -0.031442150473594666, 0.03225662559270859, -0.00837363675236702, -0.019421672448515892, 0.026934392750263214, 0.033189281821250916, 0.07334122806787491, -0.0050738537684082985, -0.0540161207318306, 0.0008935921941883862, 0.031814128160476685, -0.035381682217121124, -0.07566387951374054, 0.012635625898838043, -0.06615619361400604, 0.07034771889448166, -0.01054289098829031, -0.08219069242477417, -0.08290503919124603, 0.03164302930235863, 0.0209541954100132, -0.0070314290933310986, 0.01731434278190136, 0.025076530873775482, -0.048834189772605896, -0.009291148744523525, 0.006548374891281128, -0.018949618563055992, -0.08157482743263245, 0.010016011074185371, 0.08522727340459824, -0.08086524158716202, -0.04389341175556183, 0.03598730266094208, 0.036293189972639084, 0.023298660293221474, 0.02376200072467327, -0.010705117136240005, -0.058794740587472916, 0.11302854120731354, 0.0077828005887568, 0.008246801793575287, -0.04687614366412163, -0.005803978536278009, -0.06353245675563812, -0.015403292141854763, -0.09008094668388367, 0.027658820152282715, 0.1253204047679901, -0.019047999754548073, -0.08561360836029053, 0.003730867290869355, -0.0522802509367466, 0.01827957294881344, 0.018036114051938057, 0.030906345695257187, 0.009834150783717632, -4.073976158518066e-33, 0.018018921837210655, 0.051515236496925354, -0.050379883497953415, -0.005637709982693195, 0.031296368688344955, -0.059310030192136765, 0.08396074175834656, -0.000011397903108445462, 0.010451390407979488, 0.028970420360565186, 0.022055482491850853, -0.03847837448120117, -0.019274389371275902, -0.018215034157037735, 0.0003482330939732492, 0.003094777697697282, -0.006213105283677578, 0.06679537147283554, 0.027115700766444206, 0.03959904983639717, 0.016417354345321655, -0.011071830056607723, -0.08512929826974869, 0.04368535429239273, 0.033138204365968704, 0.05054677650332451, 0.07770144939422607, -0.06620670109987259, 0.061861444264650345, 0.0340777151286602, 0.0057609835639595985, -0.03483957797288895, -0.08023116737604141, 0.06597080081701279, -0.01817689836025238, -0.027544867247343063, -0.030938703566789627, 0.03868868201971054, -0.09060937911272049, -0.025682922452688217, 0.049967169761657715, -0.014439652673900127, -0.01472717709839344, 0.012414141558110714, -0.014901423826813698, 0.058888111263513565, 0.0758177638053894, -0.04485702887177467, -0.0939861461520195, -0.04356461390852928, 0.10855700820684433, -0.015155090019106865, 0.019091671332716942, -0.041599396616220474, 0.029700206592679024, 0.08182727545499802, 0.032207172363996506, -0.07790715247392654, -0.11951621621847153, -0.0825335755944252, 0.07580391317605972, 0.026059888303279877, -0.02686762437224388, 0.0021550345700234175, 0.014546479098498821, -0.04007535055279732, 0.026747457683086395, -0.03228529542684555, 0.04561442509293556, -0.04322544112801552, -0.06830459088087082, -0.11008621752262115, 0.04392904043197632, -0.07275205850601196, 0.03596916049718857, 0.02510487474501133, -0.0510074608027935, 0.026250170543789864, 0.009719026274979115, 0.011413060128688812, -0.05629723519086838, -0.05110277608036995, 0.004961730446666479, 0.1168031394481659, -0.048815447837114334, 0.056218765676021576, -0.009294693358242512, 0.07474911212921143, 0.005761581938713789, 0.018408577889204025, 0.013965029269456863, -0.015346119180321693, 0.04362501576542854, 0.0406244657933712, 0.0409715361893177, -4.372698825250154e-8, 0.0200290959328413, -0.10491155087947845, 0.008155068382620811, -0.04169574752449989, 0.005078339483588934, -0.09507092833518982, -0.030536754056811333, -0.030744342133402824, 0.006917235441505909, 0.020723950117826462, -0.0210863184183836, 0.03467412292957306, -0.09355699270963669, -0.004654977936297655, -0.02688114531338215, 0.03514975681900978, -0.044313207268714905, 0.006478182040154934, 0.01964326575398445, -0.11531839519739151, -0.04897305741906166, -0.03791291266679764, -0.0013811265816912055, -0.10981066524982452, -0.0922827199101448, 0.015708277001976967, -0.1207338497042656, 0.012283019721508026, -0.11131659150123596, -0.0015585843939334154, 0.016630202531814575, -0.060086119920015335, 0.006233419291675091, -0.027392258867621422, 0.065058633685112, -0.047513917088508606, 0.004261758178472519, -0.048220183700323105, -0.009846391156315804, -0.016261469572782516, 0.10420667380094528, -0.08609785884618759, 0.0011111032217741013, 0.041744183748960495, 0.11498400568962097, 0.011716028675436974, 0.06941034644842148, -0.0317232608795166, 0.029482461512088776, -0.021649351343512535, 0.016018865630030632, -0.015259508043527603, 0.0020390537101775408, -0.02561246231198311, -0.02178746461868286, -0.04399148002266884, 0.012244188226759434, 0.005121015943586826, 0.06941548734903336, 0.028431644663214684, -0.003834808012470603, 0.06471320986747742, 0.030592942610383034, 0.029983047395944595 ]
-0.018158
和 agent2 都响应(广播) \*\*优先级:\*\* `broadcast` 优先于 `bindings`。 ## 故障排除 ### 智能体不响应 \*\*检查:\*\* 1. 智能体 ID 存在于 `agents.list` 中 2. Peer ID 格式正确(例如 `120363403215116621@g.us`) 3. 智能体不在拒绝列表中 \*\*调试:\*\* ```bash tail -f ~/.openclaw/logs/gateway.log | grep broadcast ``` ### 只有一个智能体响应 \*\*原因:\*\* Peer ID 可能在 `bindings` 中但不在 `broadcast` 中。 \*\*修复:\*\* 添加到广播配置或从绑定中移除。 ### 性能问题 \*\*如果智能体较多时速度较慢:\*\* - 减少每个群组的智能体数量 - 使用较轻的模型(sonnet 而非 opus) - 检查沙箱启动时间 ## 示例 ### 示例 1:代码审查团队 ```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"] } } ] } } ``` \*\*用户发送:\*\* 代码片段 \*\*响应:\*\* - code-formatter:"修复了缩进并添加了类型提示" - security-scanner:"⚠️ 第 12 行存在 SQL 注入漏洞" - test-coverage:"覆盖率为 45%,缺少错误情况的测试" - docs-checker:"函数 `process\_data` 缺少文档字符串" ### 示例 2:多语言支持 ```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 参考 ### 配置模式 ```typescript interface OpenClawConfig { broadcast?: { strategy?: "parallel" | "sequential"; [peerId: string]: string[]; }; } ``` ### 字段 - `strategy`(可选):如何处理智能体 - `"parallel"`(默认):所有智能体同时处理 - `"sequential"`:智能体按数组顺序处理 - `[peerId]`:WhatsApp 群组 JID、E.164 号码或其他 peer ID - 值:应处理消息的智能体 ID 数组 ## 限制 1. \*\*最大智能体数:\*\* 无硬性限制,但 10 个以上智能体可能会较慢 2. \*\*共享上下文:\*\* 智能体看不到彼此的响应(设计如此) 3. \*\*消息顺序:\*\* 并行响应可能以任意顺序到达 4. \*\*速率限制:\*\* 所有智能体都计入 WhatsApp 速率限制 ## 未来增强 计划中的功能: - [ ] 共享上下文模式(智能体可以看到彼此的响应) - [ ] 智能体协调(智能体可以相互发信号) - [ ] 动态智能体选择(根据消息内容选择智能体) - [ ] 智能体优先级(某些智能体先于其他智能体响应) ## 另请参阅 - [多智能体配置](/multi-agent-sandbox-tools) - [路由配置](/concepts/channel-routing) - [会话管理](/concepts/sessions)
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/broadcast-groups.md
main
opebclaw
[ 0.007299329154193401, 0.052646104246377945, -0.0686570480465889, -0.05182263255119324, -0.00003131736957584508, 0.02010757476091385, 0.04327160120010376, -0.0364692248404026, 0.03510886803269386, 0.0855274498462677, 0.15137414634227753, -0.04549190029501915, 0.026468425989151, -0.005690266378223896, 0.0058027408085763454, -0.007218084763735533, -0.07051032781600952, 0.008995945565402508, -0.07200592011213303, -0.10026305168867111, -0.02423824928700924, -0.0002029587049037218, -0.028281712904572487, 0.009532637894153595, -0.07727853208780289, 0.008217155933380127, -0.06217360496520996, 0.08346571773290634, 0.050596822053194046, -0.047651246190071106, -0.07826676219701767, 0.01952851191163063, -0.003800899488851428, 0.05340925604104996, 0.0878671258687973, 0.010676061734557152, 0.0005770250572822988, 0.020657310262322426, -0.04886774718761444, 0.07513812929391861, 0.1022111177444458, 0.016466684639453888, -0.03641173243522644, -0.03128325939178467, -0.01237762812525034, 0.009850611910223961, -0.05315215885639191, 0.009847288019955158, -0.06370344012975693, -0.06129109114408493, -0.01964152604341507, 0.04995528236031532, -0.017273254692554474, 0.013140352442860603, -0.004874360281974077, -0.050869546830654144, -0.017211249098181725, 0.04502134025096893, 0.07746876776218414, -0.0001259417476831004, 0.00039977810229174793, 0.07495835423469543, -0.06266268342733383, -0.02384800836443901, -0.0399274006485939, -0.04005514457821846, 0.0010204596910625696, 0.038114435970783234, 0.0014999140985310078, 0.011574088595807552, -0.09889879077672958, -0.053693827241659164, -0.014572256244719028, -0.030933065339922905, -0.03176629915833473, -0.029215026646852493, -0.008116692304611206, -0.015573403798043728, -0.0876021608710289, -0.09239071607589722, -0.002379938028752804, -0.05652494728565216, 0.02176700532436371, -0.028324570506811142, 0.03698285296559334, 0.05149620771408081, -0.0740058645606041, -0.0730772539973259, 0.07614843547344208, -0.05215184763073921, -0.015009000897407532, -0.008561144582927227, 0.10487987846136093, 0.027125000953674316, 0.0645415410399437, 0.006135267671197653, 0.0383041687309742, 0.03851195424795151, -0.048103973269462585, 0.06678860634565353, 0.020881973206996918, 0.010659613646566868, -0.08138489723205566, -0.033838432282209396, -0.11347786337137222, -0.02172434702515602, -0.023730263113975525, 0.02474190853536129, 0.009008289314806461, 0.055696628987789154, -0.057623572647571564, -0.03908759355545044, 0.01283593662083149, -0.1137835904955864, 0.11977707594633102, 0.03743767365813255, 0.008277840912342072, 0.033538512885570526, -0.03375715762376785, 0.005168933887034655, 0.07333043217658997, -0.07291704416275024, -0.02309332601726055, 0.001725488342344761, -0.008652427233755589, -0.02263445407152176, 0.1350281983613968, 6.16109190867097e-34, 0.060694705694913864, 0.04718000814318657, -0.11123979836702347, -0.024676324799656868, 0.07654763758182526, -0.008223887532949448, -0.016482066363096237, -0.004827233962714672, -0.11692439019680023, 0.050949644297361374, -0.0006746164290234447, 0.023392729461193085, -0.05983574315905571, -0.009157856926321983, -0.024764366447925568, 0.0063515519723296165, 0.037406932562589645, 0.05443187430500984, 0.016058236360549927, -0.0053905886597931385, 0.04505605250597, -0.025483423843979836, 0.023939140141010284, -0.01506719458848238, 0.11032725125551224, 0.04432449862360954, -0.054624754935503006, -0.07063798606395721, -0.0010766652412712574, 0.014387931674718857, 0.017975423485040665, 0.09573081880807877, -0.06047376990318298, 0.0023483559489250183, -0.06189872324466705, -0.027502333745360374, -0.05841636657714844, -0.014314081519842148, -0.062047265470027924, -0.017411818727850914, 0.03044814243912697, -0.03098217397928238, -0.021111419424414635, 0.013382768258452415, 0.05625572428107262, -0.03981807082891464, -0.08834683895111084, 0.029293876141309738, 0.09432818740606308, -0.02885199896991253, -0.017807738855481148, 0.020769191905856133, -0.08277663588523865, 0.0280146561563015, 0.038681503385305405, -0.009456136263906956, -0.04426814243197441, 0.03347470238804817, 0.02872476913034916, -0.0037536073941737413, 0.03329933062195778, 0.02539898455142975, -0.03979741781949997, 0.012184317223727703, 0.08375802636146545, -0.04613594338297844, -0.034913063049316406, 0.0627201572060585, 0.09408663958311081, -0.07088044285774231, -0.05724014341831207, -0.007836409844458103, 0.08162359148263931, 0.05899055674672127, -0.00030018799589015543, -0.03871869295835495, -0.09139365702867508, 0.02182438224554062, 0.010729937814176083, 0.0445563979446888, -0.08607028424739838, -0.026978425681591034, -0.022108379751443863, 0.040049247443675995, -0.0455414243042469, -0.03480396419763565, 0.07551388442516327, -0.0016641368856653571, -0.0659705400466919, 0.03400425240397453, -0.08434504270553589, 0.022153358906507492, -0.017255662009119987, 0.022237852215766907, -0.03127458691596985, -4.525453783968152e-33, 0.006564258132129908, 0.009797586128115654, -0.08874253183603287, -0.04317399859428406, -0.00686084246262908, -0.10796256363391876, 0.034321997314691544, 0.003885349491611123, 0.005448371637612581, 0.027209337800741196, 0.06138722226023674, -0.06530293822288513, -0.015176033601164818, -0.005354819819331169, 0.022392380982637405, 0.03872324153780937, 0.010898323729634285, 0.07737860083580017, -0.018223149701952934, 0.035953402519226074, -0.017933180555701256, -0.02329193986952305, -0.1009516790509224, -0.00896922592073679, 0.02417534962296486, 0.009183506481349468, 0.12266835570335388, -0.0018613797146826982, -0.0021866485476493835, -0.00839611142873764, -0.00802168995141983, 0.03740357235074043, -0.10539738833904266, 0.024339238181710243, -0.053179968148469925, 0.01666029915213585, 0.030439002439379692, 0.0073274048045277596, -0.09025857597589493, -0.019892478361725807, 0.05931488052010536, 0.0409637875854969, -0.0230350773781538, -0.0047164359129965305, -0.04821718484163284, 0.04852698743343353, 0.09131113439798355, -0.03207045793533325, -0.04769284650683403, -0.06871777772903442, 0.13987188041210175, -0.03977534547448158, 0.02068573608994484, 0.01390036754310131, 0.015340481884777546, 0.08357933908700943, 0.019751355051994324, -0.019426632672548294, -0.08294285833835602, -0.0973467156291008, 0.047082170844078064, 0.014042631722986698, -0.08191332966089249, 0.03660028055310249, 0.029792916029691696, -0.0484672449529171, 0.010106369853019714, 0.017961647361516953, 0.07778754085302353, -0.07914061844348907, -0.0028045650105923414, -0.06489265710115433, 0.03364390879869461, -0.021966591477394104, 0.03141503408551216, 0.012448991648852825, -0.04843110591173172, 0.07630427181720734, 0.027647219598293304, 0.038374464958906174, -0.08341094106435776, 0.004906870424747467, -0.03749560937285423, 0.054251350462436676, 0.015194309875369072, 0.018372366204857826, 0.046363670378923416, 0.081474170088768, 0.037840068340301514, 0.019628981128335, 0.018579354509711266, -0.0230786744505167, 0.028960876166820526, -0.010499577037990093, 0.016750317066907883, -4.332157033104522e-8, 0.00020710095122922212, -0.09353206306695938, -0.04067592695355415, -0.053183577954769135, 0.01616688072681427, -0.021751245483756065, -0.00825643539428711, -0.02948281727731228, -0.05888267606496811, -0.020620128139853477, -0.004036973230540752, 0.01926855929195881, -0.07792961597442627, -0.016720477491617203, 0.02058199979364872, -0.03298546373844147, -0.05340571701526642, 0.02890206314623356, -0.009575270116329193, -0.15794377028942108, -0.042238619178533554, 0.007289119064807892, -0.00381482089869678, -0.08733655512332916, -0.06818772107362747, -0.000483797601191327, -0.08066003024578094, -0.03526148945093155, -0.06577008962631226, 0.037991806864738464, 0.029691671952605247, -0.056776661425828934, 0.01163384597748518, -0.09611692279577255, 0.044042833149433136, 0.04373541101813316, 0.05675242841243744, -0.08217551559209824, -0.03429633006453514, -0.05496663972735405, 0.0346694141626358, -0.09313708543777466, 0.012581952847540379, 0.03772871941328049, 0.12120405584573746, -0.015022313222289085, 0.007423738483339548, -0.021618368104100227, 0.09665283560752869, -0.07388266175985336, 0.0009274145704694092, -0.031705521047115326, 0.046852339059114456, -0.05213772878050804, 0.04029986634850502, -0.0024953577667474747, 0.016336465254426003, -0.0676802545785904, 0.07412503659725189, 0.04933389276266098, -0.005236565601080656, 0.07077571004629135, 0.015837738290429115, 0.006799513939768076 ]
0.055704
# OpenProse OpenProse 是一种可移植的、以 Markdown 为中心的工作流格式,用于编排 AI 会话。在 OpenClaw 中,它作为插件发布,安装一个 OpenProse Skills 包以及一个 `/prose` 斜杠命令。程序存放在 `.prose` 文件中,可以生成多个具有显式控制流的子智能体。 官方网站:https://www.prose.md ## 它能做什么 - 具有显式并行性的多智能体研究 + 综合。 - 可重复的批准安全工作流(代码审查、事件分类、内容管道)。 - 可在支持的智能体运行时之间运行的可重用 `.prose` 程序。 ## 安装 + 启用 捆绑的插件默认是禁用的。启用 OpenProse: ```bash openclaw plugins enable open-prose ``` 启用插件后重启 Gateway 网关。 开发/本地检出:`openclaw plugins install ./extensions/open-prose` 相关文档:[插件](/plugin)、[插件清单](/plugins/manifest)、[Skills](/tools/skills)。 ## 斜杠命令 OpenProse 将 `/prose` 注册为用户可调用的 Skills 命令。它路由到 OpenProse VM 指令,并在底层使用 OpenClaw 工具。 常用命令: ``` /prose help /prose run /prose run /prose run /prose compile /prose examples /prose update ``` ## 示例:一个简单的 `.prose` 文件 ```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 } ``` ## 文件位置 OpenProse 将状态保存在工作空间的 `.prose/` 下: ``` .prose/ ├── .env ├── runs/ │ └── {YYYYMMDD}-{HHMMSS}-{random}/ │ ├── program.prose │ ├── state.md │ ├── bindings/ │ └── agents/ └── agents/ ``` 用户级持久智能体位于: ``` ~/.prose/agents/ ``` ## 状态模式 OpenProse 支持多种状态后端: - \*\*filesystem\*\*(默认):`.prose/runs/...` - \*\*in-context\*\*:瞬态,用于小程序 - \*\*sqlite\*\*(实验性):需要 `sqlite3` 二进制文件 - \*\*postgres\*\*(实验性):需要 `psql` 和连接字符串 说明: - sqlite/postgres 是选择加入的,且处于实验阶段。 - postgres 凭证会流入子智能体日志;请使用专用的、最小权限的数据库。 ## 远程程序 `/prose run ` 解析为 `https://p.prose.md//`。 直接 URL 按原样获取。这使用 `web\_fetch` 工具(或用于 POST 的 `exec`)。 ## OpenClaw 运行时映射 OpenProse 程序映射到 OpenClaw 原语: | OpenProse 概念 | OpenClaw 工具 | | -------------------- | ---------------- | | 生成会话 / Task 工具 | `sessions\_spawn` | | 文件读/写 | `read` / `write` | | Web 获取 | `web\_fetch` | 如果你的工具白名单阻止这些工具,OpenProse 程序将失败。参见 [Skills 配置](/tools/skills-config)。 ## 安全 + 批准 将 `.prose` 文件视为代码。运行前请审查。使用 OpenClaw 工具白名单和批准门控来控制副作用。 对于确定性的、批准门控的工作流,可与 [Lobster](/tools/lobster) 比较。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/prose.md
main
opebclaw
[ -0.028194352984428406, 0.033413082361221313, -0.07197494804859161, -0.02561621181666851, 0.014934410341084003, -0.00498167471960187, 0.02871912345290184, 0.046922605484724045, 0.06213418394327164, 0.0073613994754850864, 0.10356859862804413, 0.017801335081458092, 0.01784682087600231, -0.026942363008856773, 0.05003080517053604, 0.03900124505162239, -0.12087125331163406, 0.019501058384776115, -0.034514740109443665, 0.00039971680962480605, 0.016992459073662758, -0.014183791354298592, 0.0469488799571991, -0.008111999370157719, -0.06295230984687805, 0.0471026636660099, -0.04090375825762749, 0.0711076483130455, 0.04444798454642296, -0.027767689898610115, 0.003909572493284941, 0.06326868385076523, 0.0024939889553934336, -0.035094741731882095, 0.10175015777349472, 0.09565543383359909, 0.00999047514051199, -0.012489489279687405, -0.06289352476596832, 0.007315292954444885, 0.034147508442401886, -0.022662915289402008, -0.06038014218211174, -0.05016733705997467, 0.026540614664554596, 0.0010683051077648997, -0.07559499144554138, -0.0644170343875885, -0.06732159852981567, -0.05843627452850342, -0.1090344786643982, -0.04568861052393913, -0.033003486692905426, -0.013175144791603088, 0.009668619371950626, -0.009612991474568844, 0.018397346138954163, -0.01708095148205757, -0.013476438820362091, -0.0012622153153643012, -0.04173116758465767, 0.035130638629198074, -0.050101589411497116, 0.048413705080747604, -0.06668426096439362, -0.029425526037812233, -0.018741346895694733, 0.058343857526779175, -0.05618764087557793, -0.012882078066468239, -0.0954497903585434, -0.017878253012895584, 0.008831807412207127, 0.03231789171695709, -0.033195365220308304, -0.02291340008378029, -0.013798144645988941, -0.06764286011457443, -0.0638420358300209, -0.14919885993003845, -0.001501297578215599, 0.056052789092063904, -0.014370822347700596, 0.01908305287361145, -0.05042286962270737, 0.13524948060512543, -0.016486629843711853, -0.03413666412234306, 0.1386743187904358, -0.012503563426434994, 0.036320485174655914, -0.04071207344532013, -0.036194197833538055, 0.028761450201272964, 0.035992011427879333, -0.09698042273521423, 0.0024000867269933224, 0.017364801838994026, -0.06595642864704132, 0.05998315289616585, -0.029330456629395485, -0.04624433070421219, 0.025480967015028, -0.039017703384160995, -0.07848616689443588, -0.027696186676621437, 0.029866714030504227, 0.03561290726065636, 0.0440748855471611, -0.013086376711726189, 0.001027993974275887, -0.07971183955669403, 0.03279060125350952, -0.1099737212061882, 0.013811838813126087, 0.032649777829647064, -0.046966083347797394, -0.09232991188764572, 0.047315847128629684, 0.02494603767991066, 0.053995560854673386, -0.004461043048650026, -0.05793890357017517, -0.049879807978868484, -0.06250491738319397, -0.009096748195588589, 0.0802990198135376, -3.000896936682163e-33, 0.007215373683720827, 0.006251835264265537, -0.01927664503455162, -0.006923656444996595, 0.05113678798079491, -0.032931528985500336, -0.018299462273716927, -0.03196875378489494, -0.106876440346241, 0.06171835586428642, 0.03528422862291336, 0.004059698432683945, -0.13390420377254486, 0.1116592213511467, 0.014016076922416687, -0.05253930762410164, -0.015483329072594643, 0.0006707184948027134, 0.02700968272984028, -0.04764309898018837, 0.05224575847387314, 0.0045844861306250095, 0.028389830142259598, 0.005401588045060635, 0.008115787990391254, 0.025692854076623917, 0.06834577769041061, -0.00982207152992487, -0.016551794484257698, 0.012169131077826023, 0.05342748388648033, -0.028067251667380333, -0.05735386908054352, -0.007113021798431873, -0.061944156885147095, 0.008250896818935871, 0.006016906350851059, -0.055164746940135956, 0.03231627866625786, -0.004183235112577677, -0.08609824627637863, 0.008496140129864216, 0.03909159079194069, 0.05168415233492851, 0.08694641292095184, 0.014046191237866879, -0.08647596836090088, 0.029211562126874924, 0.06092643737792969, -0.02025529183447361, -0.05142700672149658, 0.04672961309552193, 0.026554502546787262, -0.004982088692486286, 0.01288667879998684, -0.028241511434316635, -0.07669632136821747, -0.015459735877811909, -0.01425991766154766, -0.04445674270391464, 0.020545709878206253, 0.04137137159705162, -0.03656633943319321, -0.04403253644704819, 0.032603032886981964, 0.04025479406118393, -0.01638621650636196, -0.016531439498066902, 0.06732720136642456, -0.049598414450883865, -0.14127688109874725, 0.004545009694993496, 0.035484105348587036, 0.004017835482954979, -0.05966588854789734, 0.012446974404156208, -0.04042692482471466, -0.019362563267350197, 0.08350745588541031, -0.021118946373462677, -0.07383406162261963, -0.03634835034608841, -0.0843309611082077, 0.023762168362736702, -0.05069548264145851, 0.019660649821162224, 0.06706584990024567, 0.015498175285756588, -0.03211385756731033, 0.030686097219586372, -0.053200822323560715, 0.008196711540222168, -0.020932169631123543, -0.006390816997736692, -0.054228268563747406, -2.2359575795379907e-33, -0.031009117141366005, 0.039108943194150925, -0.05072580277919769, 0.03182785212993622, 0.009330461733043194, -0.03289331868290901, 0.0002544038579799235, -0.02297489158809185, 0.043659646064043045, 0.018602941185235977, -0.030275853350758553, 0.0141365397721529, -0.02051200158894062, -0.013001753017306328, 0.026980126276612282, -0.025307828560471535, -0.05078704282641411, 0.10737515985965729, -0.034719549119472504, 0.0639650970697403, -0.022966541349887848, 0.0975603237748146, -0.09829724580049515, 0.021641749888658524, 0.04246446490287781, 0.020866043865680695, 0.04322761297225952, -0.004568975418806076, 0.0010101576335728168, 0.01956711895763874, 0.04963872209191322, -0.021829184144735336, -0.09358315914869308, 0.10054272413253784, -0.06775309890508652, -0.019962916150689125, 0.025220829993486404, -0.06530241668224335, -0.07163912057876587, -0.028160078451037407, 0.06126628443598747, -0.04703262448310852, 0.01428217627108097, -0.04667215794324875, -0.04014171287417412, 0.03787342458963394, -0.09753528237342834, -0.08007636666297913, -0.03974168747663498, -0.06459517031908035, 0.05184207484126091, 0.003908749669790268, -0.015312875621020794, -0.08517143130302429, 0.015434175729751587, -0.0424824059009552, 0.002787079894915223, -0.12733221054077148, -0.14838264882564545, -0.07917509227991104, 0.07365592569112778, 0.07416702806949615, -0.007325871381908655, 0.0106264753267169, 0.007296563126146793, -0.06398702412843704, 0.03996463865041733, 0.035206373780965805, 0.010837121866643429, -0.10839524120092392, -0.03194010630249977, 0.02713911607861519, 0.06928195804357529, -0.10948619246482849, 0.01412208005785942, 0.030345719307661057, -0.04733075201511383, 0.05198981240391731, -0.01060295756906271, 0.051710110157728195, 0.0024599761236459017, -0.08483894169330597, 0.020330606028437614, 0.09251011162996292, -0.03407018259167671, 0.019071655347943306, 0.0015610894188284874, 0.0835251733660698, 0.009713813662528992, 0.03279699757695198, -0.06864979863166809, 0.08663351833820343, 0.025772105902433395, 0.0926501601934433, -0.00897723063826561, -4.8274490183075613e-8, -0.02457316592335701, -0.13172151148319244, 0.0011154956882819533, -0.04316508769989014, -0.022129781544208527, -0.06881844997406006, -0.016762742772698402, -0.06024513766169548, -0.012271551415324211, 0.02007368393242359, 0.021886954084038734, 0.04777323454618454, -0.061030711978673935, 0.006074911914765835, -0.07462681829929352, 0.05008317902684212, -0.03835829347372055, 0.05819050967693329, 0.00993747916072607, -0.10511207580566406, 0.011252126656472683, 0.07736355811357498, 0.024090496823191643, -0.05115767568349838, -0.0825008824467659, 0.0003277512441854924, -0.11777893453836441, -0.009037495590746403, -0.05904650315642357, 0.03748961165547371, 0.09667219966650009, -0.017317630350589752, 0.06878690421581268, -0.0061876350082457066, 0.08600173890590668, 0.038189951330423355, 0.02860238216817379, 0.04201823100447655, -0.015048992820084095, 0.03512468561530113, 0.054757893085479736, -0.09001743048429489, 0.0185077041387558, 0.02551482804119587, 0.04335663467645645, -0.03400232270359993, 0.04180729761719704, 0.031154191121459007, 0.013844099827110767, -0.010225578211247921, 0.0139558594673872, 0.0116238072514534, 0.02228528819978237, -0.02301963046193123, -0.004338525701314211, 0.03337628021836281, 0.006025283597409725, 0.030521299690008163, -0.0028129599522799253, 0.06353162974119186, 0.009740851819515228, 0.04166845977306366, 0.08423955738544464, 0.055968333035707474 ]
0.115412
# VPS 托管 本中心链接到支持的 VPS/托管指南,并在高层次上解释云部署的工作原理。 ## 选择提供商 - \*\*Railway\*\*(一键 + 浏览器设置):[Railway](/railway) - \*\*Northflank\*\*(一键 + 浏览器设置):[Northflank](/northflank) - \*\*Oracle Cloud(永久免费)\*\*:[Oracle](/platforms/oracle) — $0/月(永久免费,ARM;容量/注册可能不太稳定) - \*\*Fly.io\*\*:[Fly.io](/platforms/fly) - \*\*Hetzner(Docker)\*\*:[Hetzner](/platforms/hetzner) - \*\*GCP(Compute Engine)\*\*:[GCP](/platforms/gcp) - \*\*exe.dev\*\*(VM + HTTPS 代理):[exe.dev](/platforms/exe-dev) - \*\*AWS(EC2/Lightsail/免费套餐)\*\*:也运行良好。视频指南: https://x.com/techfrenAJ/status/2014934471095812547 ## 云设置的工作原理 - \*\*Gateway 网关运行在 VPS 上\*\*并拥有状态 + 工作区。 - 你通过\*\*控制 UI\*\* 或 \*\*Tailscale/SSH\*\* 从笔记本电脑/手机连接。 - 将 VPS 视为数据源并\*\*备份\*\*状态 + 工作区。 - 安全默认:将 Gateway 网关保持在 loopback 上,通过 SSH 隧道或 Tailscale Serve 访问。 如果你绑定到 `lan`/`tailnet`,需要 `gateway.auth.token` 或 `gateway.auth.password`。 远程访问:[Gateway 网关远程访问](/gateway/remote) 平台中心:[平台](/platforms) ## 在 VPS 上使用节点 你可以将 Gateway 网关保持在云端,并在本地设备(Mac/iOS/Android/无头)上配对\*\*节点\*\*。节点提供本地屏幕/摄像头/canvas 和 `system.run` 功能,而 Gateway 网关保持在云端。 文档:[节点](/nodes),[节点 CLI](/cli/nodes)
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/vps.md
main
opebclaw
[ -0.07927292585372925, 0.07681188732385635, 0.04198223724961281, -0.049570780247449875, 0.057123929262161255, -0.0299224890768528, 0.08979909121990204, -0.049778081476688385, 0.0036136487033218145, -0.03753628954291344, 0.12623123824596405, -0.10662046819925308, -0.00733675342053175, -0.05043835937976837, 0.002654921729117632, 0.0504714734852314, -0.04685346782207489, 0.0499136857688427, -0.037819698452949524, -0.01970590278506279, -0.025599632412195206, -0.06634865701198578, 0.010936069302260876, 0.01491489913314581, -0.06109431013464928, 0.032014332711696625, -0.06250486522912979, 0.02291167341172695, 0.0038951130118221045, -0.08773405849933624, -0.06761178374290466, 0.0989367887377739, -0.04871232807636261, 0.04525191709399223, 0.09598476439714432, 0.06047002226114273, 0.0008564764284528792, -0.05757736787199974, -0.07731171697378159, -0.003742081578820944, -0.042689237743616104, -0.04727226868271828, 0.006905233021825552, 0.026293233036994934, 0.016138076782226562, 0.05517962574958801, -0.044972825795412064, -0.06713128834962845, -0.06802545487880707, -0.008274639956653118, -0.048425037413835526, -0.06745541840791702, -0.018880631774663925, 0.01867932640016079, 0.04083101451396942, 0.060631148517131805, -0.03268275782465935, 0.052063364535570145, 0.0795576274394989, 0.020016517490148544, -0.05247367545962334, 0.08582964539527893, -0.02397439256310463, -0.005741199478507042, -0.04130387678742409, 0.008126690983772278, -0.024000342935323715, 0.018438486382365227, -0.025154683738946915, 0.0482809841632843, -0.024949435144662857, -1.9442511245415517e-7, -0.016634076833724976, 0.034485235810279846, -0.10123810917139053, 0.02440444566309452, -0.007133203092962503, -0.016511529684066772, -0.04676742106676102, -0.12229660153388977, -0.02810196578502655, -0.0043168277479708195, 0.001087103271856904, -0.02440371736884117, -0.029274074360728264, 0.06993742287158966, -0.015193959698081017, -0.09702517837285995, 0.08134384453296661, -0.03294474259018898, 0.03992753103375435, -0.05509885773062706, 0.08007773756980896, 0.06524854898452759, 0.023589657619595528, 0.06539368629455566, -0.0017058993689715862, -0.00500996969640255, -0.02159160189330578, 0.06825139373540878, 0.03703281655907631, 0.0956077128648758, -0.0015092671383172274, 0.01264866627752781, -0.09709373116493225, 0.024062510579824448, -0.09299398958683014, 0.007366622798144817, 0.04546763375401497, -0.011669415980577469, -0.00022421761241275817, -0.055124375969171524, -0.023830994963645935, -0.13629484176635742, -0.05798621475696564, -0.017810160294175148, -0.07913415133953094, -0.08589485287666321, -0.023127052932977676, 0.023131052032113075, 0.049123723059892654, -0.006798058282583952, -0.02960803359746933, -0.001416239538230002, -0.021944738924503326, -0.05422129109501839, 0.08150345832109451, 4.2455821706907965e-33, 0.020785968750715256, 0.02383328229188919, 0.007907219231128693, -0.060210615396499634, 0.04415222629904747, -0.08331360667943954, -0.014952247962355614, 0.006331088021397591, -0.16213920712471008, 0.10739897191524506, -0.08447550237178802, 0.018565712496638298, -0.09493314474821091, -0.006173132918775082, 0.06252225488424301, -0.03562507405877113, 0.07736382633447647, -0.051679741591215134, 0.03362979367375374, -0.008086125366389751, 0.042455315589904785, 0.09892307966947556, -0.02941483072936535, -0.11658070981502533, 0.009398877620697021, 0.030058221891522408, 0.015620991587638855, -0.017255635932087898, 0.03131992742419243, 0.05207345634698868, 0.03716776892542839, -0.021817263215780258, -0.008758996613323689, 0.03352048248052597, -0.07364049553871155, 0.024563930928707123, -0.0102847870439291, -0.00821134727448225, -0.04514274373650551, 0.0034627702552825212, -0.034337591379880905, 0.004260539542883635, -0.10748330503702164, 0.05219847336411476, 0.04168394207954407, 0.008587373420596123, -0.03692092001438141, -0.06134020909667015, 0.05711425095796585, -0.051117245107889175, -0.11354324221611023, -0.01827581785619259, -0.010385578498244286, 0.044177331030368805, 0.07116907835006714, -0.018696816638112068, -0.027010422199964523, 0.016691923141479492, 0.001611419371329248, 0.02432936057448387, 0.00936587993055582, 0.009458194486796856, -0.008089779876172543, -0.001568848849274218, 0.04130658134818077, 0.02888244390487671, -0.039651330560445786, 0.0230192132294178, 0.025264400988817215, -0.03162132203578949, -0.11310978978872299, -0.01832813397049904, 0.14595246315002441, 0.04397040233016014, 0.023609496653079987, -0.05850234255194664, -0.13337814807891846, -0.05694440379738808, -0.04675382748246193, 0.01389544177800417, -0.11195491254329681, -0.01598178595304489, -0.05578979104757309, 0.059207092970609665, 0.016745952889323235, -0.0026619124691933393, 0.02844063937664032, -0.026536667719483376, -0.012673069722950459, 0.020280402153730392, -0.10275600850582123, -0.026767723262310028, 0.06988782435655594, -0.03902428597211838, -0.11450142413377762, -7.519296468848435e-33, 0.010134033858776093, 0.0447692908346653, -0.1101522147655487, 0.004183534998446703, -0.07189565151929855, -0.044536955654621124, 0.08472505211830139, -0.01568625681102276, -0.05783412978053093, 0.04410484433174133, -0.04510391131043434, 0.06619984656572342, 0.03130275011062622, -0.0596969798207283, -0.0001686701871221885, 0.03272894769906998, -0.00992452260106802, 0.0393134206533432, -0.03492508456110954, 0.09081819653511047, -0.0297824889421463, 0.010058695450425148, -0.09692713618278503, 0.060587652027606964, 0.005819712299853563, 0.08259165287017822, 0.12082196027040482, -0.024529030546545982, 0.02078666165471077, 0.07497931271791458, -0.000345729204127565, 0.008573921397328377, -0.026191359385848045, 0.05822436138987541, -0.01587134785950184, -0.06592046469449997, -0.01979695074260235, 0.022851647809147835, -0.01579311676323414, -0.061913665384054184, -0.008678464218974113, -0.059495534747838974, 0.03843442350625992, -0.03522787243127823, -0.006197614595293999, 0.008044710382819176, -0.03507092222571373, 0.015202252194285393, -0.05390674248337746, -0.07755616307258606, 0.05510518327355385, -0.07821884751319885, -0.03506888076663017, -0.009994209744036198, 0.05517404526472092, 0.056657612323760986, -0.02841632254421711, -0.034132715314626694, -0.03334306925535202, -0.06541388481855392, 0.061226993799209595, -0.01755879819393158, 0.014648495241999626, -0.0027053016237914562, 0.01667770929634571, -0.012140286155045033, 0.026712093502283096, 0.036851949989795685, 0.06145366281270981, -0.10433740168809891, -0.02949024736881256, 0.08083713054656982, -0.011626314371824265, -0.019522875547409058, 0.014768114313483238, -0.015389767475426197, 0.010620322078466415, 0.049189694225788116, 0.07983505725860596, 0.038027118891477585, -0.058195725083351135, 0.017041265964508057, 0.0012821662239730358, -0.00209823134355247, -0.008141770027577877, -0.04230509698390961, -0.031010741367936134, 0.07128286361694336, 0.02253057435154915, -0.03421660512685776, 0.02845275215804577, 0.022978447377681732, 0.04238959401845932, 0.07508456707000732, -0.047346241772174835, -5.143068548818519e-8, 0.0009138596360571682, -0.028264055028557777, -0.04288751631975174, -0.020892227068543434, 0.005385574884712696, -0.05214916169643402, 0.04822954162955284, 0.030958594754338264, -0.044012799859046936, -0.024643946439027786, 0.058642446994781494, 0.027618560940027237, -0.08690120279788971, 0.027017008513212204, -0.01546002272516489, -0.014828230254352093, -0.04917431250214577, 0.12332320958375931, -0.030722716823220253, -0.0962144210934639, 0.008030775003135204, 0.04317822679877281, 0.01428533811122179, -0.07902257889509201, -0.07353811711072922, 0.011303570121526718, -0.027254099026322365, -0.0022496976889669895, 0.0013628589222207665, 0.02200453169643879, -0.01778274029493332, -0.011352472938597202, -0.023921824991703033, 0.010646166279911995, 0.07014539837837219, 0.0734327882528305, 0.01553056575357914, 0.010649536736309528, 0.03686310723423958, 0.004305628128349781, -0.008561898022890091, -0.06400808691978455, 0.03113429993391037, 0.04807574674487114, 0.09071530401706696, -0.04355212301015854, 0.0329316109418869, 0.024301452562212944, 0.015962863340973854, 0.018696939572691917, 0.015109960921108723, -0.012174593284726143, -0.017652971670031548, 0.018142497166991234, 0.07760363072156906, 0.054180439561605453, -0.04052557423710823, -0.04769130423665047, -0.029227854683995247, 0.04591720551252365, 0.06681398302316666, 0.003249068045988679, 0.021561583504080772, 0.012919054366648197 ]
0.088305
# Amazon Bedrock OpenClaw 可以通过 pi‑ai 的 \*\*Bedrock Converse\*\* 流式提供商使用 \*\*Amazon Bedrock\*\* 模型。Bedrock 认证使用 \*\*AWS SDK 默认凭证链\*\*,而非 API 密钥。 ## pi‑ai 支持的功能 - 提供商:`amazon-bedrock` - API:`bedrock-converse-stream` - 认证:AWS 凭证(环境变量、共享配置或实例角色) - 区域:`AWS\_REGION` 或 `AWS\_DEFAULT\_REGION`(默认:`us-east-1`) ## 自动模型发现 如果检测到 AWS 凭证,OpenClaw 可以自动发现支持\*\*流式传输\*\*和\*\*文本输出\*\*的 Bedrock 模型。发现功能使用 `bedrock:ListFoundationModels`,并会被缓存(默认:1 小时)。 配置选项位于 `models.bedrockDiscovery` 下: ```json5 { models: { bedrockDiscovery: { enabled: true, region: "us-east-1", providerFilter: ["anthropic", "amazon"], refreshInterval: 3600, defaultContextWindow: 32000, defaultMaxTokens: 4096, }, }, } ``` 注意事项: - `enabled` 在存在 AWS 凭证时默认为 `true`。 - `region` 默认为 `AWS\_REGION` 或 `AWS\_DEFAULT\_REGION`,然后是 `us-east-1`。 - `providerFilter` 匹配 Bedrock 提供商名称(例如 `anthropic`)。 - `refreshInterval` 单位为秒;设置为 `0` 可禁用缓存。 - `defaultContextWindow`(默认:`32000`)和 `defaultMaxTokens`(默认:`4096`)用于已发现的模型(如果你知道模型限制,可以覆盖这些值)。 ## 设置(手动) 1. 确保 AWS 凭证在 \*\*Gateway 网关主机\*\*上可用: ```bash export AWS\_ACCESS\_KEY\_ID="AKIA..." export AWS\_SECRET\_ACCESS\_KEY="..." export AWS\_REGION="us-east-1" # 可选: export AWS\_SESSION\_TOKEN="..." export AWS\_PROFILE="your-profile" # 可选(Bedrock API 密钥/Bearer 令牌): export AWS\_BEARER\_TOKEN\_BEDROCK="..." ``` 2. 在配置中添加 Bedrock 提供商和模型(无需 `apiKey`): ```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 实例角色 当在附加了 IAM 角色的 EC2 实例上运行 OpenClaw 时,AWS SDK 会自动使用实例元数据服务(IMDS)进行认证。但是,OpenClaw 的凭证检测目前只检查环境变量,不检查 IMDS 凭证。 \*\*解决方法:\*\* 设置 `AWS\_PROFILE=default` 以表明 AWS 凭证可用。实际认证仍然通过 IMDS 使用实例角色。 ```bash # 添加到 ~/.bashrc 或你的 shell 配置文件 export AWS\_PROFILE=default export AWS\_REGION=us-east-1 ``` EC2 实例角色\*\*所需的 IAM 权限\*\*: - `bedrock:InvokeModel` - `bedrock:InvokeModelWithResponseStream` - `bedrock:ListFoundationModels`(用于自动发现) 或者附加托管策略 `AmazonBedrockFullAccess`。 \*\*快速设置:\*\* ```bash # 1. 创建 IAM 角色和实例配置文件 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. 附加到你的 EC2 实例 aws ec2 associate-iam-instance-profile \ --instance-id i-xxxxx \ --iam-instance-profile Name=EC2-Bedrock-Access # 3. 在 EC2 实例上启用发现功能 openclaw config set models.bedrockDiscovery.enabled true openclaw config set models.bedrockDiscovery.region us-east-1 # 4. 设置解决方法所需的环境变量 echo 'export AWS\_PROFILE=default' >> ~/.bashrc echo 'export AWS\_REGION=us-east-1' >> ~/.bashrc source ~/.bashrc # 5. 验证模型已被发现 openclaw models list ``` ## 注意事项 - Bedrock 需要在你的 AWS 账户/区域中启用\*\*模型访问\*\*。 - 自动发现需要 `bedrock:ListFoundationModels` 权限。 - 如果你使用配置文件,请在 Gateway 网关主机上设置 `AWS\_PROFILE`。 - OpenClaw 按以下顺序获取凭证来源:`AWS\_BEARER\_TOKEN\_BEDROCK`,然后是 `AWS\_ACCESS\_KEY\_ID` + `AWS\_SECRET\_ACCESS\_KEY`,然后是 `AWS\_PROFILE`,最后是默认的 AWS SDK 链。 - 推理支持取决于模型;请查看 Bedrock 模型卡了解当前功能。 - 如果你更喜欢托管密钥流程,也可以在 Bedrock 前面放置一个 OpenAI 兼容的代理,并将其配置为 OpenAI 提供商。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/bedrock.md
main
opebclaw
[ -0.03250378742814064, 0.0062121981754899025, -0.014664788730442524, -0.05811033770442009, 0.10344855487346649, -0.09306196868419647, 0.016039405018091202, -0.0007065185345709324, 0.0455150231719017, 0.0028119124472141266, 0.10568714141845703, -0.07149627804756165, 0.04273645579814911, -0.03627533093094826, 0.08904039859771729, -0.034828294068574905, -0.060043398290872574, 0.00320264371111989, -0.03286147862672806, -0.02874104678630829, -0.007217815145850182, 0.06226952746510506, -0.045088689774274826, 0.0360945500433445, -0.06086890026926994, 0.013772905804216862, -0.04328034073114395, 0.029428770765662193, 0.024782029911875725, -0.12366687506437302, -0.024317409843206406, 0.085079126060009, 0.04877226799726486, 0.07246281951665878, 0.08161012083292007, 0.11861763149499893, -0.003420897526666522, -0.09162471443414688, -0.1444629728794098, -0.017928145825862885, -0.0012988829985260963, -0.02078928053379059, 0.0198318213224411, -0.06357089430093765, -0.06214921921491623, 0.051259998232126236, -0.05588626489043236, -0.021646976470947266, -0.06458701193332672, -0.02299715019762516, -0.09731993824243546, -0.019084544852375984, -0.05448854714632034, 0.018173925578594208, 0.07276619970798492, 0.10538266599178314, -0.028568079695105553, 0.029644783586263657, 0.011247709393501282, -0.029635664075613022, 0.02311011590063572, -0.08104684203863144, 0.009515149518847466, 0.0030115952249616385, -0.027969276532530785, 0.04372447729110718, -0.040475424379110336, -0.018323609605431557, 0.03317921608686447, -0.0436251163482666, -0.03676727041602135, -0.001391631900332868, -0.054404117166996, -0.003334551816806197, -0.008402767591178417, 0.07952083647251129, 0.056723952293395996, -0.005215482320636511, -0.09566977620124817, -0.09905510395765305, -0.0999118909239769, 0.052160631865262985, -0.03510652109980583, -0.02820594422519207, -0.06650356948375702, 0.044556792825460434, -0.0528905913233757, -0.030583025887608528, 0.03419679030776024, -0.01554185338318348, 0.017131667584180832, -0.06379688531160355, 0.042802345007658005, 0.05017567798495293, 0.010305994190275669, 0.0463191494345665, 0.07158773392438889, 0.027299832552671432, -0.03659616783261299, 0.006620792206376791, 0.03815057501196861, -0.019921263679862022, -0.03536274656653404, 0.01276826299726963, -0.04867512732744217, -0.06533201783895493, -0.08942166715860367, 0.05841236189007759, 0.03947306051850319, 0.018958935514092445, 0.003197662765160203, -0.01604217290878296, -0.0037393588572740555, -0.0978725254535675, -0.0755360946059227, -0.0007405245560221374, -0.020605431869626045, -0.046707045286893845, 0.07117518037557602, 0.016351250931620598, 0.0600418746471405, -0.014923295006155968, 0.010377086699008942, -0.08134007453918457, -0.07998787611722946, 0.01560637354850769, 0.05490410700440407, 1.423351467290494e-33, 0.011514277197420597, -0.05796780064702034, -0.022828303277492523, -0.05042014643549919, 0.04972802847623825, -0.0683407261967659, 0.0018464140594005585, 0.01677546091377735, -0.045344702899456024, -0.015794729813933372, -0.03840421140193939, 0.030244655907154083, -0.09971760213375092, 0.04024825245141983, -0.030266396701335907, -0.07036519050598145, 0.00893839169293642, 0.03408702835440636, 0.007705654017627239, 0.046222057193517685, 0.061222825199365616, 0.0554504320025444, -0.02255498431622982, -0.02324007824063301, -0.0024928555358201265, 0.017315570265054703, 0.002965400228276849, -0.066419318318367, -0.024535149335861206, 0.05330132320523262, 0.058904871344566345, -0.04040065035223961, -0.037056952714920044, 0.02898477576673031, 0.01228984072804451, -0.01813804730772972, 0.013615504838526249, -0.01879103109240532, -0.09752057492733002, -0.05289413779973984, -0.011891785077750683, -0.02215542644262314, -0.050037600100040436, 0.028199192136526108, 0.027699321508407593, -0.06439784914255142, -0.06551417708396912, 0.0218453761190176, 0.022239886224269867, -0.05299682170152664, -0.04283139854669571, 0.010967868380248547, 0.05159159004688263, -0.020922929048538208, 0.04050234332680702, -0.09973025321960449, -0.020231204107403755, -0.046238046139478683, -0.012022363021969795, 0.004701909143477678, -0.026767443865537643, 0.07613565772771835, -0.02243020199239254, 0.047758858650922775, 0.05810211971402168, 0.06961150467395782, 0.04312926158308983, 0.0283113531768322, 0.02722441963851452, -0.040765006095170975, -0.07755373418331146, 0.05114356800913811, 0.09116063266992569, 0.0901036411523819, -0.04857248812913895, -0.07498126477003098, -0.036786872893571854, -0.053327739238739014, 0.049431391060352325, 0.0016217146767303348, -0.08163873851299286, 0.02457735501229763, -0.09343469887971878, 0.05898319557309151, -0.11352355033159256, 0.03344852104783058, 0.033524271100759506, 0.01432364247739315, 0.03281237930059433, -0.034701697528362274, -0.1282164305448532, -0.026389656588435173, 0.040262941271066666, -0.06325570493936539, -0.045072101056575775, -6.229034931135521e-33, 0.013259116560220718, 0.015060239471495152, -0.017632251605391502, 0.011144264601171017, -0.03278060629963875, -0.08139891922473907, 0.10838838666677475, 0.08799215406179428, -0.005718002561479807, -0.04047885164618492, -0.03619706630706787, 0.02109544537961483, 0.0010427547385916114, -0.08703222870826721, 0.02321820706129074, 0.043697260320186615, -0.012574187479913235, -0.06371311843395233, -0.026387222111225128, 0.02974342554807663, -0.09076014161109924, -0.04037601128220558, -0.09330843389034271, 0.011340647004544735, 0.030170513316988945, 0.000978523981757462, 0.01896044611930847, 0.024562643840909004, 0.00272690923884511, -0.0415630005300045, 0.010453484021127224, 0.038955558091402054, -0.07050216197967529, 0.10949547588825226, -0.09420371800661087, -0.06753063201904297, -0.01882273331284523, 0.08460524678230286, -0.03941470384597778, -0.0765034481883049, 0.019962456077337265, -0.006159001495689154, -0.04448038712143898, 0.004637620411813259, -0.00033886858727782965, 0.0371604859828949, -0.023359494283795357, 0.03237633407115936, -0.03490939363837242, -0.04395990073680878, 0.06779256463050842, -0.022527212277054787, 0.0028502156492322683, 0.0031522607896476984, 0.0225698072463274, 0.05643506720662117, 0.02495758980512619, 0.013440774753689766, -0.04495168477296829, -0.03492320328950882, 0.03601639345288277, -0.055707890540361404, 0.044679611921310425, 0.03377938270568848, 0.04531300067901611, 0.004856170620769262, -0.052467186003923416, -0.009143337607383728, -0.025069575756788254, -0.06652502715587616, -0.011903314851224422, 0.045237839221954346, 0.01073551457375288, -0.08907973021268845, 0.05802503600716591, 0.05612686648964882, -0.054742638021707535, 0.036062806844711304, -0.0065747397020459175, 0.03172271326184273, -0.04438595101237297, 0.10208946466445923, 0.04172569885849953, 0.0956113263964653, 0.09391094744205475, -0.0249114241451025, -0.007607867941260338, 0.09623613208532333, 0.024007633328437805, 0.040174663066864014, -0.10462825745344162, 0.008545235730707645, -0.013297162018716335, 0.11079982668161392, 0.005964325740933418, -4.5568942397267165e-8, -0.08365299552679062, -0.06001793220639229, -0.04187997058033943, -0.010006163269281387, 0.03179432079195976, 0.03428155183792114, 0.0017496623331680894, 0.018962934613227844, 0.06476262956857681, -0.04498293250799179, -0.05214861035346985, -0.024594182148575783, -0.1357239931821823, 0.015095879323780537, 0.003988747484982014, 0.013027874752879143, -0.010534852743148804, 0.0512426495552063, 0.014651165343821049, -0.028672561049461365, -0.015701986849308014, 0.0026091495528817177, 0.017538761720061302, -0.027253827080130577, -0.02085731364786625, 0.04991725832223892, 0.0217476487159729, 0.02402057684957981, -0.007273590192198753, -0.01256165187805891, 0.0139401750639081, -0.05635567381978035, 0.05194157361984253, 0.018246963620185852, 0.05183495208621025, 0.010156108997762203, -0.06607622653245926, 0.024994708597660065, -0.044120948761701584, 0.004289653152227402, -0.0021213185973465443, -0.054102037101984024, -0.07534090429544449, 0.008374777622520924, 0.11186235398054123, -0.06594803929328918, -0.06236369162797928, 0.07222454994916916, 0.007818324491381645, 0.05962922424077988, -0.032252438366413116, -0.05206763371825218, 0.00482046976685524, 0.00003457650382188149, 0.09636801481246948, 0.010908390395343304, 0.039644695818424225, -0.13630296289920807, 0.03432612493634224, 0.07036115974187851, 0.01581656001508236, 0.01545630767941475, 0.050618164241313934, 0.03588515892624855 ]
0.112449
# 测试 OpenClaw 包含三个 Vitest 测试套件(单元/集成、端到端、实时)以及一小组 Docker 运行器。 本文档是一份"我们如何测试"的指南: - 每个套件覆盖什么(以及它刻意\*不\*覆盖什么) - 常见工作流程应运行哪些命令(本地、推送前、调试) - 实时测试如何发现凭证并选择模型/提供商 - 如何为现实中的模型/提供商问题添加回归测试 ## 快速开始 日常使用: - 完整检查(推送前的预期流程):`pnpm build && pnpm check && pnpm test` 当你修改测试或需要额外的信心时: - 覆盖率检查:`pnpm test:coverage` - 端到端套件:`pnpm test:e2e` 调试真实提供商/模型时(需要真实凭证): - 实时套件(模型 + Gateway 网关工具/图像探测):`pnpm test:live` 提示:当你只需要一个失败用例时,建议使用下文描述的允许列表环境变量来缩小实时测试范围。 ## 测试套件(在哪里运行什么) 可以将这些套件理解为"逐渐增强的真实性"(以及逐渐增加的不稳定性/成本): ### 单元/集成测试(默认) - 命令:`pnpm test` - 配置:`vitest.config.ts` - 文件:`src/\*\*/\*.test.ts` - 范围: - 纯单元测试 - 进程内集成测试(Gateway 网关认证、路由、工具、解析、配置) - 已知问题的确定性回归测试 - 预期: - 在 CI 中运行 - 不需要真实密钥 - 应该快速且稳定 ### 端到端测试(Gateway 网关冒烟测试) - 命令:`pnpm test:e2e` - 配置:`vitest.e2e.config.ts` - 文件:`src/\*\*/\*.e2e.test.ts` - 范围: - 多实例 Gateway 网关端到端行为 - WebSocket/HTTP 接口、节点配对和较重的网络操作 - 预期: - 在 CI 中运行(当在流水线中启用时) - 不需要真实密钥 - 比单元测试有更多活动部件(可能较慢) ### 实时测试(真实提供商 + 真实模型) - 命令:`pnpm test:live` - 配置:`vitest.live.config.ts` - 文件:`src/\*\*/\*.live.test.ts` - 默认:通过 `pnpm test:live` \*\*启用\*\*(设置 `OPENCLAW\_LIVE\_TEST=1`) - 范围: - "这个提供商/模型用真实凭证\*今天\*实际能工作吗?" - 捕获提供商格式变更、工具调用怪癖、认证问题和速率限制行为 - 预期: - 设计上不适合 CI 稳定运行(真实网络、真实提供商策略、配额、故障) - 花费金钱/使用速率限制 - 建议运行缩小范围的子集而非"全部" - 实时运行会加载 `~/.profile` 以获取缺失的 API 密钥 - Anthropic 密钥轮换:设置 `OPENCLAW\_LIVE\_ANTHROPIC\_KEYS="sk-...,sk-..."`(或 `OPENCLAW\_LIVE\_ANTHROPIC\_KEY=sk-...`)或多个 `ANTHROPIC\_API\_KEY\*` 变量;测试会在遇到速率限制时重试 ## 我应该运行哪个套件? 使用这个决策表: - 编辑逻辑/测试:运行 `pnpm test`(如果改动较大,加上 `pnpm test:coverage`) - 涉及 Gateway 网关网络/WS 协议/配对:加上 `pnpm test:e2e` - 调试"我的机器人挂了"/提供商特定故障/工具调用:运行缩小范围的 `pnpm test:live` ## 实时测试:模型冒烟测试(配置文件密钥) 实时测试分为两层,以便隔离故障: - "直接模型"告诉我们提供商/模型是否能用给定的密钥正常响应。 - "Gateway 网关冒烟测试"告诉我们完整的 Gateway 网关 + 智能体管道是否对该模型正常工作(会话、历史记录、工具、沙箱策略等)。 ### 第一层:直接模型补全(无 Gateway 网关) - 测试:`src/agents/models.profiles.live.test.ts` - 目标: - 枚举发现的模型 - 使用 `getApiKeyForModel` 选择你有凭证的模型 - 每个模型运行一个小型补全(以及需要时的针对性回归测试) - 如何启用: - `pnpm test:live`(或直接调用 Vitest 时使用 `OPENCLAW\_LIVE\_TEST=1`) - 设置 `OPENCLAW\_LIVE\_MODELS=modern`(或 `all`,modern 的别名)以实际运行此套件;否则会跳过以保持 `pnpm test:live` 专注于 Gateway 网关冒烟测试 - 如何选择模型: - `OPENCLAW\_LIVE\_MODELS=modern` 运行现代允许列表(Opus/Sonnet/Haiku 4.5、GPT-5.x + Codex、Gemini 3、GLM 4.7、MiniMax M2.1、Grok 4) - `OPENCLAW\_LIVE\_MODELS=all` 是现代允许列表的别名 - 或 `OPENCLAW\_LIVE\_MODELS="openai/gpt-5.2,anthropic/claude-opus-4-5,..."`(逗号分隔的允许列表) - 如何选择提供商: - `OPENCLAW\_LIVE\_PROVIDERS="google,google-antigravity,google-gemini-cli"`(逗号分隔的允许列表) - 密钥来源: - 默认:配置文件存储和环境变量回退 - 设置 `OPENCLAW\_LIVE\_REQUIRE\_PROFILE\_KEYS=1` 以强制\*\*仅使用配置文件存储\*\* - 为什么存在这个测试: - 将"提供商 API 损坏/密钥无效"与"Gateway 网关智能体管道损坏"分离 - 包含小型、隔离的回归测试(例如:OpenAI Responses/Codex Responses 推理重放 + 工具调用流程) ### 第二层:Gateway 网关 + 开发智能体冒烟测试("@openclaw"实际做的事) - 测试:`src/gateway/gateway-models.profiles.live.test.ts` - 目标: - 启动一个进程内 Gateway 网关 - 创建/修补一个 `agent:dev:\*` 会话(每次运行覆盖模型) - 遍历有密钥的模型并断言: - "有意义的"响应(无工具) - 真实的工具调用工作正常(读取探测) - 可选的额外工具探测(执行+读取探测) - OpenAI 回归路径(仅工具调用 → 后续)保持工作 - 探测详情(以便你能快速解释故障): - `read` 探测:测试在工作区写入一个随机数文件,要求智能体 `read` 它并回显随机数。 - `exec+read` 探测:测试要求智能体 `exec` 将随机数写入临时文件,然后 `read` 回来。 - 图像探测:测试附加一个生成的 PNG(猫 + 随机代码),期望模型返回 `cat ```` `。 - 实现参考:`src/gateway/gateway-models.profiles.live.test.ts` 和 `src/gateway/live-image-probe.ts`。 - 如何启用: - `pnpm test:live`(或直接调用 Vitest 时使用 `OPENCLAW_LIVE_TEST=1`) - 如何选择模型: - 默认:现代允许列表(Opus/Sonnet/Haiku 4.5、GPT-5.x + Codex、Gemini 3、GLM 4.7、MiniMax M2.1、Grok 4) - `OPENCLAW_LIVE_GATEWAY_MODELS=all` 是现代允许列表的别名 - 或设置 `OPENCLAW_LIVE_GATEWAY_MODELS="provider/model"`(或逗号分隔列表)来缩小范围 - 如何选择提供商(避免"OpenRouter 全部"): - `OPENCLAW_LIVE_GATEWAY_PROVIDERS="google,google-antigravity,google-gemini-cli,openai,anthropic,zai,minimax"`(逗号分隔的允许列表) - 工具 + 图像探测在此实时测试中始终开启: - `read` 探测 + `exec+read` 探测(工具压力测试) - 当模型声明支持图像输入时运行图像探测 - 流程(高层次): - 测试生成一个带有"CAT"+ 随机代码的小型 PNG(`src/gateway/live-image-probe.ts`) - 通过 `agent` `attachments: [{ mimeType: "image/png", content: "" }]` 发送 - Gateway 网关将附件解析为 `images[]`(`src/gateway/server-methods/agent.ts` + `src/gateway/chat-attachments.ts`) - 嵌入式智能体将多模态用户消息转发给模型 - 断言:回复包含 `cat` + 代码(OCR 容差:允许轻微错误) 提示:要查看你的机器上可以测试什么(以及确切的 `provider/model` ID),运行: ```bash openclaw models list openclaw models list --json ``` ## 实时测试:Anthropic 设置令牌冒烟测试 - 测试:`src/agents/anthropic.setup-token.live.test.ts` - 目标:验证 Claude Code CLI 设置令牌(或粘贴的设置令牌配置文件)能完成 Anthropic 提示。 - 启用: - `pnpm test:live`(或直接调用 Vitest 时使用 `OPENCLAW_LIVE_TEST=1`) - `OPENCLAW_LIVE_SETUP_TOKEN=1` - 令牌来源(选择一个): - 配置文件:`OPENCLAW_LIVE_SETUP_TOKEN_PROFILE=anthropic:setup-token-test` - 原始令牌:`OPENCLAW_LIVE_SETUP_TOKEN_VALUE=sk-ant-oat01-...` - 模型覆盖(可选): - `OPENCLAW_LIVE_SETUP_TOKEN_MODEL=anthropic/claude-opus-4-5` 设置示例: ```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 ``` ## 实时测试:CLI 后端冒烟测试(Claude Code CLI 或其他本地 CLI) - 测试:`src/gateway/gateway-cli-backend.live.test.ts` - 目标:使用本地 CLI 后端验证 Gateway 网关 + 智能体管道,而不影响你的默认配置。 - 启用: - `pnpm test:live`(或直接调用 Vitest 时使用 `OPENCLAW_LIVE_TEST=1`) - `OPENCLAW_LIVE_CLI_BACKEND=1` - 默认值: - 模型:`claude-cli/claude-sonnet-4-5` - 命令:`claude` - 参数:`["-p","--output-format","json","--dangerously-skip-permissions"]` - 覆盖(可选): - `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` 发送真实图像附件(路径注入到提示中)。 - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_ARG="--image"` 将图像文件路径作为 CLI 参数传递而非提示注入。 - `OPENCLAW_LIVE_CLI_BACKEND_IMAGE_MODE="repeat"`(或 `"list"`)控制设置 `IMAGE_ARG` 时如何传递图像参数。 - `OPENCLAW_LIVE_CLI_BACKEND_RESUME_PROBE=1` 发送第二轮并验证恢复流程。 - `OPENCLAW_LIVE_CLI_BACKEND_DISABLE_MCP_CONFIG=0` 保持 Claude Code CLI MCP 配置启用(默认使用临时空文件禁用 MCP 配置)。 示例: ```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 ``` ### 推荐的实时测试配方 缩小范围的显式允许列表最快且最不易出错: - 单个模型,直接测试(无 Gateway 网关): - `OPENCLAW_LIVE_MODELS="openai/gpt-5.2" pnpm test:live src/agents/models.profiles.live.test.ts` - 单个模型,Gateway 网关冒烟测试: - `OPENCLAW_LIVE_GATEWAY_MODELS="openai/gpt-5.2" pnpm test:live src/gateway/gateway-models.profiles.live.test.ts` - 跨多个提供商的工具调用: - `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 专项(Gemini API 密钥 + Antigravity): - Gemini(API 密钥):`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` 注意: - `google/...` 使用 Gemini API(API 密钥)。 - `google-antigravity/...` 使用 Antigravity OAuth 桥接(Cloud Code Assist 风格的智能体端点)。 - `google-gemini-cli/...` 使用你机器上的本地 Gemini CLI(独立的认证 +
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/testing.md
main
opebclaw
[ -0.01796339824795723, 0.03781196475028992, -0.04111785441637039, -0.043207235634326935, 0.0319962240755558, -0.0933808758854866, 0.010975885204970837, 0.04991777613759041, -0.023715265095233917, 0.018255840986967087, 0.12576396763324738, -0.05883102864027023, 0.02310924604535103, 0.01413948368281126, 0.017370052635669708, 0.020097266882658005, -0.059343013912439346, 0.009692504070699215, 0.0076544079929590225, 0.06865222752094269, -0.08744693547487259, -0.041427724063396454, 0.022903675213456154, 0.028013331815600395, -0.06695377081632614, 0.06768686324357986, -0.0052987695671617985, 0.09966268390417099, 0.0031689631287008524, -0.06966370344161987, -0.011745711788535118, 0.13770264387130737, 0.01801256462931633, 0.03270762041211128, 0.12289310991764069, 0.08063183724880219, -0.05143970623612404, -0.06379740685224533, -0.08986381441354752, -0.0016418187879025936, 0.005971510428935289, -0.07641663402318954, 0.043380483984947205, -0.0637483298778534, 0.05473899841308594, 0.05608987435698509, -0.04971253126859665, -0.0744827389717102, -0.060715727508068085, -0.02694826014339924, -0.05454709008336067, -0.0012560829054564238, -0.012336568906903267, -0.033832013607025146, 0.0054488880559802055, -0.03343471139669418, 0.02288294956088066, 0.007792245130985975, 0.005608598235994577, 0.022067630663514137, -0.016656950116157532, 0.017298849299550056, -0.06521940231323242, -0.006045869085937738, -0.023005245253443718, -0.008576767519116402, 0.007614613976329565, 0.032398536801338196, 0.004358232021331787, 0.009759017266333103, -0.02318177931010723, -0.026389170438051224, 0.010094705037772655, -0.03988421708345413, -0.03516249358654022, 0.03158966824412346, -0.017795421183109283, -0.01734483428299427, -0.06275492161512375, -0.09991207718849182, -0.05189698562026024, -0.007495875470340252, -0.03242376074194908, -0.053550347685813904, -0.04693019390106201, 0.16138003766536713, -0.03206705302000046, -0.004632559604942799, 0.08808664977550507, -0.05216877907514572, 0.0678507536649704, 0.04636030271649361, -0.08415941894054413, 0.07723035663366318, 0.034482214599847794, -0.04076368361711502, 0.04863904416561127, 0.02073511853814125, 0.0030260621570050716, 0.018389884382486343, 0.034496814012527466, 0.005807001143693924, -0.056234873831272125, -0.046107105910778046, -0.0177009217441082, -0.07461663335561752, 0.014194145798683167, 0.01685469225049019, 0.060299839824438095, 0.05778255686163902, -0.004162761382758617, -0.09566396474838257, -0.002835838822647929, -0.0854572206735611, -0.040053170174360275, 0.016486091539263725, -0.0235226359218359, -0.028512492775917053, 0.011963555589318275, -0.008662895299494267, 0.04013105109333992, -0.02092953771352768, -0.06278093159198761, -0.05645228922367096, -0.08665194362401962, 0.004677352961152792, 0.05117575079202652, 3.9306213163574267e-33, 0.0046372427605092525, -0.034021276980638504, -0.01420778688043356, -0.027735209092497826, 0.10321462899446487, 0.023256782442331314, 0.049813997000455856, -0.017588280141353607, -0.040211811661720276, 0.007017332129180431, -0.025202959775924683, -0.007715748623013496, -0.13045752048492432, 0.012909149751067162, -0.051584456115961075, -0.07479628175497055, -0.07143320888280869, -0.01934266835451126, -0.007823910564184189, 0.01574716344475746, 0.045108478516340256, -0.04485249146819115, -0.01936976984143257, -0.056749481707811356, -0.0008876333013176918, 0.01069056149572134, 0.03425324335694313, -0.01620163396000862, -0.06904511153697968, 0.0232807919383049, 0.05587702617049217, -0.020423369482159615, -0.08546996116638184, 0.02740590274333954, -0.05355918034911156, -0.02863902971148491, -0.019579214975237846, 0.0054907891899347305, -0.0969848781824112, 0.009592815302312374, -0.09317479282617569, -0.07414449006319046, 0.01222657784819603, 0.0220598466694355, 0.04339989647269249, -0.11123187839984894, -0.08725530654191971, 0.004010689910501242, 0.07232148200273514, -0.05063023790717125, -0.04209854081273079, 0.04914618283510208, -0.021178891882300377, -0.00664942804723978, -0.043515581637620926, -0.05162578076124191, -0.034022845327854156, -0.039171792566776276, -0.0726964920759201, -0.003498342353850603, -0.06133774667978287, 0.05276019498705864, -0.026818986982107162, -0.009016321040689945, 0.0620964951813221, 0.021821649745106697, 0.011460483074188232, 0.008717126213014126, 0.06750645488500595, -0.03380456566810608, -0.027230078354477882, -0.07093869149684906, 0.08560747653245926, 0.07894770056009293, -0.014791998080909252, -0.06919510662555695, -0.04552791267633438, 0.11031167209148407, 0.07213643193244934, -0.047407593578100204, -0.03513426333665848, -0.005951588973402977, -0.07493840903043747, -0.010590310208499432, -0.04533165693283081, -0.018535353243350983, 0.05713087320327759, 0.024483393877744675, -0.05752231180667877, -0.017913097515702248, -0.06407788395881653, 0.0012815981172025204, 0.017886577174067497, -0.020314501598477364, -0.004092272371053696, -1.0347676936248957e-32, -0.027556784451007843, 0.043455448001623154, -0.039057545363903046, 0.022587761282920837, -0.05127040296792984, -0.0619901567697525, 0.08893198519945145, -0.021951396018266678, 0.027690181508660316, 0.040622517466545105, -0.033574167639017105, 0.015059332363307476, -0.013085038401186466, 0.020444355905056, -0.01903284154832363, 0.05658341571688652, -0.017363008111715317, 0.04229947552084923, -0.0195600688457489, 0.025532590225338936, 0.012887226417660713, 0.04647504538297653, -0.08686874806880951, 0.051625270396471024, -0.042391031980514526, 0.013605053536593914, 0.06831878423690796, -0.05319942906498909, 0.00163756322581321, 0.03473508358001709, 0.0045753587037324905, 0.041474711149930954, -0.06415033340454102, 0.125372976064682, -0.057540155947208405, -0.0741567611694336, 0.04656244441866875, 0.00477231852710247, -0.04144105315208435, -0.0011013271287083626, 0.0345362089574337, -0.005194639787077904, 0.029444850981235504, -0.0466708280146122, -0.05963660031557083, 0.043592337518930435, 0.0017534835496917367, -0.05061531066894531, -0.05545669049024582, -0.04477180168032646, 0.037720195949077606, 0.06463903933763504, 0.0010454944567754865, -0.038620706647634506, 0.02068215422332287, 0.0022555452305823565, -0.09226881712675095, -0.045676860958337784, -0.1411917507648468, -0.04145125299692154, 0.09145849198102951, -0.0029494226910173893, 0.006864689756184816, 0.028435954824090004, 0.009366459213197231, 0.05289427563548088, 0.03174694627523422, -0.011887148953974247, 0.055804185569286346, -0.08310089260339737, 0.002507654018700123, 0.031173357740044594, 0.08059422671794891, -0.0038032354786992073, -0.014710682444274426, -0.02727545239031315, -0.041219502687454224, 0.07966629415750504, 0.034471504390239716, 0.021493971347808838, 0.023178162053227425, -0.03920232877135277, 0.0014779727207496762, 0.08426401019096375, -0.04561122879385948, -0.06598665565252304, 0.039828188717365265, 0.05244031548500061, -0.010464168153703213, -0.06897972524166107, 0.03832098841667175, 0.05884414166212082, -0.05825451761484146, 0.08642281591892242, 0.061210066080093384, -5.4893288137236596e-8, -0.028979899361729622, -0.153238445520401, -0.05003146454691887, -0.05542924627661705, -0.0047763679176568985, -0.05404986813664436, -0.02508440800011158, -0.037992481142282486, -0.02951960079371929, -0.08057820051908493, 0.00048142633750103414, 0.010211639106273651, -0.13419289886951447, 0.029927993193268776, -0.02801516279578209, -0.03865468129515648, -0.052731242030858994, 0.1033763438463211, -0.016835486516356468, -0.08135455846786499, -0.07786979526281357, 0.011352001689374447, 0.03334907442331314, -0.05220664665102959, -0.06244051828980446, 0.0711919367313385, -0.04148058965802193, 0.022319121286273003, 0.026259150356054306, -0.006431295070797205, 0.05700971186161041, -0.04910244420170784, 0.005158629734069109, -0.030695807188749313, 0.05193984508514404, 0.05527464672923088, 0.060870323330163956, -0.023939067497849464, 0.016350921243429184, 0.022414743900299072, -0.08160930126905441, -0.11589262634515762, -0.05636157467961311, 0.04397585988044739, 0.03866814076900482, -0.06565936654806137, -0.0362812876701355, 0.021573597565293312, -0.02498459629714489, -0.08398666977882385, 0.06580731272697449, 0.02250058576464653, 0.0602475181221962, -0.07547347992658615, 0.03059241734445095, 0.07498284429311752, -0.024414585903286934, -0.004912667907774448, -0.004061602521687746, 0.033548273146152496, 0.010482764802873135, 0.05903445929288864, 0.05915587395429611, 0.07278160750865936 ]
0.075482
pnpm test:live src/gateway/gateway-models.profiles.live.test.ts` - 跨多个提供商的工具调用: - `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 专项(Gemini API 密钥 + Antigravity): - Gemini(API 密钥):`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` 注意: - `google/...` 使用 Gemini API(API 密钥)。 - `google-antigravity/...` 使用 Antigravity OAuth 桥接(Cloud Code Assist 风格的智能体端点)。 - `google-gemini-cli/...` 使用你机器上的本地 Gemini CLI(独立的认证 + 工具怪癖)。 - Gemini API 与 Gemini CLI: - API:OpenClaw 通过 HTTP 调用 Google 托管的 Gemini API(API 密钥/配置文件认证);这是大多数用户说的"Gemini"。 - CLI:OpenClaw 调用本地 `gemini` 二进制文件;它有自己的认证,行为可能不同(流式传输/工具支持/版本差异)。 ## 实时测试:模型矩阵(我们覆盖什么) 没有固定的"CI 模型列表"(实时测试是可选的),但这些是建议在有密钥的开发机器上定期覆盖的**推荐**模型。 ### 现代冒烟测试集(工具调用 + 图像) 这是我们期望保持工作的"常用模型"运行: - OpenAI(非 Codex):`openai/gpt-5.2`(可选:`openai/gpt-5.1`) - OpenAI Codex:`openai-codex/gpt-5.2`(可选:`openai-codex/gpt-5.2-codex`) - Anthropic:`anthropic/claude-opus-4-5`(或 `anthropic/claude-sonnet-4-5`) - Google(Gemini API):`google/gemini-3-pro-preview` 和 `google/gemini-3-flash-preview`(避免较旧的 Gemini 2.x 模型) - Google(Antigravity):`google-antigravity/claude-opus-4-5-thinking` 和 `google-antigravity/gemini-3-flash` - Z.AI(GLM):`zai/glm-4.7` - MiniMax:`minimax/minimax-m2.1` 运行带工具 + 图像的 Gateway 网关冒烟测试: `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` ### 基线:工具调用(Read + 可选 Exec) 每个提供商系列至少选择一个: - OpenAI:`openai/gpt-5.2`(或 `openai/gpt-5-mini`) - Anthropic:`anthropic/claude-opus-4-5`(或 `anthropic/claude-sonnet-4-5`) - Google:`google/gemini-3-flash-preview`(或 `google/gemini-3-pro-preview`) - Z.AI(GLM):`zai/glm-4.7` - MiniMax:`minimax/minimax-m2.1` 可选的额外覆盖(锦上添花): - xAI:`xai/grok-4`(或最新可用版本) - Mistral:`mistral/`…(选择一个你已启用的"工具"能力模型) - Cerebras:`cerebras/`…(如果你有访问权限) - LM Studio:`lmstudio/`…(本地;工具调用取决于 API 模式) ### 视觉:图像发送(附件 → 多模态消息) 在 `OPENCLAW_LIVE_GATEWAY_MODELS` 中至少包含一个支持图像的模型(Claude/Gemini/OpenAI 视觉能力变体等)以测试图像探测。 ### 聚合器/替代 Gateway 网关 如果你启用了密钥,我们也支持通过以下方式测试: - OpenRouter:`openrouter/...`(数百个模型;使用 `openclaw models scan` 查找支持工具+图像的候选模型) - OpenCode Zen:`opencode/...`(通过 `OPENCODE_API_KEY` / `OPENCODE_ZEN_API_KEY` 认证) 如果你有凭证/配置,可以在实时矩阵中包含更多提供商: - 内置:`openai`、`openai-codex`、`anthropic`、`google`、`google-vertex`、`google-antigravity`、`google-gemini-cli`、`zai`、`openrouter`、`opencode`、`xai`、`groq`、`cerebras`、`mistral`、`github-copilot` - 通过 `models.providers`(自定义端点):`minimax`(云/API),以及任何 OpenAI/Anthropic 兼容代理(LM Studio、vLLM、LiteLLM 等) 提示:不要试图在文档中硬编码"所有模型"。权威列表是你机器上 `discoverModels(...)` 返回的内容 + 可用的密钥。 ## 凭证(绝不提交) 实时测试以与 CLI 相同的方式发现凭证。实际含义: - 如果 CLI 能工作,实时测试应该能找到相同的密钥。 - 如果实时测试说"无凭证",用调试 `openclaw models list`/模型选择相同的方式调试。 - 配置文件存储:`~/.openclaw/credentials/`(首选;测试中"配置文件密钥"的含义) - 配置:`~/.openclaw/openclaw.json`(或 `OPENCLAW_CONFIG_PATH`) 如果你想依赖环境变量密钥(例如在 `~/.profile` 中导出的),在 `source ~/.profile` 后运行本地测试,或使用下面的 Docker 运行器(它们可以将 `~/.profile` 挂载到容器中)。 ## Deepgram 实时测试(音频转录) - 测试:`src/media-understanding/providers/deepgram/audio.live.test.ts` - 启用:`DEEPGRAM_API_KEY=... DEEPGRAM_LIVE_TEST=1 pnpm test:live src/media-understanding/providers/deepgram/audio.live.test.ts` ## Docker 运行器(可选的"在 Linux 中工作"检查) 这些在仓库 Docker 镜像内运行 `pnpm test:live`,挂载你的本地配置目录和工作区(如果挂载了 `~/.profile` 则会加载它): - 直接模型:`pnpm test:docker:live-models`(脚本:`scripts/test-live-models-docker.sh`) - Gateway 网关 + 开发智能体:`pnpm test:docker:live-gateway`(脚本:`scripts/test-live-gateway-models-docker.sh`) - 新手引导向导(TTY,完整脚手架):`pnpm test:docker:onboard`(脚本:`scripts/e2e/onboard-docker.sh`) - Gateway 网关网络(两个容器,WS 认证 + 健康检查):`pnpm test:docker:gateway-network`(脚本:`scripts/e2e/gateway-network-docker.sh`) - 插件(自定义扩展加载 + 注册表冒烟测试):`pnpm test:docker:plugins`(脚本:`scripts/e2e/plugins-docker.sh`) 有用的环境变量: - `OPENCLAW_CONFIG_DIR=...`(默认:`~/.openclaw`)挂载到 `/home/node/.openclaw` - `OPENCLAW_WORKSPACE_DIR=...`(默认:`~/.openclaw/workspace`)挂载到 `/home/node/.openclaw/workspace` - `OPENCLAW_PROFILE_FILE=...`(默认:`~/.profile`)挂载到 `/home/node/.profile` 并在运行测试前加载 - `OPENCLAW_LIVE_GATEWAY_MODELS=...` / `OPENCLAW_LIVE_MODELS=...` 用于缩小运行范围 - `OPENCLAW_LIVE_REQUIRE_PROFILE_KEYS=1` 确保凭证来自配置文件存储(而非环境变量) ## 文档完整性检查 文档编辑后运行文档检查:`pnpm docs:list`。 ## 离线回归测试(CI 安全) 这些是没有真实提供商的"真实管道"回归测试: - Gateway 网关工具调用(模拟 OpenAI,真实 Gateway 网关 + 智能体循环):`src/gateway/gateway.tool-calling.mock-openai.test.ts` - Gateway 网关向导(WS `wizard.start`/`wizard.next`,写入配置 + 强制认证):`src/gateway/gateway.wizard.e2e.test.ts` ## 智能体可靠性评估(Skills) 我们已经有一些 CI 安全的测试,它们的行为类似于"智能体可靠性评估": - 通过真实 Gateway 网关 + 智能体循环的模拟工具调用(`src/gateway/gateway.tool-calling.mock-openai.test.ts`)。 - 验证会话连接和配置效果的端到端向导流程(`src/gateway/gateway.wizard.e2e.test.ts`)。 对于 Skills 仍然缺少的内容(参见 [Skills](/tools/skills)): - **决策:** 当 Skills 在提示中列出时,智能体是否选择正确的 skill(或避免不相关的)? - **合规性:** 智能体是否在使用前读取 `SKILL.md` 并遵循所需的步骤/参数? - **工作流契约:** 断言工具顺序、会话历史延续和沙箱边界的多轮场景。 未来的评估应该首先保持确定性: - 使用模拟提供商来断言工具调用 + 顺序、skill 文件读取和会话连接的场景运行器。 - 一小套专注于 skill 的场景(使用 vs 避免、门控、提示注入)。 - 可选的实时评估(可选的,环境变量门控),仅在 CI 安全套件就位后。 ## 添加回归测试(指导) 当你修复在实时测试中发现的提供商/模型问题时: - 如果可能,添加 CI 安全的回归测试(模拟/存根提供商,或捕获确切的请求形状转换) - 如果它本质上是仅限实时的(速率限制、认证策略),保持实时测试范围小且通过环境变量可选 - 优先针对能捕获问题的最小层: - 提供商请求转换/重放问题 → 直接模型测试 - Gateway 网关会话/历史/工具管道问题 → Gateway 网关实时冒烟测试或 CI 安全的 Gateway 网关模拟测试 ````
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/testing.md
main
opebclaw
[ -0.04947517067193985, -0.07489699870347977, -0.016211137175559998, 0.011715118773281574, 0.07981669157743454, -0.11454157531261444, -0.03459208458662033, -0.021897636353969574, -0.03330129757523537, -0.003576622810214758, 0.06817574054002762, 0.027983395382761955, -0.07066543400287628, -0.02742650732398033, 0.08936416357755661, 0.0624934621155262, 0.06503814458847046, -0.071132130920887, -0.0034396140836179256, 0.04551854357123375, -0.08589962124824524, -0.05340659245848656, 0.06863319128751755, 0.06099610775709152, -0.07890740782022476, -0.040497396141290665, -0.01253341231495142, 0.07302975654602051, 0.01832467131316662, -0.006398243363946676, 0.0231827050447464, 0.04265983775258064, -0.06952998042106628, -0.0202639102935791, 0.02860858477652073, 0.05125786364078522, -0.07998889684677124, -0.0647452101111412, -0.08308691531419754, -0.08017373830080032, 0.07414446771144867, -0.05021893233060837, 0.013728084973990917, -0.021857773885130882, 0.07051344215869904, 0.011358014307916164, -0.016060596331954002, -0.10691215842962265, 0.0344829224050045, -0.004945453722029924, -0.036702509969472885, -0.032475125044584274, -0.04695504158735275, -0.02147800475358963, -0.04081324487924576, 0.05165780708193779, -0.04244992136955261, 0.0047406419180333614, 0.06618323922157288, 0.0035681624431163073, -0.03741931915283203, 0.028789659962058067, -0.024520495906472206, 0.009325973689556122, -0.04827774316072464, 0.056592024862766266, -0.022243501618504524, -0.03934944421052933, 0.05973866581916809, 0.03232269361615181, 0.030754202976822853, 0.026033740490674973, -0.11542175710201263, -0.056682948023080826, -0.02586529776453972, -0.020076744258403778, 0.0664677545428276, 0.015414482913911343, -0.02433091029524803, -0.06175609678030014, 0.027723874896764755, -0.045473843812942505, -0.024900851771235466, 0.01747572235763073, 0.05865096300840378, 0.0343085378408432, -0.004838947672396898, 0.02627485617995262, 0.06325898319482803, 0.028560776263475418, -0.010159263387322426, -0.003089125035330653, -0.04638102650642395, 0.07001766562461853, -0.018753409385681152, -0.0423593632876873, -0.010356607846915722, -0.042179591953754425, -0.06514343619346619, 0.09166619181632996, -0.027136176824569702, 0.012655061669647694, 0.036749597638845444, 0.14752687513828278, -0.0460197888314724, 0.0011685928329825401, 0.022332053631544113, 0.09772387146949768, 0.08879716694355011, 0.06929097324609756, 0.00712458835914731, -0.010831223800778389, 0.07949443906545639, -0.06952832639217377, -0.09497169405221939, 0.037965964525938034, -0.09022404253482819, 0.02619919925928116, 0.062308456748723984, 0.11333031952381134, -0.004498601425439119, 0.012608133256435394, 0.046465154737234116, -0.009216168895363808, -0.01846225932240486, 0.016517871990799904, -0.01975182071328163, 3.8940186263247284e-33, 0.02633260376751423, -0.04541497677564621, 0.0027853865176439285, -0.014928012154996395, 0.035473018884658813, 0.053541552275419235, 0.03326622024178505, 0.037392787635326385, -0.05188712477684021, -0.021013544872403145, -0.04468836262822151, 0.01785861887037754, -0.0776526927947998, 0.017574217170476913, -0.005172283388674259, -0.050760604441165924, -0.06024910882115364, -0.03349892050027847, 0.012570933438837528, 0.019814927130937576, 0.011746488511562347, -0.062375474721193314, -0.06259980797767639, -0.04444865137338638, -0.008258175104856491, 0.13560491800308228, 0.03675199672579765, 0.0637502521276474, -0.07183228433132172, 0.054617322981357574, 0.008517090231180191, -0.05420570820569992, -0.058803264051675797, 0.03345806896686554, 0.0022893038112670183, 0.015874400734901428, -0.10477811843156815, -0.055948466062545776, -0.08306598663330078, -0.021387537941336632, -0.10826894640922546, -0.056946612894535065, -0.07765019685029984, -0.06608745455741882, -0.012695729732513428, -0.011169778183102608, 0.0503503754734993, 0.01744832471013069, 0.05531242862343788, 0.033162739127874374, -0.05902104824781418, 0.06334228813648224, -0.09504691511392593, 0.010425662621855736, -0.10771651566028595, -0.0004349412629380822, 0.004937724210321903, 0.011544094420969486, -0.011936797760426998, -0.04662682116031647, 0.031034165993332863, 0.03449011594057083, 0.018261434510350227, -0.023651525378227234, 0.000679997552651912, 0.05512628331780434, -0.04342937096953392, 0.004587565548717976, 0.038675401359796524, 0.0004083748208358884, 0.005787205416709185, -0.06418758630752563, 0.07709426432847977, 0.08460012823343277, -0.01972898282110691, -0.02714400738477707, -0.005394073203206062, 0.026202324777841568, 0.019655928015708923, 0.038656022399663925, -0.02528141438961029, -0.013064264319837093, 0.03622305393218994, 0.040856197476387024, -0.01382687408477068, -0.023773107677698135, 0.04163684695959091, -0.031405773013830185, -0.022444002330303192, 0.0204920656979084, -0.019042668864130974, 0.02827743999660015, -0.013070641085505486, 0.07719255238771439, -0.07647435367107391, -5.099775711866951e-33, -0.08927194774150848, -0.01963273249566555, -0.010771987028419971, 0.03020777739584446, -0.036934662610292435, -0.0033538781572133303, 0.05758015066385269, -0.014129681512713432, 0.023198867216706276, 0.07794524729251862, 0.08292363584041595, 0.03929987922310829, -0.029118197038769722, -0.0823429748415947, 0.0640295073390007, -0.02919323742389679, -0.05336000770330429, 0.015399101190268993, 0.050090428441762924, 0.05819379538297653, -0.0054546683095395565, 0.12282916158437729, -0.1096530556678772, 0.0174719151109457, 0.05474911630153656, 0.028091542422771454, 0.12911994755268097, 0.03246757388114929, -0.003298318712040782, -0.008998247794806957, 0.025830019265413284, 0.1443265974521637, -0.09790433943271637, 0.059848494827747345, 0.04609663411974907, 0.05248325690627098, 0.017906397581100464, 0.013837900012731552, -0.006791300140321255, -0.023917602375149727, 0.03857272490859032, 0.0757412239909172, -0.0030325453262776136, -0.03498701751232147, -0.0019312137737870216, 0.050812333822250366, -0.028895968571305275, -0.019742753356695175, -0.020160602405667305, 0.018501436337828636, 0.021407537162303925, 0.014347080141305923, -0.008908216841518879, 0.01590082049369812, -0.027345838025212288, -0.0377718061208725, -0.023116175085306168, -0.03172555938363075, -0.0007315336843021214, -0.08110781013965607, 0.08139647543430328, -0.09704504907131195, -0.04840386286377907, 0.02310156635940075, -0.02171502448618412, -0.015183530747890472, 0.06921270489692688, 0.10072236508131027, 0.03762592375278473, 0.00790388137102127, -0.10316912084817886, -0.012264850549399853, 0.08450888097286224, 0.0045987628400325775, -0.004181137308478355, 0.03597317636013031, 0.015966545790433884, 0.0265999473631382, 0.06964264065027237, -0.09389208257198334, -0.003277532057836652, -0.06056928634643555, 0.06974567472934723, 0.08129767328500748, -0.012358988635241985, -0.09007611125707626, -0.05827922001481056, 0.11765686422586441, 0.022184938192367554, 0.07708194106817245, -0.027863742783665657, 0.08090555667877197, -0.00777466082945466, 0.03185705095529556, -0.018334664404392242, -4.958106103458704e-8, 0.013929087668657303, -0.07243437319993973, -0.058254797011613846, 0.021751955151557922, 0.009396600537002087, -0.0354471355676651, -0.01849350333213806, -0.06394718587398529, -0.045731592923402786, -0.019381703808903694, -0.008400125429034233, 0.021109608933329582, -0.08813957870006561, 0.030879497528076172, -0.07352513819932938, 0.005107997450977564, -0.09567281603813171, 0.07159967720508575, -0.03617949038743973, -0.04073591157793999, -0.0435977540910244, 0.03387388586997986, 0.017189297825098038, -0.09613218158483505, 0.0247259009629488, -0.07008550316095352, 0.04924897849559784, 0.027472982183098793, -0.027209019288420677, -0.04590332508087158, -0.11242783814668655, -0.009184726513922215, -0.007997728884220123, -0.0963347777724266, -0.03963383287191391, 0.10515694320201874, 0.044759899377822876, 0.025409484282135963, 0.013571912422776222, 0.02014760673046112, -0.016725631430745125, -0.07150235027074814, -0.005844608414918184, -0.05624118819832802, 0.0056839692406356335, 0.02127818576991558, -0.03360868990421295, -0.022650765255093575, 0.009931826964020729, 0.03523536026477814, 0.015378700569272041, 0.01430670078843832, 0.028856297954916954, -0.01498457882553339, -0.002743131946772337, -0.0015037200646474957, -0.0169663168489933, -0.00952264666557312, -0.02903841808438301, -0.06446907669305801, 0.0802415981888771, 0.005193580407649279, -0.013532469049096107, -0.029049141332507133 ]
-0.05848
# Pi 开发工作流程 本指南总结了在 OpenClaw 中开发 Pi 集成的合理工作流程。 ## 类型检查和代码检查 - 类型检查和构建:`pnpm build` - 代码检查:`pnpm lint` - 格式检查:`pnpm format` - 推送前完整检查:`pnpm lint && pnpm build && pnpm test` ## 运行 Pi 测试 使用专用脚本运行 Pi 集成测试集: ```bash scripts/pi/run-tests.sh ``` 要包含执行真实提供商行为的实时测试: ```bash scripts/pi/run-tests.sh --live ``` 该脚本通过以下 glob 模式运行所有 Pi 相关的单元测试: - `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` ## 手动测试 推荐流程: - 以开发模式运行 Gateway 网关: - `pnpm gateway:dev` - 直接触发智能体: - `pnpm openclaw agent --message "Hello" --thinking low` - 使用 TUI 进行交互式调试: - `pnpm tui` 对于工具调用行为,提示执行 `read` 或 `exec` 操作,以便查看工具流式传输和负载处理。 ## 完全重置 状态存储在 OpenClaw 状态目录下。默认为 `~/.openclaw`。如果设置了 `OPENCLAW\_STATE\_DIR`,则使用该目录。 要重置所有内容: - `openclaw.json` 用于配置 - `credentials/` 用于认证配置文件和 token - `agents//sessions/` 用于智能体会话历史 - `agents//sessions.json` 用于会话索引 - `sessions/` 如果存在旧版路径 - `workspace/` 如果你想要一个空白工作区 如果只想重置会话,删除该智能体的 `agents//sessions/` 和 `agents//sessions.json`。如果不想重新认证,保留 `credentials/`。 ## 参考资料 - https://docs.openclaw.ai/testing - https://docs.openclaw.ai/start/getting-started
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/pi-dev.md
main
opebclaw
[ -0.0341496579349041, -0.033104307949543, -0.08463577181100845, -0.032570235431194305, 0.03863897919654846, -0.028504829853773117, -0.0012444905005395412, 0.08178851753473282, -0.012982192449271679, 0.06508111208677292, 0.1296023428440094, 0.0008837968925945461, -0.003179916413500905, 0.028274767100811005, 0.05997299402952194, 0.031872790306806564, -0.04493455961346626, -0.01061213482171297, 0.05552227422595024, -0.021075507625937462, -0.03697189316153526, 0.00731692835688591, 0.07321111112833023, 0.0172373428940773, -0.04325948655605316, 0.028073418885469437, 0.028109053149819374, 0.0034114434383809566, -0.02317696623504162, -0.05985478311777115, 0.00356297311373055, 0.08564288169145584, -0.006933712400496006, 0.007339282426983118, 0.11243684589862823, 0.13589094579219818, -0.05234359949827194, -0.06596340239048004, -0.07192818075418472, 0.02697894163429737, 0.09256859123706818, 0.009489172138273716, 0.017459208145737648, -0.12764422595500946, 0.02403373084962368, 0.025361070409417152, -0.07871509343385696, -0.10658451169729233, -0.09025561064481735, -0.02014746703207493, -0.06726522743701935, 0.02058963105082512, -0.027498982846736908, -0.05982230231165886, 0.029937846586108208, -0.015182298608124256, 0.008787369355559349, 0.0057691726833581924, 0.022953465580940247, 0.03182416781783104, -0.05752928927540779, 0.005288350395858288, -0.041173167526721954, -0.028991378843784332, -0.007925200276076794, 0.02556013874709606, -0.013639350421726704, -0.02322343923151493, 0.01956753432750702, -0.0039061903953552246, -0.06784041225910187, 0.006904841400682926, -0.052807047963142395, -0.015669794753193855, -0.1192384660243988, 0.021025601774454117, -0.03463517874479294, -0.004997692070901394, -0.055483657866716385, -0.12603449821472168, -0.07366915792226791, -0.050050314515829086, -0.04874926432967186, -0.007298293523490429, 0.015059265308082104, 0.22935214638710022, 0.0027294352184981108, 0.021682048216462135, 0.07806071639060974, 0.005464795045554638, 0.052012115716934204, 0.01818312332034111, -0.035659268498420715, 0.09658534079790115, 0.009072320535779, -0.012155504897236824, 0.05733349174261093, 0.07067310065031052, -0.0276092030107975, 0.029059695079922676, -0.003531599184498191, -0.035043731331825256, 0.011862379498779774, 0.04422222822904587, -0.05765639990568161, -0.02234257385134697, -0.006184992380440235, -0.03651651367545128, 0.04203631356358528, 0.013416503556072712, 0.015173468738794327, -0.0571112260222435, -0.03303138166666031, -0.04509076848626137, 0.01939360983669758, 0.0044400691986083984, 0.04134492948651314, -0.005962039809674025, -0.03457263484597206, 0.12092317640781403, 0.015294149518013, 0.005171450320631266, -0.06395982950925827, 0.03171379119157791, -0.06681662052869797, -0.034797362983226776, 0.03744099289178848, 4.642410696429169e-33, 0.05224964767694473, -0.06697025150060654, -0.04245753213763237, 0.0333285816013813, 0.08060213178396225, 0.06661789119243622, 0.06304410845041275, 0.0013221860863268375, -0.10397730022668839, 0.028996320441365242, -0.004132160451263189, 0.04666007682681084, -0.11853966116905212, 0.029361192137002945, -0.04398162290453911, -0.07980803400278091, -0.005368791054934263, -0.015245788730680943, 0.007935700938105583, -0.019027523696422577, 0.043917130678892136, 0.042496535927057266, -0.07650196552276611, 0.011278155259788036, -0.01875496283173561, -0.0001417713356204331, -0.019617285579442978, -0.01727258786559105, -0.0413440577685833, 0.0043377927504479885, 0.015944307669997215, -0.0005199967999942601, -0.0529073141515255, 0.016066379845142365, -0.046175017952919006, -0.06946632266044617, -0.07518688589334488, -0.014502136968076229, -0.087065190076828, 0.034262239933013916, -0.060438960790634155, -0.0802067443728447, -0.018849093466997147, -0.026703177019953728, -0.002750427694991231, -0.07130947709083557, -0.0619124136865139, 0.03239736333489418, 0.044988565146923065, -0.009080560877919197, -0.04400252178311348, 0.05577557533979416, 0.030404845252633095, 0.00959000550210476, 0.011143802665174007, -0.02829437144100666, -0.08288019150495529, -0.08336246758699417, -0.012529649771749973, 0.004175825510174036, 0.04574795067310333, 0.0638338178396225, -0.04656948149204254, 0.017914216965436935, 0.04839533939957619, -0.0765860378742218, 0.012869875878095627, -0.006334036123007536, 0.05974259227514267, 0.042728718370199203, 0.006861607078462839, -0.0837664008140564, 0.05946061387658119, 0.1250380426645279, 0.025891464203596115, -0.045977458357810974, -0.029895011335611343, 0.091273233294487, -0.05361140891909599, -0.015117621049284935, -0.01739365980029106, 0.01328958384692669, -0.030733652412891388, -0.0819578617811203, 0.07616234570741653, 0.014141100458800793, 0.0520935095846653, -0.01955113187432289, -0.03640875965356827, -0.030597524717450142, -0.03318394348025322, -0.054935891181230545, 0.03228578716516495, -0.002772074192762375, -0.036698490381240845, -8.577028326237407e-33, 0.010782651603221893, 0.0479423888027668, -0.08848001807928085, 0.041702814400196075, -0.048635371029376984, -0.07609823346138, 0.04440520703792572, -0.09088928252458572, -0.02200372889637947, 0.03296197950839996, -0.04638327285647392, 0.007832784205675125, 0.05941418558359146, 0.037464939057826996, 0.04449346661567688, 0.029507726430892944, -0.023515518754720688, -0.013263440690934658, 0.034734517335891724, -0.022336488589644432, -0.05946740135550499, 0.08755337446928024, -0.032976046204566956, 0.06561556458473206, -0.03870313987135887, 0.02801319770514965, 0.04521762207150459, -0.0070405821315944195, -0.03979197144508362, 0.002714421832934022, -0.05564017593860626, 0.082023985683918, -0.09796015173196793, 0.11831117421388626, -0.06089239940047264, -0.009130096063017845, 0.03327962011098862, 0.029306331649422646, -0.019220562651753426, -0.051676373928785324, 0.010249885730445385, -0.03850606828927994, -0.010726711712777615, -0.05371210724115372, -0.03763502091169357, -0.01031777448952198, 0.08737638592720032, -0.06201491877436638, -0.059339944273233414, -0.0782586932182312, 0.003632649313658476, 0.03473043441772461, 0.03739949315786362, -0.059202972799539566, -0.04160535708069801, -0.042870111763477325, -0.021764328703284264, -0.026914583519101143, -0.08557207882404327, -0.06891933083534241, 0.08721214532852173, -0.04727121442556381, -0.02713436633348465, -0.01085805706679821, -0.0635203942656517, -0.020648736506700516, -0.011228612624108791, -0.01785772480070591, 0.055314432829618454, -0.09951801598072052, -0.07127327471971512, 0.015970639884471893, 0.07130517810583115, 0.0075143976137042046, -0.023747295141220093, 0.022938823327422142, -0.07106170058250427, 0.05534618720412254, 0.06684934347867966, 0.01356351189315319, 0.003344968194141984, -0.021053694188594818, -0.0272358525544405, 0.0575626865029335, -0.08771002292633057, -0.039736486971378326, 0.025162143632769585, 0.03510880842804909, -0.0025348409544676542, -0.058884888887405396, 0.027058659121394157, 0.06619326770305634, 0.05311776325106621, 0.08161742985248566, 0.027956675738096237, -5.0971500797913905e-8, 0.028523141518235207, -0.05506046116352081, -0.05420597642660141, -0.013942908495664597, 0.015573909506201744, -0.07473550736904144, 0.014926512725651264, -0.026351070031523705, -0.010948997922241688, -0.04877043515443802, 0.00891746673732996, -0.017517732456326485, -0.05258546769618988, 0.07568912208080292, 0.014106146059930325, -0.019297493621706963, -0.07437943667173386, 0.12947307527065277, 0.019284170120954514, -0.056818753480911255, -0.07094091176986694, 0.03824444115161896, 0.027077926322817802, -0.01587561145424843, -0.052981261163949966, 0.04844818264245987, 0.044632524251937866, -0.011912903748452663, -0.04424266144633293, 0.06342308968305588, 0.02341020107269287, -0.06549626588821411, -0.01612740568816662, -0.04124537110328674, 0.06395287811756134, 0.047219645231962204, 0.09354329854249954, -0.015011015348136425, 0.042569566518068314, 0.006433309521526098, -0.025208357721567154, -0.008513313718140125, -0.01806819438934326, 0.03535554185509682, 0.012744869105517864, -0.07487011700868607, -0.042685750871896744, -0.0366889163851738, 0.007392009254544973, -0.09494982659816742, 0.013018999248743057, 0.08098531514406204, -0.028796004131436348, -0.02952226810157299, 0.054059676826000214, 0.06428852677345276, 0.022813105955719948, -0.04637327417731285, -0.07610681653022766, 0.005820815917104483, -0.00760632986202836, -0.012023831717669964, 0.06591370701789856, 0.008495168760418892 ]
0.054292
# OpenClaw 🦞> \_"去壳!去壳!"\_ — 大概是一只太空龙虾说的 **适用于任何操作系统的 AI 智能体 Gateway 网关,支持 WhatsApp、Telegram、Discord、iMessage 等。** 发送消息,随时随地获取智能体响应。通过插件可添加 Mattermost 等更多渠道。 安装 OpenClaw 并在几分钟内启动 Gateway 网关。 通过 `openclaw onboard` 和配对流程进行引导式设置。 启动浏览器仪表板,管理聊天、配置和会话。 OpenClaw 通过单个 Gateway 网关进程将聊天应用连接到 Pi 等编程智能体。它为 OpenClaw 助手提供支持,并支持本地或远程部署。 ## 工作原理 ```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"] ``` Gateway 网关是会话、路由和渠道连接的唯一事实来源。 ## 核心功能 通过单个 Gateway 网关进程连接 WhatsApp、Telegram、Discord 和 iMessage。 通过扩展包添加 Mattermost 等更多渠道。 按智能体、工作区或发送者隔离会话。 发送和接收图片、音频和文档。 浏览器仪表板,用于聊天、配置、会话和节点管理。 配对 iOS 和 Android 节点,支持 Canvas。 ## 快速开始 ```bash npm install -g openclaw@latest ``` ```bash openclaw onboard --install-daemon ``` ```bash openclaw channels login openclaw gateway --port 18789 ``` 需要完整的安装和开发环境设置?请参阅[快速开始](/start/quickstart)。 ## 仪表板 Gateway 网关启动后,打开浏览器控制界面。 - 本地默认地址:http://127.0.0.1:18789/ - 远程访问:[Web 界面](/web)和 [Tailscale](/gateway/tailscale)## 配置(可选) 配置文件位于 `~/.openclaw/openclaw.json`。 - 如果你\*\*不做任何修改\*\*,OpenClaw 将使用内置的 Pi 二进制文件以 RPC 模式运行,并按发送者创建独立会话。 - 如果你想要限制访问,可以从 `channels.whatsapp.allowFrom` 和(针对群组的)提及规则开始配置。 示例: ```json5 { channels: { whatsapp: { allowFrom: ["+15555550123"], groups: { "\*": { requireMention: true } }, }, }, messages: { groupChat: { mentionPatterns: ["@openclaw"] } }, } ``` ## 从这里开始 所有文档和指南,按用例分类。 核心 Gateway 网关设置、令牌和提供商配置。 SSH 和 tailnet 访问模式。 WhatsApp、Telegram、Discord 等渠道的具体设置。 iOS 和 Android 节点的配对与 Canvas 功能。 常见修复方法和故障排除入口。 ## 了解更多 全部渠道、路由和媒体功能。 工作区隔离和按智能体的会话管理。 令牌、白名单和安全控制。 Gateway 网关诊断和常见错误。 项目起源、贡献者和许可证。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/index.md
main
opebclaw
[ -0.03852993622422218, 0.02292458899319172, -0.02613840252161026, -0.05447757616639137, -0.06202317774295807, -0.06734905391931534, 0.015277219004929066, 0.009865072555840015, 0.0745106115937233, -0.00017795343592297286, 0.12544232606887817, -0.05023982375860214, 0.016112234443426132, -0.00883046630769968, 0.06904546171426773, 0.06243529170751572, -0.0563921183347702, -0.038925111293792725, -0.03828852251172066, -0.016617434099316597, -0.0010820392053574324, -0.010819347575306892, 0.022268876433372498, 0.010331612080335617, -0.07155235856771469, 0.04655049741268158, -0.08986811339855194, 0.04831791669130325, 0.011242149397730827, -0.02860908955335617, -0.04124046117067337, 0.09017855674028397, -0.024134289473295212, 0.03427779674530029, 0.06612631678581238, 0.07825073599815369, 0.01737358421087265, -0.010530886240303516, -0.044551435858011246, 0.04108986631035805, -0.025984300300478935, -0.021314706653356552, 0.0381929911673069, -0.008627813309431076, 0.027774540707468987, -0.009064117446541786, -0.042848020792007446, -0.043166738003492355, -0.02069789357483387, -0.027253005653619766, -0.0947210043668747, -0.013627764768898487, 0.0014575402019545436, 0.00476860674098134, 0.017875678837299347, -0.0022896728478372097, -0.034907545894384384, 0.013691985048353672, 0.08332252502441406, -0.034121714532375336, 0.012755854055285454, 0.0348382443189621, -0.00322882947511971, 0.017719058319926262, -0.12400392442941666, -0.0401589460670948, -0.046735044568777084, -0.0008601871086284518, -0.02665075473487377, -0.021661147475242615, -0.0317189022898674, -0.04318928346037865, -0.0336429588496685, -0.02435106597840786, -0.05383846536278725, -0.022239021956920624, -0.0012841005809605122, -0.005101584829390049, -0.08114687353372574, -0.06081422418355942, 0.007047994527965784, 0.0055100885219872, 0.005291359033435583, 0.004657258745282888, -0.057142309844493866, 0.09628834575414658, -0.0016353767132386565, -0.07622615993022919, 0.08915597945451736, -0.017947696149349213, -0.014090107753872871, -0.04783198982477188, 0.034284528344869614, 0.005956314504146576, 0.08101946115493774, -0.08062618225812912, -0.004239996429532766, -0.01962360180914402, -0.08336056023836136, 0.05876387655735016, 0.05369791015982628, -0.034660156816244125, -0.03432389721274376, -0.008595196530222893, -0.051907166838645935, 0.016907088458538055, 0.00030734215397387743, 0.07656949758529663, 0.08414554595947266, 0.027069000527262688, -0.060472410172224045, -0.0862886980175972, 0.05489050969481468, -0.08911989629268646, -0.020192889496684074, 0.05820193141698837, -0.06813636422157288, -0.09021780639886856, 0.03808595612645149, 0.06849794089794159, 0.0713496059179306, 0.007929357700049877, -0.04142771661281586, -0.03349430486559868, -0.019688531756401062, 0.004202818498015404, 0.14355871081352234, -8.922078346202973e-34, -0.015767009928822517, 0.0052301823161542416, -0.05997960641980171, -0.004212853033095598, 0.10507681220769882, -0.025482457131147385, -0.004288143012672663, -0.0006958541925996542, -0.07516995072364807, 0.0356854610145092, -0.025993090122938156, 0.03241937234997749, -0.1329672783613205, 0.0293275136500597, 0.012638577260077, -0.059536952525377274, -0.0303992610424757, -0.0337272472679615, 0.04045094549655914, -0.07516539096832275, 0.03285805881023407, -0.05742361769080162, 0.021777445450425148, -0.02863265387713909, 0.05005856230854988, 0.06898524612188339, 0.01536556426435709, -0.03955202177166939, -0.012491810135543346, 0.05205397680401802, 0.004993741400539875, -0.0072544040158391, -0.05178353935480118, 0.035990357398986816, -0.07548670470714569, -0.015737807378172874, -0.05230733007192612, -0.05411054566502571, -0.057910118252038956, -0.005520184990018606, -0.08724671602249146, -0.04568902775645256, -0.041952893137931824, 0.00969102792441845, 0.027665644884109497, -0.03284535929560661, -0.10631114989519119, -0.005359825678169727, 0.053696565330028534, -0.014049291610717773, -0.07661039382219315, 0.045772600919008255, -0.039093419909477234, 0.04597742110490799, 0.01258922927081585, -0.08543206751346588, -0.0574096217751503, -0.0009351511835120618, -0.041864246129989624, -0.05408577248454094, -0.03169635310769081, 0.0517536923289299, 0.00827383529394865, -0.002903018845245242, 0.09987948089838028, 0.005573036149144173, -0.0018077564891427755, 0.0758935883641243, 0.03135810047388077, -0.10417116433382034, -0.08175032585859299, -0.009934728033840656, 0.07306885719299316, 0.06300698965787888, -0.0635160282254219, -0.01252605952322483, -0.052594441920518875, 0.012736286967992783, 0.026429662480950356, -0.028577791526913643, -0.0882658138871193, -0.05739021301269531, -0.010093479417264462, 0.03344842791557312, -0.02321217954158783, 0.017117777839303017, 0.1251523792743683, -0.0469059981405735, -0.009801339358091354, 0.10317210108041763, -0.14193852245807648, 0.037480227649211884, -0.020162813365459442, 0.013270589523017406, -0.02065105363726616, -2.8212071967956217e-33, -0.06245960295200348, 0.037685345858335495, -0.03754497691988945, -0.0014883320545777678, 0.01760733127593994, -0.0590696781873703, 0.07703510671854019, -0.0017878951039165258, 0.05034201592206955, 0.07294616103172302, -0.08395559340715408, 0.0335010401904583, -0.0017957729287445545, -0.04791722074151039, 0.09017598628997803, -0.0023929839953780174, 0.02593250758945942, 0.02408776804804802, -0.04044613242149353, 0.03775477781891823, -0.022379102185368538, -0.008553052321076393, -0.16629134118556976, 0.01056931633502245, 0.033570628613233566, 0.07835512608289719, 0.11666937917470932, -0.03998403251171112, 0.007542097009718418, -0.008733817376196384, 0.002183058299124241, 0.0484982393682003, -0.07936829328536987, 0.13117016851902008, -0.0038464220706373453, -0.023610234260559082, 0.06592929363250732, -0.01838615909218788, -0.06920582056045532, -0.06691010296344757, 0.0986367017030716, -0.024499723687767982, -0.04423100873827934, -0.021559443324804306, -0.04241398349404335, 0.036437686532735825, -0.07290524244308472, -0.07378579676151276, -0.08028893172740936, -0.07106253504753113, 0.07717064768075943, 0.009903480298817158, 0.04295443743467331, -0.027742352336645126, 0.003674571169540286, 0.0550701767206192, 0.06246518716216087, -0.05072607472538948, -0.04958152770996094, -0.1004066988825798, 0.06444374471902847, -0.012283196672797203, -0.004728065337985754, 0.03691473975777626, 0.054659634828567505, -0.040281228721141815, 0.04752839729189873, 0.03605012223124504, -0.001466555055230856, -0.06425561010837555, 0.010879595763981342, 0.011372864246368408, 0.0712508112192154, -0.04604823887348175, 0.02532290481030941, 0.03703400492668152, -0.013588076457381248, 0.013852695003151894, -0.02161562256515026, 0.0007644794532097876, -0.015890883281826973, -0.013781635090708733, 0.07493051886558533, 0.05702845752239227, 0.01732117123901844, -0.027162371203303337, 0.004988324362784624, 0.073918916285038, -0.005869673099368811, 0.02412719838321209, -0.026563983410596848, 0.0248272605240345, -0.0016685391310602427, 0.04742427542805672, 0.007156153209507465, -4.396784092364214e-8, -0.04667510837316513, -0.11513545364141464, -0.07453863322734833, -0.011648941785097122, -0.0035461203660815954, -0.052811361849308014, -0.030795443803071976, 0.0014660961460322142, -0.04650872200727463, -0.013914018869400024, 0.04802076146006584, 0.0390203595161438, -0.06426867842674255, 0.048976290971040726, -0.020017964765429497, 0.013496127910912037, -0.07469768077135086, 0.019471406936645508, 0.039833083748817444, -0.10910945385694504, 0.013722961768507957, 0.03356693312525749, 0.009862151928246021, -0.04968513548374176, -0.11892702430486679, -0.031476229429244995, -0.09238497167825699, 0.04350397363305092, -0.05914724990725517, -0.02932085655629635, 0.036257222294807434, -0.019505474716424942, 0.05727199837565422, -0.009780830703675747, 0.03404052555561066, 0.02470729686319828, 0.02516389638185501, -0.05540011078119278, -0.03194480761885643, -0.018199950456619263, 0.06718641519546509, -0.05482618510723114, -0.027078021317720413, 0.0003163701912853867, 0.08019386231899261, 0.01359928585588932, 0.036145735532045364, 0.011071153916418552, 0.043655071407556534, 0.031205138191580772, -0.030170151963829994, 0.019080718979239464, 0.07784155011177063, 0.0003735189966391772, 0.06739353388547897, 0.011053768917918205, 0.042687781155109406, -0.04214822128415108, -0.0010350585216656327, 0.07046415656805038, -0.036062516272068024, 0.11505066603422165, 0.04241868853569031, -0.006121579557657242 ]
0.084204
# 日志 OpenClaw 在两个地方记录日志: - \*\*文件日志\*\*(JSON 行)由 Gateway 网关写入。 - \*\*控制台输出\*\*显示在终端和控制 UI 中。 本页说明日志存放位置、如何读取日志以及如何配置日志级别和格式。 ## 日志存放位置 默认情况下,Gateway 网关在以下位置写入滚动日志文件: `/tmp/openclaw/openclaw-YYYY-MM-DD.log` 日期使用 Gateway 网关主机的本地时区。 你可以在 `~/.openclaw/openclaw.json` 中覆盖此设置: ```json { "logging": { "file": "/path/to/openclaw.log" } } ``` ## 如何读取日志 ### CLI:实时跟踪(推荐) 使用 CLI 通过 RPC 跟踪 Gateway 网关日志文件: ```bash openclaw logs --follow ``` 输出模式: - \*\*TTY 会话\*\*:美观、彩色、结构化的日志行。 - \*\*非 TTY 会话\*\*:纯文本。 - `--json`:行分隔的 JSON(每行一个日志事件)。 - `--plain`:在 TTY 会话中强制纯文本。 - `--no-color`:禁用 ANSI 颜色。 在 JSON 模式下,CLI 输出带 `type` 标签的对象: - `meta`:流元数据(文件、游标、大小) - `log`:解析的日志条目 - `notice`:截断/轮转提示 - `raw`:未解析的日志行 如果 Gateway 网关无法访问,CLI 会打印一个简短提示运行: ```bash openclaw doctor ``` ### 控制 UI(Web) 控制 UI 的\*\*日志\*\*标签页使用 `logs.tail` 跟踪相同的文件。 参见 [/web/control-ui](/web/control-ui) 了解如何打开它。 ### 仅渠道日志 要过滤渠道活动(WhatsApp/Telegram 等),使用: ```bash openclaw channels logs --channel whatsapp ``` ## 日志格式 ### 文件日志(JSONL) 日志文件中的每一行都是一个 JSON 对象。CLI 和控制 UI 解析这些条目以渲染结构化输出(时间、级别、子系统、消息)。 ### 控制台输出 控制台日志\*\*感知 TTY\*\*并格式化以提高可读性: - 子系统前缀(例如 `gateway/channels/whatsapp`) - 级别着色(info/warn/error) - 可选的紧凑或 JSON 模式 控制台格式由 `logging.consoleStyle` 控制。 ## 配置日志 所有日志配置都在 `~/.openclaw/openclaw.json` 的 `logging` 下。 ```json { "logging": { "level": "info", "file": "/tmp/openclaw/openclaw-YYYY-MM-DD.log", "consoleLevel": "info", "consoleStyle": "pretty", "redactSensitive": "tools", "redactPatterns": ["sk-.\*"] } } ``` ### 日志级别 - `logging.level`:\*\*文件日志\*\*(JSONL)级别。 - `logging.consoleLevel`:\*\*控制台\*\*详细程度级别。 `--verbose` 仅影响控制台输出;它不改变文件日志级别。 ### 控制台样式 `logging.consoleStyle`: - `pretty`:人类友好、彩色、带时间戳。 - `compact`:更紧凑的输出(最适合长会话)。 - `json`:每行 JSON(用于日志处理器)。 ### 脱敏 工具摘要可以在敏感令牌输出到控制台之前对其进行脱敏: - `logging.redactSensitive`:`off` | `tools`(默认:`tools`) - `logging.redactPatterns`:用于覆盖默认集的正则表达式字符串列表 脱敏仅影响\*\*控制台输出\*\*,不会改变文件日志。 ## 诊断 + OpenTelemetry 诊断是用于模型运行\*\*和\*\*消息流遥测(webhooks、队列、会话状态)的结构化、机器可读事件。它们\*\*不\*\*替代日志;它们存在是为了向指标、追踪和其他导出器提供数据。 诊断事件在进程内发出,但导出器仅在启用诊断 + 导出器插件时才附加。 ### OpenTelemetry 与 OTLP - \*\*OpenTelemetry(OTel)\*\*:追踪、指标和日志的数据模型 + SDK。 - \*\*OTLP\*\*:用于将 OTel 数据导出到收集器/后端的线路协议。 - OpenClaw 目前通过 \*\*OTLP/HTTP(protobuf)\*\* 导出。 ### 导出的信号 - \*\*指标\*\*:计数器 + 直方图(令牌使用、消息流、队列)。 - \*\*追踪\*\*:模型使用 + webhook/消息处理的 span。 - \*\*日志\*\*:启用 `diagnostics.otel.logs` 时通过 OTLP 导出。日志量可能很大;请注意 `logging.level` 和导出器过滤器。 ### 诊断事件目录 模型使用: - `model.usage`:令牌、成本、持续时间、上下文、提供商/模型/渠道、会话 ID。 消息流: - `webhook.received`:每渠道的 webhook 入口。 - `webhook.processed`:webhook 已处理 + 持续时间。 - `webhook.error`:webhook 处理程序错误。 - `message.queued`:消息入队等待处理。 - `message.processed`:结果 + 持续时间 + 可选错误。 队列 + 会话: - `queue.lane.enqueue`:命令队列通道入队 + 深度。 - `queue.lane.dequeue`:命令队列通道出队 + 等待时间。 - `session.state`:会话状态转换 + 原因。 - `session.stuck`:会话卡住警告 + 持续时间。 - `run.attempt`:运行重试/尝试元数据。 - `diagnostic.heartbeat`:聚合计数器(webhooks/队列/会话)。 ### 启用诊断(无导出器) 如果你希望诊断事件可用于插件或自定义接收器,使用此配置: ```json { "diagnostics": { "enabled": true } } ``` ### 诊断标志(定向日志) 使用标志在不提高 `logging.level` 的情况下开启额外的定向调试日志。 标志不区分大小写,支持通配符(例如 `telegram.\*` 或 `\*`)。 ```json { "diagnostics": { "flags": ["telegram.http"] } } ``` 环境变量覆盖(一次性): ``` OPENCLAW\_DIAGNOSTICS=telegram.http,telegram.payload ``` 注意: - 标志日志进入标准日志文件(与 `logging.file` 相同)。 - 输出仍根据 `logging.redactSensitive` 进行脱敏。 - 完整指南:[/diagnostics/flags](/diagnostics/flags)。 ### 导出到 OpenTelemetry 诊断可以通过 `diagnostics-otel` 插件(OTLP/HTTP)导出。这适用于任何接受 OTLP/HTTP 的 OpenTelemetry 收集器/后端。 ```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 } } } ``` 注意: - 你也可以使用 `openclaw plugins enable diagnostics-otel` 启用插件。 - `protocol` 目前仅支持 `http/protobuf`。`grpc` 被忽略。 - 指标包括令牌使用、成本、上下文大小、运行持续时间和消息流计数器/直方图(webhooks、队列、会话状态、队列深度/等待)。 - 追踪/指标可以通过 `traces` / `metrics` 切换(默认:开启)。启用时,追踪包括模型使用 span 加上 webhook/消息处理 span。 - 当你的收集器需要认证时设置 `headers`。 - 支持的环境变量:`OTEL\_EXPORTER\_OTLP\_ENDPOINT`、`OTEL\_SERVICE\_NAME`、`OTEL\_EXPORTER\_OTLP\_PROTOCOL`。 ### 导出的指标(名称 + 类型) 模型使用: - `openclaw.tokens`(计数器,属性:`openclaw.token`、`openclaw.channel`、`openclaw.provider`、`openclaw.model`) - `openclaw.cost.usd`(计数器,属性:`openclaw.channel`、`openclaw.provider`、`openclaw.model`) - `openclaw.run.duration\_ms`(直方图,属性:`openclaw.channel`、`openclaw.provider`、`openclaw.model`) - `openclaw.context.tokens`(直方图,属性:`openclaw.context`、`openclaw.channel`、`openclaw.provider`、`openclaw.model`) 消息流: - `openclaw.webhook.received`(计数器,属性:`openclaw.channel`、`openclaw.webhook`) - `openclaw.webhook.error`(计数器,属性:`openclaw.channel`、`openclaw.webhook`) - `openclaw.webhook.duration\_ms`(直方图,属性:`openclaw.channel`、`openclaw.webhook`) - `openclaw.message.queued`(计数器,属性:`openclaw.channel`、`openclaw.source`) - `openclaw.message.processed`(计数器,属性:`openclaw.channel`、`openclaw.outcome`) - `openclaw.message.duration\_ms`(直方图,属性:`openclaw.channel`、`openclaw.outcome`) 队列 + 会话: - `openclaw.queue.lane.enqueue`(计数器,属性:`openclaw.lane`) - `openclaw.queue.lane.dequeue`(计数器,属性:`openclaw.lane`) - `openclaw.queue.depth`(直方图,属性:`openclaw.lane` 或 `openclaw.channel=heartbeat`) - `openclaw.queue.wait\_ms`(直方图,属性:`openclaw.lane`) - `openclaw.session.state`(计数器,属性:`openclaw.state`、`openclaw.reason`) - `openclaw.session.stuck`(计数器,属性:`openclaw.state`) - `openclaw.session.stuck\_age\_ms`(直方图,属性:`openclaw.state`) - `openclaw.run.attempt`(计数器,属性:`openclaw.attempt`) ### 导出的 span(名称 + 关键属性) - `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` ### 采样 + 刷新 - 追踪采样:`diagnostics.otel.sampleRate`(0.0–1.0,仅根 span)。 - 指标导出间隔:`diagnostics.otel.flushIntervalMs`(最小 1000ms)。 ### 协议说明 - OTLP/HTTP 端点可以通过 `diagnostics.otel.endpoint` 或 `OTEL\_EXPORTER\_OTLP\_ENDPOINT` 设置。 - 如果端点已包含 `/v1/traces` 或 `/v1/metrics`,则按原样使用。 - 如果端点已包含 `/v1/logs`,则按原样用于日志。 - `diagnostics.otel.logs` 为主日志器输出启用 OTLP 日志导出。 ### 日志导出行为 - OTLP 日志使用与写入 `logging.file` 相同的结构化记录。 - 遵守 `logging.level`(文件日志级别)。控制台脱敏\*\*不\*\*适用于 OTLP 日志。 - 高流量安装应优先使用 OTLP 收集器采样/过滤。 ## 故障排除提示 - \*\*Gateway 网关无法访问?\*\* 先运行 `openclaw doctor`。 - \*\*日志为空?\*\* 检查 Gateway 网关是否正在运行并写入 `logging.file` 中的文件路径。 - \*\*需要更多细节?\*\* 将 `logging.level` 设置为 `debug` 或 `trace` 并重试。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/logging.md
main
opebclaw
[ -0.06292961537837982, 0.10681615769863129, -0.024654783308506012, -0.02463056892156601, -0.0028875877615064383, -0.10084191709756851, 0.019236186519265175, 0.009409715421497822, 0.03908267244696617, -0.011048083193600178, 0.08566251397132874, -0.033128704875707626, -0.014199178665876389, 0.01196750346571207, 0.06255579739809036, 0.07844129949808121, -0.1145114153623581, 0.015926383435726166, -0.057754307985305786, -0.05238404870033264, 0.00042600679444149137, 0.05537152290344238, 0.059905942529439926, -0.014573474414646626, -0.02902289666235447, 0.0099472776055336, -0.04054837301373482, 0.008284317329525948, -0.04491588473320007, 0.006409331690520048, -0.03094354458153248, 0.047079898416996, -0.04517029970884323, 0.025005048140883446, 0.15188676118850708, 0.07266972959041595, 0.034824565052986145, -0.08944550156593323, 0.017054235562682152, -0.004161342512816191, 0.053539060056209564, 0.0743817612528801, -0.0016272320644930005, -0.07706069946289062, -0.023002989590168, -0.03285926580429077, -0.014944108203053474, -0.08291619271039963, -0.0655934140086174, 0.026849113404750824, -0.0489513985812664, 0.004211878404021263, -0.027416281402111053, -0.08986940234899521, 0.003280854318290949, 0.0166479479521513, -0.058597952127456665, 0.0017892573960125446, 0.0018022613367065787, -0.040961623191833496, 0.0214473195374012, 0.04198658838868141, -0.08325716853141785, -0.0031904452480375767, -0.07621193677186966, -0.07140045613050461, -0.09979047626256943, 0.01904471404850483, 0.04508544132113457, -0.04268123582005501, -0.03321266174316406, 0.014052563346922398, -0.0670473501086235, -0.03831896185874939, -0.03223781660199165, -0.01936792954802513, 0.03950514271855354, -0.002801156835630536, -0.09471066296100616, -0.09845344722270966, -0.03209539130330086, -0.051744118332862854, 0.02108658477663994, 0.06509818881750107, -0.02624727413058281, 0.10664737224578857, -0.04204067215323448, 0.05230934917926788, 0.07456257194280624, -0.02289039082825184, -0.015312994830310345, -0.08314357697963715, -0.00593262305483222, 0.04073471948504448, -0.011748897843062878, 0.03220989927649498, 0.040960244834423065, 0.053026165813207626, -0.041347868740558624, 0.10386359691619873, 0.05219434201717377, 0.040671251714229584, 0.048563096672296524, 0.037525277584791183, -0.045972857624292374, -0.0035228943452239037, -0.02191166952252388, 0.10233208537101746, -0.004612396005541086, -0.023376891389489174, 0.016637111082673073, -0.010136183351278305, -0.0015195866581052542, -0.06776310503482819, -0.036682553589344025, 0.05261652544140816, -0.04514676705002785, -0.04732542857527733, -0.020652052015066147, 0.06911331415176392, 0.11277715116739273, -0.03547482192516327, -0.0847652405500412, 0.012925123795866966, 0.0033097267150878906, 0.010177570395171642, 0.16868889331817627, 1.0904559670769339e-33, 0.03690526261925697, -0.01759077049791813, 0.01180697325617075, -0.043699707835912704, 0.09806111454963684, -0.04776420071721077, 0.0042492966167628765, -0.026866458356380463, -0.09517864137887955, 0.05440893396735191, -0.045132827013731, 0.0206043291836977, -0.060131270438432693, -0.031156010925769806, -0.04623506963253021, -0.03356635197997093, -0.03782329335808754, -0.006253778003156185, 0.0720483586192131, -0.02099118009209633, 0.0317281149327755, 0.0018481011502444744, 0.0007552882307209074, -0.03144325315952301, -0.020675309002399445, -0.01940317079424858, 0.05604666844010353, -0.02695346437394619, -0.057550910860300064, 0.04593934118747711, 0.11922591179609299, -0.026390880346298218, -0.03386214002966881, 0.044205646961927414, 0.00561135821044445, 0.04773567244410515, -0.01340820174664259, -0.03128688409924507, -0.09772058576345444, -0.07284526526927948, -0.01133858785033226, -0.013711266219615936, -0.1281602680683136, -0.002400496508926153, -0.0012702887179329991, -0.04070224612951279, -0.09278126060962677, -0.022669769823551178, 0.011509359814226627, 0.009238720871508121, -0.0476033091545105, 0.09885986149311066, -0.005536594428122044, 0.001345363212749362, 0.03143101930618286, -0.0493021234869957, 0.04914674162864685, -0.04659968987107277, 0.002133523114025593, -0.07285312563180923, 0.051597993820905685, 0.02587803266942501, 0.007441088557243347, 0.0175415500998497, 0.07753410935401917, -0.018014928326010704, 0.06268307566642761, 0.05173227936029434, -0.0222026314586401, -0.020789263769984245, -0.03522353619337082, -0.04466269537806511, 0.09991027414798737, 0.020689979195594788, -0.024630103260278702, -0.026954736560583115, -0.024503104388713837, 0.03921857476234436, 0.03207379952073097, -0.002454260364174843, 0.004278182052075863, -0.08250099420547485, -0.04986835643649101, 0.04618729650974274, -0.0185340978205204, 0.025105539709329605, 0.041110534220933914, -0.013700353913009167, 0.031991709023714066, 0.049399662762880325, -0.09458043426275253, 0.04782149940729141, -0.010026004165410995, -0.0364471971988678, -0.06263715773820877, -4.7773398154883054e-33, -0.0034409628715366125, 0.015035838820040226, -0.005978946108371019, -0.04743843525648117, -0.03592498600482941, -0.0782066136598587, 0.029122337698936462, 0.017999382689595222, 0.054399799555540085, 0.0850318968296051, -0.04171735420823097, 0.027361493557691574, 0.004939718637615442, -0.02134029008448124, 0.06954577565193176, 0.03528279811143875, 0.021297696977853775, 0.03787519782781601, -0.02138320729136467, 0.041749805212020874, -0.008477485738694668, 0.03387053310871124, -0.09976758062839508, 0.03737027570605278, 0.015577083453536034, 0.011843607760965824, 0.06073006987571716, -0.021483169868588448, -0.10244566947221756, -0.02808876894414425, -0.038054659962654114, 0.0409361869096756, -0.031904011964797974, 0.07775215059518814, -0.001807647873647511, -0.037505872547626495, 0.040472857654094696, 0.04479315131902695, -0.00047775934217497706, 0.006180581636726856, 0.020628200843930244, 0.027445925399661064, -0.0221395306289196, 0.004967237822711468, -0.014170240610837936, 0.01407402940094471, -0.03923827037215233, 0.005225979257375002, -0.06645085662603378, -0.020849909633398056, 0.04360409826040268, -0.0006774280336685479, 0.036133669316768646, -0.046606242656707764, 0.04134770855307579, 0.06675951927900314, 0.020264634862542152, -0.11181622743606567, -0.10260117053985596, -0.062421295791864395, -0.010059359483420849, -0.057860348373651505, -0.06168636679649353, 0.058146920055150986, -0.008292469196021557, -0.10932186245918274, -0.025145191699266434, -0.003462202614173293, -0.008689498528838158, -0.15111155807971954, -0.03457764536142349, 0.0011844357941299677, 0.04774940758943558, -0.03307678923010826, 0.050785984843969345, -0.0035289034713059664, 0.0030659297481179237, -0.0025185139384120703, 0.0009190515847876668, 0.05540430545806885, -0.026337044313549995, 0.00439247814938426, 0.010183618403971195, 0.08959764242172241, 0.012934987433254719, -0.032973747700452805, -0.048237476497888565, 0.07351448386907578, -0.005838623270392418, -0.026665428653359413, -0.002856002887710929, 0.058055680245161057, 0.0187981054186821, 0.042764779180288315, 0.014159890823066235, -4.13454976921912e-8, -0.13370965421199799, -0.13127648830413818, -0.10095744580030441, 0.03309008851647377, -0.00676720030605793, 0.01520271971821785, 0.010260718874633312, 0.0166990477591753, 0.0008266150834970176, -0.037254251539707184, 0.09903046488761902, 0.037408292293548584, -0.13077133893966675, 0.020395029336214066, -0.12222118675708771, -0.035905953496694565, -0.052940431982278824, 0.02788594365119934, 0.014390659518539906, -0.01721341721713543, 0.022837648168206215, 0.03167333826422691, 0.10342571139335632, -0.065965436398983, -0.03291494399309158, -0.027347752824425697, -0.051564935594797134, 0.022416898980736732, -0.10047639161348343, -0.04202953726053238, -0.0035402399953454733, -0.003220251062884927, 0.05824132263660431, -0.022360187023878098, -0.04692798852920532, 0.0002119295677402988, 0.1159568578004837, 0.010703726671636105, -0.04652848094701767, -0.013232472352683544, 0.054928846657276154, 0.0002781278162728995, -0.03672633692622185, 0.03035200573503971, 0.03351029008626938, -0.04827509820461273, -0.010863740928471088, 0.029083965346217155, 0.043704789131879807, -0.06790781021118164, -0.042365700006484985, -0.014034749008715153, 0.11097604036331177, -0.03253679350018501, 0.01501272153109312, 0.03714798763394356, 0.02373328059911728, -0.013135775923728943, 0.003515699878334999, 0.04860930144786835, 0.06004751846194267, 0.06780317425727844, 0.01312648318707943, -0.007328508421778679 ]
0.061994
Gateway 网关是否正在运行并写入 `logging.file` 中的文件路径。 - \*\*需要更多细节?\*\* 将 `logging.level` 设置为 `debug` 或 `trace` 并重试。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/logging.md
main
opebclaw
[ 0.002401959616690874, 0.019494591280817986, -0.03183254227042198, -0.014072936028242111, 0.03903762996196747, -0.09308700263500214, 0.06932204961776733, 0.04573077708482742, 0.009425082243978977, 0.05503532662987709, 0.08001752942800522, -0.03368920087814331, 0.03682857006788254, -0.051069118082523346, -0.04036495089530945, 0.02261262573301792, -0.14719294011592865, 0.01767098903656006, -0.018177269026637077, -0.03126682713627815, 0.010217217728495598, -0.008127495646476746, -0.046486057341098785, 0.04509797692298889, -0.0040982929058372974, 0.004164684098213911, 0.010812340304255486, 0.015116214752197266, -0.02291877754032612, -0.04986483231186867, -0.031064670532941818, 0.06887408345937729, -0.036384616047143936, 0.10579394549131393, 0.06581338495016098, 0.026035411283373833, 0.05505668371915817, -0.06003319099545479, 0.02484949305653572, -0.009255938231945038, -0.012254508212208748, 0.040828730911016464, 0.031023800373077393, -0.08154594153165817, -0.01960119977593422, -0.04767359048128128, -0.04878125712275505, -0.025061456486582756, -0.06062706932425499, -0.007493156474083662, -0.0326555036008358, 0.05325424298644066, 0.032913997769355774, -0.02675718627870083, 0.059865254908800125, 0.025286609306931496, 0.06034174934029579, -0.024313533678650856, -0.007387630641460419, -0.04490451142191887, -0.05831699073314667, 0.04056419059634209, -0.046165429055690765, -0.044973649084568024, -0.030396904796361923, -0.01062680035829544, -0.022554462775588036, 0.06069181114435196, 0.05679911747574806, 0.0672866478562355, -0.17243938148021698, -0.006262511946260929, -0.07156804949045181, -0.05981496348977089, 0.013933833688497543, -0.0043922471813857555, -0.040763743221759796, 0.02659163996577263, -0.03552507236599922, -0.14023566246032715, 0.005295381881296635, -0.002720359480008483, 0.07113800197839737, 0.11087185889482498, 0.005908908788114786, 0.01367978472262621, -0.06144732981920242, 0.009792815893888474, 0.053261686116456985, 0.05620991066098213, -0.033550042659044266, -0.023359963670372963, -0.008318528532981873, 0.05960090458393097, -0.03924639895558357, 0.04704754054546356, 0.03521955385804176, 0.025997716933488846, 0.019237620756030083, -0.026439186185598373, 0.010138587094843388, 0.0658133327960968, 0.033284276723861694, 0.035004664212465286, -0.04175562411546707, -0.025163181126117706, 0.03686145320534706, 0.0015246705152094364, 0.04081282764673233, -0.006773706059902906, 0.030994482338428497, -0.028537752106785774, -0.04536542296409607, -0.05188947916030884, 0.08782940357923508, 0.019583068788051605, 0.01334516704082489, -0.023684745654463768, -0.14301833510398865, 0.04046427831053734, 0.021318955346941948, -0.01828349381685257, -0.08778387308120728, -0.03705416992306709, 0.0021889042109251022, -0.030215561389923096, 0.12582948803901672, 5.256524210129257e-34, 0.03047819621860981, -0.020107613876461983, -0.02535872533917427, -0.014003495685756207, 0.07118089497089386, 0.022807829082012177, -0.02577754482626915, -0.0013573801843449473, -0.07372604310512543, 0.06476307660341263, -0.0810081884264946, 0.0026575305964797735, -0.07343730330467224, -0.005966656841337681, 0.004841402173042297, 0.002819983521476388, -0.002035990124568343, -0.04940180107951164, 0.0012240179348737001, 0.006669117137789726, 0.023125117644667625, -0.0856107622385025, -0.03417664393782616, -0.04009178653359413, 0.0908619612455368, 0.052776116877794266, 0.05462963506579399, -0.04881048575043678, -0.011852288618683815, -0.0013069038977846503, 0.06098403409123421, -0.09175841510295868, -0.0011562994914129376, 0.003403208451345563, -0.0035549181047827005, -0.0850556418299675, -0.011032459326088428, 0.062456436455249786, -0.061598919332027435, 0.014952432364225388, -0.0433616079390049, -0.06890978664159775, -0.04080433025956154, -0.04242579638957977, 0.0027372927870601416, 0.0007303124875761569, -0.15693306922912598, 0.047847725450992584, 0.07418941706418991, -0.03212396427989006, 0.026110922917723656, 0.06775821000337601, -0.0058573829010128975, -0.03100699372589588, 0.08258538693189621, -0.003746866248548031, -0.00612088106572628, -0.03024306893348694, -0.05350266769528389, 0.001932906685397029, 0.121858149766922, -0.020072240382432938, -0.07689812779426575, 0.0458526648581028, 0.04285735264420509, -0.032425083220005035, 0.04775620624423027, 0.015444240532815456, 0.022491121664643288, -0.040342558175325394, -0.1375863403081894, -0.09560830146074295, 0.0953766480088234, 0.04831275716423988, -0.03107692115008831, 0.004183151759207249, -0.0653538703918457, 0.041363827884197235, -0.006379354745149612, 0.009022155776619911, -0.07563157379627228, -0.08940278738737106, -0.028193006291985512, -0.0705002024769783, 0.021543096750974655, -0.017475083470344543, 0.004492555744946003, -0.027415327727794647, 0.008841931819915771, 0.020226500928401947, -0.09385202825069427, 0.0007549875881522894, 0.003728908719494939, 0.004742072429507971, -0.027812957763671875, -6.061440293434972e-33, -0.020047560334205627, 0.07722868770360947, -0.02213515155017376, -0.04802415147423744, -0.07290622591972351, -0.008649113588035107, 0.06074916943907738, 0.014060108922421932, 0.02899949811398983, 0.10709171742200851, -0.0654245987534523, 0.04604671150445938, -0.008813837543129921, 0.018967460840940475, 0.09397632628679276, 0.06909122318029404, -0.07072032988071442, 0.0008527395548298955, -0.05732279270887375, 0.0018447395414113998, 0.014093231409788132, -0.018902603536844254, -0.03300565108656883, -0.004281207919120789, -0.016175948083400726, -0.011697765439748764, 0.11084139347076416, 0.03947770223021507, -0.0315086655318737, -0.013996653258800507, 0.03271064907312393, 0.05734281241893768, 0.007692379876971245, 0.02296939678490162, 0.04363575205206871, -0.09826038032770157, 0.03993971273303032, -0.036642637103796005, -0.003666491946205497, 0.0000015208330523819313, 0.048458561301231384, 0.03327961266040802, 0.009928450919687748, -0.04658607393503189, 0.012607783079147339, 0.018338117748498917, -0.08697526901960373, 0.009419224224984646, -0.01520146057009697, -0.06707366555929184, 0.05797968804836273, -0.06590574979782104, 0.11891315132379532, 0.024536391720175743, 0.008038224652409554, 0.1122967079281807, 0.034072499722242355, -0.002259207656607032, -0.034650757908821106, -0.06139110401272774, -0.025055624544620514, -0.019655577838420868, -0.03587370365858078, 0.023912109434604645, -0.03398004174232483, -0.024061504751443863, 0.012359041720628738, -0.024064643308520317, -0.0484115332365036, -0.08158999681472778, -0.012895205058157444, -0.015104470774531364, -0.0067964219488203526, 0.07165747135877609, 0.010055692866444588, 0.029660843312740326, -0.06006103381514549, -0.018330564722418785, 0.0059686079621315, 0.03767590597271919, 0.04800165072083473, -0.021062184125185013, -0.04620632156729698, -0.0016516422620043159, -0.012674396857619286, -0.11855613440275192, -0.06558297574520111, 0.053649213165044785, 0.024258887395262718, -0.040535569190979004, -0.0040901233442127705, -0.008677938021719456, -0.039647772908210754, -0.009893632493913174, -0.006485659163445234, -3.5703944689657874e-8, -0.1072845607995987, -0.15958735346794128, -0.020140182226896286, -0.06782997399568558, 0.0806511864066124, 0.07848011702299118, -0.0385749489068985, 0.04760172963142395, -0.01657363586127758, -0.010574684478342533, -0.006347870919853449, -0.04147356376051903, -0.10519642382860184, 0.035539839416742325, -0.024343250319361687, -0.03886125609278679, 0.0013493853621184826, -0.0017206206684932113, 0.017417998984456062, -0.07802027463912964, 0.02987557090818882, -0.014679794199764729, -0.022058431059122086, 0.009456937201321125, -0.0857626348733902, -0.04780203476548195, 0.02987307868897915, 0.03470952436327934, -0.08464686572551727, -0.10101772099733353, 0.026476556435227394, 0.03978871926665306, 0.036285001784563065, -0.04967006295919418, -0.018344754353165627, 0.12869444489479065, 0.11883307993412018, 0.0018335144268348813, -0.01283502671867609, -0.018148334696888924, 0.011246884241700172, -0.01796732284128666, 0.03035123459994793, -0.025204481557011604, 0.03197740763425827, -0.0859331339597702, 0.01404117327183485, 0.05067199468612671, 0.07080091536045074, -0.0045486572198569775, -0.05135157331824303, 0.010187886655330658, 0.05696191266179085, 0.007205601315945387, -0.07522743195295334, 0.05038853734731674, -0.016052037477493286, -0.04380829632282257, 0.021225953474640846, 0.014069016091525555, 0.061949264258146286, 0.09590215981006622, 0.03369908779859543, 0.0035143133718520403 ]
0.058092
# Token 使用与成本 OpenClaw 跟踪的是 \*\*token\*\*,而不是字符。Token 是模型特定的,但大多数 OpenAI 风格的模型对于英文文本平均约 4 个字符为一个 token。 ## 系统提示词如何构建 OpenClaw 在每次运行时组装自己的系统提示词。它包括: - 工具列表 + 简短描述 - Skills 列表(仅元数据;指令通过 `read` 按需加载) - 自我更新指令 - 工作区 + 引导文件(`AGENTS.md`、`SOUL.md`、`TOOLS.md`、`IDENTITY.md`、`USER.md`、`HEARTBEAT.md`、`BOOTSTRAP.md`(新建时))。大文件会被 `agents.defaults.bootstrapMaxChars`(默认:20000)截断。 - 时间(UTC + 用户时区) - 回复标签 + 心跳行为 - 运行时元数据(主机/操作系统/模型/思考) 完整分解参见[系统提示词](/concepts/system-prompt)。 ## 什么算入上下文窗口 模型接收的所有内容都计入上下文限制: - 系统提示词(上面列出的所有部分) - 对话历史(用户 + 助手消息) - 工具调用和工具结果 - 附件/转录(图片、音频、文件) - 压缩摘要和修剪产物 - 提供商包装或安全头(不可见,但仍计数) 有关实际分解(每个注入文件、工具、Skills 和系统提示词大小),使用 `/context list` 或 `/context detail`。参见[上下文](/concepts/context)。 ## 如何查看当前 token 使用量 在聊天中使用: - `/status` → 带有会话模型、上下文使用量、 最后响应输入/输出 token 和\*\*预估成本\*\*(仅 API 密钥)的 \*\*emoji 丰富的状态卡片\*\*。 - `/usage off|tokens|full` → 在每个回复后附加\*\*每响应使用量页脚\*\*。 - 每会话持久化(存储为 `responseUsage`)。 - OAuth 认证\*\*隐藏成本\*\*(仅 token)。 - `/usage cost` → 从 OpenClaw 会话日志显示本地成本摘要。 其他界面: - \*\*TUI/Web TUI:\*\* 支持 `/status` + `/usage`。 - \*\*CLI:\*\* `openclaw status --usage` 和 `openclaw channels list` 显示 提供商配额窗口(不是每响应成本)。 ## 成本估算(显示时) 成本从你的模型定价配置估算: ``` models.providers..models[].cost ``` 这些是 `input`、`output`、`cacheRead` 和 `cacheWrite` 的\*\*每 1M token 美元\*\*。如果缺少定价,OpenClaw 仅显示 token。OAuth 令牌 永远不显示美元成本。 ## 缓存 TTL 和修剪影响 提供商提示缓存仅在缓存 TTL 窗口内适用。OpenClaw 可以 选择性地运行\*\*缓存 TTL 修剪\*\*:它在缓存 TTL 过期后修剪会话,然后重置缓存窗口,以便后续请求可以重用 新缓存的上下文,而不是重新缓存完整历史。这在会话空闲超过 TTL 时 可以降低缓存写入成本。 在 [Gateway 网关配置](/gateway/configuration) 中配置它,并在 [会话修剪](/concepts/session-pruning) 中查看行为详情。 心跳可以在空闲间隙中保持缓存\*\*热\*\*。如果你的模型缓存 TTL 是 `1h`,将心跳间隔设置为略低于此(例如 `55m`)可以避免 重新缓存完整提示,从而降低缓存写入成本。 有关 Anthropic API 定价,缓存读取比输入 token 便宜得多,而缓存写入以更高的倍率计费。参见 Anthropic 的 提示缓存定价了解最新费率和 TTL 倍率: https://docs.anthropic.com/docs/build-with-claude/prompt-caching ### 示例:用心跳保持 1 小时缓存热 ```yaml agents: defaults: model: primary: "anthropic/claude-opus-4-5" models: "anthropic/claude-opus-4-5": params: cacheRetention: "long" heartbeat: every: "55m" ``` ## 减少 token 压力的技巧 - 使用 `/compact` 来总结长会话。 - 在你的工作流中修剪大的工具输出。 - 保持 skill 描述简短(skill 列表会注入到提示中)。 - 对于冗长的探索性工作,优先使用较小的模型。 精确的 skill 列表开销公式参见 [Skills](/tools/skills)。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/token-use.md
main
opebclaw
[ -0.0766783282160759, 0.012624802999198437, -0.04324555769562721, -0.04074449464678764, -0.008381222374737263, -0.037640079855918884, 0.05255713686347008, 0.05014549195766449, 0.038001954555511475, -0.03102383017539978, 0.1061568409204483, -0.013049026019871235, 0.12540094554424286, -0.037140846252441406, 0.032659877091646194, 0.07191046327352524, -0.06882378458976746, 0.03509293124079704, -0.028991231694817543, 0.013108110055327415, -0.0003146730887237936, -0.004413848277181387, -0.004051511641591787, 0.026543227955698967, -0.02125861681997776, 0.044271644204854965, -0.01659965142607689, -0.01562812179327011, 0.032392941415309906, -0.01243051327764988, 0.03146076202392578, 0.0768665000796318, -0.010987534187734127, -0.02918614260852337, 0.10010762512683868, 0.12261693179607391, 0.00436336500570178, -0.014640781097114086, 0.013049607165157795, -0.013457140885293484, 0.011098308488726616, -0.07275017350912094, -0.011903226375579834, -0.033431291580200195, 0.01745540089905262, -0.02550412155687809, -0.033031076192855835, -0.0584556944668293, -0.05039222538471222, 0.03706660121679306, -0.0550060048699379, -0.0314425528049469, -0.020903686061501503, -0.019039254635572433, -0.03080175258219242, -0.019168132916092873, -0.07508974522352219, 0.016607850790023804, 0.011935071088373661, -0.05863142013549805, -0.019701996818184853, 0.04383855685591698, 0.008996384218335152, 0.03527158498764038, -0.09446145594120026, -0.009363742545247078, -0.06138031929731369, -0.039114028215408325, -0.01572069153189659, 0.025361623615026474, -0.041841790080070496, -0.046597208827733994, 0.0199413038790226, 0.028810683637857437, -0.03125540912151337, 0.007815981283783913, 0.05419924110174179, 0.01694827526807785, -0.009730097837746143, -0.08689030259847641, -0.0919329896569252, -0.029774582013487816, 0.040763404220342636, 0.011012415401637554, -0.0357462540268898, 0.1040998250246048, -0.029408715665340424, 0.027439121156930923, 0.06689000129699707, 0.011211476288735867, 0.04199566692113876, -0.0074569121934473515, 0.04080582782626152, 0.04032064601778984, 0.019340211525559425, -0.02063530497252941, 0.03259149193763733, 0.10984501242637634, -0.03096952475607395, 0.0677025243639946, 0.01282334141433239, -0.03481108695268631, -0.0427640937268734, 0.05854868143796921, -0.008713342249393463, -0.04584090784192085, -0.0035692888777703047, -0.04023195430636406, 0.09480585157871246, 0.018887221813201904, 0.022761797532439232, -0.022373495623469353, -0.03394276276230812, -0.043280258774757385, -0.05324951559305191, 0.06761161983013153, -0.05366639792919159, -0.034777868539094925, 0.026062985882163048, 0.008510449901223183, 0.08551903069019318, -0.053750619292259216, -0.06750291585922241, -0.08417394012212753, -0.05268534645438194, 0.026986807584762573, 0.10712479799985886, -1.8039995887962863e-33, -0.056885987520217896, 0.011077695526182652, 0.03303069993853569, -0.042730871587991714, 0.05262656509876251, -0.0212324857711792, -0.005330617073923349, 0.0022752576041966677, -0.049743082374334335, 0.06742776930332184, -0.020370377227663994, 0.06835193932056427, -0.08112508058547974, 0.06931964308023453, -0.0823713093996048, -0.05696987733244896, -0.007121656090021133, -0.03075983002781868, 0.05232774838805199, -0.0973956435918808, 0.03599290922284126, -0.025669021531939507, -0.03428618609905243, 0.04556718468666077, -0.04844067245721817, 0.1119469553232193, 0.045746129006147385, -0.03640316426753998, 0.03150844946503639, 0.038393374532461166, 0.0308979582041502, -0.06307685375213623, -0.01438396330922842, 0.00879516452550888, -0.0736040249466896, 0.06295141577720642, 0.030156448483467102, -0.014724789187312126, -0.020140092819929123, -0.05108598619699478, -0.010379860177636147, -0.023143241181969643, 0.03012043423950672, -0.044813357293605804, -0.012012530118227005, -0.02268851175904274, -0.03492119535803795, -0.01677478849887848, 0.047654032707214355, -0.04893682524561882, -0.11230061203241348, 0.02161012403666973, 0.04967464134097099, -0.0006063230684958398, 0.01307128369808197, -0.06939877569675446, -0.10017453879117966, 0.010852175764739513, -0.05685480311512947, -0.028093969449400902, -0.03708707541227341, -0.004515630658715963, 0.0987740308046341, 0.0021047042682766914, 0.07716593891382217, 0.02772575430572033, 0.031208721920847893, -0.06262701749801636, 0.05390729382634163, -0.012570559047162533, -0.06373181939125061, 0.023241428658366203, 0.057086460292339325, 0.007220802363008261, -0.08407843112945557, -0.08264945447444916, 0.04561100900173187, 0.013045341707766056, -0.017174869775772095, -0.05685616657137871, -0.018971337005496025, -0.050437960773706436, -0.1280670166015625, 0.06555169820785522, 0.009500822983682156, 0.02715699002146721, 0.03199737146496773, -0.010833987034857273, -0.07874024659395218, -0.03187910467386246, -0.10973257571458817, -0.026417206972837448, -0.001972141209989786, 0.032842859625816345, -0.08580313622951508, -4.4104169680608056e-33, 0.014019888825714588, 0.023746969178318977, 0.023453203961253166, 0.033545561134815216, 0.011682843789458275, -0.044981203973293304, 0.08463496714830399, 0.002846551826223731, 0.01590796373784542, 0.03141636401414871, -0.0460965596139431, 0.004820049740374088, -0.07376933842897415, 0.03500169888138771, -0.02520798332989216, 0.06099792197346687, -0.0439988449215889, 0.047071073204278946, -0.0169404074549675, 0.01273292675614357, -0.05312371253967285, 0.09125825017690659, -0.16742071509361267, 0.09474954009056091, 0.051323793828487396, 0.04612976312637329, 0.011952199041843414, -0.01716938242316246, -0.06218241900205612, -0.025259176269173622, -0.009581487625837326, 0.03598584607243538, -0.09487497806549072, 0.09349145740270615, -0.07672697305679321, -0.08002030104398727, 0.014313970692455769, 0.046677738428115845, -0.02584717981517315, 0.005995206534862518, 0.04659661278128624, -0.019241727888584137, 0.01084862183779478, -0.016749056056141853, -0.014873557724058628, -0.0031427524518221617, -0.04270552471280098, -0.08871305733919144, -0.05608906224370003, 0.029174210503697395, 0.06761053949594498, -0.05172012373805046, -0.005085535813122988, -0.006211621221154928, -0.04361282289028168, 0.013412472791969776, -0.028946420177817345, -0.07141957432031631, -0.09041789919137955, -0.10642357915639877, 0.04148723557591438, 0.029109660536050797, 0.02271549217402935, 0.033461324870586395, -0.0008990882197394967, -0.021161844953894615, -0.014105952344834805, 0.03764715418219566, -0.011136384680867195, -0.10013794898986816, 0.005087260622531176, 0.046872708946466446, 0.0461781769990921, -0.03067510575056076, 0.01737295463681221, 0.018405143171548843, -0.021238183602690697, -0.09054501354694366, -0.014088016003370285, -0.018964150920510292, 0.010265777818858624, -0.03196742758154869, 0.06230359524488449, 0.05611949786543846, -0.0987626239657402, 0.03029893897473812, 0.01710810698568821, 0.1166544035077095, -0.027724234387278557, -0.01612335443496704, -0.04536135122179985, 0.08288566023111343, 0.005931330844759941, 0.041089631617069244, -0.04820449650287628, -5.517189194392813e-8, -0.08817347884178162, -0.0774720162153244, -0.05847398191690445, -0.05527106672525406, -0.038273442536592484, 0.021620405837893486, -0.04952014610171318, -0.06852656602859497, -0.027024606242775917, -0.061914242804050446, 0.06284424662590027, -0.08058222383260727, -0.08685557544231415, -0.037534475326538086, -0.08604495972394943, -0.0077954544685781, -0.08715692162513733, 0.09367482364177704, -0.017029592767357826, -0.10761137306690216, -0.028371136635541916, 0.08288989961147308, 0.05759969726204872, -0.06316105276346207, -0.0003394391678739339, 0.010087691247463226, -0.07469747960567474, 0.03183342516422272, -0.03956262022256851, 0.016284743323922157, -0.001772405463270843, 0.013008019886910915, 0.12037214636802673, -0.07612468302249908, 0.02326946146786213, -0.0045239864848554134, 0.08854783326387405, -0.03318115323781967, -0.010699119418859482, 0.014521954581141472, 0.03549710661172867, -0.032575853168964386, -0.08244124054908752, -0.0027961316518485546, -0.02123243175446987, -0.11253637820482254, 0.04247768223285675, 0.04751528054475784, 0.06041421368718147, -0.009191461838781834, 0.0470723882317543, -0.04654489830136299, 0.026500780135393143, -0.09402919560670853, 0.014475299045443535, -0.012704839929938316, -0.043957870453596115, 0.05129851773381233, 0.02231261134147644, 0.05818354710936546, 0.013630036264657974, 0.03295454382896423, 0.04885073006153107, -0.027472103014588356 ]
0.092005
# Hooks Hooks 提供了一个可扩展的事件驱动系统,用于响应智能体命令和事件自动执行操作。Hooks 从目录中自动发现,可以通过 CLI 命令管理,类似于 OpenClaw 中 Skills 的工作方式。 ## 入门指南 Hooks 是在事件发生时运行的小脚本。有两种类型: - \*\*Hooks\*\*(本页):当智能体事件触发时在 Gateway 网关内运行,如 `/new`、`/reset`、`/stop` 或生命周期事件。 - \*\*Webhooks\*\*:外部 HTTP webhooks,让其他系统触发 OpenClaw 中的工作。参见 [Webhook Hooks](/automation/webhook) 或使用 `openclaw webhooks` 获取 Gmail 助手命令。 Hooks 也可以捆绑在插件中;参见 [插件](/plugin#plugin-hooks)。 常见用途: - 重置会话时保存记忆快照 - 保留命令审计跟踪用于故障排除或合规 - 会话开始或结束时触发后续自动化 - 事件触发时向智能体工作区写入文件或调用外部 API 如果你能写一个小的 TypeScript 函数,你就能写一个 hook。Hooks 会自动发现,你可以通过 CLI 启用或禁用它们。 ## 概述 hooks 系统允许你: - 在发出 `/new` 时将会话上下文保存到记忆 - 记录所有命令以供审计 - 在智能体生命周期事件上触发自定义自动化 - 在不修改核心代码的情况下扩展 OpenClaw 的行为 ## 入门 ### 捆绑的 Hooks OpenClaw 附带四个自动发现的捆绑 hooks: - \*\*💾 session-memory\*\*:当你发出 `/new` 时将会话上下文保存到智能体工作区(默认 `~/.openclaw/workspace/memory/`) - \*\*📝 command-logger\*\*:将所有命令事件记录到 `~/.openclaw/logs/commands.log` - \*\*🚀 boot-md\*\*:当 Gateway 网关启动时运行 `BOOT.md`(需要启用内部 hooks) - \*\*😈 soul-evil\*\*:在清除窗口期间或随机机会下将注入的 `SOUL.md` 内容替换为 `SOUL\_EVIL.md` 列出可用的 hooks: ```bash openclaw hooks list ``` 启用一个 hook: ```bash openclaw hooks enable session-memory ``` 检查 hook 状态: ```bash openclaw hooks check ``` 获取详细信息: ```bash openclaw hooks info session-memory ``` ### 新手引导 在新手引导期间(`openclaw onboard`),你将被提示启用推荐的 hooks。向导会自动发现符合条件的 hooks 并呈现供选择。 ## Hook 发现 Hooks 从三个目录自动发现(按优先级顺序): 1. \*\*工作区 hooks\*\*:`/hooks/`(每智能体,最高优先级) 2. \*\*托管 hooks\*\*:`~/.openclaw/hooks/`(用户安装,跨工作区共享) 3. \*\*捆绑 hooks\*\*:`/dist/hooks/bundled/`(随 OpenClaw 附带) 托管 hook 目录可以是\*\*单个 hook\*\* 或 \*\*hook 包\*\*(包目录)。 每个 hook 是一个包含以下内容的目录: ``` my-hook/ ├── HOOK.md # 元数据 + 文档 └── handler.ts # 处理程序实现 ``` ## Hook 包(npm/archives) Hook 包是标准的 npm 包,通过 `package.json` 中的 `openclaw.hooks` 导出一个或多个 hooks。使用以下命令安装: ```bash openclaw hooks install ``` 示例 `package.json`: ```json { "name": "@acme/my-hooks", "version": "0.1.0", "openclaw": { "hooks": ["./hooks/my-hook", "./hooks/other-hook"] } } ``` 每个条目指向包含 `HOOK.md` 和 `handler.ts`(或 `index.ts`)的 hook 目录。 Hook 包可以附带依赖;它们将安装在 `~/.openclaw/hooks/` 下。 ## Hook 结构 ### HOOK.md 格式 `HOOK.md` 文件在 YAML frontmatter 中包含元数据,加上 Markdown 文档: ```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.openclaw` 对象支持: - \*\*`emoji`\*\*:CLI 的显示表情符号(例如 `"💾"`) - \*\*`events`\*\*:要监听的事件数组(例如 `["command:new", "command:reset"]`) - \*\*`export`\*\*:要使用的命名导出(默认为 `"default"`) - \*\*`homepage`\*\*:文档 URL - \*\*`requires`\*\*:可选要求 - \*\*`bins`\*\*:PATH 中需要的二进制文件(例如 `["git", "node"]`) - \*\*`anyBins`\*\*:这些二进制文件中至少有一个必须存在 - \*\*`env`\*\*:需要的环境变量 - \*\*`config`\*\*:需要的配置路径(例如 `["workspace.dir"]`) - \*\*`os`\*\*:需要的平台(例如 `["darwin", "linux"]`) - \*\*`always`\*\*:绕过资格检查(布尔值) - \*\*`install`\*\*:安装方法(对于捆绑 hooks:`[{"id":"bundled","kind":"bundled"}]`) ### 处理程序实现 `handler.ts` 文件导出一个 `HookHandler` 函数: ```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; ``` #### 事件上下文 每个事件包含: ```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 } } ``` ## 事件类型 ### 命令事件 当发出智能体命令时触发: - \*\*`command`\*\*:所有命令事件(通用监听器) - \*\*`command:new`\*\*:当发出 `/new` 命令时 - \*\*`command:reset`\*\*:当发出 `/reset` 命令时 - \*\*`command:stop`\*\*:当发出 `/stop` 命令时 ### 智能体事件 - \*\*`agent:bootstrap`\*\*:在注入工作区引导文件之前(hooks 可以修改 `context.bootstrapFiles`) ### Gateway 网关事件 当 Gateway 网关启动时触发: - \*\*`gateway:startup`\*\*:在渠道启动和 hooks 加载之后 ### 工具结果 Hooks(插件 API) 这些 hooks 不是事件流监听器;它们让插件在 OpenClaw 持久化工具结果之前同步调整它们。 - \*\*`tool\_result\_persist`\*\*:在工具结果写入会话记录之前转换它们。必须是同步的;返回更新后的工具结果负载或 `undefined` 保持原样。参见 [智能体循环](/concepts/agent-loop)。 ### 未来事件 计划中的事件类型: - \*\*`session:start`\*\*:当新会话开始时 - \*\*`session:end`\*\*:当会话结束时 - \*\*`agent:error`\*\*:当智能体遇到错误时 - \*\*`message:sent`\*\*:当消息被发送时 - \*\*`message:received`\*\*:当消息被接收时 ## 创建自定义 Hooks ### 1. 选择位置 - \*\*工作区 hooks\*\*(`/hooks/`):每智能体,最高优先级 - \*\*托管 hooks\*\*(`~/.openclaw/hooks/`):跨工作区共享 ### 2. 创建目录结构 ```bash mkdir -p ~/.openclaw/hooks/my-hook cd ~/.openclaw/hooks/my-hook ``` ### 3. 创建 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`. ```
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/hooks.md
main
opebclaw
[ -0.05655460059642792, 0.03746183589100838, -0.03327986225485802, -0.04218890517950058, -0.04844177886843681, -0.037889569997787476, 0.07238203287124634, -0.04775436222553253, -0.012574592605233192, 0.03936959058046341, 0.17205139994621277, -0.07570096850395203, 0.006684561260044575, 0.004139064811170101, 0.03964831307530403, 0.07168415933847427, -0.08619371056556702, 0.033626265823841095, -0.06487695127725601, -0.04965302720665932, -0.032656148076057434, -0.035962507128715515, 0.04872933030128479, 0.02257724106311798, -0.07689762860536575, -0.0008132236544042826, -0.04787271097302437, 0.0610564760863781, 0.017428815364837646, -0.05026044696569443, -0.06651575863361359, 0.07409631460905075, -0.018726974725723267, 0.03183964639902115, 0.07201815396547318, 0.07794947177171707, 0.012677852995693684, -0.001565123675391078, -0.0240942370146513, 0.041117604821920395, 0.05631556734442711, -0.04922535642981529, -0.0068988921120762825, -0.07761480659246445, 0.032103411853313446, 0.033345431089401245, -0.07807192206382751, -0.051157671958208084, -0.09137631207704544, -0.039654992520809174, -0.030741402879357338, -0.028156498447060585, -0.029589086771011353, 0.04145386815071106, 0.014071738347411156, -0.05797461047768593, -0.017082933336496353, -0.0229280237108469, 0.05667821317911148, 0.012376636266708374, 0.007165030110627413, 0.04173620417714119, -0.014243045821785927, 0.05605492368340492, -0.08604985475540161, -0.010136878117918968, -0.05340999737381935, 0.03272279351949692, -0.0045256232842803, -0.018401609733700752, -0.1205342635512352, -0.06722597777843475, -0.07430452108383179, 0.002244157250970602, -0.02546617202460766, -0.012307392433285713, 0.011435585096478462, -0.018579132854938507, -0.09586655348539352, -0.14180929958820343, -0.043812382966279984, -0.014365441165864468, 0.04633926972746849, 0.014776998199522495, -0.0272859875112772, 0.0911540761590004, -0.04992775246500969, -0.09615232050418854, 0.12666818499565125, -0.060650534927845, -0.0006500495364889503, -0.03850433602929115, 0.016760433092713356, 0.004206388257443905, -0.041346706449985504, -0.05078158155083656, 0.04619012400507927, 0.04124042019248009, -0.07803529500961304, 0.0665205866098404, 0.02993185445666313, 0.0006900004227645695, -0.012399773113429546, -0.04493309184908867, -0.06716781109571457, -0.012620512396097183, -0.051004424691200256, 0.014484966173768044, 0.03567611426115036, -0.0110127879306674, -0.05569295585155487, -0.08400880545377731, 0.034310419112443924, -0.13847441971302032, 0.011427846737205982, 0.04615631699562073, 0.004654054995626211, -0.002004440175369382, 0.04033427685499191, 0.06371461600065231, 0.07849539071321487, 0.028665758669376373, -0.041656993329524994, -0.05586741864681244, -0.02204144187271595, -0.03484170883893967, 0.04157981276512146, 5.911504841043887e-35, 0.0761817991733551, 0.029743026942014694, -0.05424440652132034, 0.011248443275690079, 0.08811786025762558, -0.08424060046672821, 0.007828585803508759, 0.01927182637155056, -0.0855337381362915, 0.06854087859392166, 0.012165787629783154, 0.015410182997584343, -0.0751381665468216, 0.02078154869377613, -0.011247930116951466, -0.014415696263313293, -0.0016856174916028976, -0.04349615052342415, 0.036926329135894775, 0.005511122290045023, 0.01900390349328518, 0.0032086551655083895, 0.01715019904077053, -0.015157107263803482, 0.045122697949409485, 0.0495176799595356, 0.036892227828502655, 0.04103045538067818, -0.004236134234815836, 0.027757126837968826, 0.039768680930137634, -0.006491789128631353, -0.02278667874634266, 0.031723976135253906, -0.09046867489814758, -0.009415000677108765, -0.012759853154420853, -0.03289763629436493, -0.044194839894771576, -0.017114093527197838, -0.02766304835677147, -0.04013875871896744, -0.014787107706069946, 0.038248393684625626, 0.046162836253643036, -0.039300888776779175, -0.05161362886428833, -0.029317747801542282, 0.07554659247398376, -0.01993454247713089, -0.01560892816632986, 0.03728601709008217, 0.02324722707271576, 0.05492396652698517, -0.02535228803753853, -0.02669639326632023, -0.0638696476817131, 0.008772173896431923, -0.004291569348424673, -0.009286635555326939, 0.03431917726993561, 0.01864047348499298, -0.06244643032550812, 0.016315151005983353, 0.06791910529136658, -0.0021553277038037777, 0.028698300942778587, 0.046216096729040146, 0.052778370678424835, -0.0898548886179924, -0.08727215975522995, 0.017999060451984406, 0.05212792381644249, 0.04545281082391739, -0.020230039954185486, -0.04756416752934456, -0.06562697142362595, -0.0016774910036474466, 0.054369498044252396, 0.0012307424331083894, -0.024425910785794258, -0.03588547185063362, -0.0642433688044548, 0.02715025469660759, -0.019758006557822227, 0.006378982216119766, 0.10001359134912491, -0.06174582242965698, -0.025962598621845245, 0.0640297681093216, -0.09442956745624542, 0.04682180657982826, -0.008229353465139866, -0.035724274814128876, -0.030290387570858, -4.5960179751640444e-33, 0.004749771673232317, -0.014101027511060238, -0.10387197136878967, 0.028878049924969673, 0.016091912984848022, -0.04086562991142273, 0.03723737969994545, -0.04365195333957672, 0.055549971759319305, 0.035047292709350586, -0.02964136376976967, 0.006563748698681593, -0.04150468111038208, 0.0028271093033254147, 0.07243269681930542, 0.010351534001529217, -0.02150978334248066, 0.03591029345989227, -0.044184260070323944, 0.06797529757022858, -0.007509336341172457, 0.02988296002149582, -0.13003794848918915, 0.013870066963136196, -0.0012670852011069655, 0.05946000665426254, 0.046601638197898865, -0.007148026488721371, 0.045655056834220886, -0.004078224301338196, -0.036695826798677444, -0.03428586572408676, -0.09545006603002548, 0.14016211032867432, -0.05409044772386551, -0.04762458801269531, 0.008350694552063942, 0.012139586731791496, -0.09067924320697784, -0.029800890013575554, 0.09050614386796951, -0.04404011741280556, -0.024372655898332596, 0.0011939691612496972, -0.0297248438000679, 0.025838762521743774, -0.06755955517292023, -0.0702212005853653, -0.08721394091844559, -0.04588821902871132, 0.050865836441516876, 0.0240735225379467, -0.04768388718366623, 0.001446810900233686, 0.009223561733961105, 0.08000517636537552, 0.03887711092829704, -0.11356111615896225, -0.09316611289978027, -0.09238103777170181, 0.026020873337984085, -0.01737210340797901, -0.028149181976914406, 0.04435885325074196, 0.04271942749619484, -0.01903853379189968, 0.013190769590437412, -0.013278881087899208, -0.005166599992662668, -0.0756089836359024, 0.019175274297595024, 0.03291097655892372, 0.016520017758011818, -0.14700859785079956, 0.008248706348240376, 0.014696331694722176, -0.01447305642068386, 0.010816600173711777, 0.026309404522180557, -0.007993732579052448, -0.03605753928422928, -0.07608339190483093, 0.03942345827817917, 0.0540485754609108, -0.04417218267917633, -0.0035887588746845722, -0.030654259026050568, 0.11157261580228806, 0.009047536179423332, -0.030548876151442528, -0.0003385980089660734, 0.048301223665475845, 0.0017888317815959454, 0.05369149148464203, -0.03354644030332565, -4.409444542829988e-8, 0.0019144404213875532, -0.09119196236133575, -0.07799509167671204, -0.018607845529913902, 0.011794584803283215, -0.02533636800944805, -0.04060409218072891, 0.0074391234666109085, -0.04779013991355896, -0.024241585284471512, 0.04169332608580589, 0.09845458716154099, -0.060749225318431854, 0.046237245202064514, -0.033840470016002655, -0.002772982930764556, -0.029430653899908066, 0.08657270669937134, 0.010106408968567848, -0.08681230992078781, -0.025597963482141495, 0.06794624775648117, 0.011611556634306908, -0.07902172952890396, -0.08968255668878555, 0.02886011265218258, -0.0978250727057457, 0.0632946789264679, -0.047186002135276794, 0.008435151539742947, 0.07766252011060715, -0.056749094277620316, 0.024534333497285843, -0.01190393790602684, 0.0735754519701004, 0.001450423151254654, 0.0015619666082784534, -0.0840151458978653, -0.030927302315831184, -0.0017854890320450068, 0.0865553766489029, -0.07420443743467331, -0.041210923343896866, 0.04407741129398346, 0.08288151770830154, 0.003556640585884452, 0.020449012517929077, 0.008651692420244217, 0.07225099951028824, -0.016409404575824738, -0.04886281117796898, -0.004127564374357462, 0.07545500993728638, -0.036744724959135056, 0.020798690617084503, 0.015604056417942047, 0.10665673762559891, -0.048544641584157944, 0.028571510687470436, 0.10926498472690582, 0.014224563725292683, 0.055592820048332214, 0.05372892692685127, 0.04445599019527435 ]
0.091887
- \*\*托管 hooks\*\*(`~/.openclaw/hooks/`):跨工作区共享 ### 2. 创建目录结构 ```bash mkdir -p ~/.openclaw/hooks/my-hook cd ~/.openclaw/hooks/my-hook ``` ### 3. 创建 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. 创建 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. 启用并测试 ```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 ``` ## 配置 ### 新配置格式(推荐) ```json { "hooks": { "internal": { "enabled": true, "entries": { "session-memory": { "enabled": true }, "command-logger": { "enabled": false } } } } } ``` ### 每 Hook 配置 Hooks 可以有自定义配置: ```json { "hooks": { "internal": { "enabled": true, "entries": { "my-hook": { "enabled": true, "env": { "MY\_CUSTOM\_VAR": "value" } } } } } } ``` ### 额外目录 从额外目录加载 hooks: ```json { "hooks": { "internal": { "enabled": true, "load": { "extraDirs": ["/path/to/more/hooks"] } } } } ``` ### 遗留配置格式(仍然支持) 旧配置格式仍然有效以保持向后兼容: ```json { "hooks": { "internal": { "enabled": true, "handlers": [ { "event": "command:new", "module": "./hooks/handlers/my-handler.ts", "export": "default" } ] } } } ``` \*\*迁移\*\*:对新 hooks 使用基于发现的新系统。遗留处理程序在基于目录的 hooks 之后加载。 ## CLI 命令 ### 列出 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 信息 ```bash # Show detailed info about a hook openclaw hooks info session-memory # JSON output openclaw hooks info session-memory --json ``` ### 检查资格 ```bash # Show eligibility summary openclaw hooks check # JSON output openclaw hooks check --json ``` ### 启用/禁用 ```bash # Enable a hook openclaw hooks enable session-memory # Disable a hook openclaw hooks disable command-logger ``` ## 捆绑的 Hooks ### session-memory 当你发出 `/new` 时将会话上下文保存到记忆。 \*\*事件\*\*:`command:new` \*\*要求\*\*:必须配置 `workspace.dir` \*\*输出\*\*:`/memory/YYYY-MM-DD-slug.md`(默认为 `~/.openclaw/workspace`) \*\*功能\*\*: 1. 使用预重置会话条目定位正确的记录 2. 提取最后 15 行对话 3. 使用 LLM 生成描述性文件名 slug 4. 将会话元数据保存到带日期的记忆文件 \*\*示例输出\*\*: ```markdown # Session: 2026-01-16 14:30:00 UTC - \*\*Session Key\*\*: agent:main:main - \*\*Session ID\*\*: abc123def456 - \*\*Source\*\*: telegram ``` \*\*文件名示例\*\*: - `2026-01-16-vendor-pitch.md` - `2026-01-16-api-design.md` - `2026-01-16-1430.md`(如果 slug 生成失败则回退到时间戳) \*\*启用\*\*: ```bash openclaw hooks enable session-memory ``` ### command-logger 将所有命令事件记录到集中审计文件。 \*\*事件\*\*:`command` \*\*要求\*\*:无 \*\*输出\*\*:`~/.openclaw/logs/commands.log` \*\*功能\*\*: 1. 捕获事件详情(命令操作、时间戳、会话键、发送者 ID、来源) 2. 以 JSONL 格式追加到日志文件 3. 在后台静默运行 \*\*示例日志条目\*\*: ```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"} ``` \*\*查看日志\*\*: ```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 . ``` \*\*启用\*\*: ```bash openclaw hooks enable command-logger ``` ### soul-evil 在清除窗口期间或随机机会下将注入的 `SOUL.md` 内容替换为 `SOUL\_EVIL.md`。 \*\*事件\*\*:`agent:bootstrap` \*\*文档\*\*:[SOUL Evil Hook](/hooks/soul-evil) \*\*输出\*\*:不写入文件;替换仅在内存中发生。 \*\*启用\*\*: ```bash openclaw hooks enable soul-evil ``` \*\*配置\*\*: ```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 当 Gateway 网关启动时运行 `BOOT.md`(在渠道启动之后)。 必须启用内部 hooks 才能运行。 \*\*事件\*\*:`gateway:startup` \*\*要求\*\*:必须配置 `workspace.dir` \*\*功能\*\*: 1. 从你的工作区读取 `BOOT.md` 2. 通过智能体运行器运行指令 3. 通过 message 工具发送任何请求的出站消息 \*\*启用\*\*: ```bash openclaw hooks enable boot-md ``` ## 最佳实践 ### 保持处理程序快速 Hooks 在命令处理期间运行。保持它们轻量: ```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);
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/hooks.md
main
opebclaw
[ -0.03612850233912468, -0.005210849456489086, 0.05278428643941879, 0.0739564523100853, 0.007183634210377932, -0.030852362513542175, 0.04795903339982033, -0.010233971290290356, 0.033236876130104065, -0.025959506630897522, -0.02455408126115799, -0.017610518261790276, -0.0505077987909317, 0.06930508464574814, 0.08564788848161697, 0.12365331500768661, -0.034308671951293945, 0.034643761813640594, -0.0380798801779747, -0.035418346524238586, 0.021292805671691895, -0.0021491353400051594, 0.08172384649515152, -0.02732553891837597, -0.06991365551948547, -0.06870274990797043, 0.0018751726020127535, -0.06138264015316963, 0.01535503938794136, 0.01999693550169468, 0.04460792616009712, 0.0028903225902467966, -0.029736660420894623, -0.02984895184636116, 0.07207994908094406, 0.11651413887739182, -0.019748395308852196, 0.002679059747606516, -0.01606644317507744, 0.01934942416846752, 0.06605864316225052, 0.06287602335214615, -0.008479160256683826, -0.0867232233285904, -0.01014420110732317, -0.08891604840755463, -0.035157375037670135, -0.08398506790399551, -0.10755344480276108, 0.049833994358778, -0.047087412327528, -0.026456519961357117, -0.04893428459763527, -0.0851772129535675, 0.05401263386011124, -0.05250903591513634, -0.03296852856874466, -0.09860821813344955, 0.040271855890750885, -0.04180688410997391, 0.045751020312309265, -0.017012469470500946, -0.031200656667351723, -0.02040286734700203, -0.04369331896305084, 0.046169180423021317, -0.036555852741003036, 0.019575083628296852, -0.005163118708878756, 0.04264971986413002, -0.04130175709724426, -0.006586907897144556, -0.0075376033782958984, 0.003285773331299424, -0.028319139033555984, -0.01461623515933752, 0.04974076524376869, 0.0728359967470169, -0.08800850063562393, -0.05093778297305107, -0.05213586241006851, -0.05545986071228981, 0.003691507736220956, 0.01971488445997238, 0.03362211212515831, 0.17128343880176544, -0.052103735506534576, -0.04533594846725464, 0.020089298486709595, 0.025571897625923157, -0.038846638053655624, -0.08933085203170776, 0.010629264637827873, 0.04645083099603653, -0.03155102953314781, 0.01427458506077528, 0.007764887064695358, 0.038874246180057526, -0.04254397004842758, 0.08277039229869843, 0.01927015744149685, 0.02488480880856514, -0.0017311008414253592, -0.018903823569417, -0.037745993584394455, 0.05309620872139931, -0.02384195290505886, -0.07685775309801102, -0.06976363062858582, 0.010906791314482689, 0.018005745485424995, -0.041299834847450256, 0.05804162845015526, -0.07712489366531372, -0.04357566311955452, 0.025751575827598572, 0.02910400740802288, -0.02428068406879902, 0.06559740006923676, 0.10402967035770416, 0.15384677052497864, 0.0025067368987947702, -0.04606125131249428, 0.01360556110739708, 0.050203029066324234, 0.05723223462700844, 0.024089260026812553, 4.757700243621942e-33, 0.08930402249097824, 0.03792275860905647, -0.045403677970170975, 0.03825584799051285, 0.02305329591035843, 0.01994667574763298, -0.013276400975883007, -0.005883592646569014, -0.1245880052447319, 0.09872709214687347, 0.055985551327466965, 0.014309479855000973, -0.08324440568685532, -0.04175705090165138, 0.01031513325870037, 0.010479222051799297, -0.0026074848137795925, -0.04049475118517876, 0.029802242293953896, 0.045983362942934036, -0.05410630255937576, 0.03952671214938164, -0.059675637632608414, 0.04944019019603729, -0.04513319581747055, 0.011885172687470913, -0.0013524165842682123, 0.02047833614051342, -0.05614972114562988, 0.003183218650519848, 0.09015476703643799, -0.018096253275871277, 0.002110579051077366, 0.040215350687503815, -0.017447134479880333, -0.018090082332491875, -0.04559360817074776, 0.0049770306795835495, -0.07191749662160873, -0.03930415213108063, 0.046151429414749146, 0.04297301173210144, -0.13313303887844086, 0.018282806500792503, -0.005561326630413532, -0.08454234898090363, -0.035313501954078674, 0.00009343026613350958, 0.03588046133518219, -0.06411882489919662, -0.011117265559732914, 0.06877970695495605, 0.08054178953170776, 0.013918773271143436, 0.050858817994594574, 0.04255864396691322, -0.055904973298311234, -0.009204714559018612, 0.05611986666917801, 0.018917730078101158, -0.015585101209580898, -0.0021678844932466745, 0.05410590395331383, 0.015480861067771912, -0.00620152847841382, 0.023251522332429886, 0.0927470475435257, 0.023526566103100777, -0.026132622733712196, -0.020628338679671288, -0.02532024122774601, 0.030668115243315697, -0.06000051647424698, 0.02711194008588791, 0.07662978023290634, -0.012281298637390137, -0.02933562733232975, -0.01859899051487446, 0.12060248106718063, -0.026152580976486206, 0.010971440002322197, -0.06393750756978989, -0.054134760051965714, 0.07610046863555908, 0.06313768029212952, 0.012345632538199425, -0.005579675547778606, -0.10423990339040756, 0.03427805006504059, 0.042759038507938385, -0.03122439980506897, -0.06704666465520859, -0.08533015847206116, -0.03986363112926483, -0.016448596492409706, -7.001059947821259e-33, 0.08573765307664871, 0.04105896130204201, -0.06386628746986389, 0.0018255626782774925, -0.13979919254779816, -0.04667243734002113, -0.012912781909108162, 0.004576904699206352, -0.006831787526607513, -0.004475312773138285, -0.004417894873768091, 0.014572856947779655, -0.005955003201961517, 0.008529993705451488, 0.06002971902489662, 0.003921116702258587, -0.07431503385305405, -0.03114970028400421, 0.054080814123153687, -0.005086733493953943, 0.0453326515853405, 0.010566259734332561, -0.025245189666748047, 0.0624462366104126, -0.0474151149392128, 0.040912628173828125, 0.05758734047412872, 0.025743799284100533, -0.005461669061332941, -0.05132368579506874, -0.06105107441544533, 0.04574929177761078, -0.030032353475689888, 0.0850163996219635, -0.06683861464262009, -0.03717336431145668, 0.019856546074151993, 0.03538832440972328, 0.040628980845212936, 0.018514180555939674, 0.03285140171647072, -0.0016547641716897488, -0.03627590462565422, 0.005688732024282217, -0.04773450642824173, -0.004197109956294298, -0.050473734736442566, 0.029983805492520332, -0.010052058845758438, -0.055670078843832016, -0.038599539548158646, -0.07581696659326553, -0.057016823440790176, -0.037978630512952805, -0.008578455075621605, 0.02321603149175644, 0.03478715941309929, -0.14459334313869476, -0.07855910807847977, 0.04315740242600441, -0.012359902262687683, -0.05315877124667168, 0.015519623644649982, 0.01362602785229683, 0.00024761291570030153, -0.06859645247459412, -0.002064329804852605, -0.059017375111579895, -0.00813327357172966, -0.04895712807774544, 0.016374725848436356, -0.021606024354696274, 0.016180608421564102, -0.046739161014556885, 0.029933776706457138, 0.010849080048501492, 0.031343016773462296, -0.0606260783970356, 0.065238356590271, 0.047890763729810715, -0.026952017098665237, -0.0061582960188388824, 0.03772193565964699, -0.01610366627573967, -0.017611844465136528, 0.02907635271549225, -0.04189063608646393, 0.15508177876472473, -0.006433917209506035, 0.004297178238630295, -0.025638863444328308, 0.08140520006418228, -0.0053840624168515205, 0.006057525984942913, -0.046581950038671494, -5.775512335048916e-8, -0.1460394263267517, -0.023591117933392525, -0.11325902491807938, -0.03415045887231827, -0.07996587455272675, -0.020778827369213104, -0.09065388143062592, -0.02783091925084591, -0.026490366086363792, -0.08583530783653259, 0.06986008584499359, 0.11629297584295273, -0.04874294251203537, 0.041784368455410004, -0.06418278068304062, 0.028985807672142982, -0.012910307385027409, 0.03341439738869667, -0.02288856729865074, 0.0123619195073843, -0.03376248478889465, 0.09835845232009888, 0.06411004066467285, -0.006740032695233822, -0.036877475678920746, -0.0181808490306139, -0.03985055908560753, 0.07641074806451797, -0.03780248761177063, 0.03993327170610428, 0.03400074690580368, -0.0010310231009498239, 0.040551383048295975, 0.008901598863303661, -0.04708940535783768, -0.023204084485769272, 0.029184579849243164, -0.09217781573534012, 0.10883478075265884, 0.030582932755351067, 0.1209574043750763, -0.003157078754156828, -0.1019287183880806, 0.012213594280183315, -0.06736499071121216, 0.015788765624165535, -0.015824154019355774, 0.021071752533316612, 0.04054466262459755, -0.017781173810362816, -0.03195427358150482, 0.01885870471596718, -0.03876778483390808, 0.04862843453884125, -0.033247824758291245, 0.009946945123374462, 0.058500491082668304, 0.06101176515221596, 0.0013189752353355289, 0.017677072435617447, 0.03178581967949867, -0.06126552075147629, 0.0364840142428875, -0.004952052608132362 ]
0.080158
enable boot-md ``` ## 最佳实践 ### 保持处理程序快速 Hooks 在命令处理期间运行。保持它们轻量: ```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); }; ``` ### 优雅处理错误 始终包装有风险的操作: ```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 } }; ``` ### 尽早过滤事件 如果事件不相关则尽早返回: ```typescript const handler: HookHandler = async (event) => { // Only handle 'new' commands if (event.type !== "command" || event.action !== "new") { return; } // Your logic here }; ``` ### 使用特定事件键 尽可能在元数据中指定确切事件: ```yaml metadata: { "openclaw": { "events": ["command:new"] } } # Specific ``` 而不是: ```yaml metadata: { "openclaw": { "events": ["command"] } } # General - more overhead ``` ## 调试 ### 启用 Hook 日志 Gateway 网关在启动时记录 hook 加载: ``` Registered hook: session-memory -> command:new Registered hook: command-logger -> command Registered hook: boot-md -> gateway:startup ``` ### 检查发现 列出所有发现的 hooks: ```bash openclaw hooks list --verbose ``` ### 检查注册 在你的处理程序中,记录它被调用的时间: ```typescript const handler: HookHandler = async (event) => { console.log("[my-handler] Triggered:", event.type, event.action); // Your logic }; ``` ### 验证资格 检查为什么 hook 不符合条件: ```bash openclaw hooks info my-hook ``` 在输出中查找缺失的要求。 ## 测试 ### Gateway 网关日志 监控 Gateway 网关日志以查看 hook 执行: ```bash # macOS ./scripts/clawlog.sh -f # Other platforms tail -f ~/.openclaw/gateway.log ``` ### 直接测试 Hooks 隔离测试你的处理程序: ```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 }); ``` ## 架构 ### 核心组件 - \*\*`src/hooks/types.ts`\*\*:类型定义 - \*\*`src/hooks/workspace.ts`\*\*:目录扫描和加载 - \*\*`src/hooks/frontmatter.ts`\*\*:HOOK.md 元数据解析 - \*\*`src/hooks/config.ts`\*\*:资格检查 - \*\*`src/hooks/hooks-status.ts`\*\*:状态报告 - \*\*`src/hooks/loader.ts`\*\*:动态模块加载器 - \*\*`src/cli/hooks-cli.ts`\*\*:CLI 命令 - \*\*`src/gateway/server-startup.ts`\*\*:在 Gateway 网关启动时加载 hooks - \*\*`src/auto-reply/reply/commands-core.ts`\*\*:触发命令事件 ### 发现流程 ``` Gateway 网关启动 ↓ 扫描目录(工作区 → 托管 → 捆绑) ↓ 解析 HOOK.md 文件 ↓ 检查资格(bins、env、config、os) ↓ 从符合条件的 hooks 加载处理程序 ↓ 为事件注册处理程序 ``` ### 事件流程 ``` 用户发送 /new ↓ 命令验证 ↓ 创建 hook 事件 ↓ 触发 hook(所有注册的处理程序) ↓ 命令处理继续 ↓ 会话重置 ``` ## 故障排除 ### Hook 未被发现 1. 检查目录结构: ```bash ls -la ~/.openclaw/hooks/my-hook/ # Should show: HOOK.md, handler.ts ``` 2. 验证 HOOK.md 格式: ```bash cat ~/.openclaw/hooks/my-hook/HOOK.md # Should have YAML frontmatter with name and metadata ``` 3. 列出所有发现的 hooks: ```bash openclaw hooks list ``` ### Hook 不符合条件 检查要求: ```bash openclaw hooks info my-hook ``` 查找缺失的: - 二进制文件(检查 PATH) - 环境变量 - 配置值 - 操作系统兼容性 ### Hook 未执行 1. 验证 hook 已启用: ```bash openclaw hooks list # Should show ✓ next to enabled hooks ``` 2. 重启你的 Gateway 网关进程以重新加载 hooks。 3. 检查 Gateway 网关日志中的错误: ```bash ./scripts/clawlog.sh | grep hook ``` ### 处理程序错误 检查 TypeScript/import 错误: ```bash # Test import directly node -e "import('./path/to/handler.ts').then(console.log)" ``` ## 迁移指南 ### 从遗留配置到发现 \*\*之前\*\*: ```json { "hooks": { "internal": { "enabled": true, "handlers": [ { "event": "command:new", "module": "./hooks/handlers/my-handler.ts" } ] } } } ``` \*\*之后\*\*: 1. 创建 hook 目录: ```bash mkdir -p ~/.openclaw/hooks/my-hook mv ./hooks/handlers/my-handler.ts ~/.openclaw/hooks/my-hook/handler.ts ``` 2. 创建 HOOK.md: ```markdown --- name: my-hook description: "My custom hook" metadata: { "openclaw": { "emoji": "🎯", "events": ["command:new"] } } --- # My Hook Does something useful. ``` 3. 更新配置: ```json { "hooks": { "internal": { "enabled": true, "entries": { "my-hook": { "enabled": true } } } } } ``` 4. 验证并重启你的 Gateway 网关进程: ```bash openclaw hooks list # Should show: 🎯 my-hook ✓ ``` \*\*迁移的好处\*\*: - 自动发现 - CLI 管理 - 资格检查 - 更好的文档 - 一致的结构 ## 另请参阅 - [CLI 参考:hooks](/cli/hooks)
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/hooks.md
main
opebclaw
[ -0.04390716552734375, 0.006737337913364172, -0.00213052099570632, 0.09392982721328735, 0.025534717366099358, 0.00765186408534646, 0.00028896346339024603, 0.03606299310922623, -0.020117703825235367, 0.011589381843805313, -0.013644459657371044, 0.014843891374766827, -0.06581303477287292, 0.01240016520023346, -0.012031902559101582, 0.005676313303411007, 0.03165154531598091, -0.013408102095127106, -0.041718777269124985, -0.028550375252962112, -0.03193902596831322, -0.0769486352801323, 0.07052379101514816, 0.03390871733427048, -0.07872889190912247, -0.05053425207734108, -0.068618044257164, -0.06484445184469223, 0.07266750931739807, -0.028005296364426613, -0.029294023290276527, -0.04711654409766197, -0.08055353909730911, -0.01942593976855278, 0.02520613744854927, 0.11266232281923294, -0.02144576981663704, -0.014757894910871983, 0.016167137771844864, 0.005633266642689705, 0.06721893697977066, 0.062045369297266006, -0.054765474051237106, 0.0025139153003692627, 0.028175605461001396, -0.11191434413194656, -0.0415533185005188, -0.038514021784067154, -0.05885475128889084, 0.0033604525960981846, 0.005944777745753527, 0.1033039391040802, -0.04158065468072891, -0.0007066032849252224, 0.07544048875570297, 0.0011854023905470967, 0.026081770658493042, 0.005505465902388096, -0.023339973762631416, 0.02659608982503414, -0.01586092822253704, -0.017897380515933037, -0.0006692510796710849, -0.032768309116363525, 0.010225821286439896, 0.08337502926588058, 0.027752289548516273, -0.010254324413836002, 0.07004878669977188, 0.03526072949171066, -0.02490605041384697, -0.025560744106769562, -0.04457313194870949, 0.09472578018903732, -0.09070876240730286, -0.040438637137413025, 0.019037792459130287, 0.007023510988801718, -0.09520423412322998, -0.06010965257883072, -0.051558881998062134, -0.08678577095270157, -0.0009522784384898841, 0.0174988005310297, 0.0207970067858696, 0.13375195860862732, -0.016017736867070198, -0.062181949615478516, 0.08041788637638092, -0.01646805740892887, 0.015447583049535751, 0.03390566259622574, 0.0072952029295265675, 0.06080707907676697, 0.03527364134788513, 0.012593058869242668, 0.006069420836865902, 0.03506581857800484, -0.07894571870565414, 0.0239981971681118, 0.024879565462470055, 0.04368617758154869, -0.046358175575733185, 0.01853712648153305, -0.007480260916054249, -0.047931279987096786, 0.023244524374604225, -0.11403597146272659, -0.10772446542978287, -0.021759033203125, 0.0028607933782041073, 0.061067476868629456, -0.007695888169109821, 0.03026680275797844, -0.06133626401424408, 0.01764063723385334, 0.013921348378062248, -0.023626428097486496, 0.02348463051021099, 0.04046282544732094, 0.1083039790391922, 0.027943311259150505, 0.013728415593504906, -0.027941428124904633, 0.037605807185173035, -0.06647531688213348, 0.07539235800504684, 9.324925586688548e-33, 0.031187009066343307, -0.04902482405304909, 0.013891244307160378, 0.008580440655350685, 0.02600790560245514, 0.024486439302563667, 0.029964840039610863, -0.02649959735572338, -0.043903835117816925, 0.08584853261709213, -0.007045105565339327, -0.09922251105308533, -0.04982733726501465, -0.11154960840940475, 0.03017423488199711, -0.0338694266974926, 0.06151556223630905, -0.07333990931510925, 0.003615334862843156, 0.06824325025081635, 0.03991711884737015, -0.009866003878414631, -0.052882175892591476, 0.029039746150374413, 0.028063377365469933, -0.028355922549962997, -0.02635330520570278, 0.05063208192586899, 0.06106206402182579, 0.01977727562189102, -0.015550564974546432, 0.020754588767886162, -0.05765694007277489, 0.0033905250020325184, 0.0029807165265083313, -0.0908142551779747, -0.023829476907849312, -0.005847176071256399, -0.05585280805826187, -0.053076572716236115, -0.05883106589317322, 0.027294937521219254, -0.07437148690223694, 0.008142073638737202, -0.018306914716959, -0.08785965293645859, -0.017946187406778336, -0.059105344116687775, 0.07020830363035202, -0.060582805424928665, 0.05574348568916321, 0.0393015556037426, 0.05758252739906311, -0.006059833336621523, 0.07083548605442047, 0.016611918807029724, 0.039924316108226776, -0.008287046104669571, 0.032729584723711014, 0.09682327508926392, 0.014110320247709751, -0.1441909372806549, -0.011001366190612316, 0.0024489585775882006, 0.04096434637904167, -0.06574541330337524, -0.04356391727924347, -0.06473478674888611, -0.05080617591738701, -0.03585377708077431, -0.035767268389463425, -0.003167015966027975, 0.036463651806116104, 0.025011200457811356, 0.03211576119065285, 0.023707713931798935, -0.05184706673026085, -0.011472259648144245, -0.04958556964993477, -0.08974132686853409, 0.04419241473078728, -0.08917825669050217, -0.0583096407353878, 0.0836930125951767, 0.07646600157022476, 0.064293771982193, -0.04682745411992073, -0.04003633186221123, 0.04983009397983551, 0.0931515172123909, -0.07807102054357529, -0.05546841770410538, 0.06980262696743011, -0.06339429318904877, -0.04708852618932724, -1.0763965770965193e-32, 0.07675435394048691, -0.03723445534706116, -0.07491569966077805, -0.0020461701788008213, -0.012994784861803055, -0.01243968028575182, 0.007737391162663698, -0.006809126120060682, -0.04118494689464569, -0.000742447329685092, -0.025362227112054825, 0.026181399822235107, -0.009376994334161282, 0.096598781645298, -0.0006480689044110477, 0.06636608392000198, 0.031760379672050476, 0.013256526552140713, -0.010624179616570473, 0.02536955662071705, 0.05648237094283104, 0.008686385117471218, -0.02837585285305977, 0.08782689273357391, -0.08165273070335388, 0.054061174392700195, 0.012935472652316093, 0.0873585045337677, -0.050617530941963196, -0.01338670589029789, -0.040872495621442795, -0.007365681231021881, -0.03347551450133324, 0.058265939354896545, -0.007275128737092018, -0.03709978982806206, 0.03553292155265808, 0.02777167409658432, -0.07253484427928925, -0.07028249651193619, 0.07482325285673141, 0.015177558176219463, -0.04212680831551552, -0.051543090492486954, 0.01195949874818325, -0.04028933495283127, -0.06459028273820877, -0.05593589320778847, -0.03616725280880928, 0.05317099392414093, 0.011522500775754452, -0.040540702641010284, -0.010708221234381199, 0.0510401651263237, 0.012014872394502163, -0.062031496316194534, 0.009488914161920547, -0.1740752011537552, -0.0020141340792179108, 0.045112062245607376, -0.00021782716794405133, -0.06768172979354858, 0.05423199385404587, -0.04838957265019417, 0.04052187502384186, -0.05618886277079582, -0.0483119934797287, -0.009459033608436584, 0.07086137682199478, 0.08105381578207016, 0.036212436854839325, 0.04941204562783241, -0.055981673300266266, 0.05591598153114319, -0.00799649953842163, -0.012537607923150063, 0.004466188605874777, -0.09338212013244629, 0.10211669653654099, 0.09385453164577484, 0.01204599253833294, 0.006821416784077883, 0.011642280966043472, 0.004150743130594492, -0.05054722726345062, 0.03957298398017883, 0.005988484248518944, 0.045786842703819275, 0.01714937947690487, -0.020919619128108025, 0.023550888523459435, -0.034472860395908356, -0.01984003186225891, 0.047129735350608826, 0.017973696812987328, -6.559076837220346e-8, -0.06562718003988266, -0.0370461605489254, -0.0321664996445179, -0.006597586441785097, 0.045708008110523224, -0.09785683453083038, -0.08417368680238724, -0.07233498245477676, 0.02157353051006794, -0.11013711243867874, -0.004953018855303526, 0.02008860930800438, 0.04814818128943443, 0.0147250322625041, 0.016515031456947327, 0.013074657879769802, -0.01940937526524067, 0.04029727354645729, -0.02223372831940651, -0.07523740082979202, -0.021762829273939133, 0.03197965398430824, -0.028708022087812424, 0.01566157676279545, -0.01675335317850113, 0.037227701395750046, 0.0935172289609909, 0.03158745914697647, 0.01719578541815281, 0.0003199542115908116, -0.07610955089330673, -0.029080761596560478, 0.06147909164428711, -0.018368294462561607, -0.05095374584197998, 0.0535760335624218, 0.14072172343730927, -0.07759300619363785, 0.09872076660394669, -0.00982668437063694, 0.13272511959075928, 0.08661770075559616, -0.02288896031677723, 0.016872961074113846, 0.003922689706087112, -0.011988606303930283, -0.03470774367451668, 0.06178289279341698, 0.06114004924893379, 0.022850314155220985, -0.01818721741437912, -0.007595260161906481, -0.062243733555078506, 0.09004106372594833, -0.020567167550325394, -0.06610116362571716, -0.024900248274207115, -0.07114970684051514, -0.010708816349506378, 0.05327821522951126, 0.04402855783700943, -0.08392956107854843, 0.06788955628871918, -0.035986676812171936 ]
0.058391
"hooks": { "internal": { "enabled": true, "entries": { "my-hook": { "enabled": true } } } } } ``` 4. 验证并重启你的 Gateway 网关进程: ```bash openclaw hooks list # Should show: 🎯 my-hook ✓ ``` \*\*迁移的好处\*\*: - 自动发现 - CLI 管理 - 资格检查 - 更好的文档 - 一致的结构 ## 另请参阅 - [CLI 参考:hooks](/cli/hooks) - [捆绑 Hooks README](https://github.com/openclaw/openclaw/tree/main/src/hooks/bundled) - [Webhook Hooks](/automation/webhook) - [配置](/gateway/configuration#hooks)
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/hooks.md
main
opebclaw
[ -0.0264874417334795, 0.05255836620926857, -0.06377983093261719, 0.006628730800002813, 0.018748974427580833, -0.06543167680501938, 0.06563160568475723, -0.046001020818948746, -0.03523663431406021, -0.07732517272233963, 0.06811553239822388, -0.09188373386859894, 0.027502350509166718, -0.01720174215734005, 0.10054749995470047, 0.12003523111343384, -0.04535472393035889, -0.031132133677601814, 0.02479492872953415, -0.06982026994228363, -0.013094435445964336, -0.02200157567858696, 0.03246889263391495, -0.033677127212285995, -0.09159888327121735, -0.08647464215755463, 0.00573151046410203, 0.011973240412771702, -0.056552954018116, -0.015330137684941292, 0.02188529446721077, 0.03302694112062454, -0.016231250017881393, 0.035266391932964325, 0.06741797924041748, 0.06593075394630432, 0.07338495552539825, -0.023944241926074028, -0.06493010371923447, 0.021370461210608482, 0.11605455726385117, -0.02290697954595089, 0.039819568395614624, -0.11100803315639496, -0.03243182972073555, -0.05004223808646202, -0.09543154388666153, -0.09409461915493011, -0.07452601194381714, 0.025437558069825172, -0.0412936694920063, -0.041869934648275375, -0.047467153519392014, 0.013680237345397472, 0.044831063598394394, 0.00525654898956418, 0.018956566229462624, 0.0027312019374221563, 0.027239220216870308, -0.04294354096055031, 0.039577048271894455, 0.015066388063132763, 0.011496622115373611, 0.07229972630739212, -0.08533553034067154, 0.03809548169374466, -0.014919951558113098, 0.016751226037740707, 0.0027866919990628958, -0.006456667557358742, -0.05944465845823288, -0.008611820638179779, -0.051195088773965836, -0.0553506538271904, -0.0026100357063114643, -0.02100900560617447, 0.07071232050657272, 0.029541656374931335, -0.05638963356614113, -0.1018633171916008, -0.10658856481313705, 0.014811910688877106, 0.010961252264678478, 0.05051148310303688, -0.03196199610829353, 0.1526440978050232, -0.07027114927768707, -0.03646122291684151, 0.03511263057589531, 0.027218008413910866, 0.009092804044485092, -0.09827831387519836, -0.08386047929525375, 0.0019484602380543947, -0.04526658356189728, 0.002549591939896345, 0.014104320667684078, -0.011651497334241867, -0.0973130390048027, 0.07207096368074417, -0.01472444273531437, 0.004237806424498558, 0.05487940460443497, 0.0225321426987648, -0.012996851466596127, 0.00394173339009285, 0.03080061264336109, -0.0065376595593988895, -0.019939251244068146, -0.029524754732847214, -0.01798325963318348, -0.03535452112555504, 0.12440533190965652, -0.08393198251724243, -0.04515926167368889, 0.06614594906568527, 0.04706908017396927, 0.018827464431524277, 0.034879039973020554, 0.02328835427761078, 0.09049898386001587, 0.07683447748422623, -0.02664950303733349, -0.045191120356321335, 0.05154815688729286, 0.02668738178908825, 0.02667524665594101, 9.612472810734789e-34, 0.07248663157224655, -0.012039459310472012, -0.013637913390994072, 0.012876858003437519, 0.06698857247829437, -0.07357639819383621, 0.06676642596721649, 0.0105873579159379, -0.11767265945672989, 0.09218361973762512, 0.06540259718894958, 0.03397341072559357, -0.05619509145617485, 0.017180185765028, 0.003981402143836021, 0.03692932054400444, -0.03879908099770546, -0.019911400973796844, 0.08167099952697754, 0.01236108411103487, -0.001791139249689877, -0.0664822906255722, -0.036684054881334305, -0.02076644077897072, -0.018470656126737595, 0.04926479235291481, -0.012558874674141407, 0.07731669396162033, -0.05117619037628174, 0.041381169110536575, 0.09290619194507599, -0.030371742323040962, 0.03566942736506462, 0.01914396695792675, -0.11613453179597855, -0.0726747065782547, -0.08160362392663956, -0.041884277015924454, -0.04979228228330612, -0.04310658574104309, 0.009379014372825623, -0.03796222060918808, -0.061819955706596375, -0.03063601814210415, 0.008549009449779987, -0.06223101168870926, -0.0561184287071228, -0.03183409944176674, 0.06791651248931885, -0.022460278123617172, -0.0030848023016005754, 0.007291203830391169, 0.03757207468152046, 0.007033236790448427, -0.02438373863697052, -0.0292271189391613, -0.04171353578567505, -0.015526833012700081, -0.008355437777936459, 0.012357239611446857, -0.01666415110230446, -0.00402439758181572, -0.017741970717906952, 0.009077510796487331, 0.022386178374290466, 0.044716741889715195, 0.06382914632558823, 0.010252990759909153, -0.056790005415678024, -0.0658731535077095, -0.05443228408694267, -0.016147587448358536, -0.014947343617677689, 0.029073918238282204, -0.01657153107225895, -0.030273061245679855, -0.03070007637143135, -0.03253382444381714, 0.09299275279045105, -0.0010589967714622617, 0.09346123784780502, -0.03290801867842674, -0.012722582556307316, 0.06260889768600464, 0.04490509629249573, 0.057683467864990234, 0.07483094930648804, -0.0857301875948906, -0.021176574751734734, 0.1071949377655983, -0.0777839720249176, 0.007398675661534071, -0.02677048370242119, -0.07423394173383713, -0.018563637509942055, -5.0875652642977846e-33, 0.0705193430185318, 0.022073738276958466, -0.06374673545360565, -0.026734936982393265, -0.018221311271190643, 0.004420647397637367, 0.03469781205058098, -0.04913122206926346, 0.02245207689702511, -0.020474573597311974, 0.010361961089074612, 0.035523075610399246, 0.00643404433503747, -0.015829110518097878, 0.08708865195512772, 0.007727449294179678, -0.044252909719944, -0.05975545570254326, 0.027195747941732407, 0.022467970848083496, 0.02170509286224842, 0.04527638480067253, -0.024060208350419998, 0.02292989380657673, -0.002757792826741934, -0.039384204894304276, 0.07325732707977295, 0.03943193331360817, -0.026100367307662964, -0.05204576253890991, -0.012210214510560036, -0.006395853590220213, -0.04922107234597206, 0.13997533917427063, 0.0000018357436601945665, -0.06221699342131615, -0.031162189319729805, 0.06937124580144882, 0.03115910291671753, -0.0004794818814843893, 0.06957858055830002, -0.0498611219227314, -0.09184712171554565, -0.03136298805475235, -0.06538984924554825, 0.025550030171871185, -0.047691456973552704, -0.02859877236187458, -0.07056909799575806, 0.006407186854630709, -0.0689263567328453, 0.05152517184615135, -0.03827943280339241, 0.033696550875902176, -0.009621599689126015, 0.12375453114509583, 0.07508013397455215, -0.11060769110918045, 0.006205879617482424, -0.1173437163233757, -0.05016700550913811, -0.05902271717786789, -0.02096775360405445, 0.09417176246643066, 0.013459616340696812, -0.06436379253864288, 0.0035607563331723213, 0.010184504091739655, -0.03617445379495621, -0.0990850031375885, 0.023385364562273026, -0.015236315317451954, -0.008214361034333706, -0.07339493185281754, -0.05571580305695534, -0.02367486245930195, -0.0027527131605893373, 0.0015027285553514957, 0.030708784237504005, 0.02448032982647419, -0.014165090397000313, -0.005274576600641012, 0.08877275139093399, -0.04579852521419525, 0.002892718417569995, -0.049450263381004333, -0.03767590969800949, 0.12365265935659409, 0.05990487337112427, 0.012816676869988441, -0.036391839385032654, 0.034190233796834946, -0.03235374763607979, 0.0040652272291481495, -0.026704292744398117, -4.750961579702562e-8, -0.09332278370857239, -0.043112773448228836, -0.0649837851524353, -0.005404392257332802, -0.04507555812597275, -0.01221013255417347, -0.007379135582596064, 0.03754907846450806, -0.08225636929273605, -0.012592391110956669, 0.10055061429738998, 0.09899287670850754, -0.04205316677689552, 0.09203039854764938, -0.0698499083518982, 0.03200683742761612, -0.022036833688616753, 0.03345946595072746, 0.01053717453032732, -0.043092288076877594, -0.01714601181447506, 0.02460058405995369, 0.06428492814302444, -0.017889637500047684, -0.03878901153802872, 0.016915932297706604, -0.0839727446436882, 0.03849130868911743, -0.01905933767557144, 0.020272061228752136, 0.005794242024421692, -0.06275211274623871, -0.0067527866922318935, 0.00808139331638813, 0.005220811814069748, 0.0443098209798336, -0.041721172630786896, -0.03031287156045437, 0.03932231292128563, 0.010119001381099224, 0.07278632372617722, -0.03820335119962692, -0.048261288553476334, -0.012236152775585651, 0.013721911236643791, 0.0440039187669754, -0.008206747472286224, -0.0005677127046510577, 0.04819794371724129, 0.023060303181409836, -0.046509210020303726, 0.007338313385844231, 0.08188339322805405, 0.015104702673852444, -0.008989732712507248, 0.05324077978730202, 0.08165604621171951, -0.05245999991893768, 0.018232524394989014, 0.09355273842811584, 0.010170848108828068, 0.03717174753546715, 0.07993093878030777, -0.018582632765173912 ]
0.052581
# 文本转语音(TTS) OpenClaw 可以使用 ElevenLabs、OpenAI 或 Edge TTS 将出站回复转换为音频。它可以在任何 OpenClaw 能发送音频的地方工作;Telegram 会显示圆形语音消息气泡。 ## 支持的服务 - \*\*ElevenLabs\*\*(主要或备用提供商) - \*\*OpenAI\*\*(主要或备用提供商;也用于摘要) - \*\*Edge TTS\*\*(主要或备用提供商;使用 `node-edge-tts`,无 API 密钥时为默认) ### Edge TTS 注意事项 Edge TTS 通过 `node-edge-tts` 库使用 Microsoft Edge 的在线神经网络 TTS 服务。它是托管服务(非本地),使用 Microsoft 的端点,不需要 API 密钥。`node-edge-tts` 公开了语音配置选项和输出格式,但并非所有选项都被 Edge 服务支持。citeturn2search0 由于 Edge TTS 是一个没有公布 SLA 或配额的公共 Web 服务,请将其视为尽力而为。如果你需要有保证的限制和支持,请使用 OpenAI 或 ElevenLabs。Microsoft 的语音 REST API 记录了每个请求 10 分钟的音频限制;Edge TTS 没有公布限制,所以假设类似或更低的限制。citeturn0search3 ## 可选密钥 如果你想使用 OpenAI 或 ElevenLabs: - `ELEVENLABS\_API\_KEY`(或 `XI\_API\_KEY`) - `OPENAI\_API\_KEY` Edge TTS \*\*不\*\*需要 API 密钥。如果没有找到 API 密钥,OpenClaw 默认使用 Edge TTS(除非通过 `messages.tts.edge.enabled=false` 禁用)。 如果配置了多个提供商,首先使用选定的提供商,其他作为备用选项。自动摘要使用配置的 `summaryModel`(或 `agents.defaults.model.primary`),所以如果你启用摘要,该提供商也必须经过认证。 ## 服务链接 - [OpenAI 文本转语音指南](https://platform.openai.com/docs/guides/text-to-speech) - [OpenAI 音频 API 参考](https://platform.openai.com/docs/api-reference/audio) - [ElevenLabs 文本转语音](https://elevenlabs.io/docs/api-reference/text-to-speech) - [ElevenLabs 认证](https://elevenlabs.io/docs/api-reference/authentication) - [node-edge-tts](https://github.com/SchneeHertz/node-edge-tts) - [Microsoft 语音输出格式](https://learn.microsoft.com/azure/ai-services/speech-service/rest-text-to-speech#audio-outputs) ## 默认启用吗? 不是。自动 TTS 默认\*\*关闭\*\*。在配置中使用 `messages.tts.auto` 或在每个会话中使用 `/tts always`(别名:`/tts on`)启用它。 一旦 TTS 开启,Edge TTS \*\*是\*\*默认启用的,并在没有 OpenAI 或 ElevenLabs API 密钥时自动使用。 ## 配置 TTS 配置位于 `openclaw.json` 中的 `messages.tts` 下。完整 schema 在 [Gateway 网关配置](/gateway/configuration)中。 ### 最小配置(启用 + 提供商) ```json5 { messages: { tts: { auto: "always", provider: "elevenlabs", }, }, } ``` ### OpenAI 主要,ElevenLabs 备用 ```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 主要(无 API 密钥) ```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%", }, }, }, } ``` ### 禁用 Edge TTS ```json5 { messages: { tts: { edge: { enabled: false, }, }, }, } ``` ### 自定义限制 + 偏好路径 ```json5 { messages: { tts: { auto: "always", maxTextLength: 4000, timeoutMs: 30000, prefsPath: "~/.openclaw/settings/tts.json", }, }, } ``` ### 仅在收到语音消息后用音频回复 ```json5 { messages: { tts: { auto: "inbound", }, }, } ``` ### 禁用长回复的自动摘要 ```json5 { messages: { tts: { auto: "always", }, }, } ``` 然后运行: ``` /tts summary off ``` ### 字段说明 - `auto`:自动 TTS 模式(`off`、`always`、`inbound`、`tagged`)。 - `inbound` 仅在收到语音消息后发送音频。 - `tagged` 仅在回复包含 `[[tts]]` 标签时发送音频。 - `enabled`:旧版开关(doctor 将其迁移到 `auto`)。 - `mode`:`"final"`(默认)或 `"all"`(包括工具/分块回复)。 - `provider`:`"elevenlabs"`、`"openai"` 或 `"edge"`(自动备用)。 - 如果 `provider` \*\*未设置\*\*,OpenClaw 优先选择 `openai`(如果有密钥),然后是 `elevenlabs`(如果有密钥),否则是 `edge`。 - `summaryModel`:用于自动摘要的可选廉价模型;默认为 `agents.defaults.model.primary`。 - 接受 `provider/model` 或配置的模型别名。 - `modelOverrides`:允许模型发出 TTS 指令(默认开启)。 - `maxTextLength`:TTS 输入的硬性上限(字符)。超出时 `/tts audio` 会失败。 - `timeoutMs`:请求超时(毫秒)。 - `prefsPath`:覆盖本地偏好 JSON 路径(提供商/限制/摘要)。 - `apiKey` 值回退到环境变量(`ELEVENLABS\_API\_KEY`/`XI\_API\_KEY`、`OPENAI\_API\_KEY`)。 - `elevenlabs.baseUrl`:覆盖 ElevenLabs API 基础 URL。 - `elevenlabs.voiceSettings`: - `stability`、`similarityBoost`、`style`:`0..1` - `useSpeakerBoost`:`true|false` - `speed`:`0.5..2.0`(1.0 = 正常) - `elevenlabs.applyTextNormalization`:`auto|on|off` - `elevenlabs.languageCode`:2 字母 ISO 639-1(例如 `en`、`de`) - `elevenlabs.seed`:整数 `0..4294967295`(尽力确定性) - `edge.enabled`:允许 Edge TTS 使用(默认 `true`;无 API 密钥)。 - `edge.voice`:Edge 神经网络语音名称(例如 `en-US-MichelleNeural`)。 - `edge.lang`:语言代码(例如 `en-US`)。 - `edge.outputFormat`:Edge 输出格式(例如 `audio-24khz-48kbitrate-mono-mp3`)。 - 有效值参见 Microsoft 语音输出格式;并非所有格式都被 Edge 支持。 - `edge.rate` / `edge.pitch` / `edge.volume`:百分比字符串(例如 `+10%`、`-5%`)。 - `edge.saveSubtitles`:在音频文件旁边写入 JSON 字幕。 - `edge.proxy`:Edge TTS 请求的代理 URL。 - `edge.timeoutMs`:请求超时覆盖(毫秒)。 ## 模型驱动覆盖(默认开启) 默认情况下,模型\*\*可以\*\*为单个回复发出 TTS 指令。当 `messages.tts.auto` 为 `tagged` 时,需要这些指令来触发音频。 启用后,模型可以发出 `[[tts:...]]` 指令来覆盖单个回复的语音,加上可选的 `[[tts:text]]...[[/tts:text]]` 块来提供表达性标签(笑声、唱歌提示等),这些仅应出现在音频中。 示例回复负载: ``` Here you go. [[tts:provider=elevenlabs voiceId=pMsXgVXv3BLzUgSXRplE model=eleven\_v3 speed=1.1]] [[tts:text]](laughs) Read the song once more.[[/tts:text]] ``` 可用指令键(启用时): - `provider`(`openai` | `elevenlabs` | `edge`) - `voice`(OpenAI 语音)或 `voiceId`(ElevenLabs) - `model`(OpenAI TTS 模型或 ElevenLabs 模型 ID) - `stability`、`similarityBoost`、`style`、`speed`、`useSpeakerBoost` - `applyTextNormalization`(`auto|on|off`) - `languageCode`(ISO 639-1) - `seed` 禁用所有模型覆盖: ```json5 { messages: { tts: { modelOverrides: { enabled: false, }, }, }, } ``` 可选白名单(禁用特定覆盖同时保持标签启用): ```json5 { messages: { tts: { modelOverrides: { enabled: true, allowProvider: false, allowSeed: false, }, }, }, } ``` ## 单用户偏好 斜杠命令将本地覆盖写入 `prefsPath`(默认:`~/.openclaw/settings/tts.json`,可通过 `OPENCLAW\_TTS\_PREFS` 或 `messages.tts.prefsPath` 覆盖)。 存储的字段: - `enabled` - `provider` - `maxLength`(摘要阈值;默认 1500 字符) - `summarize`(默认 `true`) 这些为该主机覆盖 `messages.tts.\*`。 ## 输出格式(固定) - \*\*Telegram\*\*:Opus 语音消息(ElevenLabs 的 `opus\_48000\_64`,OpenAI 的 `opus`)。 - 48kHz / 64kbps 是语音消息的良好权衡,圆形气泡所必需。 - \*\*其他渠道\*\*:MP3(ElevenLabs 的 `mp3\_44100\_128`,OpenAI 的 `mp3`)。 -
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/tts.md
main
opebclaw
[ -0.03556264936923981, 0.029085155576467514, -0.021408310160040855, -0.05271882191300392, -0.009998331777751446, -0.06837328523397446, 0.028982732445001602, 0.03384968638420105, 0.008526123128831387, -0.012517232447862625, 0.13033655285835266, -0.04089898616075516, 0.06205200031399727, -0.030271954834461212, 0.03728196397423744, 0.08339875191450119, -0.048248130828142166, 0.053154077380895615, -0.009182115085422993, 0.003701180685311556, -0.018000511452555656, -0.02808857150375843, -0.006732689682394266, -0.02491150051355362, 0.018177460879087448, 0.07410948723554611, -0.07173608243465424, 0.05826059728860855, 0.07341602444648743, -0.05215572565793991, -0.008393222466111183, 0.09393627196550369, 0.018360141664743423, 0.04509443789720535, 0.07916156202554703, 0.06053555756807327, -0.05410493537783623, -0.03241187334060669, -0.03317121043801308, 0.07355400174856186, -0.008687890134751797, 0.0010996551718562841, 0.011430257931351662, -0.05335214361548424, 0.048093754798173904, 0.010155529715120792, -0.1071000024676323, -0.00309292902238667, -0.08872475475072861, -0.07952070981264114, -0.0756036788225174, -0.0512557327747345, -0.02821083925664425, -0.007397654466331005, 0.003194493940100074, 0.020291324704885483, -0.03956719487905502, -0.007175074424594641, 0.04951398819684982, 0.055261701345443726, 0.038234248757362366, 0.003820862388238311, -0.011108369566500187, 0.0025403331965208054, -0.06650931388139725, 0.05685161426663399, -0.020869698375463486, 0.003747091628611088, -0.06341230869293213, 0.021323245018720627, 0.045236214995384216, 0.028221026062965393, -0.053126316517591476, 0.01225847378373146, -0.023859571665525436, 0.02882787585258484, 0.06922885775566101, 0.04260265454649925, -0.1018768921494484, -0.07589659839868546, -0.04469915106892586, 0.013535642996430397, 0.03883575648069382, -0.004092823714017868, -0.07280493527650833, 0.1460999846458435, -0.07949729263782501, -0.01966915838420391, 0.04542236775159836, 0.022156165912747383, -0.009674876928329468, 0.01467891689389944, -0.04678975045681, 0.005942338611930609, 0.04671729356050491, -0.032020170241594315, 0.05127118527889252, 0.00900290533900261, -0.04312370717525482, 0.03998773172497749, 0.0037449062801897526, -0.09071937203407288, -0.06419512629508972, -0.02081531658768654, -0.0893489345908165, 0.006425850093364716, -0.054661065340042114, 0.0359184592962265, 0.0718023031949997, 0.013277308084070683, 0.02148519828915596, -0.061098307371139526, -0.013749152421951294, -0.10184220224618912, -0.11298017203807831, -0.05208137631416321, -0.02382291667163372, -0.06589138507843018, 0.12440887093544006, 0.03409736230969429, 0.03364497050642967, 0.009097947739064693, -0.13085806369781494, -0.01740942895412445, -0.07288961857557297, -0.04454001411795616, 0.09422820061445236, -2.444079038022069e-33, 0.007331844884902239, 0.05534974858164787, -0.022288355976343155, -0.0956101194024086, 0.07155241072177887, -0.01582767255604267, -0.07637035101652145, -0.07653038948774338, -0.03565533086657524, 0.008068607188761234, -0.10007552802562714, 0.013381067663431168, -0.10120822489261627, 0.037524253129959106, 0.025491371750831604, -0.10404656827449799, 0.06123107671737671, -0.007533180993050337, 0.01319277286529541, -0.08735194802284241, 0.03565779700875282, 0.019863566383719444, -0.014263590797781944, 0.002995647257193923, -0.08822451531887054, 0.06434758007526398, 0.013863902539014816, -0.06466642022132874, 0.011205862276256084, 0.01978808268904686, -0.013283687643706799, -0.01916751265525818, -0.0056602200493216515, 0.04041404649615288, -0.08317408710718155, 0.016152089461684227, 0.005700055509805679, -0.0056073591113090515, -0.007575217168778181, -0.06047689542174339, -0.06122632324695587, 0.07873520255088806, 0.04142969846725464, 0.019940868020057678, 0.02471310831606388, -0.07559751719236374, -0.07207202911376953, -0.023683516308665276, 0.04841127246618271, -0.042664576321840286, -0.0896008312702179, 0.044678304344415665, -0.011402303352952003, 0.04588174447417259, 0.020300477743148804, -0.09291792660951614, 0.018990766257047653, 0.03234656900167465, -0.02871035411953926, 0.08447921276092529, 0.014312042854726315, -0.05788638815283775, 0.048104822635650635, -0.021740159019827843, 0.06578437238931656, 0.09099729359149933, -0.002686199266463518, -0.010057809762656689, 0.004520022310316563, -0.032023295760154724, -0.1298966407775879, 0.04183970019221306, 0.04891103133559227, 0.05025506764650345, -0.028079966083168983, -0.024251919239759445, -0.054934170097112656, -0.02369421347975731, 0.04108717292547226, -0.06924565136432648, -0.08297191560268402, -0.04527120292186737, -0.03446197882294655, -0.0483381450176239, -0.0057325479574501514, 0.033637285232543945, 0.038331709802150726, -0.01250152662396431, 0.010068065486848354, 0.07896644622087479, -0.10859409719705582, 0.003493729280307889, -0.017121046781539917, 0.005757555365562439, -0.03907286748290062, -2.6766390240597427e-33, -0.1151682436466217, 0.07999704033136368, -0.007892982102930546, 0.016940316185355186, -0.028463909402489662, -0.03232381120324135, 0.039829835295677185, 0.03629732504487038, -0.014691746793687344, 0.06519446521997452, 0.015209075063467026, 0.03104020282626152, -0.0064703794196248055, -0.02503344602882862, -0.034630853682756424, -0.02464677207171917, 0.00631443178281188, 0.07790983468294144, -0.032476942986249924, 0.011405759491026402, -0.031789448112249374, 0.030218036845326424, -0.13439854979515076, 0.012504537589848042, 0.03500376641750336, 0.05846656486392021, 0.022536173462867737, -0.031054407358169556, 0.06428204476833344, 0.020662058144807816, 0.011385933496057987, -0.02910139411687851, -0.074691042304039, 0.11801555007696152, 0.029808254912495613, -0.0066442545503377914, 0.035276759415864944, -0.012597830966114998, -0.026560239493846893, -0.0033526611514389515, 0.03895154595375061, -0.05368974804878235, -0.034274499863386154, -0.026803620159626007, -0.02837320975959301, 0.06843894720077515, -0.07773961871862411, 0.020065998658537865, -0.12105300277471542, -0.03269832208752632, 0.0565924234688282, 0.030510202050209045, 0.026384390890598297, -0.007328581064939499, -0.018100006505846977, -0.027723243460059166, -0.015128540806472301, -0.01115940511226654, -0.07972721755504608, -0.09435795992612839, 0.0670665055513382, 0.002381503116339445, -0.0033551875967532396, -0.0029306765645742416, 0.022105298936367035, 0.03611203655600548, 0.032598793506622314, -0.0171375572681427, -0.027610383927822113, -0.08929697424173355, -0.02478010393679142, 0.07177355140447617, -0.004285572562366724, -0.06930893659591675, 0.011794050224125385, -0.018821800127625465, -0.045979708433151245, 0.03060353361070156, -0.008734924718737602, 0.0318780392408371, -0.036583706736564636, 0.02493610419332981, 0.040789894759655, 0.06762910634279251, 0.03288325294852257, -0.046182140707969666, 0.03889269381761551, 0.09733438491821289, -0.0038940638769418, 0.02886006608605385, -0.01340281032025814, 0.06803936511278152, 0.007816573604941368, 0.08440381288528442, 0.023452097550034523, -4.2745838868540886e-8, -0.08106127381324768, -0.09400133788585663, -0.0986509770154953, -0.05570026487112045, -0.013703829608857632, -0.02612774819135666, 0.024777831509709358, -0.017951110377907753, -0.026296380907297134, -0.05828030779957771, 0.0396464467048645, -0.021486857905983925, -0.13891063630580902, -0.03203926980495453, -0.03032062016427517, 0.028307555243372917, -0.04479110985994339, 0.03146912157535553, 0.05694504827260971, -0.06617991626262665, -0.03388752043247223, 0.05113130807876587, 0.03804883733391762, -0.06475478410720825, -0.10512364655733109, -0.037955064326524734, -0.08841099590063095, 0.05359654501080513, -0.011308439075946808, 0.006554490886628628, 0.0368601456284523, -0.033208947628736496, 0.0878770649433136, 0.0171747375279665, 0.01655937172472477, 0.03804441913962364, 0.0023740509059280157, 0.028707634657621384, 0.009964966215193272, 0.06663234531879425, 0.009219558909535408, -0.06002890691161156, -0.08537033200263977, 0.04242372885346413, 0.03289476037025452, -0.0007038541371002793, 0.08601248264312744, 0.03167254850268364, 0.03739985078573227, -0.028582997620105743, 0.0021787092555314302, -0.03253664821386337, 0.01062043197453022, -0.07394954562187195, 0.012516421265900135, 0.019201863557100296, -0.00818719994276762, -0.02476458065211773, 0.0012218306073918939, 0.07585055381059647, -0.03284287080168724, 0.014340742491185665, 0.02543134242296219, 0.013015096075832844 ]
0.133919
allowSeed: false, }, }, }, } ``` ## 单用户偏好 斜杠命令将本地覆盖写入 `prefsPath`(默认:`~/.openclaw/settings/tts.json`,可通过 `OPENCLAW\_TTS\_PREFS` 或 `messages.tts.prefsPath` 覆盖)。 存储的字段: - `enabled` - `provider` - `maxLength`(摘要阈值;默认 1500 字符) - `summarize`(默认 `true`) 这些为该主机覆盖 `messages.tts.\*`。 ## 输出格式(固定) - \*\*Telegram\*\*:Opus 语音消息(ElevenLabs 的 `opus\_48000\_64`,OpenAI 的 `opus`)。 - 48kHz / 64kbps 是语音消息的良好权衡,圆形气泡所必需。 - \*\*其他渠道\*\*:MP3(ElevenLabs 的 `mp3\_44100\_128`,OpenAI 的 `mp3`)。 - 44.1kHz / 128kbps 是语音清晰度的默认平衡。 - \*\*Edge TTS\*\*:使用 `edge.outputFormat`(默认 `audio-24khz-48kbitrate-mono-mp3`)。 - `node-edge-tts` 接受 `outputFormat`,但并非所有格式都可从 Edge 服务获得。citeturn2search0 - 输出格式值遵循 Microsoft 语音输出格式(包括 Ogg/WebM Opus)。citeturn1search0 - Telegram `sendVoice` 接受 OGG/MP3/M4A;如果你需要有保证的 Opus 语音消息,请使用 OpenAI/ElevenLabs。citeturn1search1 - 如果配置的 Edge 输出格式失败,OpenClaw 会使用 MP3 重试。 OpenAI/ElevenLabs 格式是固定的;Telegram 期望 Opus 以获得语音消息用户体验。 ## 自动 TTS 行为 启用后,OpenClaw: - 如果回复已包含媒体或 `MEDIA:` 指令,则跳过 TTS。 - 跳过非常短的回复(< 10 字符)。 - 启用时使用 `agents.defaults.model.primary`(或 `summaryModel`)对长回复进行摘要。 - 将生成的音频附加到回复中。 如果回复超过 `maxLength` 且摘要关闭(或没有摘要模型的 API 密钥),则跳过音频并发送正常的文本回复。 ## 流程图 ``` 回复 -> TTS 启用? 否 -> 发送文本 是 -> 有媒体 / MEDIA: / 太短? 是 -> 发送文本 否 -> 长度 > 限制? 否 -> TTS -> 附加音频 是 -> 摘要启用? 否 -> 发送文本 是 -> 摘要(summaryModel 或 agents.defaults.model.primary) -> TTS -> 附加音频 ``` ## 斜杠命令用法 只有一个命令:`/tts`。参见[斜杠命令](/tools/slash-commands)了解启用详情。 Discord 注意:`/tts` 是 Discord 的内置命令,所以 OpenClaw 在那里注册 `/voice` 作为原生命令。文本 `/tts ...` 仍然有效。 ``` /tts off /tts always /tts inbound /tts tagged /tts status /tts provider openai /tts limit 2000 /tts summary off /tts audio Hello from OpenClaw ``` 注意事项: - 命令需要授权发送者(白名单/所有者规则仍然适用)。 - 必须启用 `commands.text` 或原生命令注册。 - `off|always|inbound|tagged` 是单会话开关(`/tts on` 是 `/tts always` 的别名)。 - `limit` 和 `summary` 存储在本地偏好中,不在主配置中。 - `/tts audio` 生成一次性音频回复(不会开启 TTS)。 ## 智能体工具 `tts` 工具将文本转换为语音并返回 `MEDIA:` 路径。当结果与 Telegram 兼容时,工具包含 `[[audio\_as\_voice]]`,以便 Telegram 发送语音气泡。 ## Gateway 网关 RPC Gateway 网关方法: - `tts.status` - `tts.enable` - `tts.disable` - `tts.convert` - `tts.setProvider` - `tts.providers`
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/tts.md
main
opebclaw
[ -0.042227569967508316, 0.026385078206658363, -0.028522122651338577, -0.0926394909620285, -0.023371469229459763, -0.03116261400282383, 0.005944979377090931, -0.0003340762632433325, 0.017745018005371094, -0.05523764342069626, 0.10668168216943741, -0.042784903198480606, -0.014021027833223343, -0.0006292600883170962, 0.023925332352519035, -0.011293677613139153, -0.0015478821005672216, 0.058972299098968506, -0.07800054550170898, -0.005311806686222553, -0.020101232454180717, -0.02242172136902809, 0.10211900621652603, 0.019472692161798477, 0.06320519745349884, 0.024926211684942245, -0.0660037249326706, 0.034537479281425476, 0.0008937671082094312, -0.009814763441681862, 0.03428789600729942, 0.08172904700040817, 0.11446677893400192, -0.047410715371370316, 0.08501291275024414, 0.04416484385728836, -0.025230327621102333, -0.05342777073383331, -0.027895476669073105, 0.05447888746857643, -0.0372115783393383, 0.05282323434948921, -0.05958746373653412, -0.038120172917842865, -0.06689751893281937, -0.032689984887838364, -0.0708618238568306, 0.026855669915676117, -0.10510644316673279, -0.007833982817828655, -0.03804376348853111, 0.04988333582878113, -0.022199397906661034, 0.07050808519124985, -0.010182330384850502, -0.04991861805319786, -0.019201448187232018, 0.09771902114152908, 0.03941550478339195, 0.03175751864910126, -0.07240401953458786, 0.012869386933743954, -0.050537437200546265, -0.05167412757873535, -0.0409381240606308, -0.012215078808367252, -0.06002511829137802, 0.016197869554162025, -0.023056400939822197, 0.06597895175218582, 0.045150287449359894, 0.011635307222604752, 0.00883015152066946, 0.07724684476852417, -0.01921113021671772, -0.0025386158376932144, 0.0586823895573616, 0.048692576587200165, -0.11681853979825974, -0.06521694362163544, 0.0029323617927730083, -0.03933455049991608, 0.057104628533124924, -0.05256851017475128, -0.0161064974963665, 0.08514021337032318, -0.07066528499126434, -0.013744807802140713, -0.002893509343266487, -0.04185497760772705, -0.027541015297174454, -0.035357292741537094, -0.004493297077715397, 0.041433628648519516, 0.047156818211078644, 0.013820699416100979, -0.013305723667144775, 0.0034921723417937756, -0.01327444240450859, -0.006011162884533405, 0.06498270481824875, -0.05657931789755821, -0.028746718540787697, 0.023304209113121033, -0.0314071886241436, -0.07203443348407745, 0.031249074265360832, 0.11230383068323135, 0.0450357049703598, 0.010971994139254093, 0.020131057128310204, -0.09032324701547623, 0.02785007283091545, -0.10303673148155212, -0.06024578586220741, 0.04004722088575363, -0.04599098116159439, -0.01557676587253809, 0.015844400972127914, 0.00818651169538498, 0.01824817806482315, -0.04237736016511917, -0.0653141438961029, -0.019361913204193115, -0.07202591747045517, 0.02580077014863491, 0.10328472405672073, 5.8114684809967354e-33, -0.053046707063913345, -0.03162550926208496, -0.012361517176032066, -0.05663880705833435, -0.02060590870678425, -0.06030277907848358, -0.1203957051038742, 0.047835011035203934, -0.07963011413812637, 0.04693876579403877, -0.018710052594542503, 0.02825198881328106, -0.10685250908136368, 0.045577406883239746, -0.007244754582643509, -0.0640786737203598, 0.06486314535140991, -0.0013414332643151283, 0.0802338719367981, -0.022593727335333824, 0.037323080003261566, 0.024261919781565666, -0.0057960133999586105, -0.016743967309594154, -0.012110929004848003, 0.08279938250780106, 0.03709346801042557, -0.11221382021903992, 0.0005634169792756438, 0.027452675625681877, -0.012319411151111126, -0.06629768759012222, 0.008353288285434246, -0.02210466004908085, -0.06672981381416321, 0.01054619811475277, -0.037385355681180954, 0.05019516870379448, -0.08110322058200836, -0.09526771306991577, -0.06920820474624634, -0.012265695258975029, -0.07034903019666672, -0.02334384247660637, -0.024125007912516594, -0.028880465775728226, -0.07117625325918198, -0.026917513459920883, 0.03488784655928612, 0.008356808684766293, 0.001811326714232564, 0.05220324918627739, -0.029471078887581825, 0.13719597458839417, 0.05476196110248566, -0.043778739869594574, 0.06409403681755066, -0.0452861562371254, -0.035182442516088486, 0.006034619640558958, 0.05124426633119583, -0.05145332217216492, 0.06700879335403442, -0.06409835070371628, 0.11261964589357376, 0.01619746908545494, 0.03625914826989174, -0.02620779536664486, 0.015317524783313274, 0.040599800646305084, -0.17813588678836823, -0.0029687057249248028, 0.07994432747364044, 0.06553462892770767, -0.09696397185325623, -0.03232228383421898, 0.004505454562604427, 0.00409683445468545, 0.0400211326777935, -0.004268143326044083, -0.061962176114320755, -0.020825166255235672, 0.006826731376349926, 0.017512349411845207, -0.0076343403197824955, 0.054599665105342865, 0.01568940095603466, -0.037923309952020645, -0.04552384838461876, 0.06689619272947311, -0.11804678291082382, 0.06039002537727356, -0.018376663327217102, 0.012264551594853401, -0.03747865930199623, -1.0359226902929755e-32, 0.005598089192062616, 0.073407381772995, -0.03463737666606903, -0.054881785064935684, -0.04674810916185379, 0.002107425592839718, 0.06398263573646545, 0.12651962041854858, -0.022415008395910263, 0.0036079431883990765, -0.0026118566747754812, -0.061542872339487076, -0.016122201457619667, -0.0681040957570076, -0.05900416150689125, -0.020919062197208405, -0.0213630273938179, 0.046814437955617905, 0.046592555940151215, 0.03141767904162407, -0.05113562196493149, -0.021458424627780914, -0.013167600147426128, 0.11093813925981522, -0.017881959676742554, -0.0008605053881183267, 0.0640266165137291, 0.021111028268933296, 0.0006751316250301898, 0.007507190573960543, 0.0245595034211874, 0.02198183722794056, -0.09477712959051132, 0.01357472874224186, 0.03184416890144348, -0.027498267590999603, -0.011209163814783096, 0.09129982441663742, -0.01888968236744404, -0.00639597000554204, 0.0564955398440361, 0.022729502990841866, -0.03655979409813881, -0.06146038696169853, 0.013772660866379738, -0.009312820620834827, -0.04627110809087753, 0.0018976330757141113, -0.03524864837527275, -0.05390859395265579, 0.1496911197900772, -0.07390958070755005, 0.06089867278933525, 0.012592945247888565, 0.04844849929213524, -0.01162666641175747, -0.01438871119171381, -0.10123330354690552, -0.044462963938713074, -0.03966720402240753, 0.06647858768701553, -0.060279861092567444, -0.06064448133111, -0.05063827335834503, -0.03357002139091492, 0.010953167453408241, 0.0019824907649308443, 0.005330043379217386, 0.05607997253537178, -0.039589788764715195, 0.008691162802278996, -0.035537850111722946, 0.02307935059070587, 0.04799048602581024, -0.03655354678630829, 0.03288588300347328, -0.10050815343856812, 0.01714327745139599, -0.03549133613705635, 0.017023393884301186, 0.013578417710959911, 0.07973847538232803, 0.018132377415895462, 0.0035952539183199406, 0.013395728543400764, 0.02894819714128971, -0.013315155170857906, 0.009034660644829273, -0.023168087005615234, 0.022679070010781288, 0.039236363023519516, 0.1140245795249939, 0.008255296386778355, 0.05052635446190834, -0.036179788410663605, -5.7570989753230606e-8, -0.05614031106233597, -0.09890932589769363, -0.021250717341899872, -0.06869770586490631, -0.006481235846877098, -0.032875172793865204, -0.01647048071026802, -0.0618988461792469, 0.0028277491219341755, -0.05593125522136688, 0.03824613243341446, 0.00019908604735974222, -0.08457110077142715, 0.010669885203242302, -0.12213023006916046, -0.028799615800380707, -0.08103631436824799, 0.055262256413698196, 0.023651542142033577, -0.0904184877872467, 0.03373268246650696, 0.0686320886015892, -0.00014415589976124465, -0.05600609630346298, -0.034339871257543564, -0.015221675857901573, 0.007862025871872902, 0.053279388695955276, -0.027597341686487198, -0.03645895794034004, 0.04849018156528473, -0.05829746276140213, -0.019083566963672638, -0.05776628106832504, -0.007998626679182053, 0.008875475265085697, -0.010016877204179764, -0.04475977271795273, -0.07101363688707352, 0.014600735157728195, 0.03018258698284626, -0.026669835671782494, -0.0672309622168541, -0.00626021483913064, 0.02484831027686596, -0.1086588203907013, 0.07485660910606384, 0.043549731373786926, 0.01445547305047512, 0.05968040972948074, 0.016163792461156845, 0.058291953057050705, 0.005461059510707855, -0.0510159395635128, 0.0520247183740139, -0.004876281134784222, -0.046484287828207016, 0.052542246878147125, -0.07204756885766983, 0.04655224829912186, 0.03202911093831062, -0.044049739837646484, 0.07224651426076889, 0.021462714299559593 ]
0.061891
# Perplexity Sonar OpenClaw 可以使用 Perplexity Sonar 作为 `web\_search` 工具。你可以通过 Perplexity 的直连 API 或通过 OpenRouter 连接。 ## API 选项 ### Perplexity(直连) - Base URL:https://api.perplexity.ai - 环境变量:`PERPLEXITY\_API\_KEY` ### OpenRouter(替代方案) - Base URL:https://openrouter.ai/api/v1 - 环境变量:`OPENROUTER\_API\_KEY` - 支持预付费/加密货币积分。 ## 配置示例 ```json5 { tools: { web: { search: { provider: "perplexity", perplexity: { apiKey: "pplx-...", baseUrl: "https://api.perplexity.ai", model: "perplexity/sonar-pro", }, }, }, }, } ``` ## 从 Brave 切换 ```json5 { tools: { web: { search: { provider: "perplexity", perplexity: { apiKey: "pplx-...", baseUrl: "https://api.perplexity.ai", }, }, }, }, } ``` 如果同时设置了 `PERPLEXITY\_API\_KEY` 和 `OPENROUTER\_API\_KEY`,请设置 `tools.web.search.perplexity.baseUrl`(或 `tools.web.search.perplexity.apiKey`)以消除歧义。 如果未设置 base URL,OpenClaw 会根据 API 密钥来源选择默认值: - `PERPLEXITY\_API\_KEY` 或 `pplx-...` → 直连 Perplexity(`https://api.perplexity.ai`) - `OPENROUTER\_API\_KEY` 或 `sk-or-...` → OpenRouter(`https://openrouter.ai/api/v1`) - 未知密钥格式 → OpenRouter(安全回退) ## 模型 - `perplexity/sonar` — 带网络搜索的快速问答 - `perplexity/sonar-pro`(默认) — 多步推理 + 网络搜索 - `perplexity/sonar-reasoning-pro` — 深度研究 请参阅 [Web 工具](/tools/web) 了解 web\_search 配置详情。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/perplexity.md
main
opebclaw
[ -0.05926093831658363, 0.013825968839228153, 0.00858799833804369, -0.011819334700703621, 0.025314899161458015, -0.1025421991944313, -0.048930566757917404, -0.012360883876681328, 0.008844583295285702, -0.08569982647895813, 0.06966812908649445, -0.055494122207164764, 0.00240530539304018, 0.0009739860543049872, 0.06466025114059448, 0.13333821296691895, -0.04697754606604576, 0.03973083943128586, -0.04323123022913933, -0.04910683259367943, 0.050048235803842545, 0.059601251035928726, 0.006490632891654968, -0.09662426263093948, -0.09062206000089645, -0.011862087063491344, 0.016025321558117867, -0.017471952363848686, 0.044848423451185226, -0.011927108280360699, 0.028832875192165375, 0.004264451563358307, -0.06581389904022217, 0.03404604643583298, 0.08308501541614532, 0.04665004834532738, -0.022871725261211395, -0.08526310324668884, 0.019475579261779785, 0.014728945679962635, 0.0671553686261177, 0.03349311649799347, -0.024202538654208183, -0.07760094851255417, -0.004686687607318163, -0.09112860262393951, -0.03052113950252533, -0.08897039294242859, -0.015112089924514294, -0.007953776977956295, -0.13390898704528809, -0.09846052527427673, -0.06322135776281357, -0.08712535351514816, 0.023661352694034576, -0.03480973094701767, -0.08582961559295654, 0.003939028363674879, 0.012218729592859745, -0.051972512155771255, 0.05023178085684776, -0.03962727263569832, 0.015808887779712677, -0.05432423949241638, -0.08574622124433517, -0.02107224613428116, -0.02674749679863453, -0.024202050641179085, 0.034497153013944626, -0.02241274155676365, -0.0005495638470165431, 0.02172529511153698, 0.03950215503573418, 0.006835578475147486, 0.017450561746954918, 0.009299620985984802, 0.011111815460026264, -0.027235379442572594, 0.005662687588483095, -0.03753584995865822, -0.08757772296667099, -0.12802156805992126, -0.007765304297208786, 0.08119997382164001, 0.05005323886871338, 0.06922225654125214, -0.02020588330924511, -0.044057559221982956, 0.061143968254327774, -0.024718571454286575, -0.05642006918787956, -0.12186203896999359, -0.060580506920814514, -0.00019289787451270968, 0.0465080700814724, 0.04418671876192093, -0.014494305476546288, -0.07227140665054321, -0.03499051183462143, 0.05708976462483406, -0.017133984714746475, -0.028446322306990623, 0.010318620130419731, -0.007049890700727701, -0.03430085629224777, 0.03355110436677933, -0.006500557996332645, 0.09847792237997055, 0.05479801073670387, 0.005839967168867588, -0.037466224282979965, 0.013620669022202492, 0.06355923414230347, -0.10565588623285294, -0.08661912381649017, 0.02791260927915573, -0.06043373793363571, -0.03278091549873352, 0.09240502119064331, 0.011419673450291157, 0.08847742527723312, 0.0008040621760301292, -0.07204321771860123, 0.024222243577241898, 0.0539199560880661, -0.015242822468280792, 0.051301464438438416, 4.286534557163522e-33, 0.04733864590525627, 0.03391208127140999, -0.026404954493045807, -0.006405835039913654, 0.03697941452264786, -0.028953159227967262, 0.025975165888667107, 0.024765603244304657, -0.06157466024160385, 0.051008012145757675, -0.045146577060222626, 0.10759783536195755, -0.10206405818462372, -0.06344261765480042, -0.034731704741716385, -0.04972788318991661, 0.020905306562781334, -0.0006686188280582428, -0.02209753915667534, 0.0011738884495571256, 0.05023211985826492, 0.05891655758023262, -0.02221319079399109, -0.007235872559249401, 0.007287318352609873, 0.05252408981323242, 0.02415364235639572, -0.06810476630926132, -0.055877380073070526, 0.037475790828466415, 0.09043905138969421, -0.011867953464388847, -0.04032966122031212, 0.0404619462788105, 0.06516657769680023, 0.039104487746953964, 0.008354950696229935, 0.020096508786082268, -0.09309770911931992, -0.02210731990635395, -0.040338184684515, -0.011966354213654995, -0.09315044432878494, -0.0570695586502552, 0.0016268331091850996, -0.09204607456922531, -0.11599814146757126, -0.04423852264881134, 0.06022346764802933, -0.06531655788421631, -0.05454583838582039, 0.08052437007427216, 0.007662551011890173, 0.005713081918656826, 0.021235285326838493, -0.022525206208229065, 0.016048841178417206, 0.012382249347865582, -0.04319191724061966, 0.015737704932689667, 0.006347564980387688, -0.024670351296663284, 0.008726313710212708, -0.013793807476758957, 0.07141846418380737, 0.017632240429520607, 0.005442918743938208, 0.05031627416610718, 0.013966434635221958, 0.035494331270456314, -0.0021775253117084503, 0.023777538910508156, 0.08014072477817535, 0.00025675492361187935, -0.0537329725921154, -0.10045691579580307, -0.044438838958740234, 0.013378056697547436, 0.0862317755818367, -0.0781765952706337, -0.028788398951292038, -0.02277919091284275, -0.019883865490555763, 0.06168187037110329, -0.03569949045777321, 0.06991036236286163, -0.06046318635344505, -0.031119845807552338, 0.006627654191106558, 0.03571349382400513, -0.06832150369882584, 0.05994769558310509, -0.04074327275156975, -0.04018862172961235, -0.08165789395570755, -7.648895455710561e-33, -0.052007727324962616, -0.008689263835549355, -0.009916293434798717, 0.017254872247576714, -0.0017211433732882142, -0.07726026326417923, 0.11587044596672058, 0.06311235576868057, 0.05963181331753731, 0.08068274706602097, -0.013985262252390385, -0.028916524723172188, 0.04982232302427292, -0.03638874739408493, -0.007701466791331768, 0.07108837366104126, -0.04767441004514694, 0.013809401541948318, 0.011548696085810661, 0.05839799344539642, -0.06233265623450279, 0.0681583508849144, -0.11014440655708313, 0.05308263376355171, 0.011900341138243675, 0.029998308047652245, 0.05688155069947243, -0.008100057020783424, -0.04712172970175743, -0.022015035152435303, 0.0031657638028264046, 0.061157915741205215, -0.00846086721867323, 0.008171371184289455, 0.008729874156415462, 0.03527595475316048, 0.004718177951872349, 0.1153794452548027, 0.006674726493656635, 0.0014862008392810822, 0.06212780624628067, -0.0633080005645752, -0.061282191425561905, 0.011512598022818565, 0.003412409219890833, 0.004645917098969221, -0.041392985731363297, 0.08751101046800613, -0.00493480684235692, -0.051305774599313736, 0.07304681837558746, 0.01251810323446989, 0.005594592075794935, -0.07888099551200867, -0.020908355712890625, 0.03160988911986351, 0.017727548256516457, -0.11384433507919312, -0.029706286266446114, 0.014709636569023132, -0.001852890127338469, -0.06898399442434311, -0.04579779878258705, 0.1157444417476654, 0.009785028174519539, 0.001778443343937397, -0.07308333367109299, -0.007704170420765877, -0.0359237864613533, -0.09719011187553406, -0.06736229360103607, -0.004567061550915241, 0.04641783609986305, -0.025626905262470245, 0.06869710981845856, -0.00533068273216486, -0.03565055876970291, 0.01735680177807808, 0.08483834564685822, 0.05163448303937912, -0.0009867246262729168, 0.01272253505885601, 0.02999497763812542, 0.021082960069179535, 0.02594168484210968, 0.0213213711977005, 0.001550390850752592, 0.09998845309019089, -0.042665187269449234, -0.01751568913459778, 0.023068824782967567, 0.040453873574733734, -0.07026256620883942, 0.020979156717658043, 0.013855776749551296, -5.058355156961625e-8, -0.08123527467250824, -0.013024204410612583, -0.08306349068880081, -0.009574832394719124, 0.002968426560983062, 0.030205871909856796, 0.008794545195996761, 0.0005695971776731312, -0.007536326535046101, -0.00513307424262166, 0.007856931537389755, 0.04270801320672035, -0.11630269885063171, 0.020174792036414146, -0.06022444739937782, 0.04033346846699715, -0.07140514999628067, 0.0020457576029002666, 0.007764444686472416, -0.09248049557209015, -0.024058418348431587, 0.03717085346579552, 0.018726050853729248, -0.04751995578408241, 0.03078686073422432, -0.039748311042785645, -0.047837994992733, 0.040309838950634, -0.05425846576690674, 0.013454188592731953, -0.06551513820886612, -0.010138276033103466, -0.02302466332912445, -0.018278293311595917, -0.004175463225692511, 0.08446165919303894, 0.050532661378383636, -0.04541131854057312, -0.031551480293273926, 0.03441172093153, 0.10300540179014206, 0.05563155561685562, -0.020703259855508804, 0.004145397804677486, 0.07337727397680283, 0.038822636008262634, 0.03404279798269272, -0.03670421615242958, 0.10466273128986359, 0.008341108448803425, -0.005945511162281036, -0.0655115395784378, 0.02741561271250248, -0.03382562845945358, -0.015737297013401985, 0.06476086378097534, -0.005099238827824593, -0.07159204035997391, -0.07290136069059372, 0.08406039327383041, 0.06283468753099442, 0.028988812118768692, 0.09290573000907898, 0.017970286309719086 ]
0.052144
# AGENTS.md - zh-CN 文档翻译工作区 ## Read When - 维护 `docs/zh-CN/\*\*` - 更新中文翻译流水线(glossary/TM/prompt) - 处理中文翻译反馈或回归 ## Pipeline(docs-i18n) - 源文档:`docs/\*\*/\*.md` - 目标文档:`docs/zh-CN/\*\*/\*.md` - 术语表:`docs/.i18n/glossary.zh-CN.json` - 翻译记忆库:`docs/.i18n/zh-CN.tm.jsonl` - 提示词规则:`scripts/docs-i18n/translator.go` 常用运行方式: ```bash # 批量(doc 模式,可并行) go run scripts/docs-i18n/main.go -mode doc -parallel 6 docs/\*\*/\*.md # 单文件 go run scripts/docs-i18n/main.go -mode doc docs/channels/matrix.md # 小范围补丁(segment 模式,使用 TM;不支持并行) go run scripts/docs-i18n/main.go -mode segment docs/channels/matrix.md ``` 注意事项: - doc 模式用于整页翻译;segment 模式用于小范围修补(依赖 TM)。 - 超大文件若超时,优先做\*\*定点替换\*\*或拆分后再跑。 - 翻译后检查中文引号、CJK-Latin 间距和术语一致性。 ## zh-CN 样式规则 - CJK-Latin 间距:遵循 W3C CLREQ(如 `Gateway 网关`、`Skills 配置`)。 - 中文引号:正文/标题使用 `“”`;代码/CLI/键名保持 ASCII 引号。 - 术语保留英文:`Skills`、`local loopback`、`Tailscale`。 - 代码块/内联代码:保持原样,不在代码内插入空格或引号替换。 ## 关键术语(#6995 修复) - `Gateway 网关` - `Skills 配置` - `沙箱` - `预期键名` - `配套应用` - `分块流式传输` - `设备发现` ## 反馈与变更记录 - 反馈来源:GitHub issue #6995 - 反馈用户:@AaronWander、@taiyi747、@Explorer1092、@rendaoyuan - 变更要点:更新 prompt 规则、扩充 glossary、清理 TM、批量再生成 + 定点修复 - 参考链接:https://github.com/openclaw/openclaw/issues/6995
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/AGENTS.md
main
opebclaw
[ -0.03017791360616684, 0.052036963403224945, 0.026095326989889145, -0.08863727748394012, -0.043366704136133194, -0.023633457720279694, 0.013367014937102795, 0.010563519783318043, 0.03519614785909653, 0.02451927401125431, 0.047647275030612946, -0.07158077508211136, 0.045590974390506744, 0.016370467841625214, 0.0215296670794487, -0.005252759903669357, -0.10993019491434097, 0.02784934639930725, -0.03586835414171219, -0.061360567808151245, 0.016820937395095825, 0.08214113116264343, 0.06642643362283707, -0.031659357249736786, -0.02080298773944378, 0.018855510279536247, -0.07243499904870987, -0.052807215601205826, 0.001836102455854416, 0.02506609447300434, -0.013291043229401112, 0.11201900988817215, -0.04254773259162903, 0.035704080015420914, 0.09847446531057358, 0.12260212749242783, -0.012828720733523369, -0.04267417639493942, -0.01822431944310665, 0.03331949561834335, 0.03499605879187584, 0.038716770708560944, -0.02455352246761322, -0.06957818567752838, -0.008220006711781025, 0.011689471080899239, -0.04224164038896561, -0.04457111284136772, -0.09582957625389099, 0.047725290060043335, -0.09222613275051117, -0.08958093822002411, -0.05869075655937195, 0.040022239089012146, 0.03761663660407066, 0.07026460766792297, -0.049059778451919556, 0.07746203988790512, 0.016390856355428696, -0.06093641370534897, -0.07652053982019424, 0.06592432409524918, -0.08921311795711517, 0.04142551124095917, -0.003051064908504486, 0.04648236930370331, -0.04428500682115555, 0.03134308010339737, 0.026479464024305344, -0.01985856518149376, -0.10816238075494766, -0.039909228682518005, 0.021448282524943352, -0.022510765120387077, -0.08137549459934235, -0.020006075501441956, 0.07149903476238251, 0.024425406008958817, -0.04994894564151764, -0.1763051599264145, -0.037166036665439606, -0.02100362814962864, 0.05635540932416916, 0.06774641573429108, -0.037979766726493835, 0.0562308207154274, -0.015386536717414856, 0.007078531663864851, 0.05757821351289749, 0.013045137748122215, 0.05109366029500961, -0.08036341518163681, 0.07063014805316925, 0.04963446781039238, 0.018117457628250122, 0.08942645788192749, 0.0362267903983593, 0.040588684380054474, 0.03097277693450451, 0.004151470493525267, 0.02365879714488983, -0.002729704836383462, 0.0840907171368599, -0.016606371849775314, -0.06719087064266205, -0.01555525790899992, -0.04905087873339653, -0.011698272079229355, 0.005679365247488022, -0.06073223054409027, -0.00447040842846036, -0.025860849767923355, -0.03794589638710022, -0.09037415683269501, 0.004716617055237293, -0.0052170404233038425, 0.03065156191587448, 0.00832890160381794, -0.043619319796562195, 0.054003309458494186, -0.018519142642617226, -0.03976932913064957, -0.031218038871884346, -0.019309617578983307, -0.0054772766306996346, -0.012800962664186954, 0.11104967445135117, 2.4284594731645256e-33, 0.044926922768354416, -0.04964860528707504, 0.0029276590794324875, -0.000904508400708437, 0.04094954580068588, -0.048873886466026306, 0.093216672539711, -0.009860393591225147, -0.14623963832855225, -0.020891262218356133, 0.009987570345401764, 0.043616894632577896, -0.13281770050525665, 0.008676624856889248, -0.07909242063760757, -0.026147376745939255, 0.06556376814842224, 0.024576714262366295, -0.005070720333606005, 0.04155409708619118, 0.0846705436706543, 0.0482822023332119, 0.012007283046841621, -0.04753364250063896, 0.0348648875951767, 0.01594090461730957, 0.0489150732755661, -0.09120143204927444, 0.0028934096917510033, -0.021153990179300308, -0.014096150174736977, -0.07109413295984268, -0.030338097363710403, 0.04853547364473343, -0.04839356988668442, -0.007984999567270279, -0.007932002656161785, 0.019665922969579697, -0.011946046724915504, -0.0189486276358366, -0.009645069018006325, 0.01009346917271614, -0.023434298112988472, 0.0068277474492788315, 0.04058054834604263, 0.020034940913319588, -0.07041481882333755, -0.10884811729192734, 0.04165589064359665, 0.005991007667034864, -0.03159136697649956, 0.004839891102164984, -0.028885580599308014, 0.06691490113735199, 0.054744064807891846, -0.03050144575536251, -0.04379803687334061, 0.03424663096666336, 0.016540193930268288, -0.047698620706796646, 0.020102525129914284, 0.026338918134570122, -0.029565559700131416, 0.09930475801229477, 0.11799969524145126, -0.0629572719335556, -0.007280744146555662, 0.009965898469090462, 0.01900198869407177, -0.01441224291920662, -0.12794062495231628, -0.027174174785614014, 0.10018100589513779, 0.058924950659275055, 0.08107531070709229, -0.0535816065967083, -0.051371194422245026, -0.07807780802249908, -0.015840942040085793, -0.021187815815210342, -0.08722076565027237, 0.015465915203094482, -0.09477125108242035, 0.03190288692712784, 0.03462368994951248, 0.04586312919855118, 0.012743246741592884, 0.009676646441221237, 0.04245544597506523, -0.024791160598397255, -0.005389778409153223, -0.040336254984140396, -0.05507481470704079, -0.059288352727890015, -0.04801825433969498, -6.743636970566748e-33, 0.07675299793481827, -0.03619864210486412, -0.06413403898477554, 0.04667186364531517, -0.05512984097003937, -0.0825735554099083, 0.03436089679598808, 0.03877744451165199, 0.04415179789066315, -0.026537688449025154, 0.008267262950539589, 0.05358932167291641, 0.027147099375724792, 0.014418451115489006, 0.020126044750213623, -0.009309723973274231, 0.02735760435461998, 0.009782289154827595, 0.04919833689928055, 0.05690552666783333, 0.009092623367905617, -0.01620336063206196, -0.1129722148180008, 0.050778258591890335, 0.01906805858016014, 0.006604030262678862, 0.05312122404575348, -0.02174501121044159, -0.009675679728388786, 0.04669979587197304, 0.0034134278539568186, 0.054380737245082855, -0.09221025556325912, 0.04963269829750061, -0.0422934927046299, -0.015018599107861519, -0.03534311801195145, 0.06743442267179489, -0.04338178411126137, 0.020968569442629814, 0.03958738595247269, -0.06408043950796127, -0.010498550720512867, -0.054778650403022766, -0.03152890130877495, 0.02040712535381317, -0.04724135249853134, -0.007927932776510715, -0.10458509624004364, -0.015342996455729008, 0.06991063058376312, -0.0148071413859725, -0.049941182136535645, -0.0835985615849495, 0.0027270724531263113, -0.02148304507136345, 0.07803789526224136, -0.11995236575603485, -0.11801927536725998, -0.11904659867286682, 0.004384857602417469, 0.030022315680980682, -0.051505424082279205, -0.06354974955320358, -0.06755653768777847, 0.003195760305970907, -0.029358725994825363, -0.013380784541368484, 0.0514545664191246, -0.12742269039154053, 0.009804317727684975, -0.05815856158733368, 0.034143101423978806, -0.0054698847234249115, 0.03347444534301758, -0.00923711434006691, -0.02590613067150116, -0.0477730967104435, 0.06776457279920578, 0.033617109060287476, 0.006711735390126705, 0.1191820502281189, 0.00846839789301157, 0.03935336694121361, -0.0072660017758607864, 0.02064109779894352, -0.03894408419728279, 0.09858983755111694, -0.0062184324488043785, -0.004667459987103939, 0.04841388016939163, 0.024023905396461487, 0.03186892718076706, 0.08515976369380951, -0.037590958178043365, -4.623196758757331e-8, -0.07097205519676208, -0.03566613793373108, -0.030130397528409958, 0.023034051060676575, -0.04768453538417816, -0.019745396450161934, -0.001429139287211001, 0.059945546090602875, 0.05597158893942833, -0.07113827019929886, 0.0737478956580162, -0.03920190408825874, -0.06619297713041306, 0.028113611042499542, -0.05215976759791374, -0.008790802210569382, -0.00809255801141262, 0.048804689198732376, -0.02262890338897705, -0.04729235917329788, -0.0595024973154068, 0.04023950546979904, 0.0015012191142886877, -0.027163922786712646, -0.023467713966965675, 0.06996532529592514, 0.005244735162705183, 0.006119792349636555, -0.07509742677211761, -0.05177827551960945, 0.022199181839823723, -0.02144588902592659, -0.014829120598733425, 0.04838345944881439, 0.043876904994249344, 0.004990912042558193, 0.06860335916280746, -0.025837115943431854, 0.04343528300523758, -0.03465459868311882, 0.06292746216058731, -0.05805937573313713, -0.009274078533053398, 0.007418846245855093, 0.041498616337776184, -0.08816292881965637, -0.009951538406312466, 0.0015106063801795244, 0.09805046021938324, -0.08050695061683655, -0.053554221987724304, -0.023182854056358337, 0.010977514088153839, 0.0032796284649521112, 0.05788007378578186, 0.04553818702697754, -0.005124147515743971, -0.04644176363945007, 0.002000847365707159, 0.008948411792516708, 0.0030905765015631914, 0.006080372259020805, 0.023976417258381844, -0.00457555428147316 ]
0.002693
# Pi 集成架构 本文档描述了 OpenClaw 如何与 [pi-coding-agent](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent) 及其相关包(`pi-ai`、`pi-agent-core`、`pi-tui`)集成以实现其 AI 智能体能力。 ## 概述 OpenClaw 使用 pi SDK 将 AI 编码智能体嵌入到其消息 Gateway 网关架构中。OpenClaw 不是将 pi 作为子进程生成或使用 RPC 模式,而是通过 `createAgentSession()` 直接导入并实例化 pi 的 `AgentSession`。这种嵌入式方法提供了: - 对会话生命周期和事件处理的完全控制 - 自定义工具注入(消息、沙箱、渠道特定操作) - 每个渠道/上下文的系统提示自定义 - 支持分支/压缩的会话持久化 - 带故障转移的多账户认证配置文件轮换 - 与提供商无关的模型切换 ## 包依赖 ```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" } ``` | 包 | 用途 | | ----------------- | ------------------------------------------------------------------------------------------ | | `pi-ai` | 核心 LLM 抽象:`Model`、`streamSimple`、消息类型、提供商 API | | `pi-agent-core` | 智能体循环、工具执行、`AgentMessage` 类型 | | `pi-coding-agent` | 高级 SDK:`createAgentSession`、`SessionManager`、`AuthStorage`、`ModelRegistry`、内置工具 | | `pi-tui` | 终端 UI 组件(用于 OpenClaw 的本地 TUI 模式) | ## 文件结构 ``` 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 ├── 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
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/pi.md
main
opebclaw
[ -0.07185490429401398, -0.020907409489154816, -0.09467247873544693, -0.06021733582019806, -0.038359224796295166, -0.05073372274637222, -0.014742149040102959, 0.09542679041624069, 0.02911803126335144, 0.05429210886359215, 0.11977176368236542, -0.04620254784822464, 0.059793680906295776, -0.03542572632431984, 0.04489262402057648, 0.05801170691847801, -0.027558734640479088, -0.007153672631829977, 0.006604441907256842, -0.0024572177790105343, -0.01472192071378231, -0.056750450283288956, -0.0398881770670414, -0.0015523695619776845, -0.06134233996272087, 0.04782135784626007, -0.052089087665081024, 0.01713956706225872, 0.0642004981637001, -0.031184013932943344, 0.0052154092118144035, 0.14255841076374054, 0.03462226688861847, 0.014760300517082214, 0.10748353600502014, 0.13924627006053925, -0.02384968101978302, -0.09513769298791885, -0.006145890336483717, 0.0474175289273262, 0.035264838486909866, 0.04748508706688881, -0.017783768475055695, -0.06420454382896423, -0.007917777635157108, -0.0029320407193154097, -0.04366060718894005, -0.08085481822490692, -0.08997651934623718, -0.11842478811740875, -0.06143379583954811, 0.014897296205163002, 0.039294514805078506, -0.046664636582136154, 0.029246702790260315, -0.018646543845534325, -0.04307769238948822, -0.024121005088090897, -0.011692860163748264, 0.015449215658009052, 0.013289429247379303, 0.03208203613758087, -0.010640516877174377, 0.008692112751305103, -0.08874017000198364, 0.031099045649170876, -0.04744819551706314, -0.03591674938797951, 0.04492200165987015, -0.07236721366643906, -0.10095535218715668, -0.0073686279356479645, -0.027529895305633545, -0.021092453971505165, -0.004783704411238432, 0.03003072552382946, 0.036471687257289886, -0.002002585446462035, -0.023758117109537125, -0.14519493281841278, -0.03776168078184128, 0.03495246544480324, 0.009027043357491493, 0.005853782873600721, -0.08850156515836716, 0.16897258162498474, 0.010609577409923077, 0.043899212032556534, 0.05586188659071922, -0.008313510566949844, 0.030692290514707565, 0.0042993961833417416, 0.040598127990961075, 0.026120096445083618, 0.043935906141996384, -0.040777355432510376, -0.005466230679303408, 0.006294695194810629, -0.08281300216913223, 0.02398017793893814, -0.008477620780467987, -0.058046575635671616, -0.041537001729011536, -0.032521169632673264, -0.1113390177488327, -0.03762884438037872, -0.017477115616202354, 0.045600976794958115, 0.05751515179872513, 0.017558930441737175, -0.04343907907605171, -0.09316474199295044, 0.0021520773880183697, -0.05069113150238991, 0.0026778557803481817, 0.10033991187810898, 0.01616583578288555, -0.07182319462299347, 0.03992220014333725, -0.008077994920313358, 0.06147751212120056, -0.031928252428770065, -0.09131969511508942, -0.002593949669972062, -0.06359830498695374, -0.03765619173645973, 0.0815172791481018, -4.18629023563532e-33, -0.005517854355275631, 0.03135651350021362, -0.02995399385690689, -0.07678354531526566, 0.07353220134973526, 0.029080810025334358, 0.052182022482156754, -0.02733888477087021, -0.06586769968271255, 0.013098598457872868, 0.014445568434894085, 0.06432871520519257, -0.13492542505264282, 0.09263041615486145, -0.05120179429650307, -0.07173984497785568, -0.037667565047740936, 0.05245830491185188, 0.02175356075167656, -0.049003902822732925, 0.0190176572650671, -0.03144756332039833, -0.01275724545121193, 0.02864309772849083, 0.025499464944005013, 0.02465001679956913, -0.044941551983356476, -0.0774918869137764, 0.016534848138689995, -0.00048224435886368155, -0.010325942188501358, 0.028569132089614868, -0.05466468259692192, 0.060148414224386215, -0.11086446791887283, -0.014033479616045952, -0.06773943454027176, -0.04275576397776604, -0.05137379467487335, -0.003730304306373, -0.01808624155819416, 0.05536406859755516, 0.04885641857981682, 0.021581057459115982, 0.08695793151855469, -0.07004132121801376, -0.09927339106798172, 0.03266405686736107, 0.07695205509662628, -0.0049570053815841675, -0.041991833597421646, 0.07782241702079773, 0.04274505004286766, 0.02674630843102932, 0.008601533249020576, -0.03913712128996849, -0.03235706314444542, -0.0027458546683192253, 0.009010327979922295, 0.022607050836086273, -0.016502486541867256, -0.001326866215094924, -0.031085796654224396, -0.0017910486785694957, 0.06663468480110168, 0.057294346392154694, -0.025235354900360107, -0.02551482431590557, 0.03610297664999962, -0.01643526181578636, -0.05029754713177681, -0.015027347952127457, 0.004966848064213991, 0.02360876463353634, -0.03671212121844292, -0.04947179928421974, -0.04430360347032547, 0.01484735868871212, 0.002157794311642647, -0.0333695225417614, -0.09638559073209763, 0.015495085157454014, -0.022851644083857536, -0.01626191847026348, -0.004494245629757643, 0.03733943775296211, 0.09410114586353302, 0.05781779810786247, -0.033993806689977646, 0.0640779510140419, -0.07096988707780838, -0.030946269631385803, -0.013552583754062653, 0.05363727733492851, 0.03922652825713158, -2.1430797504986063e-33, -0.06896677613258362, 0.00644308514893055, -0.07754654437303543, -0.022202447056770325, -0.02845047414302826, -0.05166942998766899, 0.030001986771821976, -0.06760168075561523, 0.05365881323814392, 0.039974112063646317, -0.015692681074142456, 0.014491361565887928, -0.010418815538287163, 0.036139555275440216, 0.012939576990902424, -0.050223611295223236, -0.02800324559211731, 0.0011189866345375776, 0.001353495754301548, 0.016494549810886383, -0.02045954018831253, 0.11715451627969742, -0.1425841897726059, 0.02059832774102688, 0.052691780030727386, 0.018316620960831642, 0.017009809613227844, 0.028448041528463364, 0.026428069919347763, -0.01279909722507, -0.010887482203543186, 0.0373595654964447, -0.09250344336032867, 0.10353933274745941, -0.009446782991290092, -0.029334543272852898, 0.0190272256731987, -0.010526749305427074, -0.007076754700392485, -0.02599572017788887, 0.023182468488812447, -0.06508328020572662, -0.053072910755872726, -0.06057620793581009, -0.03442884236574173, -0.002420589793473482, 0.0012765281135216355, -0.06244431808590889, -0.008885929360985756, -0.06075901538133621, -0.022592609748244286, 0.01584523916244507, 0.04564223065972328, -0.014665388502180576, -0.041242312639951706, 0.07275303453207016, 0.03158614784479141, 0.024732248857617378, -0.014428072609007359, -0.1387902796268463, 0.029313892126083374, 0.009571724571287632, -0.011495647951960564, 0.006271016784012318, -0.017480213195085526, -0.026152566075325012, 0.029923101887106895, -0.039930928498506546, 0.04903090000152588, -0.1576039046049118, 0.008309608325362206, 0.0560835599899292, 0.06132768839597702, -0.013241585344076157, 0.023142384365200996, -0.007463281974196434, -0.09657362848520279, 0.025141453370451927, -0.0018754489719867706, 0.013216937892138958, -0.0719379186630249, 0.04164280369877815, 0.035493332892656326, 0.0786815658211708, -0.01160297729074955, -0.10416197031736374, 0.030126355588436127, 0.01184132695198059, 0.00517592066898942, -0.011531380005180836, -0.03784780949354172, 0.02377733215689659, 0.007774383760988712, 0.0849771574139595, 0.0070565240457654, -4.909013284759567e-8, -0.013149911537766457, -0.06291666626930237, -0.06255065649747849, -0.032995231449604034, 0.014578218571841717, -0.04146134853363037, -0.009057705290615559, -0.020266452804207802, -0.05191028118133545, 0.002089291112497449, 0.01263057067990303, -0.0011169880162924528, -0.07648087292909622, 0.021071244031190872, -0.0020069642923772335, -0.010644053108990192, -0.0351085364818573, 0.041100382804870605, 0.013297995552420616, -0.08900377154350281, -0.04023752734065056, -0.011861336417496204, 0.03760669752955437, -0.0755586102604866, -0.11990737915039062, -0.02667398937046528, 0.009318341501057148, 0.0033251831773668528, -0.08222474157810211, 0.04364048317074776, 0.062216032296419144, -0.02680385299026966, 0.12310696393251419, 0.012246367521584034, 0.0612344853579998, 0.025487136095762253, 0.03154252469539642, 0.009941641241312027, -0.00846138410270214, -0.004410926718264818, 0.028020082041621208, -0.012976313009858131, -0.055341433733701706, -0.005920063704252243, 0.10404662042856216, -0.023921677842736244, 0.017684748396277428, -0.021884353831410408, 0.0960896834731102, -0.033279601484537125, -0.014207745902240276, 0.04053822532296181, -0.02987166866660118, -0.006142134312540293, 0.07123947888612747, 0.0057608685456216335, -0.022304175421595573, -0.059478841722011566, 0.041109275072813034, 0.05252593010663986, -0.0707600861787796, 0.05332237482070923, 0.12273120135068893, -0.002136686583980918 ]
0.152687
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 └── ... ``` ## 核心集成流程 ### 1. 运行嵌入式智能体 主入口点是 `pi-embedded-runner/run.ts` 中的 `runEmbeddedPiAgent()`: ```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. 会话创建 在 `runEmbeddedAttempt()`(由 `runEmbeddedPiAgent()` 调用)内部,使用 pi SDK: ```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. 事件订阅 `subscribeEmbeddedPiSession()` 订阅 pi 的 `AgentSession` 事件: ```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, }); ``` 处理的事件包括: - `message\_start` / `message\_end` / `message\_update`(流式文本/思考) - `tool\_execution\_start` / `tool\_execution\_update` / `tool\_execution\_end` - `turn\_start` / `turn\_end` - `agent\_start` / `agent\_end` - `auto\_compaction\_start` / `auto\_compaction\_end` ### 4. 提示 设置完成后,会话被提示: ```typescript await session.prompt(effectivePrompt, { images: imageResult.images }); ``` SDK 处理完整的智能体循环:发送到 LLM、执行工具调用、流式响应。 ## 工具架构 ### 工具管道 1. \*\*基础工具\*\*:pi 的 `codingTools`(read、bash、edit、write) 2. \*\*自定义替换\*\*:OpenClaw 将 bash 替换为 `exec`/`process`,为沙箱自定义 read/edit/write 3. \*\*OpenClaw 工具\*\*:消息、浏览器、画布、会话、定时任务、Gateway 网关等 4. \*\*渠道工具\*\*:Discord/Telegram/Slack/WhatsApp 特定的操作工具 5. \*\*策略过滤\*\*:工具按配置文件、提供商、智能体、群组、沙箱策略过滤 6. \*\*Schema 规范化\*\*:为 Gemini/OpenAI 的特殊情况清理 Schema 7. \*\*AbortSignal 包装\*\*:工具被包装以尊重中止信号 ### 工具定义适配器 pi-agent-core 的 `AgentTool` 与 pi-coding-agent 的 `ToolDefinition` 有不同的 `execute` 签名。`pi-tool-definition-adapter.ts` 中的适配器桥接了这一点: ```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); }, })); } ``` ### 工具拆分策略 `splitSdkTools()` 通过 `customTools` 传递所有工具: ```typescript export function splitSdkTools(options: { tools: AnyAgentTool[]; sandboxEnabled: boolean }) { return { builtInTools: [], // Empty. We override everything customTools: toToolDefinitions(options.tools), }; } ``` 这确保 OpenClaw 的策略过滤、沙箱集成和扩展工具集在各提供商之间保持一致。 ## 系统提示构建 系统提示在 `buildAgentSystemPrompt()`(`system-prompt.ts`)中构建。它组装一个完整的提示,包含工具、工具调用风格、安全护栏、OpenClaw CLI 参考、Skills、文档、工作区、沙箱、消息、回复标签、语音、静默回复、心跳、运行时元数据等部分,以及启用时的记忆和反应,还有可选的上下文文件和额外系统提示内容。部分内容在子智能体使用的最小提示模式下会被裁剪。 提示在会话创建后通过 `applySystemPromptOverrideToSession()` 应用: ```typescript const systemPromptOverride = createSystemPromptOverride(appendPrompt); applySystemPromptOverrideToSession(session, systemPromptOverride); ``` ## 会话管理 ### 会话文件 会话是具有树结构(id/parentId 链接)的 JSONL 文件。Pi 的 `SessionManager` 处理持久化: ```typescript const sessionManager = SessionManager.open(params.sessionFile); ``` OpenClaw 用 `guardSessionManager()` 包装它以确保工具结果安全。 ### 会话缓存 `session-manager-cache.ts` 缓存 SessionManager 实例以避免重复的文件解析: ```typescript await prewarmSessionFile(params.sessionFile); sessionManager = SessionManager.open(params.sessionFile); trackSessionManagerAccess(params.sessionFile); ``` ### 历史限制 `limitHistoryTurns()` 根据渠道类型(私信 vs 群组)裁剪对话历史。 ### 压缩 自动压缩在上下文溢出时触发。`compactEmbeddedPiSessionDirect()` 处理手动压缩: ```typescript const compactResult = await compactEmbeddedPiSessionDirect({ sessionId, sessionFile, provider, model, ... }); ``` ## 认证与模型解析 ### 认证配置文件 OpenClaw 维护一个认证配置文件存储,每个提供商有多个 API 密钥: ```typescript const authStore = ensureAuthProfileStore(agentDir, { allowKeychainPrompt: false }); const profileOrder = resolveAuthProfileOrder({ cfg, store: authStore, provider, preferredProfile }); ``` 配置文件在失败时轮换,并带有冷却跟踪: ```typescript await markAuthProfileFailure({ store, profileId, reason, cfg, agentDir }); const rotated = await advanceAuthProfile(); ``` ### 模型解析 ```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); ``` ### 故障转移 `FailoverError` 在配置了回退时触发模型回退: ```typescript if (fallbackConfigured && isFailoverErrorMessage(errorText)) { throw new FailoverError(errorText, { reason: promptFailoverReason ?? "unknown", provider, model: modelId, profileId, status: resolveFailoverStatus(promptFailoverReason), }); } ``` ## Pi 扩展 OpenClaw 加载自定义 pi 扩展以实现特殊行为: ### 压缩安全护栏 `pi-extensions/compaction-safeguard.ts` 为压缩添加护栏,包括自适应令牌预算以及工具失败和文件操作摘要: ```typescript if (resolveCompactionMode(params.cfg) === "safeguard") { setCompactionSafeguardRuntime(params.sessionManager, { maxHistoryShare }); paths.push(resolvePiExtensionPath("compaction-safeguard")); } ``` ### 上下文裁剪 `pi-extensions/context-pruning.ts` 实现基于缓存 TTL 的上下文裁剪: ```typescript if (cfg?.agents?.defaults?.contextPruning?.mode === "cache-ttl") { setContextPruningRuntime(params.sessionManager, { settings, contextWindowTokens, isToolPrunable, lastCacheTouchAt, }); paths.push(resolvePiExtensionPath("context-pruning")); } ``` ## 流式传输与块回复 ###
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/pi.md
main
opebclaw
[ -0.106029212474823, 0.0036768964491784573, -0.010431550443172455, 0.008584513328969479, -0.0040891049429774284, -0.01947299763560295, 0.07834168523550034, 0.07997312396764755, -0.0022964919917285442, 0.030014552175998688, 0.06453388184309006, -0.021187342703342438, -0.007410992402583361, 0.030743692070245743, 0.09839198738336563, 0.045902471989393234, -0.02595093473792076, -0.07339444756507874, 0.007619840558618307, -0.10130278766155243, -0.023276735097169876, -0.013842667452991009, 0.09174123406410217, -0.0029082810506224632, -0.016432834789156914, -0.023502402007579803, -0.045187339186668396, -0.07300166040658951, 0.031366635113954544, 0.027369726449251175, 0.03890024870634079, -0.018485208973288536, -0.04590294882655144, 0.03288755193352699, 0.06058117747306824, 0.14719407260417938, -0.03220544382929802, 0.011532098054885864, 0.00009158553439192474, 0.058109622448682785, 0.06500527262687683, -0.02334163337945938, -0.04598718509078026, -0.12221088260412216, 0.10169768333435059, -0.07257752865552902, -0.08219654858112335, -0.03707027807831764, -0.05114194005727768, -0.022480947896838188, -0.027039842680096626, -0.025412337854504585, 0.003500082064419985, 0.016441071406006813, 0.020576827228069305, 0.007994148880243301, -0.0607830286026001, 0.10173628479242325, 0.10227770358324051, 0.0014868981670588255, -0.013967745937407017, -0.037742871791124344, 0.017867928370833397, -0.037129614502191544, -0.05474060773849487, 0.028547028079628944, -0.02887013368308544, -0.051002997905015945, 0.002777411602437496, -0.029085131362080574, -0.06439665704965591, 0.02716018259525299, -0.05972412973642349, -0.045317526906728745, -0.06617380678653717, -0.03374851122498512, -0.00184813910163939, 0.04322100430727005, -0.12695953249931335, -0.10246244817972183, 0.011067529208958149, -0.06688515841960907, 0.005766128655523062, 0.054204460233449936, 0.046527937054634094, 0.14060690999031067, 0.0563831627368927, -0.06576631218194962, 0.0723666399717331, -0.014165736734867096, -0.01257089152932167, 0.005181754007935524, -0.032888658344745636, 0.022131457924842834, 0.06174713000655174, 0.03374768793582916, -0.04441213980317116, 0.07531652599573135, -0.07441511005163193, 0.11718397587537766, 0.021032217890024185, -0.06031457707285881, -0.030510738492012024, -0.004652982112020254, 0.01425234880298376, 0.038653720170259476, -0.028882263228297234, -0.030060680583119392, 0.031831711530685425, -0.04021710529923439, -0.03480244055390358, -0.025041894987225533, 0.03159390389919281, -0.030310874804854393, 0.03762159124016762, -0.019581185653805733, -0.00766275217756629, 0.03281967341899872, 0.057202618569135666, 0.08598368614912033, 0.15801426768302917, 0.0022419241722673178, -0.0457107312977314, 0.023319777101278305, 0.02808913215994835, 0.02118014357984066, 0.08715981245040894, 3.634066866848011e-33, 0.038145896047353745, 0.00028995698085054755, -0.05503302440047264, 0.012627089396119118, 0.054830387234687805, -0.004189237020909786, 0.01931668631732464, -0.008290018886327744, -0.0929681733250618, 0.0009569505346007645, -0.08821489661931992, 0.05341443419456482, -0.054352663457393646, 0.061676785349845886, 0.01029675081372261, -0.06762002408504486, -0.00994985643774271, 0.0012580757029354572, 0.09078589081764221, -0.0034488525707274675, 0.02041851170361042, 0.0166159737855196, -0.06998755037784576, 0.020895330235362053, -0.023272722959518433, 0.030493006110191345, 0.008633690886199474, -0.017097938805818558, -0.0073080421425402164, 0.015843840315937996, -0.009278629906475544, 0.03950822353363037, 0.03712918981909752, 0.1058705523610115, -0.012956982478499413, -0.04937237501144409, -0.05449181795120239, -0.017423542216420174, -0.1106453612446785, -0.05175328254699707, 0.03385663777589798, 0.017704591155052185, -0.08920185267925262, -0.0796438530087471, 0.03540303185582161, -0.08614498376846313, -0.022687943652272224, 0.028420470654964447, 0.07240991294384003, -0.04154836758971214, -0.022930871695280075, 0.10964363813400269, 0.08342072367668152, -0.05075881630182266, 0.028649110347032547, -0.08908640593290329, -0.005930096842348576, -0.005801898892968893, 0.051572155207395554, 0.00044225380406714976, 0.04308607801795006, -0.012320215813815594, -0.0281106848269701, 0.01677009090781212, 0.03004002757370472, -0.033124495297670364, -0.021483587101101875, 0.011268475092947483, -0.013135883957147598, -0.01819385588169098, -0.05268381908535957, 0.07174431532621384, -0.07076102495193481, 0.03514709323644638, -0.020376503467559814, -0.06521717458963394, -0.026709362864494324, 0.06852436065673828, -0.07181387394666672, -0.056449659168720245, -0.03951391950249672, -0.09558764100074768, -0.05079448223114014, -0.05262112617492676, 0.04114660620689392, -0.00468134181573987, 0.03354836255311966, -0.04984389618039131, 0.022063298150897026, 0.02229912392795086, -0.07089854776859283, 0.013470862060785294, -0.04761701822280884, 0.06453412026166916, -0.01499546691775322, -4.5986290419908084e-33, 0.030246246606111526, 0.03547634556889534, -0.04166002571582794, 0.04930518567562103, -0.03768693283200264, -0.030363818630576134, 0.09395291656255722, -0.04140752926468849, 0.03528602793812752, 0.05928707867860794, 0.0026428562123328447, -0.004295959137380123, 0.01974198967218399, -0.04521643742918968, 0.03388961777091026, 0.03271564468741417, -0.053974591195583344, -0.009289499372243881, -0.03459065407514572, 0.0006205761455930769, -0.04498893395066261, 0.11376800388097763, -0.03547447547316551, 0.06365792453289032, 0.030062571167945862, 0.032213907688856125, 0.11456006020307541, 0.015415438450872898, -0.04448137432336807, -0.017999453470110893, -0.022668279707431793, -0.04818261042237282, -0.10974497348070145, 0.1044086217880249, 0.019735148176550865, 0.031082425266504288, 0.06829441338777542, 0.054997581988573074, -0.010261151008307934, -0.07945932447910309, 0.1328417956829071, -0.05790765956044197, -0.07508637756109238, 0.010111342184245586, 0.004260473884642124, 0.04368364065885544, -0.06306242942810059, 0.026172297075390816, -0.16787248849868774, -0.024300003424286842, 0.05497153103351593, -0.03606715798377991, 0.05877907946705818, -0.02430596388876438, 0.013048699125647545, -0.0034014477860182524, 0.028257790952920914, -0.07967977970838547, -0.0870593935251236, -0.04384320229291916, 0.043346475809812546, -0.0998523086309433, 0.02749769389629364, 0.02044607326388359, 0.03346439078450203, -0.018226509913802147, -0.08444292098283768, 0.04302068427205086, -0.0022620053496211767, -0.01893971487879753, 0.014471633359789848, 0.003730853321030736, -0.00025288888718932867, -0.0261710062623024, -0.01583798974752426, 0.03194497525691986, -0.04734228178858757, -0.07942972332239151, 0.05380614101886749, 0.051032938063144684, -0.06641274690628052, 0.015371672809123993, 0.027010643854737282, -0.03554711490869522, -0.08942048996686935, 0.04153230041265488, -0.015192359685897827, 0.10657145828008652, 0.024173472076654434, -0.05055103078484535, -0.008251766674220562, 0.05289531499147415, 0.028948692604899406, 0.05774906277656555, 0.035494107753038406, -5.675346059774711e-8, -0.009988264180719852, -0.030842849984765053, -0.055998463183641434, 0.034943193197250366, 0.03166266903281212, -0.041803859174251556, -0.002687795553356409, -0.03650141879916191, 0.030058173462748528, -0.016488417983055115, -0.005382508505135775, -0.0008484790450893342, 0.030379170551896095, 0.03773973137140274, 0.006115580443292856, -0.001603618380613625, -0.10810626298189163, 0.08614867180585861, 0.011437274515628815, -0.028603652492165565, -0.008833060041069984, -0.013946057297289371, 0.04222692921757698, 0.004191424697637558, -0.005475587211549282, -0.0656290128827095, -0.00022107857512310147, 0.04905197396874428, -0.08534523099660873, 0.013113655149936676, -0.03324966877698898, -0.07644644379615784, 0.025767523795366287, -0.004026997368782759, -0.041325733065605164, 0.06812059134244919, 0.019960185512900352, -0.0560910627245903, 0.019329363480210304, 0.020656008273363113, 0.022866753861308098, 0.02435366064310074, -0.0030775307677686214, -0.0631398856639862, 0.011219680309295654, -0.022985046729445457, -0.046833232045173645, -0.030287107452750206, 0.027713755145668983, 0.005134582985192537, -0.0034117354080080986, 0.009245432913303375, 0.02982296235859394, 0.040011968463659286, 0.04146294668316841, -0.04849819466471672, 0.0865316167473793, -0.06901198625564575, -0.014639177359640598, 0.05817655101418495, -0.04417691379785538, 0.01561001967638731, 0.06348709762096405, -0.013225176371634007 ]
0.175255
``` ## Pi 扩展 OpenClaw 加载自定义 pi 扩展以实现特殊行为: ### 压缩安全护栏 `pi-extensions/compaction-safeguard.ts` 为压缩添加护栏,包括自适应令牌预算以及工具失败和文件操作摘要: ```typescript if (resolveCompactionMode(params.cfg) === "safeguard") { setCompactionSafeguardRuntime(params.sessionManager, { maxHistoryShare }); paths.push(resolvePiExtensionPath("compaction-safeguard")); } ``` ### 上下文裁剪 `pi-extensions/context-pruning.ts` 实现基于缓存 TTL 的上下文裁剪: ```typescript if (cfg?.agents?.defaults?.contextPruning?.mode === "cache-ttl") { setContextPruningRuntime(params.sessionManager, { settings, contextWindowTokens, isToolPrunable, lastCacheTouchAt, }); paths.push(resolvePiExtensionPath("context-pruning")); } ``` ## 流式传输与块回复 ### 块分块 `EmbeddedBlockChunker` 管理将流式文本分成离散的回复块: ```typescript const blockChunker = blockChunking ? new EmbeddedBlockChunker(blockChunking) : null; ``` ### 思考/最终标签剥离 流式输出被处理以剥离 ``/`` 块并提取 `` 内容: ```typescript const stripBlockTags = (text: string, state: { thinking: boolean; final: boolean }) => { // Strip ... content // If enforceFinalTag, only return ... content }; ``` ### 回复指令 回复指令如 `[[media:url]]`、`[[voice]]`、`[[reply:id]]` 被解析和提取: ```typescript const { text: cleanedText, mediaUrls, audioAsVoice, replyToId } = consumeReplyDirectives(chunk); ``` ## 错误处理 ### 错误分类 `pi-embedded-helpers.ts` 对错误进行分类以进行适当处理: ```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" | ... ``` ### 思考级别回退 如果思考级别不受支持,它会回退: ```typescript const fallbackThinking = pickFallbackThinkingLevel({ message: errorText, attempted: attemptedThinking, }); if (fallbackThinking) { thinkLevel = fallbackThinking; continue; } ``` ## 沙箱集成 当启用沙箱模式时,工具和路径受到约束: ```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 } ``` ## 提供商特定处理 ### Anthropic - 拒绝魔术字符串清除 - 连续角色的回合验证 - Claude Code 参数兼容性 ### Google/Gemini - 回合排序修复(`applyGoogleTurnOrderingFix`) - 工具 schema 清理(`sanitizeToolsForGoogle`) - 会话历史清理(`sanitizeSessionHistory`) ### OpenAI - Codex 模型的 `apply\_patch` 工具 - 思考级别降级处理 ## TUI 集成 OpenClaw 还有一个本地 TUI 模式,直接使用 pi-tui 组件: ```typescript // src/tui/tui.ts import { ... } from "@mariozechner/pi-tui"; ``` 这提供了与 pi 原生模式类似的交互式终端体验。 ## 与 Pi CLI 的主要区别 | 方面 | Pi CLI | OpenClaw 嵌入式 | | -------- | ----------------------- | ----------------------------------------------------------------------------------------------- | | 调用方式 | `pi` 命令 / RPC | 通过 `createAgentSession()` 的 SDK | | 工具 | 默认编码工具 | 自定义 OpenClaw 工具套件 | | 系统提示 | AGENTS.md + prompts | 按渠道/上下文动态生成 | | 会话存储 | `~/.pi/agent/sessions/` | `~/.openclaw/agents//sessions/`(或 `$OPENCLAW\_STATE\_DIR/agents//sessions/`) | | 认证 | 单一凭证 | 带轮换的多配置文件 | | 扩展 | 从磁盘加载 | 编程方式 + 磁盘路径 | | 事件处理 | TUI 渲染 | 基于回调(onBlockReply 等) | ## 未来考虑 可能需要重构的领域: 1. \*\*工具签名对齐\*\*:目前在 pi-agent-core 和 pi-coding-agent 签名之间适配 2. \*\*会话管理器包装\*\*:`guardSessionManager` 增加了安全性但增加了复杂性 3. \*\*扩展加载\*\*:可以更直接地使用 pi 的 `ResourceLoader` 4. \*\*流式处理器复杂性\*\*:`subscribeEmbeddedPiSession` 已经变得很大 5. \*\*提供商特殊情况\*\*:许多提供商特定的代码路径,pi 可能可以处理 ## 测试 所有涵盖 pi 集成及其扩展的现有测试: - `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`(实时) - `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/zh-CN/pi.md
main
opebclaw
[ -0.049659401178359985, 0.03815581277012825, -0.045130785554647446, 0.00033265165984630585, -0.030701374635100365, 0.042884863913059235, 0.060881052166223526, 0.10361558198928833, -0.0016915415180847049, -0.0029699988663196564, 0.050071291625499725, -0.017742207273840904, 0.0184258334338665, 0.019472844898700714, 0.09384092688560486, -0.0052911341190338135, -0.03543240949511528, -0.01002727821469307, -0.05206521973013878, -0.06464873999357224, 0.03935948386788368, -0.0018863677978515625, 0.041231054812669754, -0.03670753166079521, -0.023244094103574753, 0.031391166150569916, -0.06173348426818848, -0.03702927753329277, 0.0871354192495346, 0.019479824230074883, -0.014144252985715866, 0.08385221660137177, -0.02727637067437172, -0.0305484589189291, 0.14599624276161194, 0.108248271048069, -0.05537434294819832, -0.02470737136900425, -0.0190852303057909, -0.011186533607542515, -0.01025058701634407, 0.05151437595486641, -0.002608150476589799, -0.036342035979032516, -0.0632353201508522, -0.03573364019393921, -0.07139076292514801, -0.0197463221848011, -0.12071464210748672, -0.04170330986380577, -0.023001253604888916, 0.051275189965963364, -0.02781178615987301, -0.052523404359817505, 0.013885041698813438, 0.047211069613695145, -0.09765996038913727, 0.043420735746622086, 0.015976542606949806, -0.005771517287939787, -0.048999689519405365, -0.019748881459236145, -0.030501747503876686, -0.026448598131537437, -0.03182874992489815, 0.06946117430925369, 0.005772001575678587, -0.03553615137934685, 0.048553310334682465, -0.002675070194527507, -0.11018068343400955, -0.0065355077385902405, 0.00662706233561039, 0.04659976437687874, -0.004419670440256596, -0.04067060351371765, -0.004376695957034826, 0.027933653444051743, -0.05511145666241646, -0.13090965151786804, -0.002945804735645652, -0.08021262288093567, 0.03366813436150551, 0.09069450199604034, -0.0024891747161746025, 0.12007581442594528, -0.0067621273919939995, -0.03911132737994194, 0.0812603160738945, 0.014279714785516262, 0.031524963676929474, -0.02665349282324314, -0.0002936648088507354, 0.08078616857528687, -0.04462778568267822, -0.010375895537436008, -0.06578753888607025, 0.0927221029996872, -0.0778079554438591, 0.09595805406570435, 0.03596626967191696, -0.031126458197832108, -0.012231686152517796, -0.004580116365104914, -0.05144776776432991, -0.04272574558854103, -0.02302412874996662, -0.05450936034321785, 0.03384599834680557, 0.030598755925893784, -0.009657537564635277, 0.013149476610124111, 0.019871816039085388, -0.06004434823989868, -0.005701730493456125, 0.017721690237522125, 0.028902601450681686, -0.037791866809129715, 0.024926746264100075, 0.05445418506860733, 0.09509037435054779, -0.03350195661187172, -0.06255022436380386, -0.023159293457865715, -0.012661810033023357, -0.0143883116543293, 0.16438987851142883, 2.6851051547795556e-33, -0.019715679809451103, -0.0248558446764946, -0.008640694431960583, 0.04380180314183235, 0.02508535236120224, 0.018485460430383682, 0.007433286402374506, 0.007883837446570396, -0.13444508612155914, 0.02904129959642887, 0.03504926338791847, 0.06138482689857483, -0.15922032296657562, -0.02451394870877266, -0.016746195033192635, -0.03275459259748459, 0.030356155708432198, 0.071280337870121, 0.0501088947057724, -0.06078755483031273, 0.024045554921030998, 0.06516681611537933, -0.0007645948207937181, -0.025378430262207985, 0.021527571603655815, 0.016691770404577255, 0.018741600215435028, -0.005603268276900053, -0.056087564677000046, 0.015086072497069836, 0.023765260353684425, 0.02254631370306015, -0.07395967096090317, 0.08452381193637848, -0.010118554346263409, 0.01768241450190544, -0.013879871927201748, 0.0042031193152070045, -0.07785101979970932, -0.013412275351583958, -0.02050717920064926, 0.011668255552649498, -0.02747265435755253, 0.006677266675978899, 0.02544426918029785, -0.12882672250270844, -0.03895312547683716, 0.00804879143834114, 0.05932328850030899, -0.010629567317664623, -0.017097458243370056, 0.07937169820070267, 0.01223034132272005, 0.0014385140966624022, -0.0043882341124117374, -0.06525727361440659, -0.03395296260714531, 0.03626803308725357, 0.0028101021889597178, -0.02810894325375557, 0.019592171534895897, -0.07076863944530487, -0.0051425667479634285, 0.06684762239456177, 0.11398979276418686, 0.01948752999305725, -0.00010333135287510231, 0.010215827263891697, 0.01400346215814352, -0.0629180297255516, -0.06660078465938568, -0.0023650764487683773, 0.09920862317085266, 0.061514876782894135, 0.004496503155678511, -0.04996643215417862, 0.020147666335105896, 0.06578186899423599, -0.03263058513402939, -0.07294433563947678, -0.01396557129919529, -0.06222757324576378, -0.01165346335619688, 0.08111796528100967, 0.010193864814937115, -0.027654921635985374, 0.012705675326287746, 0.012892660684883595, 0.03297724202275276, 0.02531621977686882, -0.09532216936349869, -0.07489701360464096, 0.03788040578365326, 0.02807409130036831, -0.03652219474315643, -5.055249822567726e-33, 0.09346238523721695, 0.014734683558344841, -0.06834696233272552, 0.0011315798619762063, -0.05394595488905907, -0.0763099417090416, 0.019998356699943542, 0.0009656345355324447, -0.019294822588562965, -0.05170586332678795, 0.037110548466444016, 0.023898178711533546, 0.0887180045247078, 0.025089360773563385, -0.03959685564041138, 0.10858257859945297, 0.0032826410606503487, -0.07832930982112885, -0.03796067461371422, 0.004657196346670389, 0.011428582482039928, -0.002171608153730631, -0.09548786282539368, 0.09394273161888123, -0.009054165333509445, 0.03286881744861603, 0.02986922115087509, 0.004469097591936588, -0.008108922280371189, 0.002624139189720154, 0.039001546800136566, 0.01924886740744114, -0.08872518688440323, 0.059970371425151825, -0.03179981932044029, -0.07842522114515305, 0.016645966097712517, 0.03277872875332832, -0.04610821232199669, 0.0177324041724205, 0.048108603805303574, -0.019554413855075836, -0.05711321905255318, -0.07071027159690857, 0.003776867175474763, -0.02246224880218506, 0.05649420991539955, -0.09962760657072067, -0.06519722938537598, -0.040455128997564316, 0.04327671602368355, -0.1005854681134224, -0.0034733694046735764, -0.08690685778856277, 0.019472995772957802, 0.04214336723089218, 0.035293515771627426, -0.12127058207988739, -0.09309031069278717, -0.07319961488246918, 0.1149974912405014, 0.009624725207686424, -0.03310195729136467, -0.05074393004179001, -0.0045973570086061954, 0.011659970507025719, -0.07454876601696014, 0.035353537648916245, 0.02177131548523903, -0.04896419867873192, -0.010204518213868141, -0.0003263191320002079, 0.04213283956050873, -0.038210902363061905, -0.007087486330419779, 0.0070668114349246025, 0.07524017244577408, -0.059301506727933884, 0.04311789944767952, 0.0406707264482975, -0.039819106459617615, 0.0008010571473278105, -0.041253913193941116, -0.03876301646232605, -0.03574799373745918, 0.056969065219163895, -0.05182638019323349, 0.10508964210748672, 0.021115200594067574, 0.03109975904226303, -0.0525258369743824, 0.046831391751766205, 0.011745466850697994, 0.043384190648794174, -0.02371997758746147, -5.378768719310756e-8, -0.11225627362728119, -0.030293138697743416, -0.13682715594768524, 0.02450142614543438, 0.03464094549417496, -0.044059887528419495, -0.024169687181711197, -0.024122687056660652, -0.02481510117650032, -0.07306020706892014, 0.00897262617945671, -0.02102947048842907, -0.019740799441933632, 0.01646767556667328, -0.02018379420042038, -0.04967905208468437, -0.07676652818918228, 0.053813736885786057, -0.04081300273537636, -0.04667460918426514, -0.07814335078001022, 0.003834808710962534, 0.061518408358097076, -0.038893863558769226, -0.0013780338922515512, -0.0021328479051589966, -0.001086863107047975, 0.07341425865888596, 0.002740134485065937, 0.10055674612522125, -0.050433963537216187, 0.007813156582415104, -0.0017262415494769812, -0.039899200201034546, -0.029365843161940575, 0.055806439369916916, 0.0937132015824318, -0.01741187646985054, 0.034408845007419586, -0.009157138876616955, 0.09072457253932953, 0.022129878401756287, -0.04480212926864624, 0.051608193665742874, 0.025739360600709915, -0.043242890387773514, 0.06726693361997604, 0.07062707096338272, 0.10414040833711624, -0.04096001386642456, -0.03007482923567295, 0.061829108744859695, -0.04644225165247917, 0.04341239854693413, 0.01795409433543682, 0.03996190428733826, 0.006754687055945396, 0.021446119993925095, -0.01197357289493084, 0.018266361206769943, -0.030550140887498856, -0.05806915462017059, 0.011773493140935898, -0.015276817604899406 ]
0.109011
# 调试 本页介绍用于流式输出的调试辅助工具,特别是当提供商将推理混入正常文本时。 ## 运行时调试覆盖 在聊天中使用 `/debug` 设置\*\*仅运行时\*\*配置覆盖(内存中,不写入磁盘)。 `/debug` 默认禁用;通过 `commands.debug: true` 启用。 当你需要切换不常用的设置而不编辑 `openclaw.json` 时,这非常方便。 示例: ``` /debug show /debug set messages.responsePrefix="[openclaw]" /debug unset messages.responsePrefix /debug reset ``` `/debug reset` 清除所有覆盖并返回到磁盘上的配置。 ## Gateway 网关监视模式 为了快速迭代,在文件监视器下运行 Gateway 网关: ```bash pnpm gateway:watch --force ``` 这映射到: ```bash tsx watch src/entry.ts gateway --force ``` 在 `gateway:watch` 后添加任何 Gateway 网关 CLI 标志,它们将在每次重启时传递。 ## Dev 配置文件 + dev Gateway 网关(--dev) 使用 dev 配置文件来隔离状态,并启动一个安全、可丢弃的调试设置。有\*\*两个\*\* `--dev` 标志: - \*\*全局 `--dev`(配置文件):\*\* 将状态隔离到 `~/.openclaw-dev` 下,并将 Gateway 网关端口默认为 `19001`(派生端口随之移动)。 - \*\*`gateway --dev`:告诉 Gateway 网关在缺失时自动创建默认配置 + 工作区\*\*(并跳过 BOOTSTRAP.md)。 推荐流程(dev 配置文件 + dev 引导): ```bash pnpm gateway:dev OPENCLAW\_PROFILE=dev openclaw tui ``` 如果你还没有全局安装,请通过 `pnpm openclaw ...` 运行 CLI。 这会执行: 1. \*\*配置文件隔离\*\*(全局 `--dev`) - `OPENCLAW\_PROFILE=dev` - `OPENCLAW\_STATE\_DIR=~/.openclaw-dev` - `OPENCLAW\_CONFIG\_PATH=~/.openclaw-dev/openclaw.json` - `OPENCLAW\_GATEWAY\_PORT=19001`(浏览器/画布相应移动) 2. \*\*Dev 引导\*\*(`gateway --dev`) - 如果缺失则写入最小配置(`gateway.mode=local`,绑定 loopback)。 - 将 `agent.workspace` 设置为 dev 工作区。 - 设置 `agent.skipBootstrap=true`(无 BOOTSTRAP.md)。 - 如果缺失则填充工作区文件: `AGENTS.md`、`SOUL.md`、`TOOLS.md`、`IDENTITY.md`、`USER.md`、`HEARTBEAT.md`。 - 默认身份:\*\*C3‑PO\*\*(礼仪机器人)。 - 在 dev 模式下跳过渠道提供商(`OPENCLAW\_SKIP\_CHANNELS=1`)。 重置流程(全新开始): ```bash pnpm gateway:dev:reset ``` 注意:`--dev` 是\*\*全局\*\*配置文件标志,会被某些运行器吞掉。 如果你需要明确拼写,请使用环境变量形式: ```bash OPENCLAW\_PROFILE=dev openclaw gateway --dev --reset ``` `--reset` 清除配置、凭证、会话和 dev 工作区(使用 `trash`,而非 `rm`),然后重新创建默认的 dev 设置。 提示:如果非 dev Gateway 网关已在运行(launchd/systemd),请先停止它: ```bash openclaw gateway stop ``` ## 原始流日志(OpenClaw) OpenClaw 可以在任何过滤/格式化之前记录\*\*原始助手流\*\*。 这是查看推理是否作为纯文本增量到达(或作为单独的思考块)的最佳方式。 通过 CLI 启用: ```bash pnpm gateway:watch --force --raw-stream ``` 可选路径覆盖: ```bash pnpm gateway:watch --force --raw-stream --raw-stream-path ~/.openclaw/logs/raw-stream.jsonl ``` 等效环境变量: ```bash OPENCLAW\_RAW\_STREAM=1 OPENCLAW\_RAW\_STREAM\_PATH=~/.openclaw/logs/raw-stream.jsonl ``` 默认文件: `~/.openclaw/logs/raw-stream.jsonl` ## 原始块日志(pi-mono) 要在解析为块之前捕获\*\*原始 OpenAI 兼容块\*\*,pi-mono 暴露了一个单独的日志记录器: ```bash PI\_RAW\_STREAM=1 ``` 可选路径: ```bash PI\_RAW\_STREAM\_PATH=~/.pi-mono/logs/raw-openai-completions.jsonl ``` 默认文件: `~/.pi-mono/logs/raw-openai-completions.jsonl` > 注意:这仅由使用 pi-mono 的 `openai-completions` 提供商的进程发出。 ## 安全注意事项 - 原始流日志可能包含完整提示、工具输出和用户数据。 - 保持日志在本地并在调试后删除它们。 - 如果你分享日志,请先清除密钥和个人身份信息。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/debugging.md
main
opebclaw
[ -0.04003452882170677, 0.027362795546650887, -0.02895445190370083, -0.008174649439752102, -0.017270702868700027, -0.06617788970470428, -0.005739989690482616, 0.06011500582098961, 0.038982558995485306, 0.0012834403896704316, 0.0970139354467392, -0.07022802531719208, 0.051159754395484924, -0.053831737488508224, 0.03785135969519615, 0.05373935401439667, -0.07125598192214966, -0.009652401320636272, -0.011916041374206543, -0.032303646206855774, -0.0416107103228569, 0.09472886472940445, -0.052414197474718094, 0.06126349791884422, -0.018429305404424667, 0.0017459951341152191, -0.060913775116205215, 0.03426685929298401, -0.06754309684038162, -0.035028234124183655, -0.0030426462180912495, 0.09828907996416092, -0.032481905072927475, 0.022225072607398033, 0.12959721684455872, 0.15145477652549744, 0.05171576142311096, -0.06227220222353935, -0.040906526148319244, -0.00873210933059454, 0.008862320333719254, 0.07278008759021759, -0.023596396669745445, -0.10220815986394882, 0.003341101808473468, -0.07156652957201004, -0.08710426092147827, -0.05315817892551422, -0.045854661613702774, -0.0024624234065413475, -0.024837171658873558, 0.03637434542179108, 0.021225517615675926, -0.04798249900341034, 0.047040339559316635, 0.011247154325246811, -0.03867730498313904, 0.0379524752497673, 0.009055810049176216, 0.013292614370584488, -0.05188174173235893, 0.016291188076138496, -0.05507538840174675, 0.04427681863307953, -0.09034575521945953, 0.023540841415524483, -0.0467650480568409, -0.001954351319000125, 0.0023707461077719927, 0.03835570439696312, -0.08590925484895706, 0.0058857291005551815, -0.05970009043812752, -0.0020816558972001076, -0.021999510005116463, 0.014045127667486668, 0.024718353524804115, -0.005742019508033991, -0.0944565013051033, -0.09645004570484161, -0.08161983639001846, -0.03021680936217308, 0.0026121933478862047, 0.07161610573530197, -0.00544180441647768, 0.11088933795690536, -0.05864971503615379, 0.015005422756075859, 0.09514766931533813, 0.04330013692378998, -0.012912371195852757, -0.10764983296394348, 0.004271496087312698, 0.060829710215330124, 0.0013039105106145144, 0.014925736002624035, 0.06419769674539566, 0.004246516153216362, -0.09951610863208771, 0.0343027263879776, 0.054491497576236725, 0.013924194499850273, 0.04051356017589569, 0.00473756343126297, -0.00013329174544196576, -0.0007622329867444932, 0.04279150068759918, 0.03209644556045532, 0.04497323930263519, -0.04472552612423897, -0.009275786578655243, -0.048989105969667435, 0.004659987986087799, -0.11346504092216492, -0.0031351400539278984, 0.04758533462882042, 0.0036428826861083508, -0.039091601967811584, -0.012691657058894634, 0.01923968456685543, 0.1082218736410141, -0.009144008159637451, -0.08174996078014374, -0.004278065636754036, 0.021240051835775375, -0.01120605319738388, 0.10313746333122253, 4.215138336372438e-33, 0.011824908666312695, -0.06605669111013412, 0.030368981882929802, -0.010327979922294617, 0.11537346243858337, -0.016499875113368034, 0.02842254936695099, 0.01986493170261383, -0.057200364768505096, 0.044075727462768555, 0.005982200149446726, 0.018758181482553482, -0.044231269508600235, -0.01729852892458439, -0.036236412823200226, -0.001945426338352263, 0.01930173859000206, -0.01791977509856224, 0.017936069518327713, -0.027602190151810646, 0.028604455292224884, -0.03942792862653732, -0.01195278950035572, -0.02765106037259102, 0.022939298301935196, 0.041813675314188004, 0.035256098955869675, 0.02050168626010418, -0.04073832184076309, 0.03190451115369797, 0.044478125870227814, -0.053987257182598114, -0.019531015306711197, 0.03895248845219612, -0.033909935504198074, -0.041297588497400284, -0.06619439274072647, -0.00009360610420117155, -0.05522657558321953, 0.014791849069297314, -0.04896697774529457, -0.0324774831533432, -0.11283694952726364, -0.008438242599368095, 0.07460296899080276, -0.10039885342121124, -0.1351323276758194, -0.022687625139951706, 0.021905386820435524, -0.012572353705763817, -0.036329299211502075, 0.09108226001262665, 0.038125354796648026, -0.027637196704745293, 0.03565557673573494, -0.05994211882352829, -0.04878278449177742, -0.033011555671691895, -0.03831023722887039, -0.030047299340367317, 0.024648480117321014, 0.02257281169295311, -0.018964895978569984, 0.02555440552532673, 0.10327726602554321, -0.02586675062775612, -0.00849040038883686, -0.000625543063506484, -0.016215546056628227, -0.03525887429714203, -0.08081217110157013, -0.03505321964621544, 0.10745614767074585, 0.07069391757249832, -0.03137767314910889, -0.043584514409303665, -0.03086916171014309, 0.027343111112713814, 0.08690353482961655, -0.03455608710646629, -0.011530525051057339, -0.06971923261880875, -0.08453399688005447, -0.010576064698398113, 0.048271842300891876, 0.0621696300804615, 0.04026693105697632, 0.030795881524682045, -0.016258656978607178, 0.07381463795900345, -0.09767859429121017, 0.02386927418410778, -0.026589518412947655, -0.028955139219760895, -0.023362254723906517, -9.628477166321234e-33, -0.02681427262723446, 0.06561310589313507, -0.07664453983306885, -0.023431070148944855, -0.07185209542512894, -0.08123711496591568, 0.057224683463573456, 0.016658993437886238, 0.07427193969488144, 0.04209139943122864, -0.08362007141113281, 0.0730372741818428, -0.041450634598731995, -0.006753868423402309, 0.03796274587512016, 0.04403020441532135, -0.009056131355464458, -0.029269995167851448, -0.01945522055029869, 0.003522729268297553, -0.025562621653079987, 0.04455127939581871, -0.07574456185102463, 0.03098413161933422, -0.03265445679426193, -0.020380832254886627, 0.10801725089550018, 0.013575118966400623, -0.0654403567314148, -0.03543766215443611, 0.03188136965036392, 0.09080378711223602, -0.06420580297708511, 0.13732266426086426, -0.0011840895749628544, -0.07645662128925323, 0.042252957820892334, -0.031352449208498, -0.03089716099202633, 0.0023333353456109762, 0.07673080265522003, 0.007259475998580456, -0.021309753879904747, 0.009689083322882652, 0.03136734291911125, 0.01801721751689911, -0.02642333135008812, -0.052461713552474976, -0.03466609865427017, -0.051407214254140854, 0.01518896222114563, -0.06755342334508896, 0.05778484418988228, -0.01994463987648487, -0.016793493181467056, -0.006113088224083185, 0.01930825784802437, -0.038983773440122604, -0.0500277504324913, -0.0990506112575531, -0.001556515577249229, -0.02860814705491066, -0.0316469706594944, 0.015957923606038094, -0.03403480723500252, -0.047082558274269104, -0.026076719164848328, 0.046901337802410126, 0.01722670905292034, -0.15359598398208618, -0.03303806483745575, -0.007940059527754784, 0.004947479348629713, -0.06156613677740097, 0.025161826983094215, 0.04346393793821335, -0.058836501091718674, -0.021064162254333496, -0.01796521618962288, 0.08560705184936523, 0.03524798899888992, -0.03167368099093437, -0.0406096987426281, 0.07981865108013153, -0.026545265689492226, -0.07758888602256775, -0.04639960452914238, 0.1513988971710205, -0.014130117371678352, -0.029693441465497017, -0.008209352381527424, 0.003320811316370964, -0.002204505493864417, 0.07163796573877335, 0.010453258641064167, -5.828480453828888e-8, -0.07412868738174438, -0.09330929815769196, -0.07797275483608246, -0.013541357591748238, 0.03448348492383957, 0.009629391133785248, -0.03414670005440712, 0.006002414971590042, -0.04825172945857048, -0.05391795188188553, 0.021112162619829178, 0.04300372675061226, -0.10037542134523392, 0.00853174738585949, -0.06198769435286522, -0.02116059698164463, -0.060036055743694305, 0.03184271976351738, 0.021530602127313614, -0.09607987850904465, 0.018620839342474937, 0.04179169237613678, 0.02911166101694107, -0.03451884537935257, -0.04600529372692108, -0.030552150681614876, -0.032492443919181824, 0.01999877206981182, -0.08962015807628632, -0.0680994838476181, 0.016697417944669724, -0.01049848087131977, 0.0455276295542717, -0.051123831421136856, 0.039012663066387177, 0.000043213778553763404, 0.09075498580932617, -0.007382296957075596, 0.054434437304735184, -0.013829436153173447, 0.003616859670728445, -0.0013494421727955341, -0.01648670807480812, 0.0000021535954601858975, -0.08224073797464371, -0.06861894577741623, 0.06460733711719513, 0.058281973004341125, 0.06401021033525467, -0.10148168355226517, -0.05063936114311218, -0.010296083986759186, 0.02830805443227291, 0.01615656167268753, -0.0004160614626016468, 0.06233906373381615, 0.0000073712417361093685, -0.07831452041864395, -0.021678224205970764, 0.06761162728071213, 0.02539614588022232, 0.06026126816868782, 0.033969927579164505, 0.02896583266556263 ]
0.042482
# 多智能体沙箱与工具配置 ## 概述 多智能体设置中的每个智能体现在可以拥有自己的: - \*\*沙箱配置\*\*(`agents.list[].sandbox` 覆盖 `agents.defaults.sandbox`) - \*\*工具限制\*\*(`tools.allow` / `tools.deny`,以及 `agents.list[].tools`) 这允许你运行具有不同安全配置文件的多个智能体: - 具有完全访问权限的个人助手 - 具有受限工具的家庭/工作智能体 - 在沙箱中运行的面向公众的智能体 `setupCommand` 属于 `sandbox.docker` 下(全局或按智能体),在容器创建时运行一次。 认证是按智能体的:每个智能体从其自己的 `agentDir` 认证存储读取: ``` ~/.openclaw/agents//agent/auth-profiles.json ``` 凭证\*\*不会\*\*在智能体之间共享。切勿在智能体之间重用 `agentDir`。 如果你想共享凭证,请将 `auth-profiles.json` 复制到其他智能体的 `agentDir` 中。 有关沙箱隔离在运行时的行为,请参见[沙箱隔离](/gateway/sandboxing)。 有关调试"为什么这被阻止了?",请参见[沙箱 vs 工具策略 vs 提权](/gateway/sandbox-vs-tool-policy-vs-elevated) 和 `openclaw sandbox explain`。 --- ## 配置示例 ### 示例 1:个人 + 受限家庭智能体 ```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" } } } ] } ``` \*\*结果:\*\* - `main` 智能体:在主机上运行,完全工具访问 - `family` 智能体:在 Docker 中运行(每个智能体一个容器),仅有 `read` 工具 --- ### 示例 2:具有共享沙箱的工作智能体 ```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"] } } ] } } ``` --- ### 示例 2b:全局编码配置文件 + 仅消息智能体 ```json { "tools": { "profile": "coding" }, "agents": { "list": [ { "id": "support", "tools": { "profile": "messaging", "allow": ["slack"] } } ] } } ``` \*\*结果:\*\* - 默认智能体获得编码工具 - `support` 智能体仅用于消息(+ Slack 工具) --- ### 示例 3:每个智能体不同的沙箱模式 ```json { "agents": { "defaults": { "sandbox": { "mode": "non-main", // 全局默认 "scope": "session" } }, "list": [ { "id": "main", "workspace": "~/.openclaw/workspace", "sandbox": { "mode": "off" // 覆盖:main 永不沙箱隔离 } }, { "id": "public", "workspace": "~/.openclaw/workspace-public", "sandbox": { "mode": "all", // 覆盖:public 始终沙箱隔离 "scope": "agent" }, "tools": { "allow": ["read"], "deny": ["exec", "write", "edit", "apply\_patch"] } } ] } } ``` --- ## 配置优先级 当全局(`agents.defaults.\*`)和智能体特定(`agents.list[].\*`)配置同时存在时: ### 沙箱配置 智能体特定设置覆盖全局: ``` 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.\* ``` \*\*注意事项:\*\* - `agents.list[].sandbox.{docker,browser,prune}.\*` 为该智能体覆盖 `agents.defaults.sandbox.{docker,browser,prune}.\*`(当沙箱 scope 解析为 `"shared"` 时忽略)。 ### 工具限制 过滤顺序是: 1. \*\*工具配置文件\*\*(`tools.profile` 或 `agents.list[].tools.profile`) 2. \*\*提供商工具配置文件\*\*(`tools.byProvider[provider].profile` 或 `agents.list[].tools.byProvider[provider].profile`) 3. \*\*全局工具策略\*\*(`tools.allow` / `tools.deny`) 4. \*\*提供商工具策略\*\*(`tools.byProvider[provider].allow/deny`) 5. \*\*智能体特定工具策略\*\*(`agents.list[].tools.allow/deny`) 6. \*\*智能体提供商策略\*\*(`agents.list[].tools.byProvider[provider].allow/deny`) 7. \*\*沙箱工具策略\*\*(`tools.sandbox.tools` 或 `agents.list[].tools.sandbox.tools`) 8. \*\*子智能体工具策略\*\*(`tools.subagents.tools`,如适用) 每个级别可以进一步限制工具,但不能恢复之前级别拒绝的工具。 如果设置了 `agents.list[].tools.sandbox.tools`,它将替换该智能体的 `tools.sandbox.tools`。 如果设置了 `agents.list[].tools.profile`,它将覆盖该智能体的 `tools.profile`。 提供商工具键接受 `provider`(例如 `google-antigravity`)或 `provider/model`(例如 `openai/gpt-5.2`)。 ### 工具组(简写) 工具策略(全局、智能体、沙箱)支持 `group:\*` 条目,可扩展为多个具体工具: - `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`:所有内置 OpenClaw 工具(不包括提供商插件) ### 提权模式 `tools.elevated` 是全局基线(基于发送者的允许列表)。`agents.list[].tools.elevated` 可以为特定智能体进一步限制提权(两者都必须允许)。 缓解模式: - 为不受信任的智能体拒绝 `exec`(`agents.list[].tools.deny: ["exec"]`) - 避免将发送者加入允许列表后路由到受限智能体 - 如果你只想要沙箱隔离执行,全局禁用提权(`tools.elevated.enabled: false`) - 为敏感配置文件按智能体禁用提权(`agents.list[].tools.elevated.enabled: false`) --- ## 从单智能体迁移 \*\*之前(单智能体):\*\* ```json { "agents": { "defaults": { "workspace": "~/.openclaw/workspace", "sandbox": { "mode": "non-main" } } }, "tools": { "sandbox": { "tools": { "allow": ["read", "write", "apply\_patch", "exec"], "deny": [] } } } } ``` \*\*之后(具有不同配置文件的多智能体):\*\* ```json { "agents": { "list": [ { "id": "main", "default": true, "workspace": "~/.openclaw/workspace", "sandbox": { "mode": "off" } } ] } } ``` 旧版 `agent.\*` 配置由 `openclaw doctor` 迁移;今后请优先使用 `agents.defaults` + `agents.list`。 --- ## 工具限制示例 ### 只读智能体 ```json { "tools": { "allow": ["read"], "deny": ["exec", "write", "edit", "apply\_patch", "process"] } } ``` ### 安全执行智能体(无文件修改) ```json { "tools": { "allow": ["read", "exec", "process"], "deny": ["write", "edit", "apply\_patch", "browser", "gateway"] } } ``` ### 仅通信智能体 ```json { "tools": { "allow": ["sessions\_list", "sessions\_send", "sessions\_history", "session\_status"], "deny": ["exec", "write", "edit", "apply\_patch", "read", "browser"] } } ``` --- ## 常见陷阱:"non-main" `agents.defaults.sandbox.mode: "non-main"` 基于 `session.mainKey`(默认 `"main"`), 而不是智能体 id。群组/渠道会话始终获得自己的键,因此它们 被视为非 main 并将被沙箱隔离。如果你希望智能体永不 沙箱隔离,请设置 `agents.list[].sandbox.mode: "off"`。 --- ## 测试 配置多智能体沙箱和工具后: 1. \*\*检查智能体解析:\*\* ```exec openclaw agents list --bindings ``` 2. \*\*验证沙箱容器:\*\* ```exec docker ps --filter "name=openclaw-sbx-" ``` 3. \*\*测试工具限制:\*\* - 发送需要受限工具的消息 - 验证智能体无法使用被拒绝的工具 4. \*\*监控日志:\*\* ```exec tail -f "${OPENCLAW\_STATE\_DIR:-$HOME/.openclaw}/logs/gateway.log" |
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/multi-agent-sandbox-tools.md
main
opebclaw
[ 0.003938731737434864, 0.05815039575099945, -0.05973736196756363, -0.0844530314207077, -0.025438232347369194, -0.017480121925473213, 0.03806305676698685, -0.03563231974840164, -0.00711900694295764, 0.08877052366733551, 0.1921462118625641, -0.017833536490797997, 0.014046632684767246, 0.005256792064756155, 0.0038190260529518127, -0.03375747799873352, -0.01049720123410225, 0.05379771068692207, -0.015457701869308949, -0.012562736868858337, -0.056472089141607285, -0.03915701434016228, -0.019061371684074402, 0.0045157670974731445, -0.12987756729125977, 0.059440482407808304, -0.07009673118591309, 0.021690379828214645, 0.039287492632865906, -0.05972311273217201, -0.06268954277038574, 0.029020100831985474, 0.005402738694101572, 0.01497495174407959, 0.1194768100976944, 0.018139522522687912, 0.011205244809389114, 0.023925600573420525, 0.008410659618675709, 0.037092115730047226, 0.027887877076864243, -0.03758731111884117, -0.06119309738278389, 0.0082919392734766, -0.014104566536843777, 0.02709796465933323, 0.00230137980543077, -0.03113771602511406, -0.0399942472577095, -0.0581066757440567, -0.0035537583753466606, 0.06698853522539139, -0.016956962645053864, -0.04269539564847946, -0.03144378215074539, -0.04014676809310913, -0.0024790947791188955, 0.03988425061106682, 0.04962563514709473, 0.0013290062779560685, -0.05438874289393425, 0.12304138392210007, -0.01496075838804245, -0.009866810403764248, -0.009374171495437622, -0.03551667183637619, -0.02842363528907299, -0.01685079000890255, -0.021129228174686432, 0.008573666214942932, -0.08360034972429276, -0.0865483209490776, -0.0033873463980853558, -0.0035102039109915495, -0.043462082743644714, -0.06918402761220932, 0.019740931689739227, 0.0181264728307724, -0.038447316735982895, -0.0965142697095871, 0.015049036592245102, -0.011375346221029758, 0.001225280691869557, -0.11145702749490738, -0.03449062258005142, 0.04692240431904793, -0.020437251776456833, -0.014578713104128838, 0.15883155167102814, -0.07725387066602707, 0.09505274146795273, -0.012314988300204277, 0.03998802602291107, -0.010413742624223232, 0.15440745651721954, -0.06454801559448242, 0.0009510302916169167, 0.022679869085550308, -0.1150079071521759, 0.04100419208407402, 0.03759858384728432, -0.03188854828476906, -0.07036223262548447, -0.05642714723944664, -0.017758876085281372, -0.02372715249657631, -0.009768624790012836, -0.061503514647483826, -0.016837123781442642, 0.05456702411174774, -0.06599698960781097, -0.05081535503268242, -0.036076515913009644, -0.046552497893571854, 0.10378727316856384, 0.0008106568129733205, -0.04403813183307648, 0.008240777999162674, 0.02440222166478634, -0.018488522619009018, 0.08849554508924484, -0.049267321825027466, 0.004339780658483505, 0.004300728440284729, -0.007323827128857374, 0.02653689868748188, 0.047121331095695496, -2.629696942856601e-33, -0.033468205481767654, -0.008772172033786774, -0.08281708508729935, -0.019017154350876808, 0.08394700288772583, -0.028336647897958755, 0.015197518281638622, 0.01696467027068138, -0.07423169910907745, 0.08245093375444412, 0.019444318488240242, -0.01708964817225933, -0.0735657662153244, 0.06917937099933624, -0.0198183786123991, -0.03521227836608887, -0.024619178846478462, -0.003250942099839449, 0.016702836379408836, -0.0492883175611496, 0.011038541793823242, 0.024162907153367996, 0.005295203533023596, 0.023922445252537727, 0.08761683106422424, 0.04524247720837593, -0.10112842172384262, -0.03948777914047241, 0.014859788119792938, 0.0092117665335536, -0.005154745187610388, 0.0732123851776123, -0.038527246564626694, 0.04525492340326309, -0.030690530315041542, 0.024418741464614868, -0.003844872582703829, -0.03222135081887245, -0.04383120313286781, -0.015958890318870544, -0.01081407256424427, -0.03317832201719284, 0.08865689486265182, 0.012944805435836315, 0.06499762088060379, -0.040756192058324814, -0.05100126937031746, 0.03181978687644005, 0.012221910990774632, -0.030312180519104004, -0.04192861542105675, 0.029506968334317207, -0.04871885105967522, 0.02966483123600483, -0.01156430784612894, -0.10154950618743896, -0.11708518862724304, 0.024179421365261078, 0.012495990842580795, 0.013678416609764099, -0.027702657505869865, 0.040956951677799225, -0.025277428328990936, 0.03375138342380524, -0.011293708346784115, -0.03767527639865875, -0.07043606787919998, 0.09486781060695648, 0.1268116682767868, -0.06412891298532486, -0.06567089259624481, 0.038735415786504745, 0.038934413343667984, 0.022683288902044296, -0.003507471876218915, -0.06040458008646965, -0.02503441460430622, 0.04642491042613983, -0.0008092166390269995, -0.08698403090238571, -0.08198276907205582, 0.022222213447093964, -0.011317485012114048, 0.06934724003076553, -0.022692661732435226, 0.021850263699889183, 0.06374882161617279, 0.05754037946462631, -0.06481026113033295, -0.032983165234327316, -0.03022075816988945, -0.001933793886564672, -0.011438543908298016, 0.03699667379260063, -0.0037616449408233166, -3.618453363133214e-33, -0.0002324544475413859, 0.004226007964462042, -0.06870535761117935, -0.009631218388676643, 0.018552295863628387, -0.0939912423491478, 0.0480242595076561, -0.09861509501934052, 0.019216379150748253, -0.028850039467215538, -0.01199257094413042, -0.0376117043197155, -0.014738769270479679, 0.011215665377676487, 0.04785831645131111, -0.015966158360242844, -0.03074730560183525, -0.009766808710992336, -0.004170912783592939, 0.048420678824186325, -0.0028008304070681334, 0.01970929279923439, -0.06304856389760971, 0.02753705531358719, 0.041338611394166946, -0.016859445720911026, 0.05722257122397423, -0.023950418457388878, 0.05208816006779671, 0.018699144944548607, 0.006741699296981096, 0.02073695696890354, -0.08825109899044037, 0.03254581615328789, -0.043689142912626266, -0.02703704684972763, -0.018953673541545868, 0.04509950801730156, -0.13706359267234802, -0.03083210624754429, 0.06417996436357498, -0.016013137996196747, -0.06862269341945648, -0.014748707413673401, -0.056845523416996, 0.06325342506170273, 0.08135641366243362, -0.08082084357738495, -0.02603919990360737, -0.0452113002538681, 0.056522186845541, -0.03293753042817116, 0.036250993609428406, -0.023597732186317444, 0.0017783916555345058, 0.05311037600040436, 0.04010329395532608, -0.01998116448521614, -0.08372687548398972, 0.019144706428050995, 0.055317506194114685, 0.06104719638824463, -0.018018145114183426, 0.019806377589702606, 0.031017571687698364, -0.033930703997612, -0.027301901951432228, 0.050554364919662476, 0.05516725778579712, -0.05456923320889473, -0.008670762181282043, -0.04233897477388382, 0.04152405634522438, -0.014657638035714626, 0.01994713768362999, -0.0008271550759673119, -0.03260206803679466, 0.0008710999973118305, 0.07317144423723221, 0.015356628224253654, -0.06574007123708725, -0.02641935460269451, -0.028774341568350792, 0.08329793810844421, -0.047432318329811096, -0.0015247430419549346, 0.041239067912101746, 0.04550789296627045, 0.024292845278978348, 0.022033944725990295, 0.03391123563051224, -0.08431054651737213, 0.03860362246632576, 0.02169182524085045, -0.042579129338264465, -4.070533776712182e-8, 0.004489653743803501, -0.025934014469385147, 0.022484052926301956, -0.03611740842461586, 0.007745100650936365, -0.018934300169348717, 0.029607728123664856, 0.002162426942959428, -0.07078271359205246, -0.0324910543859005, -0.029203394427895546, 0.018976930528879166, -0.05840759351849556, 0.033591028302907944, -0.0409218892455101, 0.043715257197618484, -0.03568283095955849, 0.03022404946386814, -0.014430271461606026, -0.14575238525867462, -0.05470525100827217, -0.01152541022747755, -0.018420778214931488, -0.07552489638328552, -0.05650663003325462, 0.06412828713655472, -0.13277950882911682, 0.019105447456240654, -0.03562907129526138, 0.11870751529932022, 0.03923982009291649, -0.05982217565178871, 0.04616134613752365, -0.07680264860391617, 0.05255582556128502, -0.0029750654939562082, 0.03295342996716499, -0.05565560981631279, -0.006248348858207464, -0.1054716557264328, -0.03016342967748642, -0.09919194877147675, 0.026044286787509918, -0.015151663683354855, 0.10272520780563354, -0.032584693282842636, -0.02323397807776928, -0.03374148905277252, 0.07049760222434998, -0.0651426687836647, 0.06684959679841995, 0.05619562789797783, 0.04243359714746475, 0.021858548745512962, 0.17127369344234467, -0.029986165463924408, -0.0009681230876594782, -0.05515916645526886, 0.053705282509326935, 0.04546908661723137, -0.06495275348424911, 0.053725890815258026, 0.062153492122888565, 0.02327164076268673 ]
0.039515
``` --- ## 常见陷阱:"non-main" `agents.defaults.sandbox.mode: "non-main"` 基于 `session.mainKey`(默认 `"main"`), 而不是智能体 id。群组/渠道会话始终获得自己的键,因此它们 被视为非 main 并将被沙箱隔离。如果你希望智能体永不 沙箱隔离,请设置 `agents.list[].sandbox.mode: "off"`。 --- ## 测试 配置多智能体沙箱和工具后: 1. \*\*检查智能体解析:\*\* ```exec openclaw agents list --bindings ``` 2. \*\*验证沙箱容器:\*\* ```exec docker ps --filter "name=openclaw-sbx-" ``` 3. \*\*测试工具限制:\*\* - 发送需要受限工具的消息 - 验证智能体无法使用被拒绝的工具 4. \*\*监控日志:\*\* ```exec tail -f "${OPENCLAW\_STATE\_DIR:-$HOME/.openclaw}/logs/gateway.log" | grep -E "routing|sandbox|tools" ``` --- ## 故障排除 ### 尽管设置了 `mode: "all"` 但智能体未被沙箱隔离 - 检查是否有全局 `agents.defaults.sandbox.mode` 覆盖它 - 智能体特定配置优先,因此设置 `agents.list[].sandbox.mode: "all"` ### 尽管有拒绝列表但工具仍然可用 - 检查工具过滤顺序:全局 → 智能体 → 沙箱 → 子智能体 - 每个级别只能进一步限制,不能恢复 - 通过日志验证:`[tools] filtering tools for agent:${agentId}` ### 容器未按智能体隔离 - 在智能体特定沙箱配置中设置 `scope: "agent"` - 默认是 `"session"`,每个会话创建一个容器 --- ## 另请参阅 - [多智能体路由](/concepts/multi-agent) - [沙箱配置](/gateway/configuration#agentsdefaults-sandbox) - [会话管理](/concepts/session)
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/multi-agent-sandbox-tools.md
main
opebclaw
[ 0.027053765952587128, 0.05276038125157356, -0.10266537219285965, -0.06116729974746704, 0.04225390404462814, -0.04716593772172928, 0.0683477520942688, -0.0520990788936615, 0.002506295684725046, 0.030032871291041374, 0.06750719249248505, -0.0976485013961792, 0.021803734824061394, -0.01618848741054535, 0.05366211384534836, 0.028317900374531746, -0.014715448021888733, 0.038255397230386734, -0.01277161855250597, -0.037561554461717606, -0.03852849826216698, 0.012038001790642738, -0.008124553598463535, -0.05929668992757797, -0.14164963364601135, 0.037991221994161606, -0.06739924848079681, -0.019026661291718483, -0.032592929899692535, -0.049888916313648224, 0.02853531204164028, 0.04359687864780426, 0.01474082376807928, 0.007359648123383522, 0.17612671852111816, 0.08236236870288849, -0.014022407121956348, 0.0158572718501091, -0.04689382016658783, -0.012293954379856586, 0.059496987611055374, -0.011677970178425312, -0.07858332991600037, -0.032558370381593704, -0.05894020199775696, -0.041783783584833145, -0.050417836755514145, -0.11078930646181107, -0.024786410853266716, -0.008269766345620155, -0.08907406032085419, -0.03494440019130707, -0.03203316032886505, -0.007852532900869846, 0.0007702689617872238, -0.010421032086014748, -0.02059098519384861, 0.05855407938361168, 0.06074480339884758, -0.041610099375247955, -0.005949524696916342, 0.041680071502923965, -0.03482562676072121, -0.003910970874130726, -0.016042435541749, -0.009345109574496746, -0.0283711738884449, -0.04638320580124855, -0.015620763413608074, -0.00846088770776987, -0.08852356672286987, -0.0054894401691854, -0.021948769688606262, -0.025322774425148964, -0.06737358123064041, -0.009201661683619022, 0.017006997019052505, -0.010693746618926525, -0.10398025810718536, -0.06069603189826012, -0.012711471877992153, -0.07074122130870819, -0.06347440928220749, -0.06340182572603226, -0.05409972369670868, 0.14644992351531982, -0.061325691640377045, -0.01783737726509571, 0.1117575615644455, -0.0480634830892086, 0.021521439775824547, -0.0758625790476799, 0.07547732442617416, 0.025242770090699196, 0.11737789213657379, -0.025440530851483345, -0.03557229042053223, 0.075458824634552, -0.07468941062688828, 0.05723430961370468, 0.011250066570937634, 0.014767492190003395, -0.041004955768585205, -0.043181661516427994, -0.040689148008823395, -0.0059909638948738575, -0.019705481827259064, -0.023765988647937775, -0.0856647863984108, -0.019574660807847977, -0.07773197442293167, -0.0632883831858635, 0.029285967350006104, -0.07552506774663925, 0.06913723796606064, 0.042777735739946365, 0.023428305983543396, -0.020429980009794235, -0.052586060017347336, -0.008703431114554405, 0.14342841506004333, -0.03812866285443306, 0.00619248952716589, 0.012325555086135864, 0.020268406718969345, 0.057245731353759766, 0.07209690660238266, 2.8481089360271667e-34, 0.024248067289590836, -0.07206735759973526, -0.012677868828177452, -0.009301288984715939, 0.1268135905265808, -0.03363468125462532, 0.01852322742342949, -0.022928806021809578, -0.09438872337341309, 0.1239081472158432, -0.019592424854636192, 0.01836973801255226, -0.08138424903154373, 0.02638307772576809, 0.020980870351195335, -0.013567736372351646, 0.0025772484950721264, 0.02273445390164852, 0.015842435881495476, -0.06126333400607109, 0.020099390298128128, 0.030079105868935585, -0.04338546842336655, 0.017976190894842148, 0.04609367996454239, 0.031607285141944885, -0.04580623283982277, -0.0522555410861969, 0.07869615405797958, 0.013129094615578651, 0.04690565541386604, 0.0800250843167305, -0.07189279794692993, 0.10455482453107834, -0.03476053476333618, 0.013701318763196468, -0.04209369793534279, 0.03431934118270874, -0.06223416328430176, -0.0270751491189003, 0.023750441148877144, 0.0018861732678487897, 0.02146744914352894, 0.047283366322517395, 0.03764963522553444, -0.13420523703098297, -0.0796833410859108, 0.04072298854589462, 0.04858215153217316, -0.004104355350136757, -0.0020268589723855257, 0.009474113583564758, -0.048942867666482925, 0.05158018693327904, -0.0032233386300504208, -0.1123766079545021, -0.08942069113254547, 0.02824087254703045, -0.01745430938899517, -0.0007074260502122343, -0.06749938428401947, 0.023498494178056717, -0.008359949104487896, 0.06149404123425484, 0.04607461765408516, 0.0013285428285598755, 0.05036467686295509, 0.1057429313659668, 0.04295340180397034, -0.0017513884231448174, -0.06121551990509033, 0.03166831657290459, 0.08554958552122116, 0.05083253234624863, -0.017347825691103935, -0.06461425125598907, -0.037161536514759064, -0.010172098875045776, -0.025766367092728615, -0.020470881834626198, -0.04261016845703125, 0.03670873865485191, -0.033697571605443954, 0.08170805871486664, -0.045239221304655075, 0.04992890730500221, -0.014827416278421879, 0.028257155790925026, -0.023676814511418343, -0.006247246637940407, -0.060621824115514755, -0.0015203250804916024, -0.06394591927528381, 0.025836491957306862, -0.052958447486162186, -6.094678498230426e-33, 0.026952024549245834, -0.02439602091908455, -0.07385165244340897, -0.03607668727636337, -0.019281484186649323, -0.07664612680673599, 0.04676109552383423, -0.08803271502256393, 0.019670838490128517, -0.008918712846934795, -0.06174425408244133, 0.01717333123087883, 0.013833574019372463, 0.000788836448919028, 0.04005115479230881, 0.002492851112037897, -0.013845146633684635, 0.002219913527369499, -0.04213455319404602, 0.004403875675052404, 0.006645633839070797, 0.03327149152755737, -0.061455268412828445, 0.04012740030884743, 0.011222770437598228, -0.01092524267733097, 0.11660084873437881, -0.009562578983604908, 0.019142696633934975, 0.01600128971040249, 0.022998321801424026, 0.055670905858278275, -0.07071264088153839, 0.07649040222167969, -0.046586427837610245, 0.004670555703341961, -0.044724106788635254, 0.08357936888933182, -0.06864559650421143, 0.00562750780954957, 0.029434537515044212, -0.015221010893583298, -0.08330922573804855, -0.037093840539455414, -0.07325951009988785, 0.04768483713269234, 0.04527488723397255, -0.04104047641158104, -0.059279121458530426, -0.020805198699235916, 0.0019654782954603434, -0.03529316559433937, -0.01765458658337593, -0.05507374554872513, 0.04947377368807793, 0.03199940174818039, 0.01149968896061182, -0.018482545390725136, -0.060455866158008575, -0.05025865137577057, 0.08516880869865417, 0.004314238205552101, -0.010156558826565742, 0.05588233843445778, 0.011918590404093266, -0.03355199843645096, -0.01855354942381382, 0.04399790242314339, 0.01599004864692688, -0.08750859647989273, 0.0438169427216053, -0.051610127091407776, -0.018918978050351143, 0.021479925140738487, -0.015733586624264717, -0.010362723842263222, -0.08089882880449295, 0.0014436953933909535, 0.04485440254211426, 0.10724122822284698, -0.05865483358502388, 0.026040274649858475, 0.003623225726187229, 0.05292903631925583, -0.027490992099046707, -0.009910136461257935, 0.00006188151019159704, 0.07812373340129852, 0.051369715481996536, -0.00787870679050684, 0.05007539689540863, -0.07291629910469055, 0.005471355281770229, 0.04483644664287567, -0.05264471098780632, -4.891940719176091e-8, 0.03717949241399765, -0.08929700404405594, -0.0228661447763443, 0.03163335472345352, -0.037663109600543976, -0.02337721548974514, -0.011770052835345268, 0.07181121408939362, -0.08885445445775986, -0.041548024863004684, 0.012682155705988407, 0.02639002352952957, -0.060314077883958817, 0.0014245162019506097, -0.022801712155342102, 0.008821060881018639, 0.018629638478159904, 0.06024070456624031, 0.021025706082582474, -0.15758857131004333, -0.04025192931294441, -0.03427587077021599, 0.05260813236236572, -0.03961445763707161, -0.06453640758991241, 0.03785596787929535, -0.08758344501256943, 0.005248552653938532, -0.040827713906764984, 0.07732488214969635, 0.045440398156642914, -0.06639228016138077, 0.020187238231301308, -0.06252530962228775, 0.030122146010398865, 0.032106321305036545, 0.030240032821893692, -0.028874924406409264, -0.01847531832754612, -0.07160460203886032, -0.0354594886302948, -0.07175932824611664, -0.01375192403793335, -0.01737143285572529, -0.0069465734995901585, 0.0059007140807807446, -0.015333074145019054, -0.0173351988196373, 0.07423289865255356, -0.047967538237571716, 0.05754949152469635, 0.04525204375386238, 0.04981594532728195, 0.017277760431170464, 0.10347797721624374, 0.05471283942461014, 0.024960912764072418, -0.05834147706627846, 0.04083096608519554, 0.05890566483139992, -0.03178882226347923, 0.04411587119102478, 0.029588237404823303, 0.026953859254717827 ]
0.091781
# Fly.io 部署 \*\*目标:\*\* OpenClaw Gateway 网关运行在 [Fly.io](https://fly.io) 机器上,具有持久存储、自动 HTTPS 和 Discord/渠道访问。 ## 你需要什么 - 已安装 [flyctl CLI](https://fly.io/docs/hands-on/install-flyctl/) - Fly.io 账户(免费套餐可用) - 模型认证:Anthropic API 密钥(或其他提供商密钥) - 渠道凭证:Discord bot token、Telegram token 等 ## 初学者快速路径 1. 克隆仓库 → 自定义 `fly.toml` 2. 创建应用 + 卷 → 设置密钥 3. 使用 `fly deploy` 部署 4. SSH 进入创建配置或使用 Control UI ## 1)创建 Fly 应用 ```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 ``` \*\*提示:\*\* 选择离你近的区域。常见选项:`lhr`(伦敦)、`iad`(弗吉尼亚)、`sjc`(圣何塞)。 ## 2)配置 fly.toml 编辑 `fly.toml` 以匹配你的应用名称和需求。 \*\*安全注意事项:\*\* 默认配置暴露公共 URL。对于没有公共 IP 的加固部署,参见[私有部署](#私有部署加固)或使用 `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" ``` \*\*关键设置:\*\* | 设置 | 原因 | | ------------------------------ | ------------------------------------------------------------------------- | | `--bind lan` | 绑定到 `0.0.0.0` 以便 Fly 的代理可以访问 Gateway 网关 | | `--allow-unconfigured` | 无需配置文件启动(你稍后会创建一个) | | `internal\_port = 3000` | 必须与 `--port 3000`(或 `OPENCLAW\_GATEWAY\_PORT`)匹配以进行 Fly 健康检查 | | `memory = "2048mb"` | 512MB 太小;推荐 2GB | | `OPENCLAW\_STATE\_DIR = "/data"` | 在卷上持久化状态 | ## 3)设置密钥 ```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... ``` \*\*注意事项:\*\* - 非 loopback 绑定(`--bind lan`)出于安全需要 `OPENCLAW\_GATEWAY\_TOKEN`。 - 像对待密码一样对待这些 token。 - \*\*优先使用环境变量而不是配置文件\*\*来存储所有 API 密钥和 token。这可以避免密钥出现在 `openclaw.json` 中,防止意外暴露或记录。 ## 4)部署 ```bash fly deploy ``` 首次部署构建 Docker 镜像(约 2-3 分钟)。后续部署更快。 部署后验证: ```bash fly status fly logs ``` 你应该看到: ``` [gateway] listening on ws://0.0.0.0:3000 (PID xxx) [discord] logged in to discord as xxx ``` ## 5)创建配置文件 SSH 进入机器创建正确的配置: ```bash fly ssh console ``` 创建配置目录和文件: ```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": { "lastTouchedVersion": "2026.1.29" } } EOF ``` \*\*注意:\*\* 使用 `OPENCLAW\_STATE\_DIR=/data` 时,配置路径是 `/data/openclaw.json`。 \*\*注意:\*\* Discord token 可以来自: - 环境变量:`DISCORD\_BOT\_TOKEN`(推荐用于密钥) - 配置文件:`channels.discord.token` 如果使用环境变量,无需将 token 添加到配置中。Gateway 网关会自动读取 `DISCORD\_BOT\_TOKEN`。 重启以应用: ```bash exit fly machine restart ``` ## 6)访问 Gateway 网关 ### Control UI 在浏览器中打开: ```bash fly open ``` 或访问 `https://my-openclaw.fly.dev/` 粘贴你的 Gateway 网关 token(来自 `OPENCLAW\_GATEWAY\_TOKEN` 的那个)进行认证。 ### 日志 ```bash fly logs # Live logs fly logs --no-tail # Recent logs ``` ### SSH 控制台 ```bash fly ssh console ``` ## 故障排除 ### "App is not listening on expected address" Gateway 网关绑定到 `127.0.0.1` 而不是 `0.0.0.0`。 \*\*修复:\*\* 在 `fly.toml` 中的进程命令添加 `--bind lan`。 ### 健康检查失败 / 连接被拒绝 Fly 无法在配置的端口上访问 Gateway 网关。 \*\*修复:\*\* 确保 `internal\_port` 与 Gateway 网关端口匹配(设置 `--port 3000` 或 `OPENCLAW\_GATEWAY\_PORT=3000`)。 ### OOM / 内存问题 容器持续重启或被终止。迹象:`SIGABRT`、`v8::internal::Runtime\_AllocateInYoungGeneration` 或静默重启。 \*\*修复:\*\* 在 `fly.toml` 中增加内存: ```toml [[vm]] memory = "2048mb" ``` 或更新现有机器: ```bash fly machine update --vm-memory 2048 -y ``` \*\*注意:\*\* 512MB 太小。1GB 可能可以工作但在负载或详细日志记录下可能 OOM。\*\*推荐 2GB。\*\* ### Gateway 网关锁问题 Gateway
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/platforms/fly.md
main
opebclaw
[ -0.07707931846380234, 0.07423130422830582, -0.07022896409034729, -0.024622149765491486, 0.0005703837960027158, -0.09224971383810043, 0.0651959776878357, -0.028548670932650566, 0.00345779862254858, 0.0041529471054673195, 0.11870753765106201, -0.05559234693646431, 0.02058826945722103, -0.0544903427362442, 0.0767030194401741, 0.09176290780305862, -0.040758173912763596, -0.030561352148652077, -0.019328229129314423, -0.07754675298929214, 0.012691493146121502, 0.04290883615612984, 0.006694652605801821, 0.023400019854307175, -0.029243674129247665, -0.04195403307676315, -0.06656470149755478, 0.013706110417842865, 0.0007491791620850563, -0.12082111090421677, 0.05382996425032616, 0.15101443231105804, -0.10732951760292053, 0.01064325775951147, 0.05269443243741989, 0.10455356538295746, 0.04059391841292381, -0.03416568040847778, -0.0043119085021317005, -0.03575744852423668, 0.0029224595054984093, -0.008354432880878448, -0.038784559816122055, -0.03821408003568649, -0.0323159396648407, 0.052558548748493195, -0.02946348674595356, -0.01831631176173687, 0.014173172414302826, 0.04335007816553116, -0.08876614272594452, -0.04673737287521362, 0.037304673343896866, 0.025925302878022194, 0.05513211712241173, -0.014653566293418407, -0.063209667801857, 0.011757483705878258, 0.0002907935413531959, -0.1318792700767517, -0.04262710362672806, 0.06708338111639023, 0.023726435378193855, 0.018126988783478737, -0.10667179524898529, -0.040527842938899994, -0.11485899239778519, -0.038767214864492416, 0.03542984649538994, -0.04490146413445473, -0.041767314076423645, -0.04752296581864357, -0.029926635324954987, 0.006445168051868677, -0.04525042325258255, 0.03427429124712944, 0.04123564809560776, -0.006392538547515869, -0.053358037024736404, -0.07371208071708679, -0.0024511818774044514, 0.001833615591749549, -0.04305696487426758, 0.052761051803827286, -0.01643439009785652, 0.12065399438142776, 0.0006538878660649061, -0.038744352757930756, 0.06003855541348457, 0.016112273558974266, 0.027626266703009605, -0.01926610805094242, 0.008064460940659046, 0.015880122780799866, 0.039800167083740234, -0.00418221578001976, -0.0011308162938803434, -0.0562477670609951, -0.09356672316789627, 0.07243246585130692, -0.004495958797633648, -0.022047124803066254, 0.053672198206186295, 0.019254133105278015, -0.059318333864212036, 0.029260065406560898, 0.050157032907009125, -0.02222851850092411, 0.10192317515611649, 0.00011519851250341162, -0.04137610271573067, -0.037955351173877716, -0.004203504882752895, -0.089638352394104, -0.05339188501238823, 0.07525783032178879, -0.06492028385400772, -0.046538323163986206, 0.040868017822504044, -0.022285914048552513, 0.09825063496828079, -0.005061387550085783, -0.02473083883523941, -0.012805315665900707, 0.04173000901937485, -0.004827998112887144, 0.09561649709939957, 9.811596043634315e-34, 0.04376106709241867, 0.017994128167629242, -0.09950961172580719, 0.047871969640254974, 0.08954696357250214, -0.06429880112409592, 0.058479201048612595, -0.019383886829018593, -0.10350529849529266, 0.04599364846944809, -0.058238547295331955, -0.03143293038010597, -0.017114749178290367, 0.0005297097377479076, -0.004819777328521013, -0.11547484993934631, 0.02892606519162655, -0.0623701736330986, 0.08714413642883301, -0.05086033418774605, -0.006158801726996899, -0.022583870217204094, -0.04204055294394493, -0.016531897708773613, 0.05620042234659195, 0.05678612366318703, -0.007762714754790068, -0.03676481544971466, 0.003553833579644561, 0.05787651985883713, 0.0626974105834961, 0.028212733566761017, -0.060303401201963425, 0.041739437729120255, -0.05780037119984627, 0.00624581053853035, -0.016255540773272514, -0.08226931840181351, -0.046941157430410385, -0.016536129638552666, -0.05396464094519615, -0.017463067546486855, -0.05530938506126404, -0.02308960258960724, -0.0006916364072822034, -0.07581795752048492, -0.056226976215839386, -0.01816253364086151, 0.11944064497947693, -0.027138778939843178, -0.07440806180238724, 0.012388840317726135, 0.04768858850002289, -0.02152126654982567, 0.06424975395202637, -0.10029765963554382, -0.05460623651742935, 0.0051643927581608295, -0.015748711302876472, -0.01628628745675087, -0.006371488329023123, 0.018006643280386925, -0.04667060077190399, 0.036232344806194305, 0.12143658101558685, -0.006228692829608917, -0.04101373255252838, 0.027854783460497856, 0.027315739542245865, -0.008280259557068348, -0.055640414357185364, -0.01019988488405943, 0.032210055738687515, 0.06893213838338852, -0.055006906390190125, -0.06887039542198181, 0.004263846203684807, -0.031372033059597015, 0.057569172233343124, 0.004684777930378914, 0.03484231233596802, -0.056322913616895676, -0.05602850019931793, 0.009743970818817616, 0.05116768926382065, -0.004722071811556816, 0.06614193320274353, 0.0002879248058889061, -0.031407035887241364, 0.015037886798381805, -0.11943738907575607, -0.0034291644115000963, 0.06952979415655136, -0.0074607133865356445, -0.04447498172521591, -4.0395128682038646e-33, -0.03498031198978424, 0.0004855447623413056, -0.03770723566412926, 0.02924097329378128, -0.022259872406721115, -0.03049776330590248, 0.06762047857046127, -0.05102814361453056, -0.022526754066348076, 0.06307866424322128, -0.1303980052471161, 0.08650514483451843, 0.013802300207316875, -0.03599666804075241, 0.10985691100358963, 0.01688366010785103, -0.033592138439416885, -0.027238188311457634, 0.030746014788746834, 0.04235943406820297, -0.035659849643707275, 0.06307978183031082, -0.09845682978630066, 0.029976701363921165, -0.013089252635836601, 0.018164273351430893, 0.0771462619304657, 0.05397695302963257, -0.0075015355832874775, -0.024035070091485977, 0.03513549268245697, -0.0016957976622506976, -0.031703222543001175, 0.1389637440443039, 0.0019811491947621107, -0.04693147912621498, 0.05280571058392525, 0.11583197116851807, -0.006238855421543121, -0.09469030052423477, 0.0664757639169693, -0.06407865881919861, -0.032248593866825104, -0.062364138662815094, -0.0006505825440399349, -0.026631543412804604, -0.07297290861606598, 0.0020859427750110626, -0.11496231704950333, -0.04498052969574928, 0.06339926272630692, -0.013010984286665916, 0.01264266949146986, -0.011980620212852955, 0.03222111985087395, 0.04135306924581528, 0.08922751992940903, -0.04626523330807686, 0.02861444652080536, -0.13218474388122559, 0.043425317853689194, -0.05491380766034126, 0.020809872075915337, 0.06270400434732437, -0.001816915231756866, -0.023326685652136803, -0.02858123369514942, 0.051915884017944336, -0.025363557040691376, -0.02899322472512722, -0.025367384776473045, 0.034228768199682236, 0.048500481992959976, -0.043411288410425186, -0.0011762237409129739, -0.018232397735118866, 0.031070278957486153, 0.04560256376862526, 0.05660287290811539, 0.05235985293984413, 0.013568329624831676, -0.02677924558520317, 0.03854648768901825, 0.021623807027935982, -0.029560433700680733, 0.02203328162431717, -0.03199523687362671, 0.10994551330804825, -0.00039529171772301197, -0.04244953393936157, -0.02307334542274475, -0.0019589520525187254, 0.05675428360700607, 0.07036425918340683, 0.017145898193120956, -4.663559494133551e-8, -0.061810169368982315, -0.04980907961726189, -0.02899116277694702, -0.002479755785316229, -0.007534876465797424, 0.02175581455230713, 0.022107969969511032, -0.06282784789800644, -0.011333703994750977, -0.05846153572201729, 0.02738170512020588, 0.03719552606344223, -0.025836456567049026, 0.03788982331752777, -0.02204517088830471, 0.02701168693602085, -0.08310241252183914, 0.07020943611860275, 0.022944990545511246, -0.05630167946219444, -0.023719821125268936, 0.026801498606801033, -0.009710617363452911, -0.04593013599514961, -0.08849074691534042, 0.04464175924658775, -0.043633196502923965, -0.053563933819532394, -0.061495859175920486, -0.03471717983484268, -0.05436854064464569, -0.009016061201691628, 0.06524701416492462, -0.06823648512363434, -0.004013261292129755, 0.016641885042190552, 0.008959382772445679, -0.03622753173112869, -0.010329238139092922, 0.003311159322038293, 0.062222518026828766, 0.049151744693517685, 0.04217398911714554, -0.05019684135913849, 0.01747884228825569, -0.027855487540364265, 0.006457920651882887, -0.040623731911182404, 0.020998254418373108, -0.04294748604297638, 0.02729569934308529, -0.015697455033659935, 0.04259220510721207, 0.042056094855070114, 0.014886654913425446, 0.0509372316300869, -0.02942914143204689, -0.06302423030138016, 0.05631302669644356, 0.03518002852797508, 0.039227165281772614, 0.07661736011505127, 0.0003624681557994336, 0.007522566709667444 ]
0.103244
连接被拒绝 Fly 无法在配置的端口上访问 Gateway 网关。 \*\*修复:\*\* 确保 `internal\_port` 与 Gateway 网关端口匹配(设置 `--port 3000` 或 `OPENCLAW\_GATEWAY\_PORT=3000`)。 ### OOM / 内存问题 容器持续重启或被终止。迹象:`SIGABRT`、`v8::internal::Runtime\_AllocateInYoungGeneration` 或静默重启。 \*\*修复:\*\* 在 `fly.toml` 中增加内存: ```toml [[vm]] memory = "2048mb" ``` 或更新现有机器: ```bash fly machine update --vm-memory 2048 -y ``` \*\*注意:\*\* 512MB 太小。1GB 可能可以工作但在负载或详细日志记录下可能 OOM。\*\*推荐 2GB。\*\* ### Gateway 网关锁问题 Gateway 网关拒绝启动并显示"already running"错误。 这发生在容器重启但 PID 锁文件在卷上持久存在时。 \*\*修复:\*\* 删除锁文件: ```bash fly ssh console --command "rm -f /data/gateway.\*.lock" fly machine restart ``` 锁文件在 `/data/gateway.\*.lock`(不在子目录中)。 ### 配置未被读取 如果使用 `--allow-unconfigured`,Gateway 网关会创建最小配置。你在 `/data/openclaw.json` 的自定义配置应该在重启时被读取。 验证配置是否存在: ```bash fly ssh console --command "cat /data/openclaw.json" ``` ### 通过 SSH 写入配置 `fly ssh console -C` 命令不支持 shell 重定向。要写入配置文件: ```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 ``` \*\*注意:\*\* 如果文件已存在,`fly sftp` 可能会失败。先删除: ```bash fly ssh console --command "rm /data/openclaw.json" ``` ### 状态未持久化 如果重启后丢失凭证或会话,状态目录正在写入容器文件系统。 \*\*修复:\*\* 确保 `fly.toml` 中设置了 `OPENCLAW\_STATE\_DIR=/data` 并重新部署。 ## 更新 ```bash # Pull latest changes git pull # Redeploy fly deploy # Check health fly status fly logs ``` ### 更新机器命令 如果你需要更改启动命令而无需完全重新部署: ```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 ``` \*\*注意:\*\* `fly deploy` 后,机器命令可能会重置为 `fly.toml` 中的内容。如果你进行了手动更改,请在部署后重新应用它们。 ## 私有部署(加固) 默认情况下,Fly 分配公共 IP,使你的 Gateway 网关可通过 `https://your-app.fly.dev` 访问。这很方便,但意味着你的部署可被互联网扫描器(Shodan、Censys 等)发现。 对于\*\*无公共暴露\*\*的加固部署,使用私有模板。 ### 何时使用私有部署 - 你只进行\*\*出站\*\*调用/消息(无入站 webhooks) - 你使用 \*\*ngrok 或 Tailscale\*\* 隧道处理任何 webhook 回调 - 你通过 \*\*SSH、代理或 WireGuard\*\* 而不是浏览器访问 Gateway 网关 - 你希望部署\*\*对互联网扫描器隐藏\*\* ### 设置 使用 `fly.private.toml` 替代标准配置: ```bash # Deploy with private config fly deploy -c fly.private.toml ``` 或转换现有部署: ```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 ``` 此后,`fly ips list` 应该只显示 `private` 类型的 IP: ``` VERSION IP TYPE REGION v6 fdaa:x:x:x:x::x private global ``` ### 访问私有部署 由于没有公共 URL,使用以下方法之一: \*\*选项 1:本地代理(最简单)\*\* ```bash # Forward local port 3000 to the app fly proxy 3000:3000 -a my-openclaw # Then open http://localhost:3000 in browser ``` \*\*选项 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 ``` \*\*选项 3:仅 SSH\*\* ```bash fly ssh console -a my-openclaw ``` ### 私有部署的 Webhooks 如果你需要 webhook 回调(Twilio、Telnyx 等)而不暴露公共: 1. \*\*ngrok 隧道\*\* - 在容器内或作为 sidecar 运行 ngrok 2. \*\*Tailscale Funnel\*\* - 通过 Tailscale 暴露特定路径 3. \*\*仅出站\*\* - 某些提供商(Twilio)对于出站呼叫无需 webhooks 也能正常工作 使用 ngrok 的示例语音通话配置: ```json { "plugins": { "entries": { "voice-call": { "enabled": true, "config": { "provider": "twilio", "tunnel": { "provider": "ngrok" } } } } } } ``` ngrok 隧道在容器内运行并提供公共 webhook URL,而不暴露 Fly 应用本身。 ### 安全优势 | 方面 | 公共 | 私有 | | --------------- | ------ | -------- | | 互联网扫描器 | 可发现 | 隐藏 | | 直接攻击 | 可能 | 被阻止 | | Control UI 访问 | 浏览器 | 代理/VPN | | Webhook 投递 | 直接 | 通过隧道 | ## 注意事项 - Fly.io 使用 \*\*x86 架构\*\*(非 ARM) - Dockerfile 兼容两种架构 - 对于 WhatsApp/Telegram 新手引导,使用 `fly ssh console` - 持久数据位于 `/data` 卷上 - Signal 需要 Java + signal-cli;使用自定义镜像并保持内存在 2GB+。 ## 成本 使用推荐配置(`shared-cpu-2x`,2GB RAM): - 根据使用情况约 $10-15/月 - 免费套餐包含一些配额 详情参见 [Fly.io 定价](https://fly.io/docs/about/pricing/)。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/platforms/fly.md
main
opebclaw
[ -0.0059663280844688416, 0.07157586514949799, -0.08594641834497452, -0.048840831965208054, -0.016659371554851532, -0.06016682833433151, 0.023912398144602776, 0.04609382525086403, -0.00007120145164662972, -0.013446031138300896, 0.1544436365365982, -0.030515670776367188, 0.02431385964155197, -0.0845080241560936, 0.011513110250234604, 0.11907435953617096, -0.044613003730773926, 0.011052887886762619, -0.040130384266376495, -0.026377251371741295, -0.02787289023399353, -0.0035726544447243214, -0.04233347252011299, -0.007850822992622852, -0.05067124217748642, 0.0625164732336998, -0.02781638689339161, 0.07783373445272446, 0.004864189773797989, -0.12463033944368362, -0.00845393631607294, 0.16097509860992432, -0.06749038398265839, -0.0005062601412646472, 0.16221320629119873, 0.07367542386054993, -0.04251299798488617, -0.07592179626226425, -0.06255143880844116, -0.10872943699359894, 0.025841159746050835, 0.03993920981884003, -0.012920084409415722, 0.007115422282367945, 0.043928660452365875, 0.08375271409749985, -0.017300540581345558, -0.011625262908637524, -0.04383128881454468, -0.08304396271705627, -0.08157426863908768, 0.009358026087284088, -0.02412249706685543, 0.029465042054653168, 0.022843370214104652, -0.04882675036787987, 0.04743628576397896, 0.021592367440462112, -0.0019886349327862263, -0.0008226582431234419, -0.02874653786420822, 0.049335431307554245, -0.005149411968886852, 0.00987248495221138, -0.0968426913022995, -0.03659135848283768, 0.038285061717033386, -0.04657081887125969, -0.047971367835998535, 0.04689277708530426, -0.08923682570457458, 0.033488593995571136, -0.016685405746102333, 0.031020374968647957, -0.11294756829738617, -0.0020160400308668613, 0.013044201768934727, -0.01088328380137682, -0.010061400942504406, -0.08998525142669678, -0.03320636600255966, -0.03204705938696861, -0.038678381592035294, -0.08727563172578812, -0.009538741782307625, 0.136766716837883, -0.04170680046081543, -0.07087526470422745, 0.052558783441782, -0.0242992602288723, -0.025189366191625595, -0.008876681327819824, 0.07081963866949081, 0.03707316890358925, 0.014176211319863796, -0.016573479399085045, 0.06110438331961632, -0.02782684564590454, -0.07126644998788834, 0.02604575827717781, 0.01712288148701191, 0.05590434744954109, 0.05621635541319847, 0.07602161914110184, -0.07277244329452515, 0.000042318144551245496, 0.022249680012464523, 0.08380617201328278, 0.001036477624438703, -0.043060775846242905, 0.008246447890996933, -0.020577481016516685, 0.021027524024248123, -0.08621376752853394, -0.03709748387336731, 0.042337801307439804, -0.036597177386283875, -0.044428750872612, -0.015011285431683064, -0.0032710223458707333, 0.016798241063952446, -0.03750057518482208, -0.05840514227747917, -0.030373970046639442, -0.08135571330785751, -0.08367733657360077, 0.09878162294626236, 2.263228681135083e-33, -0.0032598432153463364, -0.051157597452402115, -0.08057956397533417, -0.004053129348903894, 0.10359566658735275, -0.020099027082324028, 0.004895451478660107, 0.014091421850025654, -0.0782213881611824, 0.05493398383259773, -0.05305536836385727, -0.07157375663518906, -0.04146833345293999, 0.040682218968868256, 0.08975794911384583, -0.09935268759727478, 0.017730766907334328, 0.006173660047352314, 0.03200855851173401, -0.04754238948225975, 0.07223056256771088, -0.030139697715640068, -0.0230399277061224, -0.08828999847173691, 0.03230102360248566, 0.016605710610747337, 0.03967708721756935, -0.06977611780166626, 0.021275412291288376, 0.04935069382190704, 0.02684818208217621, 0.027872901409864426, -0.06167604774236679, 0.007849550805985928, -0.0280208308249712, -0.03387302905321121, -0.005118639208376408, -0.06564996391534805, -0.04453789070248604, -0.00007233372161863372, -0.033693693578243256, 0.022999655455350876, -0.06241108477115631, -0.04740623012185097, -0.015711182728409767, -0.10059482604265213, -0.06973614543676376, 0.02915279194712639, 0.04765090346336365, 0.008413278497755527, -0.0534856803715229, 0.025432348251342773, -0.03471830114722252, -0.032265063375234604, 0.035220228135585785, -0.025564834475517273, -0.004711708519607782, 0.03664124384522438, 0.010993828065693378, 0.11623967438936234, -0.030059950426220894, 0.0006512200925499201, 0.0007949287537485361, 0.04722421243786812, 0.10511761903762817, 0.016552798449993134, 0.032568711787462234, 0.023502642288804054, -0.032055266201496124, 0.038480326533317566, -0.0955711156129837, -0.07712677866220474, 0.08306512981653214, 0.05573931708931923, -0.021293241530656815, -0.06989332288503647, -0.047879256308078766, -0.026608215644955635, -0.06861962378025055, -0.048184849321842194, 0.02235434018075466, -0.037898145616054535, -0.054625216871500015, -0.03157730773091316, -0.0026957495138049126, -0.007361892610788345, 0.0340593196451664, 0.030063943937420845, -0.03190208598971367, 0.05361597612500191, -0.08297611027956009, -0.010773060843348503, 0.05125010386109352, -0.038911666721105576, -0.05892186239361763, -6.512348171466893e-33, -0.04715008661150932, 0.06727538257837296, -0.05817408859729767, 0.03069135546684265, -0.034926727414131165, -0.040788233280181885, 0.028478162363171577, 0.01793784461915493, -0.05797159671783447, 0.06184050440788269, -0.11191245168447495, 0.10221298038959503, 0.024470169097185135, -0.024769829586148262, 0.014687774702906609, -0.023480216041207314, -0.017312949523329735, -0.029608340933918953, -0.018845606595277786, 0.04994712769985199, -0.026665138080716133, 0.07525497674942017, -0.046477194875478745, -0.013867298141121864, -0.03347410634160042, 0.04356871917843819, -0.001337423105724156, 0.08356448262929916, -0.0352788120508194, 0.04297678917646408, 0.017390580847859383, 0.049209605902433395, -0.05039924383163452, 0.11982335895299911, 0.015766017138957977, -0.059331826865673065, 0.11635135859251022, -0.01997612789273262, 0.011293772608041763, 0.01212442759424448, 0.04693762958049774, -0.024173615500330925, -0.08952551335096359, -0.04577012360095978, 0.0048605031333863735, 0.014079473912715912, -0.05150411278009415, -0.08963752537965775, 0.02947470173239708, -0.05243108421564102, 0.036316074430942535, -0.027150360867381096, 0.0035300764720886946, 0.031978413462638855, 0.014397414401173592, -0.034043386578559875, 0.041236333549022675, -0.053433857858181, 0.004128625150769949, -0.16066627204418182, 0.07325536757707596, -0.0065870084799826145, -0.0006219362840056419, -0.06599948555231094, 0.032998912036418915, -0.00977462437003851, 0.0407516174018383, 0.026106052100658417, 0.031819552183151245, -0.07848023623228073, -0.0033340989612042904, 0.06051574647426605, 0.009931721724569798, 0.008635230362415314, -0.05348816514015198, 0.0029134456999599934, -0.02698892168700695, 0.02390270307660103, 0.04445294290781021, 0.027713418006896973, -0.019583001732826233, -0.004371762741357088, 0.028150513768196106, 0.029646756127476692, -0.05634208023548126, -0.07183964550495148, -0.028382061049342155, 0.04646432027220726, 0.0023538849782198668, -0.08795887976884842, -0.0007265274762175977, -0.0059194681234657764, -0.005228552967309952, 0.0735347792506218, -0.014441325329244137, -4.8863206814075966e-8, -0.017434492707252502, -0.0724562406539917, -0.03902453929185867, 0.050803832709789276, 0.06396254152059555, -0.10172419250011444, -0.04023192077875137, 0.024746159091591835, 0.04110248386859894, -0.05822953209280968, 0.05893614515662193, 0.000471115781692788, -0.07716028392314911, 0.03708210587501526, 0.01496095396578312, 0.02441021427512169, -0.09425785392522812, 0.017771268263459206, -0.006735711824148893, -0.06350694596767426, -0.011164060793817043, 0.04769797995686531, 0.051418233662843704, -0.02537798322737217, 0.015223034657537937, -0.026213113218545914, 0.020406538620591164, 0.0005108583136461675, -0.01804513670504093, -0.017099544405937195, 0.004609036259353161, 0.005106987431645393, 0.03391154110431671, -0.01821114867925644, 0.002954801544547081, 0.02705049328505993, 0.08057490736246109, 0.10109249502420425, 0.042315419763326645, 0.00010337113053537905, 0.025453360751271248, -0.07527550309896469, -0.006866641342639923, 0.04324600473046303, 0.06824641674757004, -0.014047946780920029, -0.02326398901641369, -0.01897975616157055, -0.03292191028594971, -0.03080318495631218, -0.011611121706664562, 0.05878549814224243, 0.027754776179790497, 0.02180158719420433, -0.01883942261338234, -0.013436848297715187, -0.0737733319401741, -0.025351285934448242, 0.0009438908309675753, 0.05901433899998665, 0.021449100226163864, 0.08153074979782104, 0.04850897565484047, -0.018465323373675346 ]
0.140206
signal-cli;使用自定义镜像并保持内存在 2GB+。 ## 成本 使用推荐配置(`shared-cpu-2x`,2GB RAM): - 根据使用情况约 $10-15/月 - 免费套餐包含一些配额 详情参见 [Fly.io 定价](https://fly.io/docs/about/pricing/)。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/platforms/fly.md
main
opebclaw
[ -0.015849439427256584, 0.05109280347824097, -0.03577067330479622, -0.0034684129059314728, -0.0008106865570880473, -0.04452474042773247, 0.043323975056409836, 0.06470562517642975, -0.029236193746328354, 0.004781638737767935, 0.06570964306592941, -0.050533492118120193, -0.01987799070775509, -0.04569484665989876, 0.02078874222934246, 0.06269428879022598, 0.015218449756503105, -0.06553493440151215, 0.0034788886550813913, -0.029998891055583954, -0.0002847787691280246, -0.04385363310575485, -0.03742413967847824, 0.020341306924819946, 0.021761974319815636, 0.0020050606690347195, 0.04576677456498146, 0.0229669027030468, 0.0633455142378807, -0.0025753008667379618, -0.01944541372358799, 0.0856991708278656, 0.015402985736727715, -0.0003189171839039773, 0.06542587280273438, -0.024571754038333893, 0.015606501139700413, -0.10581355541944504, -0.00924240704625845, -0.044745445251464844, -0.027964189648628235, 0.02128261886537075, -0.08507534861564636, 0.0186765156686306, 0.018970124423503876, 0.01996852271258831, -0.029161173850297928, 0.05553293600678444, -0.006027945317327976, 0.007383545860648155, -0.007817124016582966, -0.013508244417607784, -0.040133483707904816, 0.03985583782196045, -0.007721742615103722, 0.01658814027905464, -0.05338730290532112, -0.008342180401086807, 0.02551209181547165, -0.023857254534959793, -0.041386380791664124, 0.00895504280924797, 0.028150489553809166, 0.029018236324191093, -0.04740277677774429, -0.016733922064304352, 0.002582719549536705, -0.0704365223646164, 0.01658698357641697, 0.0037602854426950216, -0.027940109372138977, -0.05260093882679939, 0.010209155268967152, -0.016451697796583176, -0.07631324231624603, 0.0018437668913975358, 0.07319207489490509, -0.03798368200659752, 0.029522044584155083, -0.08819793909788132, -0.08275128901004791, -0.05370483547449112, -0.06022046133875847, -0.0836564153432846, 0.05211328715085983, 0.05386081710457802, 0.01879272796213627, -0.04769511893391609, 0.01460109744220972, -0.09490615129470825, -0.0403597392141819, 0.027421273291110992, 0.013089577667415142, 0.03431925177574158, -0.052288033068180084, 0.04836554825305939, -0.03866522014141083, -0.042449887841939926, -0.027348142117261887, 0.05626639351248741, -0.0026042612735182047, 0.04085204377770424, 0.09133195877075195, 0.021808689460158348, -0.10318266600370407, -0.03113740310072899, -0.0024436842650175095, 0.016210192814469337, 0.0017494743224233389, -0.025044899433851242, -0.023964203894138336, 0.043639522045850754, -0.024598460644483566, -0.03502091392874718, 0.02111111208796501, 0.06884212046861649, -0.04227804020047188, 0.011353626847267151, 0.12108426541090012, 0.01231133472174406, -0.016618674620985985, -0.10177665948867798, -0.09876959025859833, -0.023662908002734184, -0.07008950412273407, -0.07865186780691147, -0.024460677057504654, 1.3141518073544459e-33, -0.04672853648662567, 0.06789733469486237, -0.08024466782808304, -0.04766865074634552, -0.023588065057992935, -0.019786491990089417, -0.0010893152793869376, 0.009653895162045956, -0.08142764866352081, 0.10219588130712509, -0.04871796816587448, -0.03519133850932121, -0.04365644231438637, 0.0744992345571518, 0.063571035861969, -0.10252252966165543, 0.016902068629860878, -0.04570608586072922, 0.14720569550991058, -0.012953223660588264, -0.021856559440493584, -0.012756883166730404, -0.016542455181479454, -0.018352773040533066, 0.06949133425951004, -0.01702394150197506, 0.025147495791316032, -0.05181773379445076, 0.08901171386241913, 0.04921584576368332, 0.033609043806791306, -0.0009025175240822136, -0.0027650524862110615, -0.0776488184928894, 0.02591596730053425, -0.03747352585196495, 0.019744450226426125, -0.05062985420227051, -0.05658052861690521, -0.01884184218943119, 0.014193500392138958, -0.00012990436516702175, -0.08503330498933792, -0.2010280042886734, -0.0577612929046154, -0.0966126024723053, -0.044094882905483246, -0.004864248912781477, 0.12325543165206909, -0.05136455222964287, -0.1299438625574112, 0.002185315825045109, -0.05986122414469719, 0.03213176876306534, 0.04412864148616791, -0.024903498589992523, 0.05404219776391983, 0.02217644825577736, 0.09193278104066849, 0.12492109835147858, -0.016552841290831566, -0.07198011875152588, 0.001943725859746337, -0.012442209757864475, 0.013373076915740967, 0.021856527775526047, 0.021341102197766304, -0.013728862628340721, -0.07813804596662521, 0.024856170639395714, -0.08730480819940567, 0.014383637346327305, 0.029502619057893753, -0.008114599622786045, 0.00748981349170208, -0.04882296547293663, -0.05823075398802757, -0.015670737251639366, -0.03625030443072319, 0.05507424473762512, -0.028338421136140823, -0.026889320462942123, -0.008004243485629559, 0.02332226186990738, 0.02878994308412075, 0.06682547926902771, -0.02238110639154911, 0.028165053576231003, -0.06928770989179611, 0.048560731112957, -0.08418704569339752, 0.046704307198524475, -0.0016332421218976378, -0.01601136475801468, -0.027168814092874527, -6.0735398037247795e-33, -0.07157696038484573, 0.019602257758378983, -0.036324214190244675, 0.0497668981552124, -0.040476005524396896, -0.0315067358314991, -0.013912350870668888, 0.004877917002886534, -0.04169353097677231, 0.10262185335159302, -0.062347013503313065, 0.01846868172287941, 0.07852206379175186, 0.021685266867280006, 0.027588918805122375, 0.006634116172790527, -0.015696004033088684, -0.0697152316570282, 0.05181245133280754, 0.019131483510136604, -0.018997889012098312, 0.055724844336509705, 0.017230965197086334, -0.03762491047382355, -0.01627829112112522, 0.03188721835613251, 0.016876226291060448, 0.07231806218624115, 0.019298601895570755, -0.0013272161595523357, -0.06529421359300613, -0.07377869635820389, 0.02066548354923725, 0.07774997502565384, -0.006341628264635801, -0.05949094891548157, 0.13249588012695312, 0.030453726649284363, 0.057379432022571564, 0.005477218888700008, 0.04824867844581604, 0.00010888159886235371, 0.03235405310988426, -0.04798354208469391, 0.03181302547454834, -0.0530722439289093, -0.06835810840129852, -0.09078312665224075, -0.02901722490787506, -0.056607577949762344, 0.04647884517908096, 0.012544237077236176, 0.011183040216565132, -0.007893703877925873, -0.029038134962320328, -0.014466551132500172, 0.006197053473442793, 0.066655233502388, 0.11804933100938797, -0.15058602392673492, 0.07450420409440994, -0.017991280183196068, -0.05008481442928314, -0.00985085591673851, 0.02904888615012169, 0.00829675979912281, 0.013897847384214401, -0.01962294429540634, 0.012792874127626419, -0.022442489862442017, -0.009694604203104973, 0.0150092588737607, 0.03615046292543411, 0.02370467782020569, -0.12706439197063446, 0.03351810947060585, 0.004000524990260601, 0.009088819846510887, 0.10751842707395554, 0.028064005076885223, 0.02710736356675625, 0.01056834775954485, 0.035322945564985275, 0.012848774902522564, -0.060328684747219086, -0.059349484741687775, -0.00016281673742923886, 0.026689590886235237, -0.09901757538318634, -0.09649129956960678, -0.07572432607412338, 0.021403303369879723, -0.031177837401628494, 0.00539744645357132, -0.043021220713853836, -5.154202042945144e-8, -0.00482561020180583, -0.1211613193154335, -0.02051851898431778, 0.00596973579376936, 0.0588124543428421, -0.09248857200145721, 0.022341787815093994, -0.04067009314894676, 0.07002119719982147, 0.01027603168040514, 0.056407179683446884, -0.08362329006195068, -0.06051800400018692, 0.05161041021347046, -0.03444994240999222, 0.04165166616439819, -0.10574252903461456, 0.0675412192940712, 0.03750556707382202, -0.09340711683034897, 0.006291716359555721, 0.06549400091171265, 0.04920928552746773, -0.02149159647524357, 0.00774480402469635, 0.030400430783629417, 0.034264300018548965, 0.0810186043381691, -0.002965830499306321, -0.06903889775276184, -0.05532637983560562, 0.021116120740771294, 0.07543228566646576, -0.0945984274148941, 0.041852716356515884, -0.007852124981582165, -0.0452299639582634, 0.06243754178285599, 0.06969805061817169, 0.04662825167179108, 0.022689511999487877, 0.013462762348353863, 0.0315849632024765, -0.02277403324842453, 0.09994614869356155, -0.03977322205901146, -0.0422801710665226, -0.019452320411801338, -0.03161463886499405, -0.0013537027407437563, 0.061490997672080994, 0.04958607628941536, -0.015702100470662117, 0.03770746290683746, -0.012468614615499973, -0.03542175143957138, -0.029500508680939674, -0.06298317015171051, -0.02133876644074917, 0.060475584119558334, 0.011689451523125172, 0.05990644916892052, -0.06514780223369598, -0.015518942847847939 ]
0.184704
# Android 应用(节点) ## 支持概览 - 角色:配套节点应用(Android 不托管 Gateway 网关)。 - 需要 Gateway 网关:是(在 macOS、Linux 或通过 WSL2 的 Windows 上运行)。 - 安装:[入门指南](/start/getting-started) + [配对](/gateway/pairing)。 - Gateway 网关:[操作手册](/gateway) + [配置](/gateway/configuration)。 - 协议:[Gateway 网关协议](/gateway/protocol)(节点 + 控制平面)。 ## 系统控制 系统控制(launchd/systemd)位于 Gateway 网关主机上。参见 [Gateway 网关](/gateway)。 ## 连接操作手册 Android 节点应用 ⇄(mDNS/NSD + WebSocket)⇄ \*\*Gateway 网关\*\* Android 直接连接到 Gateway 网关 WebSocket(默认 `ws://:18789`)并使用 Gateway 网关拥有的配对。 ### 前置条件 - 你可以在"主"机器上运行 Gateway 网关。 - Android 设备/模拟器可以访问 Gateway 网关 WebSocket: - 使用 mDNS/NSD 的同一局域网,\*\*或\*\* - 使用 Wide-Area Bonjour / unicast DNS-SD 的同一 Tailscale tailnet(见下文),\*\*或\*\* - 手动 Gateway 网关主机/端口(回退方案) - 你可以在 Gateway 网关机器上运行 CLI(`openclaw`)(或通过 SSH)。 ### 1)启动 Gateway 网关 ```bash openclaw gateway --port 18789 --verbose ``` 在日志中确认你看到类似内容: - `listening on ws://0.0.0.0:18789` 对于仅 tailnet 设置(推荐用于维也纳 ⇄ 伦敦),将 Gateway 网关绑定到 tailnet IP: - 在 Gateway 网关主机的 `~/.openclaw/openclaw.json` 中设置 `gateway.bind: "tailnet"`。 - 重启 Gateway 网关 / macOS 菜单栏应用。 ### 2)验证发现(可选) 从 Gateway 网关机器: ```bash dns-sd -B \_openclaw-gw.\_tcp local. ``` 更多调试说明:[Bonjour](/gateway/bonjour)。 #### 通过 unicast DNS-SD 的 Tailnet(维也纳 ⇄ 伦敦)发现 Android NSD/mDNS 发现无法跨网络。如果你的 Android 节点和 Gateway 网关在不同网络但通过 Tailscale 连接,请改用 Wide-Area Bonjour / unicast DNS-SD: 1. 在 Gateway 网关主机上设置 DNS-SD 区域(示例 `openclaw.internal.`)并发布 `\_openclaw-gw.\_tcp` 记录。 2. 配置 Tailscale split DNS,将你选择的域指向该 DNS 服务器。 详情和示例 CoreDNS 配置:[Bonjour](/gateway/bonjour)。 ### 3)从 Android 连接 在 Android 应用中: - 应用通过\*\*前台服务\*\*(持久通知)保持 Gateway 网关连接活动。 - 打开\*\*设置\*\*。 - 在\*\*发现的 Gateway 网关\*\*下,选择你的 Gateway 网关并点击\*\*连接\*\*。 - 如果 mDNS 被阻止,使用\*\*高级 → 手动 Gateway 网关\*\*(主机 + 端口)并\*\*连接(手动)\*\*。 首次成功配对后,Android 在启动时自动重连: - 手动端点(如果启用),否则 - 上次发现的 Gateway 网关(尽力而为)。 ### 4)批准配对(CLI) 在 Gateway 网关机器上: ```bash openclaw nodes pending openclaw nodes approve ``` 配对详情:[Gateway 网关配对](/gateway/pairing)。 ### 5)验证节点已连接 - 通过节点状态: ```bash openclaw nodes status ``` - 通过 Gateway 网关: ```bash openclaw gateway call node.list --params "{}" ``` ### 6)聊天 + 历史 Android 节点的 Chat 面板使用 Gateway 网关的\*\*主会话键\*\*(`main`),因此历史和回复与 WebChat 和其他客户端共享: - 历史:`chat.history` - 发送:`chat.send` - 推送更新(尽力而为):`chat.subscribe` → `event:"chat"` ### 7)Canvas + 摄像头 #### Gateway 网关 Canvas 主机(推荐用于 web 内容) 如果你想让节点显示智能体可以在磁盘上编辑的真实 HTML/CSS/JS,请将节点指向 Gateway 网关 canvas 主机。 注意:节点使用 `canvasHost.port`(默认 `18793`)上的独立 canvas 主机。 1. 在 Gateway 网关主机上创建 `~/.openclaw/workspace/canvas/index.html`。 2. 将节点导航到它(局域网): ```bash openclaw nodes invoke --node "" --command canvas.navigate --params '{"url":"http://.local:18793/\_\_openclaw\_\_/canvas/"}' ``` Tailnet(可选):如果两个设备都在 Tailscale 上,使用 MagicDNS 名称或 tailnet IP 而不是 `.local`,例如 `http://:18793/\_\_openclaw\_\_/canvas/`。 此服务器将实时重载客户端注入 HTML 并在文件更改时重新加载。 A2UI 主机位于 `http://:18793/\_\_openclaw\_\_/a2ui/`。 Canvas 命令(仅前台): - `canvas.eval`、`canvas.snapshot`、`canvas.navigate`(使用 `{"url":""}` 或 `{"url":"/"}` 返回默认脚手架)。`canvas.snapshot` 返回 `{ format, base64 }`(默认 `format="jpeg"`)。 - A2UI:`canvas.a2ui.push`、`canvas.a2ui.reset`(`canvas.a2ui.pushJSONL` 遗留别名) 摄像头命令(仅前台;权限限制): - `camera.snap`(jpg) - `camera.clip`(mp4) 参见 [Camera 节点](/nodes/camera) 了解参数和 CLI 助手。
https://github.com/openclaw/openclaw/blob/main//docs/zh-CN/platforms/android.md
main
opebclaw
[ -0.076902374625206, 0.004343451466411352, -0.02154732681810856, -0.12384195625782013, -0.017770465463399887, -0.032090965658426285, 0.0006673607276752591, 0.011797494255006313, 0.035622768104076385, -0.0446610264480114, 0.1343681812286377, -0.03991379216313362, 0.10304281115531921, -0.02517644129693508, 0.05374838411808014, 0.03639129921793938, -0.047588832676410675, 0.01624445989727974, 0.031976740807294846, -0.03155432268977165, -0.03914378210902214, -0.026785630732774734, -0.006704960949718952, -0.028063582256436348, -0.010451754555106163, -0.0008705411455594003, 0.02785966545343399, 0.016292303800582886, -0.022451024502515793, 0.012137903831899166, 0.027603553608059883, 0.06440646946430206, -0.08401545137166977, 0.049808233976364136, -0.0004991313326172531, 0.03617400676012039, 0.07296431809663773, -0.0016197949880734086, -0.0766393169760704, 0.004200445022433996, 0.04439225792884827, -0.0322846919298172, 0.049598515033721924, -0.013723446056246758, 0.0065324134193360806, 0.012637265026569366, -0.05466882884502411, -0.029738279059529305, -0.08494672179222107, -0.05017005652189255, -0.005971154198050499, -0.0067199114710092545, -0.010375802405178547, 0.05224136263132095, 0.0032279258593916893, 0.006392255425453186, -0.04154984652996063, 0.026565831154584885, 0.07828020304441452, -0.001327612902969122, -0.011604429222643375, 0.04777631163597107, 0.008523484691977501, 0.01482093334197998, -0.14981138706207275, 0.012894747778773308, -0.0022239263635128736, 0.002550367731601, 0.05188602954149246, 0.06826125085353851, -0.06528542935848236, 0.015668818727135658, -0.03988558053970337, -0.004229376092553139, -0.08991853892803192, 0.024570247158408165, 0.030527697876095772, -0.023530513048171997, -0.11237305402755737, -0.12526002526283264, -0.0016891025006771088, 0.05976858735084534, -0.01559784822165966, 0.06038722023367882, -0.04634811356663704, 0.0243888758122921, -0.08074687421321869, -0.0371655710041523, 0.08595210313796997, 0.008646915666759014, 0.005797474645078182, -0.03056061454117298, -0.007051682099699974, 0.025023454800248146, 0.06660252809524536, 0.025157833471894264, 0.022221382707357407, -0.022478364408016205, -0.06567233800888062, 0.04988184571266174, -0.010280315764248371, 0.028217429295182228, -0.002163628814741969, 0.022349178791046143, -0.017695274204015732, -0.02618066966533661, -0.062188126146793365, 0.07348325848579407, 0.04287828505039215, -0.0034028999507427216, -0.013611937873065472, -0.06944629549980164, 0.027664201334118843, -0.02889139950275421, -0.05319557338953018, 0.08474082499742508, 0.012913552112877369, -0.029967784881591797, -0.03219131380319595, 0.07825321704149246, 0.04628460481762886, -0.03789747878909111, -0.10661251842975616, -0.06373084336519241, -0.004994580056518316, -0.021904466673731804, 0.0920872688293457, 4.706696645765717e-33, 0.0300663523375988, 0.012324330396950245, -0.036235954612493515, 0.00602722866460681, 0.06351566314697266, -0.037070952355861664, -0.007833044975996017, -0.030819987878203392, -0.06360510736703873, -0.0028682483825832605, -0.03486017510294914, -0.03772521764039993, -0.06020768731832504, 0.016340598464012146, 0.00030943643650971353, -0.03737155720591545, 0.020152075216174126, -0.025263246148824692, 0.06381253898143768, 0.019250592216849327, 0.030875200405716896, -0.022768203169107437, -0.0036812075413763523, -0.06708458065986633, -0.005065993871539831, 0.07669185101985931, 0.003390603931620717, 0.033075086772441864, 0.05320192500948906, 0.01536684762686491, 0.0700281485915184, -0.06602472811937332, -0.06697268038988113, 0.03795571252703667, -0.0756387785077095, -0.02879939414560795, -0.023670582100749016, -0.04591158777475357, -0.04007044434547424, -0.040400467813014984, -0.0850515142083168, -0.011259718798100948, -0.09618628025054932, 0.008808002807199955, 0.04027126356959343, -0.07331237196922302, -0.15299829840660095, -0.05556604638695717, 0.07478328049182892, -0.06441298872232437, -0.07483231276273727, 0.05724763870239258, 0.02624298818409443, -0.02633768878877163, 0.012388503178954124, -0.05893022194504738, -0.09113825112581253, 0.05443396419286728, -0.09424176812171936, 0.009280269965529442, 0.04203944653272629, 0.011828387156128883, 0.007769187446683645, 0.04242774471640587, 0.11730841547250748, 0.02190086431801319, -0.00935875903815031, -0.056726355105638504, -0.03482566773891449, -0.058736249804496765, -0.06561702489852905, -0.05783799663186073, 0.05238679423928261, 0.12500479817390442, -0.016444623470306396, -0.021989503875374794, -0.0009790570475161076, -0.01206300500780344, 0.003332735737785697, -0.059133149683475494, -0.07527883350849152, 0.004543250892311335, -0.044985149055719376, -0.0017495551146566868, 0.023992104455828667, 0.053133442997932434, -0.00672018900513649, -0.14059463143348694, -0.04019340127706528, 0.06864828616380692, -0.14468419551849365, 0.056438595056533813, 0.010501885786652565, 0.041168294847011566, -0.06650479882955551, -9.193829313897062e-33, -0.07107055187225342, 0.07059509307146072, -0.03382424637675285, 0.015225530602037907, -0.04116783291101456, -0.019138040021061897, 0.05764565244317055, 0.02232416905462742, 0.004331612028181553, 0.09624562412500381, 0.016124937683343887, 0.01841769739985466, 0.00990824680775404, -0.08180266618728638, 0.07656283676624298, -0.01857837475836277, 0.0866369754076004, 0.024742061272263527, -0.010753343813121319, 0.03847189620137215, -0.04848729446530342, 0.03617915138602257, -0.10126309096813202, -0.010810686275362968, 0.056747063994407654, 0.0754702016711235, 0.06008607894182205, 0.032109640538692474, -0.07700593024492264, 0.02691591903567314, 0.01785689778625965, -0.0016742857405915856, -0.02243060991168022, 0.060267914086580276, 0.009146156720817089, 0.029112383723258972, -0.04780806601047516, -0.014465945772826672, 0.000900448125321418, -0.013862231746315956, 0.08612081408500671, -0.08507749438285828, 0.02858496457338333, 0.0008974741795100272, 0.020846642553806305, -0.05311109870672226, -0.04503136873245239, 0.003733015852048993, -0.050937216728925705, -0.09908796101808548, 0.06345490366220474, 0.0282596442848444, -0.045792825520038605, 0.009890724904835224, 0.05838218703866005, 0.06916657835245132, 0.04857230558991432, -0.021966883912682533, -0.037014205008745193, -0.18207569420337677, 0.08361882716417313, -0.06244902312755585, -0.05722571164369583, 0.07201642543077469, 0.013525471091270447, -0.04312089830636978, 0.012752288952469826, -0.01141280122101307, 0.030291622504591942, -0.07349395006895065, 0.02378005161881447, 0.07196067273616791, -0.009679533541202545, 0.004334275145083666, 0.057887062430381775, -0.018294652923941612, 0.0213229488581419, 0.03664567694067955, -0.022499723359942436, -0.02404150366783142, -0.03754209354519844, 0.0486004576086998, 0.008017505519092083, 0.00025975375319831073, 0.0056098755449056625, -0.05459095537662506, -0.05102032423019409, 0.14656244218349457, 0.006204458884894848, -0.0006109598907642066, -0.030194958671927452, 0.04536677151918411, -0.005003242753446102, 0.022052479907870293, -0.026320485398173332, -5.0390088546237166e-8, -0.001891286694444716, -0.09255059063434601, -0.08244483172893524, -0.04784000664949417, -0.056831274181604385, 0.025625115260481834, -0.018157972022891045, -0.08977683633565903, -0.02396993152797222, -0.03037436306476593, -0.029680639505386353, 0.048741333186626434, -0.08806885778903961, 0.029814941808581352, -0.03834589943289757, 0.029454616829752922, -0.01837974414229393, 0.07150351256132126, -0.016431406140327454, -0.03531891480088234, -0.00024178926832973957, 0.024955401197075844, -0.012624157592654228, 0.025881623849272728, -0.034641675651073456, 0.04511352255940437, 0.030588394030928612, -0.002513492712751031, -0.02242332510650158, 0.013757549226284027, -0.006419630255550146, -0.04936344176530838, -0.01646108739078045, -0.0028467776719480753, -0.021868154406547546, 0.10047462582588196, -0.020335663110017776, -0.005905957892537117, 0.05114765465259552, 0.01798084005713463, -0.029842425137758255, -0.07327930629253387, -0.014415687881410122, 0.047439783811569214, 0.03833332657814026, -0.009630070067942142, -0.014873784966766834, 0.09452157467603683, 0.02355223149061203, 0.038334574550390244, -0.03729298710823059, -0.0842621922492981, 0.06928566843271255, -0.10495509952306747, 0.006760249380022287, -0.03723639249801636, 0.00040471236570738256, -0.1198355033993721, -0.009919554926455021, 0.036731649190187454, 0.01903771422803402, 0.07564618438482285, 0.01914164610207081, -0.023117976263165474 ]
0.084168