[PR #2359] [CLOSED] Add ollama ps command #10866

Closed
opened 2026-04-12 23:13:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2359
Author: @yeahdongcn
Created: 2/5/2024
Status: Closed

Base: mainHead: main


📝 Commits (2)

  • 56916b5 Add ollama ps command
  • e785319 Merge branch 'ollama:main' into main

📊 Changes

4 files changed (+64 additions, -0 deletions)

View changed files

📝 api/client.go (+9 -0)
📝 api/types.go (+5 -0)
📝 cmd/cmd.go (+39 -0)
📝 server/routes.go (+11 -0)

📄 Description

As a user, I would appreciate the ability to query for information regarding the currently active model in operation. For ease of use, I implemented a command akin to "docker ps" within Ollama, entitled "ollama ps".

Testing done:

  • go build . -> ok
  • Run local build binary -> ok
    ➜ ./ollama ps --help     
    List active model
    
    Usage:
      ollama ps [flags]
    
    Flags:
      -h, --help   help for ps
    ➜ ./ollama ps             
    NAME            EXPIRES            
    mistral:latest  2 minutes from now
    

🔄 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/2359 **Author:** [@yeahdongcn](https://github.com/yeahdongcn) **Created:** 2/5/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`56916b5`](https://github.com/ollama/ollama/commit/56916b5d69a06882aa7f920199629305be7705ae) Add ollama ps command - [`e785319`](https://github.com/ollama/ollama/commit/e785319dd80147ebcb21530895590ea0070c321e) Merge branch 'ollama:main' into main ### 📊 Changes **4 files changed** (+64 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+9 -0) 📝 `api/types.go` (+5 -0) 📝 `cmd/cmd.go` (+39 -0) 📝 `server/routes.go` (+11 -0) </details> ### 📄 Description As a user, I would appreciate the ability to query for information regarding the currently active model in operation. For ease of use, I implemented a command akin to "docker ps" within Ollama, entitled "ollama ps". Testing done: * `go build .` -> ok * Run local build binary -> ok ```bash ➜ ./ollama ps --help List active model Usage: ollama ps [flags] Flags: -h, --help help for ps ➜ ./ollama ps NAME EXPIRES mistral:latest 2 minutes from now ``` --- <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-12 23:13:31 -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#10866