Quickstart
This guide covers two paths: using an instance someone already runs (your team’s, or one you installed) or self-hosting your own. There is no public SAM you can sign up for: SAM runs in your own Cloudflare account, on your own cloud.
Using an Existing Instance
Section titled “Using an Existing Instance”SAM is chat-first: you pick a repository, describe what you want in a chat, and SAM runs an AI coding agent that reads your code, makes changes, and can open a pull request when you ask it to publish. It provisions the environment for you — you don’t manage servers.
1. Sign In
Section titled “1. Sign In”Open the instance’s web UI (app. on its domain) and sign in with GitHub, Google or GitLab,
whichever it offers. Where the instance can send email you can also select Email me a sign-in
code: enter your email, then the 6-digit Sign-in code from the email. A code expires after 5
minutes; Send a new code gets another. Email codes only sign in an account that already exists
(and, on a new installation, its administrator), so the first time, use one of the other buttons
unless you are the person who installed SAM. If an emailed code is the only option and you don’t
have an account yet, ask the person who runs SAM to add GitHub, Google or GitLab sign-in.
If SAM says your account is waiting for approval, the instance approves new accounts by hand: ask the person who runs it to approve you.

2. Let SAM Set You Up
Section titled “2. Let SAM Set You Up”The first time you sign in, SAM walks you through the rest. It only asks what your instance and account leave open, so you may see fewer screens than this:
- Hi, I’m SAM. Select Let’s get you set up. (I’ll look around first skips it; select Complete Setup in the sidebar to come back.)
- Where should your agents work? Right here, on Cloudflare starts Instant chats in seconds with nothing to connect, but without Docker or your devcontainer. On this installation’s machines uses machines the instance’s administrator already set up. On my own cloud account connects your Hetzner, DigitalOcean, Google Cloud or other account for full machines.
- Where should your code live? Let SAM keep it creates a new Git repository for you with no GitHub needed, where the instance offers it. On GitHub (or In my GitHub repositories, if you’ve already connected GitHub) works on your GitHub repositories.
- The steps. A row at the top shows the steps left: Agent, Cloud, GitHub,
Project.
-
Who should do the coding? Pick an agent, then how it signs in: Sign in with your Claude or ChatGPT subscription (Connect with Claude Code or Connect with Codex opens the guided sign-in), API key, or SAM AI when the instance offers SAM-managed AI.

-
Which cloud should I use? Connect your cloud account (only if you chose your own).
-
Let me into GitHub. Install the GitHub app on the repositories you want, in the new tab. SAM notices when you’re done.
-
What are we building? Name a new project, or choose a Repository, then Create project. SAM also creates the project’s first agent profile for the agent you picked: an Instant chat profile, or a full-machine profile that works on its own and pushes its branch. The full-machine profile’s description says it opens pull requests, but like every agent it opens one only when you ask (see Chat).
-
- We’re ready. Select Start your first chat, and skip ahead to Chat.

