Title: How to Add Features to a Python Project With Codex CLI – Real Python
Open Graph Title: How to Add Features to a Python Project With Codex CLI – Real Python
Description: Learn how to use Codex CLI to add features to Python projects via the terminal. Master AI-powered coding without needing a browser or IDE plugins.
Open Graph Description: Learn how to use Codex CLI to add features to Python projects via the terminal. Master AI-powered coding without needing a browser or IDE plugins.
Mail addresses
?subject=Python article for you&body=How to Add Features to a Python Project With Codex CLI on Real Python
https://realpython.com/codex-cli/
Opengraph URL: https://realpython.com/codex-cli/
X: @realpython
Domain: realpython.com
{
"@context": "http://schema.org",
"@type": "Article",
"headline": "How to Add Features to a Python Project With Codex CLI",
"image": {
"@type": "ImageObject",
"url": "https://files.realpython.com/media/How-to-Use-Codex-CLI-for-AI-Assisted-Coding-in-Your-Terminal_Watermarked.43b0a00264fa.jpg",
"width": 1920,
"height": 1080
},
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://realpython.com/codex-cli/",
"lastReviewed": "2026-07-03",
"author": {
"@type": "Person",
"name": "Rodrigo Gir\u00e3o Serr\u00e3o",
"image": "https://realpython.com/cdn-cgi/image/width=1024,height=1024,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/rodrigo_1024.01d3cbf06835.webp",
"url": "https://realpython.com/team/rgiraoserrao/",
"affiliation": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
}
},
"reviewedBy": [
{
"@type": "Person",
"name": "Aldren Santos",
"image": "https://realpython.com/cdn-cgi/image/width=500,height=500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Aldren_Santos_Real_Python.6b0861d8b841.png",
"url": "https://realpython.com/team/asantos/",
"affiliation": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
}
},
{
"@type": "Person",
"name": "Brenda Weleschuk",
"image": "https://realpython.com/cdn-cgi/image/width=320,height=320,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/IMG_3324_1.50b309355fc1.jpg",
"url": "https://realpython.com/team/bweleschuk/",
"affiliation": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
}
},
{
"@type": "Person",
"name": "Leodanis Pozo Ramos",
"image": "https://realpython.com/cdn-cgi/image/width=862,height=862,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Perfil_final1.9f896bc212f6.jpg",
"url": "https://realpython.com/team/lpozoramos/",
"affiliation": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
}
},
{
"@type": "Person",
"name": "Philipp Acsany",
"image": "https://realpython.com/cdn-cgi/image/width=1920,height=1920,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/pacsany.19bcf16f5a00.jpg",
"url": "https://realpython.com/team/pacsany/",
"affiliation": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
}
}
]
},
"datePublished": "2026-04-13T14:00:00+00:00",
"dateModified": "2026-07-03T10:15:20.359082+00:00",
"publisher": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": {
"@type": "ImageObject",
"url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
"width": 512,
"height": 512
},
"description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
"slogan": "Become a Python Expert",
"email": "info@realpython.com",
"sameAs": [
"https://github.com/realpython",
"https://www.youtube.com/realpython",
"https://twitter.com/realpython",
"https://x.com/realpython",
"https://www.linkedin.com/company/realpython-com/",
"https://www.facebook.com/learnrealpython",
"https://www.instagram.com/realpython",
"https://www.tiktok.com/@realpython.com"
]
},
"author": {
"@type": "Person",
"name": "Rodrigo Gir\u00e3o Serr\u00e3o",
"image": "https://realpython.com/cdn-cgi/image/width=1024,height=1024,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/rodrigo_1024.01d3cbf06835.webp",
"url": "https://realpython.com/team/rgiraoserrao/",
"affiliation": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
}
},
"description": "Learn how to use Codex CLI to add features to Python projects via the terminal. Master AI-powered coding without needing a browser or IDE plugins.",
"hasPart": {
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is Codex CLI?",
"acceptedAnswer": {
"@type": "Answer",
"text": "\u003cp\u003eCodex CLI is a command-line tool developed by OpenAI that you can run locally from your terminal, giving you access to a coding \u003ca href=\"/ref/ai-coding-glossary/agent/\" class=\"ref-link\"\u003eagent\u003c/a\u003e that can read, change, and run code on your machine in the selected directory.\u003c/p\u003e"
}
},
{
"@type": "Question",
"name": "Is Codex CLI free?",
"acceptedAnswer": {
"@type": "Answer",
"text": "\u003cp\u003eIn general, no. Codex CLI requires a ChatGPT account on a paid tier \u003cem\u003eor\u003c/em\u003e a valid API key with credits.\u003c/p\u003e"
}
},
{
"@type": "Question",
"name": "How is Codex CLI different from ChatGPT in the browser?",
"acceptedAnswer": {
"@type": "Answer",
"text": "\u003cp\u003eSince it runs locally, Codex CLI can access your project files directly to read and edit them. Codex CLI can also run your code or project tests, create new files, and more. ChatGPT lives in the browser, so it can only access the files you upload explicitly. Conversely, since Codex CLI runs locally, you need to be more careful about what it accesses and modifies to prevent prompt injection attacks.\u003c/p\u003e"
}
}
]
}
}
| author | Real Python |
| theme-color | #18354c |
| color-scheme | light dark |
| twitter:card | summary_large_image |
| twitter:image | https://files.realpython.com/media/How-to-Use-Codex-CLI-for-AI-Assisted-Coding-in-Your-Terminal_Watermarked.43b0a00264fa.jpg |
| og:image | https://files.realpython.com/media/How-to-Use-Codex-CLI-for-AI-Assisted-Coding-in-Your-Terminal_Watermarked.43b0a00264fa.jpg |
| twitter:creator | @realpython |
| og:type | article |
| og:site_name | Real Python |
| apple-mobile-web-app-title | Real Python |
Links:
Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover
Robots: max-image-preview:large