---
title: "Get provider auth methods"
method: GET
path: "/provider/auth"
---

# Get provider auth methods

`GET /provider/auth`

Retrieve available authentication methods for all AI providers.

## Query parameters

- `directory` string
- `workspace` string

## Response `200`

Provider auth methods

- object

## Changes

- **2026-05-06** `067d03067fb2` — 1 breaking, 2 warning, 3 info
  - the `additionalProperties/items/type` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - added the new `api` enum value to the `additionalProperties/items/type` response property for the response status `200`
  - added the new `oauth` enum value to the `additionalProperties/items/type` response property for the response status `200`
  - added `subschema #1, subschema #2` to the `additionalProperties/items/prompts/items/` response property `anyOf` list for the response status `200`
  - …2 more
- **2026-04-25** `0a2d50cb4204` — 2 info
  - added the new optional `query` request parameter `workspace`
  - added the optional property `additionalProperties/items/prompts` to the response with the `200` status
- **2025-12-16** `dc065d96c390` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kaaass/apis/opencode/changes/provider/auth/get.md)

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) · [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kaaass/opencode/revisions/8bb9a15bd144/schema)
