OpenCode and Ollama Cloud
How AgentGrid reports Ollama Cloud usage and protects your Chrome session.
AgentGrid can show Ollama Cloud session and weekly usage alongside your other provider limits. Ollama does not expose those limits through its API, so AgentGrid reads them from the Ollama settings page using your signed-in Chrome session.
Why macOS asks for permission
Chrome encrypts its cookies with a key named Chrome Safe Storage in the macOS Keychain. AgentGrid cannot read your Ollama session without asking macOS for access to that key.
AgentGrid requests this access only after you click Grant access. The macOS dialog may name the requesting helper security; the in-app explanation appears first so you know the request came from AgentGrid.
What AgentGrid reads
The import is limited to recognized Ollama session cookies for ollama.com. AgentGrid does not import your browsing history, saved passwords, or cookies for other websites.
Before reporting any limits, AgentGrid:
- Verifies the Ollama account configured in OpenCode.
- Reads only active Ollama session-cookie rows from Chrome.
- Opens
https://ollama.com/settingswith browser-equivalent cookie scope. - Accepts the result only when the dashboard email matches the configured OpenCode account.
Cookies are sent only to HTTPS pages on ollama.com and its Ollama-owned subdomains, following their original domain, path, and secure restrictions.
What is stored
After a successful match, AgentGrid stores only the matching Ollama cookies. They are encrypted with the app's OS-backed secure storage and bound to the configured Ollama API-key identity.
AgentGrid never stores Chrome's Safe Storage password. It also excludes Ollama account details and limits from the ordinary plaintext usage cache.
The encrypted Ollama session works across AgentGrid restarts. You will need to grant access again only if the Ollama session expires, is revoked, or you switch to another Ollama account.
Troubleshooting
If usage remains unavailable:
- Sign in to ollama.com in Chrome with the same account configured in OpenCode.
- Return to AgentGrid and click Grant access again.
- If macOS shows a Keychain prompt, approve access to Chrome Safe Storage.
- If the OpenCode credential was rejected, run
opencode auth loginand reconnect Ollama Cloud.