Codex入门指南
How to get started with Codex
Codex作为AI编程助手,提供从环境配置到实际操作的完整入门指引。文章通过逐步指导,详细说明如何设置项目、创建线程并完成首个任务。内容包括基础工作流搭建、关键功能操作方式以及常见任务的执行步骤,帮助开发者快速掌握利用Codex辅助编程的核心方法。
Tips to set up Codex, create your first project, and start completing real tasks.
Download Codex
Start by downloading the Codex desktop app and signing in with your ChatGPT account.
Once you open Codex, create your first thread. A thread is like a chat in ChatGPT: a space where you go back and forth with Codex to accomplish a task.
Codex keeps your projects and conversation history in the left sidebar, while the main workspace shows your current thread and the chat where you collaborate with Codex.
You can create a standalone thread, but most of the time you’ll want to work inside a project. A project is connected to a folder on your computer:
Tip: To keep things simple, create a folder on your computer named Codex. Inside that Codex folder, you can have a separate folder for each project.
If you want Codex to work with specific files for a project, just drag them into the folder. If not, you can leave the folder empty and use it as the place where Codex creates new files for that project.
Pick a first task that is simple and useful. For example, you might ask Codex to organize notes, clean up a small dataset, or compare two drafts of a document.
Start with the default recommended Codex model, and increase reasoning for harder tasks.
If you’re working in a project, you may see the term “Work locally” below the input box. This means “Codex can only work in that folder I designated, using the tools that I choose.” You’ll also see a dropdown menu asking whether you want to change permissions. We recommend sticking with Default permissions in a local environment when you’re getting started with Codex. Codex does not automatically get access to everything on your computer.
Full permissions give Codex more room to act, which can be helpful for advanced tasks, but you should only use them when you understand what Codex is doing and you’ve checked with an admin.
A good first prompt is:
Try it
Inspect this folder and tell me what you see. Then suggest one small task you can complete safely. Wait for my approval before making changes.
As you get more comfortable, you can give Codex bigger tasks. Start small, review what it does, and build trust one task at a time.
Continue learning with OpenAI Academy
Discover additional guides and resources to help you build practical AI skills.
View all topicsExplore Codex for work
来源:OpenAI:官网动态 · openai.com