Skip to content

Reference guide for the Ollama local model runtime, covering its REST API, OpenAI compatibility, and server configuration.

CCM score
40 of 100
skills.sh installs
247
GitHub stars
42
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers chat, text generation, embeddings, vision, structured outputs, and tool calling through both the native /api endpoints and /v1/ OpenAI-compatible routes
  • Includes cURL and Python/JavaScript examples, plus setup steps for OLLAMA_HOST, OLLAMA_MODELS, and OLLAMA_CONTEXT_LENGTH on macOS, Linux, and Windows
  • Documents cloud model access via ollama signin or OLLAMA_API_KEY, along with HTTP status codes and the NDJSON streaming format
  • Designed for developers building applications against a local Ollama server or troubleshooting GPU loading with ollama ps

Install

$ npx -y skills add rawveg/skillsforge-marketplace --skill ollama -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Ollama Skill

Comprehensive assistance with Ollama development - the local AI model runtime for running and interacting with large language models programmatically.

When to Use This Skill

This skill should be triggered when:

  • Running local AI models with Ollama
  • Building applications that interact with Ollama's API
  • Implementing chat completions, embeddings, or streaming responses
  • Setting up Ollama authentication or cloud models
  • Configuring Ollama server (environment variables, ports, proxies)
  • Using Ollama with OpenAI-compatible libraries
  • Troubleshooting Ollama installations or GPU compatibility
  • Implementing tool calling, structured outputs, or vision capabilities
  • Working with Ollama in Docker or behind proxies
  • Creating, copying, pushing, or managing Ollama models

Quick Reference

1. Basic Chat Completion (cURL)

Generate a simple chat response:

curl http://localhost:11434/api/chat -d '{
  "model": "gemma3",
  "messages": [
    {
      "role": "user",
      "content": "Why is the sky blue?"
    }
  ]
}'

2. Simple Text Generation (cURL)

Generate a text response from a prompt:

Details

Repository
github.com/rawveg/skillsforge-marketplace
Categories
AI Agents & LLM Apps, Technical Documentation, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the ollama skill do for Claude Code?

The ollama skill gives the agent working knowledge of the Ollama API, the local AI model runtime for running and interacting with large language models programmatically. It covers chat completions, text generation, embeddings, streaming responses, structured outputs, tool calling and vision models.

How do I install the ollama skill?

Run npx -y skills add rawveg/skillsforge-marketplace --skill ollama -y in a project to install the ollama skill. Once installed, the agent can call the local Ollama endpoints and cloud models from that project.

Does the ollama skill need an API key or sign-in?

Local models at localhost:11434 need no authentication with the ollama skill. Cloud models require running ollama signin or setting an OLLAMA_API_KEY environment variable for direct access to the Ollama cloud API.

Can the ollama skill work with OpenAI client libraries?

Yes, the ollama skill shows how to point the OpenAI Python and JavaScript libraries at Ollama's /v1/ endpoints using a base URL of localhost:11434. This lets existing OpenAI-based code run against local models.

Similar to Ollama

More AI Agents & LLM Apps