The steps below do the same by hand, for example to add a second agent or another repository later.
3. Connect an AI Agent
Section titled “3. Connect an AI Agent”Go to Settings → Agents and click Connect account. Pick the AI coding agent you want to use — Claude Code, OpenAI Codex, Gemini CLI, Google Antigravity, Mistral Vibe, OpenCode, or Amp — connect it, then give the account a name such as Work or Personal. Depending on the agent, you’ll paste an API key or connect a subscription. For Claude Code and Codex, a guided sign-in links your Claude Max/Pro or ChatGPT plan in the browser — no terminal needed. Your credentials stay encrypted in the database — they’re never stored as environment variables.
4. Add a Repository
Section titled “4. Add a Repository”To work on GitHub repositories, go to Settings → GitHub and click Install GitHub App on the repositories you want to use with SAM. This grants SAM access to those repositories. Skip this if SAM will host your new repository.
Then, from the Dashboard, click New Project and pick a repository that has the GitHub App installed, or, where your instance offers it, let SAM create and host a new repository for you with no GitHub needed. A project links that repo to its chats, agents, and activity. During setup, your conversation agent becomes the project’s default agent. If you also configure a task agent, that agent becomes the default instead. Tasks and automations without a selected profile use this default; change it later in Project Settings → Agents → Default Agent Type.
5. Chat
Section titled “5. Chat”Open your project. It opens on its Overview: type what you want done in the task box at the bottom, or go to Chat in the project navigation (the Chat button in the app bar on a phone) and type it there — for example, “add input validation to the signup form, write tests, and open a pull request.” Pick who does it first: with two or more profiles, the empty chat asks Who should take this? and shows your recent profiles as cards, and To above the message box shows the one you’ve chosen (see Choosing a profile for a new chat). SAM provisions a workspace, starts that agent, and streams its progress to you as it works.
Say when you want a pull request. SAM itself doesn’t commit, push, or open pull requests, and the agent opens one only when asked: put it in your message, or ask once the work looks right. To make it the default for a profile, edit the profile on the project’s Profiles page, expand Execution, and add the instruction to System Prompt (append).
If you set up by hand and SAM asks you to create a profile, choose Build and open PRs, then Cloud VM, for work like this. Despite its name, that choice doesn’t tell the agent to open pull requests: it sets the profile up to work as a Task on a VM, so you still ask for the pull request. Chat and explore and Instant container profiles are for questions and back-and-forth: their chats stay open for your next message instead of finishing on their own.
6. Come Back Later
Section titled “6. Come Back Later”You don’t have to watch the chat while the agent works. The Dashboard keeps an Active Tasks list across all your projects: your six most recently active tasks — ranked by their latest message, or by when they started if they have none yet — refreshed automatically.
Each card shows the task’s status, the project it belongs to, when you submitted it, and when its last message arrived. A dot shows where the task stands: Active or Working means it is starting up or its machine is running (Active if there was a message in the last 15 minutes), Sleeping means it is asleep and can be woken, and Idle means nothing is running for it right now. Waiting or Needs you means the agent hit a usage limit; see Waiting for a provider limit reset. A running task isn’t necessarily busy — a line below the project name shows its current step, such as Waiting for follow-up… when it’s your turn. Select a card to open its chat.
A sleeping conversation still counts as active — you can wake it for up to a week — which is why the list is ranked by recent messages rather than by start time: whatever you touched most recently stays on top, and dormant work drops off. The list only includes your own tasks that are queued, in progress, or asleep: finished, cancelled, and failed tasks are left out (even a failed task whose chat you can still wake), and so are teammates’ tasks in a shared project. Find those in the project’s session list. Anything an agent needs from you (a question, a permission, a secret, a review) lands in your Inbox, with a notification; so do the Problems SAM files when a task fails to start or a chat can’t wake. Open Inbox in the navigation to answer from one list instead of visiting each chat. A project’s Overview shows its share under Needs you. To choose which notifications you get, see Notifications.
That’s the whole loop: pick a repository → chat → ask for a pull request → review it. No terminal or server setup required.
Self-Hosting
Section titled “Self-Hosting”There are two ways to run your own SAM. Both need a Cloudflare account on the Workers Paid plan ($5/month, for Durable Objects and Containers) and a domain whose DNS Cloudflare manages.
- The installer, from your browser: sign in with Cloudflare, pick a domain, approve, and about half an hour later your SAM is live. No GitHub fork or secrets to copy. For now, though, the hosted installer only works for a few accounts, so most people host the installer themselves first (a terminal and a Cloudflare API token) or use the fork. See Install SAM with the installer.
- A GitHub fork, deployed by GitHub Actions. More steps, and you control every setting. The rest of this section summarizes it; it also needs a GitHub account.
Quick Deploy from a Fork
Section titled “Quick Deploy from a Fork”- Fork the SAM repository
- Create a GitHub Environment named
productionin your fork’s Settings, then restrict its deployment branches and tags to the selected branchmainonly - Add the required secrets — see the Self-Hosting Guide for the full list
- Run Deploy Production — in your fork, go to Actions → Deploy Production → Run workflow, choose
main, and leavetarget_commit_shaempty (it deploys the currentmaintip)
The deployment workflow:
- Provisions Cloudflare infrastructure (D1, KV, R2, DNS)
- Deploys the API Worker and Web UI
- Builds and uploads VM Agent binaries
- Runs database migrations
- Verifies with a health check
For future updates, run the Update Self-Hosted Instance workflow to automatically sync the latest upstream release and deploy, or manually sync your fork’s main branch and run Deploy Production (SHA is optional and must be the current main tip when supplied). Pushing to main alone does not update a self-hosted instance.
For detailed step-by-step instructions, see the Self-Hosting Guide.
Next Steps
Section titled “Next Steps”- AI Agents — choose and configure your coding agent
- What Happens When You Send Work — what happens after you send work, and where it lands
- Ideas — keep a list of work for later, and start an agent on it
- Core Concepts — the vocabulary behind projects, agents, and workspaces
- Use SAM from Claude and ChatGPT — check on your work and start chats from the AI app you already use