# Set up Orble

With Orble's MCP server at https://orble.tech/mcp, you can create and run Linux VMs, called boxes. Follow these steps in order.
Where a step says **Stop**, tell the user what to do and wait for them.

1. **Check tool availability.** If Orble's MCP tools are already available, such as `create_box` and `exec`, go to step 5.

2. **Add the MCP server** using the configuration for the client application:
   - Claude Code: `claude mcp add --transport http --scope user orble https://orble.tech/mcp`
   - Codex: `codex mcp add orble --url https://orble.tech/mcp`. Codex displays an authorization URL and waits for sign-in.
     **Stop:** give the user the URL. The command ends when they have signed in.
   - Cursor: add `"orble": {"url": "https://orble.tech/mcp"}` to `mcpServers` in `~/.cursor/mcp.json`.
   - Another app: add https://orble.tech/mcp as a remote server (Streamable HTTP, with OAuth sign-in). For configuration instructions for
     other clients, see https://orble.tech/docs.md.

3. **Restart.** Restart the client application to load the newly configured MCP tools. **Stop:** ask the user to restart you and then tell you to
   continue. In Claude Code they quit and run `claude --continue`; in Codex, `codex resume --last`.

4. **Sign in**, unless you did in step 2. In Claude Code, call Orble's `authenticate` tool and give the user
   the URL it returns. In other apps, ask the user to sign in to orble in the app's MCP settings. **Stop** until
   they have signed in.

5. **Test.** Call `create_box`, then `exec` with `uname -a && whoami` in the new box, then `delete_box`.
   Report the command output to the user. If `create_box` says the account needs a card or credit, show the user its message
   and wait.

## Without MCP

If you can't add an MCP server, or the user's browser can't reach this machine (you run over SSH, for example),
use the CLI:

1. `curl -fsSL https://orble.tech/install.sh | sh`
2. `orble login`. It prints a URL and a code. **Stop:** give both to the user and wait until it prints
   "Signed in".
3. `orble new`. If it asks for an SSH key, run `orble keys add ~/.ssh/id_ed25519.pub` and try again. If
   there is no key, make one first with `mkdir -p ~/.ssh && ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519`.
4. `orble ssh <box> 'uname -a && whoami'`, then `orble rm <box> -y`. Show the user the output.

## Rules

- Delete every box you make for this test.
- Never print an access token, and never write one to a file that gets committed.
