# agentkernel for Codex
Use agentkernel as a sandbox backend for OpenAI Codex via MCP.
## Setup
1. Install agentkernel:
```bash
brew tap thrashr888/agentkernel && brew install agentkernel
```
2. Install the MCP config into your project:
```bash
agentkernel plugin install codex
```
This adds the agentkernel MCP server entry to your `.mcp.json`.
3. Start using agentkernel tools in Codex. The MCP server exposes:
| `run_command` | Run a command in a temporary sandbox |
| `create_sandbox` | Create a persistent sandbox |
| `exec_in_sandbox` | Execute in an existing sandbox |
| `remove_sandbox` | Remove a sandbox |
| `list_sandboxes` | List all sandboxes |
## How It Works
The `agentkernel mcp-server` command starts a stdio-based MCP server that Codex connects to. All code execution is routed through agentkernel's microVM sandboxes.
## License
MIT