Skip to main content
Droid is a CLI coding agent by Factory. You can connect it to Routeway by adding a custom model entry in ~/.factory/config.json that points to Routeway’s OpenAI-compatible API.
Requires a valid Routeway API key. Get yours from the dashboard.

Setup

1

Install Droid CLI

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

Configure Routeway as a custom model

Add (or merge) the following block into ~/.factory/config.json:
{
  "custom_models": [
    {
      "model_display_name": "GPT 4.1 (Routeway)",
      "model": "gpt-4.1",
      "base_url": "https://api.routeway.ai/v1/",
      "api_key": "YOUR_ROUTEWAY_API_KEY",
      "provider": "generic-chat-completion-api"
    }
  ]
}
Keep the trailing slash on base_url — Droid expects it when talking to OpenAI-compatible APIs.
If you already have other custom_models, just append this object to the existing array. You can add multiple Routeway models with different IDs.
Replace the model value with any model from routeway.ai/models.
3

Start Droid

Open a new terminal and run:
droid
When prompted for a model, pick the display name you configured (e.g. GPT 4.1 (Routeway)) to route requests through Routeway.

Reference

SettingValue
Config file~/.factory/config.json
Base URLhttps://api.routeway.ai/v1/ (trailing slash required)
Providergeneric-chat-completion-api

Example Prompts

  • “Summarize this project and list the key entry points.”
  • “Find where feature X is implemented and explain the flow.”
  • “Run tests and fix the first failure.”