AI Code
Describe an app, a website or a change to an existing repository. The agent reads the code, writes and edits files, runs the build or tests, fixes what breaks and keeps going until the task is done — in a sandboxed project folder you can preview, download, push to GitHub or send to Design.
Every file it changes appears here as a diff. Open a repository with Open from GitHub, or start from a Design-page mock-up with Build as app. It uses whichever model you pick; a strong code model follows the tool loop far better than a light one. It is not Claude Code — output quality is the model's; the loop, the sandbox, the diffs and the git plumbing are what this page adds.
Engine: the built-in agent (read → edit → run → fix, in turns); or the open-source Qwen Code CLI, which does the same through its own tools (install it from the button that appears); or the Claude Code CLI running on your PetAi models (see the Connect Claude Code card).
claude -p in this project folder with the selected model through PetAi's gateway. It edits files and runs commands without asking, the same trust as running it yourself. This runs Claude Code with your free models through PetAi. It is not free Claude. Real Claude needs your own Anthropic account.qwen -p in this project folder with the selected model through PetAi's provider routing (gateway / OpenRouter / B.AI). Auto-approves its own commands — same trust as running the CLI yourself.