Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

codex-cli-execCodex CLI exec 搜索

Agent Skill

codex-cli-exec 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,128

周安装

133

GitHub Stars

公开资料未说明

下载量

1,096
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:codex-cli-exec(Codex CLI exec 搜索)
来源仓库:https://github.com/minchocoin/codex-cli-exec
安装命令:
openclaw skills install codex-cli-exec
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install codex-cli-exec

简介

codex-cli-exec 用于解释如何在 OpenClaw 中使用 Codex CLI。

  • 提供非交互式编码引擎的配置说明。codex-cli-exec 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过 clawhub 安装,需确认是否会读取本地配置文件。
  • 适合需要记录安装步骤或解答技术问题的场景。
  • 建议结合官方文档验证配置正确性。

SKILL.md

name
codex-cli-exec
description
Explain how Openclaw should use Codex CLI as a non-interactive coding engine. Use when Codex needs to document or answer questions about installing Codex CLI, authenticating, configuring approvals and sandboxing, preparing a workspace, handling non-git folders and auth failures, and running Openclaw tasks through codex exec.

Openclaw Codex CLI

Overview

Use this skill to give short, practical instructions for codex-cli in Openclaw contexts. Keep answers concise and command-focused. For Openclaw integrations, prefer codex exec because Openclaw should call Codex non-interactively rather than trying to type into the interactive TUI.

Core Commands

Use these as the default examples:

npm install -g @openai/codex
codex --version
codex login
codex login --device-auth
codex exec "<prompt>"

Mention codex "<prompt>" only when the user explicitly wants a human-driven interactive session.

Install and Update

When asked about installation or update:

  • Install with npm install -g @openai/codex.
  • Check the version with codex --version.
  • Update with the same package manager used for installation.
  • If codex is not found, tell the user to check PATH and restart the terminal.

Login

When asked about login:

  • Use codex login for the standard login flow.
  • Use codex login --device-auth when device authentication is preferred.
  • If needed, API key auth can be used with OPENAI_API_KEY.
  • The user must complete the sign-in flow.
  • If login succeeds and codex works normally, the user does not need to log in again on every launch.
  • Log in again only if the session expires, credentials are cleared, or the CLI asks for authentication.

Examples:

codex login
codex login --device-auth
printenv OPENAI_API_KEY | codex login --with-api-key
codex login status

Authentication Errors

If codex exec returns 401 unauthorized or 500 internal server error, tell the user to reset authentication and log in again.

Use this recovery flow:

codex logout
codex login --device-auth

After login, run the codex exec command again.

Openclaw Integration Style

Use this distinction clearly:

  • Preferred for Openclaw integration: codex exec "<prompt>"
  • Interactive only when a human wants to work directly in the Codex UI: codex "<prompt>"

For Openclaw, prefer codex exec because the default Codex CLI interface is interactive and not ideal for another tool to control by typing into the chat window.

Use codex exec when Openclaw needs to send a task programmatically as a one-off run.

Workspace Folder

Recommend creating a dedicated workspace folder for each Openclaw task or project.

Use this guidance:

  • Run Codex inside a dedicated workspace directory.
  • Keep project files, generated files, and temporary outputs inside that workspace.
  • Prefer workspace-write style execution in that workspace.
  • If the workspace is not a git repository, add --skip-git-repo-check.
  • Use --cd to point Codex at the intended working directory.
  • Use --add-dir when Openclaw must allow writes in additional directories.

This makes file scope clearer and reduces the risk of changing unrelated files.

Examples:

codex exec --cd /path/to/workspace "<prompt>"
codex exec --cd /path/to/app --add-dir /path/to/shared "<prompt>"

Git Repository Check

If the target directory is not a git repository, mention --skip-git-repo-check.

Use this when Openclaw needs to run Codex in a folder that does not contain a .git directory.

Example:

codex exec --skip-git-repo-check "<prompt>"

Trust and Approvals

Explain these briefly:

  • Trust this folder: use for a known safe Openclaw workspace.
  • Allow once: use when the user wants one-time approval.
  • Always allow: use only for safe, repeatable command patterns.

Preferred guidance:

  • Trust only known folders.
  • Prefer Allow once when unsure.
  • Use Always allow carefully.

Approval and Sandbox Options

Mention these options when the user asks how Codex should run commands:

  • -a, --ask-for-approval: controls when Codex asks for approval before running commands.
  • -s, --sandbox: controls how restricted command execution is.
  • --full-auto: convenience mode for lower-friction automatic execution.
  • --skip-git-repo-check: skips the git repository check when the folder is not tracked by git.

Use this practical guidance:

  • For Openclaw, prefer safer settings first.
  • Use -a on-request when approvals should be requested as needed.
  • Use -a never only when the environment is already controlled and non-interactive execution is intended.
  • Use -s workspace-write as the normal default when Codex needs to edit files in the workspace.
  • --full-auto is a shortcut for a lower-friction setup and is useful when the user wants more automation with workspace-limited writes.
  • Add --skip-git-repo-check when the working folder is not a git repository.
  • Avoid --dangerously-bypass-approvals-and-sandbox.
  • Avoid --sandbox danger-full-access unless the user explicitly wants that risk.

Examples:

codex exec -a on-request -s workspace-write "<prompt>"
codex exec --full-auto "<prompt>"
codex exec --skip-git-repo-check "<prompt>"

Useful Exec Options

Mention these when relevant:

  • --json: use when Openclaw needs machine-readable output.
  • -i, --image: attach image inputs for UI or design tasks.
  • -m, --model: override the model when the user specifies one.
  • --search: enable web search when current information is needed.

Examples:

codex exec --json "<prompt>"
codex exec -i screenshot.png "Match this UI design."
codex exec -m gpt-5.4 "<prompt>"

Prompt Examples

Use short examples like these:

codex exec "Add a README section for local development."
codex exec "Implement a login retry feature with exponential backoff in the Openclaw client."
codex exec "Write a Python script that reads a CSV file and outputs a JSON summary by category."
codex exec "Modify the file upload endpoint to reject files larger than 10 MB and add a test for it."
codex exec --json "List all API endpoints in this workspace."

If the user explicitly wants an interactive chat, use:

codex "<prompt>"

Prompting Rule

Prefer prompts that include:

  • The exact outcome
  • The target file or component when known
  • Important constraints
  • Optional verification requests

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.57%
按下载量换算1,015

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills