GraphBit
Rust-core, Python-facing agent framework for deterministic, type-safe multi-agent workflows at far lower CPU and memory cost.
- Source repo
- InfinitiBit/graphbit
- Stars
- ★ 583
- Last updated
- 5mo ago
- FARS reviewed
- Sep 12, 2026
- License
- Apache-2.0
- Primary language
- Rust
- FA score
- 55/100 · Major gaps
At a glance
- How it runs
- 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
- 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
- Source review
- 55/100 · Major gaps
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.
- Backend teams moving a multi-agent pipeline from prototype to production who need reproducible outputs and an explicit success check via is_success().
- Deployments on memory- or CPU-constrained machines and edge devices, where a lower-overhead runtime matters more than framework familiarity.
- Regulated teams that must mask PII at execution time and keep traces of prompts, latency and errors for audit.
- Developers avoiding single-vendor lock-in who want the same Workflow to run against OpenAI, Anthropic, Azure OpenAI or a local Ollama server.
- Teams building document Q&A or retrieval pipelines using the bundled document loaders, text splitters and embeddings.
- 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_KEYANTHROPIC_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 graphbitThen 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_hereNo 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
FAQ
Is GraphBit free to use?
Am I locked into OpenAI?
What happens when a node in the workflow fails?
What runtime do I need?
Can it handle sensitive data?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.