ChatGPT / Codex CLI Setup
Configure ACE MCP with OpenAI's ChatGPT and Codex CLI tools - Complete step-by-step guide.
Node.js 18+ installed
Check with: node --version
OpenAI Codex CLI installed
OpenAI API key configured
ACE CLI installed and configured
ACE server running
OpenAI's Codex CLI supports MCP (Model Context Protocol) for connecting to external tools like ACE3. This allows ChatGPT/GPT-4 models to access your project's cognitive infrastructure for persistent context.
Create the MCP configuration file at the appropriate location for your operating system:
Config file location (TOML format):
The config file is created when you first run codex
Add the ACE MCP server to your file (TOML format): config.toml
Or use to configure automatically. ace mcp setup
Tip: Automatic Setup
Run and it will automatically configure MCP for Codex CLI. ace init
Start the Codex CLI in your project directory:
Try these prompts to test the ACE integration:
Store a memory:
"Store this memory: the project uses React 18 with TypeScript"
Track a decision:
"What decisions have been made about the database?"
Track an issue:
"Create an issue for the performance regression in the API"
Success!
If Codex responds by using ACE tools, your setup is complete!
Alternative: Direct REST API
If MCP is not available or you're using ChatGPT web interface, you can use ACE's REST API directly:
You can create custom GPT actions that call these API endpoints for ChatGPT Plus/Pro users.
Troubleshooting
The ACE CLI is not in your PATH. Try these fixes:
- Reinstall ACE globally:
npm install -g @ace3-memory/ace - Check if npm global bin is in PATH:
npm bin -g - Add npm global bin to your PATH in
- Verify ACE server is running:
ace status - Check config file for JSON syntax errors
- Restart Codex CLI after config changes
- Verify the config file path is correct
- Start ACE server:
ace start - Check health:
curl http://localhost:7777/health - Check if port 7777 is blocked by firewall
Available ACE Tools
Once configured, Codex CLI can use all 77 ACE tools:
ace_rememberace_recallace_get_contextace_searchace_track_issueace_resolve_issueace_find_solutionsace_track_decisionace_best_practicesace_get_statsace_log_workace_architectureace_patternsace_manage_tagsace_graph_traverseace_graph_connectace_graph_relatedace_graph_listace_graph_healthace_graph_analyticsace_save_planace_list_plansace_get_planace_update_plan_taskace_batch_createace_observeace_review_observationsace_trigger_learningace_agent_statusace_trigger_agentace_agent_configace_agent_historyace_agent_activityace_agent_insightsace_agent_healthace_list_namespacesace_set_namespaceace_create_namespaceace_get_current_namespace