mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-28 09:23:37 +00:00
21 lines
795 B
TypeScript
21 lines
795 B
TypeScript
/**
|
|
* Claude CLI auth seam. Setup may prompt for keychain-backed credentials while
|
|
* runtime paths stay non-interactive.
|
|
*/
|
|
import { readClaudeCliCredentialsCached } from "openclaw/plugin-sdk/provider-auth";
|
|
|
|
/** Read Claude CLI credentials for interactive setup paths. */
|
|
export function readClaudeCliCredentialsForSetup() {
|
|
return readClaudeCliCredentialsCached();
|
|
}
|
|
|
|
/** Read Claude CLI credentials for setup checks that must not prompt. */
|
|
export function readClaudeCliCredentialsForSetupNonInteractive() {
|
|
return readClaudeCliCredentialsCached({ allowKeychainPrompt: false });
|
|
}
|
|
|
|
/** Read Claude CLI credentials for runtime without keychain prompts. */
|
|
export function readClaudeCliCredentialsForRuntime() {
|
|
return readClaudeCliCredentialsCached({ allowKeychainPrompt: false });
|
|
}
|