返回顶部
热门问答 更多热门问答
技术文章 更多技术文章

我的Codex是Claude Code 帮忙装好的……

[复制链接]
链载Ai 显示全部楼层 发表于 昨天 22:06 |阅读模式 打印 上一主题 下一主题

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">看到OpenAI的Tibo(@thsottiaux)说Codex CLI现在已经支持ChatGPT账号登录,并且Plus和Pro订阅用户可以直接在命令行里使用GPT-5.

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">Codex 的安装命令如下:

$ brew install codex
$ codex

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">倒是挺简单。

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">Tibo 还在评论区中回答了网友的诸多问题,我大概整理了下:

    ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;" class="list-paddingleft-1">
  1. Pro账户独享并行测试时计算

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">Pro版本不仅仅是High,而是会进行并行计算,即同时运行多个推理路径,然后比较合并得出更准确的结果。

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">不过,我没有Pro,我就只有个Plus.

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">主要是感觉它太不值了。

    ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;" class="list-paddingleft-1">
  1. 额度与网页版分开计算

ingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;orphans: 2;text-align: justify;text-indent: 0px;text-transform: none;widows: 2;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;">Codex的使用额度与网页版ChatGPT是独立的,不会相互影响。

  1. 支持MCP

以轻松集成Supabase、Tavily和Playwright等工具,只需在config.toml里添加几行配置。

  1. 开源且支持本地模型

作为开源项目,Codex还支持运行本地的开源模型。

  1. IDE集成正在路上

团队正在开发类似Claude Code的IDE扩展集成。

  1. 跨平台支持

除了Mac,还支持Linux和WSL2。

看完不得实操一把!

但……安装时却碰到了点小问题……

先是brew安装,倒是一切顺利:

==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/formula_tap_migrations.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Fetching downloads for: codex
==> Downloading https://ghcr.io/v2/homebrew/core/codex/manifests/0.22.0
################################################################################################################# 100.0%
==> Fetching dependencies for codex: ripgrep
==> Downloading https://ghcr.io/v2/homebrew/core/ripgrep/manifests/14.1.1
################################################################################################################# 100.0%
==> Fetching ripgrep
==> Downloading https://ghcr.io/v2/homebrew/core/ripgrep/blobs/sha256:b8bf5e73c9c9b441de067ec86ac167b071ecc2078dcb1d89d2cebbb151feab35
################################################################################################################# 100.0%
==> Fetching codex
==> Downloading https://ghcr.io/v2/homebrew/core/codex/blobs/sha256:bc3833f51bb78d9cf8c435c029a0d788650b88fcbef04b42c2893b91df8f8866
################################################################################################################# 100.0%
==> Installing codex dependency: ripgrep
==> Downloading https://ghcr.io/v2/homebrew/core/ripgrep/manifests/14.1.1
Already downloaded: /Users/****/Library/Caches/Homebrew/downloads/d7d10117e9817375ba05f5cc6a69867e3e6ebf8af96a2ff52fa1e08aa348b24b--ripgrep-14.1.1.bottle_manifest.json
==> Pouring ripgrep--14.1.1.arm64_sequoia.bottle.tar.gz
🍺 /opt/homebrew/Cellar/ripgrep/14.1.1: 14 files, 6MB
==> Pouring codex--0.22.0.arm64_sequoia.bottle.tar.gz
🍺 /opt/homebrew/Cellar/codex/0.22.0: 13 files, 15.4MB

版本确认也没问题:

codex --version
codex-cli 0.22.0

可运行时却报错了:

codex login
Error loading configuration: Not a directory (os error 20)

而且这错我完全看不明白……

我在Tibo 推文中的评论区翻了翻,也没人报类似的错啊……

怎么办呢?

Google 一下?StackOverflow 一下?

都不需要!

我有Claude Code Max 啊!

我直接把问题甩给了Claude Code,它也不让我失望,迅速就找到了问题所在——~/.codex应该是个目录,但被错误地创建成了文件。

(说实话,我还是没看懂……)

Claude Code 也不管我懂没懂,就以迅雷不及掩耳盗铃之势,干净利落地解决了问题:

期间还打开了浏览器,我就点一下确认授权就好。

然后就是测一下Codex的能力如何了。

我给它布置了一个Claude Code没有完全处理的任务——

一个markdown转图片的Python项目。

(听着不难,但其实我有许多细节要求,开源/能找到的没一个能用的)

