GraphBit

Rust-core, Python-facing agent framework for deterministic, type-safe multi-agent workflows at far lower CPU and memory cost.

Stars
★ 583
Last updated
5mo ago
FARS reviewed
Sep 12, 2026
License
Apache-2.0
Primary language
Rust

At a glance

How it runs
Library / SDKFramework
Works with
Universal · cross-platformOpenAI API · Claude API
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Python 3.9–3.13LLM provider API key (optional)Shell / CLINetwork accessLocal filesystem
Typical use
Backend teams moving a multi-agent pipeline from prototype to production who need reproducible outputs and an explicit success check via is_success().
Not a fit if
  • Teams that expect a no-code visual builder; GraphBit is a Python library for developers.
  • Projects that cannot supply any LLM provider key and will not run a local model server.
  • Teams that want a vendor-hosted managed service rather than self-running the framework.
Maintenance
Commits in the last 6 monthslast commit 2026-06-22

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

GraphBit is an Apache-2.0 agentic AI framework from InfinitiBit with a Rust core and a Python API exposed through PyO3 with async support. Workflows are modeled as graphs of Node objects: Node.agent declares an agent's prompt, system_prompt and tool list, workflow.add_node registers it, workflow.connect wires the edges, and an Executor runs the graph and returns a WorkflowResult. The Python surface also includes LlmConfig, the @tool decorator, embeddings, document loaders, text splitters and GuardRailPolicyConfig. The execution layer emphasizes determinism, concurrency, persisted memory across steps and fault recovery, with circuit breakers, retry policies and a GraphBit Tracer for observability. It is a self-hosted library: after a pip install it runs inside your own Python process and can call OpenAI, Azure OpenAI, Anthropic, OpenRouter, DeepSeek, Replicate, Ollama, TogetherAI and more. The README claims roughly 68x lower CPU use and 140x lower memory footprint than other Python frameworks, and states that Grant Thornton Germany runs it in production.

A developer configures a provider with LlmConfig (for example LlmConfig.openai(key, "gpt-4o-mini")) and passes it to an Executor. They then create a named Workflow, declare agent nodes with Node.agent (name, prompt, system_prompt, tools), register them via workflow.add_node and define data flow with workflow.connect. Plain Python functions become tools through the @tool(_description=...) decorator, and the LLM selects among them based on those descriptions. executor.execute(workflow) runs the graph, executing nodes concurrently, carrying context between steps and recovering from failures through retry and circuit-breaker policies; an optional GuardRailPolicyConfig.from_json(...) policy applies PII masking and mapping. The returned WorkflowResult exposes is_success() for overall status and get_node_output("node name") for per-node text. Around that core sit a Tracer that records prompts, responses, token usage, latency and errors, document loaders for PDF, DOCX, TXT, JSON, CSV, XML and HTML, plus text splitters and embeddings for retrieval-style pipelines.

  1. Backend teams moving a multi-agent pipeline from prototype to production who need reproducible outputs and an explicit success check via is_success().
  2. Deployments on memory- or CPU-constrained machines and edge devices, where a lower-overhead runtime matters more than framework familiarity.
  3. Regulated teams that must mask PII at execution time and keep traces of prompts, latency and errors for audit.
  4. Developers avoiding single-vendor lock-in who want the same Workflow to run against OpenAI, Anthropic, Azure OpenAI or a local Ollama server.
  5. Teams building document Q&A or retrieval pipelines using the bundled document loaders, text splitters and embeddings.
  6. Projects with existing Python business logic that can be exposed to the LLM with the @tool decorator instead of rewriting it.

Key setup facts

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

Install / run
  • pip install graphbit
Environment variables
OPENAI_API_KEY ANTHROPIC_API_KEY
Runtime
Python 3.9 · Rust 1.70+

How do you install or deploy this agent?

Python 3.9–3.13 is required. Install into a virtual environment:

python -m venv .venv
source .venv/bin/activate
pip install graphbit

Then export the provider keys your workflow will use (both are optional and only needed for the matching models):

export OPENAI_API_KEY=your_openai_api_key_here
export ANTHROPIC_API_KEY=your_anthropic_api_key_here

