feat: add web search hint to onboarding

This commit is contained in:
Peter Steinberger
2026-01-15 04:25:19 +00:00
parent dcadaad228
commit 2e0325e3bf
5 changed files with 30 additions and 9 deletions

View File

@@ -110,4 +110,10 @@ export async function runNonInteractiveOnboardingLocal(params: {
skipSkills: Boolean(opts.skipSkills),
skipHealth: Boolean(opts.skipHealth),
});
if (!opts.json) {
runtime.log(
"Tip: set BRAVE_API_KEY (or tools.web.search.apiKey) to enable web_search. Docs: https://docs.clawd.bot/tools/web",
);
}
}

View File

@@ -44,5 +44,8 @@ export async function runNonInteractiveOnboardingRemote(params: {
} else {
runtime.log(`Remote gateway: ${remoteUrl}`);
runtime.log(`Auth: ${payload.auth}`);
runtime.log(
"Tip: set BRAVE_API_KEY (or tools.web.search.apiKey) to enable web_search. Docs: https://docs.clawd.bot/tools/web",
);
}
}

View File

@@ -75,6 +75,14 @@ export async function runOnboardingWizard(
) {
printWizardHeader(runtime);
await prompter.intro("Clawdbot onboarding");
await prompter.note(
[
"Recommended: get a Brave Search API key to enable web_search.",
"Set BRAVE_API_KEY or tools.web.search.apiKey.",
"Docs: https://docs.clawd.bot/tools/web",
].join("\n"),
"Web search (optional)",
);
await requireRiskAcknowledgement({ opts, prompter });
const snapshot = await readConfigFileSnapshot();