add-ollama-provider

Redirect NanoClaw agent groups to a local Ollama model via environment overrides.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/wrightchin/nanoclaw-playground --skill add-ollama-provider-wrightchin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-ollama-provider
Source: https://github.com/wrightchin/nanoclaw-playground/tree/main/.claude/skills/add-ollama-provider
Command: npx skills add https://github.com/wrightchin/nanoclaw-playground --skill add-ollama-provider-wrightchin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Route a NanoClaw agent group to a local Ollama model instead of the Anthropic API. Ollama speaks the Anthropic API natively (v1/messages), so no provider code changes are needed — just env var overrides and a model setting. Use when the user wants to run their agent locally, cut API costs, or experiment with open-weight models. See docs/ollama.md for background.

Core Features & Use Cases

  • Local Ollama as provider: Redirect per-agent group API calls to a local Ollama instance.
  • Cost reduction & experimentation: Run open-weight models locally to avoid API costs and experiment with model variants.
  • Guided setup for per-group configuration: Requires env overrides, a per-group model setting, and Ollama must be running.

Quick Start

Install Ollama and run the Ollama model, then configure the NanoClaw provider to redirect to Ollama by setting environment variables and the Claude model setting.

Frequently Asked Questions about add-ollama-provider

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route a NanoClaw agent group to a local Ollama model?

Route a NanoClaw agent group to a local Ollama model by applying per-agent group environment variable overrides and setting the Claude model configuration. Ollama natively supports the Anthropic API, so no provider code changes are needed.

Can I use Ollama with the Anthropic API to run agents locally?

Yes, Ollama speaks the Anthropic API natively, allowing you to run agents locally. You can redirect API calls to a local Ollama instance by configuring environment variables and the model setting without altering provider code.

What do I need to configure before switching my agent group to an Ollama local model?

Before switching to an Ollama local model, you must install Ollama, run the selected model, and configure per-agent group environment overrides and host blocking. You also need to set the specific model setting for the agent group.

Why use a local Ollama model instead of the Anthropic API for agent development?

Use a local Ollama model to reduce API costs and enable experimentation with open-weight models. It supports running agents locally across development and testing scenarios without incurring external API expenses.

Does redirecting to Ollama require changing the provider code for my agent group?

No, redirecting to Ollama does not require provider code changes because Ollama natively supports the Anthropic API. You only need to apply environment variable overrides and update the model setting for the group.

What are the limitations of using local Ollama models for NanoClaw agents?

Using local Ollama models requires host blocking configuration and per-agent group environment overrides, which limits changes to specific groups. You must also ensure Ollama is installed and running before executing agents.