Quickstart
Start a sandbox from your terminal, create API keys, or connect an MCP client.
Start an isolated Linux sandbox from your terminal:
npm install -g @briq-cloud/cli
briq login
briq run sandboxbriq login prints a sign-in link. Open it, pick a team, check the code, and approve the CLI.
The last command returns the sandbox's ID. Use it to run a command:
briq exec <sandbox-id> -- python3 -c 'print(2 ** 10)'
briq stop <sandbox-id>The stopped sandbox keeps its disk. briq start <sandbox-id> runs it again.
See the CLI reference for files, forks, and interactive shells.
For a service, run briq run postgres or briq run redis.
The cookbook lists the available recipes.
API keys
Create an account from the dashboard, then open API keys and create a key.
Use BRIQ_API_KEY in scripts and CI, or send it as a Bearer token to the REST API.
export BRIQ_API_KEY=bq_live_…
briq listConnect an MCP client
briq's MCP server is https://api.briq.cloud/mcphttps://api.stg.briq.cloud/mcphttp://localhost:3001/mcp. Connect your client directly:
Add briq to Claude
In Claude: Settings → Connectors → Add custom connector.Name it briq-stg, paste this URL, then click Connect.
https://api.stg.briq.cloud/mcp
In Claude: Settings → Connectors → Add custom connector.Name it briq-local, paste this URL, then click Connect.
http://localhost:3001/mcp
Connect Claude to briq
Sign in, or create your account and claim your €10 of free credits.
Connect Cursor to briq
Sign in, or create your account and claim your €10 of free credits.
Connect VS Code to briq
Sign in, or create your account and claim your €10 of free credits.
Paste this prompt into your agent
Add the briq MCP server to your config: - name: "briq" - url: https://api.briq.cloud/mcp (Streamable HTTP, OAuth) - for all my projects Then tell me what to do next to connect and activate it. If needed, read the setup instructions for agents: https://briq.cloud/docs/setup/agents.md
Add the briq MCP server to your config: - name: "briq-stg" - url: https://api.stg.briq.cloud/mcp (Streamable HTTP, OAuth) - for all my projects Then tell me what to do next to connect and activate it. If needed, read the setup instructions for agents: https://stg.briq.cloud/docs/setup/agents.md
Add the briq MCP server to your config: - name: "briq-local" - url: http://localhost:3001/mcp (Streamable HTTP, OAuth) - for all my projects Then tell me what to do next to connect and activate it. If needed, read the setup instructions for agents: http://localhost:3000/docs/setup/agents.md
Follow your agent's next steps
Usually a restart, then a link to sign in.
Try it
Deploy briq-cloud/wall github repo on briq (https://briq.cloud/docs/guides/run-a-github-repo.md) and give me a link to it.
Deploy briq-cloud/wall github repo on briq (https://stg.briq.cloud/docs/guides/run-a-github-repo.md) and give me a link to it.
Deploy briq-cloud/wall github repo on briq (http://localhost:3000/docs/guides/run-a-github-repo.md) and give me a link to it.
Start a sandbox on briq (https://briq.cloud/cookbook/sandbox.md), clone this project into it, run the test suite there instead of on my machine, and tell me what fails.
Start a sandbox on briq (https://stg.briq.cloud/cookbook/sandbox.md), clone this project into it, run the test suite there instead of on my machine, and tell me what fails.
Start a sandbox on briq (http://localhost:3000/cookbook/sandbox.md), clone this project into it, run the test suite there instead of on my machine, and tell me what fails.
Start DuckDB on briq (https://briq.cloud/cookbook/duckdb.md), load 'Our World in Data' energy dataset into it, generate a report on world energy generation, and share it with me.
Start DuckDB on briq (https://stg.briq.cloud/cookbook/duckdb.md), load 'Our World in Data' energy dataset into it, generate a report on world energy generation, and share it with me.
Start DuckDB on briq (http://localhost:3000/cookbook/duckdb.md), load 'Our World in Data' energy dataset into it, generate a report on world energy generation, and share it with me.
DuckDB is an open-source analytics database; the dashboards are written in SQL.
Start a Postgres for this project on briq (https://briq.cloud/cookbook/postgres.md) and connect the app to it.
Start a Postgres for this project on briq (https://stg.briq.cloud/cookbook/postgres.md) and connect the app to it.
Start a Postgres for this project on briq (http://localhost:3000/cookbook/postgres.md) and connect the app to it.
Run this app on briq (https://briq.cloud/cookbook/node.md) and give me a preview link.
Run this app on briq (https://stg.briq.cloud/cookbook/node.md) and give me a preview link.
Run this app on briq (http://localhost:3000/cookbook/node.md) and give me a preview link.
Start a SiYuan notebook on briq (https://briq.cloud/cookbook/siyuan.md), keep your notes on this project in it, and give me a link to browse them.
Start a SiYuan notebook on briq (https://stg.briq.cloud/cookbook/siyuan.md), keep your notes on this project in it, and give me a link to browse them.
Start a SiYuan notebook on briq (http://localhost:3000/cookbook/siyuan.md), keep your notes on this project in it, and give me a link to browse them.
SiYuan is an open-source notes app, like Obsidian.
For other agents, the prompt gives the server's name and URL, and the agent adds briq to its own config. To do it yourself, see Clients.
Sign in
In Claude, the sign-in opens when you connect briq. Other agents tell you when: usually after a restart, or the first time they use briq. Sign in (or create an account; Google and GitHub work) and approve the client for a team, with its budget. The client keeps the sign-in; the model never sees it.
An agent that runs elsewhere (on a server, or behind a chat app) cannot open your browser. It sends you a link and a code instead: open the link on any device, check the code matches the one it showed you, and approve.
The client then appears on the dashboard's Agents & CLI page, where you change its limits or revoke it. See Access and policy.
Run through MCP
The client lists the briq_* tools and a briq_getting_started prompt. The tool descriptions
already tell the model how to use them; you do not need to write instructions.
Ask for something that needs a real service:
Spin up a Postgres, apply the migrations in
db/migrations, and tell me if they are clean.
briq_run({ recipe: "postgres" })
→ 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
briq_files_put({ briq: "bq_7kq2m9x1p4ab", path: "/m/001_init.sql", contentBase64: "…" })
briq_exec({ briq: "bq_7kq2m9x1p4ab", cmd: ["psql", "-U", "postgres", "-d", "app", "-v", "ON_ERROR_STOP=1", "-f", "/m/001_init.sql"] })
→ exit 0
CREATE TABLE
CREATE INDEX
briq_destroy({ briq: "bq_7kq2m9x1p4ab" })
→ bq_7kq2m9x1p4ab db (postgres:16) destroyed · …internal · cost so far …briq_runreturns once the recipe's healthcheck passes, so the database is ready.- Credentials are generated per run and returned once; they are masked in status, logs and audit.
DATABASE_URLis a private address, reachable from briqs of the same stack, not from your machine. Run commands withbriq_exec, or run your code in a briq of the same stack.- If the agent forgets
briq_destroy, the briq goes to sleep after an hour unused and costs nothing until something uses it again.
Watch it
The dashboard shows running briqs, spend and the audit log (one row per call, with agent, action, target and cost). Stop, change when it sleeps, or destroy anything from there.
REST API
Every MCP tool is a REST call:
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 }'
curl -X POST https://api.briq.cloud/v1/briqs/bq_7kq2m9x1p4ab/exec \
-H "Authorization: Bearer $BRIQ_API_KEY" -H "Content-Type: application/json" \
-d '{ "cmd": ["psql", "-U", "postgres", "-c", "select 1"] }'
curl -X DELETE https://api.briq.cloud/v1/briqs/bq_7kq2m9x1p4ab \
-H "Authorization: Bearer $BRIQ_API_KEY"