This guide explains how to configure Factory AI's Droid CLI to work with EllProxy. This allows you to use your existing AI subscriptions (Claude, Gemini, etc.) with Factory Droids instead of purchasing separate credits.
EllProxy integrates with Factory Droid CLI by acting as an OpenAI-compatible endpoint. It intercepts model requests and routes them to your locally authenticated providers.
- EllProxy installed and running
- Factory Droid CLI installed
- Active subscription or API access to the models you want to use (e.g., Claude Pro, Gemini)
- Open EllProxy.
- Go to the Quick Setup tab.
- Click Scan to detect "Droid Factory CLI".
- If detected, click the Setup button (or "Setup All").
- EllProxy will automatically inject the required configuration into your
~/.factory/config.json.
If you prefer to configure it manually, edit your Factory configuration file.
- Open (or create)
~/.factory/config.json. - Locate the
custom_modelsarray. If it doesn't exist, create it. - Add the following model definitions:
{
"custom_models": [
{
"api_key": "dummy-key",
"base_url": "http://localhost:8317/v1",
"model": "ellproxy-default",
"model_display_name": "EllProxy: Default Model",
"provider": "openai"
},
{
"api_key": "dummy-key",
"base_url": "http://localhost:8317/v1",
"model": "ellproxy-thinking",
"model_display_name": "EllProxy: Thinking Model",
"provider": "openai"
}
]
}Note: The
api_keycan be any string (EllProxy ignores it), but it must be present.
Once configured, restart your Droid CLI. You will now see two new models available:
-
EllProxy: Default Model (
ellproxy-default)- Uses the model you selected as "Default" in EllProxy's Models tab.
- Best for general coding tasks, quick edits, and standard generation.
-
EllProxy: Thinking Model (
ellproxy-thinking)- Uses the model you selected as "Thinking" in EllProxy's Models tab.
- Supports extended reasoning/thinking capabilities.
- Best for complex architecture, debugging, and difficult logic problems.
To change which actual AI model is used:
- Click the EllProxy menu bar icon → Open Settings.
- Go to the Models tab.
- Set your Default Model (e.g.,
Gemini 2.5 Flash). - Set your Default Thinking Model (e.g.,
Claude 3.7 Sonnet Thinking).
Now, when Factory Droids use "EllProxy: Default Model", they are actually using Gemini 2.5 Flash through your personal Google account.
- Ensure you have restarted the Droid CLI after updating the config.
- Check that the
base_urlis exactlyhttp://localhost:8317/v1.
- Ensure EllProxy is running (check the menu bar icon).
- Verify port 8317 is available.
- Check the Services tab in EllProxy to ensure your providers (Claude, Google, etc.) are connected and authenticated.
