Audience: Federal teams using AI coding agents
Purpose: Get AI coding agents running safely inside isolated sandboxes, connected to USAi (the GSA-hosted LLM gateway atapi.gsa.usai.gov)
In one sentence: this quickstart gets you running an AI coding agent connected to USAi in under 5 minutes, using acq, a CLI tool provided here.
acq is the entry point. It runs your agent inside an isolated sandbox and
configures the environment for federal usage. To provide that isolation, it uses msb
(microsandbox), a lightweight, open-source microVM runtime.
acq is designed to support multiple isolation backends. A Docker Sandboxes (
sbx) backend is also supported. See docs/howto/sbx.md for sbx setup and docs/BACKEND_GUIDE.md for how the two backends compare.
Your journey: This repository is part of a three-repo ecosystem.
| Repo | Purpose | When to Use |
|---|---|---|
| Quickstart (you are here) | Get running | First day setup, sandboxing + USAi config |
| Playbook | Do it right | Repo setup, standards, best practices |
| Patterns | Share & learn | Community patterns, lessons learned |
Once you complete this Quickstart to get your environment working, use the Playbook to set up your projects properly, and visit Patterns to share what you learn.
AI coding agents can read files, write code, and execute commands. That makes them potent agents of chaos if they're compromised. Running them in sandboxes provides:
- Isolation — Agent shouldn't be able to access the full host system; they should be limited both the filesystem and network access
- Secret protection — Secrets are injected into outgoing requests, so the actual secret is never available to the agent for exfiltration
- Reproducibility — Agents should have a consistent configuration tailored to their operating context every time they run
- Audit trail — Hard boundaries for what the agent can do, potentially logging violations
For the full comparison of the two backends and their tradeoffs, see docs/BACKEND_GUIDE.md.
You'll do three things: open a terminal, install acq, and run it.
You do not need to be a developer. Windows support is currently a preview
path for Windows 11 machines with virtualization enabled (see Step 1).
Open a terminal — Terminal (macOS) or PowerShell (Windows). You'll type (or paste) the commands below into this window.
Before you start: the sandbox runs on your machine's hardware virtualization. Apple Silicon Macs are ready to go. Windows 11 needs the Windows Hypervisor Platform enabled — see the box below. Linux needs KVM (
/dev/kvm). For the full platform requirements, see supported hosts.
Windows: enable virtualization (click to expand)
The sandbox runs a lightweight microVM using the Windows Hypervisor Platform (WHP). Your Windows 11 machine needs it enabled. Open an elevated PowerShell window — in the Start menu, right-click PowerShell and choose Run as administrator — then run:
# Enable WHP, then restart your computer.
Enable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform -AllRestart when it finishes. After that, the installer (or msb doctor) will confirm
the host is ready. On a work or managed device you may not be able to enable it
yourself — ask your IT administrator to turn on "Windows Hypervisor Platform."
If it can't be enabled, the installer stops with a clear message telling you so.
Run the one-line installer for your shell.
Terminal (macOS/Linux):
curl -fsSL https://github.com/GSA-TTS/agentic-coding-quickstart/releases/download/v3.1.0/install.sh | shPowerShell (Windows):
irm https://github.com/GSA-TTS/agentic-coding-quickstart/releases/download/v3.1.0/install.ps1 | iexThat's it — you don't have to choose how to install. The installer:
- picks the best method already on your computer — Homebrew or npm on macOS/Linux, or the GitHub release zip on Windows — so you get automatic upgrades/uninstall if you already use a package manager, and a working setup either way,
- puts the
acqcommand on your computer so you can run it from any folder, - installs anything
acqneeds to run — the sandbox runtime, and on Windows a small Linux-style shell — asking before each change, and never needing administrator rights.
Answer "yes" to each prompt — it may take a few minutes. When it finishes,
close and reopen your terminal so the new acq command is available, then
continue to Step 3. (On Windows, the installer stops with clear guidance if
virtualization isn't enabled — see the box in Step 1. And if a later acq
command reports that running scripts is disabled, that's PowerShell's
execution policy, not acq — see the PSSecurityException box in
First-Run Snags.)
Prompted to install "Command Line Tools"? (click to expand)
acq needs Apple's Command Line Tools (they provide git, which acq uses).
If they aren't installed yet, the installer starts them for you and waits
while they install — you'll see a window titled "Install Command Line
Developer Tools." Click Install and accept the license. No administrator
rights are required.
Can't find the window? It sometimes opens minimized in your Dock rather than in front of you — look there. The installer keeps waiting until the tools finish, then continues on its own.
Prefer to look before you run it? (recommended) (click to expand)
You never have to pipe a script straight into your shell. If you have the GitHub
CLI (gh), you can also verify the release asset attestations before running
anything:
ACQ_VERSION=3.1.0 # x-release-please-version
curl -fsSLO "https://github.com/GSA-TTS/agentic-coding-quickstart/releases/download/v${ACQ_VERSION}/install.sh"
curl -fsSLO "https://github.com/GSA-TTS/agentic-coding-quickstart/releases/download/v${ACQ_VERSION}/SHA256SUMS"
gh attestation verify install.sh --repo GSA-TTS/agentic-coding-quickstart
gh attestation verify SHA256SUMS --repo GSA-TTS/agentic-coding-quickstart
shasum -a 256 -c --ignore-missing SHA256SUMS
less install.sh # read it
sh install.sh --dry-run # show what it WOULD do, changing nothing
sh install.sh # actually installBy default, the macOS/Linux installer uses the best package manager already
available on your host: Homebrew, then npm, then a managed git clone. Homebrew
and npm rely on the published package/formula release path. The release asset's
baked commit SHA is used only by the clone fallback (or --method clone) to
verify that the clone landed on the release commit embedded in the installer. To
pin to an independent, explicit commit, use --method clone --sha <40-char-commit>.
For Windows preview installs, download and inspect the PowerShell installer instead:
$AcqVersion = "3.1.0" # x-release-please-version
$BaseUrl = "https://github.com/GSA-TTS/agentic-coding-quickstart/releases/download/v$AcqVersion"
Invoke-WebRequest "$BaseUrl/install.ps1" -OutFile install.ps1
Get-Content .\install.ps1
.\install.ps1 -DryRun
.\install.ps1SHA256SUMS also lists install.ps1 and the Windows zip, so the macOS/Linux
check above uses --ignore-missing to skip entries you didn't download.
Running .\install.ps1 (and the installed acq command, via acq.cmd) needs a
PowerShell execution policy that permits local scripts; on a default Windows 11
client that is Restricted, and the commands fail with PSSecurityException
until you allow scripts — see the execution-policy note in
First-Run Snags. The irm ... | iex one-liner is unaffected
(piped text is not a script file).
Already use Homebrew or Node, or prefer to run from a clone? The one-line installer detects and uses whichever package manager you have. For the direct commands, a manual clone install, or testing a tagged release, see Installing acq.
Point acq at the folder you want the agent to work in. The easiest is the
folder you're already in:
acq run opencode .To use a new folder, create it with mkdir my-project, move into it with
cd my-project, then run acq run opencode . there. (These commands work in
both PowerShell and the macOS/Linux terminal.)
That's it — you're now running an AI coding agent with USAi access and restricted filesystem and network access. Repeat Step 3 for each project.
Note
The first run takes a minute or two. acq boots a microVM, installs the
coding agent, and fetches its configuration kits, showing progress as it goes.
Later runs against the same project are much faster.
On first run, acq sets you up interactively — nothing to configure beforehand:
- USAi key —
acqprompts you to paste a key and validates it. Create one at the USAi key console (keys expire every 7 days). - GitHub token — when your project contains GitHub repos,
acqoffers to walk you through creating a repo-scoped token. You can decline and add one later. - Git signing —
acqwarns if your commits won't sign/verify correctly, and tells you how to fix it.
acq injects secrets into the sandbox at runtime — the real values never enter
the guest.
The things a first-timer most often hits are below. For everything else (expired USAi keys, DNS resolution, unverified commits, stale branches, wrong providers, auth/TLS failures, and more), see docs/KNOWN_FAILURE_MODES.md.
"no such file or directory: ./acq" (click to expand)
This means acq isn't where you're typing the command. Two fixes:
- Recommended: install
acqwith the one-line installer in Step 2. Then runacq(no./) from any folder. - If you cloned manually:
./acqonly works from inside theagentic-coding-quickstartfolder — that's where theacqfile lives.cdback into it first (cd ~/agentic-coding-quickstart, or wherever you cloned it), then run./acq run opencode ~/my-project.
"No developer tools were found" / git won't run (click to expand)
The first time your Mac uses git, it installs the Command Line Tools. If you
see xcode-select: note: No developer tools were found, requesting install,
run:
xcode-select --installA pop-up window titled "Install Command Line Developer Tools" appears — click Install and accept the license. If you can't find the window, look in your Dock — it sometimes opens minimized there rather than in front of you. When it finishes, re-run your command. (No administrator rights are required.)
"acq is not recognized as the name of a cmdlet" (Windows)
This means the new acq command isn't on your PATH in this window. Close and
reopen PowerShell, then try again. If it still isn't found, re-run the Step 2
installer and answer yes when it asks to add acq to your PATH.
"...cannot be loaded because running scripts is disabled on this system" (Windows)
This is PowerShell's execution policy blocking a .ps1 file. Windows 11
client defaults to Restricted, which refuses to run script files — so the
inspect-first steps (.\install.ps1 -DryRun, .\install.ps1) and the installed
acq command (which runs through acq.cmd) all fail with PSSecurityException.
The irm ... | iex one-liner still works, because piped text is not a script
file.
To allow local scripts for your user only, then re-run the command:
Set-ExecutionPolicy -Scope CurrentUser RemoteSignedRemoteSigned runs local scripts but still requires a signature on scripts
downloaded from the internet. On a managed device the policy may be set by
Group Policy — ask your IT administrator rather than changing it yourself.
"Windows Hypervisor Platform is not enabled" (Windows)
The sandbox can't start without virtualization. Enable it from an elevated
PowerShell (Enable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform -All), restart your computer, and try again — see the box in
Step 1. On a managed device, ask your IT administrator to enable it.
- How it works, customizing, extra kits, optional integrations (web UI, editors): docs/CONCEPTS.md
- Deeper
acqhow-to, backend selection, manual install, Windows preview validation: docs/howto/acq.md - Choosing between the msb and sbx backends: docs/BACKEND_GUIDE.md
- Working across multiple repos: Multiple Workspaces
- Set up your project properly — Use the Playbook
- Share what you learn — Contribute to the Patterns repo
- Help improve these docs — Found something unclear? Open an issue or submit a PR
Once in a while, refresh your setup to pick up updates (via your package manager,
or git fetch && git pull in a clone), and
rotate your USAi key when it expires
(every 7 days).
The playbook also provides reusable agent skills — step-by-step procedures
for common tasks, following the agentskills.io
standard. When you launch a sandbox with acq, the agentic-coding-playbook kit
symlinks these into ~/.agents/skills so your agent discovers them automatically
— no separate checkout needed.
| Source | Skills | Examples |
|---|---|---|
| Playbook | Federal compliance, security | federal-security-controls-lookup, ato-package, code-review, cloudgov-deploy |
| Patterns | Development workflows | accessibility-review, uswds-prototype, test-generation, secure-code-review |
- Troubleshooting: docs/KNOWN_FAILURE_MODES.md
- Agent behavior: AGENTS.md
- Contributing: CONTRIBUTING.md
- Questions: Open a GitHub issue
- Platform issues: support@usai.gov
Data Classification: Internal/Non-sensitive — the Quickstart is a local development environment for building Low/Moderate-impact code and projects, not an authorized production/hosted environment (no PII, no CUI).