B4.run Agent Framework

Build testable, controlled, deployable TypeScript agent apps on LangGraph.js.

Source repo
cacheplane/b4run
Stars
★ 248
Last updated
12d ago v0.15.8
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
TypeScript

At a glance

How it runs
FrameworkSelf-hosted service
Works with
Portable with changesOpenAI API (Partial support)
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Node.js 24 or laternpm 11LangGraph.jsShell / CLINetwork accessLocal filesystem
Typical use
A TypeScript team adopting an existing LangGraph.js graph can expose it incrementally as a raw graph route and validate checkpointer behavior per target.
Not a fit if
  • Teams that require a native Python framework
  • Teams seeking a hosted AI platform
Website
b4.run ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-11latest release v0.15.8 (2026-10-30)
Source review
71/100 · Some gaps

What does this agent do, and when should you use it?

B4.run is a TypeScript framework built around LangGraph.js, adding file-system routes, generated types, local development and testing conventions, and persistence primitives for agents and workflows. Developers define an agent, workflow, graph, or chain in a route's src/app/**/index.ts, with shared tools, route-local tools, and runtime policies available. Tests can replay fixture responses offline; state defaults to SQLite-backed storage, whose persistence across restarts depends on retaining the app root and SQLite files. The default build emits a runnable Node server, a Dockerfile, and LangSmith graph artifacts. It requires Node.js and LangGraph.js; B4.run does not host the app, provision infrastructure, or manage secrets.

Create a TypeScript project with npm create b4-app@latest, then export agent() or another supported entry from a route's index.ts; B4.run discovers the route and generates route, parameter, state, and tool declarations. Put shared tools in src/tools/ or alongside a route, then restrict them with tools.deny or require human approval with tools.approve. Permissions can gate shell commands and file paths outside the workspace, and the optional sandbox isolates workspace tools. Develop with b4 dev and run offline tests with committed fixtures; builds can emit a Node server, Dockerfile, and LangSmith graph artifacts. You must validate the runtime, storage, authentication, and provider boundary for your chosen deployment target.

  1. A TypeScript team adopting an existing LangGraph.js graph can expose it incrementally as a raw graph route and validate checkpointer behavior per target.
  2. A team that needs repeatable local agent tests can replay fixture responses and fail on unmatched interactions instead of silently calling a provider.
  3. Developers building agents with restricted tool access can deny tools, require human approval, and gate operations outside the workspace.
  4. An app that needs state to survive development server restarts can use the default SQLite-backed storage, provided the app root and SQLite files persist.
  5. A TypeScript project preparing a Node deployment can use the default build's server and Dockerfile outputs, then validate its own deployment environment.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Environment variables
OPENAI_API_KEY
Config files
server/.env
Runtime
Node.js 24

How do you install or deploy this agent?

Requires Node.js 24 or later and npm 11. Scaffold and install the starter:

npm create b4-app@latest my-agent
cd my-agent
npm install
npm test

The starter test runs offline with fixtures and needs no API key or model calls. To run the README's live OpenAI navlog example, set OPENAI_API_KEY in server/.env.

How do you use this agent?

Define an agent in a route file, for example:

import { agent } from "@b4run/sdk"

export default agent({
  model: "gpt-5-mini",
  recursionLimit: 100,
  description: "A VFR flight planner for a Cessna 172N…",
  tools: { deny: ["runBash"], approve: [{ tool: "fileFlightPlan", allowAlways: false }] },
  systemPrompt: "You are a VFR flight-planning assistant for a Cessna 172N…",
})

Run the basic starter with npm run dev; set OPENAI_API_KEY for its live model path. The navlog template uses a two-package workspace, with separate commands for the server and Workbench:

npm run dev:server
npm run dev:web

The navlog server listens on port 3002 and the Workbench on port 3010. Its production build and start commands are:

npm run build
npm start

Model credentials depend on the provider; the README also says a local Ollama route needs no provider key.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • File-system routing discovers agent and graph entries, and type generation emits route, parameter, state, and tool declarations during typegen and build.
  • Fixture-backed tests offer deterministic offline replay and fail on unmatched interactions instead of silently calling a model provider.
  • Route policies can deny tools or require human approval; permissions and the optional sandbox put boundaries around shell commands, file paths, and workspace tools.
  • The default build turns application source into a Node server, Dockerfile, and LangSmith graph artifacts.
Limitations
  • The framework requires LangGraph.js and targets TypeScript and Node.js; Python projects need a different approach.
  • B4.run is pre-1.0 and its API surface is moving, so teams need to pin versions and track upgrades.
  • B4.run does not host apps, provision infrastructure, or manage secrets; operators must validate storage, authentication, and provider boundaries for their target.
  • Live model calls may require provider credentials and usage charges; the README's live OpenAI navlog path requires OPENAI_API_KEY.

