feat: consider exposing ANTHROPIC_CUSTOM_MODEL_OPTION env var in config (v2.1.81) #244

Closed
opened 2026-03-23 14:02:26 -07:00 by hikari · 1 comment
Owner

Context

Claude Code v2.1.78 (confirmed still present in v2.1.81) added an ANTHROPIC_CUSTOM_MODEL_OPTION environment variable that allows users to specify custom model options.

Why This Matters

Hikari Desktop's config sidebar already exposes model selection. Supporting ANTHROPIC_CUSTOM_MODEL_OPTION would allow power users to configure custom or fine-tuned model variants that aren't in the standard model list.

Tasks

  • Research what ANTHROPIC_CUSTOM_MODEL_OPTION accepts and how it interacts with --model
  • Decide whether to expose this as a text input in ConfigSidebar.svelte or as an environment variable passthrough
  • Implement the chosen approach in the config UI and WslBridge env setup
  • Add tests for the new config option

References

  • Claude Code v2.1.78–v2.1.81 changelog
  • src/lib/components/ConfigSidebar.svelte
  • src-tauri/src/wsl_bridge.rs

This issue was created with help from Hikari~ 🌸

## Context Claude Code v2.1.78 (confirmed still present in v2.1.81) added an `ANTHROPIC_CUSTOM_MODEL_OPTION` environment variable that allows users to specify custom model options. ## Why This Matters Hikari Desktop's config sidebar already exposes model selection. Supporting `ANTHROPIC_CUSTOM_MODEL_OPTION` would allow power users to configure custom or fine-tuned model variants that aren't in the standard model list. ## Tasks - [ ] Research what `ANTHROPIC_CUSTOM_MODEL_OPTION` accepts and how it interacts with `--model` - [ ] Decide whether to expose this as a text input in `ConfigSidebar.svelte` or as an environment variable passthrough - [ ] Implement the chosen approach in the config UI and `WslBridge` env setup - [ ] Add tests for the new config option ## References - Claude Code v2.1.78–v2.1.81 changelog - `src/lib/components/ConfigSidebar.svelte` - `src-tauri/src/wsl_bridge.rs` ✨ This issue was created with help from Hikari~ 🌸
Author
Owner

Resolved in PR #263. Added custom_model_option: Option<String> to ClaudeStartOptions and HikariConfig, sets ANTHROPIC_CUSTOM_MODEL_OPTION env var in wsl_bridge.rs for both native and WSL paths, added TypeScript interface field, config sidebar text input, and wired through all start_claude invocations.

Resolved in PR #263. Added `custom_model_option: Option<String>` to `ClaudeStartOptions` and `HikariConfig`, sets `ANTHROPIC_CUSTOM_MODEL_OPTION` env var in `wsl_bridge.rs` for both native and WSL paths, added TypeScript interface field, config sidebar text input, and wired through all `start_claude` invocations. ✨
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#244