[GH-ISSUE #8077] Add support for setting models to private on ollama push #82846

Open
opened 2026-05-09 15:56:13 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @BruceMacD on GitHub (Dec 12, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8077

Currently, while it's possible to create private repositories through the ollama.com web interface, there's no way to initialize a new private repository directly through the ollama push CLI command. This creates friction in automated workflows and requires context switching between CLI and web interface when working with private models.

Proposed Solution

Extend the ollama push command to support creating private repositories on initialization. This would allow users to create and push to private repos in a single command.

Example usage:

ollama push username/my-model:latest --private

Justification

Enables fully automated workflows for private model management
Maintains consistency with other CLI tools (like GitHub CLI) that support private repo creation
Reduces context switching between CLI and web interface
Important for organizations that want to automate private model deployment pipelines

Alternative Solutions

  1. Status Quo: Continue requiring web interface for private repo creation
    Pro: Simpler CLI interface
    Con: Breaks automation workflows

  2. A user-level setting on ollama.com that can set new repos to automatically be private for the user.

Originally created by @BruceMacD on GitHub (Dec 12, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8077 Currently, while it's possible to create private repositories through the ollama.com web interface, there's no way to initialize a new private repository directly through the ollama push CLI command. This creates friction in automated workflows and requires context switching between CLI and web interface when working with private models. # Proposed Solution Extend the ollama push command to support creating private repositories on initialization. This would allow users to create and push to private repos in a single command. Example usage: ```bash ollama push username/my-model:latest --private ``` # Justification Enables fully automated workflows for private model management Maintains consistency with other CLI tools (like GitHub CLI) that support private repo creation Reduces context switching between CLI and web interface Important for organizations that want to automate private model deployment pipelines # Alternative Solutions 1. Status Quo: Continue requiring web interface for private repo creation Pro: Simpler CLI interface Con: Breaks automation workflows 2. A user-level setting on ollama.com that can set new repos to automatically be private for the user.
GiteaMirror added the feature request label 2026-05-09 15:56:13 -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#82846