---
title: "Update User Llm Config"
method: PUT
path: "/api/admin/users/{user_id}/llm-config"
tags: ["admin"]
---

# Update User Llm Config

`PUT /api/admin/users/{user_id}/llm-config`

Set the per-user LLM override.

Pass an empty string in either field to clear that part of the
override and fall back to the global default. Pass null (omit) to
leave the field unchanged.

Deliberately has no self-action guard. Every other user-targeted mutation
endpoint (plan, activate, deactivate, reset-quota, delete, compact-now,
hygiene-compact-memory) still rejects a self-targeted call. For the plan /
activate / deactivate / reset-quota / delete set that guard stops an admin
escalating their own account: raising their own quota, upgrading their own
plan, locking themselves out. Which model an admin's own agent talks to is a
personal preference with no privilege attached, and blocking it stops the
most common legitimate use (an admin trying a model on their own account
before rolling it out). ``audit_admin`` still resolves ``get_current_admin``,
so the role check and the audit record are unaffected.

## Path parameters

- `user_id` string, required

## Request body

- AdminUserLLMOverrideUpdate — Pass empty strings to clear an override and fall back to the global default.
  - `llm_provider_override` string, nullable
  - `llm_model_override` string, nullable

## Response `200`

Successful Response

- AdminUserLLMOverrideResponse — Per-user override values plus the resolved (effective) values. Empty ``llm_provider_override`` / ``llm_model_override`` mean "fall back to the global default". The effective fields show what the agent will actually use, factoring in fallbacks.
  - `user_id` string, required
  - `llm_provider_override` string, required
  - `llm_model_override` string, required
  - `effective_llm_provider` string, required
  - `effective_llm_model` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mozilla-ai/apis/clawbolt.md) · [All operations](https://skmtc.net/mozilla-ai/apis/clawbolt/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mozilla-ai/clawbolt/revisions/0e52fe5f8d33/schema)
