Install and build your first project
You need Node.js 24 or newer (which includes npm) and Git.
This guide uses npm 0.5.1 with a provider you choose. Already using OpenCode? See the separate OpenCode source guide, which uses your existing model and account. That connection is not in npm 0.5.1.
Install Foundry
Section titled “Install Foundry”Run these two commands in your computer’s terminal:
npm install -g @dabhiram13/foundryfoundryThe first installs Foundry. The second opens it. -g makes the command
available from any folder.
When you see foundry>, you are inside Foundry. Commands there start with
/. Type /help for help
or /exit to return to your computer’s terminal.
Choose a provider
Section titled “Choose a provider”Foundry organizes the steps. The provider you choose does the work. An adapter is the connection that lets Foundry use that provider’s tools.
Inside Foundry, list the available connections:
/providersChoose an adapter that supports project work. Install its runtime and follow the provider’s sign-in instructions in another terminal. The provider guide covers the bundled connection and adding others. An installed executable still needs the right account access. Keep passwords and API keys out of Foundry commands and project files.
Project workflows use local or subscription-backed adapters. An arbitrary AI CLI or API key needs a compatible adapter before Foundry can use it. For a custom model endpoint, use the coding-client path and configure the endpoint there. Foundry does not turn a raw model API into a coding agent. See what works today.
Create a project
Section titled “Create a project”Inside Foundry, type these commands one at a time:
/new reading-list --idea "Save links and mark them read" --adapter PROVIDER/use reading-listReplace PROVIDER with the adapter name from /providers. --idea supplies
your description. /new creates a project folder; /use selects it. Neither starts AI.
New projects are saved under ~/.foundry/products in your home folder.
For a subscription-backed adapter, confirm that this project may use your account:
/configure --billing subscription --confirmedThis records permission to use your subscription for this project. Check that your provider is signed in to the account you intend to use before confirming. Local adapters do not need subscription consent.
Foundry leaves model selection to the provider unless you set --model MODEL
when creating or configuring a project. Use a model name supported by that adapter.
Run and approve the work
Section titled “Run and approve the work”Start the workflow:
/runWait for the project to reach its approval step. Foundry researches the idea and writes a plan, then pauses. The prompt shows the current stage and status. Read the plan:
/reviewIf you accept what you read, approve it and continue:
/approve/runFoundry next prepares the design and pauses again. Use /review, read it,
then /approve and /run when satisfied. Approval applies to the exact
document you reviewed in this terminal; changed documents need another review.
To change a plan, edit the saved document in your editor and review it again
before approving.
After both approvals, Foundry builds in small tasks, runs checks and attempts limited repairs. It stops if work fails or needs recovery. The final Ship step writes a local summary; it does not publish or deploy your project. See how Foundry works for what each stage does.
Use /stop to interrupt work, /projects to list projects and /exit to
leave. To return later, open foundry, then /use reading-list. Interrupted
work may need /recover before /run.
Update or uninstall
Section titled “Update or uninstall”Stop active work first. Run these in your computer’s terminal, not inside Foundry. To update, use the same install command:
npm install -g @dabhiram13/foundryCheck the installed version with foundry --version. To remove the command:
npm uninstall -g @dabhiram13/foundryUninstalling does not delete your projects. Back up important projects before changing versions.
Troubleshooting and next steps
Section titled “Troubleshooting and next steps”- Command not found or permission error: use a Node version manager or a
user-writable npm installation; do not retry with
sudo. See npm’s installation permissions guide. - Previously used
npm link: runnpm unlink -g @dabhiram13/foundrybefore installing the published package. Keep any edits in your source checkout. - Already have a repository? Follow existing projects for manual scoped work, or connected work inside OpenCode. Neither silently starts the adapter-driven new-product workflow in that repository.
- Looking for Homebrew? No tap or formula is available yet. Use npm for the published CLI, or the source preview for the coding-client connection.
- Want shell commands or scripts instead? Use the command reference.
- Want to change Foundry itself? Use contributor setup.