# Brainbacked > The security layer for coding agents. 12 security checks (dependencies, leaked secrets, CI workflows, SBOM, cryptography, email, TLS, websites, domains) as one API, paid per call from a prepaid balance. REST at https://api.brainbacked.com and MCP at https://api.brainbacked.com/mcp, both with `Authorization: Bearer `. Listed on the MCP Registry as com.brainbacked/security. If a person asked you to "set up brainbacked", follow these steps. Ask the person before steps that need their email or change their configuration. ## 1. Get an API key Ask the person which email address to use, then: ```sh curl -s -X POST https://api.brainbacked.com/v1/signup -H "content-type: application/json" -d '{"email":""}' # {"account_id":"acct_...","api_key":"sk_...","starter_credit_usd":0.5} ``` The key is shown once and cannot be recovered. Store it where the person keeps secrets, for example `export BRAINBACKED_API_KEY=sk_...` in their shell profile, never in source code. New keys come with $0.50 of starter credit. One account per email address. ## 2. Add the MCP server Claude Code: ```sh claude mcp add --transport http brainbacked https://api.brainbacked.com/mcp --header "Authorization: Bearer $BRAINBACKED_API_KEY" ``` Cursor (`.cursor/mcp.json` or `~/.cursor/mcp.json`): ```json { "mcpServers": { "brainbacked": { "url": "https://api.brainbacked.com/mcp", "headers": { "Authorization": "Bearer ${env:BRAINBACKED_API_KEY}" } } } } ``` Codex (`~/.codex/config.toml`): ```toml [mcp_servers.brainbacked] url = "https://api.brainbacked.com/mcp" bearer_token_env_var = "BRAINBACKED_API_KEY" ``` MCP tools: search_capabilities, get_capability, upload_file, run, balance. Flow: search_capabilities, then get_capability for the input schema and price, then run with max_usd at least the stated maximum. ## 3. Or use REST ```sh curl -s https://api.brainbacked.com/v1/runs -H "Authorization: Bearer $BRAINBACKED_API_KEY" -H "content-type: application/json" \ -d '{"capability":"vuln.package","input":{"ecosystem":"npm","name":"lodash","version":"4.17.20"},"max_usd":0.0005}' ``` - `GET https://api.brainbacked.com/v1/capabilities` and `GET https://api.brainbacked.com/v1/capabilities/{id}`: input schema (JSON Schema), price, maximum cost, data and network policy. - `POST https://api.brainbacked.com/v1/runs` with `capability`, `input`, `max_usd` (required: the most you accept to pay). Returns the findings report. - For code checks, zip the repository (`git archive --format=zip HEAD -o repo.zip`), upload it with `POST https://api.brainbacked.com/v1/files?name=repo.zip` (raw bytes, up to 20 MB), and pass the returned id as `input.file`. - `GET https://api.brainbacked.com/v1/balance`: available, held and spent credit. ## How to read results Every check returns one findings format (schema security-findings/v1): severity, evidence, remediation, a basis (observed, deterministic, pattern), and coverage (what was and was not checked). Dependency findings carry a fix-first priority from CISA KEV and FIRST EPSS. A clean result means the checks found nothing, not that the target is secure; say so when you report it. Failed runs are free. Add credit: a person pays $10, $25 or $100 at https://brainbacked.com/credit, or an agent gets a payment link from the add_credit MCP tool or POST /v1/billing/checkout {"usd": 25} and gives it to the person. Never pay on your own. Only check hosts and domains the person owns or may test. Checks that contact a named host are rate limited, and owners can opt out (https://brainbacked.com/trust). ## Capabilities - [vuln.package](https://brainbacked.com/capabilities/vuln.package): Check one package version for known vulnerabilities. $0.0005 per call; max $0.0005 per run. - [vuln.dependencies](https://brainbacked.com/capabilities/vuln.dependencies): Check a lockfile for vulnerable dependencies. $0.00002 per dependency, at least $0.002 and at most $0.10 per run; max $0.10 per run. - [repo.dependencies](https://brainbacked.com/capabilities/repo.dependencies): Check every lockfile in a repository for vulnerable dependencies. $0.00002 per dependency, at least $0.005 and at most $0.25 per run; max $0.25 per run. - [email.security_check](https://brainbacked.com/capabilities/email.security_check): Check a domain's email security (SPF, DMARC, MTA-STS, DKIM). $0.002 per call; max $0.002 per run. - [tls.check](https://brainbacked.com/capabilities/tls.check): Check a server's TLS and post-quantum readiness. $0.003 per call; max $0.003 per run. - [http.headers](https://brainbacked.com/capabilities/http.headers): Check a website's HTTP security headers and cookies. $0.003 per call; max $0.003 per run. - [domain.security_check](https://brainbacked.com/capabilities/domain.security_check): Check a domain's security in one call: email, TLS and website. $0.006 per call; max $0.006 per run. - [ship.check](https://brainbacked.com/capabilities/ship.check): Ready to ship? One check for a repository and its domain. $0.04 per call; max $0.04 per run. - [secrets.scan](https://brainbacked.com/capabilities/secrets.scan): Find leaked secrets in code or files. $0.001 per MB scanned, at least $0.005 and at most $0.25 per run; max $0.25 per run. - [sbom.generate](https://brainbacked.com/capabilities/sbom.generate): Generate a software bill of materials (SBOM). $0.001 per MB scanned, at least $0.005 and at most $0.25 per run; max $0.25 per run. - [ci.actions_audit](https://brainbacked.com/capabilities/ci.actions_audit): Audit GitHub Actions workflows for security problems. $0.001 per MB scanned, at least $0.005 and at most $0.25 per run; max $0.25 per run. - [crypto.inventory](https://brainbacked.com/capabilities/crypto.inventory): Inventory cryptography in code (post-quantum readiness). $0.001 per MB scanned, at least $0.005 and at most $0.25 per run; max $0.25 per run. ## Docs - [Documentation](https://brainbacked.com/docs): quick start, authentication, runs, files, MCP setup, findings format, errors, limits - [Pricing](https://brainbacked.com/pricing): per-call prices, holds and max_usd - [Trust](https://brainbacked.com/trust): what we connect to, rate limits, opt-out, isolation, retention, data sources ## Optional - [Terms (draft)](https://brainbacked.com/terms) - [Privacy (draft)](https://brainbacked.com/privacy) - [Acceptable use (draft)](https://brainbacked.com/acceptable-use)