A custom model built with a Modelfile only exists on your computer until you share it. The import docs explain the route: “You can share any model you have created by pushing it to ollama.com so that other users can try it out.” Pushing needs two one-time setup steps, an account and a public key, and then the model must carry your username in its name.
The four steps in order
The import docs give the order, and the KodeKloud guide adds where each platform keeps the public key. The username matters because it becomes part of the model’s name, such as jmorganca/mymodel in the docs’ example.
| Step | What to do |
|---|---|
| 1. Create an account | Sign up at ollama.com and verify your email; pick a username you are comfortable sharing, since it becomes part of the model name |
| 2. Add your public key | In the Ollama Keys settings page, paste the contents of your Ollama public key: ~/.ollama/id_ed25519.pub on macOS and Linux, C:\Users\<username>\.ollama\id_ed25519.pub on Windows |
| 3. Name the model | Make sure the model name starts with your username; use ollama cp to copy it to the right name if needed |
| 4. Push it | Run ollama push on the namespaced name |
Try it: rename and push a practice model
Using the docs’ own example name, rename a local model into your namespace and push it. Only push a model you are happy to share: once pushed, other users can pull and run it.
ollama cp mymodel jmorganca/mymodel
ollama push jmorganca/mymodel
| Check | What you should see |
|---|---|
| The model name before pushing | Your username at the start, as in jmorganca/mymodel |
| The push output | The upload completes without an authentication error |
| From another machine | ollama pull jmorganca/mymodel downloads it and ollama run jmorganca/mymodel starts it |
Expected result. We checked Ollama’s import docs and the KodeKloud guide to uploading custom models. We did not create an Ollama account or push a model.
Limits
Pushing publishes the model on ollama.com, so do not push a model whose Modelfile or system prompt contains anything private: anyone who pulls it gets those instructions too. The public key setup is a one-time step, but the naming is not optional: a model without your username in its name will not land in your namespace. And a pushed model is a snapshot: if you change the Modelfile later, push again so others get the new version. We did not test any of this ourselves.
