AI Engineer Guide

How to use Ollama Cloud Models like GLM-4.6 with Droid CLI

Ollama Cloud lets you LLM model via API. You can think of it something like a basic AI gateway.

How to use it on Droid CLI?

Prerequisites

Make sure you’ve Droid CLI. If not, install it and login to your account

curl -fsSL https://app.factory.ai/cli | sh

And also get the API key from Ollama dashboard

Adding Cloud Config Blog

Now you need to add the custom model in droid config file which you can find at ~/.factory/config.json

{
  "custom_models": [
    {
      "model_display_name": "GLM-4.6 (Ollama Cloud)",
      "model": "glm-4.6:cloud",
      "base_url": "https://ollama.com/v1/",
      "api_key": "YOUR_OLLAMA_API_KEY",
      "provider": "generic-chat-completion-api",
      "max_tokens": 16384
    }
  ]
}

Now you can just select the model in droid cli using the command /model

2025-10-19-at-23.40.052x.png

Reference

#Ollama #Droid-Cli

Stay Updated

Get the latest AI engineering insights delivered to your inbox.

No spam. Unsubscribe at any time.