Bifra

Quickstart

Turn any source into a hosted, typed REST + MCP API an agent can use.

Bifra turns any source — a website today, and PDFs, podcasts, and auth-gated dashboards next — into a hosted, typed REST API and an MCP server an agent can use. An agent studies the source, proposes a typed spec you approve, then builds, deploys, and verifies a live API.

Install

pnpm --filter @bifra/cli build
cd packages/cli && pnpm link --global

Configure your keys

Bifra needs an Anthropic key (the build agent), a Steel key (the browser used to study a source), and a Cloudflare account + API token (where APIs deploy).

bifra setup      # stored in ~/.bifra/config.json (chmod 600)
bifra doctor     # validates each key against its API

You can also use BIFRA_* environment variables instead of bifra setup.

Build your first API

bifra https://quotes.toscrape.com/scroll --goal "list quotes with pagination"

You'll watch the agent move through study → spec → build → deploy → verify, approve the proposed spec, and get a live URL plus curl examples and an MCP endpoint. It's both a REST API and an MCP server — no extra work.

Where the agent runs

By default the agent loop runs on your machine (the Claude Agent SDK). Pass --managed to run the same agent on Anthropic's Managed Agents sandbox instead — same prompt, same tools, only the sandbox changes.

Next steps

On this page