OpenAI Codex Alternatives That Work in China: 9 Options
OpenAI Codex — OpenAI's coding agent: hand off repo tasks, get back diffs to review. OpenAI does not support mainland China, so it cannot be used without a workaround. If you are in mainland China, the tools below cover similar ground and can be used directly.
Why look for an alternative
OpenAI Codex is a capable tool, but it is not available from mainland China without workarounds, and payment and account sign-up are often blocked too. The options below are reachable directly, which matters most if you use the tool every day.
Alternatives to OpenAI Codex
- 1GitHub CopilotIn-editor code completion with the widest editor support
GitHub Copilot comes from GitHub (part of Microsoft). It was the first AI coding assistant to reach wide adoption and still has the broadest editor support: official plugins for VS Code, the JetBrains suite, Neovim and Visual Studio. When a team is split across editors, it is often the only option everyone can actually use.
- 2CursorAn editor with AI built in, strongest on changes that span multiple files
Cursor is a VS Code fork from the company Anysphere that turns AI from a completion plugin into a way of working. The key difference from completion tools is that it reads the whole project: you can say "make this function's error handling match the rest of the codebase" and it will go look at the rest of the codebase.
- 3TraeByteDance's AI code editor, friendly to Chinese users
Trae is ByteDance's AI-native code editor. Like several of its rivals it is built on VS Code, offering completions, chat-driven edits and an agent mode that can carry out multi-step tasks. It comes in an international edition and a China edition; the China edition is directly accessible, and the UI works well in Chinese.
- 4WindsurfAn AI editor built around agentic workflows
Windsurf is another AI editor built on VS Code. It was created by the Codeium team, who started out in code completion, and the product changed hands in 2025. Its emphasis is on the Cascade agent, which reads the repo, runs commands, edits multiple files and follows your actions in the editor to infer intent. Completions are quick.
- 5LovableDescribe an app in chat and get a deployable web app
Lovable is a platform for building complete web apps through conversation. Describe what you want — say, a booking system with login — and it generates the UI, wires up a database and auth, and lets you preview, keep iterating in chat and publish in one click. Code can sync to GitHub.
- 6v0Vercel's UI generator that outputs React components
v0 is Vercel's UI generator. Describe a UI or upload a screenshot and get React code using Tailwind and shadcn/ui, with visual quality above most peers. Deploys straight to Vercel.
- 7Tongyi LingmaAlibaba Cloud's coding assistant, built for Chinese-speaking developers
Tongyi Lingma is Alibaba Cloud's coding assistant, built on the Qwen family of code models. It started as an IDE plugin for VS Code and the JetBrains editors and later added an agent mode that can carry out multi-step tasks on its own. For developers in mainland China, it is the most direct substitute for GitHub Copilot.
- 8Bolt.newDescribe an app and it builds and runs it full-stack in your browser
Bolt.new is StackBlitz's AI app builder. Describe the website or app you want in plain language and it writes the whole project, then installs dependencies, starts a dev server and shows an interactive preview — all inside the browser, with nothing to install locally.
- 9ReplitA browser IDE with hosting and an AI agent that builds apps for you
Replit started as an online coding platform: open a browser and write and run code in dozens of languages without setting anything up locally, which made it popular for teaching and with students. In recent years it has shifted its focus to AI with Replit Agent, which takes a plain-language description and builds and ships an application from scratch.
These are external services we do not operate. Pricing and features change often — the official site is the authority. Mainland China reachability is based partly on testing and partly on public information; it can change and may differ on your network.