Codex
Use Conway from OpenAI Codex.
Give Codex the ability to create cloud sandboxes, run code, deploy applications, and expose services to the internet.
Setup
1. Install Conway Terminal
curl -fsSL https://conway.tech/terminal.sh | shOr install manually:
npm install -g conway-terminal2. Configure Codex
Add Conway as an MCP server in your Codex configuration:
codex --mcp-config conway-mcp.jsonCreate conway-mcp.json:
{
"mcpServers": {
"conway": {
"command": "conway-terminal",
"env": {
"CONWAY_API_KEY": "cnwy_k_..."
}
}
}
}Your API key is in ~/.conway/config.json after running the setup script.
Verify Integration
Ask Codex to list your sandboxes:
> list my cloud sandboxesCodex should invoke the sandbox_list tool.
Example Workflows
Run Tests in Isolation
> create a sandbox, copy my project, install dependencies, and run the test suiteDeploy a Prototype
> create a sandbox with 2 vCPUs, set up a Flask API, and expose port 8000Multi-Model Inference
> use Conway Compute to compare responses from GPT-5.2 and Claude Sonnet 4.5 for this promptTips
- Codex can use Conway's sandboxes as isolated execution environments for running and testing code
- Chain sandbox operations with inference calls for agentic workflows
- Use PTY sessions for interactive debugging
Troubleshooting
Tools Not Found
- Verify
conway-terminalis installed:which conway-terminal - Check the MCP config path is correct
- Ensure the API key is valid
Connection Issues
- Test connectivity:
curl https://api.conway.tech/health - Verify your API key: check
~/.conway/config.json