No Rust toolchain is needed for the pip package; the README lists Rust 1.70+ in the context of the compiled core.

How do you use this agent?

Build a workflow by declaring tools and agent nodes, then execute the graph:

import os

from graphbit import LlmConfig, Executor, Workflow, Node, tool

config = LlmConfig.openai(os.getenv("OPENAI_API_KEY"), "gpt-4o-mini")
executor = Executor(config)

@tool(_description="Get current weather information for any city")
def get_weather(location: str) -> dict:
    return {"location": location, "temperature": 22, "condition": "sunny"}

workflow = Workflow("Analysis Pipeline")

smart_agent = Node.agent(
    name="Smart Agent",
    prompt="What's the weather in Paris?",
    system_prompt="You are an assistant skilled in weather lookup. Use tools to answer accurately.",
    tools=[get_weather],
)

id1 = workflow.add_node(smart_agent)

result = executor.execute(workflow)
print(f"Workflow completed: {result.is_success()}")
print(result.get_node_output("Smart Agent"))

To apply guardrails, pass a policy at execution time:

result = executor.execute(workflow, policy=GuardRailPolicyConfig.from_json('{"guardrail_policy": {"pii_rules": [...]}}'))

Full class and method coverage lives in docs/api-reference/python-api.md.

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
  • Rust core with PyO3 bindings ships as a pip package, so you get the low-overhead runtime without a local Rust build; the README reports ~68x CPU and ~140x memory advantages over other Python frameworks.
  • Provider-neutral by design: LlmConfig covers OpenAI, Azure OpenAI, Anthropic, OpenRouter, DeepSeek, Replicate, Ollama and TogetherAI, so swapping models does not mean rewriting workflows.
  • Production primitives are built in — circuit breakers, retry policies, fault recovery and GuardRailPolicyConfig for PII rules — rather than left to application code.
  • GraphBit Tracer records prompts, responses, token usage, latency and errors without changing your calling code.
  • Tool integration is lightweight: an existing Python function plus a @tool description is enough for LLM-driven tool selection.
  • Apache-2.0 licensed, with Grant Thornton Germany cited as a production adopter.
Limitations
  • The headline performance numbers are internal benchmarks; the README does not link an independently reproducible evaluation or full benchmark harness.
  • The engine is Rust, so debugging internals or contributing fixes needs cross-language skills; complete API details sit in an external docs site rather than the README.
  • The GuardRailPolicyConfig example elides its rule schema as pii_rules: [...], so the policy JSON must be reconstructed from the docs.
  • It ships no model of its own: you must supply cloud provider keys or run a local model server such as Ollama, and pay or host accordingly.
  • Vector stores, databases, search APIs and similar ecosystem connectors are community-developed and not covered by core maintenance.
  • No hosted or managed offering is documented; deployment, scaling and operations are your responsibility.

How does this agent compare with similar options?

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

Agent Source review Form / cost Stars Updated Language Full support on
GraphBit This agent 55 · Major gaps Library / SDKFree + model costs ★ 583 5mo ago Rust OpenAI API · Claude API
VoltAgent 50 · Major gaps CLIFreemium ★ 11k 24d ago TypeScript ChatGPT · OpenAI API · Claude API
AgenticX Multi-Agent Platform 55 · Major gaps CLIFree + model costs ★ 1.3k 1d ago Python Claude Code · OpenAI API · Claude API
Promptise Foundry 81 · Good Library / SDKFree + model costs ★ 897 1d ago Python Claude.ai · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
55/ 100 5-point scale 2.8 / 5
Trust 14/29
Reliability 8/14
Adaptability 10/18
Convention 11/18
Effectiveness 9/13
Verifiability 3/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

Evidence: API keys via env vars with security notes; GuardRailPolicyConfig for PII masking; SECURITY.md with full disclosure process; workspace-pinned versions, rustls, safety/bandit/detect-secrets in dev deps. Deducted: no least-privilege model or user-confirmation hooks before agent tool execution; README example uses eval(expression) unsafely; circuit breakers/retry/self-recovery are README assertions without shown code; vendored prebuilt guardrail .so binaries have no provenance documentation. Attribution (InfinitiBit GmbH copyright) is clear.

