Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

ai-config-adminai 配置管理

Agent Skill

ai-config-admin 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,339

周安装

227

GitHub Stars

公开资料未说明

下载量

1,870
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ai-config-admin(ai 配置管理)
来源仓库:https://github.com/mkuiwu/ai-config-admin
安装命令:
openclaw skills install ai-config-admin
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install ai-config-admin

简介

统一管理OpenClaw、Codex CLI等多平台的AI模型配置选项。

  • 支持添加删除服务提供商与切换默认代理设置操作功能。
  • 提供配置文件模板与参数校验确保环境一致性维护。
  • 安装命令:openclaw skills install ai-config-admin。
  • 修改关键配置前建议先导出当前设置作为备份参考依据。

SKILL.md

name
ai-config-admin
description
>-

AI Config Admin

Identify which target the user wants to modify first: OpenClaw, OpenCode, Codex CLI, or Claude Code. Then use the bundled script for that target.

Required rules

  • Follow this skill and the existing script capabilities exactly.
  • Do not manually edit config files to bypass script limitations.
  • If the request is outside current script support, say so clearly and explain what is missing.
  • Before every write, create a backup in the same directory as the original file.
  • Perform backup and write through the bundled script, not manual editing.
  • Do not echo secrets such as apiKey, OPENAI_API_KEY, ANTHROPIC_AUTH_TOKEN, tokens, or refresh tokens in replies.

Target files

  • OpenClaw: ~/.openclaw/openclaw.json
  • OpenCode: ~/.config/opencode/opencode.json
  • Codex CLI: ~/.codex/config.toml, ~/.codex/auth.json
  • Claude Code: ~/.claude/settings.json

Routing

  • OpenClaw requests: openclaw.json, default model, agent model, add/remove provider, add/remove model, memory search.
  • OpenCode requests: opencode.json, OpenCode config, replace full JSON.
  • Codex CLI requests: config.toml, auth.json, Codex CLI, model_provider, review_model, wire_api, requires_openai_auth.
  • Claude Code requests: settings.json, Claude Code, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, ANTHROPIC_MODEL, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, CLAUDE_CODE_ATTRIBUTION_HEADER.

Input handling

  • Accept natural language, semi-structured JSON, or mixed descriptions.
  • Convert user intent into explicit script parameters or complete JSON/TOML text before invoking scripts.
  • Ask follow-up questions only when critical parameters cannot be inferred.

OpenClaw

  • Infer supported arguments from user intent.
  • When fields are missing, prefer filling from the current config when safe.
  • Use add-model to add a model to an existing provider, or to create/update a provider when the user also supplies the required provider fields.
  • For a brand-new provider, add-model needs enough provider config to make it valid: at minimum --base-url and --api; use --api-key and --auth-header when appropriate.
  • Use add-openai-model only for OpenAI-compatible provider setup flows that require explicit apiKey and api handling in one step.

OpenCode

  • If the user provides complete JSON, replace the file directly.
  • Do not merge partial JSON.

Codex CLI

  • config.toml: infer structured parameters and call the script.
  • auth.json: write only when the user provides a complete JSON payload; default to full replacement.
  • Do not delete unknown TOML sections such as projects, notice, or tui.
  • If existing auth.json contains login-state fields, replace it only when the user explicitly asks for full replacement.

Claude Code

  • Full settings.json input may be replaced directly.
  • If the user provides only an {"env": {...}} fragment:

- If ANTHROPIC_BASE_URL is present, replace the Claude-related env key set. - Otherwise, update only the explicitly provided Claude-related env keys.

  • Do not invent missing model fields.
  • Do not modify non-Claude env keys.

Commands

Use {baseDir} as the skill root.

OpenClaw

python3 {baseDir}/scripts/openclaw_config.py --help
python3 {baseDir}/scripts/openclaw_config.py --file ~/.openclaw/openclaw.json summary
python3 {baseDir}/scripts/openclaw_config.py --file ~/.openclaw/openclaw.json add-model \
  --provider-id minimax-cn \
  --model-id MiniMax-M2.7 \
  --name 'MiniMax M2.7' \
  --context-window 200000 \
  --max-tokens 8192 \
  --set-default

