Dotcker 将 Codex CLI 容器化接入 ChatGPT
开发者 EricVogt93 发布非官方项目 Dotcker,可在容器中运行未经修改的 Codex CLI,并允许该环境接入 ChatGPT,服务器无需桌面端或 Electron 应用。项目支持挂载工作区、Docker Compose、持久化对话、流式传输和健康检查;开发者称用户可使用自己的 ChatGPT 账户登录并配对设备。可选连接器依赖未公开接口,因此在 OpenAI 调整服务后可能失效。
Dotcker 为在容器中运行编码智能体并接入 ChatGPT 提供了实用方案,但非官方属性和未公开接口依赖会限制其稳定性。
Moin,
I made a small project called dotcker (dumb name, I know). It runs the official Codex CLI in a container and lets you connect that environment to ChatGPT. No desktop or Electron app needed on the server.
I wanted a dedicated workspace for the agent, with access to the repos it should work on, without exposing my whole home directory, SSH keys and browser profiles.
My own setup uses OpenSandbox. I have my coding harnesses in there and use my Dot as the orchestrator. I talk to Dot through ChatGPT, including from my phone, and it coordinates the work through the harnesses inside the sandbox.
That is what I mainly use it for. A server environment where my tools and repos are available, with Dot handling the orchestration.
You can also run it with Docker Compose. Mount your workspace, log in with your own ChatGPT account and pair the device. There is a local HTTP bridge for chat requests, streaming, persistent conversations and health checks too.
The project is unofficial and uses the unmodified Codex CLI. The optional experimental connector relies on undocumented endpoints, so it can break when OpenAI changes things.
Code and setup: https://github.com/EricVogt93/dotcker
If you try it with a similar setup, let me know how it goes.