Skip to content

【求助】codex要使用antigravity-tool做反代如何配置 #573

Description

@mingliao

感谢作者的辛勤付出,请教下。
我使用cc-Switch 按照如下配置

{
  "OPENAI_API_KEY": "sk-xxx", 
  "last_refresh": "2026-01-07T07:50:55.549601Z",
  "tokens": {
    "access_token": "xxx1",
    "account_id": "xxx2",
    "id_token": "xxx3",
    "refresh_token": "xxx4"
  }
}

其中 OPENAI_API_KEY 就是antigravity-tool提供的key
api请求地址 配置的是 http://127.0.0.1:8045/v1
模型名称 配置的是 gemini-3-flash
这样的配置,在codex-cli工具一直提示401未授权,是工具不支持codex-cli么?

Image

新手不太懂,查了很多文档,也没看出个所以然来,有了解的大佬帮忙看下解答下,感谢。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions