Skip to content

ykswang/codex-powers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

OpenAI Codex CLI Power for Kiro

A Kiro Power that enables AI agents to execute complex coding tasks using OpenAI Codex CLI as an MCP server.

Features

  • Execute coding tasks through Codex agent
  • File operations (create, edit, move, delete)
  • Shell command execution
  • Multi-turn conversations with conversation ID

Directory Structure

.
├── 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

Installation

From Local Folder (Recommended)

  1. Clone this repository
  2. Open Kiro IDE → Powers panel
  3. Click "Import from folder"
  4. Select the kiro subdirectory (not the root directory)

Prerequisites

  1. Install Codex CLI:

    npm install -g @openai/codex
  2. 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

Environment Variable Configuration

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.

Usage

Once installed, mention keywords like "codex", "coding", "agent" in your chat to activate this power.

Required Parameters

Parameter Description
cwd Absolute path to current workspace (required)
sandbox read-only for analysis, danger-full-access for modifications (required)
prompt Task description (required)

License

MIT

About

kiro power plugin :use codex cli

Resources

Stars

Watchers

Forks

Packages

No packages published