← All guides

OpenCode and Ollama Cloud

How AgentGrid shows Ollama Cloud limits from your account balance.

Conceptual illustration of a cobalt cloud suspended above two ivory bowls of different sizes on a brass stand.
AI-generated editorial illustration.
In this guide

AgentGrid shows Ollama Cloud limits on the usage card from the key configured in OpenCode. It reads the monthly window from the Ollama balance API. When that account still returns session and weekly windows, those appear too.

Sign in to Ollama Cloud in OpenCode with opencode auth login. AgentGrid uses that key. It does not read Chrome, and it does not ask macOS for access to Chrome's cookie store.

The card keeps the last successful reading for about ten minutes when a refresh fails. If the key is missing or rejected, the card treats the account as signed out. If a refresh fails and there is no recent reading, it says the limits could not be refreshed.

Three steps: the OpenCode key for Ollama Cloud, the ollama.com balance, then the usage card's monthly limit.

AgentGrid reads the monthly balance with the OpenCode key and shows it on the usage card.

Diagram by AgentGrid

Troubleshooting

If the usage card has no Ollama limits:

  • Run opencode auth login and connect Ollama Cloud with the account you want the card to show.
  • If the card says the limits could not be refreshed, wait and open usage again. A reading from the last ten minutes stays up while a refresh fails.