Factory Droid CLI
You need a Divyam account and an API key. If you don't have them yet, follow Getting Started first.
Replace the shortened divyam-sw-v1-... shown in examples with your complete API key.
The examples use divyam-as/gpt-6-sol. For another model, select its current ID in your harness or copy it from Models and pricing, and check its context limit and supported features.
1. Install Droid and sign in
Install Droid using the official instructions. From your project folder, start the interactive CLI and sign in to Factory:
droid
Factory requires sign-in for its interactive CLI. Your Divyam API key supplies model access in the next step.
2. Add the Divyam model
In Droid, run /model → Manage custom models → Add model. Choose Other provider, which uses OpenAI-compatible Chat Completions, then enter these values in the custom-model editor:
Model ID: divyam-as/gpt-6-sol. Context window: 1,050,000 tokens. Models and pricing
| Field | Value |
|---|---|
| Model ID | divyam-as/gpt-6-sol |
| API key | divyam-sw-v1-... (replace with your key) |
Open Advanced options and set:
| Field | Value |
|---|---|
| Base URL | https://api.preview.divyam.ai/v1 |
| Max output tokens (optional) | 16384 |
Select Save changes. The editor saves the model in ~/.factory/settings.json.
3. Send your first prompt
Choose divyam-as/gpt-6-sol from Custom Models in /model, then return to Droid’s composer. Review file changes and command approvals in the terminal.
Hello, what are your capabilities?
Keep OpenAI-compatible (Chat Completions) so Droid sends Chat Completions requests to Divyam. For image input, reopen the model editor, open Advanced options, and set Image support override to Images supported. Save the model and select it again. Droid may retry slow requests.
Check your requests
Open the Divyam console and select Logs. Your requests appear there within a few seconds, newest first, with their status, token counts and latency. Usage and Credits & Billing catch up within a few minutes.
Some clients display zero when model prices are missing. Check Credits & Billing for Divyam charges. Local dollar limits depend on the client's price and usage data.
For filters, cached-token counts and the requested-versus-routed view, see Logs and usage.