feat: expose modelOverrides setting in ConfigSidebar #218

Closed
opened 2026-03-11 19:15:21 -07:00 by hikari · 0 comments
Owner

Overview

Claude Code CLI v2.1.73 added a modelOverrides setting that maps model picker entries to custom provider model IDs. This is particularly useful for users on AWS Bedrock (inference profile ARNs), Google Vertex, or Microsoft Foundry who need to map the standard model names to their provider-specific identifiers.

Example:

{
  "modelOverrides": {
    "claude-opus-4-6": "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-opus-4-6-v1"
  }
}

What Needs to Be Done

Expose modelOverrides as an editable key-value mapping in ConfigSidebar, likely as a textarea accepting JSON (similar to how some other complex settings are handled), or as a dynamic key-value pair list UI.

  • src-tauri/src/config.rs — Add model_overrides: Option<HashMap<String, String>>
  • src/lib/stores/config.ts — Add modelOverrides?: Record<string, string> to HikariConfig
  • src/lib/components/ConfigSidebar.svelte — Add a Model Overrides section (JSON textarea or key-value list) in the Model Settings section
  • All start_claude call sites — write overrides to the Claude config file or pass via env/flag (verify the mechanism — likely written to ~/.claude/settings.json)
  • Tests for all of the above

Notes

This is most relevant for Bedrock/Vertex/Foundry users. The UI complexity is moderate — a JSON textarea is the simplest approach, a dynamic key-value list is more user-friendly.

CLI Version

Added in v2.1.73.

This issue was created with help from Hikari~ 🌸

## Overview Claude Code CLI v2.1.73 added a `modelOverrides` setting that maps model picker entries to custom provider model IDs. This is particularly useful for users on AWS Bedrock (inference profile ARNs), Google Vertex, or Microsoft Foundry who need to map the standard model names to their provider-specific identifiers. Example: ```json { "modelOverrides": { "claude-opus-4-6": "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-opus-4-6-v1" } } ``` ## What Needs to Be Done Expose `modelOverrides` as an editable key-value mapping in ConfigSidebar, likely as a textarea accepting JSON (similar to how some other complex settings are handled), or as a dynamic key-value pair list UI. - **`src-tauri/src/config.rs`** — Add `model_overrides: Option<HashMap<String, String>>` - **`src/lib/stores/config.ts`** — Add `modelOverrides?: Record<string, string>` to `HikariConfig` - **`src/lib/components/ConfigSidebar.svelte`** — Add a Model Overrides section (JSON textarea or key-value list) in the Model Settings section - All `start_claude` call sites — write overrides to the Claude config file or pass via env/flag (verify the mechanism — likely written to `~/.claude/settings.json`) - Tests for all of the above ## Notes This is most relevant for Bedrock/Vertex/Foundry users. The UI complexity is moderate — a JSON textarea is the simplest approach, a dynamic key-value list is more user-friendly. ## CLI Version Added in v2.1.73. ✨ This issue was created with help from Hikari~ 🌸
naomi closed this issue 2026-03-13 01:34:46 -07:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nhcarrigan/hikari-desktop#218