出处:L站大佬研究的
核心逻辑·:(好像已经拉闸了)
新sub2api最新版本,Agent Identity模式,任何账号都无需接码(包括free)
核心逻辑: 有效 Session → 校验 JWT → 生成 Ed25519 密钥对 → 提交公钥注册 Runtime → 保存服务端agent_runtime_id与本地私钥
有效 Web Session / access_token
→ 本地生成 Ed25519 密钥对
→ POST https://auth.openai.com/api/accounts/v1/agent/register
→ 返回 agent_runtime_id
→ agent_runtime_id + 本地私钥生成 Agent Identity
附上对应的注册脚本,需要的自行研究。
codex_agent.txt (14.0 KB)