一键导入
codexpro-chatgpt-local-agent
Use ChatGPT Developer Mode as a local coding agent for your repo through MCP
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use ChatGPT Developer Mode as a local coding agent for your repo through MCP
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | codexpro-chatgpt-local-agent |
| description | Use ChatGPT Developer Mode as a local coding agent for your repo through MCP |
| triggers | ["set up CodexPro to connect ChatGPT to my local repo","use ChatGPT web as a local coding agent","configure MCP bridge for ChatGPT Developer Mode","let ChatGPT read and edit my local files","create a handoff plan for local agent execution","export pro context for ChatGPT models without MCP","start CodexPro with a stable tunnel URL","watch for handoff plans and execute them locally"] |
Skill by ara.so — Codex Skills collection.
CodexPro bridges ChatGPT Developer Mode to your local repository through the Model Context Protocol (MCP). It exposes your repo's context (AGENTS.md, .ai-bridge files, git status, source files) and gives ChatGPT tools to read, write, edit, search, and run safe verification commands locally.
Key capabilities:
Not a bypass: CodexPro uses official ChatGPT Developer Mode and does not modify rate limits, unlock models, or provide account access.
npm install -g codexpro
Navigate to your project directory:
cd /path/to/your/project
codexpro setup
This interactive setup:
.codexpro-config.json with workspace pathChatGPT App Setup:
codexpro start
Options:
--mode handoff - Include handoff/execute tools for local agent workflows--mode default - Standard coding tools (default)--tunnel none - Disable public tunnel (localhost only)--tunnel cloudflare - Use Cloudflare quick tunnel--tunnel ngrok - Use ngrok with free dev domain--tool-mode minimal - Smallest tool set (demo/testing)--tool-mode standard - Normal coding + handoff (default)--tool-mode full - All compatibility and debugging toolsNgrok (recommended for persistent URLs):
# Get a free static domain at https://dashboard.ngrok.com/cloud-edge/domains
export NGROK_AUTHTOKEN=your_token_here
export NGROK_DOMAIN=your-subdomain.ngrok-free.app
codexpro start --tunnel ngrok
Cloudflare Named Tunnel:
# Install cloudflared and authenticate
cloudflared tunnel login
cloudflared tunnel create codexpro-tunnel
# Set environment variables
export CLOUDFLARE_TUNNEL_NAME=codexpro-tunnel
codexpro start --tunnel cloudflare-named
See DOMAIN_SETUP.md for full guide.
ChatGPT acts directly on your repo:
User: "Add input validation to src/api.js"
ChatGPT will:
src/api.jsUser: "Show me what changed since last commit"
ChatGPT calls show_changes and renders a review card with git status and diff.
ChatGPT writes a plan for a local agent to execute:
# Terminal 1: Start with handoff mode
codexpro start --mode handoff
# Terminal 2: Watch for plans and auto-execute
codexpro watch-handoff --agent opencode --model anthropic/claude-3.5-sonnet --yes
In ChatGPT: "Create a plan to refactor auth.js for better error handling, then hand off to OpenCode"
ChatGPT writes .ai-bridge/current-plan.md, the watcher detects it, and OpenCode executes locally.
Review results:
cat .ai-bridge/agent-status.md
cat .ai-bridge/implementation-diff.patch
For ChatGPT sessions that can't call MCP tools:
User: "Export pro context for this workspace"
ChatGPT writes .ai-bridge/pro-context.md with:
Copy/paste this into a new ChatGPT session.
.codexpro-config.json{
"workspace": "/absolute/path/to/project",
"token": "generated-random-token",
"port": 3456,
"tunnel": "cloudflare",
"toolMode": "standard",
"writeMode": "allow",
"bashMode": "safe",
"maxFileReadBytes": 524288,
"allowedBashCommands": [
"npm test",
"git status",
"eslint ."
]
}
# Tunnel configuration
export NGROK_AUTHTOKEN=your_token
export NGROK_DOMAIN=your-subdomain.ngrok-free.app
export CLOUDFLARE_TUNNEL_NAME=codexpro-tunnel
# Safety controls
export CODEXPRO_WRITE_MODE=allow # allow | off
export CODEXPRO_BASH_MODE=safe # safe | off
export CODEXPRO_TOOL_MODE=standard # minimal | standard | full
# Widget rendering (for app submission)
export CODEXPRO_WIDGET_DOMAIN=https://your-widgets-domain.com
Write protection:
node_modules/, .git/, .env*, *.key, *.pemCODEXPRO_WRITE_MODE=off to disable all writesBash allowlist (safe mode):
[
"npm test", "npm run test", "npm run lint",
"git status", "git diff", "git log",
"node --version", "npm --version",
"cat package.json", "ls -la"
]
Custom commands:
export CODEXPRO_ALLOWED_BASH_COMMANDS='["make test","cargo check"]'
Set CODEXPRO_BASH_MODE=off to disable bash entirely.
Workspace:
open_current_workspace - Open default workspace (safest first call)open_workspace - Open by path, returns git status, AGENTS.md, discovered skillsFile operations:
read - Read files with line numberswrite - Create/overwrite files, returns diffedit - Exact text replacement, returns difftree - Inspect file structuresearch - Code search with ripgrepExecution:
bash - Run allowlisted commandsshow_changes - Visual review card with git status/diffHandoff/Export:
handoff_to_agent - Write .ai-bridge/current-plan.mdexport_pro_context - Write .ai-bridge/pro-context.mdread_handoff - Read .ai-bridge filesload_skill - Load discovered SKILL.md instructionsServer:
server_config - Show safety settings and limits--tool-mode minimal)Only: server_config, open_current_workspace, open_workspace, read, write, edit, bash, show_changes
--tool-mode full)Adds debugging/compatibility tools:
codexpro_inventory - List discovered skills and MCP serverslist_workspaces - Show opened workspacesworkspace_snapshot - Full project statusgit_status, git_diff - Granular git inspectioncodex_context - Load Codex-style context in one callhandoff_to_codex - Legacy handoff wrapperUser: "Open my current workspace"
→ ChatGPT calls open_current_workspace, shows project card
User: "Add a /health endpoint to src/server.js"
→ ChatGPT reads src/server.js
→ ChatGPT edits it with new route
→ Shows diff card
User: "Test it"
→ ChatGPT calls bash with "npm test"
→ Shows test output
Terminal setup:
# Terminal 1
codexpro start --mode handoff
# Terminal 2
codexpro watch-handoff \
--agent opencode \
--model anthropic/claude-3.5-sonnet \
--yes \
--poll-interval-ms 2000
ChatGPT conversation:
User: "Refactor the auth module to use async/await. Create a plan and hand off to OpenCode."
→ ChatGPT analyzes code
→ Writes .ai-bridge/current-plan.md with:
- Goal
- Files to modify
- Step-by-step instructions
- Verification commands
→ Watcher detects new plan
→ Runs: opencode --model anthropic/claude-3.5-sonnet --task-file .ai-bridge/current-plan.md
→ OpenCode executes locally
→ Writes: .ai-bridge/agent-status.md, .ai-bridge/implementation-diff.patch
Review:
cat .ai-bridge/agent-status.md
git diff
Custom agent script (agent.js):
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const taskFile = process.argv.find(arg => arg.startsWith('--task-file='))?.split('=')[1];
if (!taskFile) {
console.error('Missing --task-file');
process.exit(1);
}
const plan = fs.readFileSync(taskFile, 'utf8');
console.log('Custom agent executing plan:', plan);
// Your agent logic here
// Read plan, execute changes, write status
fs.writeFileSync('.ai-bridge/agent-status.md', `# Custom Agent Status\n\nCompleted: ${new Date().toISOString()}`);
Watch for plans:
codexpro watch-handoff \
--agent custom \
--command "node ./agent.js --task-file {{plan_file}}" \
--yes
ChatGPT can't call MCP tools:
User: "Export pro context"
→ ChatGPT writes .ai-bridge/pro-context.md with:
- AGENTS.md instructions
- Git status, diff stats
- File tree
- .ai-bridge state
Use in new session:
cat .ai-bridge/pro-context.md
# Copy content, paste into new ChatGPT Pro session
# Check server is running
curl http://localhost:3456/health
# Restart with tunnel
codexpro start --tunnel ngrok
# Verify token matches
cat .codexpro-config.json
# Compare token in ChatGPT app settings
# Check write mode
codexpro start
# Should show: Write mode: allow
# Check file not blocked
# Blocked: node_modules/, .git/, .env*, *.key, *.pem
# Enable writes if disabled
export CODEXPRO_WRITE_MODE=allow
codexpro start
# Check bash mode
codexpro start
# Should show: Bash mode: safe
# Add custom command to allowlist
export CODEXPRO_ALLOWED_BASH_COMMANDS='["make test","npm run build"]'
# Or disable bash restriction (caution)
export CODEXPRO_BASH_MODE=off
# Check watcher is running
codexpro watch-handoff --agent opencode --dry-run
# Verify plan file exists and is new
cat .ai-bridge/current-plan.md
# Check state file
cat .ai-bridge/watch-handoff-state.json
# Force re-execution
rm .ai-bridge/watch-handoff-state.json
codexpro watch-handoff --agent opencode --once
Ngrok free tier:
Solution:
# Get free static domain at ngrok.com
export NGROK_DOMAIN=your-subdomain.ngrok-free.app
codexpro start --tunnel ngrok
Cloudflare named tunnel:
cloudflared tunnel create codexpro-tunnel
export CLOUDFLARE_TUNNEL_NAME=codexpro-tunnel
codexpro start --tunnel cloudflare-named
# Refresh ChatGPT app
# Go to: ChatGPT → Settings → Apps → CodexPro Local → Refresh actions
# Check widget domain
export CODEXPRO_WIDGET_DOMAIN=https://rebel0789.github.io
codexpro start
CODEXPRO_WRITE_MODE=off for read-only sessions.CODEXPRO_BASH_MODE=safe to restrict shell commands..codexpro-config.json (contains auth token).# CodexPro for ChatGPT web planning
codexpro start
# Codex for local execution
codex execute .ai-bridge/current-plan.md
// .github/workflows/test.yml
- name: Test with CodexPro plan
run: |
npm install -g codexpro
codexpro execute-handoff --agent opencode --review-only
cat .ai-bridge/agent-status.md
FROM node:20
RUN npm install -g codexpro
WORKDIR /workspace
COPY . .
CMD ["codexpro", "start", "--tunnel", "none"]
docker run -p 3456:3456 -v $(pwd):/workspace codexpro-image
This skill enables agents to guide users through setting up and using CodexPro to bridge ChatGPT Developer Mode to local repositories via MCP, including normal coding, handoff workflows, and pro context export.
Convert attached object images into code-only, animation-ready procedural Three.js models through guided sculpting workflow
Create and manage AI video storyboard projects with automated asset generation through Codex Storyboard workspace
Continue-thinking middleware that detects and handles reasoning truncation in Codex/OpenAI Responses-compatible APIs
Desktop manager for OpenAI Codex CLI with prompt injection, provider switching, and TOML/Auth visualization
Inject unrestricted developer mode instructions into Codex CLI (GPT-5.5) to bypass content filters
Install and use TradingCodex to build Codex-native investment research workflows with fixed-role agents, order approval gates, and local Django service plane