Supported operations:

  • summary
  • add-model [--provider-id ...] [--model-id ...] [--name ...] [--context-window ...] [--max-tokens ...] [--reasoning true|false] [--allowlist] [--set-default] [--input text|image ...] [--base-url ...] [--api-key ...] [--api ...] [--auth-header true|false]
  • add-openai-model ...
  • set-openai-provider [--base-url ...] [--api-key ...]
  • remove-model <provider/model>
  • set-memory-search on|off
  • set-default-model <modelId>
  • set-agent-model <agentId> <modelId>
  • remove-provider <providerId>

OpenCode

python3 {baseDir}/scripts/opencode_config.py --file ~/.config/opencode/opencode.json summary
python3 {baseDir}/scripts/opencode_config.py --file ~/.config/opencode/opencode.json replace-from-stdin <<'EOF'
{...full JSON...}
EOF

Supported operations:

  • summary
  • replace-from-stdin

Codex CLI

python3 {baseDir}/scripts/codex_config.py --help
python3 {baseDir}/scripts/codex_config.py --config-file ~/.codex/config.toml --auth-file ~/.codex/auth.json summary
python3 {baseDir}/scripts/codex_config.py --config-file ~/.codex/config.toml replace-config-from-stdin <<'EOF'
model_provider = "OpenAI"
model = "gpt-5.4"
EOF
python3 {baseDir}/scripts/codex_config.py --auth-file ~/.codex/auth.json replace-auth-from-stdin <<'EOF'
{"OPENAI_API_KEY":"sk-..."}
EOF

Supported operations:

  • summary
  • replace-config-from-stdin
  • replace-auth-from-stdin
  • set-openai-provider [--model-provider ...] [--model ...] [--review-model ...] [--reasoning-effort ...] [--disable-response-storage true|false] [--network-access ...] [--windows-wsl-setup-acknowledged true|false] [--model-context-window ...] [--model-auto-compact-token-limit ...] [--provider-name ...] [--base-url ...] [--wire-api ...] [--requires-openai-auth true|false]

Claude Code

python3 {baseDir}/scripts/claude_config.py --help
python3 {baseDir}/scripts/claude_config.py --file ~/.claude/settings.json summary
python3 {baseDir}/scripts/claude_config.py --file ~/.claude/settings.json set-env \
  --anthropic-auth-token 'sk-...' \
  --attribution-header '0'
python3 {baseDir}/scripts/claude_config.py --file ~/.claude/settings.json replace-env \
  --anthropic-base-url 'https://example.invalid' \
  --anthropic-auth-token 'sk-...' \
  --attribution-header '0'
python3 {baseDir}/scripts/claude_config.py --file ~/.claude/settings.json replace-from-stdin <<'EOF'
{"env":{"ANTHROPIC_BASE_URL":"https://example.invalid"}}
EOF

Supported operations:

  • summary
  • replace-from-stdin
  • set-env [--anthropic-auth-token ...] [--anthropic-base-url ...] [--anthropic-default-haiku-model ...] [--anthropic-default-opus-model ...] [--anthropic-default-sonnet-model ...] [--anthropic-model ...] [--api-timeout-ms ...] [--disable-nonessential-traffic ...] [--attribution-header ...]
  • replace-env [--anthropic-auth-token ...] [--anthropic-base-url ...] [--anthropic-default-haiku-model ...] [--anthropic-default-opus-model ...] [--anthropic-default-sonnet-model ...] [--anthropic-model ...] [--api-timeout-ms ...] [--disable-nonessential-traffic ...] [--attribution-header ...]

Defaults and safeguards

  • Do not write headers.User-Agent unless explicitly needed.
  • Do not switch the default model unless the user asks.
  • Do not change memorySearch unless the user asks.
  • Stop if the script reports validation or dependency errors.
  • For OpenCode, default to full replacement when complete JSON is provided.
  • For Claude Code, if ANTHROPIC_BASE_URL is present, rebuild the Claude-related env set instead of carrying forward stale provider-specific env/model keys.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.08%
按下载量换算1,722

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills