Documentation Index
Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Droid is the Factory.ai CLI. A single~/.factory/config.json file lets sessions mix Claude, GPT, Gemini, and any other AI Router-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
- macOS / Linux
- Windows
Setup
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:Edit ~/.factory/config.json
Add a Replace
custom_models array with one entry per model. The example below registers Claude, GPT-4o, and Gemini all routed through Orq.ai:<ORQ_API_KEY> with your key from Workspace Settings → API Keys.Configuration Reference
Provider field
| Value | Behaviour |
|---|---|
"anthropic" | Uses the Anthropic SDK, which appends /v1/messages to the base URL automatically. Point base_url to https://api.orq.ai/v3/anthropic. |
"generic-chat-completion-api" | Uses the OpenAI-compatible Chat Completions format. Point base_url to https://api.orq.ai/v3/router. |
"openai" | Hardcoded to api.openai.com. Ignores base_url. Do not use this value for Orq-routed models. |
Base URL by provider type
| Provider value | Correct base_url |
|---|---|
"anthropic" | https://api.orq.ai/v3/anthropic |
"generic-chat-completion-api" | https://api.orq.ai/v3/router |
Troubleshooting
Requests going to api.openai.com instead of Orq
Requests going to api.openai.com instead of Orq
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.Anthropic requests failing or bypassing Orq
Anthropic requests failing or bypassing Orq
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.Droid CLI inaccessible after install
Droid CLI inaccessible after install
Run
droid login to authenticate with Factory.ai before using any model. Without a valid session the CLI will not start.No trace appearing in Orq.ai
No trace appearing in Orq.ai
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.