Set up Turn Zero Cloud #

View this page as Markdown

On this page

If you're deciding whether Turn Zero Cloud fits your project, read Before you start for an overview of the tools, costs and terms for your data.

Already have an app? Open the app's folder or workspace with your AI coding agent. Then follow Use the app you already have.

Prompt: paste this into your AI assistant.

Set me up with Turn Zero Cloud and a small demo app. Read https://dev.turnzero.ai/cloud/getting-started/set-up/index.md in full and follow the steps.

This session sets up the connection and the demo folder or workspace, then gives you a build prompt. Paste that prompt into the session your AI assistant names to build the demo.

On your computer, approve adding the Model Context Protocol (MCP) connection and the demo folder's full path before leaving it unattended. You can say: "Add the Turn Zero MCP server to this AI coding agent and use this folder: <full path>." In a cloud workspace or chat, add the connection in the product's settings. Complete browser sign-in when the steps ask for it. If your AI assistant is already signed in and has Turn Zero Cloud tools, use that connection.

To create an app, submit its manifest, or deploy through MCP, use browser sign-in for your AI assistant's connection or a minted token with the required access. In ChatGPT on the web, sign in through the Cloud plugin. For an MCP client on a computer without a browser, use device sign-in and approve its code in a browser on another computer. This gives limited access, including tzTrack and some account and documentation tools. turnzero login --origin https://dev.turnzero.ai and turnzero login --origin https://dev.turnzero.ai --device authorize commands such as turnzero check --origin https://dev.turnzero.ai and turnzero deploy --origin https://dev.turnzero.ai on your computer for an existing app.

What the prompt does:

  • Connects your AI to Turn Zero through MCP.
  • Has you sign in with your browser. If you're new, your free Turn Zero account is created.
  • On your computer, creates a turnzero-demo folder at a location you confirm. In a cloud workspace, uses the repository or workspace you selected.
  • Gives you a prompt to build and deploy a small notes app where you sign in and keep your own private notes. The session that builds it gives you the link.

What you do #

Your AI assistant does most of the work. You:

  • approve the changes it asks for, such as adding the Turn Zero Cloud connection and creating a folder for the demo;
  • sign in once in your browser, with GitHub, Google, or a code sent to your email. If you're new, your free account is created at that first sign-in;
  • paste the build prompt your AI assistant gives you at the end;
  • depending on your AI assistant, you may be walked through a few steps to connect it by hand.

Your AI coding agent's safety check may block adding the connection even after you approve it. If that happens, run the exact command it gives you in your own terminal, then tell it to carry on.

Prefer to connect by hand? Follow Connect your AI assistant for your product, then ask your AI assistant: "Check my Turn Zero connection."

Working unattended? Deploy with nobody at the keyboard covers existing signed-in connections and tokens, and work your AI can prepare before sign-in.

For local deploys, use the npx command the deploy tool returns. It needs Node.js and npm and runs without a global install. To install turnzero globally, run npm install -g turnzero@next. See Install the turnzero command.

For the turnzero CLI, choose its platform address with --origin or TURNZERO_CLOUD_ORIGIN. This setting is separate from your AI coding agent's MCP connection. The linked section explains how the command checks that it sends the credential to the right address.

For the AI assistant #

These steps are for you, the AI assistant. Do as much as you can yourself. When a step needs the person, tell them exactly what to do and wait for their response before taking that step. With nobody present, follow Deploy with nobody at the keyboard and keep working on what needs no person, in the folder or workspace the person approved.

If the person already asked you to build their own app, skip the demo folder and the build-prompt hand-over. Follow When to ask before changing setup when setting up the connection, then build the requested app in the approved folder or workspace. Before deploying that app for the first time, read Ways to deploy to choose the route. Before writing code, follow Before your AI starts.

Use the app you already have #

If your session for this app has Turn Zero Cloud tools, call start to check the connection. If the tools are missing, read When to ask before changing setup before following the steps for your tool in Connect your AI assistant.

Then follow Bring an existing application from the app's folder or workspace.

When to ask before changing setup #

Follow your permission rules and ask the person before making a setup change if you're unsure they approved it.

