---
title: "Update global (kimi-cli) default model/thinking"
method: PATCH
path: "/api/config/"
tags: ["config"]
---

# Update global (kimi-cli) default model/thinking

`PATCH /api/config/`

Update global (kimi-cli) default model/thinking.

## Request body

- UpdateGlobalConfigRequest — Request to update global config.
  - `default_model` string, nullable — New default model key
  - `default_thinking` boolean, nullable — New default thinking mode
  - `restart_running_sessions` boolean, nullable — Whether to restart running sessions
  - `force_restart_busy_sessions` boolean, nullable — Whether to force restart busy sessions

## Response `200`

Successful Response

- UpdateGlobalConfigResponse — Response after updating global config.
  - `config` GlobalConfig, required — Global configuration snapshot for frontend.
    - `default_model` string, required — Current default model key
    - `default_thinking` boolean, required — Current default thinking mode
    - `models` ConfigModel[], required — All configured models
      - `provider` string, required
      - `model` string, required
      - `max_context_size` integer, required
      - `capabilities` ModelCapability[], nullable
      - `name` string, required — Model key in kimi-cli config (Config.models)
      - `provider_type` 'kimi' | 'openai_legacy' | 'openai_responses' | 'anthropic' | 'google_genai' | 'gemini' | 'vertexai' | '_echo' | '_scripted_echo' | '_chaos', required
  - `restarted_session_ids` string[], nullable — IDs of restarted sessions
  - `skipped_busy_session_ids` string[], nullable — IDs of busy sessions that were skipped

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/moonshotai/apis/kimi-code-cli-web-interface.md) · [All operations](https://skmtc.dev/moonshotai/apis/kimi-code-cli-web-interface/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/moonshotai/kimi-code-cli-web-interface/revisions/8eac348b2e66/schema)
