Ollama
AI development tool · Free + paid
A model runtime with a CLI and API: model downloads, local inference, and model management for AI app prototypes on your own hardware.

What you can use for free
The open source component used locally or self-hosted for the stated workflow, within its license terms.
Paid features and costs
Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected.
Access and limitations
Code licensing and hosting costs are separate matters. Check the conditions for the specific version and edition.
Use cases
- Embed a local text model in a prototype
- Run the model, send a request from the app, and compare several test responses
Example workflow
A possible workflow; this is not a report of hands-on testing.
Compare a local model on a short query set.
Before you start
- A model with reviewed usage terms.
- Five input examples and criteria for a useful answer.
Steps
- Download the model and run one query through the CLI.
- Repeat the queries through the local API, saving answers and execution times.
- Check errors and memory consumption before connecting it to an application.
Check your result
- Answers are evaluated against the source examples rather than text fluency alone.
- The API is not open to others; the intended local mode is selected.
Choosing Ollama
Run a chosen language model locally and access it from an application through an API.
Choose this when
- You need to compare local model answers on your own examples.
- Control over the machine running generation matters.
Consider alternatives when
- A cloud API is more convenient if you cannot allocate memory and maintain a local model.
Requirements
- Ollama installed, a compatible model, and enough memory for it and the chosen context.
Things to consider
- The Ollama license does not replace the model’s terms.
- Local and cloud models have different data processing paths; choose the mode separately.
Frequently asked questions
Does Ollama work only locally?
No: cloud capabilities are also available. For local mode, use a local model and disable cloud features following the documentation.
Related tasks and approaches
License
MIT
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- Ollama
- AI development tool