Usage scenarios
The other pages each cover one topic. This page combines them into the setups people run into most, from an empty project to a working agent. Each step links to the page with the detail.
All scenarios start in the project directory with a .firebrick.yml, which fbk init writes (see Configuration), and with the network
policy enforced, so the sandbox only reaches the hosts you allow:
fbk initfbk network policy enableUsing the Azure DevOps MCP server
Section titled “Using the Azure DevOps MCP server”The Azure DevOps MCP server gives an agent tools for work items, repositories, pull requests, pipelines and wikis. It comes in two transports:
| Transport | Runs | Authentication |
|---|---|---|
stdio |
In the sandbox, with npx, which needs Node.js 20+ |
An Azure DevOps PAT, or Entra ID |
| HTTP | Hosted by Azure DevOps at https://mcp.dev.azure.com |
Entra ID (OAuth) in your browser |
Use the local stdio server with a PAT when you want the credential to stay out
of the sandbox: it’s the only option where it does. With the remote server, the
OAuth token lives on the sandbox’s disk, like any agent login.
The examples use Claude Code as the agent and contoso as the organization.
Install the agent and allow its hosts first; see
Installing an agent.
The local server with a PAT
Section titled “The local server with a PAT”-
Pin Node.js for the project, so
npxis there in every sandbox, inmise.tomlat the root of the project (see Installing an agent for the project):[tools]node = "22" -
Store the PAT as a secret. With
--authentication pat, the server readsPERSONAL_ACCESS_TOKEN, expects the base64 encoding of<email>:<pat>in it, and sends it as is in anAuthorization: Basicheader. Store that encoded value, and allow only the Azure DevOps hosts the server sends it to:Terminal window printf '%s' 'me@contoso.com:<pat>' | base64 | tr -d '\n' \| fbk secret set PERSONAL_ACCESS_TOKEN --from-stdin \--allow-host dev.azure.com --allow-host vssps.dev.azure.com \--allow-host almsearch.dev.azure.com --allow-host '*.visualstudio.com'The sandbox only sees the placeholder
$MSB_PERSONAL_ACCESS_TOKEN; the host swaps in the real value on requests to those hosts. See Secrets. -
Allow the hosts.
npxdownloads the server from npm, and the server talks to Azure DevOps. A secret’s allowed hosts must be allowed by the network rules too:Terminal window fbk network presets apply mise node githubfbk network allow dev.azure.com vssps.dev.azure.com almsearch.dev.azure.com "*.visualstudio.com"See Presets.
-
Start the sandbox and add the server to the agent:
Terminal window fbk startfbk run -- claude mcp add ado -- npx -y @azure-devops/mcp contoso --authentication pat -
Run the agent with
fbk run claudeand ask it to list your work items. When a tool call fails, runfbk network logon the host to find the hosts it was denied, allow them withfbk network allow, and try again. The hosts depend on the tools you use and on your organization. See Recording network activity.
The remote server with Entra ID
Section titled “The remote server with Entra ID”The remote server needs a client that can sign in with Microsoft Entra ID.
Visual Studio Code with GitHub Copilot and the GitHub Copilot CLI can do that
out of the box. Claude Code and Cursor need a custom Entra app registration;
follow Microsoft’s steps for
Claude Code,
which register http://localhost:3118/callback as the redirect URI.
-
Allow the MCP endpoint and the Entra sign-in page. Firebrick only opens a login page in your browser when the network rules allow its host:
Terminal window fbk network allow mcp.dev.azure.com login.microsoftonline.com -
Add the server with your app registration’s client ID:
Terminal window fbk startfbk run -- claude mcp add --transport http ado https://mcp.dev.azure.com/contoso \--client-id <client-id> --callback-port 3118 -
Run
fbk run claude, then/mcp, and sign in. The sandbox has no browser, so Firebrick opens the sign-in page in the browser on your host and forwardslocalhost:3118to the sandbox, where Claude Code waits for the callback. See Browser logins.
If the sign-in page doesn’t open, check fbk network log for the host it
needed, and the fbkd log for a login page Firebrick refused to open.
Using oh-my-pi or another agent that needs your dotfiles
Section titled “Using oh-my-pi or another agent that needs your dotfiles”Some agents rely on your own setup: your shell, git config, and the agent’s own
settings, such as the providers in oh-my-pi’s ~/.omp/agent/models.yml. Keep
that setup in a dotfiles repository and let Firebrick apply it in every sandbox,
instead of setting it up again after each fbk rm.
-
Manage the dotfiles with mise dotfiles: a
mise.tomlin the repository maps each file to its place in the home directory. Install the agent through a global mise config that the dotfiles bring along, so every sandbox gets it:~/dotfiles/mise.toml [dotfiles]"~/.gitconfig" = { source = "git/config", mode = "copy" }"~/.bashrc" = { source = "bashrc" }"~/.config/mise/config.toml" = { source = "mise/global.toml", mode = "copy" }"~/.omp/agent/models.yml" = { source = "omp/models.yml", mode = "copy" }~/dotfiles/mise/global.toml [tools]"github:can1357/oh-my-pi" = "latest" -
Point
mise.configat the repository in.firebrick.yml:mise:config: ~/dotfiles -
Allow the hosts mise downloads from, and the agent’s model provider:
Terminal window fbk network presets apply mise githubfbk network allow api.example-provider.com -
Start the sandbox, approve the dotfiles mount when
fbk startasks, and run the agent:Terminal window fbk startfbk run omp
Firebrick mounts the directory read-only at /opt/firebrick/dotfiles and
applies it each time the sandbox starts, before it installs the tools. The agent
can read every file in the directory, so keep keys and tokens out of it and give
the agent its API key with fbk secret instead. See
Dotfiles.
Use mode = "copy" for files the agent or fbk writes to. A file without it is
a symlink into the read-only mount, so writes to it fail. That includes
~/.gitconfig: fbk writes your git identity to it on every fbk start.
Dotfiles or a mount
Section titled “Dotfiles or a mount”Dotfiles suit settings that should be the same in every sandbox and that the
agent shouldn’t change. Use a mounts
entry instead when the sandbox needs a host directory as it is, such as a shared
library of skills or prompts, or needs to write back to it:
mounts: - host: ~/omp-skills guest: /home/agent/.omp/skills readonly: trueLeave out readonly only for directories you’d let the agent change. Don’t
mount your whole home directory or a directory with credentials: the agent can
read everything in a mount. fbk start asks you to approve each new mount. See
Approving settings changes.
Your git identity
Section titled “Your git identity”You don’t need dotfiles for the commit author. fbk start and fbk run copy
user.name and user.email from the host, the way git reads them in the
project directory, to the sandbox each time they start it. Your other git
settings, such as aliases and signing keys, stay on the host unless your
dotfiles bring them. See Git identity.
Using an IDE connected to the sandbox
Section titled “Using an IDE connected to the sandbox”An IDE with remote development over SSH runs its backend, terminals and extensions in the sandbox, so its integrated agent, such as GitHub Copilot, works on the files in the sandbox instead of on your host.
-
Allow the hosts the agent needs, and give the agent its token as a secret when it reads one from the environment. For GitHub Copilot:
Terminal window fbk network presets apply copilot github vscodegh auth token | fbk secret set COPILOT_GITHUB_TOKEN --from-stdinvscodelets VS Code install extensions in the sandbox; applyjetbrainsinstead for a JetBrains IDE.COPILOT_GITHUB_TOKENis allowed on GitHub and*.githubcopilot.comby default. See Allowed hosts. -
Start the sandbox.
fbk startprints the commands that open the workspace:Terminal window $ fbk startConnect with: ssh my-app.fbkOpen in VS Code: code --folder-uri vscode-remote://ssh-remote+my-app.fbk/workspaces/my-appOpen in Zed: zed ssh://my-app.fbk/workspaces/my-app -
Open the workspace at
/workspaces/<leaf>on the<leaf>.fbkhost. In VS Code and Zed, run the printed command; for Cursor, replacecodewithcursor. In a JetBrains IDE, create an SSH connection tomy-app.fbkin Gateway or under File | Remote Development. See Editor support. -
Sign the agent in. The IDE’s own sign-in for an extension stores its token in the sandbox, where the agent can read it. To keep the token out, run the agent’s CLI in the IDE’s terminal instead, such as the GitHub Copilot CLI (
mise use -g copilot), which usesCOPILOT_GITHUB_TOKEN.
The IDE downloads its server and extensions into the sandbox the first time it
connects. With the network policy enforced, check fbk network log for the
hosts it was denied and allow them. The IDE backend needs memory, so raise
resources.memory in .firebrick.yml for larger IDEs; see
Configuration.