normalizeProviderId (lib/provider-catalog.ts)

clawsuite · src/lib/provider-catalog.ts · typescript · MIT
ai

Catalog of provider configurations and helper functions for OpenClaw, including normalization and config examples.

// Source: https://github.com/outsourc-e/clawsuite | License: MIT | Copyright 2026 Eric (outsourc-e)
// Provided via justclaw.it.com; keep this notice with the code.
export type ProviderAuthType = 'api-key' | 'oauth' | 'local' | 'cli-token'

export type ProviderInfo = {
  id: string
  name: string
  description: string
  authTypes: Array<ProviderAuthType>
  docsUrl: string
  configExample: string
}

export const OPENCLAW_CONFIG_PATH = '~/.openclaw/openclaw.json'

export const PROVIDER_CATALOG: Array<ProviderInfo> = [
  {
    id: 'anthropic',
    name: 'Anthropic',
    description: 'Claude models — Haiku, Sonnet, and Opus.',
    authTypes: ['api-key', 'cli-token'],
    docsUrl: 'https://console.anthropic.com/settings/keys',
    configExample: JSON.stringify(
      {
        auth: {
        

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key