跳到主要内容

ideon config

命令作用

ideon config 提供面向脚本、CI 与 agent 的非交互配置接口。

它与 ideon settings 互补:后者保持交互式。

用法

ideon config list [--json]
ideon config get <key> [--json]
ideon config set <key> <value>
ideon config unset <key>

子命令

ideon config list

列出当前持久化 settings 与 secret 可用性状态。

ideon config list
ideon config list --json

ideon config get

读取单个 setting key 或 secret 可用性 key。

ideon config get style
ideon config get openRouterApiKey --json

ideon config set

设置单个 setting 或 secret 值。

ideon config set style technical
ideon config set openRouterApiKey "$IDEON_OPENROUTER_API_KEY"

ideon config unset

将 setting 恢复默认值,或移除已存储 secret。

ideon config unset style
ideon config unset openRouterApiKey

支持的 Key

Settings keys:

  • model
  • modelSettings.temperature
  • modelSettings.maxTokens
  • modelSettings.topP
  • modelRequestTimeoutMs
  • notifications.enabled
  • markdownOutputDir
  • assetOutputDir
  • style
  • targetLength

targetLength 取值说明:

  • 支持别名 smallmediumlarge,也支持正整数词数。
  • 别名映射为 small=500medium=900large=1400

Secret keys:

  • openRouterApiKey
  • replicateApiToken

输出与退出码

退出码含义
0命令执行成功。
1出现校验、key 或存储错误。
130命令被 Ctrl+C 中断。

相关命令

版本与弃用说明

  • 当前行为适用于 Ideon 0.1.6
  • 此命令组面向非交互 one-shot 工作流。