---
title: "CreateLLMAccessToken"
method: POST
path: "/gitpod.v1.AgentService/CreateLLMAccessToken"
tags: ["gitpod.v1.AgentService"]
---

# CreateLLMAccessToken

`POST /gitpod.v1.AgentService/CreateLLMAccessToken`

Creates a token for LLM access with a specific agent run.

## Request body

- GitpodV1CreateLLMAccessTokenRequest
  - `agentExecutionId` string — The agent execution ID for tracking and runner selection. If empty, falls back to current logic for backward compatibility.
  - `requiredModels` GitpodV1SupportedModel[] — The models required by the agent to function.

## Response `200`

Success

- GitpodV1CreateLLMAccessTokenResponse
  - `accessToken` string
  - `llmUrl` string

## Other responses

- `default` — Error

## Changes

- **2025-12-15** `d62ef4b9187c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.AgentService/CreateLLMAccessToken/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/d62ef4b9187c/schema)
