All parts of Claude Code's system prompt, 27 builtin tool descriptions, sub agent prompts (Plan/Explore/Task), utility prompts (CLAUDE.md, compact, statusline, magic docs…
Codex Credentials Extension
将当前 chatgpt.com 浏览器会话导出为 Codex CLI 可用的 auth.json 的 Chrome 扩展。 A Chrome extension that exports the current chatgpt.com browser session as a Codex CLI compatible auth.json.
Install: git clone https://github.com/liuzan678/codex-credentials-extension
Works with Codex · 25 GitHub stars
Install
git clone https://github.com/liuzan678/codex-credentials-extensionInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Codex 凭据导出器 / Codex Credentials Exporter
一个用于从浏览器当前
chatgpt.com登录态中提取 OAuthaccess_token、生成 Codex CLIauth.json并复制到剪贴板的 Chrome 扩展,跳过 Codex 登录阶段的手机号校验。A Chrome extension that extracts the OAuth
access_tokenfrom the currentchatgpt.combrowser session, generates a Codex CLIauth.json, and copies it to the clipboard,skipping the phone number verification during the Codex login process.
中文简介
功能特性
- 跳过 Codex 登录阶段的手机号校验
- 从当前浏览器登录态读取
chatgpt.com/api/auth/session - 自动提取
access_token - 生成可用于 Codex CLI 的
auth.json - 一键复制到剪贴板
- 在弹窗中预览生成结果
- 显示账号、套餐和过期时间等信息
截图
1. 安装扩展
2. 扩展弹窗界面
3. 生成并复制 auth.json
安装方法
- 克隆或下载本仓库
- 打开 Chrome / Edge 浏览器,进入扩展管理页面:
- Chrome:
chrome://extensions/ - Edge:
edge://extensions/
- Chrome:
- 打开右上角的“开发者模式”
- 点击“加载已解压的扩展程序”
- 选择本仓库目录
使用方法
- 先在浏览器中登录
https://chatgpt.com - 点击浏览器工具栏中的扩展图标
- 点击 “抓取并复制 auth.json”
- 扩展会读取当前会话并生成
auth.json - 将复制到剪贴板的内容粘贴到:
~/.codex/auth.json
注意事项
auth.json包含敏感凭据,请勿泄露给他人- 当前生成结果不包含
refresh_token - 当
access_token过期后,需要重新在扩展中执行一次导出 - 使用前请确保当前浏览器中的
chatgpt.com登录状态有效
联系方式
一起交流与学习,请联系:liu_zan@aliyun.com
License
本项目采用 Apache License 2.0,详见 LICENSE。
English
Features
- Skip phone number verification during Codex login
- Reads the current
chatgpt.com/api/auth/sessionbrowser session - Extracts the OAuth
access_token - Generates a Codex CLI compatible
auth.json - Copies the result to the clipboard with one click
- Shows a preview inside the extension popup
- Displays account, plan, and expiration details
Screenshots
1. Install the extension
2. Extension popup
3. Generated auth.json result
Installation
- Clone or download this repository
- Open the browser extension management page:
- Chrome:
chrome://extensions/ - Edge:
edge://extensions/
- Chrome:
- Enable Developer mode
- Click Load unpacked
- Select this repository folder
Usage
- Sign in to
https://chatgpt.comin your browser - Click the extension icon in the browser toolbar
- Click “抓取并复制 auth.json”
- The extension will read the current session and generate
auth.json - Paste the copied content into:
~/.codex/auth.json
Notes
- The generated
auth.jsoncontains sensitive credentials; do not share it - The output does not include a
refresh_token - After the
access_tokenexpires, run the export again from the extension - Make sure your
chatgpt.comsession is valid before using the extension
Contact
For further discussion and learning, please contact: liu_zan@aliyun.com
License
This project is licensed under the Apache License 2.0. See LICENSE for details.
Similar plugs
AI-powered bug bounty hunting toolkit that works with or without subscription.
Run Claude Code 100% on-device with local AI on Apple Silicon. MLX-native Anthropic-API server. 6 fighters incl. Muse-Glimmer 30B (now multimodal, reads images, abliterated)…
The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu