[PR #13147] Ollama add remote server support #45344

Open
opened 2026-04-25 01:03:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13147
Author: @sonofagl1tch
Created: 11/19/2025
Status: 🔄 Open

Base: mainHead: ollama-add-remote-server-support


📝 Commits (5)

  • 80a4496 added a configuration setting that allows users to configure the Ollama server URL.
  • 52532ac added basic data santization checks
  • d24d29e documentation updates
  • 68094f8 updated gui app to have setting for server url
  • 147a209 added comments on code changes

📊 Changes

13 files changed (+618 additions, -24 deletions)

View changed files

📝 README.md (+14 -0)
📝 app/store/database.go (+88 -5)
📝 app/store/store.go (+92 -8)
📝 app/ui/app/codegen/gotypes.gen.ts (+2 -0)
📝 app/ui/app/src/components/Settings.tsx (+77 -10)
📝 cmd/cmd.go (+9 -0)
cmd/config.go (+76 -0)
cmd/config_test.go (+31 -0)
config/config.go (+63 -0)
config/config_test.go (+33 -0)
docs/capabilities/configuration.mdx (+105 -0)
📝 docs/cli.mdx (+14 -0)
📝 envconfig/config.go (+14 -1)

📄 Description

Add Remote Server Configuration Support

Summary

This PR adds the ability to configure and connect to remote Ollama server instances, enabling users to run the Ollama client while connecting to a server hosted elsewhere.

Changes

  • Configuration Management: Added server_url configuration option to specify remote Ollama server endpoints
  • CLI Enhancement: Extended ollama config command to support setting and viewing server URL configuration
  • GUI Integration: Updated desktop application settings to include server URL configuration with data validation
  • Database Schema: Enhanced store database to persist server configuration settings
  • Documentation: Added comprehensive documentation for configuration capabilities and CLI usage

Key Features

  • Set server URL via CLI: ollama config server_url http://remote-host:11434
  • View current configuration: ollama config
  • GUI settings panel for easy server URL management
  • Input validation and sanitization for server URLs
  • Backward compatibility with existing local installations

Files Modified

  • cmd/config.go - New configuration management functionality
  • app/store/ - Database schema and store enhancements
  • app/ui/app/src/components/Settings.tsx - GUI configuration interface
  • config/config.go - Core configuration handling
  • docs/ - Updated documentation for new capabilities

Testing

  • Added unit tests for configuration validation
  • Tested GUI input validation and error handling
  • Verified backward compatibility with existing setups

🔄 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/ollama/ollama/pull/13147 **Author:** [@sonofagl1tch](https://github.com/sonofagl1tch) **Created:** 11/19/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ollama-add-remote-server-support` --- ### 📝 Commits (5) - [`80a4496`](https://github.com/ollama/ollama/commit/80a449624391f38f87845124df793b8ac1de3964) added a configuration setting that allows users to configure the Ollama server URL. - [`52532ac`](https://github.com/ollama/ollama/commit/52532ac761f4ddf6c0d72b21780fab5dfe3a485c) added basic data santization checks - [`d24d29e`](https://github.com/ollama/ollama/commit/d24d29e8e0f15df4f899b668c21c3f9876f690f4) documentation updates - [`68094f8`](https://github.com/ollama/ollama/commit/68094f8c82ea209a260076595567d95907e22930) updated gui app to have setting for server url - [`147a209`](https://github.com/ollama/ollama/commit/147a20990f191ba11bb99cec30930d4262a6ef53) added comments on code changes ### 📊 Changes **13 files changed** (+618 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+14 -0) 📝 `app/store/database.go` (+88 -5) 📝 `app/store/store.go` (+92 -8) 📝 `app/ui/app/codegen/gotypes.gen.ts` (+2 -0) 📝 `app/ui/app/src/components/Settings.tsx` (+77 -10) 📝 `cmd/cmd.go` (+9 -0) ➕ `cmd/config.go` (+76 -0) ➕ `cmd/config_test.go` (+31 -0) ➕ `config/config.go` (+63 -0) ➕ `config/config_test.go` (+33 -0) ➕ `docs/capabilities/configuration.mdx` (+105 -0) 📝 `docs/cli.mdx` (+14 -0) 📝 `envconfig/config.go` (+14 -1) </details> ### 📄 Description # Add Remote Server Configuration Support ## Summary This PR adds the ability to configure and connect to remote Ollama server instances, enabling users to run the Ollama client while connecting to a server hosted elsewhere. ## Changes - **Configuration Management**: Added `server_url` configuration option to specify remote Ollama server endpoints - **CLI Enhancement**: Extended `ollama config` command to support setting and viewing server URL configuration - **GUI Integration**: Updated desktop application settings to include server URL configuration with data validation - **Database Schema**: Enhanced store database to persist server configuration settings - **Documentation**: Added comprehensive documentation for configuration capabilities and CLI usage ## Key Features - Set server URL via CLI: `ollama config server_url http://remote-host:11434` - View current configuration: `ollama config` - GUI settings panel for easy server URL management - Input validation and sanitization for server URLs - Backward compatibility with existing local installations ## Files Modified - `cmd/config.go` - New configuration management functionality - `app/store/` - Database schema and store enhancements - `app/ui/app/src/components/Settings.tsx` - GUI configuration interface - `config/config.go` - Core configuration handling - `docs/` - Updated documentation for new capabilities ## Testing - Added unit tests for configuration validation - Tested GUI input validation and error handling - Verified backward compatibility with existing setups --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 01:03:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#45344