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

# CreateLLMIntegration

`POST /gitpod.v1.RunnerConfigurationService/CreateLLMIntegration`

Creates a new LLM integration for a runner.

 Use this method to:
 - Configure LLM access
 - Set up LLM integrations
 - Enable LLM usage

## Request body

- GitpodV1CreateLLMIntegrationRequest
  - `apiKey` string — api_key is the LLM provider's API key.
  - `codexConfiguration` GitpodV1LLMIntegrationCodexConfiguration — LLMIntegrationCodexConfiguration contains Codex-specific model aliases for an LLM integration.
    - `modelMappings` GitpodV1LLMIntegrationCodexConfigurationModelMapping[]
      - `model` 'CODEX_OPEN_AI_MODEL_UNSPECIFIED' | 'CODEX_OPEN_AI_MODEL_GPT_5_5' | 'CODEX_OPEN_AI_MODEL_GPT_5_4' | 'CODEX_OPEN_AI_MODEL_GPT_5_4_MINI' | 'CODEX_OPEN_AI_MODEL_GPT_5_3_CODEX' | 'CODEX_OPEN_AI_MODEL_GPT_5_3_CODEX_SPARK' | 'CODEX_OPEN_AI_MODEL_GPT_5_2' | 'CODEX_OPEN_AI_MODEL_GPT_5_6_SOL' | 'CODEX_OPEN_AI_MODEL_GPT_5_6_TERRA' | 'CODEX_OPEN_AI_MODEL_GPT_5_6_LUNA' — CodexOpenAIModel is the static allowlist of concrete OpenAI models that the Codex app runtime can select through Ona's Codex picker.
      - `providerModel` string — provider_model is the exact model identifier expected by the upstream integration.
  - `endpoint` string
  - `maxTokens` string — max_tokens is the maximum number of tokens to generate before stopping. If set to 0, the model's default will be used.
  - `models` GitpodV1SupportedModel[] — models represents the LLM models this integration supports
  - `runnerId` string, uuid
  - `tokenSource` 'LLM_TOKEN_SOURCE_UNSPECIFIED' | 'LLM_TOKEN_SOURCE_DIRECT_API' | 'LLM_TOKEN_SOURCE_BEDROCK' | 'LLM_TOKEN_SOURCE_BEDROCK_MANTLE' | 'LLM_TOKEN_SOURCE_VERTEX_AI' — LLMTokenSource identifies how an LLM integration obtains model access. It is independent from LLMProvider, which identifies the model family.

## Response `200`

Success

- GitpodV1CreateLLMIntegrationResponse
  - `id` string, uuid — id is a uniquely generated identifier for the LLM integration

## Other responses

- `default` — Error

---

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