Concepts

Recipes

Ready-made stacks that return connection strings, not Dockerfiles.

A recipe is a ready-made stack your agent asks for by name. It starts one or more briqs, waits until they are healthy, and returns outputs: the connection strings and credentials your code needs. Every recipe has a page in the cookbook.

briq run postgres
briq_run({ recipe: "postgres", wait: true })
→ bq_7kq2m9x1p4ab db (postgres:16) running · …internal · cost so far … · sleeps at 18:42 UTC unless used
  outputs:
    DATABASE_URL=postgres://postgres:…@…internal:5432/app
    PGHOST=…internal
    PGPORT=5432
    …
curl -X POST https://api.briq.cloud/v1/briqs \
  -H "Authorization: Bearer $BRIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipe": "postgres", "wait": true}'
  • Fields are those of the service it makes, as a GitHub Actions service, and all have defaults, so the bare name always works. Set one to change what you get: image: "postgres:17", or image: "pgvector/pgvector:pg16" for pgvector; env, cmd, size. A recipe of several services takes them on its front door.
  • Disk: every recipe that keeps data has a volume. Defaults are small (1 to 5 GB); ask for what the data needs when you create it, volume: { gb: 20 }, since the size is set then and counts toward your plan's disk.
  • Your code: a language recipe (python, node, …) takes files, or checkout for a repo, with steps and cmd, as a GitHub Actions job: Run your own app.
  • Secrets are generated per run, returned once, and masked in status, logs and audit.
  • Outputs are private addresses: they work as is from any briq of the same stack (use briq_exec, or run your code in a briq of the same stack), not from outside.
  • expose ("private", or "public" for anyone) publishes the recipe's front door, when it has one (a dashboard, a wiki), and adds URL to the outputs. Databases have none, and asking fails.

Change a field

briq run postgres --image postgres:17
briq_run({ recipe: "postgres", image: "postgres:17" })
curl -X POST https://api.briq.cloud/v1/briqs \
  -H "Authorization: Bearer $BRIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipe": "postgres", "image": "postgres:17", "wait": true}'

List recipes with briq catalog, briq_catalog, or GET /v1/recipes. For a recipe's fields, defaults and outputs, pass its name: briq catalog postgres, briq_catalog({ name: "postgres" }), or GET /v1/recipes/postgres. A stack file service uses the same recipe and fields.

Recipe or image?

Use a recipe when one fits: you get the healthcheck, credentials and connection strings for free. Your own code runs on a language recipe, with no image to build. Otherwise pass any image to briq_run with its own env, ports, files, volume and healthcheck (spec).

On this page

Free to try

Try briq, on us.

Every new account starts with €10 of credits. No card.

Start building

How can we help?

Message to the briq team