[PR #1231] [CLOSED] feat: add local model support with tooling via Ollama (llama3 example) #9858

Closed
opened 2026-02-16 18:14:17 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1231
Author: @ferraro
Created: 7/22/2025
Status: Closed

Base: devHead: dev


📝 Commits (10+)

  • ac17f1b feat(ollama): add complete Ollama integration with text-based tool support
  • 31ba2c8 fix: resolve TypeScript errors in Ollama integration
  • 90f20ff fix: resolve remaining TypeScript errors
  • c198573 fix: handle unknown error type in log.error call
  • b727fa2 fix: correct log.error call format with proper object parameter
  • fd73729 docs: add local model support section with llama3 example
  • 14a9f1c Delete test.txt
  • 2e41cd6 Delete test.go
  • 8b4e6c2 Delete permission-test.txt
  • 6ecf38e feat: make Ollama API URL configurable

📊 Changes

17 files changed (+792 additions, -25 deletions)

View changed files

📝 README.md (+24 -0)
📝 bun.lock (+3 -0)
local.png (+0 -0)
📝 packages/opencode/bin/opencode (+0 -0)
📝 packages/opencode/package.json (+1 -0)
📝 packages/opencode/src/cli/cmd/github.ts (+3 -1)
📝 packages/opencode/src/cli/cmd/run.ts (+58 -1)
📝 packages/opencode/src/cli/cmd/tui.ts (+5 -4)
📝 packages/opencode/src/permission/index.ts (+26 -11)
📝 packages/opencode/src/provider/provider.ts (+101 -5)
📝 packages/opencode/src/server/server.ts (+39 -0)
📝 packages/opencode/src/session/index.ts (+233 -2)
packages/opencode/src/session/prompt/ollama.txt (+9 -0)
📝 packages/opencode/src/session/system.ts (+5 -1)
📝 packages/opencode/src/tool/bash.ts (+12 -0)
packages/tui/internal/components/dialog/permission.go (+262 -0)
📝 packages/tui/internal/tui/tui.go (+11 -0)

📄 Description

Summary

  • Added new "Local Model Support" section to README.md
  • Included local.png screenshot demonstrating llama3 integration with full tooling support
  • Highlighted privacy and control benefits of using local models through Ollama
  • Showcased that local LLMs support the complete tooling ecosystem

Changes

  • New section positioned between main screenshot and installation
  • Visual demonstration of local model capabilities with tooling
  • Improved documentation for users interested in local AI models with full tool integration
  • Emphasized that Ollama-powered local models maintain all opencode functionality

Key Features Highlighted

  • Full tooling support: Local models via Ollama can use all opencode tools (bash, file operations, etc.)
  • Privacy-focused: Complete AI coding assistance without cloud dependencies
  • Control: Full control over model selection and data processing

Test plan

  • Verify README.md renders correctly with new section
  • Confirm local.png image displays properly showing tooling in action
  • Check that content flows naturally with existing documentation
  • Validate that tooling support is clearly communicated

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1231 **Author:** [@ferraro](https://github.com/ferraro) **Created:** 7/22/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (10+) - [`ac17f1b`](https://github.com/anomalyco/opencode/commit/ac17f1b94d1ea2edc1bcf0925df1b5a58a5b6b09) feat(ollama): add complete Ollama integration with text-based tool support - [`31ba2c8`](https://github.com/anomalyco/opencode/commit/31ba2c82f66b8a25c4edcfbc05150298e811a402) fix: resolve TypeScript errors in Ollama integration - [`90f20ff`](https://github.com/anomalyco/opencode/commit/90f20ffae41029f7555ecef1ff1c61d311ff2d22) fix: resolve remaining TypeScript errors - [`c198573`](https://github.com/anomalyco/opencode/commit/c198573dbb858beae4be0222e3172aa560d90a4a) fix: handle unknown error type in log.error call - [`b727fa2`](https://github.com/anomalyco/opencode/commit/b727fa21e0a80384de6efda72c66888eb4c2d9cd) fix: correct log.error call format with proper object parameter - [`fd73729`](https://github.com/anomalyco/opencode/commit/fd737291112d8970c4bd41a0c56a308b21830b0e) docs: add local model support section with llama3 example - [`14a9f1c`](https://github.com/anomalyco/opencode/commit/14a9f1cb91096df5610b745bdfb03a8ab6db8966) Delete test.txt - [`2e41cd6`](https://github.com/anomalyco/opencode/commit/2e41cd660b84d2ee9a6ce3835abb8a24dbbfe0f1) Delete test.go - [`8b4e6c2`](https://github.com/anomalyco/opencode/commit/8b4e6c24b5ca7fc5280539aa4a4141d9d536e150) Delete permission-test.txt - [`6ecf38e`](https://github.com/anomalyco/opencode/commit/6ecf38e3ba7bee911f9e5ea3609500e1a1ed0bfd) feat: make Ollama API URL configurable ### 📊 Changes **17 files changed** (+792 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+24 -0) 📝 `bun.lock` (+3 -0) ➕ `local.png` (+0 -0) 📝 `packages/opencode/bin/opencode` (+0 -0) 📝 `packages/opencode/package.json` (+1 -0) 📝 `packages/opencode/src/cli/cmd/github.ts` (+3 -1) 📝 `packages/opencode/src/cli/cmd/run.ts` (+58 -1) 📝 `packages/opencode/src/cli/cmd/tui.ts` (+5 -4) 📝 `packages/opencode/src/permission/index.ts` (+26 -11) 📝 `packages/opencode/src/provider/provider.ts` (+101 -5) 📝 `packages/opencode/src/server/server.ts` (+39 -0) 📝 `packages/opencode/src/session/index.ts` (+233 -2) ➕ `packages/opencode/src/session/prompt/ollama.txt` (+9 -0) 📝 `packages/opencode/src/session/system.ts` (+5 -1) 📝 `packages/opencode/src/tool/bash.ts` (+12 -0) ➕ `packages/tui/internal/components/dialog/permission.go` (+262 -0) 📝 `packages/tui/internal/tui/tui.go` (+11 -0) </details> ### 📄 Description ## Summary - Added new "Local Model Support" section to README.md - Included local.png screenshot demonstrating llama3 integration with full tooling support - Highlighted privacy and control benefits of using local models through Ollama - Showcased that local LLMs support the complete tooling ecosystem ## Changes - New section positioned between main screenshot and installation - Visual demonstration of local model capabilities with tooling - Improved documentation for users interested in local AI models with full tool integration - Emphasized that Ollama-powered local models maintain all opencode functionality ## Key Features Highlighted - **Full tooling support**: Local models via Ollama can use all opencode tools (bash, file operations, etc.) - **Privacy-focused**: Complete AI coding assistance without cloud dependencies - **Control**: Full control over model selection and data processing ## Test plan - [x] Verify README.md renders correctly with new section - [x] Confirm local.png image displays properly showing tooling in action - [x] Check that content flows naturally with existing documentation - [x] Validate that tooling support is clearly communicated 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:17 -05:00
yindo closed this issue 2026-02-16 18:14:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9858