1. Install Claude Code
2. Set the environment variables
```shell theme={"system"} export ANTHROPIC_AUTH_TOKEN=ollama export ANTHROPIC_API_KEY="" export ANTHROPIC_BASE_URL=http://localhost:11434 ```3. Run Claude Code
```shell theme={"system"} claude --model qwen3.5 ``` Or run with environment variables inline: ```shell theme={"system"} ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_BASE_URL=http://localhost:11434 ANTHROPIC_API_KEY="" claude --model kimi-k2.7-code:cloud ``` # Cline Source: https://docs.ollama.com/integrations/cline ## Install Install [Cline](https://docs.cline.bot/getting-started/installing-cline) in your IDE. ## Usage with Ollama 1. Open Cline settings > `API Configuration` and set `API Provider` to `Ollama` 2. Select a model under `Model` or type one (e.g. `qwen3`) 3. Update the context window to at least 32K tokens under `Context Window`1. Install OpenCode
2. Configure Ollama as a provider
Add an Ollama provider to `opencode.json`: ```json theme={"system"} { "$schema": "https://opencode.ai/config.json", "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "name": "Ollama", "options": { "baseURL": "http://localhost:11434/v1" }, "models": { "qwen3.5": { "name": "qwen3.5" } } } } } ```3. Run OpenCode
```shell theme={"system"} opencode ``` To configure OpenCode with Ollama without starting an interactive session: ```shell theme={"system"} ollama launch opencode --config ``` ### Configuration precedence `ollama launch opencode` starts OpenCode with an inline config for the selected Ollama model. It does not overwrite `~/.config/opencode/opencode.json`; existing OpenCode settings still apply. Models defined only in `opencode.json` do not appear in the `ollama launch` model picker. See OpenCode's [config precedence](https://opencode.ai/docs/config/#precedence-order). # Pi Source: https://docs.ollama.com/integrations/pi Pi is a minimal and extensible coding agent. ## Quick setup ```bash theme={"system"} ollama launch pi ``` This installs Pi if needed, configures Ollama as a provider including web tools, and drops you into an interactive session. To configure without launching: ```shell theme={"system"} ollama launch pi --config ``` ### Run directly with a model ```shell theme={"system"} ollama launch pi --model qwen3.5:cloud ``` Cloud models are also available at [ollama.com](https://ollama.com/search?c=cloud). ## Extensions Pi ships with four core tools: `read`, `write`, `edit`, and `bash`. All other capabilities are added through its extension system. On-demand capability packages invoked via `/skill:name` commands. Install from npm or git: ```bash theme={"system"} pi install npm:@foo/some-tools pi install git:github.com/user/repo@v1 ``` See all packages at [pi.dev](https://pi.dev/packages) ### Web search Pi can use web search and fetch tools via the `@ollama/pi-web-search` package. When launching Pi through Ollama, package install/update is managed automatically. To install manually: ```bash theme={"system"} pi install npm:@ollama/pi-web-search ``` ### Autoresearch with `pi-autoresearch` [pi-autoresearch](https://github.com/davebcn87/pi-autoresearch) brings autonomous experiment loops to Pi. Inspired by Karpathy's autoresearch, it turns any measurable metric into an optimization target: test speed, bundle size, build time, model training loss, Lighthouse scores. ```bash theme={"system"} pi install https://github.com/davebcn87/pi-autoresearch ``` Tell Pi what to optimize. It runs experiments, benchmarks each one, keeps improvements, reverts regressions, and repeats — all autonomously. A built-in dashboard tracks every run with confidence scoring to distinguish real gains from benchmark noise. ```bash theme={"system"} /autoresearch optimize unit test runtime ``` Each kept experiment is automatically committed. Each failed one is reverted. When you're done, Pi can group improvements into independent branches for clean review and merge. ## Manual setup ### Install Install [Pi](https://github.com/earendil-works/pi): ```bash theme={"system"} npm install -g @earendil-works/pi-coding-agent ``` Add a configuration block to `~/.pi/agent/models.json`: ```json theme={"system"} { "providers": { "ollama": { "baseUrl": "http://localhost:11434/v1", "api": "openai-completions", "apiKey": "ollama", "models": [ { "id": "qwen3-coder" } ] } } } ``` Update `~/.pi/agent/settings.json` to set the default provider: ```json theme={"system"} { "defaultProvider": "ollama", "defaultModel": "qwen3-coder" } ``` # Pool Source: https://docs.ollama.com/integrations/pool Pool is Poolside's software agent for the terminal, built for enterprise development workflows. ## Install Install [Pool](https://github.com/poolsideai/pool): ## Usage with Ollama ### Quick setup ```shell theme={"system"} ollama launch pool ``` ### Run directly with a model ```shell theme={"system"} ollama launch pool --model kimi-k2.6:cloud ``` ### Pass arguments through to Pool Arguments after `--` are passed directly to Pool: ```shell theme={"system"} ollama launch pool -- --help ``` ## Manual setup Pool connects to Ollama using the OpenAI-compatible API via environment variables. 1. Set the environment variables: ```shell theme={"system"} export POOLSIDE_STANDALONE_BASE_URL=http://localhost:11434/v1 export POOLSIDE_API_KEY=ollama ``` 2. Run Pool with an Ollama model: ```shell theme={"system"} pool -m kimi-k2.6:cloud ``` Or run with environment variables inline: ```shell theme={"system"} POOLSIDE_STANDALONE_BASE_URL=http://localhost:11434/v1 POOLSIDE_API_KEY=ollama pool -m kimi-k2.6:cloud ``` # Roo Code Source: https://docs.ollama.com/integrations/roo-code ## Install Install [Roo Code](https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline) from the VS Code Marketplace. ## Usage with Ollama 1. Open Roo Code in VS Code and click the **gear icon** on the top right corner of the Roo Code window to open **Provider Settings** 2. Set `API Provider` to `Ollama` 3. (Optional) Update `Base URL` if your Ollama instance is running remotely. The default is `http://localhost:11434` 4. Enter a valid `Model ID` (for example `qwen3` or `qwen3-coder:480b-cloud`) 5. Adjust the `Context Window` to at least 32K tokens for coding tasks