{"version":1,"type":"comparison","editorialAuthor":"AppDuo Editorial Team","slug":"openai-codex-vs-claude-code","pages":{"vi":"https://app-duo.com/compare/openai-codex-vs-claude-code","en":"https://app-duo.com/en/compare/openai-codex-vs-claude-code"},"data":"https://app-duo.com/data/comparisons/openai-codex-vs-claude-code.json","apps":[{"slug":"openai-codex","name":"OpenAI Codex","data":"https://app-duo.com/data/apps/openai-codex.json"},{"slug":"claude-code","name":"Claude Code","data":"https://app-duo.com/data/apps/claude-code.json"}],"lastVerifiedAt":"2026-11-11","firstPublishedAt":"2026-11-11","aiAssisted":true,"title":{"vi":"OpenAI Codex và Claude Code: chọn coding agent theo quy trình và tài khoản?","en":"OpenAI Codex vs Claude Code: choosing a coding agent around workflow and account?"},"summary":{"vi":"OpenAI Codex và Claude Code: chọn coding agent theo quy trình và tài khoản.\n\nOpenAI Codex: Người đang trả gói ChatGPT Plus hoặc Pro và muốn thêm agent lập trình mà không mua dịch vụ riêng.\n\nClaude Code: Lập trình viên quen terminal, muốn agent tự đọc, sửa code và chạy lệnh trong dự án.\n\nChọn theo tác vụ chính, thiết bị đang dùng và giới hạn gói; điểm tổng không thay thế được yêu cầu của bạn.","en":"OpenAI Codex vs Claude Code: choosing a coding agent around workflow and account.\n\nOpenAI Codex: ChatGPT Plus or Pro subscribers who want a coding agent without buying a separate service.\n\nClaude Code: Terminal-comfortable developers who want an agent to read, edit and run commands in their project.\n\nChoose for your main task, existing devices and plan limits; the overall score cannot replace your requirements."},"overallWinner":"depends","rows":[{"criterion":{"vi":"Gói miễn phí","en":"Free plan"},"openai-codex":{"vi":"Có gói Free: GPT-6 Luna tốc độ Standard trong ứng dụng desktop, tùy đợt triển khai; không công bố giới hạn cụ thể.","en":"Free plan: GPT-6 Luna at Standard speed in the desktop app, subject to rollout; no numeric limit published."},"claude-code":{"vi":"Gói Free của Claude không bao gồm Claude Code; chỉ dùng qua tài khoản Console (API) tính theo giá API.","en":"Claude's Free plan excludes Claude Code; only available via a Console (API) account at API prices."},"edge":"openai-codex","why":{"vi":"Ai muốn thử agent lập trình mà chưa trả tiền chỉ có thể bắt đầu miễn phí với Codex.","en":"If you want to try a coding agent without paying, only Codex lets you start for free."},"sources":["https://learn.chatgpt.com/docs/pricing","https://claude.com/pricing"]},{"criterion":{"vi":"Gói trả phí rẻ nhất","en":"Cheapest paid plan"},"openai-codex":{"vi":"Go 8 USD/tháng (giá USD trên trang giá của OpenAI, chưa có giá VND), nhưng chỉ có cùng GPT-6 Luna trong app desktop như Free; Plus 522.500 ₫/tháng mới có CLI, IDE, web.","en":"Go at 8 USD/month, but only the same GPT-6 Luna in the desktop app as Free; Plus at 20 USD/month adds CLI, IDE, web."},"claude-code":{"vi":"Pro 20 USD/tháng, hoặc 17 USD/tháng khi trả theo năm (200 USD trả trước), đã gồm Claude Code.","en":"Pro at 20 USD/month, or 17 USD/month billed annually (200 USD up front), includes Claude Code."},"edge":"claude-code","why":{"vi":"Theo giá USD (Codex Plus 20 USD, Claude Pro 17 USD/tháng khi trả theo năm), với đầy đủ CLI và tích hợp IDE, Claude Code rẻ hơn một chút nếu bạn chấp nhận trả theo năm, còn Codex Go chỉ hợp để dùng thử nhẹ.","en":"For full CLI and IDE access, Claude Code is slightly cheaper if you pay annually, while Codex Go only suits light use."},"sources":["https://learn.chatgpt.com/docs/pricing","https://claude.com/pricing"]},{"criterion":{"vi":"Gói dùng nhiều (cá nhân)","en":"Heavy-use individual tiers"},"openai-codex":{"vi":"Pro từ 2.849.000 ₫/tháng (hai mức cao hơn là 200 và 500 USD); hiện không giới hạn 5 giờ; Ultrafast ở mức 500 USD.","en":"Pro from 100 USD/month (100, 200 or 500 USD tiers); currently no five-hour limit; Ultrafast on the 500 USD tier."},"claude-code":{"vi":"Max 100 USD/tháng (gấp 5 lần Pro, kèm 100 USD tín dụng API); Ultra 200 USD/tháng (không giới hạn 5 giờ, tuần gấp 10 lần Pro, kèm 200 USD tín dụng API).","en":"Max 100 USD/month (5x Pro, plus 100 USD API credits); Ultra 200 USD/month (no 5-hour limit, 10x Pro weekly, plus 200 USD API credits)."},"edge":"tie","why":{"vi":"Người dùng nặng cần cân nhắc: Codex Pro bỏ giới hạn 5 giờ ngay từ bậc thấp nhất (2.849.000 ₫/tháng), còn Claude Code kèm tín dụng API nhưng phải lên 200 USD mới bỏ giới hạn 5 giờ.","en":"Heavy users face a trade-off: Codex Pro drops the 5-hour cap from 100 USD, while Claude Code bundles API credits but needs 200 USD to drop it."},"sources":["https://learn.chatgpt.com/docs/pricing","https://claude.com/pricing"]},{"criterion":{"vi":"Cách tính giới hạn sử dụng","en":"How usage limits work"},"openai-codex":{"vi":"Ước tính 15–160 tin nhắn cục bộ mỗi 5 giờ với GPT-6.1 Sol trên Plus; có thể có giới hạn tuần; mua thêm bằng ChatGPT credits.","en":"Estimated 15–160 local messages per 5 hours with GPT-6.1 Sol on Plus; possible weekly caps; extra usage via ChatGPT credits."},"claude-code":{"vi":"Giới hạn đặt lại mỗi 5 giờ và mỗi tuần; giới hạn tuần cho Pro và Max áp dụng từ 28/8/2025.","en":"Limits reset every 5 hours and every week; weekly limits for Pro and Max took effect on 28 August 2025."},"edge":"tie","why":{"vi":"Cả hai đều không cho con số cố định, nên ai cần dự toán chi phí chính xác sẽ gặp khó với cả hai.","en":"Neither gives a fixed request count, so anyone needing predictable usage will find both hard to budget."},"sources":["https://learn.chatgpt.com/docs/pricing","https://claude.com/pricing","https://techcrunch.com/2025/07/28/anthropic-unveils-new-rate-limits-to-curb-claude-code-power-users/"]},{"criterion":{"vi":"Mã nguồn mở","en":"Open source"},"openai-codex":{"vi":"CLI mã nguồn mở Apache-2.0, cài qua npm, Homebrew hoặc script; kho GitHub khoảng 134.700 sao.","en":"Apache-2.0 open-source CLI, installable via npm, Homebrew or script; GitHub repo with about 134,700 stars."},"claude-code":{"vi":"Có kho GitHub công khai để báo lỗi; AppDuo chưa tìm thấy thông tin công khai về giấy phép mã nguồn mở.","en":"Public GitHub issue tracker; AppDuo found no public information on an open-source license."},"edge":"openai-codex","why":{"vi":"Lập trình viên muốn đọc, kiểm tra hoặc tự sửa công cụ sẽ có lợi hơn với CLI mở của Codex.","en":"Developers who want to inspect or modify the tool benefit from Codex's open CLI."},"sources":["https://github.com/openai/codex","https://github.com/anthropics/claude-code"]},{"criterion":{"vi":"Tích hợp IDE, CI và đám mây","en":"IDE, CI and cloud integrations"},"openai-codex":{"vi":"GitHub (review code tự động), Slack, tiện ích VS Code và IDE khác, plugin.","en":"GitHub (automatic code review), Slack, VS Code and other IDE extension, plugins."},"claude-code":{"vi":"VS Code, Cursor, JetBrains, GitHub Actions, GitLab CI/CD, Slack, MCP, Chrome, Amazon Bedrock, Google Cloud, Microsoft Foundry.","en":"VS Code, Cursor, JetBrains, GitHub Actions, GitLab CI/CD, Slack, MCP, Chrome, Amazon Bedrock, Google Cloud, Microsoft Foundry."},"edge":"claude-code","why":{"vi":"Nhóm dùng GitLab, JetBrains hoặc muốn chạy qua nhà cung cấp đám mây lớn sẽ có nhiều lựa chọn hơn với Claude Code.","en":"Teams on GitLab, JetBrains or a major cloud provider get more options with Claude Code."},"sources":["https://openai.com/codex","https://code.claude.com/docs/en/overview"]},{"criterion":{"vi":"Dữ liệu dùng để huấn luyện (gói cá nhân)","en":"Training on data (individual plans)"},"openai-codex":{"vi":"Mặc định có thể dùng để huấn luyện, phải tự tắt; cài đặt Include environments riêng; phản hồi có thể gửi cả hội thoại.","en":"May be used for training by default, must opt out; separate Include environments setting; feedback can send whole conversations."},"claude-code":{"vi":"Chỉ huấn luyện khi bật cài đặt; lưu 5 năm nếu bật, 30 ngày nếu tắt; bản ghi /feedback lưu 5 năm.","en":"Trains only when the setting is on; kept 5 years if on, 30 days if off; /feedback transcripts kept 5 years."},"edge":"claude-code","why":{"vi":"Người dùng cá nhân lo ngại về mã nguồn sẽ dễ kiểm soát hơn với Claude Code vì thời hạn lưu được công bố rõ.","en":"Individuals wary about their code get clearer control with Claude Code, which publishes its retention periods."},"sources":["https://help.openai.com/en/articles/5722486-how-your-data-is-used-to-improve-model-performance","https://code.claude.com/docs/en/data-usage"]},{"criterion":{"vi":"Gói doanh nghiệp và kiểm soát dữ liệu","en":"Business plans and data controls"},"openai-codex":{"vi":"Business 519.000 ₫/người/tháng theo năm, 25 USD theo tháng; SAML SSO, MFA; Enterprise thêm SCIM, EKM, kiểm soát lưu trữ và vị trí dữ liệu.","en":"Business 20 USD/user/month annually, 25 USD monthly; SAML SSO, MFA; Enterprise adds SCIM, EKM, retention and residency controls."},"claude-code":{"vi":"Team 20 USD/ghế/tháng theo năm, 25 USD theo tháng, đến 500 USD tín dụng API chung; Enterprise có ZDR cho tài khoản đủ điều kiện.","en":"Team 20 USD/seat/month annually, 25 USD monthly, up to 500 USD pooled API credits; Enterprise offers ZDR for qualifying accounts."},"edge":"tie","why":{"vi":"Theo giá USD, giá theo ghế ngang nhau (20 USD/tháng trả theo năm, 25 USD trả theo tháng) và cả hai không huấn luyện trên dữ liệu doanh nghiệp theo mặc định, nên nhóm nên chọn theo công cụ quản trị cần thiết.","en":"Seat prices match and neither trains on business data by default, so teams should decide on the admin features they need."},"sources":["https://learn.chatgpt.com/docs/pricing","https://claude.com/pricing","https://code.claude.com/docs/en/data-usage"]},{"criterion":{"vi":"Đánh giá người dùng","en":"User ratings"},"openai-codex":{"vi":"Ứng dụng ChatGPT (chứa Codex) trên App Store Mỹ: 4.8/5 từ 12.000.000 lượt; không riêng cho Codex.","en":"ChatGPT app (hosting Codex) on US App Store: 4.8/5 from 12,000,000 ratings; not Codex-specific."},"claude-code":{"vi":"Tiện ích VS Code 3.7/5 (851 lượt); plugin JetBrains beta 2.3/5 (483 lượt).","en":"VS Code extension 3.7/5 (851 ratings); beta JetBrains plugin 2.3/5 (483 ratings)."},"edge":"tie","why":{"vi":"Điểm của Codex phản ánh cả ứng dụng ChatGPT nên không so trực tiếp được; điểm thấp của plugin JetBrains đáng lưu ý cho người dùng JetBrains.","en":"Codex's score covers the whole ChatGPT app so it isn't directly comparable; JetBrains users should note the plugin's low rating."},"sources":["https://apps.apple.com/us/app/chatgpt/id6448311069","https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code","https://plugins.jetbrains.com/plugin/27310-claude-code-beta-"]}],"chooseIf":{"openai-codex":{"vi":["Người đang trả gói ChatGPT Plus hoặc Pro và muốn thêm agent lập trình mà không mua dịch vụ riêng","Lập trình viên thích làm việc trong terminal và muốn công cụ mã nguồn mở, có sandbox mặc định","Nhóm cần agent chạy trên cloud, tự duyệt pull request và có SSO, quản trị tập trung"],"en":["ChatGPT Plus or Pro subscribers who want a coding agent without buying a separate service","Terminal-oriented developers who want an open-source tool with a default sandbox","Teams that want cloud agents, automatic pull request review, SSO and central admin"]},"claude-code":{"vi":["Lập trình viên quen terminal, muốn agent tự đọc, sửa code và chạy lệnh trong dự án","Nhóm muốn tự động rà soát pull request và xử lý issue qua GitHub Actions, GitLab CI/CD hoặc Slack","Doanh nghiệp cần điều khoản dữ liệu thương mại và muốn chạy qua Amazon Bedrock, Google Cloud hoặc Microsoft Foundry"],"en":["Terminal-comfortable developers who want an agent to read, edit and run commands in their project","Teams automating PR review and issue handling through GitHub Actions, GitLab CI/CD or Slack","Companies that need commercial data terms and want to run it through Amazon Bedrock, Google Cloud or Microsoft Foundry"]}},"analysis":{"vi":"## Hai sản phẩm khác nhau ở đâu?\nOpenAI Codex: Codex hợp với người đã dùng ChatGPT và muốn một agent lập trình đi cùng trong terminal, IDE, cloud và điện thoại, với CLI mã nguồn mở theo giấy phép Apache-2.0. Đổi lại, Codex đi kèm gói ChatGPT với hạn mức chỉ là ước tính, chỉ có mô hình của OpenAI, và ở gói cá nhân OpenAI mặc định có thể dùng dữ liệu để huấn luyện nếu bạn không tự tắt.\nClaude Code: Hợp với lập trình viên và nhóm muốn giao trọn tác vụ nhiều bước (sửa lỗi, tái cấu trúc code, mở pull request) cho một agent làm việc ngay trong repo, với cơ chế cấp quyền rõ ràng. Đổi lại, chi phí và lượng dùng phụ thuộc gói Claude hoặc giá API, và công cụ chỉ chạy mô hình của Anthropic.\n\n## Chọn theo nhu cầu sử dụng\nOpenAI Codex: Phù hợp với Người đang trả gói ChatGPT Plus hoặc Pro và muốn thêm agent lập trình mà không mua dịch vụ riêng; Lập trình viên thích làm việc trong terminal và muốn công cụ mã nguồn mở, có sandbox mặc định. Điểm mạnh: Một tài khoản dùng được trên app desktop, web, CLI, tiện ích IDE và app ChatGPT cho iOS, Android; CLI mã nguồn mở Apache-2.0, cài bằng npm, Homebrew hoặc script, chạy trên macOS, Linux và Windows.\nClaude Code: Phù hợp với Lập trình viên quen terminal, muốn agent tự đọc, sửa code và chạy lệnh trong dự án; Nhóm muốn tự động rà soát pull request và xử lý issue qua GitHub Actions, GitLab CI/CD hoặc Slack. Điểm mạnh: Dùng được ở nhiều nơi: terminal, VS Code, JetBrains, app desktop, web, điện thoại, Slack và CI; Chế độ Auto (mặc định trong terminal và VS Code) dùng mô hình phân loại để chặn thao tác rủi ro; chế độ Manual hỏi trước khi sửa file hay chạy lệnh.\n\n## Chi phí và giới hạn cần kiểm tra\nOpenAI Codex: Go: 8 USD/tháng (giá USD trên trang giá của OpenAI, chưa có giá VND), theo giá đã lưu trong hồ sơ. Cần lưu ý: Hạn mức chỉ là số tin nhắn ước tính mỗi 5 giờ, có thể kèm hạn mức theo tuần; tác vụ cloud tốn lượt hơn tin nhắn chạy cục bộ. Claude Code: Pro: 20 USD/tháng, theo giá đã lưu trong hồ sơ. Cần lưu ý: Lượng dùng bị giới hạn theo khung 5 giờ và theo tuần; từ 28/8/2025 Anthropic áp thêm giới hạn tuần cho Pro và Max. Giá giữ nguyên tiền tệ và đơn vị trong hồ sơ gốc; không tự quy đổi hoặc coi các gói là tương đương. Kiểm tra giá, giới hạn và điều kiện tại nguồn chính thức trước khi thanh toán.","en":"## How the products differ\nOpenAI Codex: Codex suits people already on ChatGPT who want one coding agent across the terminal, IDE, cloud and phone, with an Apache-2.0 open-source CLI. The trade-offs are access bundled into ChatGPT plans with estimated rather than fixed limits, OpenAI-only models, and individual-plan data that may be used for training unless you opt out.\nClaude Code: A fit for developers and teams who want to hand multi-step tasks (bug fixes, refactors, pull requests) to an agent working inside the repo, with an explicit permission model. The trade-offs: cost and usage depend on a Claude plan or API pricing, and it runs only Anthropic models.\n\n## Choose around your use case\nOpenAI Codex: Fits ChatGPT Plus or Pro subscribers who want a coding agent without buying a separate service; Terminal-oriented developers who want an open-source tool with a default sandbox. Strengths: One account covers the desktop app, web, CLI, IDE extension and ChatGPT on iOS and Android; Apache-2.0 open-source CLI installable via npm, Homebrew or script on macOS, Linux and Windows.\nClaude Code: Fits Terminal-comfortable developers who want an agent to read, edit and run commands in their project; Teams automating PR review and issue handling through GitHub Actions, GitLab CI/CD or Slack. Strengths: Available on many surfaces: terminal, VS Code, JetBrains, desktop app, web, mobile, Slack and CI; Auto mode (the default in terminal and VS Code) uses a classifier to block risky actions; Manual mode asks before editing files or running commands.\n\n## Costs and limits to check\nOpenAI Codex: Go: 8 USD/month, as recorded in the review. Trade-off: Limits are expressed as estimated messages per 5 hours with possible weekly caps; cloud tasks use more than local messages. Claude Code: Pro: 20 USD/month, as recorded in the review. Trade-off: Usage is capped per 5 hours and per week; Anthropic added weekly limits for Pro and Max on 28 August 2025. Prices retain the currency and billing units recorded in the source profiles; no currency conversion or plan equivalence is assumed. Check official prices, limits and terms before payment."},"faq":{"vi":[{"question":"Nên chọn OpenAI Codex hay Claude Code?","answer":"OpenAI Codex và Claude Code: chọn coding agent theo quy trình và tài khoản.\n\nOpenAI Codex: Người đang trả gói ChatGPT Plus hoặc Pro và muốn thêm agent lập trình mà không mua dịch vụ riêng.\n\nClaude Code: Lập trình viên quen terminal, muốn agent tự đọc, sửa code và chạy lệnh trong dự án.\n\nChọn theo tác vụ chính, thiết bị đang dùng và giới hạn gói; điểm tổng không thay thế được yêu cầu của bạn."},{"question":"Điểm cao hơn có nghĩa là luôn phù hợp hơn?","answer":"Không. Điểm tổng là nhận định biên tập theo nhiều tiêu chí. Tác vụ, hạn mức và hệ sinh thái đang dùng có thể quan trọng hơn với bạn; bảng so sánh nêu riêng các khác biệt để tự lựa chọn."},{"question":"Giá và giới hạn lấy từ đâu?","answer":"Từ hồ sơ nghiên cứu của từng sản phẩm, có liên kết nguồn và ngày kiểm tra trong bài đánh giá. Bài so sánh tổng hợp lại dữ liệu đó; ngày biên soạn không có nghĩa mọi giá đã được kiểm tra lại cùng ngày."}],"en":[{"question":"Should I choose OpenAI Codex or Claude Code?","answer":"OpenAI Codex vs Claude Code: choosing a coding agent around workflow and account.\n\nOpenAI Codex: ChatGPT Plus or Pro subscribers who want a coding agent without buying a separate service.\n\nClaude Code: Terminal-comfortable developers who want an agent to read, edit and run commands in their project.\n\nChoose for your main task, existing devices and plan limits; the overall score cannot replace your requirements."},{"question":"Does a higher score always mean a better fit?","answer":"No. Overall scores are editorial judgements across several criteria. Your task, allowance and existing ecosystem may matter more; the table separates those differences so you can decide."},{"question":"Where do prices and limits come from?","answer":"From each product’s researched profile, with source links and check dates in the review. This comparison reuses that evidence; its compilation date does not mean every price was rechecked that day."}]},"sources":[{"label":"Official Codex page (openai.com)","url":"https://openai.com/codex","kind":"official","checkedAt":"2026-11-10"},{"label":"Official Codex page (chatgpt.com)","url":"https://chatgpt.com/codex","kind":"official","checkedAt":"2026-11-10"},{"label":"Official Codex pricing documentation","url":"https://learn.chatgpt.com/docs/pricing","kind":"official","checkedAt":"2026-11-10"},{"label":"Official documentation: agent approvals and security","url":"https://learn.chatgpt.com/docs/agent-approvals-security","kind":"official","checkedAt":"2026-11-10"},{"label":"OpenAI Help Center: how your data is used to improve model performance","url":"https://help.openai.com/en/articles/5722486-how-your-data-is-used-to-improve-model-performance","kind":"official","checkedAt":"2026-11-10"},{"label":"GitHub: openai/codex (CLI repository)","url":"https://github.com/openai/codex","kind":"official","checkedAt":"2026-11-10"},{"label":"App Store listing: ChatGPT (US)","url":"https://apps.apple.com/us/app/chatgpt/id6448311069","kind":"store","checkedAt":"2026-11-10"},{"label":"The Decoder: Codex on iOS and Android (2026-05-15)","url":"https://the-decoder.com/openai-makes-its-ai-coding-assistant-codex-available-on-ios-and-android/","kind":"press","checkedAt":"2026-11-10"},{"label":"Wikipedia: OpenAI Codex (AI agent)","url":"https://en.wikipedia.org/wiki/OpenAI_Codex_(AI_agent)","kind":"community","checkedAt":"2026-11-10"},{"label":"Official product page","url":"https://claude.com/product/claude-code","kind":"official","checkedAt":"2026-11-10"},{"label":"Official pricing page","url":"https://claude.com/pricing","kind":"official","checkedAt":"2026-11-10"},{"label":"Claude Code documentation: overview","url":"https://code.claude.com/docs/en/overview","kind":"official","checkedAt":"2026-11-10"},{"label":"Claude Code documentation: data usage","url":"https://code.claude.com/docs/en/data-usage","kind":"official","checkedAt":"2026-11-10"},{"label":"Claude Code documentation: security","url":"https://code.claude.com/docs/en/security","kind":"official","checkedAt":"2026-11-10"},{"label":"Claude Code GitHub repository","url":"https://github.com/anthropics/claude-code","kind":"community","checkedAt":"2026-11-10"},{"label":"Anthropic: Claude 3.7 Sonnet and Claude Code (2025-02-24)","url":"https://www.anthropic.com/news/claude-3-7-sonnet","kind":"official","checkedAt":"2026-11-10"},{"label":"Anthropic: Introducing Claude 4 (2025-05-22)","url":"https://www.anthropic.com/news/claude-4","kind":"official","checkedAt":"2026-11-10"},{"label":"TechCrunch (2025-07-28)","url":"https://techcrunch.com/2025/07/28/anthropic-unveils-new-rate-limits-to-curb-claude-code-power-users/","kind":"press","checkedAt":"2026-11-10"},{"label":"Trustpilot: Claude (all products)","url":"https://www.trustpilot.com/review/claude.ai","kind":"review-site","checkedAt":"2026-11-10"},{"label":"Visual Studio Marketplace listing","url":"https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code","kind":"store","checkedAt":"2026-11-10"},{"label":"JetBrains Marketplace listing","url":"https://plugins.jetbrains.com/plugin/27310-claude-code-beta-","kind":"store","checkedAt":"2026-11-10"}]}