Use your ChatGPT or Claude plan (beta)
ChatGPT and Claude plans each come with a coding program you run on your own computer: Codex CLI for ChatGPT, Claude Code for Claude. VibeCode.surf can give an agent one of these programs to work through. You install the program, sign in to it once, and add it in Settings. No API key is involved.
This is in beta. It works with both programs on macOS; Windows and Linux are less tested. Tell us what breaks.
What you need
- A ChatGPT plan that includes Codex, or a Claude plan that includes Claude Code.
- Node.js, to install the program with the commands below. Both programs also have other installers; see their own pages.
- VibeCode.surf 0.1.8 or later.
Connect Codex CLI (ChatGPT plan)
- Open a terminal and install Codex:
npm install -g @openai/codex- Start it once and sign in. Choose Sign in with ChatGPT; your browser opens, and you approve it there.
codex- Close Codex (press Ctrl+C twice), and restart VibeCode.surf if it was open, so it sees the new program.
- In VibeCode.surf, open Settings and press Add provider.
- Under Use a plan you already have, pick Codex CLI.

- Add provider.
- Codex CLI, for a ChatGPT plan.
- Claude Code, for a Claude plan.
- Press Check that it is installed. The app answers with the version it found.

- Leave Program empty unless the app cannot find it.
- What the program may do. Start with Work in the project.
- Check that it is installed, and what it found.
- The models offered in the picker. default is the model Codex itself is set to.
Connect Claude Code (Claude plan)
- Open a terminal and install Claude Code:
npm install -g @anthropic-ai/claude-code- Start it once and sign in with your Claude account. Your browser opens, and you approve it there.
claude- Close it (press Ctrl+C twice), and restart VibeCode.surf if it was open.
- In Settings, press Add provider and pick Claude Code.
- Press Check that it is installed.
Anthropic decides what a Claude plan covers when Claude Code is started by another app. If that matters to you, check your plan before you rely on it.
Give it to an agent
- In the chat, open the model picker in the message box.
- Choose Codex CLI or Claude Code, then a model. default uses whatever the program is set to; Claude Code also takes opus, sonnet and haiku.
- Send a message as usual.

- The reply, as the program writes it.
- Each command it runs and each file it changes, as they happen.
- The tokens the turn used. There is no price, because your plan covers it.
Each message starts the program in the project folder, and the next message carries on the same conversation. You can have one agent on Codex, another on Claude Code and a third on an API key in the same project.
What it may do
| Setting | Codex CLI | Claude Code |
|---|---|---|
| Work in the project | Changes files only inside the project folder, using its own sandbox. It can reach the internet, so it can install packages. | Edits files in the project and runs the commands its own rules allow. A command it is not allowed is refused, and it says so in its reply. |
| Anything, without asking | Runs every command and changes any file your account can, with none of its own checks. | The same. |
The app's own question before a command does not appear for these agents: the program decides, by the setting above. Going back still works, because the app saves your files before and after every message.
What is different from an agent on an API key
| With a coding program | |
|---|---|
| Helpers | The agent can be a helper of another agent, and is told which files are its own. It cannot hand work to helpers itself. |
| Cost under each reply | Tokens are shown. A price is not. |
| Pictures and PDFs attached to a message | Not passed on yet. Text files are. |
| MCP servers and skills added in the app | Not used. The program uses the ones set up in its own settings. |
| The project notebook | The agent reads it, and is asked to add a line itself when it changes the project. |
| Thinking level | Passed on as the program's own effort setting. Auto leaves it as the program is set. |
When it does not work
- "was not found on this computer". The command
codexorclaudemust work in a terminal. If it does and the app still cannot find it, restart the app; if that does not help, runwhich codex(on Windows,where codex) and paste the path into Program. - It stops and says to sign in. Run the program once in a terminal and sign in again. Sign-ins expire.
- "You have hit your usage limit". That is your plan's limit. The message says when it resets; until then, switch the agent to another model.
- A command was refused. With Work in the project, Claude Code runs only what its rules allow. Allow the command in Claude Code's own settings, or switch this provider to Anything, without asking for a project you trust.
- It forgot the conversation. After you go back to an earlier message, or switch an agent to a coding program in the middle of a chat, the app starts a new conversation in the program and passes the earlier messages along as text.