Skip to content

Add Token Harbor provider (OpenAI-compatible, model list via /v1/models) #346

Closed

Description

@agenteinstinct1-max

Add tokenharbor as a built-in provider.

  • Chat: standard OpenAI-compatible POST https://tokenharbor.ai/v1/chat/completions through @ai-sdk/openai-compatible. No custom wire adapter.
  • Auth: Bearer key (thk_...), from TOKENHARBOR_API_KEY or the stored provider login.
  • Models: listed live from GET https://tokenharbor.ai/v1/models, which requires the key (unauthenticated it returns 401 invalid_api_key). The list is parsed tolerantly and refreshed at startup, so new models appear without a release.
  • Models already defined in user config keep their config entry.

Docs: https://tokenharbor.ai/docs/api/models, https://tokenharbor.ai/docs/integrations/opencode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions