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

Releases are listed on PyPI and in the changelog. To pin a version, use pip install maki-framework==X.Y.Z.

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 loopback, 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). Interceptors add your own rules on top: Agent(middleware=[Redact(), DenyTools(deny=["file_writer__*"]), MaxArgChars(4000)]) masks secrets and blocks or caps tool calls, and a rule that breaks stops the call instead of being skipped.
  • Small core. Three libraries (requests, httpx, python-dotenv, plus urllib3, which requests already brings); everything else is an opt-in extra. Their minimum versions are the oldest with no published security advisory.
  • Agents as services. maki serve exposes any agent over HTTP; AgentProxy consumes it remotely.
  • One tool loop for every provider. Tool calls and results are typed Message objects that each backend converts to its own API, so a FallbackBackend can move a half-finished tool loop between providers, and with MemoryPolicy(tool_history=True) an agent remembers which tools it ran.
  • Know your model. python -m maki eval runs your tasks through the whole agent on several local or hosted models and reports pass rate, time and tokens. maki also warns when a local server silently drops the start of a prompt that does not fit its context window, and MakiLLama(num_ctx="auto") sizes the window once instead of guessing.
  • Skills, loaded on demand. Agents read Agent Skills (SKILL.md folders, the format Claude Code and Codex use) only when a task needs them, from .agents/skills and friends, with project skills opt-in.
  • Async-friendly. await agent.aexecute_task(...), async for chunk in agent.astream_task(...) and await manager.agather_tasks([...]) run agents concurrently without blocking your event loop.
  • 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.
  • See, steer and resume a run. Agent(trace="runs.jsonl") records every task, model round and tool call (maki trace show prints the tree, also across maki serve); Agent(checkpoint="agent.db") lets agent.resume() continue a killed run at its last tool round without re-running finished tools; interceptors change or block calls as they happen. No new dependency: JSON lines and the standard library's sqlite.
  • 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
Learning course Build a small research assistant step by step on a local model, no API key (code: maki-learning)
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
Evaluating models Compare models on your own tasks with maki eval
Run traces See what an agent did, step by step, with Agent(trace=...) and maki trace show
Checkpoints Resume a killed run at its last tool round with Agent(checkpoint=...) and agent.resume()
Interceptors Change or block every model and tool call, fail-closed: Agent(middleware=[Redact(), DenyTools(...)])
Skills Load Agent Skills on demand (shared with Claude Code and Codex)
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.7.0

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.7.0
File Size Uploaded Provenance Actions
maki_framework-0.7.0.tar.gz 737.4 kB With provenance Details for maki_framework-0.7.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / maki_framework-0.7.0.tar.gz

Download URL maki_framework-0.7.0.tar.gz
Size 737.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5eb59c7a1cc04ac9c217ca4755e57dfc428e2a8295fe106a95d1e11a18dcf4e0
BLAKE2b-256 checksum
How to use checksums
7898d9e8e6cbe2d983cfa1dcffe42756def487a9ebe5b616a04769df2b4f3456
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 28, 2026.

Transparency log

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

Download URL maki_framework-0.7.0-py3-none-any.whl
Size 379.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
659f3260899883e840aaef64aae1e3f8015febc299c2ee74f7c1f7570ef8c3a9
BLAKE2b-256 checksum
How to use checksums
40be165ca0564fd8b048b7213e77f3ccba1302c36fff010d46a7aa7380c4b69e
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 28, 2026.

Transparency log

Security for maki-framework 0.7.0

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.7.0.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 28, 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