ChatOllama
Run persistent AI agents on your own machine with local or hosted models, document knowledge bases, and MCP tools.
- Source repo
- sugarforever/chat-ollama
- Stars
- ★ 3.5k
- Last updated
- 1d ago
- FARS reviewed
- Nov 25, 2026
- License
- NOASSERTION
- Primary language
- TypeScript
- FA score
- 42/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A solo developer running an Ollama model locally who wants a chat workbench with session history and visible tool calls.
- Not a fit if
- Teams that need multi-user login and access control
- Users who want a ready desktop client with no env-var setup
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-24
- Source review
- 42/100 · Major gaps
What does this agent do, and when should you use it?
ChatOllama is an open source agentic app that runs AI agents across local and hosted models, built on the Pi Durable runtime with a SvelteKit web interface. It connects providers and local models through OpenAI-compatible endpoints, including Ollama, and lets you switch models inside a conversation. Conversation state is persisted in SQLite, so tasks keep running after you close the browser, and streamed responses expose tool activity. The runtime bundles file and shell tools, supports local and remote tools over Model Context Protocol, and can answer questions over uploaded PDF, Markdown, and plain-text documents with source citations. Everything is stored locally in SQLite and files, so no separate database or vector service is required, making it a self-hosted deployment. It covers model access, agent execution, knowledge retrieval, and the web UI in one Node.js application, with an embedding endpoint configured separately for indexing.
SvelteKit serves both the web interface and the server API, communicating over HTTP/SSE to stream responses and surface tool activity. The Pi Durable agent runtime executes agents and persists conversation sessions, while Pi AI provider adapters connect them to local and hosted models. At runtime the agent invokes built-in file and shell tools, the MCP integration for local and remote MCP servers, and knowledge retrieval that queries indexed documents and returns citations. Installed skills feed into the runtime and can be selected per conversation. Settings, session state, and uploaded files live in SQLite and the DATA_DIR location, which defaults to rewrite/data.
- A solo developer running an Ollama model locally who wants a chat workbench with session history and visible tool calls.
- A small team that wants to turn internal PDF or Markdown manuals into a question-answering knowledge base with citations.
- Users who need long-running agent tasks to continue after the browser closes and want to inspect tool activity later.
- Engineers who want to attach local or remote tools via MCP without standing up an external vector database.
- Self-hosting users who require conversations and documents to stay in local SQLite and files.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Environment variables
CHAT_BASE_URLCHAT_MODEL_IDCHAT_API_KEYDATA_DIR- Config files
.env- Runtime
- Node.js 24
How do you install or deploy this agent?
Install Node.js 24 and pnpm 10.8.1, then install and build from the rewrite/ application directory:
git clone https://github.com/sugarforever/chat-ollama.git
cd chat-ollama/rewrite
pnpm install
pnpm buildHow do you use this agent?
Configure a chat endpoint and start the app (the example uses a local Ollama server; replace your-chat-model with an installed model ID):
export HOST='127.0.0.1'
export ORIGIN='http://localhost:3000'
export CHAT_BASE_URL='http://127.0.0.1:11434/v1'
export CHAT_MODEL_ID='your-chat-model'
# Export CHAT_API_KEY if your provider requires an API key.
pnpm startOpen http://localhost:3000, add providers and change models in Settings, and configure a separate embedding endpoint and model there before indexing knowledge documents. Note that pnpm start does not load .env automatically, so export variables in your shell; data is saved in rewrite/data by default and DATA_DIR can move it elsewhere. The app has no login, so the example binds it to your local computer only.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- Conversations and documents live in local SQLite and files, with no separate database or vector service to operate.
- Model-provider adapters are OpenAI-compatible, so you can point at local Ollama or hosted providers and switch models mid-conversation.
- Pi Durable persists session state, letting agent tasks keep running after the browser is closed.
- Built-in file and shell tools plus MCP support let one runtime reach both local and remote tool servers.
- Knowledge-base answers return source citations over uploaded PDF, Markdown, and plain text.
- Requires Node.js 24 and pnpm 10.8.1 and a source build, which is a fairly new toolchain.
- Document knowledge bases need a separately configured embedding endpoint and model before indexing works.
- There is no login or access control; the documented example binds to 127.0.0.1 only, so exposing it needs your own auth layer.
pnpm startdoes not read.env, so every variable must be exported manually.- The source does not document a standalone CLI or procedural API, so automation must target the SvelteKit server API.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| ChatOllama This agent | 42 · Major gaps | Web appFree + model costs | ★ 3.5k | 1d ago | TypeScript | OpenAI API |
| AnythingLLM | 54 · Major gaps | Self-hosted serviceFree + model costs | ★ 69k | 1d ago | JavaScript | OpenAI API · Claude API |
| Tale — Shared Workspace for Teams and AI Agents | 65 · Some gaps | — | ★ 48 | today | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
| LazyMind | 61 · Some gaps | Desktop appFree + model costs | ★ 880 | today | Go | Codex |
How does FollowAgents rate this agent?
Why each dimension lost points
Evidence shows built-in file and shell tools plus remote MCP tools, while README only states there is no login and the example binds locally; no tool-level least privilege, per-action confirmation, or sandboxing is documented, and acceptance tests exercise bash tool calls, so external effects are real but no rollback/undo mechanism is shown. Settings tests show API keys are not echoed, file:// endpoints rejected, and same-origin required, which is positive, but overall permission and confirmation posture is thin, so scores are 1. The dependency list is large and includes older packages such as next-auth 4.21.1 with no audit or pinning policy described, deducted.
Tests show systematic integration coverage for endpoint edits, process restart, automatic compaction, and MCP tool loops, so self-consistency is 2; dependency availability depends on Node 24, pnpm 10.8.1, and multiple services (Ollama/Chroma/Redis/Postgres) with version requirements scattered across README and docs, so 1; failure messages appear only in test fixtures (e.g., 503) and product-level error guidance is not documented, so 1.
README clearly covers local and hosted models, knowledge bases, MCP, and skills, so audience and scenarios is 2; capability boundaries (which tools are enabled by default, shell scope) are not clearly defined, so 1; trigger precision (when tools or skills are invoked) has no documented rules, so 1; environment fit is documented via Node 24, DATA_DIR, HOST/ORIGIN, so 2.
README plus rewrite/README and docs give layered information architecture, so 2; install steps are concrete (Node 24, pnpm, env vars), so 2; naming stability is weakened by coexisting rewrite and legacy Nuxt apps and mixed package names such as chatollama-agent, so 1; examples and FAQ are limited to knowledge-base troubleshooting, so 1; known limitations mention only the lack of login, so 1; LICENSE is a modified Apache 2.0 with commercial restrictions and conflicts with NOASSERTION metadata, so 1; no CHANGELOG or version number, so 0; maintenance responsibility is only implied by AGENTS.md PR process and the publisher is unverified, so 1.
Output usability includes streaming, source citations, and persistent sessions, so 2; marginal value over plain chat comes from knowledge bases, MCP, and skills, so 2; cost-benefit is reduced by multi-service setup, embedding endpoints, and a large dependency tree, so 1.
README claims partially map to code and tests (e.g., key non-echo, same-origin checks), but architecture details are not traceable line by line, so 1; cross-source corroboration is limited because README, AGENTS.md, and docs describe legacy and rewrite variants differently, so 1; fact/inference separation is weak, with unsupported assertions such as automatic chunk-size optimization, so 1.
- The app has no login and ships shell/file tools; add authentication and network isolation before deploying beyond localhost.
- LICENSE is a modified Apache 2.0 with multi-tenant/SaaS and logo restrictions and conflicts with NOASSERTION metadata; confirm legally before commercial use.
- The dependency tree is large and includes older packages (e.g., next-auth 4.21.1) with no described audit or pinning policy.
- README and AGENTS.md describe both the rewrite SvelteKit app and the legacy Nuxt app, which can confuse configuration and docs.
- Publisher identity is unverified, so update path and maintenance commitment are unknown.
FAQ
Do I have to use Ollama?
Does my data leave the machine?
Is there any authentication?
Why does knowledge indexing fail?
Is ChatOllama free?
Is ChatOllama open source?
Is ChatOllama safe to use?
Is ChatOllama still maintained?
Who makes ChatOllama?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.