mirror of
https://github.com/ollama/ollama.git
synced 2026-03-27 02:58:43 +07:00
docs: update claude code and openclaw for web search (#14922)
This commit is contained in:
@@ -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).
|
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`
|
## 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.
|
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.
|
||||||
|
|||||||
@@ -15,13 +15,29 @@ Ollama handles everything automatically:
|
|||||||
1. **Install** — If OpenClaw isn't installed, Ollama prompts to install it via npm
|
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
|
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)
|
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
|
5. **Gateway** — Starts in the background and opens the OpenClaw TUI
|
||||||
|
|
||||||
<Note>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.</Note>
|
<Note>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.</Note>
|
||||||
|
|
||||||
<Note>Previously known as Clawdbot. `ollama launch clawdbot` still works as an alias.</Note>
|
<Note>Previously known as Clawdbot. `ollama launch clawdbot` still works as an alias.</Note>
|
||||||
|
|
||||||
|
## 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
|
||||||
|
```
|
||||||
|
|
||||||
|
<Note>Web search for local models requires `ollama signin`.</Note>
|
||||||
|
|
||||||
## Configure without launching
|
## Configure without launching
|
||||||
|
|
||||||
To change the model without starting the gateway and TUI:
|
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).
|
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
|
## Connect messaging apps
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user