qwen3.6-35b-a3b through the OpenAI-compatible endpoint, without deploying a container group or installing the
SaladCloud AI SDK provider. Requests use pay-per-token billing.
This is a custom-model configuration, not a native SaladCloud entry in Factory’s model catalog. Factory supports
custom models in the CLI and desktop app, but not its hosted web or mobile platforms. This walkthrough covers the CLI
and was tested with Droid
0.223.0.Prerequisites
- A macOS or Linux terminal running Bash for the commands below
- A SaladCloud account, credits, and an organization-specific AI Gateway API key from Pay-Per-Token Onboarding
Step 1: Install Droid
Use Factory’s installer, then check the installed version:droid is not found, follow the installer’s instructions to add its directory to your PATH. For other operating
systems and installation methods, see the Factory quickstart.
Step 2: Set Your AI Gateway Key
Enter your key at the hidden prompt so it is not included in your shell history:Step 3: Add the Custom Model
Create the configuration directory if necessary:~/.factory/settings.json in your editor and add the following configuration. If the file already exists, preserve
your settings and append the model object to its customModels array instead of replacing the file. To disable cloud
session syncing in an existing configuration too, set its top-level cloudSessionSync to false.
${SALAD_CLOUD_API_KEY} as written: Droid reads the exported variable when it starts. The example disables cloud
session syncing and uses an 8,192-token output budget; this budget is a client setting, not the model’s maximum output
limit.
See Factory’s BYOK reference for the supported configuration fields.
Step 4: Test the Connection
Run a small request from the same terminal:custom:, the display name with spaces replaced by dashes, and the model’s zero-based
index in customModels. The -0 suffix assumes this is your first custom model. Adjust it if you appended the entry
after other models; the API model name remains qwen3.6-35b-a3b.
For machine-readable streamed output:
0.223.0 worked with the Salad key alone, without a
Factory login or FACTORY_API_KEY.
Step 5: Use Droid in Your Project
From your project directory, run:/model, select SaladCloud-Qwen3.6-35B under Custom models,
and start with a read-only task such as:
Read the README and summarize how to run this project. Do not change any files.Review requested permissions before allowing file edits or command execution. See the Droid CLI reference for autonomy controls.
Troubleshooting
- Model not found: check the display name and zero-based index in the
custom:ID. Usesettings.jsonwithcustomModels, not the legacyconfig.jsonformat. - Missing key or HTTP 401: repeat Step 2 in the terminal where you launch Droid and verify that the key belongs to AI Gateway. The environment-variable reference does not save the key itself.
- HTTP 404 or Responses API errors: use
generic-chat-completion-apiand exactlyhttps://ai.salad.cloud/v1. - Custom models blocked: your Factory organization may restrict custom models or permitted endpoint URLs. Ask your administrator to allow Salad’s endpoint.