RiskboundDocs

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 riskbound command.

1. Install the command#

bash
curl -fsSL https://riskbound.ai/install.sh | sh

The 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:

OptionWhat it does
--dry-runPrints 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
--sudoUses sudo to write to --dir, for /usr/local/bin
--npmSkips the binary and installs with npm
bash
curl -fsSL https://riskbound.ai/install.sh | sh -s -- --dry-run

From 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#

bash
riskbound init

init 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#

bash
riskbound up

up 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.

bash
riskbound keys create --agent support-bot

Try a policy before it goes live. Take refunds.cedar from the refunds template:

bash
riskbound policy test refunds.cedar --tool refund --params '{"amount_minor": 48000}'

When it does what you want, make it live:

bash
riskbound policy push refunds.cedar

Next steps#

riskbound down stops everything and keeps your data. riskbound upgrade moves to a newer release.