Before you start #

When you build a demo, there is no free plan or tier to select, and its charges draw first from the account's monthly Free Allowance.

  1. Read this whole page. If your fetch tool gives you a summary, as Claude Code's WebFetch does, fetch the full page with a shell command or read_documentation. For read_documentation, set tree: "cloud" and page: "/getting-started/set-up". Use next_offset to continue to the next part and stamp to keep reading the same page version. A summary leaves out steps and the text you must show the person word for word.

  2. Read Connect your AI assistant the same way when a step sends the person there, and show only the section for their tool. If you can't read it whole, don't rebuild the steps from a summary. Give the person Connect your AI assistant and tell them to open their tool's section and complete the connection there.

  3. Check whether Turn Zero Cloud is already connected. Look for its tools, such as start and deploy_files, under any connector name; if your host loads tools on demand, search for them first. If you find them, call start: it returns the account and whether it is active or suspended. If it works, nothing needs adding or signing in.

    Check the sign-in address with read_account. Ask the person to confirm that address, or the account ID from start if the address is unavailable. If the connection uses a different account, pause the demo and ask the person to switch accounts on the existing connection. Check the account again before building the demo.

    On the person's computer, still choose the demo folder (steps 1, 2 and 5 below: Check what is already set up, Ask once, and Make the folder). Then go to Give the person the build prompt.

  4. Call start first in any session. To find an action, call read_context with id: "tools" and limit: 16000; it lists the available tools. For a platform rule, call read_context with id: "overview".

  5. Find where you run, and follow that section:

