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
Changes
No recorded changes to this operation across all 50 revisions of this API.