Codexbox MCPサーバー
コミット 2026年11月10日AIクライアントがOpenAI Codex CLIプロンプトを実行し、サンドボックス化されたコンテナ環境を通じてワークスペースファイルを管理できるようにします。
別名 psyb0t/docker-codexbox, docker-codexbox
- スター
- 0
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- 0.7.8
- 最終コミット
- 2026年11月10日
- ライセンス
- WTFPL
Codexbox MCPとは
CodexboxはMCPサーバーです。 AIクライアントがOpenAI Codex CLIプロンプトを実行し、サンドボックス化されたコンテナ環境を通じてワークスペースファイルを管理できるようにします。.
プロジェクトのREADMEから生成された概要
Codexbox MCP server について
Codexboxは、OpenAI Codex CLIプロンプトの実行とワークスペースファイルの管理を行うための、サンドボックス化されたコンテナ環境を提供します。Dockerを使用して実行環境を隔離するため、開発者は安全な境界を介してAIモデルとやり取りできます。ユーザーは、インタラクティブシェル、ワンショット実行、またはHTTP API、Telegramボット、cronスケジューラなどの専用モードを介して接続可能です。
このサーバーを使用するには、Dockerがインストールされ、実行されている必要があります。認証は、OpenAI APIキー、またはcodexbox loginコマンドによるChatGPTサブスクリプションを通じて行われます。システムは、最小構成のバージョンや、Go、Terraform、kubectl、Helmなどのツールを含むフルバージョンなど、異なるイメージバリエーションをサポートしています。MCPモードで実行する場合、streamable HTTP経由でrun_promptおよびワークスペースファイルツールを提供するため、さまざまなAIエージェントクライアントとの互換性があります。
できること
- 1単一のコーディングタスクの実行開発者は、失敗したテストを修正するための特定の指示をターミナルから直接送信できます。
- 2繰り返しのコーディング作業の自動化cronスケジュールを使用して、特定のCodexコマンドを定期的に実行するように設定できます。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
Codexbox MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにCodexbox MCPをインストール
$ claude mcp add docker-codexbox -- docker run -i --rm docker.io/psyb0t/codexbox:v0.7.8CursorにCodexbox MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"docker-codexbox": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/psyb0t/codexbox:v0.7.8"
]
}
}
}VS CodeにCodexbox MCPをインストール
.vscode/mcp.json
{
"servers": {
"docker-codexbox": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/psyb0t/codexbox:v0.7.8"
]
}
}
}VS Code CLIにCodexbox MCPをインストール
$ code --add-mcp '{"name":"docker-codexbox","type":"stdio","command":"docker","args":["run","-i","--rm","docker.io/psyb0t/codexbox:v0.7.8"]}'Claude DesktopにCodexbox MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"docker-codexbox": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/psyb0t/codexbox:v0.7.8"
]
}
}
}CodexにCodexbox MCPをインストール
$ codex mcp add docker-codexbox -- docker run -i --rm docker.io/psyb0t/codexbox:v0.7.8Codex config.tomlにCodexbox MCPをインストール
~/.codex/config.toml
[mcp_servers.docker-codexbox] command = "docker" args = ["run", "-i", "--rm", "docker.io/psyb0t/codexbox:v0.7.8"]
Gemini CLIにCodexbox MCPをインストール
$ gemini mcp add -s user docker-codexbox docker -- run -i --rm docker.io/psyb0t/codexbox:v0.7.8Gemini settings.jsonにCodexbox MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"docker-codexbox": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/psyb0t/codexbox:v0.7.8"
]
}
}
}設定
CODEXBOX_FULL
| 名前 | 説明 | 種類 |
|---|---|---|
| CODEXBOX_FULL | — |
自動チェック
実行日 2026年11月14日完全なレポート →まだ検証されていません。サーバーには80点のスコア、重大な問題がないこと、および検証に必要な十分なデータが必要です。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能psyb0t/docker-codexbox is public and reachablegithub.com/psyb0t/docker-codexbox ↗合格
- パッケージがこのリポジトリをソースとして指定未チェック
- ビルドの来歴 (Sigstore 証明)未チェック
- オープンソースライセンス (OSI)WTFPL is not OSI-approvedspdx.org/licenses/WTFPL.html ↗検出事項
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-10github.com/psyb0t/docker-codexbox ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していない未チェック
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るcodexbox
OpenAI Codex CLI inside an aicodebox container. Minimal and toolchain-loaded images, and six ways in: interactive shell, one-shot exec, an HTTP API with an OpenAI-compatible endpoint, an MCP server, a Telegram bot, and a cron scheduler that fires codex on whatever schedule you want.
You talk to codexbox. codexbox talks to codex. codex talks to OpenAI, or to your ChatGPT subscription. Nobody cares about the middle.
Documentation: https://psyb0t.github.io/docker-codexbox/
Table of Contents
Quick start
Docker installed and running is the only prerequisite. The installer pulls the image, creates ~/.codex and ~/.ssh/codexbox, and installs the codexbox command on your PATH.
# minimal image, the default
curl -fsSL https://raw.githubusercontent.com/psyb0t/docker-codexbox/main/install.sh | bash
# full image, every development tool installed
export CODEXBOX_FULL=1 && curl -fsSL https://raw.githubusercontent.com/psyb0t/docker-codexbox/main/install.sh | bash
Then log in once and go:
codexbox login --device-auth # ChatGPT subscription, or: export OPENAI_API_KEY=sk-...
codexbox # Codex TUI, continuing the last session for THIS directory
codexbox --no-continue # same, but a brand-new session
codexbox exec "fix the failing test in ./app" # one-shot, output to your terminal
echo "summarize README.md" | codexbox exec - # prompt via stdin
codexbox stop # stop this directory's containers
The wrapper mounts the current directory, keeps ~/.codex so the login and sessions survive, and passes any other codex subcommand straight through. The sandbox-bypass flag is added inside the container; the container is the sandbox. Install routes, local builds and every wrapper setting are in Install and The codexbox wrapper.
Image variants
psyb0t/codexbox:latest: Codex, Node.js, Python,uv, Docker, Git,jqandcurl, onpsyb0t/aicodebox:v0.18.4.psyb0t/codexbox:latest-full: the same Codex layer onpsyb0t/aicodebox:v0.18.4-full, with Go, Python, JavaScript and TypeScript tooling, GitHub CLI, Terraform, kubectl, Helm, debuggers and database clients.
The full image bundles Terraform, which is BUSL-1.1 and not OSI-approved open source. The variant list and licensing notes have the details, and THIRD_PARTY.md lists every bundled component.
Modes
Set a mode flag and the container becomes a service. API, Telegram and cron run in the foreground (API wins; Telegram and cron can run together). MCP runs next to any of them.
| Flag | What you get |
|---|---|
CODEXBOX_API_MODE=1 |
POST /run, workspace files over HTTP, and an OpenAI-compatible chat/completions endpoint on :8080. Needs CODEXBOX_AVAILABLE_MODELS. |
CODEXBOX_TELEGRAM_MODE=1 |
Codex in Telegram, one workspace per chat, per-chat /model and /effort |
CODEXBOX_CRON_MODE=1 |
YAML jobs on 6-field cron schedules, with run history |
CODEXBOX_MCP_MODE=1 |
run_prompt and workspace file tools over streamable HTTP |
services:
codexbox:
image: psyb0t/codexbox:latest
ports:
- "127.0.0.1:8080:8080"
environment:
- CODEXBOX_API_MODE=1
- CODEXBOX_API_MODE_TOKEN=your-secret
- CODEXBOX_AVAILABLE_MODELS=gpt-5.1-codex,gpt-5.1-codex-mini
- OPENAI_API_KEY=sk-...
volumes:
- ~/workspaces:/workspace
An empty token means no auth on that surface. Each mode's page in the documentation has its settings and examples.
Documentation
The full documentation lives at https://psyb0t.github.io/docker-codexbox/.
| Section | What it covers |
|---|---|
| Install | Installer, local builds, upgrading, image variants and licensing |
| The codexbox wrapper | Commands, host settings, CODEXBOX_ENV_ forwarding, sibling boxes, SSH agents |
| Authentication | API key or ChatGPT subscription, models and reasoning effort |
| Configuration | Container settings, AICODEBOX_ aliases, Git identity, init scripts, ports |
| Modes | API, Telegram, cron and MCP |
| Codex adapter | How run options map to Codex flags, and session continuation |
| Agent integrations | The skill and plugins for Claude Code, Codex and OpenClaw |
| Troubleshooting | Error messages and their fixes |
| Development | Building, linting, testing, CI and releases |
Agent integrations
The skill works in any agent that reads .agents/skills/ (such as peen) and installs natively in Claude Code, Codex and OpenClaw:
claude plugin marketplace add psyb0t/agents && claude plugin install codexbox@psyb0t
codex plugin marketplace add psyb0t/agents && codex plugin add codexbox@psyb0t
openclaw skills install @psyb0t/codexbox
The @psyb0t/codexbox OpenClaw plugin bridges stdio MCP clients to a running box. See Agent integrations.
Development
make help # every target
make build # minimal image on the published aicodebox base
make build-full # full image
make lint # shellcheck, shfmt, ruff and pyright, all in containers
make test-ci # the credential-free tests CI runs
make test # the end-to-end suite (needs .env.test)
make docs # build the documentation site into .testing/docs-site
Details in Development.
Sponsor
License
WTFPL, see LICENSE. Do what the fuck you want.
Third-party components bundled in the published images (Codex, and in the full image only Terraform, gh, kubectl, Helm and golangci-lint) keep their own licenses; see THIRD_PARTY.md.
Codexbox MCPのよくある質問
Codexbox MCPをClaude Codeに追加するには
ターミナルでclaude mcp add docker-codexbox -- docker run -i --rm docker.io/psyb0t/codexbox:v0.7.8を実行します。すべてのプロジェクトで利用するには--scope userを追加します。
Codexbox MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
MCPモードでは何ができますか?
MCPモードでは、streamable HTTP経由でrun_promptおよびワークスペースファイル操作ツールを利用できます。
ChatGPTのサブスクリプションでCodexboxを使用するにはどうすればよいですか?
デバイス認証メソッドを使用してログインすることで、ChatGPTのサブスクリプションを利用できます。