Where you run Section
Claude Code (a terminal or the Claude desktop app's Code tab), or Codex (the CLI, the ChatGPT desktop app, or an editor), on the person's computer or a remote machine On the person's computer
Claude Code on the web, or Codex in ChatGPT's cloud In a cloud workspace
Claude's chat (claude.ai, the desktop app, or the phone app), or ChatGPT's chat In a chat

If your desktop or editor app shares the CLI configuration, use the existing MCP connection named turnzero. A separately configured chat or cloud workspace uses turnzero-hosting at https://tzcloud.dev.turnzero.ai/mcp, following Connect your AI assistant. If you can't tell, ask the person which tool they're using.

An existing connection may have been added earlier as turnzero-cloud. Reuse it if it is signed in and provides tzCloud tools; check its address before changing or removing it.

If the person's work account doesn't let them add Turn Zero, tell them. Suggest they ask whoever manages their work account to add it. If their company allows it, they can instead set up Turn Zero on their own computer: ask them to open Claude Code or Codex and paste this page's setup prompt. That new session does the setup and asks for any approvals it needs.

On the person's computer #

1. Check what is already set up. These checks are read-only:

  • Claude Code: run claude mcp get turnzero. A connector added in Claude's chat settings shows in claude mcp list as claude.ai turnzero-hosting, and claude mcp get doesn't find it. If its tools are in this session, the connection is done.
  • Codex: run codex mcp list. For MCP servers configured on the same Codex host, the ChatGPT desktop app, the CLI, and the editor extension share this list. A turnzero-hosting plugin added in ChatGPT on the web also appears in the ChatGPT desktop app; if its tools are in this session, the connection is done.
  • Find the folder for the demo. If this session started in an empty folder, use that one. Otherwise, look for where the person keeps code, such as ~/code, ~/projects, or ~/Documents/GitHub (on Windows, under C:\Users\<name>), and pick an unused turnzero-demo beside their projects, never inside one.

2. Ask once. Use When to ask before changing setup to identify what remains unapproved. In one message, ask for those changes: adding the server, the browser sign-in, and the demo folder's full path. Wait before taking a step that needs the person.

For a blocked connection change, give the person step 3's exact command for their tool to run in their own terminal. Continue the setup once they say the command is done.

3. Add the server, if step 1 (Check what is already set up) found none and the person has approved adding it:

  • Claude Code: claude mcp add --transport http --scope user turnzero https://dev.turnzero.ai/mcp. If claude mcp get turnzero showed it at another scope, or failed to connect, remove it first with the scope it reported, such as claude mcp remove turnzero --scope local.
  • Codex: tell the person a browser window will open for sign-in, then run codex mcp add turnzero --url https://dev.turnzero.ai/mcp. Let it run for at least five minutes while they sign in; if your command tool gives you a session handle, keep waiting on it. If the browser doesn't open and the command prints a link, give the person the link. Codex may ask the person to approve writing its settings file and reaching the network; both are expected.

On Windows, if PowerShell says claude is not recognized, first read the Claude Code PATH note. Check whether %USERPROFILE%\.local\bin\claude.exe exists yourself; this check is read-only.

If it exists, check whether %USERPROFILE%\.local\bin is missing from the person's user Path. Ask before adding it as a new entry, keeping every existing entry. Once approved, add that entry.

Ask the person to close and reopen the terminal. If PowerShell runs inside the Claude desktop app's Code tab, ask them to quit and reopen that app. If it runs inside an editor, ask them to restart the editor too. Wait for the restart before continuing in a new session.

In that new session, run claude --version by its command name. When it answers, resume at step 1 (Check what is already set up), then step 3 (Add the server) where needed. Keep the build-prompt hand-over pending until this recovery and the connection check are complete.

If the file is missing or the command still fails after the restart, follow Claude Code's PATH troubleshooting.

Where the tool's command is absent or remains unusable after its troubleshooting, the person connects by hand. Give them their tool's steps from Connect your AI assistant, word for word. Wait for them to confirm the connection was added before handing over. Then continue at step 5 (Make the folder).

4. Sign in. It depends on the tool:

  • Claude Code: don't run claude mcp login yourself; without an interactive terminal it stops with "stdin isn't a terminal". The person signs in from the new session in step 6 (Hand over).
  • Codex: if the add printed Successfully logged in, it's done. Otherwise run codex mcp login turnzero.

Then run claude mcp list or codex mcp list and check that turnzero is listed. Claude Code shows Needs authentication until the person signs in. In Codex, the Auth column shows OAuth once the person has signed in and Not logged in before. The new session's tool list is the final check.

5. Make the folder and check that it's empty. If it already holds files, suggest turnzero-demo-2 and ask again.

6. Hand over. Leave the folder empty and go to Give the person the build prompt.

In a cloud workspace #

Don't run claude mcp add or codex mcp add here: they configure the workspace, not the product's connection. Use the product's connector settings.

  1. If Turn Zero Cloud's tools are missing, the person connects in the product's settings. Give them the steps from Connect your AI assistant, word for word: Claude's chat and Claude Code on the web or ChatGPT and Codex in ChatGPT's cloud. Wait for them to finish.
  2. The demo is built later in the repository or workspace the person chose. Don't create a separate project, and don't commit or push unless the person asks.
  3. Go to Give the person the build prompt.

In a chat #

  1. If Turn Zero Cloud's tools are missing, give the person the steps for their chat from Connect your AI assistant, word for word, and wait. You don't need to ask before showing them.
  2. Search or load your tools again and call start.
  3. Go to Give the person the build prompt. When they paste it here, you deploy by uploading the app's files with deploy_files.

Give the person the build prompt #

Don't build the demo yourself. The person pastes the build prompt, which shows them how little it takes to build and deploy an app. Show them the prompt and the steps that fit, word for word.

If Turn Zero Cloud's tools are in this session, and on the person's computer this session runs in the demo folder, tell them to paste the prompt here:

Using Turn Zero, build me a notes app where I sign in and keep my own private notes. Put it online and give me the link.

Otherwise, show the list for the person's tool, with <folder> replaced by the demo folder's full path. Replace <opening instruction> in item 1 with the one instruction below for their interface. Ask which interface they use if you cannot tell. Show no placeholder or alternative instruction to the person.

Never show the terminal instruction where the tool's command was not found. Keep items 2 and 3, including the sign-in step. Choose the opening instruction from this table:

Interface Opening instruction
Claude Code in a terminal Open a terminal, run cd "<folder>", then claude.
The Claude desktop app's Code tab In the Claude desktop app's Code tab, start a new session and choose <folder>.
Codex in a terminal Open a terminal, run cd "<folder>", then codex.
Codex in the ChatGPT desktop app In the ChatGPT desktop app, choose Codex. Open a project whose primary folder is <folder>, creating one if needed, and start a new chat for that project.

If Codex sign-in is still pending, first say: "Turn Zero Cloud sign-in is still pending. Follow the sign-in step in the list below." Then show the complete three-item Codex list, including its sign-in step.

Claude Code:

  1. <opening instruction>
  2. Paste this prompt into the new session. In the Code tab, if sign-in is needed, finish step 3 before pasting.
Using Turn Zero, build me a notes app where I sign in and keep my own private notes. Put it online and give me the link.
  1. If the new session says a connection needs authentication, type /mcp, choose turnzero, and sign in in your browser.

    In the Claude desktop app's Code tab, /mcp does not reach a server added with claude mcp add. Run claude in a terminal and type /mcp there, or add it by hand with the connector steps.

    Choose one route. If the command added turnzero and you want the connector instead, run claude mcp remove turnzero first.

    In the Code tab, after signing in, start a new session in the demo folder and paste the prompt from step 2.

Codex:

  1. <opening instruction>
  2. Paste this prompt into the new chat:
Using Turn Zero, build me a notes app where I sign in and keep my own private notes. Put it online and give me the link.
  1. If the new chat says Turn Zero Cloud needs a sign-in, sign in where the connection was added. If it was added with codex mcp add, run codex mcp login turnzero in a terminal and sign in in your browser. If it was added in the ChatGPT desktop app's settings, sign in again there.

A cloud workspace or a chat:

  1. In a cloud workspace, start a new session or chat in the same tool. Use the same repository if you chose one. If the tool asks which connectors to use, choose turnzero-hosting. In a chat, stay in this conversation. In Claude's chat, open + → Connectors and check that turnzero-hosting is on.
  2. Paste this prompt into that session or chat:
Using Turn Zero, build me a notes app where I sign in and keep my own private notes. Put it online and give me the link.

When the person pastes it, the session builds through Turn Zero Cloud's tools and skills, and Deploy from a chat gives the steps for a session with no shell.

If something goes wrong #

What you see What to do
claude: command not found, codex: command not found, or PowerShell says "The term 'claude' is not recognized as the name of a cmdlet" Follow step 3's missing-command instructions in On the person's computer. They check Claude Code's Windows PATH before using a by-hand connection.
claude fails from your AI coding agent's zsh shell with "open terminal failed: not a terminal" or another wrapper message claude may be a shell function or alias from a wrapper. In zsh, run the same arguments with command 'claude', such as command 'claude' mcp get turnzero, to reach the installed program.
codex fails with "The system cannot find the path specified" An old Codex launcher may be first on the path. List them with where.exe codex (Windows) or which -a codex, and try only one that Codex's own installer put there. Don't reinstall it or change the path; if none works, use Connect your AI assistant.
"Access is denied" or Read-only file system when adding the server Your AI coding agent's sandbox can't write its settings. Approve the access it asks for. In a cloud workspace, connect in the product's settings instead.
A fetch in a cloud workspace fails with a 403 or a proxy error The workspace blocks that site. Allow it in the workspace's internet settings, or let your AI assistant use Turn Zero Cloud's own tools, which may still work.
Needs authentication in claude mcp list You haven't signed in yet. Type /mcp in a new Claude Code session and choose turnzero. In the desktop app's Code tab, use /mcp in a terminal's claude session instead, or add the connector by hand.
The new session has no Turn Zero Cloud tools Start one more new session. In a chat or cloud workspace, check that turnzero-hosting is turned on. If it is still missing, sign in again.
The browser sign-in finishes but the tool still shows disconnected Retry its sign-in once, using the address for your tool in Connect your AI assistant. Don't paste tokens or browser addresses into its settings.
Codex asks which client registration to use, or sign-in fails while registering it Run codex mcp login turnzero --oauth-client-registration dcr. The dcr option asks Codex to register this client dynamically.
invalid_client, or a page titled Connect your tool again Your tool's registration expired. Remove the connection and add it again.

Setup troubleshooting covers more problems, and Refusals lists every refusal by name.