Reliability8 / 14 · 2.9/5

Evidence: multiple LLM providers plus local Ollama improve dependency availability; structured errors and observability described. Deducted: clear self-inconsistencies — README badge says License 'Custom' while LICENSE.md is Apache-2.0; two different Discord invite links; absolute claims like '100% task reliability'; Rust badge 1.70+ contradicts Cargo.toml rust-version 1.93.0.

Adaptability10 / 18 · 2.8/5

Evidence: audience and scenarios well defined (enterprise production, edge, multi-agent workflows); Python 3.9–3.13 and multi-platform wheels supported. Deducted: capability boundaries not honestly stated, only marketing upper bounds; tool selection relies on LLM interpretation of descriptions with no trigger-precision guarantees or evaluation; inconsistent minimum Rust version complicates environment fit.

Convention11 / 18 · 3.1/5

Evidence: clear information architecture (multilingual README, architecture diagram, API reference links, video tutorials), explicit install notes, consistent version 0.6.8, CHANGELOG and cargo-release config, maintainer contacts and security response timelines, full Apache-2.0 text. Deducted: no known-limitations section; README badge mislabels license as 'Custom' contradicting the actual file; no FAQ.

Effectiveness9 / 13 · 3.5/5

Evidence: good output usability (structured Workflow results, get_node_output, observability); Rust core + PyO3 bindings offer a differentiated value proposition; rich ecosystem documentation. Deducted: performance gains (68x/140x) are internal benchmarks users cannot evaluate before adoption; unsafe practices like eval() in examples reduce safe usability.

Verifiability3 / 8 · 1.9/5

Evidence: some claims traceable in files (version, license, maintainers, dependency list). Deducted: headline performance claims (68x CPU, 140x memory, 100% success) cite internal benchmarks without reproducible methodology; production-customer (Grant Thornton) and download badges cannot be corroborated within the repo; marketing language mixed with factual statements without fact/inference separation.

Risks and how to mitigate them
  • The README example tool uses eval() on arbitrary expressions; replace with a safe parser in production, and note agent tool execution has no default human confirmation — add an approval layer yourself.
  • Headline performance claims (68x/140x/100% reliability) are internal benchmarks without reproducible methodology; benchmark independently before adoption.
  • Prebuilt guardrail .so binaries under vendor/guardrail have no documented provenance; assess supply-chain risk yourself. Publishing uses PyPI API tokens via GitHub Actions — verify Trusted Publishers configuration.
  • Metadata inconsistencies exist (license badge says Custom, Rust minimum 1.70+ vs 1.93.0, differing Discord links); rely on LICENSE.md and Cargo.toml as authoritative.
Evidence confidence: Low Reviewed Sep 12, 2026 Reviewed revision f80c46e8e4dd
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/graphbit.svg)](https://followagents.com/en/agents/graphbit)
<a href="https://followagents.com/en/agents/graphbit"><img src="https://followagents.com/badge/graphbit.svg" alt="FARS review"></a>

FAQ

Is GraphBit free to use?
The framework is open source under Apache-2.0, so installing and running it costs nothing. LLM usage is billed by whichever provider you configure; running against a local provider like Ollama shifts that cost to your own hardware.
Am I locked into OpenAI?
No. LlmConfig ships adapters for OpenAI, Azure OpenAI, Anthropic, OpenRouter, DeepSeek, Replicate, Ollama and TogetherAI, and the ecosystem table lists community integrations for Fireworks, Mistral AI, Perplexity, HuggingFace, xAI and others.
What happens when a node in the workflow fails?
The execution layer applies circuit breakers, retry policies and fault recovery, and nodes persist memory across steps. Afterwards WorkflowResult.is_success() reports the overall outcome and get_node_output() lets you inspect individual nodes.
What runtime do I need?
Python 3.9 through 3.13, installed via pip install graphbit. Network access and a provider key are required for cloud models; the Rust 1.70+ badge refers to the compiled core, not a prerequisite for pip users.
Can it handle sensitive data?
executor.execute accepts a GuardRailPolicyConfig built from JSON, which supports PII masking and mapping rules. The exact rule structure is documented in the project's docs rather than in the README example.
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