Skip to main content

Ollama Provider

Run local open-source models via Ollama with zero API costs and complete privacy, or use Ollama Cloud for hosted models.

Quick Start

Variants

Ollama (Local)

Run models on your local machine with complete privacy and zero API costs. Configuration:
  • Base URL: http://localhost:11434
  • Default model: qwen3-coder
  • API key: Not required
  • Context: 32K+ tokens
Prerequisites: Ollama must be installed and running locally.

Ollama Cloud

Access Ollama’s hosted models via their cloud API. Configuration:
  • Base URL: https://ollama.com
  • Default models: glm-4.7:cloud, minimax-m2.1:cloud
  • API key: Required from ollama.com
  • Context: Varies by model

Prerequisites

Installing Ollama (Local)

1

Download Ollama

Visit ollama.com and download for your platform
2

Install

Follow platform-specific installation instructions
3

Verify Installation

4

Pull Model

Ollama Cloud Setup

1

Create Account

Sign up at ollama.com
2

Get API Key

Navigate to API settings and generate your API key
3

Configure CCS

Configuration

Local Ollama Setup

Ollama Cloud Setup

Model Selection

Pulling Models

Cloud Models

Usage Examples

Local Ollama

Ollama Cloud

Troubleshooting

Connection Refused

Symptom: Error: connect ECONNREFUSED 127.0.0.1:11434 Cause: Ollama service not running Solution:

Model Not Found

Symptom: Error: model 'qwen3-coder' not found Cause: Model not pulled locally Solution:

Slow Responses

Symptom: Long response times Causes & Solutions:
  • CPU-only inference: Use smaller model or add GPU support
  • Large model: Switch to smaller variant (e.g., qwen3-coder:3b)
  • Insufficient RAM: Close other apps, use quantized models
Optimize performance:

Ollama Cloud API Errors

Symptom: 401 Unauthorized or 403 Forbidden Solution:

Performance Tuning

Context Length

Concurrency

Ollama handles concurrent requests via queue. For better performance:

Cost Information

Storage Locations

Ollama vs llama.cpp

Use Ollama for quick setup with curated models. Use llama.cpp if you need specific GGUF models or advanced tuning.

Next Steps

API Profiles

Configure custom Ollama endpoints

llama.cpp Provider

Alternative GGUF-based local inference

Dashboard

Manage models via web interface

Remote Proxy

Run Ollama on remote server