Coder AI Providers API
The AI Providers API from Coder — 2 operation(s) for ai providers.
The AI Providers API from Coder — 2 operation(s) for ai providers.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/coder-ai-providers-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
description: Coderd is the service created by running coder server. It is a thin API that connects workspaces, provisioners and users. coderd stores its state in Postgres and is the only service that communicates with Postgres.
title: Coder Agents AI Providers API
termsOfService: https://coder.com/legal/terms-of-service
contact:
name: API Support
url: https://coder.com
email: support@coder.com
license:
name: AGPL-3.0
url: https://github.com/coder/coder/blob/main/LICENSE
version: '2.0'
servers:
- url: https://{coderHost}/api/v2
description: Coder instance
variables:
coderHost:
default: coder.example.com
description: Your Coder deployment hostname
security:
- CoderSessionToken: []
tags:
- name: AI Providers
paths:
/api/v2/ai/providers:
get:
operationId: list-ai-providers
summary: List AI providers
tags:
- AI Providers
security:
- CoderSessionToken: []
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/codersdk.AIProvider'
post:
operationId: create-an-ai-provider
summary: Create an AI provider
tags:
- AI Providers
security:
- CoderSessionToken: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/codersdk.CreateAIProviderRequest'
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/codersdk.AIProvider'
/api/v2/ai/providers/{idOrName}:
get:
operationId: get-an-ai-provider
summary: Get an AI provider
tags:
- AI Providers
security:
- CoderSessionToken: []
parameters:
- name: idOrName
in: path
required: true
description: Provider ID or name
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/codersdk.AIProvider'
delete:
operationId: delete-an-ai-provider
summary: Delete an AI provider
tags:
- AI Providers
security:
- CoderSessionToken: []
parameters:
- name: idOrName
in: path
required: true
description: Provider ID or name
schema:
type: string
responses:
'204':
description: No Content
patch:
operationId: update-an-ai-provider
summary: Update an AI provider
tags:
- AI Providers
security:
- CoderSessionToken: []
parameters:
- name: idOrName
in: path
required: true
description: Provider ID or name
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/codersdk.UpdateAIProviderRequest'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/codersdk.AIProvider'
components:
schemas:
codersdk.CreateAIProviderRequest:
type: object
properties:
api_keys:
type: array
items:
type: string
base_url:
type: string
display_name:
type: string
enabled:
type: boolean
name:
type: string
settings:
$ref: '#/components/schemas/codersdk.AIProviderSettings'
type:
$ref: '#/components/schemas/codersdk.AIProviderType'
codersdk.UpdateAIProviderRequest:
type: object
properties:
api_keys:
type: array
items:
$ref: '#/components/schemas/codersdk.AIProviderKeyMutation'
base_url:
type: string
display_name:
type: string
enabled:
type: boolean
settings:
$ref: '#/components/schemas/codersdk.AIProviderSettings'
codersdk.AIProviderSettings:
type: object
codersdk.AIProviderKeyMutation:
type: object
properties:
api_key:
type: string
id:
type: string
format: uuid
codersdk.AIProviderKey:
type: object
properties:
created_at:
type: string
format: date-time
id:
type: string
format: uuid
masked:
type: string
codersdk.AIProvider:
type: object
properties:
api_keys:
type: array
items:
$ref: '#/components/schemas/codersdk.AIProviderKey'
base_url:
type: string
created_at:
type: string
format: date-time
display_name:
type: string
enabled:
type: boolean
id:
type: string
format: uuid
name:
type: string
settings:
$ref: '#/components/schemas/codersdk.AIProviderSettings'
type:
$ref: '#/components/schemas/codersdk.AIProviderType'
updated_at:
type: string
format: date-time
codersdk.AIProviderType:
type: string
enum:
- openai
- anthropic
- azure
- google
- openai-compat
- openrouter
- vercel
- bedrock
- copilot
securitySchemes:
CoderSessionToken:
type: apiKey
in: header
name: Coder-Session-Token