[{"data":1,"prerenderedAt":287},["ShallowReactive",2],{"navigation_docs":3,"-providers-credential-storage":94,"-providers-credential-storage-surround":282},[4,25,39,59,69],{"title":5,"path":6,"stem":7,"children":8,"page":24},"User Guide","\u002Fuser-guide","02.user-guide",[9,14,19],{"title":10,"path":11,"stem":12,"icon":13},"Gateway 公共隧道与飞书 Webhook","\u002Fuser-guide\u002Fgateway-tunnel-webhook","02.user-guide\u002F16.gateway-tunnel-webhook","i-heroicons-globe-alt",{"title":15,"path":16,"stem":17,"icon":18},"运行时 AGENTS 规则","\u002Fuser-guide\u002Fruntime-agents","02.user-guide\u002F17.runtime-agents","i-heroicons-document-text",{"title":20,"path":21,"stem":22,"icon":23},"MCP 工具扩展","\u002Fuser-guide\u002Fmcp","02.user-guide\u002F9.mcp","i-heroicons-puzzle-piece",false,{"title":26,"path":27,"stem":28,"children":29,"page":24},"Providers","\u002Fproviders","03.providers",[30,35],{"title":31,"path":32,"stem":33,"icon":34},"模型连接概览","\u002Fproviders\u002Foverview","03.providers\u002F1.overview","i-heroicons-squares-2x2",{"title":36,"path":37,"stem":38},"Provider 凭据存储","\u002Fproviders\u002Fcredential-storage","03.providers\u002F2.credential-storage",{"title":40,"path":41,"stem":42,"children":43,"page":24},"Api Reference","\u002Fapi-reference","04.api-reference",[44,49,54],{"title":45,"path":46,"stem":47,"icon":48},"API 概览","\u002Fapi-reference\u002Foverview","04.api-reference\u002F1.overview","i-heroicons-code-bracket",{"title":50,"path":51,"stem":52,"icon":53},"OpenAI API","\u002Fapi-reference\u002Fopenai-api","04.api-reference\u002F2.openai-api","i-heroicons-chat-bubble-left-right",{"title":55,"path":56,"stem":57,"icon":58},"Claude API","\u002Fapi-reference\u002Fclaude-api","04.api-reference\u002F3.claude-api","i-heroicons-chat-bubble-bottom-center-text",{"title":60,"path":61,"stem":62,"children":63,"page":24},"Legal","\u002Flegal","07.legal",[64],{"title":65,"path":66,"stem":67,"icon":68},"免责声明","\u002Flegal\u002Fdisclaimer","07.legal\u002F1.disclaimer","i-heroicons-scale",{"title":70,"path":71,"stem":72,"children":73,"page":24},"Open Platform","\u002Fopen-platform","08.open-platform",[74,79,84,89],{"title":75,"path":76,"stem":77,"icon":78},"扩展接入概览","\u002Fopen-platform\u002Foverview","08.open-platform\u002F1.overview","i-heroicons-cube-transparent",{"title":80,"path":81,"stem":82,"icon":83},"插件打包指南","\u002Fopen-platform\u002Fplugin-development","08.open-platform\u002F3.plugin-development","i-heroicons-code-bracket-square",{"title":85,"path":86,"stem":87,"icon":88},"Connect 接入","\u002Fopen-platform\u002Fconnect","08.open-platform\u002F4.connect","i-heroicons-link",{"title":90,"path":91,"stem":92,"icon":93},"Connect 统计回调（Webhook）","\u002Fopen-platform\u002Fconnect-webhook","08.open-platform\u002F6.connect-webhook","i-heroicons-arrow-path-rounded-square",{"id":95,"title":36,"body":96,"description":275,"extension":276,"links":277,"meta":278,"navigation":279,"path":37,"seo":280,"stem":38,"__hash__":281},"docs\u002F03.providers\u002F2.credential-storage.md",{"type":97,"value":98,"toc":273},"minimark",[99,103,107,122,175,178,222,225,249,252,255,258,269],[100,101,36],"h1",{"id":102},"provider-凭据存储",[104,105,106],"p",{},"Desktop、CLI 和 App Server 使用相同的 Provider 凭据 owner。数据库只保存随机引用，原始 API Key 不作为密文伪装后保存在数据库中。",[104,108,109,113,114,117,118,121],{},[110,111,112],"code",{},"LIME_HOME"," 指定凭据根目录，未设置时为用户目录下的 ",[110,115,116],{},".lime","。",[110,119,120],{},"LIME_CREDENTIALS_STORE"," 在进程启动时读取：",[123,124,125,138],"table",{},[126,127,128],"thead",{},[129,130,131,135],"tr",{},[132,133,134],"th",{},"值",[132,136,137],{},"行为",[139,140,141,161],"tbody",{},[129,142,143,150],{},[144,145,146,147],"td",{},"未设置或 ",[110,148,149],{},"file",[144,151,152,153,156,157,160],{},"默认模式，与 Codex 的 File 默认策略一致。每条凭据写入 ",[110,154,155],{},"credentials\u002FAPI_KEY_\u003C随机ID>.json"," 明文文件；Unix 创建为 ",[110,158,159],{},"0600","，Windows 限制当前用户 ACL。不会访问 OS 密钥库或弹出钥匙串密码框，妥善保护用户目录和备份。",[129,162,163,168],{},[144,164,165],{},[110,166,167],{},"keyring",[144,169,170,171,174],{},"显式选择 OS 密钥库：随机口令保存在 OS 密钥库，凭据加密到 ",[110,172,173],{},"secrets\u002Flocal.age","。密钥库可能要求系统授权；不可用则报错，不自动切换存储。",[104,176,177],{},"例如，在没有可用桌面密钥库的独立 CLI 环境中：",[179,180,185],"pre",{"className":181,"code":182,"language":183,"meta":184,"style":184},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","LIME_HOME=\"$PWD\u002F.lime-headless\" LIME_CREDENTIALS_STORE=file lime\n","bash","",[110,186,187],{"__ignoreMap":184},[188,189,192,195,199,202,205,209,211,214,216,218],"span",{"class":190,"line":191},"line",1,[188,193,112],{"class":194},"sTEyZ",[188,196,198],{"class":197},"sMK4o","=",[188,200,201],{"class":197},"\"",[188,203,204],{"class":194},"$PWD",[188,206,208],{"class":207},"sfazB","\u002F.lime-headless",[188,210,201],{"class":197},[188,212,213],{"class":194}," LIME_CREDENTIALS_STORE",[188,215,198],{"class":197},[188,217,149],{"class":207},[188,219,221],{"class":220},"sBMFI"," lime\n",[104,223,224],{},"PowerShell：",[179,226,230],{"className":227,"code":228,"language":229,"meta":184,"style":184},"language-powershell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","$env:LIME_HOME = Join-Path $PWD \".lime-headless\"\n$env:LIME_CREDENTIALS_STORE = \"file\"\nlime\n","powershell",[110,231,232,237,243],{"__ignoreMap":184},[188,233,234],{"class":190,"line":191},[188,235,236],{},"$env:LIME_HOME = Join-Path $PWD \".lime-headless\"\n",[188,238,240],{"class":190,"line":239},2,[188,241,242],{},"$env:LIME_CREDENTIALS_STORE = \"file\"\n",[188,244,246],{"class":190,"line":245},3,[188,247,248],{},"lime\n",[104,250,251],{},"同一数据库的 Desktop、CLI 和 App Server 必须使用相同的目录与模式。改变环境变量不会迁移现有凭据；切换前在原模式删除 Key，再在新模式重新添加。旧 XOR 凭据不再读取，请在设置中删除旧条目并重新录入。Provider 身份、多 Key 轮询、模型和协议配置保持原有语义。",[104,253,254],{},"共享 age 文件的读改写和 keyring 初始化通过同一个进程锁串行执行；锁等待最多十五秒，覆盖真实平台上可能超过三秒的 scrypt 读改写，锁文件不删除。文件模式同样参与锁定。锁定、权限、读取或持久化错误均明确返回，不回退到其他凭据来源。",[104,256,257],{},"数据库与密钥库是两个独立存储，不能形成跨存储原子事务：新增数据库写入失败时补偿删除新 secret；删除\u002F替换在数据库提交后清理旧 secret，清理失败会报错。进程在两步之间崩溃可能留下无引用的 secret。备份与恢复必须同时考虑数据库、凭据目录和 OS 密钥库；只复制 age 文件不能恢复其解密口令。",[104,259,260,261,264,265,268],{},"默认策略依据 Codex ",[110,262,263],{},"codex-rs\u002Fconfig\u002Fsrc\u002Ftypes.rs"," 中的 ",[110,266,267],{},"AuthCredentialsStoreMode::File","；Provider 引用和多 Key 管理由 Lime 现役 owner 负责。",[270,271,272],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":184,"searchDepth":239,"depth":239,"links":274},[],"Desktop 与独立 CLI 共用的凭据存储和访问权限","md",null,{},true,{"title":36,"description":275},"fBrsSlIvrgz-nkg6eBK-PtGQgrZXKRGbh27kayEeapo",[283,285],{"title":31,"path":32,"stem":33,"description":284,"icon":34,"children":-1},"连接文档重建中，当前只保留应用内 Provider 与凭证入口说明",{"title":45,"path":46,"stem":47,"description":286,"icon":48,"children":-1},"当前只保留本地兼容接口入口说明",1794584784265]