How does this agent compare with similar options?

Compared with raw LangGraph.js, B4.run adds file-system routing, generated types, local development and testing conventions, persistence primitives, and build targets. Teams that do not want those application conventions or require Python can use raw LangGraph.js directly. Existing LangGraph.js graphs can migrate incrementally as graph routes, with checkpointer behavior validated on each deployment target.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
B4.run Agent Framework This agent 71 · Some gaps FrameworkFree + model costs ★ 248 12d ago TypeScript —
TrueForge 65 · Some gaps CLIFree + model costs ★ 6.6k today TypeScript OpenAI API · Claude API
Omnara Managed Agent Platform 68 · Some gaps Hosted serviceFreemium ★ 3.4k today Go Codex · Claude Code · Claude.ai · OpenAI API · Claude API
FastClaw 63 · Some gaps CLIFree + model costs ★ 1.4k 4d ago Go OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
71/ 100 5-point scale 3.6 / 5
Trust 18/29
Reliability 9/14
Adaptability 14/18
Convention 16/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust18 / 29 · 3.1/5

The README describes tool denial, approval, single-use approval grants, path permissions, and an optional sandbox; examples also show approval gates and isolated workspaces, supporting ordinary-use controls over permissions and external actions, so these criteria receive 2. The sampled files do not show the core implementations, however, so they cannot establish that every path is protected. The README assigns authentication, storage, and secret boundaries to the deployer, and SECURITY.md provides a private vulnerability-reporting route. Evidence is insufficient to establish comprehensive sensitive-data handling or recovery; rollback evidence is limited to release recovery checks. Dependency overrides and CI dependency-security checks are present, but the packet does not show a complete lockfile or vulnerability-resolution results.

Reliability9 / 14 · 3.2/5

The README, root AGENTS.md, package.json, and CI workflow are broadly consistent about Node 24, pnpm, build steps, and validation. CI defines several required validation lanes, and the CLI includes diagnostic and exit-code handling, supporting scores of 2 for ordinary self-consistency, dependency availability, and failure messages. Scores are not higher because the sample omits the complete lockfile, error catalog, and actual lane results, so the described behavior cannot be confirmed for every path in this revision.

Adaptability14 / 18 · 3.9/5

The intended audience and scenarios are specific: TypeScript/LangGraph applications, migration, code repair, memory, and flight planning. This earns 3 for audience and scenarios. Tool policies, approvals, sandboxing, deployment targets, and exclusions such as Python and hosted-platform duties are described; the CLI skill also directs users to version-matched documentation, earning 2 for boundaries and trigger precision. Scores are not higher because the sampled skills cover only part of the product and behavior varies by build target, which users are told to validate.

Convention16 / 18 · 4.4/5

The README, root AGENTS.md, CLI skill index, support and security policies, examples, and license provide clear information architecture, installation steps, practical examples, fit guidance, and maturity limitations; the license text is complete, so these criteria receive 3. Naming stability can only be judged from a limited sample. Release and upgrade paths are linked, but concrete change history is not included here; maintenance responsibility is partly described through support channels and the security policy, without a clear long-term support commitment. Those criteria receive 2.

Effectiveness9 / 13 · 3.5/5

The framework offers route discovery, type generation, local testing, persistence, and build artifacts, with code and examples showing intended use. The README describes offline fixture tests and deployment responsibilities. Output usability, marginal value, and cost-benefit therefore receive 2. The sample provides no comparative performance or maintenance-cost evidence, and practical value depends on accepting the LangGraph, TypeScript, and Node.js constraints.

Verifiability5 / 8 · 3.1/5

The README's main feature claims can be compared with the package map in root AGENTS.md, the CLI skill's version-matched documentation guidance, scripts in package.json, and the CI workflow; examples add concrete references for approval, sandboxing, and testing. These criteria receive 2. Most materials are maintained within the same repository, so independent corroboration is limited. This static review did not execute commands: CI configuration shows intended verification steps, not their actual results.

