Want to run a 120B or 1T-parameter model through Ollama without buying a bigger GPU? That is what Ollama’s cloud models are for. You keep the same ollama run command, the same local API on port 11434 and the same apps, but the model runs on Ollama’s servers instead of your card.
This guide explains how Ollama cloud works in late 2026.
It covers signing in, the :cloud model names, calling the cloud API directly with an API key, using cloud models in Claude Code and OpenAI-style apps, the current plans and per-token prices, privacy, and how to switch cloud features off completely if you want a local-only setup.
- Sign in once: run
ollama signin(or sign in from the app’s Settings). - Run a cloud model:
ollama run gemma4:cloud. Nothing is downloaded. - No Ollama installed? Create an API key at ollama.com and call
https://ollama.com/apiorhttps://ollama.com/v1. - Billing: per token at each model’s rate. Pro is $20/month with $60 of usage included, Max is $100/month with $300 included.
- Privacy: Ollama says cloud prompts are processed transiently, not stored or logged, and never used for training.
- Local only: set
OLLAMA_NO_CLOUD=1or"disable_ollama_cloud": truein~/.ollama/server.json.
New to Ollama? My Ollama guide covers install, models, commands and fixes in one place.
What Ollama Cloud Models Are
Ollama started as a way to run open models on your own computer. Cloud models extend that with hosted inference. In Ollama’s own words, they let you “run larger models in Ollama’s cloud without requiring a powerful GPU.”
The important part is that cloud models plug into the same tools you already use:
- The Ollama app on Windows and macOS lists them in the model picker.
- The CLI runs them with
ollama run, just like a local model. - Your local API at
http://localhost:11434forwards requests for cloud models, so apps built for local Ollama work unchanged. - The official Python and JavaScript libraries can call them.
You can also skip the local install entirely and call https://ollama.com/api with an API key, which is handy on a server or a laptop with no GPU.
When cloud makes sense
| Situation | Local model | Cloud model |
|---|---|---|
| Model fits in your VRAM | Best choice: free and private | Not needed |
| Model is far bigger than your GPU (100B+) | Slow or impossible | Runs at full speed |
| Laptop with no dedicated GPU | Small models only | Any model in the cloud library |
| Strict offline or air-gapped work | Yes | No (needs internet and an account) |
| Coding agents that need large models | Possible with a big rig | Easy with ollama launch |
Step 1: Sign In
Both ways of using cloud models need a free Ollama account. Install or update Ollama first (see how to install Ollama), then sign in.
From the app
On Windows or macOS, open the Ollama app, go to Settings and sign in with your Ollama account.
From the terminal
ollama signin
This links your local install to your account. Behind the scenes it registers your machine’s Ollama Public Key, the public half of a key pair Ollama creates on first run. The same key is used to push models and pull private ones.
| OS | Public key file |
|---|---|
| Windows | C:\Users\<username>\.ollama\id_ed25519.pub |
| macOS | ~/.ollama/id_ed25519.pub |
| Linux (service install) | /usr/share/ollama/.ollama/id_ed25519.pub |
If the CLI sign-in can’t open a browser (for example over SSH), copy the contents of that .pub file into the Ollama Keys page at ollama.com/settings/keys. Never share the private id_ed25519 file without the .pub ending.
Step 2: Run a Cloud Model
Cloud models don’t need to be pulled. Run one directly:
ollama run gemma4:cloud
The first reply arrives as soon as the cloud responds, with no multi-gigabyte download. Everything you know from local models still works: /bye to exit, --verbose for timing, and the same chat commands.
To browse what’s available, open the cloud filter of the model library at ollama.com/search?c=cloud. The Ollama app also shows cloud models in its picker.
Call a cloud model through your local API
Once signed in, your local server accepts cloud models like any other. This is the same Ollama API you’d use for local models:
curl http://localhost:11434/api/chat -d '{
"model": "gemma4:cloud",
"messages": [{"role": "user", "content": "Explain RAG in two sentences."}],
"stream": false
}'
That means tools such as Open WebUI, n8n or your own scripts can switch to a cloud model just by changing the model name.
Model Names: :cloud vs Direct API Names
This trips people up, so it’s worth spelling out. Ollama uses two naming styles:
| Where you call it | Name to use | Example |
|---|---|---|
| Ollama app, CLI, local API, official libraries | The :cloud tag |
gemma4:cloud |
Direct requests to ollama.com |
The name returned by /api/tags |
gemma4:31b |
To see the exact names the direct API accepts:
curl https://ollama.com/api/tags
If you get a “model not found” error, you’ve usually mixed the two styles.
Use the Cloud API Without Installing Ollama
For servers, CI jobs or a thin laptop, you can call the cloud directly.
Create an API key
- Sign in at
ollama.com/signin. - Open
ollama.com/settings/keys. - Create a key and copy it. It’s used as a bearer token.
Store it in an environment variable rather than in code. In Bash or Zsh:
export OLLAMA_API_KEY="your_api_key"
On Windows PowerShell:
$env:OLLAMA_API_KEY = "your_api_key"
Keep the key out of browser code and out of Git.
Send a request
curl https://ollama.com/api/chat \
-H "Authorization: Bearer $OLLAMA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemma4:31b",
"messages": [{"role": "user", "content": "Say hello in one sentence."}],
"stream": false
}'
The answer is in message.content, exactly like the local API.
API key vs public key
An API key authenticates a program that calls ollama.com directly. Your public key identifies a local Ollama install after ollama signin. You need one or the other, not both.
Cloud Models in Claude Code, OpenAI Clients and Open WebUI
Claude Code with ollama launch
Ollama can start Claude Code wired to its Anthropic-compatible API:
ollama launch claude
Pick a model in the selector, or pass one directly. This example runs a one-off prompt with a cloud model and skips the selectors:
ollama launch claude --model gemma4:cloud --yes -- -p "how does this repository work?"
Arguments after -- go straight to Claude Code. Choose a cloud model that supports tools, because coding agents rely on tool calls.
Claude Code straight to the cloud
Without a local Ollama install, point Claude Code at the cloud endpoint:
ANTHROPIC_BASE_URL=https://ollama.com \
ANTHROPIC_AUTH_TOKEN="$OLLAMA_API_KEY" \
ANTHROPIC_API_KEY="" \
claude --model glm-5.3-flash
Ollama notes that Claude settings files can override these shell variables, so run /status inside Claude Code to confirm the base URL. Basic chat and file edits work. Hosted web search and advanced tool controls are not fully supported. If you prefer routing several providers, see my Claude Code Router guide.
OpenAI Python client
import os
from openai import OpenAI
client = OpenAI(
base_url="https://ollama.com/v1",
api_key=os.environ["OLLAMA_API_KEY"],
)
r = client.chat.completions.create(
model="gemma4:31b",
messages=[{"role": "user", "content": "Say hello in one sentence."}],
)
print(r.choices[0].message.content)
The cloud endpoint also accepts stateless Responses API calls. It does not support stateful Responses, built-in web search through /v1/responses, or custom tool-call replay.
Open WebUI and other local apps
Keep Open WebUI pointed at your local Ollama (http://localhost:11434). After you sign in, cloud models appear next to local ones, so there’s nothing extra to configure.
Plans and Pricing
Ollama moved cloud billing to tokens in late August 2026. Its blog explains that the older GPU-time billing “was difficult to predict.” Usage is now measured in tokens at each model’s own rate, and paid plans include a monthly usage allowance.
| Plan | Price | Included usage | Concurrent requests | Notes |
|---|---|---|---|---|
| Free / pay as you go | $0 | Small monthly allowance for starter models | 3 | Buy credits to unlock all cloud models at per-token prices |
| Pro | $20/month or $200/year | $60 a month | 3 | Access to larger “pro” models |
| Max | $100/month | $300 a month | 10 | Early access to the newest models |
| Team (early access) | $500/month | $1,000 shared | 10 | Unlimited users, central billing |
| Enterprise | Custom | Custom | Custom | Model access controls, per-key budgets |
A few billing rules worth knowing:
- Included credits reset monthly on your subscription date and do not roll over.
- When included credits run out, Ollama draws from any purchased credits.
- The new plans have no 5-hour or weekly limits. Older Pro and Max subscribers can stay on their legacy plans while they auto-renew.
- Paid plans get an email at 90% usage.
Sample per-token prices
Prices are in US dollars per million tokens, from Ollama’s pricing page on 27 November 2026. Check the live page before budgeting, because models and rates change.
| Model | Input | Cached input | Output |
|---|---|---|---|
| gpt-oss:20b | $0.07 | $0.035 | $0.30 |
| gpt-oss:120b | $0.15 | $0.014 | $0.60 |
| gemma4 | $0.14 | $0.05 | $0.40 |
| glm-5.3-flash | $0.15 | $0.03 | $0.50 |
| deepseek-v4.1-flash | $0.30 | $0.006 | $1.20 |
| minimax-m3 | $0.60 | $0.12 | $2.40 |
| kimi-k2.6 | $0.95 | $0.16 | $4.00 |
| deepseek-v4-pro | $1.32 | $0.044 | $3.96 |
| glm-5.3 | $1.40 | $0.26 | $4.40 |
| kimi-k3 | $3.00 | $0.30 | $15.00 |
DeepSeek models also list cheaper off-peak rates (about half price), and the pricing page describes off-peak as weekends plus set weekday hours in UTC.
What does $60 of usage buy?
As a rough guide: at gpt-oss:120b rates, $60 covers about 400 million input tokens or 100 million output tokens. With a larger model like glm-5.3, the same $60 covers about 13.6 million output tokens. Coding agents burn through input tokens quickly because they resend files and context, and cached-input pricing helps a lot there.
Check Usage and Balance
The usage page at ollama.com/settings shows recent activity. There are also two API endpoints, both needing an API key:
# Requests, tokens and cost for the last 24h (also 7d or 30d)
curl 'https://ollama.com/api/usage?range=24h' \
-H "Authorization: Bearer $OLLAMA_API_KEY"
# Remaining included and purchased credits
curl https://ollama.com/api/balance \
-H "Authorization: Bearer $OLLAMA_API_KEY"
New usage can take a little while to show up. Team admins can pull usage for the whole team.
Privacy and Data Handling
Local models never leave your machine. Cloud models do, so read the fine print:
- Ollama states a zero data retention policy for cloud prompts. It processes prompts and responses transiently to answer them, and says it does not store or log that content.
- Cloud prompts are not used to train models.
- Ollama keeps basic account info and limited usage metadata (not prompt content), and says it doesn’t sell data.
For client code, secrets or anything under an NDA, the safest option is still a local model. Use cloud models when the data is fine to send to a third-party service.
Limits and Retired Models
- Structured outputs: Ollama’s docs say cloud models currently don’t support structured outputs (JSON schema mode). Use a local model for that, or validate JSON yourself.
- Capabilities vary by model. Check tools, vision and thinking support on each model page.
- Models get retired. Ollama retired a batch of older cloud models in June, July and September 2026. For example,
glm-5.1was replaced byglm-5.2, andkimi-k2.5bykimi-k2.6. Retirement does not affect local copies of models you’ve pulled.
If a script suddenly fails with a missing cloud model, check Ollama’s cloud model lifecycle page for the recommended replacement.
Turn Cloud Features Off
If you want Ollama to stay strictly local, for example on a work machine, disable cloud features. You lose cloud models and Ollama’s web search.
Option 1: add this to ~/.ollama/server.json:
{
"disable_ollama_cloud": true
}
Option 2: set an environment variable (see how to set Ollama environment variables on each OS):
OLLAMA_NO_CLOUD=1
Restart Ollama afterwards. The server log should then show Ollama cloud disabled: true.
Troubleshooting
“unauthorized” or sign-in errors
Run ollama signin again. On Linux service installs, the key lives under /usr/share/ollama/.ollama/, not your home folder, so make sure that key is the one added to your account.
401 from ollama.com with an API key
Send the key as Authorization: Bearer .... The Anthropic-style cloud endpoint doesn’t accept an x-api-key header on its own.
Model not found
Use gemma4:cloud-style names locally and /api/tags names (like gemma4:31b) for direct requests. Also check the model hasn’t been retired.
Cloud models missing from the list
Check that cloud isn’t disabled by OLLAMA_NO_CLOUD or server.json, and that you’re on a recent Ollama version.
Requests queue or slow down
Pro allows 3 concurrent requests and Max allows 10. Agents that fire many parallel calls will queue on the lower plans.
FAQ
Is Ollama cloud free?
There’s a free tier with a small monthly allowance for a set of starter models. For the full cloud library, you either buy usage credits (pay as you go) or subscribe to Pro or Max.
Do cloud models download anything to my PC?
No. Inference runs on Ollama’s servers. Only the prompt and response travel over the network.
Can I use cloud and local models together?
Yes. After signing in, both appear in the same app and API. Pick by model name per request.
Do I need a GPU for cloud models?
No. That’s the main point of the cloud. A basic laptop can use a 1T-parameter model through Ollama cloud.
Does Ollama train on my cloud prompts?
Ollama says no. Its cloud FAQ describes a zero data retention policy and says prompts are never used for training.
How do I stop Ollama from using the cloud?
Set OLLAMA_NO_CLOUD=1 or "disable_ollama_cloud": true in ~/.ollama/server.json, then restart Ollama.
Which is cheaper, Ollama cloud or OpenRouter?
It depends on the model. Compare the per-million-token price for the exact model on both. Ollama’s advantage is that it plugs into your existing Ollama tools with no code changes.
Sources
- Ollama docs: Cloud overview (what cloud models are, structured-output limit, data handling)
- Ollama docs: Cloud models (ollama signin, :cloud names, /api/tags)
- Ollama docs: Creating an API key
- Ollama docs: Usage (usage and balance endpoints)
- Ollama docs: Cloud FAQ (zero data retention, public key paths)
- Ollama docs: Cloud model lifecycle
- Ollama docs: FAQ (disable cloud features)
- Ollama docs: Claude Code and OpenAI compatibility
- Ollama pricing and Ollama blog: transparent pricing (31 Aug 2026)




