Get started
Install
Run Riskbound on your own machine: the API, the dashboard, Postgres and
Redis, and the MCP gateway if you want it. Everything runs in Docker,
bound to 127.0.0.1.
What you need#
- Docker with Compose v2: Docker Desktop, or Docker Engine with the compose plugin on Linux.
- Nothing else. The installer brings the
riskboundcommand.
1. Install the command#
curl -fsSL https://riskbound.ai/install.sh | shThe script checks for Docker, downloads the riskbound binary for your
system from the GitHub release, checks it against the release's
SHA256SUMS, and puts it in ~/.local/bin. If there is no binary for your
system, it uses npm install -g riskbound into the same place. It never
uses sudo unless you ask, and it sends nothing anywhere.
Read it first if you like: it is short. These options change what it does:
| Option | What it does |
|---|---|
--dry-run | Prints what would happen and changes nothing |
--version <tag> | Installs this release, for example v0.1.0. Default: the latest |
--dir <path> | Where to put the command. Default: ~/.local/bin |
--sudo | Uses sudo to write to --dir, for /usr/local/bin |
--npm | Skips the binary and installs with npm |
curl -fsSL https://riskbound.ai/install.sh | sh -s -- --dry-runFrom a checkout of the repository, sh install.sh does the same. With
Node 22 or later you can skip the installer and run npx riskbound <command>.
2. Make the install folder#
riskbound initinit makes ~/.riskbound/: the compose file, a .env with fresh
secrets, config.json, and the public key for your evidence. The signing
key is made on your machine.
3. Start Riskbound#
riskbound upup pulls the images, applies the database migrations, starts everything,
waits until it is healthy, and prints:
Riskbound is running.
Dashboard http://localhost:3210
API http://localhost:8000
Admin key rb_admin_...
Saved to ~/.riskbound/credentials (mode 600). It is not shown again.Sign in to the dashboard with that key. Add --gateway to start the MCP
gateway too.
4. Give your agent a key and a rule#
Make a key for your agent. The agent key can ask for decisions and nothing else; it can never approve its own requests.
riskbound keys create --agent support-botTry a policy before it goes live. Take refunds.cedar from the
refunds template:
riskbound policy test refunds.cedar --tool refund --params '{"amount_minor": 48000}'When it does what you want, make it live:
riskbound policy push refunds.cedarNext steps#
- Wrap your first action with the SDK: Quickstart with the SDK.
- Put the gateway in front of an MCP tool server: Quickstart with the gateway.
- Every command, the install folder and how to upgrade: the CLI reference.
riskbound down stops everything and keeps your data. riskbound upgrade
moves to a newer release.