Skip to main content
Droid is the Factory.ai CLI. A single ~/.factory/config.json file lets sessions mix Claude, GPT, Gemini, and any other AI Gateway-supported model, all routed through Orq.ai for unified tracing, cost tracking, and access controls.

Prerequisites

  • Droid CLI installed
  • Active Factory.ai account (free tier, no paid subscription required)
  • Active Orq.ai account
  • Orq.ai API key

Install Droid CLI

Setup

1

Authenticate with Factory

Login is required. The free tier covers BYOK (bring-your-own-key) fully.
2

Clear conflicting environment variables

If ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, or ANTHROPIC_API_KEY are set in your shell, they override config.json and requests bypass Orq.ai. Unset them before running Droid:
3

Edit ~/.factory/config.json

Add a custom_models array with one entry per model. The example below registers Claude, GPT-5.6 Sol, and Gemini all routed through Orq.ai:
Replace <ORQ_API_KEY> with your key from Workspace Settings → API Keys.
4

Start Droid and select a model

Inside the session, use /model to switch between registered custom models.

Configuration Reference

Provider field

Base URL by provider type

See the Anthropic Messages API for endpoint details, authentication, and cache_control breakpoints.
Do not use "provider": "openai" for Orq.ai-routed models. It is hardcoded to api.openai.com and ignores base_url, so requests bypass Orq.ai entirely.

Skills

Orq Skills add pre-built agentic workflows to Droid for the full Build, Evaluate, Optimize lifecycle.

Installation

Set an API key and connect the Orq MCP server first. Skills are then triggered by describing what is needed.

Orq Skills

The full catalogue of skills and slash commands.
Slash commands (/orq:quickstart, /orq:traces, and others) are only available in Claude Code.

Troubleshooting

The "provider": "openai" value is hardcoded to api.openai.com and ignores base_url. Change provider to "generic-chat-completion-api" for all Orq-routed OpenAI-compatible models.
Check for conflicting environment variables. If ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, or ANTHROPIC_API_KEY are set, they take precedence over config.json. Run unset ANTHROPIC_AUTH_TOKEN ANTHROPIC_BASE_URL ANTHROPIC_API_KEY and restart Droid.
Run droid login to authenticate with Factory.ai before using any model. Without a valid session the CLI will not start.
Confirm the api_key value in config.json is a valid Orq.ai API key (not an OpenAI or Anthropic key), and that base_url points to the correct Orq endpoint for the chosen provider type.

Verification

Start a Droid session, select a registered model with /model, and send a prompt. The response appears in the session and the trace appears in Orq.ai Traces with the model identifier (e.g. anthropic/claude-sonnet-5).