onehop-codex-config

OneHop Codex model configuration management: Fully manage OneHop Codex model configurations via chat, supporting four modes: list, sync, switch, and status. List remotely supported models, sync each model’s configuration to ~/.codex/onehop, switch by copying a saved model config into ~/.codex/config.toml, and show current model status via live model testing.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "onehop-codex-config" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-da5dff0300ded6f376a126f1e303e4fd50dd1af245c7317fadb4382abae59e15. Verify the upstream source and version against https://skillhub.cn/skills/user_28f82bea/codex-config before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

OneHop Codex model configuration management: Fully manage OneHop Codex model configurations via chat, supporting four modes: list, sync, switch, and status. List remotely supported models, sync each model’s configuration to ~/.codex/onehop, switch by copying a saved model config into ~/.codex/config.toml, and show current model status via live model testing.

0 Downloads

Introduction source: third_party · user_28f82bea · 1.0.1 Reference

SkillPi interpretation

Tasks
Manage OneHop Codex model configs entirely through chat. Support four modes: list, sync, switch, and status. List remote supported models, sync one config per model into ~/.codex/onehop, switch by copying a saved model config to ~/.codex/config.toml, and show current model status with a live model test.
Inputs and outputs
Generated config content should look like:
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "onehop-codex-config"
description: "Manage OneHop Codex model configs entirely through chat. Support four modes: list, sync, switch, and status. List remote supported models, sync one config per model into ~/.codex/onehop, switch by copying a saved model config to ~/.codex/config.toml, and show current model status with a live model test."

OneHop Codex Config

中文简要说明

这是一个用来管理 OneHop 模型配置的小工具,不需要手动改文件,也不需要记命令。

怎么开始用

第一步,先把你的 OneHop 地址和密钥发到聊天里。

格式可以直接这样写:

baseurl https://api.onehop.ai/v1
api-key 你的密钥

或者这样写也可以:

https://api.onehop.ai/v1 你的密钥

只有先提供 baseurl 和 api-key,这个 skill 才能去读取模型列表、同步配置、检测当前模型状态。

第二步,再告诉它你要做什么。

你可以在聊天里直接说:

  • list:看看 OneHop 支持哪些模型,也看看本地已经保存了哪些模型配置
  • sync:把 OneHop 支持的模型同步到本地,每个模型生成一个配置文件,并自动备份当前默认配置
  • switch 模型名:切换到你想用的模型
  • status:查看当前正在使用哪个模型,并做一次真实连通测试

如果你是第一次用,可以按这个顺序:

  1. 先发送 baseurl 和 api-key
  2. 再用 list 看模型
  3. 然后用 sync 同步配置
  4. 再用 switch 模型名 切换模型
  5. 最后用 status 检查是否生效

一个完整例子:

baseurl https://api.onehop.ai/v1
api-key xxxxx
list
sync
switch openai/gpt-5.5
status

整个过程都可以直接在聊天窗口里完成。

Use this skill when the user wants to manage OneHop-backed Codex model configs without manually editing files or running commands.

All operations must be performed interactively in the chat window. Do not ask the user to run shell commands or invoke scripts manually.

Chat modes

  1. list Behavior:

    • Probe {base_url}/models
    • Filter models that support openai_responses and text output
    • Show the compatible remote model list in chat
    • Show the local saved config files under ~/.codex/onehop/
  2. sync Behavior:

    • Probe {base_url}/models
    • Filter compatible models
    • Generate one config file per compatible model under ~/.codex/onehop/<model-slug>.config.toml
    • Back up the current default config ~/.codex/config.toml into ~/.codex/onehop/backup-config-MM-DD-HH-MM-SS-ffffff.toml
    • Report which files were created
  3. switch Behavior:

    • Find the saved config matching the requested model name
    • Back up the current default config to ~/.codex/onehop/backup-config-MM-DD-HH-MM-SS-ffffff.toml
    • Copy the requested model config to ~/.codex/config.toml
    • Confirm which model is now active
  4. status Behavior:

    • Read the current default config ~/.codex/config.toml
    • Show the current model, provider, and configured base URL
    • Run one live question against the current model using the provided base_url and api_key
    • Report the response as a real connectivity and model-use check

Natural triggers

  • If the user asks to “列出模型” or says list, use list
  • If the user asks to “同步配置” or says sync, use sync
  • If the user directly gives a model name, treat that as switch
  • If the user asks “现在在用什么模型” or says status, use status

Default policy

  • Prefer minimax/minimax-m3
  • If minimax/minimax-m3 is unavailable, fall back to openai/gpt-5.4
  • If neither exists, choose the first model that supports openai_responses and text output
  • Set model_reasoning_effort = "high"

File layout

  • Default Codex config: ~/.codex/config.toml
  • Managed OneHop model configs: ~/.codex/onehop/<model-slug>.config.toml
  • Default-config backups: ~/.codex/onehop/backup-config-MM-DD-HH-MM-SS-ffffff.toml

Internal implementation

The bundled Python script is only an internal implementation detail:

$CODEX_HOME/skills/onehop-codex-config/scripts/generate_onehop_codex_config.py

If CODEX_HOME is unavailable:

~/.codex/skills/onehop-codex-config/scripts/generate_onehop_codex_config.py

The user must never be told to run this script directly.

Output template

Generated config content should look like:

model_provider = "OneHop-MM-DD-HH-MM-SS-ffffff"
model = "<selected_model>"
model_reasoning_effort = "high"
disable_response_storage = true

[model_providers."OneHop-MM-DD-HH-MM-SS-ffffff"]
name = "OneHop"
base_url = "<base_url>"
wire_api = "responses"
requires_openai_auth = true
experimental_bearer_token = "<api_key>"

Notes

  • Do not invent model support. Probe /models.
  • For list, show both remote-compatible models and local-saved configs.
  • For sync, generate one local config per compatible model unless the user asks for a subset.
  • For switch, overwrite only ~/.codex/config.toml, and always back it up first.
  • For status, include a real live model test, so status also covers the old “check” behavior.
  • Managed config filenames must use sanitized model slugs, for example openai-gpt-5-4.config.toml.
  • Keep the config content timestamped inside the file by using model_provider = "OneHop-MM-DD-HH-MM-SS-ffffff".

Current listing version

1.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供完整的 OneHop Codex 模型配置管理功能,覆盖 list/sync/switch/status 四种核心操作
  • 解决用户在模型配置管理中的实际痛点,无需手动编辑文件或记忆命令
Trigger Precision85/100

Highlights

  • 触发词覆盖合理,支持中英文自然语言触发
  • 四种模式边界清晰,不易与其他 Skill 重叠
Structure and Standards90/100

Highlights

  • 文档结构清晰,包含完整的使用说明和示例
  • frontmatter 完整,文件布局说明详细
Execution Reliability75/100

Areas to improve

  • 异常处理覆盖不全 Reported severity: Minor

    未明确说明网络异常、认证失败等场景的处理机制

    Recommendation: 建议在文档中补充常见异常的处理说明,如网络超时、API 认证失败等情况的应对策略

Highlights

  • 包含配置备份机制,确保操作可回退
  • 工具来源明确,参数处理规范
Evidence Verifiability (mean of the first four)84/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • api.onehop.ai

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.