---
title: "UpdateLLMIntegration"
method: POST
path: "/gitpod.v1.RunnerConfigurationService/UpdateLLMIntegration"
tags: ["gitpod.v1.RunnerConfigurationService"]
---

# UpdateLLMIntegration

`POST /gitpod.v1.RunnerConfigurationService/UpdateLLMIntegration`

Updates an existing LLM integration.

 Use this method to:
 - Modify integration settings
 - Update credentials
 - Change configuration

 ### Examples

 - Update integration:

   Updates OAuth credentials.

   ```yaml
   id: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   apiKey: "sk-..."
   ```

## Request body

- GitpodV1UpdateLLMIntegrationRequest
  - `apiKey` string, nullable — api_key can be set to update the LLM provider's API key. The cleartext secret will be encrypted with the runner's public key before being stored.
  - `endpoint` string, nullable
  - `id` string, uuid
  - `maxTokens` string, nullable — max_tokens can be set to update the maximum number of tokens to generate before stopping.
  - `models` GitpodV1SupportedModel[] — models can be updated to change the supported LLM models Set list of supported models to the given list. Empty list means no updates to the models.
  - `phase` 'LLM_INTEGRATION_PHASE_UNSPECIFIED' | 'LLM_INTEGRATION_PHASE_AVAILABLE' | 'LLM_INTEGRATION_PHASE_UNAVAILABLE' | 'LLM_INTEGRATION_PHASE_DISABLED' — LLMIntegrationPhase represents the current status/phase of an LLM integration
  - `requestHeaders` GitpodV1LLMIntegrationRequestHeader[] — request_headers set optional headers for the LLM integration.
    - `key` string
    - `value` string, byte

## Response `200`

Success

- GitpodV1UpdateLLMIntegrationResponse

## Other responses

- `default` — Error

## Changes

- **2026-02-11** `b97dcde84128` — 2 info
  - added the new `SUPPORTED_MODEL_OPUS_4_6` enum value to the request property `models/items/`
  - added the new `SUPPORTED_MODEL_OPUS_4_6_EXTENDED` enum value to the request property `models/items/`
- **2025-12-15** `d62ef4b9187c` — 7 info
  - added the new optional request property `maxTokens`
  - added the new optional request property `phase`
  - added the new optional request property `requestHeaders`
  - added the new `SUPPORTED_MODEL_OPUS_4_5` enum value to the request property `models/items/`
  - …3 more
- **2025-06-10** `ca9a49ac7fbb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.RunnerConfigurationService/UpdateLLMIntegration/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/b97dcde84128/schema)
