Agents

Import the credential already used by this provider's CLI on the Temps host. Discovery and encryption happen entirely server-side; the plaintext credential is never serialized into the response or browser state.

post/settings/ai-providers/{provider_id}/credential/import-local

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/settings/ai-providers/{provider_id}/credential/import-local
  • Auth: HTTP bearer

Path parameters

provider_idstring required

AI provider ID

Query parameters

verification_modelstring

OpenCode model to use for the verification request, in provider/model form.

Response

auth_typestring required
credential_verification_statusstring required
provider_idstring required
savedboolean required
sourcestring required
verification_hintstring nullable
workspace_readyboolean required

Changes

No recorded changes to this operation across all 50 revisions of this API.