OpenAI Codex CLI 工具培训课程的幻灯片和练习题
概览
这是一个关于在 CLI、应用、IDE 扩展和云工作流程中使用 OpenAI Codex 的实践培训课程。 这场5小时的实践工作坊涵盖安装、认证、安全代理工作流程、配置、MCP服务器、技能、云任务以及实践开发实验室。 - 🚀 : CLI、应用、IDE、ChatGPT 登录和 API 密钥认证 - 🛡️ : 沙箱模式、审批策略、可信项目和审核 - 🎯 : AGENTS.md 指导、自定义提示、配置文件和会话恢复 - ⚡ : 可重复使用的工作流程包,包含脚本、参考和资源 - 🔧 : MCP 集成、Codex 云、本地开源软件模型和 CI/CD 工作流程 - 💻 : Java、Python 和 TypeScript 的实际练习 - 命令行经验 - 至少掌握一门语言的基础编程知识 - Git 熟悉度 - Docker (用于高级练习) 在进入大型实验室之前,先了解当前的Codex交互模型:- 在编辑前请Codex提出计划 - 引导一个在运行中的任务并发送后续消息-...
概述(AI 翻译)
这是一个关于在 CLI、应用、IDE 扩展和云工作流程中使用 OpenAI Codex 的实践培训课程。
课程概述
这场5小时的实践工作坊涵盖安装、认证、安全代理工作流程、配置、MCP服务器、技能、云任务以及实践开发实验室。
你将学到什么
- 🚀 安装与设置:CLI、应用、IDE、ChatGPT 登录和 API 密钥认证
- 🛡️ 安全与保障:沙盒模式、审批政策、可信项目及评测
- 🎯 核心功能:AGENTS.md 指导、自定义提示、配置文件和会话恢复
- ⚡ 代理技能:可重用的工作流捆绑包,包含脚本、引用和资源
- 🔧 高级功能:MCP集成、Codex Cloud、本地OSS模型和CI/CD工作流程
- 💻 实用技能:Java、Python和TypeScript的实际练习
先修条件
- 命令行体验
- 至少掌握一种语言的基础编程知识
- Git 熟悉度
- Docker(用于高级练习)
仓库结构
快速启动
1.安装法典
2.认证
3.执行你的第一个指令
4.开始培训
在线幻灯片
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
OpenAI Codex Training
A hands-on training course for using OpenAI Codex across the CLI, app, IDE extensions, and cloud workflows.
Course Overview
This 5-hour hands-on workshop covers installation, authentication, safe agent workflows, configuration, MCP servers, skills, cloud tasks, and practical development labs.
What You’ll Learn
- 🚀 Installation & Setup: CLI, app, IDE, ChatGPT login, and API-key authentication
- 🛡️ Safety & Security: Sandbox modes, approval policies, trusted projects, and reviews
- 🎯 Core Features: AGENTS.md guidance, custom prompts, profiles, and session resumption
- ⚡ Agent Skills: Reusable workflow bundles with scripts, references, and assets
- 🔧 Advanced Capabilities: MCP integration, Codex Cloud, local OSS models, and CI/CD workflows
- 💻 Practical Skills: Real-world exercises in Java, Python, and TypeScript
Prerequisites
- Command-line experience
- Basic programming knowledge in at least one language
- Git familiarity
- Docker (for advanced exercises)
Repository Structure
codex-training/
├── slides.md # Slidev presentation (160+ slides)
├── exercises/ # Hands-on labs with starter code
│ ├── plan-mode-warmup/ # Lab 0: Plan mode and steering warm-up
│ ├── java-spring-boot/ # Lab 1: Spring Boot REST API
│ ├── python-refactoring/ # Lab 2: Legacy code refactoring
│ ├── react-forms/ # Lab 3: React TypeScript forms
│ ├── microservices/ # Lab 4: Multi-language microservices
│ ├── skills-creation/ # Lab 5: Create custom Codex skills
│ └── mcp-context7/ # Lab 6: Connect current docs through MCP
├── config-examples/ # Sample configurations
│ ├── basic-config.toml # Minimal setup for beginners
│ └── advanced-config.toml # Full features with MCP, profiles
├── prompts/ # Custom prompt templates
│ └── *.md # security-audit, test-gen, etc.
├── docs/ # Reference documentation
│ ├── TROUBLESHOOTING.md # Common issues and solutions
│ └── MODEL-SELECTION.md # Cost/performance guide
├── .github/workflows/ # CI/CD examples
│ └── codex-review.yml # Automated PR review with Codex
└── exports/ # Slide exports (PDF)
Quick Start
1. Install Codex
# Official install script (macOS/Linux)
curl -fsSL https://chatgpt.com/codex/install.sh | sh
# Via npm
npm install -g @openai/codex
# Via Homebrew (macOS/Linux)
brew install --cask codex
# Verify installation
codex --version
2. Authenticate
# ChatGPT account (recommended)
codex login
# Or store an API key with Codex
printenv OPENAI_API_KEY | codex login --with-api-key
3. Run Your First Command
codex "Create a hello world function in Python"
4. Start the Training
# Clone this repository
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add kousen/codex-training