From eab4d222693f9ab356a4ff0a05e6e674e1bc6fb9 Mon Sep 17 00:00:00 2001 From: Parth Sareen Date: Wed, 18 Mar 2026 14:18:49 -0700 Subject: [PATCH] docs: update claude code and openclaw for web search (#14922) --- docs/integrations/claude-code.mdx | 14 ++++++++++++++ docs/integrations/openclaw.mdx | 28 +++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/docs/integrations/claude-code.mdx b/docs/integrations/claude-code.mdx index 9bb665c37..3040fc121 100644 --- a/docs/integrations/claude-code.mdx +++ b/docs/integrations/claude-code.mdx @@ -48,6 +48,20 @@ ollama launch claude --model kimi-k2.5:cloud Cloud models are also available at [ollama.com/search?c=cloud](https://ollama.com/search?c=cloud). +## Non-interactive (headless) mode + +Run Claude Code without interaction for use in Docker, CI/CD, or scripts: + +```shell +ollama launch claude --model kimi-k2.5:cloud --yes -- -p "how does this repository work?" +``` + +The `--yes` flag auto-pulls the model, skips selectors, and requires `--model` to be specified. Arguments after `--` are passed directly to Claude Code. + +## Web search + +Claude Code can search the web through Ollama's web search API. See the [web search documentation](/capabilities/web-search) for setup and usage. + ## Scheduled Tasks with `/loop` The `/loop` command runs a prompt or slash command on a recurring schedule inside Claude Code. This is useful for automating repetitive tasks like checking PRs, running research, or setting reminders. diff --git a/docs/integrations/openclaw.mdx b/docs/integrations/openclaw.mdx index 2b4031bb0..5e24cc3ea 100644 --- a/docs/integrations/openclaw.mdx +++ b/docs/integrations/openclaw.mdx @@ -15,13 +15,29 @@ Ollama handles everything automatically: 1. **Install** — If OpenClaw isn't installed, Ollama prompts to install it via npm 2. **Security** — On the first launch, a security notice explains the risks of tool access 3. **Model** — Pick a model from the selector (local or cloud) -4. **Onboarding** — Ollama configures the provider, installs the gateway daemon, and sets your model as the primary +4. **Onboarding** — Ollama configures the provider, installs the gateway daemon, sets your model as the primary, and installs the web search and fetch plugin 5. **Gateway** — Starts in the background and opens the OpenClaw TUI OpenClaw requires a larger context window. It is recommended to use a context window of at least 64k tokens if using local models. See [Context length](/context-length) for more information. Previously known as Clawdbot. `ollama launch clawdbot` still works as an alias. +## Web search and fetch + +OpenClaw ships with a web search and fetch plugin that gives local or cloud models the ability to search the web and extract readable page content. + +```bash +ollama launch openclaw +``` + +Web search and fetch is enabled automatically when launching OpenClaw through Ollama. To install the plugin directly: + +```bash +openclaw plugins install @ollama/openclaw-web-search +``` + +Web search for local models requires `ollama signin`. + ## Configure without launching To change the model without starting the gateway and TUI: @@ -52,6 +68,16 @@ If the gateway is already running, it restarts automatically to pick up the new More models at [ollama.com/search](https://ollama.com/search?c=cloud). +## Non-interactive (headless) mode + +Run OpenClaw without interaction for use in Docker, CI/CD, or scripts: + +```bash +ollama launch openclaw --model kimi-k2.5:cloud --yes +``` + +The `--yes` flag auto-pulls the model, skips selectors, and requires `--model` to be specified. + ## Connect messaging apps ```bash