ocx
它能做什么
这个技能指导通过 ocx 命令行运行中的 opencodex 代理,包括其账户、提供方、模型、路由和诊断。适合运行该代理并需要日常管理它的人。
适用场景
- ✓当你需要检查或更改运行中代理的账户、提供方或模型时。
- ✓当你想查看代理的路由设置或用量报告时。
- ✓当你需要使用 ocx help 或其管理命令诊断代理时。
技能链接
https://github.com/lidge-jun/opencodex/blob/main/skills/ocx/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请告诉我我正在运行的 ocx 代理使用了哪些提供方,以及每个账户本周处理了多少请求。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能要求智能体先离线查找完成该任务的确切 ocx 命令,然后针对代理运行它,并报告结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Operating ocx
ocx supports local configuration and named live management workflows. Coverage is
per task: provider edits, account selection, model visibility, routing reads, client
integration controls and diagnostics have different transports and limits. A shared
API prefix does not prove that every dashboard action has a CLI equivalent.
This skill is for operating a proxy. AGENTS_INSTALL.md covers installation
and operating consent; the repository AGENTS.md covers code changes.
Find the task offline
Start at the smallest useful level; no running proxy is needed for help:
ocx help # compact root
ocx help models # family and declared children
ocx help models preset show # exact leaf, when declared
ocx help --all # full top-level reference, when needed
Then read only the matching task chapter.
For example, use providers/models
for catalog work or Lab for local evidence.
Use ocx help <family> <leaf> or appended --help, not a trailing bare help
after nested operands. Missing detail can fall back to family help; it is not
proof that a runtime operation is absent.
For a route you already know, an optional lookup is:
ocx capabilities --route '/api/providers/{provider}/model-costs' --json
This matches the declared path template, not a concrete provider URL or HTTP
method. Exit 4 means no declaration matched. Full ocx capabilities --json and
--mutating-only --json are useful for broad inventories, not mandatory preflight.
Declarations describe the installed CLI; actual handlers remain the grammar authority.
Choose a workflow
Start with the named read or preview, then follow its recipe. Help is offline; the target column describes execution. A listed write still needs authority for that task, and read-oriented probes can contact upstream services.
| Task domain | Start | Execution target | Verify the result |
|---|---|---|---|
| Lifecycle | ocx status --json |
Local runtime | Compare readiness, runtime identity and version; diagnosis |
| Providers and models | ocx provider snapshot --json |
Live management; local authoring is separate | Read saved state and catalog disposition; provider edits, model identities |
| Accounts | ocx account list --json |
Live management | Read active/selected state; quota is opt-in and can probe upstream; pool policy, per-key quota |
| Agents and routing | ocx route policy list --json |
Live management; v2 distinguishes local and live |
Inspect revision, saved overrides and apply outcome; routing edits, runtime settings |
| Integrations | ocx help integration |
Selected runtime and its client files | Preview before applying; inspect refusals and ownership; file integrations |
| Observation and maintenance | ocx logs filter --help |
Live management; connected usage is self-scoped |
Retain window, filter and incomplete/partial facts; filtered reads, companion totals |
| Access and remote | ocx connect status --json |
Local connection; management runs on its serving host | Separate connection health, key scope and revocation; remote targeting, private key handoff |
| Lab | ocx help lab |
Local evidence; explicit probes and automation have effects | Inspect evidence and export/probe limits; Lab workflow |
These are task entry points, not a count of GUI par
常见问题
阅读帮助信息需要运行中的代理吗?
不需要。该技能说明帮助命令可以离线使用,只有进行实时管理时才需要运行中的代理。
这个技能会修改 opencodex 的代码吗?
不会。它用于运行代理,而代码更改由仓库中的其他指导负责。
控制台的每项操作都能通过命令行完成吗?
不能。该技能提醒,不同任务的覆盖范围不同,因此某些控制台操作可能没有对应的命令行方式。
详情
作者的原始描述
Operate opencodex (`ocx`): discover CLI tasks offline, inspect local configuration, and manage a running proxy’s account pool, providers, models, routing, usage report, and management API. Use for proxy operation rather than editing the opencodex codebase.
repo: lidge-jun/opencodex
热度
- GitHub 星标
- 18k
- 排名
- #10723
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …