andforce
V2EX  ›  OpenAI

有没有办法在 Codex 里用 API 额度

  •  
  •   andforce · 1 day ago via iPhone · 2173 views

    前这日子 openai 赠送了 api 额度,

    有没有办法在 codex 里用上啊

    Supplement 1  ·  1 day ago
    感谢各位,已经使用 magpie ,在 Claude Code Desktop 里用上了
    18 replies  •  2026-11-12 23:34:41 +08:00
    Dream4U
    Dream4U
    1 day ago
    1
    magpie
    x2009again
    x2009again
    1 day ago
    2
    7 天额度用完了就会自动扣点数额度
    pota
    pota
    1 day ago
    3
    codex 可以用自定义模型配置接入 api 啊。你让你的 codex 给你配置就是了
    Nu1lXX
    Nu1lXX
    1 day ago
    4
    codex 不是支持 api 吗,直接账号退了选 api 就行啦
    andforce
    andforce
    OP
    1 day ago
    5
    @pota @Nu1lXX Codex Desktop 好像不支持?
    andforce
    andforce
    OP
    1 day ago
    6
    @x2009again #2 这个我知道,就是想把赠送的 api 额度用了
    andforce
    andforce
    OP
    1 day ago
    7
    @Dream4U #1 试试,感谢
    Dream4U
    Dream4U
    1 day ago
    8
    @x2009again #2

    API 额度不是点数
    Greenm
    Greenm
    1 day ago
    9
    提醒一下,openai 送的 API 余额官方写了不让在 codex 中调用。
    andforce
    andforce
    OP
    1 day ago
    10
    @Greenm #9 啊,这不好办奥

    Free trial
    API credit balance
    $200.00
    Next expiration: $200.00 on Dec 7, 2026. View credit grants

    No payment method is required to use your available API credits.

    Add payment details to set up billing before buying credits.
    georgeok
    georgeok
    1 day ago
    11
    可以在 dsh 中使用吧
    registerrr
    registerrr
    1 day ago
    12
    找找有人买没有,卖出去算了
    Nu1lXX
    Nu1lXX
    1 day ago
    13
    @andforce 你用的盗版吗我还专门退出来看了一下,咋可能没有
    testsb
    testsb
    1 day ago
    14
    我让 codex 创建了一个 API platform review agent ,可以用 API 额度来专门做代码 review ,platform agent 可以通过 Github MCP 访问私有仓库。

    但实测下来挺费额度的:我把任务规划分成若干个大的 Task ,每个 TASK 又拆分成小的 slice ,1 个 slice 现在 1~2 万行 python 代码。

    用这个 API platform review agent ,5.6 sol xhigh + 6.1 sol xhigh + 6 astra xhigh 做三轮 review ,每轮独立 session 、包含对本轮审计发现的问题修复后的复审,结果花了 $44 左右。

    我是 Pro100 ,所以每个月 API 额度最多也就是 $100 ,也就是说这么干最多能审计 2 个 slice 。

    后面我可能会把 5.6 sol xhigh 换成 6.1 terra xhigh 试试,不知道能省多少。但是感觉最多也不会 review 多于 3 个 slice 吧。

    —————————————————————————————————————————————————————————————————————————————————————————————


    我之前用 codex 写代码,然后用 chatgpt 网页版不同模型做 3 轮 review ,除了 astra 6 xhigh 是用的 网页端的 GPT-6 Pro 代替。

    网页版不耗 codex 额度,这样用挺方便的。

    但据说本月网页版要并入 codex 一起算额度,感觉天塌了,送的 API 也远远不够看。

    —————————————————————————————————————————————————————————————————————————————————————————————

    这里有个多轮 Review 的高性价比技巧:先让廉价/低级模型 review ,发现那些显而易见的简单 bug/问题,这样成本最低。那些复杂 bug 就更可能更多地被后面几轮成本更高的中高级模型发现了。
    pota
    pota
    1 day ago
    15
    @andforce #5 支持啊。。
    chenluo0429
    chenluo0429
    1 day ago via Android
    16
    @Greenm 不要造谣啊,API 额度怎么可能不让在 codex 中用
    DeeCheung
    DeeCheung
    1 day ago
    17
    ```sh
    codex --no-daemon -c 'forced_login_method="api"'
    ```

    ~/.codex/auth.json
    ```json
    {
    "auth_mode": "apikey",
    "OPENAI_API_KEY": "[YOUR_API_KEY]"
    }
    ```

    可以恢复之前的旧会话
    wiped77
    wiped77
    PRO
    1 day ago
    18
    💡有想法,现在就开始。一份余额,自由调度。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1229 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 17:43 · PVG 01:43 · LAX 09:43 · JFK 12:43
    ♥ Do have faith in what you're doing.