Skip to main content

Maki Logo

Maki

PyPI Python 3.10+ License: MIT CI Docs

Maki is a Python framework for multi-agent LLM applications that run wherever your models do: on your own hardware (through Ollama, llama.cpp or vLLM), on a hosted API (OpenAI, Anthropic, OpenRouter), or a mix of both, with the same agent code.

It is for developers who want to build and run tool-using agents on local models first, keep the option of moving any task to a hosted model by swapping one object, and have guardrails switched on by default while those agents touch files, the web, or a broker account.

Documentation: https://bowlofdata.github.io/maki/docs/

Quickstart

Install Ollama, pull a small model, then install Maki:

ollama pull llama3.2
pip install maki-framework

The current release is 0.4.1; to pin it, use pip install maki-framework==0.4.1.

from maki import MakiLLama
from maki.agents import Agent

agent = Agent(
    name="Reviewer",
    maki_instance=MakiLLama(model="llama3.2"),
    role="code reviewer",
    instructions="Focus on bugs, regressions, and missing validation.",
)

print(agent.execute_task("Review this design: a plugin system with file access."))

The package is maki-framework; the import is maki. To run the same agent on a hosted model, swap the backend object:

from maki import MakiAnthropic   # pip install "maki-framework[anthropic]"

agent = Agent(name="Reviewer", maki_instance=MakiAnthropic(model="claude-sonnet-4-5"), role="code reviewer")

Pick a backend from one string, and chain several so a transient failure (network error, timeout, rate limit) moves to the next one:

from maki import FallbackBackend, init_backend

backend = FallbackBackend([
    init_backend("anthropic:claude-sonnet-4-5"),
    "openai:gpt-4o",          # spec strings are built with init_backend
    "ollama:gemma4:26b",      # local last resort
])
agent = Agent(name="Reviewer", maki_instance=backend, role="code reviewer")

Why Maki

  • Local and hosted models are equals. Ollama, llama.cpp, vLLM, OpenAI, Anthropic and OpenRouter sit behind the same LLMBackend contract, and an in-process HuggingFace backend is included. init_backend("provider:model") builds any of them from a string, FallbackBackend fails over between them (even in the middle of a tool loop), and one conformance suite pins identical behaviour and error mapping across all of them.
  • Guardrails on by default. Content-derived URLs are checked against private and reserved address ranges at connect time. Plugins are fail-closed, and destructive methods (file writes, FTP transfers, trades) stay disabled until you pass Agent(allow_dangerous_tools=True).
  • Small core. Three dependencies (requests, httpx, python-dotenv); everything else is an opt-in extra.
  • Agents as services. maki serve exposes any agent over HTTP; AgentProxy consumes it remotely.
  • Typed, observable tools. Native tool schemas come from type hints and docstrings, arguments are validated before a method runs, and ToolPolicy adds retries with backoff and optional parallel calls (destructive methods are never retried). AgentCallback hooks report task, model and tool events.
  • Batteries included. 18 built-in plugins and a workflow engine with dependency resolution, retries, parallel execution, checkpoint/resume and maker/checker verification.
  • Agents that iterate. agent.run_loop(goal, requirements, judge) keeps an agent working until a separate judge, your tests or your own checks confirm every requirement, with stall detection, token and time budgets, resume and optional human approval; it runs locally, over HTTP and inside workflows.
  • Memory that stays useful. An opt-in MemoryPolicy shortens old turns, pins the facts that must never be lost and clips oversized tool output; an optional summary tier folds evicted turns into a running summary instead of dropping them (in the same live test it recalled 4/4 early facts where dropping recalled 0/4). In a live test on a local gemma4:26b, the default setup forgot a fact stated at the start of a 13-message chat while the policy setting answered correctly, with about 45% less text sent.

Documentation

Quickstart Install to first agent in 5 minutes
Installation and extras Optional dependencies per backend and plugin
Backends Ollama, llama.cpp, vLLM, OpenAI, Anthropic, OpenRouter, HuggingFace
Agents Memory, reasoning, streaming, tools
Workflows Multi-agent pipelines and verified tasks
Agent memory Keep long conversations correct and prompts small
Agent loops Iterate an agent until its requirements are met
Plugins Built-in plugins and the safety model
Serving agents maki serve and AgentProxy
Configuration Environment variables

Contributing

Bug fixes, documentation, new plugins and suggestions are welcome. Open an issue or pull request on GitHub. Maki is part of Bowl of Data, an open-source AI research community.

License

MIT

Metadata

Release files for maki-framework 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maki-framework 0.4.5
File Size Uploaded Provenance Actions
maki_framework-0.4.5.tar.gz 384.9 kB With provenance Details for maki_framework-0.4.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maki-framework 0.4.5
File Interpreter ABI Platform Actions
maki_framework-0.4.5-py3-none-any.whl Python 3 none any Details for maki_framework-0.4.5-py3-none-any.whl

Total release size: 876.6 kB

Release files / maki_framework-0.4.5.tar.gz

Download URL maki_framework-0.4.5.tar.gz
Size 384.9 kB
Tags Source
SHA-256 checksum
How to use checksums
24f55e0ffdbea1b15d44f1e5e3d94c5a79f542857e2f5c49a6f04447a6febd3c
BLAKE2b-256 checksum
How to use checksums
405a52101dfe1c395197a56e53e9d983ef64f1d8c343d005697c5fe6819f49ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / maki_framework-0.4.5-py3-none-any.whl

Download URL maki_framework-0.4.5-py3-none-any.whl
Size 491.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d587476489d2b1645bb87999d914eadd85e3e5e0240a29dce42ad11fb5421bf
BLAKE2b-256 checksum
How to use checksums
5646a261ba02ce24c5872c69eff23249438d367014224db8901c6739cb742096
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for maki-framework 0.4.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for maki_framework-0.4.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page