Risks and how to mitigate them
  • The project is pre-1.0, and the README says its API is moving. Validate runtime, storage, authentication, and provider boundaries for the intended deployment target.
  • This review covers only the supplied file sample and did not run builds or tests; the CI workflow describes checks but does not establish that this revision passed them.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 0cd99fed50e3 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/b4run.svg)](https://followagents.com/en/agents/b4run)
<a href="https://followagents.com/en/agents/b4run"><img src="https://followagents.com/badge/b4run.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.15.8 B4 v0.15.8
    Release notes excerpt
    B4 v0.15.8 Candidate commit: 844cf3bfd3c78722f3882cc6d1fec3a42d6cfc57 Controller phase: AUDIT_VERIFIED Packages | Tarball | SHA-256 | | --- | --- | | b4run-config-biome-0.15.8.tgz | a6fa519541d8adc5f8a6f0ec8a2ab0609c438749dcce7747a3b500548734abf4 | | b4run-config-typescript-0.15.8.tgz | b2eedd1066442800768bdb0ee1cc8054fd3b7096ec19e779bbf73c305f13f20b | | b4run-devkit-0.15.8.tgz | a0ae09a64268a4964e5f889b77ea3b6f985cd39fb4cf1c8892e0aea9fe424a53 | | b4run-sdk-0.15.8.tgz | 7d067c153d37ebc9750c67dfcb25c10169ca5a4cf4d7d3e23fad4526d97c61d9 | …
    View on GitHub ↗
  2. v0.15.7 B4 v0.15.7
    Release notes excerpt
    B4 v0.15.7 Candidate commit: e67a92e4dc3b0f5ffc884ecee3fa8d87d5d788c4 Controller phase: AUDIT_VERIFIED Packages | Tarball | SHA-256 | | --- | --- | | b4run-config-biome-0.15.7.tgz | de7f66634c327c1460c84cd8c64b7db666536a6824dec67c64d2d708d56f624b | | b4run-config-typescript-0.15.7.tgz | d838d9265aee3701b540fba8e6c5787d77eec7378cb75802269fdbd1d0cdef39 | | b4run-devkit-0.15.7.tgz | 65cd782c5717c84a659a3cb8d2146eafac2b74e026a69614150feb33120f029d | | b4run-sdk-0.15.7.tgz | 6b5206ff0e657cd2ff6cfefe4cf1280e99c1af52e58402e59162d5074b6d7674 | …
    View on GitHub ↗
  3. v0.15.5 B4 v0.15.5
    Release notes excerpt
    B4 v0.15.5 Candidate commit: 877ce4899406cebabc150e80309cb5dbf2299bee Controller phase: AUDIT_VERIFIED Packages | Tarball | SHA-256 | | --- | --- | | b4run-config-biome-0.15.5.tgz | 3feb1c8f0d9ad1a515448cfaf541f0e5fc04e34e0ad60f4b9bb3c11e34ef8148 | | b4run-config-typescript-0.15.5.tgz | 69b0cd78e1464500fe3c92c82477b4e8205da827acbe41eb46987949109bec90 | | b4run-devkit-0.15.5.tgz | f044c8146cbe4297015a7054631306b53ba0e7a80235bc06c8d1dd26fa019cc7 | | b4run-sdk-0.15.5.tgz | b24d64a630c8e3ae12c422240d4d5f56a44f2322774262a91ca4e630f5a1360d | …
    View on GitHub ↗

FAQ

Do I need to pay for a model API to try B4.run?
No API key is needed for the fixture-backed starter test: npm test runs offline. Live credentials depend on the provider; the README's OpenAI navlog path requires OPENAI_API_KEY, while a local Ollama route needs no provider key.
Does B4.run host my app or provision production infrastructure?
No. The default build emits a Node server, Dockerfile, and LangSmith graph artifacts, but you operate the app and manage its infrastructure and secrets.
Can tools require approval or restrict file and shell access?
Yes. tools.approve can pause a tool call for a human response, with each answer spending a single-use approval grant. Permissions can gate shell commands and paths outside the workspace, and the sandbox is opt-in.
Will SQLite state survive a restart?
It can survive a b4 dev restart when the app root and SQLite files persist. Validate storage and checkpointer behavior for each deployment target.
Is the API stable at 1.0?
No. B4.run is pre-1.0 and its API surface is moving; the README recommends pinning versions and reading release notes and the upgrade guide.
Is B4.run Agent Framework open source?
Yes. The source code is on GitHub (cacheplane/b4run) under the MIT licence.
Is B4.run Agent Framework safe to use?
FollowAgents' FARS review (Nov 08, 2026) scored B4.run Agent Framework 18/29 on trust and safety. None of the eight safety controls the review checks for was missing outright. The repository has changed since that review.
Is B4.run Agent Framework still maintained?
Yes. The latest commit on GitHub is from 2026-11-11, within the last 30 days. The latest release is v0.15.8 (2026-10-30).
Who makes B4.run Agent Framework?
B4.run Agent Framework is published on GitHub by the account cacheplane. FollowAgents has not verified which person or company is behind that account.
What is B4.run Agent Framework's official website?
The project's GitHub repository lists https://b4.run as its website. That link is set by the repository owner; the source code itself is on GitHub (cacheplane/b4run).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts