Skip to main content

Quick start

  1. Install the Droid CLI: curl -fsSL https://app.factory.ai/cli | sh
  2. Grab your NanoGPT API key from nano-gpt.com/api.

Configure NanoGPT as a custom model

Add (or merge) the following block into ~/.factory/config.json:
{
  "custom_models": [
    {
      "model_display_name": "GLM 4.6 Nano",
      "model": "z-ai/glm-4.6:thinking",
      "base_url": "https://nano-gpt.com/api/v1/",
      "api_key": "xxx",
      "provider": "generic-chat-completion-api"
    }
  ]
}
  • Replace api_key with your NanoGPT key and keep it secret.
  • If you already have other custom_models, just append this object instead of removing the existing ones.
  • Keep the trailing slash on base_url—Droid expects it when talking to OpenAI-compatible APIs.

Use it

Start a new terminal and run droid to load the config. When prompted for a model, pick GLM 4.6 Nano (or whatever name you set in model_display_name) to use NanoGPT through Droid.