---
title: "Update this key's settings"
method: POST
path: "/config"
---

# Update this key's settings

`POST /config`

## Request

- Base URL: `https://oyabrowser.com`
- URL: `https://oyabrowser.com/config`
- Auth: HTTP bearer

Sets only the fields sent; null or empty clears one. Send llm_provider and chat_model together. Connected desktop apps on the key are told to re-read their model.

## Request body

- object
  - `llm_provider` 'openai' | 'anthropic' | 'gemini' | 'vertex' | 'openrouter': Which LLM provider this key's agent runs on; picks the default endpoint and model.
  - `openai_api_key` string: The key for whichever llm_provider is set (the field name is shared). Masked on read.
  - `openai_base_url` string: An OpenAI-compatible endpoint, when not the provider's own. Only honoured with this key's own openai_api_key.
  - `chat_model` string: The model id, as the provider names it. Empty or null uses the provider's default.

## Response `200`

Saved; the body is the new settings, as GET returns them, with ok: true

- object
  - `ok` boolean

---

[API](https://skmtc.dev/oyabrowser/apis/oya-browser-api.md) · [All operations](https://skmtc.dev/oyabrowser/apis/oya-browser-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oyabrowser/apis/oya-browser-api/revisions/748c4b34f8e4?raw)
