agentskit.js
Providers

ollama

Ollama — local LLMs on your laptop. Zero-cost, offline, private.

import { ollama } from '@agentskit/adapters'

const adapter = ollama({
  model: 'llama3.2',
  baseUrl: 'http://localhost:11434',
})

#Options

OptionTypeDefault
modelstringrequired
baseUrlstringhttp://localhost:11434
retryRetryOptionspackage default

#Why ollama

  • Zero config, zero cost, offline.
  • The current adapter exposes text streaming; its declared tool capability is false.
  • Install: curl -fsSL https://ollama.com/install.sh | sh.

#Notes

  • Speed proportional to local GPU/Apple-Silicon throughput.
  • For team shared servers pair with createRouter to fail-over to a hosted adapter on load.

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.