explaingit

infyrence/infy

Analysis updated 2026-05-18

3PythonAudience · developerComplexity · 3/5LicenseSetup · easy

TLDR

A lightweight, dependency-free Python framework for building AI agents, with an optional governance layer that checks and audits every tool call an agent makes.

Mindmap

mindmap
  root((infy))
    What it does
      AI agent framework
      Zero core dependencies
      Rust accelerated hot paths
    Tech stack
      Python
      Rust extension
      Model providers
    Use cases
      Fast lightweight agents
      Governed tool calls
      Branching graph workflows
    Audience
      Developers
      Agent builders
    Setup
      pip install
      Python 3.10 plus
      Alpha stage

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a fast, low-overhead AI agent that calls tools and language models without heavy framework dependencies.

USE CASE 2

Add a governance layer that requires human approval before an agent can deploy code, spend money, or touch customer data.

USE CASE 3

Build multi-step agent workflows with branching, loops, and the ability to pause and resume later.

What is it built with?

PythonRustOpenAIAnthropicGeminiOllama

How does it compare?

infyrence/infy0marildo/imago0xdfi/glm-5.2-1m-4x-dgx-spark
Stars333
LanguagePythonPythonPython
Setup difficultyeasyeasyhard
Complexity3/52/55/5
Audiencedevelopergeneralresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Still in alpha, so install from source is recommended until the first tagged release.

Apache 2.0 license: use, modify, and distribute freely, including commercially, with attribution and patent protection for contributors.

In plain English

Infy is a Python framework for building AI agents that talk to language models, call tools, and follow multi-step plans. It is written from scratch with no required third-party libraries in its core, and it uses an optional compiled Rust extension to speed up common jobs like parsing JSON and comparing text, falling back to plain Python if that extension is not installed. The project focuses on two things. The first is being light and fast: the maker's own tests across a set of real agents show it starting up much faster and using much less memory than other popular agent frameworks, while writing roughly the same amount of code. The second is control: infy includes an optional governance layer that checks every tool call an agent tries to make against a policy before it runs, and writes a record of what happened that cannot be quietly changed afterward. This is meant to make it safer to let an agent take real actions, such as running shell commands, deploying code, spending money, or touching customer data. The governance system can deny certain actions outright, require a human to approve risky ones through a pluggable approval step, and pause a run for hours until a person responds, then resume it once approved. Every decision, whether allowed or denied, gets written to an audit trail. The same governance layer can also wrap agents that were built using other agent frameworks, not just ones built with infy itself. Beyond single tool-calling agents, infy includes a graph based execution engine for building agents with branching logic, loops, and the ability to pause partway through and resume later, with support for saving progress along the way. Both synchronous and asynchronous versions of the model, tool, and graph interfaces are provided. Infy requires Python 3.10 or newer and installs through pip, with optional extras for providers like OpenAI, Anthropic, Gemini, and Ollama. It is currently in an alpha stage and released under the Apache 2.0 license.

Copy-paste prompts

Prompt 1
Help me set up an infy agent that calls a weather tool and prints the result.
Prompt 2
Show me how to configure infy's governance layer so risky tool calls need human approval.
Prompt 3
Explain how infy's graph runtime handles pausing and resuming a long-running agent task.
Prompt 4
How do I wrap an agent built with a different framework using infy's governance integrations?

Frequently asked questions

What is infy?

A lightweight, dependency-free Python framework for building AI agents, with an optional governance layer that checks and audits every tool call an agent makes.

What language is infy written in?

Mainly Python. The stack also includes Python, Rust, OpenAI.

What license does infy use?

Apache 2.0 license: use, modify, and distribute freely, including commercially, with attribution and patent protection for contributors.

How hard is infy to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is infy for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.