这勉强算是个难度中上的任务吧。

Codex 倒是迅速思考、规划、执行,也和Claude Code 似的咔咔把活干完了。

但我运行了下,却直接报错了:

(.venv) (base) ➜ md2img python tools/md2img.py --markdown-file sample.md --out-dir images/result
Traceback (most recent call last):
File "/Users/****/****/codex/md2img/tools/md2img.py", line 342, in <module>
main()
File "/Users/****/****/codex/md2img/tools/md2img.py", line 282, in main
content = render["content"]
KeyError: 'content'

具体啥错我就不说了,因为我根本也没看……

相比之下,Claude Code 虽然运行结果不够好,但至少能跑通整个流程,有图片生成,除了难看了点。

我还测了些其他的小case,整体而言,我对Codex 的初步测试结论是:

还有很大的提升空间

不得不说,这一点倒确实比Claude Code 强

不过Tibo 说的是Codex 项目会每天更新,我也会继续保持关注。毕竟以GPT-5 的极低幻觉率,在某些场景下可能会比较有用。

用下来OpenAI 这次倒算是少见的大方——

我的20美元Plus账号也能跑许多还挺耗token的任务,而且目前(暂时)和网页版是隔离计算用量的,不用白不用。

这里不得不提我200$的Claude Code了,它已经在我的工作中全方位上场:装软件、写代码、debug、甚至处理视频等等,只要我敢想,Claude Code 就敢干,且还能干得不错。

每天不花个100$ 我都感觉在亏钱……

并且,身为terminal 玩家的我甚至Google 和deep research 都不咋用了,有时就直接给Claude Code 来一句:

搜索xxx相关的全面信息,并制定一份全面而完善的报告,用markdown/html/pdf格式给出

其实上面的用法我还专门建了个/dp 的slash commands 命令进行了简化,供参考:

cat ~/.claude/commands/dp.md
---
description: 深度研究指定主题并生成完整报告
argument-hint: <主题/关键词>
allowed-tools: WebSearch, WebFetch, Write
---

# 深度研究任务

请对主题 "$ARGUMENTS" 进行全面深度的研究。

## 任务要求

1. **全面搜索信息**
- 使用 WebSearch 搜索关于该主题的最新信息
- 收集多个权威来源的数据和观点
- 获取相关的统计数据、案例研究和专家观点

2. **生成完整报告**,包含以下部分:
- **执行摘要** - 简要概述核心发现
- **背景介绍** - 主题的历史背景和重要性
- **核心概念** - 关键术语和概念的详细解释
- **当前状况** - 该领域的最新发展和现状
- **关键技术/方法** - 相关的技术、方法论或理论框架
- **实际应用** - 真实世界的应用案例和成功故事
- **优势与挑战** - 深入分析优缺点和面临的挑战
- **未来趋势** - 基于数据的趋势预测和发展方向
- **结论与建议** - 总结性观点和行动建议
- **参考资源** - 进一步学习的资源链接

3. **格式要求**
- 使用结构化的 Markdown 格式
- 包含目录(TOC)
- 适当使用表格、列表和引用
- 确保层次清晰、逻辑连贯

4. **保存报告**
- 文件名格式:`research_[日期]_[主题简称].md`
- 保存到当前工作目录
- 在报告开头添加元数据(生成日期、主题、关键词)

请立即开始研究,确保信息的准确性和时效性,生成一份专业、全面的研究报告。%

而使用时,我只需要这样:

过会儿就能得到一份全面的报告。

真•无所不能,少用就是浪费。

我已经算很努力地用了,但每天还是用不满100$……

最后来个暴论:每个人都应该开个Claude Code Max.

200美元/月的价格看着不算太便宜,但如果拥有这样一个锋利的武器,你连1400块钱都赚不回来,或者说连这个回本信心都没有……

那,还是趁早改行吧。


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

链载AI是专业的生成式人工智能教程平台。提供Stable Diffusion、Midjourney AI绘画教程,Suno AI音乐生成指南,以及Runway、Pika等AI视频制作与动画生成实战案例。从提示词编写到参数调整,手把手助您从入门到精通。
  • 官方手机版

  • 微信公众号

  • 商务合作

  • Powered by Discuz! X3.5 | Copyright © 2025-2025. | 链载Ai
  • 桂ICP备2024021734号 | 营业执照 | |广西笔趣文化传媒有限公司|| QQ