Skip to main content

Overview

The Provider Management API allows you to configure, test, and manage AI provider credentials programmatically.

Test Provider

Test connectivity and authentication for a provider:
Request Body:
string
required
Provider ID (e.g., geminicli, ollama, claude)
string
Optional model to test with
Response:
Error Response:

Discover Models

Trigger model discovery for a specific provider:
Response:

Gemini API Keys

List Keys

Response:

Add Key

Update Single Key

Delete Key

Claude API Keys

Same endpoints as Gemini, using /claude-api-key:

switchAI API Keys

Same endpoints as Gemini, using /switchai-api-key:

Codex API Keys

Same endpoints as Gemini, using /codex-api-key:

OpenAI Compatibility

Manage OpenAI-compatible provider configurations:

List Configurations

Response:

Add Provider

Delete Provider

OAuth Management

Request OAuth URL

Generate OAuth authorization URLs for CLI providers:

Anthropic

Response:

Gemini CLI

Codex

OAuth Callback

Handle OAuth callback (used internally):

Get Auth Status

Check authentication status for all providers:
Response:

Auth Files

List Auth Files

List all authentication files:
Response:

Get Auth File Models

Get models available from an auth file:

Upload Auth File

Upload a service account JSON:

Download Auth File

Delete Auth File

Vertex AI Import

Import Vertex AI credentials:

Python Examples

Next Steps

Configuration

Manage server configuration

Provider Setup

Guide to setting up providers

Authentication

Learn about API authentication