codex-cli-setup
Skill0 starsChanged 5 months agoMITView on GitHub
OpenAI Codex CLIをインストールし認証して、Claudeのbashツールや自動化スクリプトからノンインタラクティブで呼び出せるようにするときに使う
- Reads credentials
- Installs packages
In this repository99 other files it gives its agents.
- agents-tools-quoted-jsonSkill
- asc-api-app-store-submitSkill
- asd-ste100Skill
- automation-bool-selector-pitfallsSkill
- automation-stale-cooldown-flagSkill
- autonomous-build-verifySkill
- book-to-skillSkill
- ccusage-cli-cost-trackingSkill
- chrome-ext-mv3-programmatic-injectSkill
- chrome-ext-store-assetsSkill
- claude-headless-p-invocationSkill
- claude-plugin-context-auditSkill
- claude-session-log-to-kbSkill
- cloudflare-workers-do-deploySkill
- codebase-to-courseSkill
- codesign-keychain-prompt-fixSkill
- codex-delegation-handoffSkill
- content-factory-grounding-dedupSkill
- conversation-log-append-patternSkill
- cron-to-launchd-macosSkill
- cross-automation-shared-resource-killSkill
- design-token-migration-rnSkill
- discord-bot-image-to-claudeSkill
- discord-gateway-resume-dedupSkill
- excel-filtered-url-http-auditSkill
- execution-budget-vs-capsSkill
- expo-free-local-ios-testflightSkill
- ga4-connect-projectsSkill
- gcal-oauth-desktop-setupSkill
- git-commit-helperSkill
- git-prepush-secret-remote-checkSkill
- gsc-cli-automationSkill
- hatena-blogsync-autopostSkill
- hook-latency-wrapSkill
- hook-log-append-patternSkill
- html-to-pdf-slide-deckSkill
- humanizerSkill
- human-review-gate-shellSkill
- implementation-model-routingSkill
- insights-to-claude-mdSkill
- ios-permission-key-security-matrixSkill
- ios-sim-store-screenshotsSkill
- launchd-exit78-exconfig-debugSkill
- llm-content-pipeline-quality-gateSkill
- local-ai-video-pipelineSkill
- local-flux-mflux-image-genSkill
- local-llm-slow-diagnosisSkill
- local-music-generationSkill
- lottie-skottie-authoring-pitfallsSkill
- machine-wide-api-ratelimit-latchSkill
- macos-hook-path-timeoutSkill
- md-to-docx-reportSkill
- memory-md-inject-bloat-auditSkill
- message-display-secrets-maskSkill
- metric-source-attributionSkill
- migrate-icloud-desktop-assetsSkill
- nextauth-local-e2e-sessionSkill
- nextjs-rsc-payload-slimSkill
- nothing-designSkill
- openclaw-ollama-setupSkill
- The first 60 shown.
The file
Files
SKILL.md
Procedure
- インストール
npm i -g @openai/codex
# または
npm install -g @openai/codexインストール後、バイナリが通っているか確認:
codex --version
# 例: 0.133.0- 認証
codex login
# ブラウザが開いてOpenAIアカウントでサインインするよう求められる
# ブラウザ認証が完了するとCLIがトークンを自動保存するAPI keyを直接指定する場合(非インタラクティブ環境向け):
export OPENAI_API_KEY="sk-..."
codex --api-key "$OPENAI_API_KEY" exec "プロンプト"- ノンインタラクティブ実行
# Gitリポジトリ外での実行(--skip-git-repo-checkが必要)
codex exec --skip-git-repo-check "タスクの説明をここに書く"
# モデルを指定する場合
codex exec --model gpt-4o --skip-git-repo-check "プロンプト"
# 出力をファイルに保存
codex exec --skip-git-repo-check "プロンプト" > output.txt- ClaudeのBashツールからの呼び出し
Claudeセッション内では以下のように利用可能:
# Claude Codeの ! プレフィックスまたはBashツールから
codex exec --skip-git-repo-check "このコードのバグを見つけて修正案を提示して"Pitfalls
--skip-git-repo-checkはGitリポジトリ外(tmp, home直下等)で実行する際に必須。付けないとエラーになる- インタラクティブ認証不要: APIキーを環境変数で渡すほうが自動化に向いている。
codex loginはブラウザを開くため、SSH環境や自動スクリプトでは使えない - PATHが通らない場合:
npm i -gのグローバルパスがPATHに含まれていないことがある。npm bin -gでパスを確認して.zshrc/.bashrcに追加する - 既存のcodex設定が残っている場合:
~/.codex/にキャッシュが残っていても、バイナリがPATHにないと動かない。インストールが必要
Verification
# バージョン確認(バイナリの存在確認)
codex --version
# 簡単なタスクで動作確認
codex exec --skip-git-repo-check "Hello と出力するPythonスクリプトを1行で書いて"
# → print('Hello') のような出力が返ればOKDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

