A custom Docker Sandbox template that securely and easily runs OpenCode with Ollama Cloud as the LLM provider.
- Docker Sandbox installed
- An Ollama Cloud account
Get your API key from Ollama Cloud
sbx secret set-custom -g --host ollama.com --host *.ollama.com --env OLLAMA_API_KEYYou'll be prompted to paste your API key interactively — the key never touches your shell history or command line.
# Tip: The `sbx setup` defaults are sufficient for most setups
sbx setup
sbx policy allow network "ollama.com,*.ollama.com"# Tip: Change Directory (cd) to the directory where you want to run the Agent prior to running the command below
sbx run opencode --template warfront1ococds/opencode-ollama-cloud-docker-sbx:latestSee DEVELOPERS.md.