Managing models on a shared Ollama server starts with knowing what is installed
Model management on a shared Ollama server covers what models are on the machine, who pulled them, which ones are loaded in memory right now, and how much disk they consume. Before a team can clean up or control anything, it needs a current inventory. Ollama keeps models in a local store, by default under ~/.ollama/models on macOS, /usr/share/ollama/.ollama/models on Linux and the user's .ollama\models folder on Windows, and the OLLAMA_MODELS variable can move that store to another directory. Because the store is local, every model pulled by any user lands on the same disk, and that is where growth becomes a shared problem.
The local API at port 11434 does not require authentication, so any client that can reach the server can pull, copy or delete models through the same endpoints the CLI uses. The API reference lists the calls for listing models, listing running models, showing model details, and creating, copying, pulling, pushing and deleting models. Day-to-day control therefore depends on a documented change process that says which models users may call, who approves a new pull, and who removes a model. Without that process, unapproved pulls and forgotten large models accumulate quickly, especially once several teams share one host.
This need usually appears when more than one team uses the server, when disk use rises without a clear owner, or when someone finds a model nobody approved. The rest of this page is based on the Ollama documentation supplied for this topic, including the API reference for model endpoints and the FAQ for storage locations. Before you change anything, confirm the storage path on your own host, check which endpoints your network exposes, and record the current model list as your baseline.
Model management commands and API endpoints and when each fits
This table compares the CLI commands and API operations for listing, showing, pulling, copying, creating, pushing and deleting models, plus checking running models. Read the effect column first, since pull, copy, create, push and delete change stored state, and push also sends a model to a remote registry. Use the read-only operations to confirm each change before users can call the model.
| Operation | CLI and API | Effect on storage | When it fits |
|---|---|---|---|
| List installed models | ollama list; list models endpoint | Read only | Inventory checks and confirming a pull or delete finished |
| List running models | ollama ps; GET /api/ps | Read only | Checking which models are loaded in memory right now |
| Show model details | ollama show; show model details endpoint | Read only | Reviewing a model's configuration before approving it for users |
| Pull a model | ollama pull; pull endpoint | Writes model files into the model directory | Adding an approved model during a change window with enough free disk space |
| Copy a model | ollama cp; copy endpoint | Adds a new name for an existing model; confirm storage impact on your version | Creating a named copy of a tested version before changing a user-facing name |
| Create a model | ollama create; create endpoint | Writes a new model to local storage | Building a custom model from a Modelfile that the change process has reviewed |
| Push a model | ollama push; push endpoint | Changes the remote registry, not local storage | Publishing an approved custom model to a registry your team has confirmed as the destination |
| Delete a model | ollama rm; delete endpoint | Removes model files from local storage | Retiring a model after users have moved off it and the rollback window has closed |
How to set up a model change process on a shared server
This sequence turns ad hoc model pulls and deletions into a controlled process, with a recorded inventory, an approval step and checks after every change so the server's model set always matches what the team agreed to run.
Confirm the bind address and reachability
Start by checking which address the Ollama server listens on. By default Ollama binds to 127.0.0.1 on port 11434, so other machines cannot reach it unless OLLAMA_HOST has been changed. The platform or server owner checks the service environment (for example, the systemd unit or container settings) and confirms the bind address is only the interface you intend. From a permitted client and from an unauthorized network segment, send a request to the API and record the result. Done means the server answers only where you planned it to, and the test results are saved with the change record. Because the local API does not require authentication, any reachable address is an open API, so treat this check as a gate for everything that follows.
Record the model storage path
Identify where the server keeps model files before anyone changes them. On Linux the default is /usr/share/ollama/.ollama/models, on macOS it is ~/.ollama/models and on Windows it is the .ollama\models folder in the user profile. If OLLAMA_MODELS points elsewhere, record that directory as the authoritative location. The owner checks the environment configuration and the filesystem, confirms the directory exists, is writable by the service account and has enough free space for the planned catalog. Done means the storage path, its owner and its free space are written into the server's runbook, so disk cleanup later targets the right location.
Inventory current models with list and show calls
Create a baseline of what the server holds right now. Call the list models endpoint on the local API, or run the list command in the CLI, and then call the show endpoint for each model to capture its details, such as family, parameter size and quantization. Export the output to a file dated for the review. The person running the inventory compares each entry with any models already in use by applications or users. Done means you have a complete snapshot of installed models, and any model that nobody claims is flagged for review rather than deleted.
Compare the inventory with the approved register
Build or update a model register that lists each approved model, its exact tag, the team that owns it and the purpose it serves. Compare the baseline inventory with this register. Every installed model should match an approved entry by name and tag. Entries that are installed but not approved, and approved entries that are missing, go into a short exception list with an owner for each. Done means the register and the server agree, or each difference has a named owner and a decision. Keep the register under version control so changes have a history.
Set a pull and copy approval step
Require a written approval before any model is pulled, copied, created or pushed on the shared server. The request should name the model and tag, the source, the intended users, the license terms the owner has reviewed and the planned storage impact. An approver who is not the requester signs off, then the operator runs the pull or copy and records the result in the register. Confirm the approval process against the Ollama API reference for the create, copy, pull and push endpoints so operators know which calls are covered. Done means no model appears on the server without an approval record that matches the register entry.
Check running models after each change
After every pull, copy, create or delete, call the list running models endpoint at /api/ps, or run the ps command, to see which models are loaded in memory and whether they are placed on the GPU or partly on the CPU. Compare the loaded models with the change request. Confirm the changed model loads correctly with a short test request if the change is an addition. Done means the running model list matches what was approved and the test response is saved. If a model you did not expect is loaded, investigate its origin before the change is closed.
Remove retired models and confirm disk space
When a model is retired, delete it through the delete endpoint or the CLI only after its owner confirms no application depends on it and the register entry is marked retired. Then check the storage directory recorded earlier to confirm the disk space was reclaimed. Compare the list output with the register again. Done means the list output, the register and the storage directory all reflect the same set of models, and the deletion record names who approved it.
Schedule a recurring review
Set a recurring review of the register, the server inventory and the bind address test. The review owner compares the list output with the approved register, checks for unclaimed models and confirms the storage path still matches the runbook. Record the date, participants and any exceptions in the change log. Confirm the review interval with your own change policy, since no standard cadence is set here. Done means each review ends with a signed-off inventory and a log entry that a later auditor or operator can follow.
How pulling, copying and deleting models change the server
Pulling, copying and deleting a model change two different things: what is stored on disk and what is loaded into memory. A pulled model is written to the model directory, which is ~/.ollama/models on macOS, /usr/share/ollama/.ollama/models on Linux and the .ollama\models folder on Windows, unless OLLAMA_MODELS points elsewhere. A stored model takes disk space whether or not anyone is using it. A loaded model is a different state: it occupies memory while it serves requests, and the API reference lists running models through the /api/ps endpoint (list running models). Check both states before you change anything, because a model can be idle on disk, resident in memory, or both. Disk usage grows quickly on a shared server because every pulled tag is a separate download, and users who pull several sizes or quantizations of the same family can fill the model volume without noticing. Confirm in your Ollama version how much of a copy is shared with its source on disk.
Copying and pushing are the operations that most often surprise administrators. /api/copy gives an existing model a new name, which is useful for keeping a tested version under a stable alias while you evaluate an update. Ask your team whether that alias is a metadata change or a full duplicate of the model files, since the answer determines how much disk a copy consumes. /api/create builds a model from a definition and /api/push uploads a model to a registry. On a server that users can reach, a push is an outbound data movement, so decide who may use it and whether the server is allowed to reach external registries at all. Record each copy and create in your change log with the source model, the new name and the reason, so that a later cleanup does not remove an alias that a team still calls.
Deletion through DELETE /api/delete removes the stored model, and the safe sequence starts before that call. First query /api/ps to see whether any model with the target name is loaded, then ask the owners of any active sessions to finish their work, and only then delete. Do not assume the server will protect a session that is mid-conversation. Test in a non-production instance how your version handles a delete of a loaded model, including whether the request fails or the model is unloaded first, and write that result into your runbook. After deletion, confirm that the files are gone from the model directory and that the disk space is returned, because a successful API response does not by itself prove the storage was reclaimed. Keep an approved-model list so that a deleted model is removed deliberately, not discovered missing by a user.
Security risks in who can change the model catalog
A shared Ollama server lets any reachable client pull, copy or delete models, and each change affects what users can call and what your organization is allowed to run. The cards below name the risks that follow from that access and the control to put in place for each. Network and authentication design for the API sits on the Ollama security and access control page in this group.
Unauthenticated API behind a proxy
The local API at port 11434 has no authentication, so anyone who can reach it can call the pull, copy and delete endpoints. Exposing the server through a reverse proxy such as Nginx, which the Ollama FAQ describes, does not add authentication on its own. Confirm that the proxy enforces identity for every model-management route, and that the bind address set with OLLAMA_HOST is not wider than intended.
Ollama FAQUnapproved pulls from outside sources
Any user with API access can pull a model from a public registry onto the shared server, and the server then serves it to other users. Treat pull rights as a change-controlled action: restrict which accounts or service identities may call the pull endpoint, and keep a written list of approved model names and tags. Check the catalog against that list after each change window.
Model provenance and licensing
A model's weights and license terms come from its publisher, not from Ollama's MIT-licensed runtime. Record the source, tag, license and intended use for each approved model before it is pulled, and confirm that the license permits your planned internal or customer-facing use. A model that was approved for testing should not become a production dependency without a fresh review.
Cloud model access tied to API keys
Direct cloud inference at ollama.com requires an API key sent as a Bearer token, separate from the local API that has no authentication. Keys issued to individuals can be shared, leaked or left active after someone changes role. Assign keys to named service owners, store them in a secrets manager, rotate them on a schedule, and turn off cloud features with OLLAMA_NO_CLOUD=1 where cloud models are not approved.
Ollama authentication docsDeleting models others depend on
Running ollama rm or the delete endpoint removes a model that applications may call by name, and those calls then fail. Limit delete rights to the platform owner, announce removals in advance, and check which applications reference a model tag before removing it. Keep a copy of the model reference so a deleted model can be pulled again quickly if a rollback is needed.
Questions buyers ask about managing Ollama models
Does managing Ollama models on a shared server cost money?
The Ollama runtime is open source under the MIT license, and Ollama's pricing page states that running models on your own hardware is always unlimited. Your spend therefore comes from the hardware, storage and staff time that run the server, plus any cloud features you choose to use. Those cloud plans are separate: Ollama lists Pro, Max, Team and Enterprise tiers for cloud models, with Enterprise priced on request. Confirm with your procurement team whether any cloud model or support purchase is in scope, and keep the local-only path separate in your budget. Model weights carry their own licenses, which you should review before adding each model to the approved list.
How much effort does a model change process take to run?
Effort depends on how many models you add, how often teams request changes and how much review each model needs. A basic process covers a request form, a license and provenance check, a test pull on a non-production server, a short quality check against your use cases, and a recorded approval before the model is exposed to users. Each step is a small task, but the review step grows with the number of sources and the sensitivity of the data users will send. Ask any provider to write out each step, the owner for each one, and how long approvals usually take in your environment.
What does the team need to provide before model management starts?
Three things are needed before any work begins. You need hardware access, meaning shell or console access to the Ollama host and its storage, plus the ability to restart the service when a configuration change requires it. You need an approved model list, written by the people who own the use cases and the data rules, that names each model, its version or tag and its license terms. You also need admin rights on the server or container platform, so the team can pull, copy and delete models and change environment variables such as OLLAMA_MODELS. Without these, the change process stalls at the first request.
Can our internal staff manage Ollama models without a partner?
Yes, a team with Linux administration skills can run the day-to-day commands itself. The CLI and the REST API both support listing, pulling, copying and deleting models, and listing running models, so routine work does not need a vendor. What usually needs outside help is the first design: setting up storage paths, deciding how the approved list is enforced in front of the API, and writing the change process. Confirm that your team has an owner for the approved list, an on-call person for failed pulls, and a schedule for cleanup, because these are the tasks that lapse first.
What do Enterprise model access controls add over the free runtime?
According to Ollama's pricing page, the Enterprise plan adds model access controls, cost budgets per user or API key, a dedicated support channel and custom security options on top of the Team plan's features. Model access controls matter here because the local API at port 11434 has no built-in authentication, so the approved list is otherwise enforced by convention. Before you rely on any plan feature, ask Ollama exactly how access controls apply to locally hosted models, since the pricing page describes cloud model access, and get that answer in writing.
What should we confirm about disk limits and versions on our server?
Confirm the storage path, the free space on that volume and who approves growth. Ollama stores models in a default folder for each platform, and the OLLAMA_MODELS variable moves them elsewhere, so check which path your service actually uses. Models are large, and deleted tags only free space after you run the delete command and clean up unused layers, so schedule a review of ollama list against your approved list. Also confirm which Ollama version is installed on each host, because commands and API fields can change between releases. Check the Ollama GitHub releases page and pin the version your change process was tested against.
Can we see which models are loaded and how much memory they use?
Yes. The ollama ps command and the list running models endpoint show which models are currently loaded in memory, and the response describes their size and processor placement. Use this during a change review to confirm that a newly approved model loads on the expected hardware and that old models are unloaded. Ask your engineers to record the output in the change ticket, because a model that loads partly on CPU will respond more slowly than your users may expect.
What to confirm about model management in your environment
The mechanics of pulling, copying and deleting models are straightforward, but several decisions depend on your release, your storage and your access model. Check each item below against your own environment before you write the model change process, because the answers decide who can call which model.
Exact version and endpoint behavior
Confirm which Ollama release you will run and check the model management endpoints on that exact version: listing, showing, pulling, copying and deleting models, and listing running models through the ps endpoint. Release notes move quickly, so test the calls in a staging server before you publish procedures. Record the version in your change log so a later upgrade can be compared against it. Check the GitHub releases page for changes that affect these endpoints.
- Latest stable release listed
- v0.40.5
Storage capacity against model sizes
Model files are stored in a default directory per platform, and the OLLAMA_MODELS variable can move them to another location. Measure the disk where that directory sits, then compare it with the sizes of every model you plan to allow, plus room for pulls and temporary files during an update. Confirm that the volume is backed up or excluded from backup as your policy requires. Ask who owns cleanup when the disk fills.
Ollama FAQAccess layer for model allow lists
The local Ollama API does not require authentication, so a model allow list enforced only by a procedure is not an access control. Decide whether a gateway or reverse proxy must sit in front of the API to restrict which models a user or application can call. Confirm that the proxy can inspect the model field in requests, and test that a blocked model is refused. Check how the proxy handles the copy and delete endpoints, since those change the server's model set.
API authentication docsEnterprise model access controls
The Enterprise plan lists model access controls, per-user or per-key cost budgets and custom security options on top of the Team plan's features. Confirm whether these features apply to your own hardware deployment, to cloud models only, or to both, and get that answer in writing from Ollama. If you only run models on your own hardware, a procedural allow list or your own gateway may cover the requirement. Ask Ollama what support and contract terms apply before you plan around them.
Ollama pricingModel sourcing and licensing
Each model carries its own license and terms, separate from the MIT license of the Ollama runtime. Record where every model came from, which account or registry path it was pulled from, and the license text that governs its use. Confirm whether your legal team accepts each license for internal and customer-facing use, and whether any model is a custom or fine-tuned import with its own provenance. Review this list before each pull into production.
Ollama repositoryWho approves model changes
Name the people who can add, copy, replace or delete a model on the shared server, and confirm how their approvals are recorded. Check whether your ticketing or Git workflow can hold the approved model list, and whether the server can be audited for pulls and deletes. Confirm who is notified when a model is removed, because applications that call it will fail. Document this as part of the change process, not as a side note.
How a model change moves from request to approved server state
A model change starts with a requester asking for a model in the approved register, not with a pull on the server. An approver checks the request against the register, then an admin runs the pull or delete through the CLI or API. The proxy or gateway in front of the server is the trust boundary where access is enforced, because the local Ollama API has no authentication of its own. Finish by running ollama ps and listing installed models to confirm that the server matches the register.
Approved change path from requester to confirmed server state.
How to clean up disk space without breaking users
Decide what to remove before you remove anything. Start by listing candidate models from the usage records your gateway, reverse proxy or logging pipeline keeps for the shared server, then check each candidate against the approved list that governs which models users may call. A model that nobody has requested recently but that remains on the approved list stays. Only models that are both idle and no longer approved go into the removal batch. Record the decision and the approver for each model so the list can be defended later.
Before deleting, confirm that nothing is loaded. Run ollama ps on the server, or call the list running models endpoint described in the Ollama docs, and make sure no candidate appears. Then remove each model with ollama rm or the delete endpoint of the API. Afterward, check free space on the models directory. The default paths are ~/.ollama/models on macOS, /usr/share/ollama/.ollama/models on Linux and the .ollama\models folder in the user profile on Windows, and the OLLAMA_MODELS variable points the server at another directory if your storage is elsewhere. Confirm the path your service actually reads, because a model can be removed from the wrong location. Also confirm how much space is returned on your version, since layers shared with other models stay on disk while anything still references them.
Keep a way back before you delete. For each model, save its name, tag and digest (available from the show model details endpoint or ollama show), along with its approved-list entry and the removal date. If the storage has room, copy the model's files out of the models directory for a holding period your change process sets. Otherwise, rely on re-pulling from the registry, and confirm that the model is still published there before you rely on that path. Tell users which models are being removed and when, and name the person who can restore one on request. A removal without a notice and a restore path is the most common way a cleanup turns into an outage.
How DeployOpen works on this
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including Ollama. For a shared Ollama server, that means agreeing in writing which models users may call, how they are stored and removed, and how changes are approved before any work begins.
How we scope
- Inventory the models already on the server, their sources, and which teams depend on each one
- Agree where model files live, how much disk they may use, and who owns cleanup
- Define the approval path for adding, copying or deleting a model before users can call it
How we build
- Set up model pulls, copies and deletions through the CLI and the API under a documented runbook
- Script checks of running models with the ps endpoint and disk usage reports for the model directory
- Test the change process end to end on a non-production server before it goes live
How we hand over
- Deliver a written model register listing approved models, versions, owners and storage locations
- Hand over the change request template, cleanup procedure and rollback steps for removed models
- Walk your operations and platform team through the runbook so they can run it without us
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
- Ongoing support, upgrades and continuous testing are available as a retainer
- Ask any provider to confirm in writing who approves model changes and who answers when a model fails to load

