| 基础 | app_settings_get | appSettings/get | 读取应用设置 |
| 基础 | app_settings_set | appSettings/set | 参数:patch |
| 基础 | app_close_to_tray_on_close_get | direct | 读取“关闭到托盘”状态 |
| 基础 | app_close_to_tray_on_close_set | direct | 参数:enabled |
| 基础 | service_initialize | initialize | 初始化服务、返回版本和平台信息 |
| 基础 | service_start | direct | 参数:addr,桌面端拉起本地 service 进程 |
| 基础 | service_stop | direct | 停止本地 service 进程 |
| 基础 | service_rpc_token | direct | 返回当前 RPC 鉴权 token |
| 基础 | service_startup_snapshot | startup/snapshot | 参数:requestLogLimit |
| 基础 | service_listen_config_get | service/listenConfig/get | 读取服务监听模式 |
| 基础 | service_listen_config_set | service/listenConfig/set | 参数:mode |
| 账号 | service_account_list | account/list | 参数:page、pageSize、query、filter、groupFilter |
| 账号 | service_account_delete | account/delete | 参数:accountId |
| 账号 | service_account_delete_many | account/deleteMany | 参数:accountIds |
| 账号 | service_account_delete_unavailable_free | account/deleteUnavailableFree | 删除不可用免费账号 |
| Account | service_account_update | account/update | Parameters: accountId, sort, status, label, groupName, note, tags; only administrators may change groupName |
| 账号 | service_account_import | account/import | 参数:contents[] 或 content |
| 账号 | service_account_import_by_file | direct | 桌面端打开文件选择器,读取 .json/.txt,产出 contents 后再交给 service_account_import |
| 账号 | service_account_import_by_directory | direct | 桌面端打开目录选择器,递归读取账号文件,产出 contents 后再交给 service_account_import |
| 账号 | service_account_export_by_account_files | direct -> account/export | 桌面端先选择目录,再调用 RPC account/export;Web 模式会改走 account/exportData 浏览器下载 |
| 账号 | local_account_delete | direct | 参数:accountId,直接操作本地 SQLite,不经过服务 |
| 用量 | service_usage_read | account/usage/read | 参数:accountId |
| 用量 | service_usage_list | account/usage/list | 返回全部账号最新快照 |
| 用量 | service_usage_aggregate | account/usage/aggregate | 返回全局聚合汇总 |
| 用量 | service_usage_refresh | account/usage/refresh | 参数可选:accountId;不传则刷新全部 |
| 登录 | service_login_start | account/login/start | 参数:loginType、openBrowser、note、tags、groupName、workspaceId |
| 登录 | service_login_status | account/login/status | 参数:loginId |
| Login | service_login_cancel | account/login/cancel | Param: loginId; cancels an in-progress login flow |
| 登录 | service_login_complete | account/login/complete | 参数:state、code、redirectUri |
| 登录 | service_login_chatgpt_auth_tokens | account/login/start | 固定参数:type=chatgptAuthTokens;其余参数:accessToken、refreshToken、idToken、chatgptAccountId、workspaceId、chatgptPlanType |
| 登录 | service_account_read | account/read | 参数:refreshToken |
| 登录 | service_account_logout | account/logout | 退出当前登录态 |
| 登录 | service_chatgpt_auth_tokens_refresh | account/chatgptAuthTokens/refresh | 参数:reason、previousAccountId |
| 聚合 API | service_aggregate_api_list | aggregateApi/list | 列表 |
| 聚合 API | service_aggregate_api_create | aggregateApi/create | 参数:providerType、supplierName、sort、url、key、authType、authCustomEnabled、authParams、actionCustomEnabled、action、username、password |
| 聚合 API | service_aggregate_api_update | aggregateApi/update | 参数:id、providerType、supplierName、sort、url、key、authType、authCustomEnabled、authParams、actionCustomEnabled、action、username、password |
| 聚合 API | service_aggregate_api_read_secret | aggregateApi/readSecret | 参数:id |
| 聚合 API | service_aggregate_api_delete | aggregateApi/delete | 参数:id |
| 聚合 API | service_aggregate_api_test_connection | aggregateApi/testConnection | 参数:id |
| 平台密钥 | service_apikey_list | apikey/list | 列表 |
| 平台密钥 | service_apikey_read_secret | apikey/readSecret | 参数:keyId,前端会映射成 RPC 参数 id |
| Platform API key | service_apikey_create | apikey/create | Parameters: name, modelSlug, reasoningEffort, serviceTier, protocolType, upstreamBaseUrl, staticHeadersJson, rotationStrategy, aggregateApiId, accountPlanFilter, accountGroupFilter, quotaLimitTokens, customKey |
| 平台密钥 | service_apikey_models | apikey/models | 参数可选:refreshRemote |
| 平台密钥 | service_apikey_usage_stats | apikey/usageStats | 用量统计 |
| Platform API key | service_apikey_update_model | apikey/updateModel | Parameters: keyId, name, modelSlug, reasoningEffort, serviceTier, protocolType, upstreamBaseUrl, staticHeadersJson, rotationStrategy, aggregateApiId, accountPlanFilter, accountGroupFilter, and quotaLimitTokens; customKey is create-only. Desktop-only hasName, hasModelConfig, hasRoutingConfig, hasAccountGroupFilter, and hasQuotaLimitTokens are presence markers that distinguish omission from explicit clearing and are not forwarded as domain fields; only administrators may change the account-group filter |
| 平台密钥 | service_apikey_delete | apikey/delete | 参数:keyId |
| 平台密钥 | service_apikey_disable | apikey/disable | 参数:keyId |
| 平台密钥 | service_apikey_enable | apikey/enable | 参数:keyId |
| 网关 | service_gateway_route_strategy_get | gateway/routeStrategy/get | 读取路由策略与手动优选账号 |
| 网关 | service_gateway_route_strategy_set | gateway/routeStrategy/set | 参数:strategy |
| 网关 | service_gateway_manual_account_get | gateway/manualAccount/get | 读取手动优选账号 |
| 网关 | service_gateway_manual_account_set | gateway/manualAccount/set | 参数:accountId |
| 网关 | service_gateway_manual_account_clear | gateway/manualAccount/clear | 清空手动优选账号 |
| 网关 | service_gateway_background_tasks_get | gateway/backgroundTasks/get | 读取后台任务配置 |
| 网关 | service_gateway_background_tasks_set | gateway/backgroundTasks/set | 参数:usagePollingEnabled、usagePollIntervalSecs、gatewayKeepaliveEnabled、gatewayKeepaliveIntervalSecs、tokenRefreshPollingEnabled、tokenRefreshPollIntervalSecs、usageRefreshWorkers、httpWorkerFactor、httpWorkerMin、httpStreamWorkerFactor、httpStreamWorkerMin |
| 网关 | service_gateway_concurrency_recommend_get | gateway/concurrencyRecommendation/get | 读取系统推导的并发建议 |
| 网关 | service_gateway_upstream_proxy_get | gateway/upstreamProxy/get | 读取上游代理 |
| 网关 | service_gateway_upstream_proxy_set | gateway/upstreamProxy/set | 参数:proxyUrl |
| 网关 | service_gateway_transport_get | gateway/transport/get | 读取传输层配置 |
| Gateway | service_gateway_transport_set | gateway/transport/set | Params: sseKeepaliveEnabled, sseKeepaliveIntervalMs, upstreamTotalTimeoutMs, upstreamStreamTimeoutMs |
| 请求日志 | service_requestlog_list | requestlog/list | 参数:query、statusFilter、page、pageSize |
| 请求日志 | service_requestlog_summary | requestlog/summary | 参数:query、statusFilter |
| 请求日志 | service_requestlog_clear | requestlog/clear | 清空请求日志 |
| 请求日志 | service_requestlog_today_summary | requestlog/today_summary | 今日汇总 |
| 插件中心 | service_plugin_catalog_list | plugin/catalog/list | 参数:marketMode、sourceUrl |
| 插件中心 | service_plugin_catalog_refresh | plugin/catalog/refresh | 刷新插件目录 |
| 插件中心 | service_plugin_install | plugin/install | 参数:entry |
| 插件中心 | service_plugin_update | plugin/update | 参数:entry |
| 插件中心 | service_plugin_uninstall | plugin/uninstall | 参数:pluginId |
| 插件中心 | service_plugin_list | plugin/list | 已安装插件列表 |
| 插件中心 | service_plugin_enable | plugin/enable | 参数:pluginId |
| 插件中心 | service_plugin_disable | plugin/disable | 参数:pluginId |
| 插件中心 | service_plugin_tasks_update | plugin/tasks/update | 参数:taskId、intervalSeconds |
| 插件中心 | service_plugin_tasks_list | plugin/tasks/list | 参数可选:pluginId |
| 插件中心 | service_plugin_tasks_run | plugin/tasks/run | 参数:taskId、input |
| 插件中心 | service_plugin_logs_list | plugin/logs/list | 参数:pluginId、taskId、limit |
| Codex Skills | service_codex_skills_list | codexSkills/list | Optional param: codexHome; scans user and built-in Skills |
| Codex Skills | service_codex_skills_install_zip | codexSkills/installZip | Params: fileName, archiveBase64; optional: codexHome |
| Codex Skills | service_codex_skills_import_directory | codexSkills/importDirectory | Param: sourcePath; optional: codexHome |
| Codex Skills | service_codex_skills_delete | codexSkills/delete | Param: directoryName; optional: codexHome |
| Codex Skills | service_codex_skills_marketplace_list | codexSkills/marketplaceList | Optional param: codexHome; lists Marketplaces and available plugins |
| Codex Skills | service_codex_skills_marketplace_add | codexSkills/marketplaceAdd | Param: source; optional: refName, codexHome |
| Codex Skills | service_codex_skills_marketplace_refresh | codexSkills/marketplaceRefresh | Optional params: marketplaceName, codexHome |
| Codex Skills | service_codex_skills_marketplace_plugin_install | codexSkills/marketplacePluginInstall | Param: pluginId; optional: codexHome; installs the complete Codex plugin |
| Codex Projects | app_codex_projects_list | direct (desktop only) | Lists project folders saved locally by the current desktop client |
| Codex Projects | app_codex_project_add | direct (desktop only) | Opens the system folder picker, canonicalizes, and saves the selected folder |
| Codex Projects | app_codex_project_remove | direct (desktop only) | Param: path; removes only the saved entry and never project files |
| Codex Projects | app_codex_project_launch | direct (desktop only) | Params: path, `action=start |
| 系统 | open_in_browser | direct | 参数:url,本地打开浏览器 |
| 系统 | open_in_file_manager | direct | 参数:path,本地打开目录 |
| 系统 | app_window_unsaved_draft_sections_set | direct | 参数:sections[],设置页未保存草稿标记 |
| 更新 | app_update_check | direct | 检查更新 |
| 更新 | app_update_prepare | direct | 下载 / 预备更新 |
| 更新 | app_update_apply_portable | direct | 便携版应用更新 |
| 更新 | app_update_launch_installer | direct | 安装包模式启动安装器 |
| 更新 | app_update_status | direct | 读取更新状态 |
| 更新 | app_update_open_logs_dir | direct | 参数可选:assetPath,打开更新日志目录 |