Using Downsizing with Junie
Route Junie traffic through Downsizing in seconds using the CLI.
Prerequisites
Before linking Junie, either attach a credit card or connect your Anthropic subscription to Downsizing. We also recommend using the CLI — check the CLI guide to install.
Link Junie (Recommended)
With your Anthropic subscription connected, link Junie to route traffic through Downsizing:
ds link junieThe CLI writes a model profile to ~/.junie/models/downsizing.json with your Inference ID and API key pre-filled.
The CLI also sets Downsizing as the default model in ~/.junie/config.json, so you can run Junie without any extra flags:
junie --model custom:downsizing "your task"Manual Setup
If you prefer to configure manually, create ~/.junie/models/downsizing.json:
{
"baseUrl": "https://api.downsizing.dev/YOUR_INFERENCE_ID/anthropic/v1/messages",
"id": "claude-sonnet-4-6",
"apiType": "Anthropic",
"apiKey": "dws_YOUR_API_KEY",
"fasterModel": {
"id": "claude-haiku-4-5"
}
}Find your Inference ID and API key in the Downsizing dashboard. Replace YOUR_INFERENCE_ID with the workspace UUID and dws_YOUR_API_KEY with your Downsizing API key.
Verify
Run a quick one-shot task to confirm traffic is routing through Downsizing:
junie --model custom:downsizing "What is 2+2? Reply in one word."If Junie responds, the proxy is correctly configured. You can also check your savings dashboard to see the request appear in your usage metrics.
Unlinking
To remove Downsizing from Junie and restore your original settings:
ds unlink junie