A Kiro Power that enables AI agents to execute complex coding tasks using OpenAI Codex CLI as an MCP server.
- Execute coding tasks through Codex agent
- File operations (create, edit, move, delete)
- Shell command execution
- Multi-turn conversations with conversation ID
.
├── README.md # This file
└── kiro/ # Kiro Power content
├── POWER.md # Power documentation
├── mcp.json # MCP server configuration
├── codex.png # Power icon
└── steering/ # Steering files
└── usage-rules.md
- Clone this repository
- Open Kiro IDE → Powers panel
- Click "Import from folder"
- Select the
kirosubdirectory (not the root directory)
-
Install Codex CLI:
npm install -g @openai/codex
-
Configure OpenAI API Key (choose one method):
Method A: Environment variable (recommended)
export OPENAI_API_KEY="your-api-key"
Method B: Codex config file
codex config set api-key your-api-key
If your Codex CLI uses environment variables for API key, you need to pass them in the MCP configuration.
After installing this power, modify your ~/.kiro/settings/mcp.json to include the env section:
{
"powers": {
"mcpServers": {
"power-codex-codex": {
"command": "codex",
"args": ["mcp-server"],
"env": {
"OPENAI_API_KEY": "${OPENAI_API_KEY}"
}
}
}
}
}This ensures the OPENAI_API_KEY environment variable is passed to the Codex MCP server.
Once installed, mention keywords like "codex", "coding", "agent" in your chat to activate this power.
| Parameter | Description |
|---|---|
cwd |
Absolute path to current workspace (required) |
sandbox |
read-only for analysis, danger-full-access for modifications (required) |
prompt |
Task description (required) |
MIT