Ollama account sign-in connects a local installation to ollama.com for cloud models, private models, model publishing, and account-bound API features. The local server can still run public local models without an account, so sign-in is only needed when the workflow crosses that hosted boundary.
The ollama signin command opens the account flow and stores the resulting local authentication state for future CLI and local API requests that need cloud access. Keeping the sign-in step separate from API-key usage avoids placing bearer tokens in shell history or shared scripts.
Use a terminal session that belongs to the user who runs Ollama. A server process or desktop app started by another account will not necessarily see the same authenticated state.
Steps to sign in to Ollama:
- Start the local Ollama server or confirm the desktop app is already running.
$ curl -s http://localhost:11434/api/version {"version":"0.31.1"}
Local API access does not require account authentication.
- Run the sign-in flow from the same user account that will run authenticated commands.
$ ollama signinThe command opens a browser-based account prompt. Complete the account login in that browser window.
- Run a cloud-model command that requires account access.
$ ollama run gpt-oss:120b-cloud "Return only OK." OKReplace the model with a cloud model available to the signed-in account.
- Check local model access separately so account problems are not confused with server problems.
$ ollama list NAME ID SIZE MODIFIED gpt-oss:20b 17052f91a42e 13 GB 6 months ago
- Sign out when the shared workstation should no longer have account access.
$ ollama signoutSign-out removes the local session state for future account-bound commands.