{
  "/cursor/chat/completions": {
    "post": {
      "tags": [
        "responses"
      ],
      "summary": "Cursor Chat Completions",
      "description": "Cursor-specific endpoint that accepts Responses API input format but returns chat completions format.\n\nThis endpoint handles requests from Cursor IDE which sends Responses API format (`input` field)\nbut expects chat completions format response (`choices`, `messages`, etc.).\n\n```bash\ncurl -X POST http://localhost:4000/cursor/chat/completions     -H \"Content-Type: application/json\"     -H \"Authorization: Bearer sk-1234\"     -d '{\n    \"model\": \"gpt-4o\",\n    \"input\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n}'\nResponds back in chat completions format.\n```",
      "operationId": "cursor_chat_completions_cursor_chat_completions_post",
      "responses": {
        "200": {
          "description": "Successful Response",
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        }
      },
      "security": [
        {
          "APIKeyHeader": []
        }
      ]
    }
  },
  "/cursor/{endpoint}": {
    "patch": {
      "tags": [
        "Cursor Pass-through",
        "pass-through"
      ],
      "summary": "Cursor Proxy Route",
      "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET    /v0/agents         \u2014 List agents\n- POST   /v0/agents         \u2014 Launch an agent\n- GET    /v0/agents/{id}    \u2014 Agent status\n- GET    /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST   /v0/agents/{id}/followup    \u2014 Add follow-up\n- POST   /v0/agents/{id}/stop        \u2014 Stop an agent\n- DELETE /v0/agents/{id}    \u2014 Delete an agent\n- GET    /v0/me             \u2014 API key info\n- GET    /v0/models         \u2014 List models\n- GET    /v0/repositories   \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
      "operationId": "cursor_proxy_route_cursor__endpoint__patch",
      "security": [
        {
          "APIKeyHeader": []
        }
      ],
      "parameters": [
        {
          "name": "endpoint",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "title": "Endpoint"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Successful Response",
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "422": {
          "description": "Validation Error",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HTTPValidationError"
              }
            }
          }
        }
      }
    },
    "put": {
      "tags": [
        "Cursor Pass-through",
        "pass-through"
      ],
      "summary": "Cursor Proxy Route",
      "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET    /v0/agents         \u2014 List agents\n- POST   /v0/agents         \u2014 Launch an agent\n- GET    /v0/agents/{id}    \u2014 Agent status\n- GET    /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST   /v0/agents/{id}/followup    \u2014 Add follow-up\n- POST   /v0/agents/{id}/stop        \u2014 Stop an agent\n- DELETE /v0/agents/{id}    \u2014 Delete an agent\n- GET    /v0/me             \u2014 API key info\n- GET    /v0/models         \u2014 List models\n- GET    /v0/repositories   \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
      "operationId": "cursor_proxy_route_cursor__endpoint__patch",
      "security": [
        {
          "APIKeyHeader": []
        }
      ],
      "parameters": [
        {
          "name": "endpoint",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "title": "Endpoint"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Successful Response",
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "422": {
          "description": "Validation Error",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HTTPValidationError"
              }
            }
          }
        }
      }
    },
    "post": {
      "tags": [
        "Cursor Pass-through",
        "pass-through"
      ],
      "summary": "Cursor Proxy Route",
      "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET    /v0/agents         \u2014 List agents\n- POST   /v0/agents         \u2014 Launch an agent\n- GET    /v0/agents/{id}    \u2014 Agent status\n- GET    /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST   /v0/agents/{id}/followup    \u2014 Add follow-up\n- POST   /v0/agents/{id}/stop        \u2014 Stop an agent\n- DELETE /v0/agents/{id}    \u2014 Delete an agent\n- GET    /v0/me             \u2014 API key info\n- GET    /v0/models         \u2014 List models\n- GET    /v0/repositories   \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
      "operationId": "cursor_proxy_route_cursor__endpoint__patch",
      "security": [
        {
          "APIKeyHeader": []
        }
      ],
      "parameters": [
        {
          "name": "endpoint",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "title": "Endpoint"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Successful Response",
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "422": {
          "description": "Validation Error",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HTTPValidationError"
              }
            }
          }
        }
      }
    },
    "get": {
      "tags": [
        "Cursor Pass-through",
        "pass-through"
      ],
      "summary": "Cursor Proxy Route",
      "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET    /v0/agents         \u2014 List agents\n- POST   /v0/agents         \u2014 Launch an agent\n- GET    /v0/agents/{id}    \u2014 Agent status\n- GET    /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST   /v0/agents/{id}/followup    \u2014 Add follow-up\n- POST   /v0/agents/{id}/stop        \u2014 Stop an agent\n- DELETE /v0/agents/{id}    \u2014 Delete an agent\n- GET    /v0/me             \u2014 API key info\n- GET    /v0/models         \u2014 List models\n- GET    /v0/repositories   \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
      "operationId": "cursor_proxy_route_cursor__endpoint__patch",
      "security": [
        {
          "APIKeyHeader": []
        }
      ],
      "parameters": [
        {
          "name": "endpoint",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "title": "Endpoint"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Successful Response",
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "422": {
          "description": "Validation Error",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HTTPValidationError"
              }
            }
          }
        }
      }
    },
    "delete": {
      "tags": [
        "Cursor Pass-through",
        "pass-through"
      ],
      "summary": "Cursor Proxy Route",
      "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET    /v0/agents         \u2014 List agents\n- POST   /v0/agents         \u2014 Launch an agent\n- GET    /v0/agents/{id}    \u2014 Agent status\n- GET    /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST   /v0/agents/{id}/followup    \u2014 Add follow-up\n- POST   /v0/agents/{id}/stop        \u2014 Stop an agent\n- DELETE /v0/agents/{id}    \u2014 Delete an agent\n- GET    /v0/me             \u2014 API key info\n- GET    /v0/models         \u2014 List models\n- GET    /v0/repositories   \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
      "operationId": "cursor_proxy_route_cursor__endpoint__patch",
      "security": [
        {
          "APIKeyHeader": []
        }
      ],
      "parameters": [
        {
          "name": "endpoint",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "title": "Endpoint"
          }
        }
      ],
      "responses": {
        "200": {
          "description": "Successful Response",
          "content": {
            "application/json": {
              "schema": {}
            }
          }
        },
        "422": {
          "description": "Validation Error",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HTTPValidationError"
              }
            }
          }
        }
      }
    }
  }
}